2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
[official-gcc.git] / gcc / ChangeLog
blob95a86e47b1f614a05e69010a7fe87d1ebeb4b3b5
1 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
3         * reload.c (find_reloads): Exit loop once we find this operand
4         cannot be reloaded somehow for this alternative.
6         * reload.c (find_reloads): Exit loop once we find a hard register.
8         * rtlanal.c (computed_jump_p): Exit loop once we find label
9         reference is used.
11         * i386.c (ix86_pad_returns): Exit loop after setting replace.
13         * cfgloopmanip.c (remove_path): Exit loop after setting
14         irred_invalidated.
16         * gensupport.c (subst_dup): Avoid loop if code is not
17         MATCH_DUP nor MATCH_OP_DUP.
19 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
25         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
26         true for SP_REGNUM if mode == ptr_mode.
27         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
28         with value R0_REGNUM + 31.
30 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
32         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
33         pad pointer-typed argument downward.
35 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
37         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
38         and __ILP32__ when the ILP32 model is in use.
40 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
42         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
43         (aarch64_load_symref_appropriately): In the case of
44         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
45         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
46         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
47         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
48         if 'mode' doesn't equal to 'ptr_mode'.
49         (aarch64_output_mi_thunk): Add an assertion on the alignment of
50         'vcall_offset'; change to call aarch64_emit_move differently depending
51         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
52         to calculate the upper bound of 'vcall_offset'.
53         (aarch64_cannot_force_const_mem): Change to also return true if
54         mode != ptr_mode.
55         (aarch64_legitimize_reload_address): In the case of large
56         displacements, add new local variable 'xmode' and an assertion
57         based on it; change to use 'xmode' to generate the new rtx and
58         reload.
59         (aarch64_asm_trampoline_template): Change to generate the template
60         differently depending on TARGET_ILP32 or not; change to use
61         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
62         (aarch64_trampoline_size): Removed.
63         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
64         and replace immediate literals with it.  Change to use 'ptr_mode'
65         instead of 'DImode' and call convert_memory_address if the mode
66         of 'fnaddr' doesn't equal to 'ptr_mode'.
67         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
68         to output symbol.
69         (aarch64_elf_asm_destructor): Likewise.
70         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
71         on TARGET_ILP32 instead of aarch64_trampoline_size.
72         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
73         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
74         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
75         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
76         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
77         (storewb_pair<GPI:mode>_<P:mode>): ... this.
78         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
79         depending on the value of 'mode'.
80         (add_losym_<mode>): New.
81         (ldr_got_small_<mode>): New, based on ldr_got_small.
82         (ldr_got_small): Remove.
83         (ldr_got_small_sidi): New.
84         * config/aarch64/iterators.md (P): New.
85         (PTR): Change to 'ptr_mode' in the condition.
87 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
89         * config.gcc (aarch64*-*-*): Support --with-abi.
90         (aarch64*-*-elf): Support --with-multilib-list.
91         (aarch64*-*-linux*): Likewise.
92         (supported_defaults): Add abi to aarch64*-*-*.
93         * configure.ac: Mention AArch64 for --with-multilib-list.
94         * configure: Re-generated.
95         * config/aarch64/biarchilp32.h: New file.
96         * config/aarch64/biarchlp64.h: New file.
97         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
98         (ABI_SPEC): Ditto.
99         (MULTILIB_DEFAULTS): Ditto.
100         (DRIVER_SELF_SPECS): Ditto.
101         (ASM_SPEC): Update to also substitute -mabi.
102         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
103         file whose name depends on -mabi= and -mbig-endian.
104         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
105         TARGET_ILP32.
106         (POINTER_SIZE): New define.
107         (POINTERS_EXTEND_UNSIGNED): Ditto.
108         (enum aarch64_abi_type): New enumeration tag.
109         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
110         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
111         (TARGET_ILP32): New define.
112         * config/aarch64/aarch64.opt (mabi): New.
113         (aarch64_abi): New.
114         (ilp32, lp64): New values for -mabi.
115         * config/aarch64/t-aarch64 (comma): New define.
116         (MULTILIB_OPTIONS): Ditto.
117         (MULTILIB_DIRNAMES): Ditto.
118         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
119         * doc/invoke.texi: Document -mabi for AArch64.
121 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
123         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
125 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
126             Anton Blanchard <anton@au1.ibm.com>
128         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
129         endianness when selecting field to splat.
131 2013-07-22  Eric Christopher  <echristo@gmail.com>
133         * dwarf2out.c (die_odr_checksum): New function to use
134         CHECKSUM_ macros and ULEB128 for DIE tag.
135         (generate_type_signature): Use.
136         
137 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
139         * config.gcc (sparc*-*-*): Accept leon3 processor.
140         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
141         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
142         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
143         * config/sparc/sparc.opt (enum processor_type): Add leon3.
144         (mfix-ut699): Adjust comment.
145         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
146         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
147         (CPP_CPU_SPEC): Likewise.
148         (ASM_CPU_SPEC): Likewise.
149         * config/sparc/sparc.c (leon3_cost): New constant.
150         (sparc_option_override): Add leon3 support.
151         (mem_ref): New function.
152         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
153         (sparc_do_work_around_errata): Look into the instruction in the delay
154         slot and adjust accordingly.  Add fix for the data cache nullify issues
155         of the UT699.  Change insertion position for the NOP.
156         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
157         (leon3_load): New reservation.
158         (leon_store): Bump latency to 2.
159         (grfpu): New automaton.
160         (grfpu_alu): New unit.
161         (grfpu_ds): Likewise.
162         (leon_fp_alu): Adjust.
163         (leon_fp_mult): Delete.
164         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
165         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
166         * config/sparc/sparc.md (cpu): Add leon3.
167         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
168         (swapsi): Likewise.
169         (atomic_test_and_set): Likewise.
170         (ldstub): Likewise.
172 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
174         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
175         default for R5900 targets.
176         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
177         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
178         * config/mips/mips.c (mips_option_override): Report an error for
179         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
180         for -march=r5900 -mhard-float.
182 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
184         * df-problems.c (can_move_insns_across): Exit loop once we
185         find a non-fixed, non-global register.
187         * ipa-pure-const.c (propagate_nothrow): Exit loop after
188         setting can_throw.
190         * omega.c (omega_eliminate_red): Break after setting red_found.
191         (omega_problem_has_red_equations): Similarly after setting found.
192         (omega_query_variable): Similarly after setting coupled.
194 2013-07-22  Marek Polacek  <polacek@redhat.com>
196         * gimplify.c: Don't include gimple.h twice.
198 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
200         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
201         instead of TARGET_THUMB1.
202         (Pz): New constraint.
203         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
204         encodings.
205         (compare_negsi_si): Likewise.
206         (compare_addsi2_op0): Likewise.
207         (compare_addsi2_op1): Likewise.
208         (addsi3_carryin_<optab>): Likewise.
209         (addsi3_carryin_alt2_<optab>): Likewise.
210         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
211         for arm_restrict_it.
212         (subsi3_carryin): Likewise.
213         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
214         (minmax_arithsi): Disable for arm_restrict_it.
215         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
216         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
217         (satsi_<SAT:code>_shift): Likewise.
218         (arm_shiftsi3): Add alternative for 16-bit encoding.
219         (arm32_movhf): Disable for arm_restrict_it.
220         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
221         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
223 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
225         * config/arm/arm.md (attribute "insn"): Delete.
226         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
227         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
228         (not_shiftsi): Update for attribute change.
229         (not_shiftsi_compare0): Likewise.
230         (not_shiftsi_compare0_scratch): Likewise.
231         (arm_one_cmplsi2): Likewise.
232         (thumb1_one_cmplsi2): Likewise.
233         (notsi_compare0): Likewise.
234         (notsi_compare0_scratch): Likewise.
235         (thumb1_movdi_insn): Likewise.
236         (arm_movsi_insn): Likewise.
237         (movhi_insn_arch4): Likewise.
238         (movhi_bytes): Likewise.
239         (arm_movqi_insn): Likewise.
240         (thumb1_movqi_insn): Likewise.
241         (arm32_movhf): Likewise.
242         (thumb1_movhf): Likewise.
243         (arm_movsf_soft_insn): Likewise.
244         (thumb1_movsf_insn): Likewise.
245         (thumb_movdf_insn): Likewise.
246         (movsicc_insn): Likewise.
247         (movsfcc_soft_insn): Likewise.
248         (and_scc): Likewise.
249         (cond_move): Likewise.
250         (if_move_not): Likewise.
251         (if_not_move): Likewise.
252         (if_shift_move): Likewise.
253         (if_move_shift): Likewise.
254         (if_shift_shift): Likewise.
255         (if_not_arith): Likewise.
256         (if_arith_not): Likewise.
257         (cond_move_not): Likewise.
258         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
259         (neon_mov<mode>): Likewise.
260         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
261         (thumb2_movsi_vfp): Likewise.
262         (movsf_vfp): Likewise.
263         (thumb2_movsf_vfp): Likewise.
264         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
265         change.
266         (cortexa7_older_only): Likewise.
267         (cortexa7_younger): Likewise.
268         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
269         (1020alu_shift_op): Likewise.
270         (1020alu_shift_reg_op): Likewise.
271         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
272         (alu_shift_op): Likewise.
273         (alu_shift_reg_op): Likewise.
274         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
275         (11_alu_shift_op): Likewise.
276         (11_alu_shift_reg_op): Likewise.
277         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
278         (9_alu_shift_reg_op): Likewise.
279         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
280         change.
281         (cortex_a15_alu_shift): Likewise.
282         (cortex_a15_alu_shift_reg): Likewise.
283         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
284         (cortex_a5_alu_shift): Likewise.
285         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
286         change.
287         (cortex_a53_alu_shift): Likewise.
288         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
289         change.
290         (cortex_a7_alu_reg): Likewise.
291         (cortex_a7_alu_shift): Likewise.
292         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
293         (cortex_a8_alu_shift): Likewise.
294         (cortex_a8_alu_shift_reg): Likewise.
295         (cortex_a8_mov): Likewise.
296         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
297         (cortex_a9_dp_shift): Likewise.
298         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
299         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
300         (cortex_r4_mov): Likewise.
301         (cortex_r4_alu_shift): Likewise.
302         (cortex_r4_alu_shift_reg): Likewise.
303         * config/arm/fa526.md (526_alu_op): Update for attribute change.
304         (526_alu_shift_op): Likewise.
305         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
306         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
307         (626te_alu_shift_op): Likewise.
308         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
309         (726te_alu_op): Likewise.
310         (726te_alu_shift_op): Likewise.
311         (726te_alu_shift_reg_op): Likewise.
312         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
313         (mp626_alu_shift_op): Likewise.
314         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
315         (pj4_alu_e1_conds): Likewise.
316         (pj4_alu): Likewise.
317         (pj4_alu_conds): Likewise.
318         (pj4_shift): Likewise.
319         (pj4_shift_conds): Likewise.
320         (pj4_alu_shift): Likewise.
321         (pj4_alu_shift_conds): Likewise.
323 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
325         * config/arm/predicates.md (shiftable_operator_strict_it):
326         New predicate.
327         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
328         Disable cond_exec version for arm_restrict_it.
329         (thumb2_smaxsi3): Convert to generate cond_exec.
330         (thumb2_sminsi3): Likewise.
331         (thumb32_umaxsi3): Likewise.
332         (thumb2_uminsi3): Likewise.
333         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
334         (thumb2_neg_abssi2): Likewise.
335         (thumb2_mov_scc): Add alternative for 16-bit encoding.
336         (thumb2_movsicc_insn): Adjust alternatives.
337         (thumb2_mov_negscc): Disable for arm_restrict_it.
338         (thumb2_mov_negscc_strict_it): New pattern.
339         (thumb2_mov_notscc_strict_it): New pattern.
340         (thumb2_mov_notscc): Disable for arm_restrict_it.
341         (thumb2_ior_scc): Likewise.
342         (thumb2_ior_scc_strict_it): New pattern.
343         (thumb2_cond_move): Adjust for arm_restrict_it.
344         (thumb2_cond_arith): Disable for arm_restrict_it.
345         (thumb2_cond_arith_strict_it): New pattern.
346         (thumb2_cond_sub): Adjust for arm_restrict_it.
347         (thumb2_movcond): Likewise.
348         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
349         (thumb2_zero_extendhisi2_v6): Likewise.
350         (thumb2_zero_extendqisi2_v6): Likewise.
351         (orsi_notsi_si): Likewise.
352         (orsi_not_shiftsi_si): Likewise.
354 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
356         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
357         instruction sequence is 1 byte shorter.
359 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
361         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
362         it is not needed after split.
364 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
366         PR target/51784
367         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
368         second label for nonlocal goto receivers. Don't output pic base labels
369         unless we're producing PIC; mark that action unreachable().
370         (ix86_save_reg): If the function contains a nonlocal label, save the
371         PIC base reg.
372         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
373         * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
374         (update_pic_label_number_if_needed): New.
375         (machopic_output_function_base_name): Adjust for nonlocal receiver
376         case.
377         (machopic_should_output_picbase_label): New.
378         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
379         (nonlocal_goto_receiver): New insn and split.
381 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
383         * config/aarch64/aarch64-builtins.c
384         (aarch64_fold_builtin): Fold abs in all modes.
385         * config/aarch64/aarch64-simd-builtins.def
386         (abs): Enable for all modes.
387         * config/aarch64/arm_neon.h
388         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
389         (vabs_f64): Add missing intrinsic.
391 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
393         * config/aarch64/arm_neon.h (vabs_s64): New function
395 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
397         PR target/57516
398         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
399         * config/avr/avr.md (adjust_len): Add `round'.
400         * config/avr/avr-protos.h (avr_out_round): New prototype.
401         (avr_out_plus): Add `out_label' argument.
402         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
403         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
404         Handle the case where `insn' is just a pattern.
405         (avr_out_bitop): Handle the case where `insn' is just a pattern.
406         (avr_out_round): New function.
407         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
409 2013-07-18  David Holsgrove <david.holsgrove@xilinx.com>
411         * config/microblaze/microblaze.c (microblaze_expand_prologue):
412         Add check for flag_stack_usage to handle -fstack-usage support
414 2013-07-18  Pat Haugen <pthaugen@us.ibm.com>
416         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
417         interaction for new Power8 flags and VSX.
419 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
421         PR middle-end/57698
422         * tree-inline.c (expand_call_inline): Emit errors during
423         early_inlining only if optimization is not turned on.
425 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
427         * passes.def: New.
429         * passes.c (init_optimization_passes): Move the construction of
430         the pass hierarchy into a new passes.def file.
432         * Makefile.in (passes.o): Add dependency on passes.def.
434 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
436         * passes.c (init_optimization_passes): Introduce macros for
437         constructing the tree of passes (INSERT_PASSES_AFTER,
438         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
439         TERMINATE_PASS_LIST).
441 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
442             Wei Mi  <wmi@google.com>
444         PR rtl-optimization/57878
445         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
446         top.
447         (reload_pseudo_compare_func): Check nregs first for reload
448         pseudos.
450 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
452         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
454 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
456         * read-rtl.c (validate_const_int): Once an invalid character is
457         seen, quit the loop.
459         * gengtype.c (write_roots): Similarly once we find the "deletable"
460         or "if_marked" option.
462 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
464         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
465         "xtab" and "sat".  Move value "clz" from here to ...
466         (attriubte "type"): ... here.
467         (satsi_<SAT:code>): Delete "insn" attribute.
468         (satsi_<SAT:code>_shift): Likewise.
469         (arm_zero_extendqisi2addsi): Likewise.
470         (arm_extendqisi2addsi): Likewise.
471         (clzsi2): Update for attribute changes.
472         (rbitsi2): Likewise.
473         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
474         attribute.
475         (arm_usatsihi): Likewise.
476         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
478 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
480         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
481         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
482         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
483         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
484         in alphabetical order.
485         (attribute "core_cycles"): Update for attribute changes.
486         (arm_addsi3): Likewise.
487         (addsi3_compare0): Likewise.
488         (addsi3_compare0_scratch): Likewise.
489         (addsi3_compare_op1): Likewise.
490         (addsi3_compare_op2): Likewise.
491         (compare_addsi2_op0): Likewise.
492         (compare_addsi2_op1): Likewise.
493         (addsi3_carryin_shift_<optab>): Likewise.
494         (subsi3_carryin_shift): Likewise.
495         (rsbsi3_carryin_shift): Likewise.
496         (arm_subsi3_insn): Likewise.
497         (subsi3_compare0): Likewise.
498         (subsi3_compare): Likewise.
499         (arm_andsi3_insn): Likewise.
500         (thumb1_andsi3_insn): Likewise.
501         (andsi3_compare0): Likewise.
502         (andsi3_compare0_scratch): Likewise.
503         (zeroextractsi_compare0_scratch
504         (andsi_not_shiftsi_si): Likewise.
505         (iorsi3_insn): Likewise.
506         (iorsi3_compare0): Likewise.
507         (iorsi3_compare0_scratch): Likewise.
508         (arm_xorsi3): Likewise.
509         (thumb1_xorsi3_insn): Likewise.
510         (xorsi3_compare0): Likewise.
511         (xorsi3_compare0_scratch): Likewise.
512         (satsi_<SAT:code>_shift): Likewise.
513         (rrx): Likewise.
514         (arm_shiftsi3): Likewise.
515         (shiftsi3_compare0): Likewise.
516         (not_shiftsi): Likewise.
517         (not_shiftsi_compare0): Likewise.
518         (not_shiftsi_compare0_scratch): Likewise.
519         (arm_one_cmplsi2): Likewise.
520         (thumb_one_complsi2): Likewise.
521         (notsi_compare0): Likewise.
522         (notsi_compare0_scratch): Likewise.
523         (thumb1_zero_extendhisi2): Likewise.
524         (arm_zero_extendhisi2): Likewise.
525         (arm_zero_extendhisi2_v6): Likewise.
526         (arm_zero_extendhisi2addsi): Likewise.
527         (thumb1_zero_extendqisi2): Likewise.
528         (thumb1_zero_extendqisi2_v6): Likewise.
529         (arm_zero_extendqisi2): Likewise.
530         (arm_zero_extendqisi2_v6): Likewise.
531         (arm_zero_extendqisi2addsi): Likewise.
532         (thumb1_extendhisi2): Likewise.
533         (arm_extendhisi2): Likewise.
534         (arm_extendhisi2_v6): Likewise.
535         (arm_extendqisi): Likewise.
536         (arm_extendqisi_v6): Likewise.
537         (arm_extendqisi2addsi): Likewise.
538         (thumb1_extendqisi2): Likewise.
539         (thumb1_movdi_insn): Likewise.
540         (arm_movsi_insn): Likewise.
541         (movsi_compare0): Likewise.
542         (movhi_insn_arch4): Likewise.
543         (movhi_bytes): Likewise.
544         (arm_movqi_insn): Likewise.
545         (thumb1_movqi_insn): Likewise.
546         (arm32_movhf): Likewise.
547         (thumb1_movhf): Likewise.
548         (arm_movsf_soft_insn): Likewise.
549         (thumb1_movsf_insn): Likewise.
550         (movdf_soft_insn): Likewise.
551         (thumb_movdf_insn): Likewise.
552         (arm_cmpsi_insn): Likewise.
553         (cmpsi_shiftsi): Likewise.
554         (cmpsi_shiftsi_swp): Likewise.
555         (arm_cmpsi_negshiftsi_si): Likewise.
556         (movsicc_insn): Likewise.
557         (movsfcc_soft_insn): Likewise.
558         (arith_shiftsi): Likewise.
559         (arith_shiftsi_compare0
560         (arith_shiftsi_compare0_scratch
561         (sub_shiftsi): Likewise.
562         (sub_shiftsi_compare0
563         (sub_shiftsi_compare0_scratch
564         (and_scc): Likewise.
565         (cond_move): Likewise.
566         (if_plus_move): Likewise.
567         (if_move_plus): Likewise.
568         (if_move_not): Likewise.
569         (if_not_move): Likewise.
570         (if_shift_move): Likewise.
571         (if_move_shift): Likewise.
572         (if_shift_shift): Likewise.
573         (if_not_arith): Likewise.
574         (if_arith_not): Likewise.
575         (cond_move_not): Likewise.
576         (thumb1_ashlsi3): Set type attribute.
577         (thumb1_ashrsi3): Likewise.
578         (thumb1_lshrsi3): Likewise.
579         (thumb1_rotrsi3): Likewise.
580         (shiftsi3_compare0_scratch): Likewise.
581         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
582         (neon_mov<mode>): Likewise.
583         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
584         attribute changes.
585         (thumb2_movsi_insn): Likewise.
586         (thumb2_cmpsi_neg_shiftsi): Likewise.
587         (thumb2_extendqisi_v6): Likewise.
588         (thumb2_zero_extendhisi2_v6): Likewise.
589         (thumb2_zero_extendqisi2_v6): Likewise.
590         (thumb2_shiftsi3_short): Likewise.
591         (thumb2_addsi3_compare0_scratch): Likewise.
592         (orsi_not_shiftsi_si): Likewise.
593         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
594         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
595         changes.
596         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
597         (1020alu_shift_op): Likewise.
598         (1020alu_shift_reg_op): Likewise.
599         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
600         (alu_shift_op): Likewise.
601         (alu_shift_reg_op): Likewise.
602         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
603         (11_alu_shift_op): Likewise.
604         (11_alu_shift_reg_op): Likewise.
605         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
606         (9_alu_shift_reg_op): Likewise.
607         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
608         changes.
609         (cortex_a15_alu_shift): Likewise.
610         (cortex_a15_alu_shift_reg): Likewise.
611         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
612         changes.
613         (cortex_a5_alu_shift): Likewise.
614         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
615         changes.
616         (cortex_a53_alu_shift): Likewise.
617         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
618         changes.
619         (cortex_a7_alu_reg): Likewise.
620         (cortex_a7_alu_shift): Likewise.
621         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
622         changes.
623         (cortex_a8_alu_shift): Likewise.
624         (cortex_a8_alu_shift_reg): Likewise.
625         (cortex_a8_mov): Likewise.
626         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
627         (cortex_a9_dp_shift): Likewise.
628         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
629         changes.
630         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
631         changes.
632         (cortex_r4_mov): Likewise.
633         (cortex_r4_alu_shift): Likewise.
634         (cortex_r4_alu_shift_reg): Likewise.
635         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
636         (526_alu_shift_op): Likewise.
637         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
638         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
639         (626te_alu_shift_op): Likewise.
640         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
641         (726te_alu_op): Likewise.
642         (726te_alu_shift_op): Likewise.
643         (726te_alu_shift_reg_op): Likewise.
644         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
645         (mp626_alu_shift_op): Likewise.
646         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
647         (pj4_alu_e1_conds): Likewise.
648         (pj4_alu): Likewise.
649         (pj4_alu_conds): Likewise.
650         (pj4_shift): Likewise.
651         (pj4_shift_conds): Likewise.
652         (pj4_alu_shift): Likewise.
653         (pj4_alu_shift_conds): Likewise.
654         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
655         changes.
656         (cortexa7_older_only): Likewise.
657         (cortexa7_younger): Likewise.
659 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
661         * ipa-pure-const.c (generate_summary): Rename to...
662         (pure_const_generate_summary): ... this.
664 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
666         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
668 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
670         PR target/57909
671         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
672         usage in HI mode.
674 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
676         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
677         enabled without -march=zEC12.
678         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
679         flags to be set.
681 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
683         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
684         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
685         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
686         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
687         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
688         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
689         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
690         ISA_HAS_FP4.
691         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
692         and ISA_HAS_NMADD3_NMSUB3.
693         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
694         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
695         (nmsub4<mode>, nmsub3<mode>): Likewise.
696         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
698 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
700         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
701         TARGET_MIPS5400 checking.
703 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
704             Peter Bergner  <bergner@vnet.ibm.com>
706         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
707         registers in the comment.
708         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
709         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
710         rather than FIRST_PSEUDO_REGISTERS.
712 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
714         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
715         enable extra ISA flags with TARGET_HTM.
717 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
719         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
720         Fix comment typos.
722 2013-07-15  Cong Hou  <congh@google.com>
724         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
725         in compare function for sorting.
727 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
729         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
730         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
731         * config/rs6000/rs6000.opt: Add -mhtm option.
732         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
733         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
734         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
735         __HTM__ if the HTM instructions are available.
736         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
737         htm_spr_reg_operand): New define_predicates.
738         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
739         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
740         Include htm.md.
741         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
742         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
743         HTM builtin functions.
744         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
745         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
746         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
747         (rs6000_builtin_mask_calculate): Likewise.
748         (rs6000_option_override_internal): Likewise.
749         (bdesc_htm): Add new HTM builtin support.
750         (htm_spr_num): New function.
751         (htm_spr_regno): Likewise.
752         (rs6000_htm_spr_icode): Likewise.
753         (htm_expand_builtin): Likewise.
754         (htm_init_builtins): Likewise.
755         (rs6000_expand_builtin): Add support for HTM builtin functions.
756         (rs6000_init_builtins): Likewise.
757         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
758         option.
759         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
760         (TARGET_HTM, MASK_HTM): Define macros.
761         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
762         (FIXED_REGISTERS): Likewise.
763         (CALL_USED_REGISTERS): Likewise.
764         (CALL_REALLY_USED_REGISTERS): Likewise.
765         (REG_ALLOC_ORDER): Likewise.
766         (enum reg_class): Likewise.
767         (REG_CLASS_NAMES): Likewise.
768         (REG_CLASS_CONTENTS): Likewise.
769         (REGISTER_NAMES): Likewise.
770         (ADDITIONAL_REGISTER_NAMES): Likewise.
771         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
772         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
773         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
774         * config/rs6000/htm.md: New file.
775         * config/rs6000/htmintrin.h: New file.
776         * config/rs6000/htmxlintrin.h: New file.
778 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
780         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
781         Define SYMBOL_TINY_GOT, update comment.
782         * config/aarch64/aarch64.c
783         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
784         (aarch64_expand_mov_immediate): Likewise.
785         (aarch64_print_operand): Likewise.
786         (aarch64_classify_symbol): Likewise.
787         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
788         (ldr_got_tiny): Define.
790 2013-07-13  Tobias Grosser  <tobias@grosser.es>
792         PR tree-optimization/54094
793         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
794           scheduling dimension for the parallelism check from the polyhedral
795           information in the AST.
796         * graphite-dependences.c (carries_deps): Do not assume the schedule is
797           in 2D + 1 form.
799 2013-07-13  Jason Merrill  <jason@redhat.com>
801         * print-tree.c (debug_vec_tree): Use debug_raw.
802         (debug_raw (vec<tree, va_gc> &)): New.
803         (debug_raw (vec<tree, va_gc> *)): New.
804         * tree.h: Declare them.
806 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
808         * ifcvt.c (ifcvt_after_combine): New static variable.
809         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
810         for size.
811         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
812         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
813         rest_of_handle_if_after_reload): Pass new argument for if_convert.
815 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
817         * config/mips/mips.c (mips_expand_call): Remove empty statement.
819 2013-07-12  Michael Matz  <matz@suse.de>
821         PR middle-end/55771
822         * convert.c (convert_to_real): Reject non-float inner types.
824 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
826         * config/aarch64/aarch64-protos.h
827         (aarch64_simd_immediate_valid_for_move): Remove.
828         * config/aarch64/aarch64.c (simd_immediate_info): New member.
829         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
830         cases.
831         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
833 2013-07-11  Steve Ellcey  <sellcey@mips.com>
835         * config/mips/mips.c (mips_conditional_register_usage): Do not
836         use t[0-7] registers in MIPS16 mode when optimizing for size.
838 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
840         * config/i386/i386.c (dispatch_function_versions): Fix array
841         indexing of function_version_info to match actual_versions.
843 2013-07-11  Teresa Johnson  <tejohnson@google.com>
845         * vec.h (struct va_gc): Move release out-of-line.
846         (va_gc::release): Call ggc_free on released vec.
848 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
850         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
851         Require GOT register as additional operand in UNSPEC.
852         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
853         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
854         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
855         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
856         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
857         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
858         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
860 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
862         PR target/57631
863         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
864         name seen by assembler/linker rather if available.
866 2013-07-11  Andreas Schwab  <schwab@suse.de>
868         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
870 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
872         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
874 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
876         * doc/tm.texi.in: Move hook documentation to ....
877         * target.def: ... here.
879         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
880         text on @hook line.
881         * doc/tm.texi: Regenerate.
883 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
885         PR c++/57869
886         * doc/invoke.texi: Document -Wconditionally-supported.
888 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
890         PR target/57844
891         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
892         of my_fp.
894 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
896         PR target/57506
897         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
898         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
899         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
900         Remove duplicate devices.
901         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
902         * config/avr/t-multilib: Regenerate.
903         * config/avr/avr-tables.opt: Regenerate.
904         * doc/avr-mmcu.texi: Regenerate.
906 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
908         PR target/56987
909         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
911 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
913         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
914         the cost of MULT when optimizing for size.
916 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
918         * config/cr16/cr16-protos.h: Don't include target.h.
920 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
922         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
923         adjust register size for TDmode and TFmode for VSX registers.
925 2013-07-08  Kai Tietz  <ktietz@redhat.com>
927         PR target/56892
928         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
929         hook_bool_const_tree_true.
931 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
933         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
934         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
935         * config/s390/s390.md: Define FPR*_REGNUM constants.
936         Fix FPR2_REGNUM constant (18 -> 17).
937         ("*trunc<BFP:mode><DFP_ALL:mode>2")
938         ("*trunc<DFP_ALL:mode><BFP:mode>2")
939         ("trunc<BFP:mode><DFP_ALL:mode>2")
940         ("trunc<DFP_ALL:mode><BFP:mode>2")
941         ("*extend<BFP:mode><DFP_ALL:mode>2")
942         ("*extend<DFP_ALL:mode><BFP:mode>2")
943         ("extend<BFP:mode><DFP_ALL:mode>2")
944         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
945         FPR4_REGNUM.
947 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
949         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
951 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
953         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
954         and cfun_fpr_bit_p to cfun_fpr_save_p.
955         (s390_frame_area, s390_register_info, s390_frame_info)
956         (s390_emit_prologue, s390_emit_epilogue)
957         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
958         register numbers.
959         * config/s390/s390.h: Define *_REGNUM macros for floating point
960         register numbers.
962 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
964         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
966 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
968         PR rtl-optimization/57786
969         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
970         and break out of the loop when it is set to false.
972 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
974         PR target/57819
975         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
976         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
977         (const_int 63)) 0)).
978         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
979         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
980         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
982         PR rtl-optimization/57829
983         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
984         mask bits outside of mode are just sign-extension from mode to HWI.
986 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
988         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
989         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
990         adjust_address instead of change_address to keep info about alignment.
991         (emit_strmov): Remove.
992         (emit_memmov): New function.
993         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
994         (expand_movmem_epilogue): Likewise and return updated rtx for
995         destination.
996         (expand_constant_movmem_prologue): Likewise and return updated rtx for
997         destination and source.
998         (decide_alignment): Refactor, handle vector_loop.
999         (ix86_expand_movmem): Likewise.
1000         (ix86_expand_setmem): Likewise.
1001         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1003 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
1005         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1006         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1008 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
1010         * config/i386/sse.md (sse_movlhps): Change alternative 3
1011         of operand 2 to "m".
1013 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
1015         PR target/57807
1016         * config/i386/sse.md (iptr): New mode attribute.
1017         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1018         (<sse>_vm<plusminus_insn><mode>3): Ditto.
1019         (<sse>_vmmul<mode>3): Ditto.
1020         (<sse>_vmdiv<mode>3): Ditto.
1021         (sse_vmrcpv4sf2): Ditto.
1022         (<sse>_vmsqrt<mode>2): Ditto.
1023         (sse_vmrsqrtv4sf2): Ditto.
1024         (<sse>_vm<code><mode>3): Ditto.
1025         (avx_vmcmp<mode>3): Ditto.
1026         (<sse>_vmmaskcmp<mode>3): Ditto.
1027         (<sse>_comi): Ditto.
1028         (<sse>_ucomi): Ditto.
1029         (*xop_vmfrcz_<mode>): Ditto.
1030         (*fmai_fmadd_<mode>): Ditto.
1031         (*fmai_fmsub_<mode>): Ditto.
1032         (*fmai_fnmadd_<mode>): Ditto.
1033         (*fmai_fnmsub_<mode>): Ditto.
1034         (*fma4i_vmfmadd_<mode>): Ditto.
1035         (*fma4i_vmfmsub_<mode>): Ditto.
1036         (*fma4i_vmfnmadd_<mode>): Ditto.
1037         (*fma4i_vmfnmsub_<mode>): Ditto.
1038         (*xop_vmfrcz_<mode>): Ditto.
1039         (sse_cvtps2pi): Ditto.
1040         (sse_cvttps2pi): Ditto.
1041         (sse_cvtss2si): Ditto.
1042         (sse_cvtss2si_2): Ditto.
1043         (sse_cvtss2siq_2): Ditto.
1044         (sse_cvttss2si): Ditto.
1045         (sse_cvttss2siq): Ditto.
1046         (sse_cvtsd2si): Ditto.
1047         (sse_cvtsd2si_2): Ditto.
1048         (sse_cvtsd2siq_2): Ditto.
1049         (sse_cvttsd2si): Ditto.
1050         (sse_cvttsd2siq): Ditto.
1051         (sse_cvtsd2ss): Ditto.
1052         (sse_cvtss2sd): Ditto.
1053         (avx2_pbroadcast<mode>): Ditto.
1054         (avx2_pbroadcast<mode>_1): Ditto.
1055         (*avx_vperm_broadcast_v4sf): Ditto.
1057         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1058         (sse_movlhps): Ditto.
1059         (sse_storehps): Ditto.
1060         (sse_loadhps): Ditto.
1061         (sse_storelps): Ditto.
1062         (sse_loadlps): Ditto.
1063         (*vec_concatv4sf): Ditto.
1064         (*vec_interleave_highv2df): Ditto.
1065         (*vec_interleave_lowv2df): Ditto.
1066         (*vec_extractv2df_1_sse): Ditto.
1067         (*vec_extractv2df_0_sse): Ditto.
1068         (sse2_storelpd): Ditto.
1069         (sse2_loadlpd): Ditto.
1070         (sse2_movsd): Ditto.
1071         (*vec_concatv4si): Ditto.
1072         (vec_concatv2di): Ditto.
1074         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1075         for Intel asm dialect.
1076         (mmx_punpcklwd): Ditto.
1077         (mmx_punpckldq): Ditto.
1079         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1080         for intel assembler dialect.
1082 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
1084         PR target/29776
1085         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1086         for BUILT_IN_C{LZ,LRSB}*.
1087         * tree.h (CASE_INT_FN): Add FN##IMAX case.
1088         * tree-vrp.c (extract_range_basic): Handle
1089         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
1090         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1091         fall thru to code calling set_value*.
1092         * builtins.c (expand_builtin): Remove *IMAX cases.
1093         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1094         if width is bigger than 2*HWI.
1096 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
1098         PR rtl-optimization/55342
1099         * lra-int.h (lra_subreg_reload_pseudos): New.
1100         * lra.c: Add undoing optional reloads to the block diagram.
1101         (lra_subreg_reload_pseudos): New.
1102         (lra_optional_reload_pseudos): Change comments.
1103         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
1104         lra_optional_reload_pseudos after undo transformations.
1105         * lra-assigns.c (pseudo_prefix_title): New.
1106         (lra_setup_reg_renumber): Use it.
1107         (spill_for): Ditto.  Check subreg reload pseudos too.
1108         (assign_by_spills): Consider subreg reload pseudos too.
1109         * lra-constraints.c (simplify_operand_subreg): Use
1110         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1111         (curr_insn_transform): Recognize and do optional reloads.
1112         (undo_optional_reloads): New.
1113         (lra_undo_inheritance): Call undo_optional_reloads.
1115 2013-07-05  Thomas Quinot  <quinot@adacore.com>
1117         * tree-complex.c (expand_complex_operations_1): Fix typo.
1119 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
1121         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1122         (tune_params): New member 'const vec_costs'.
1123         * config/aarch64/aarch64.c (generic_vector_cost): New.
1124         (generic_tunings): New member 'generic_vector_cost'.
1125         (aarch64_builtin_vectorization_cost): New.
1126         (aarch64_add_stmt_cost): New.
1127         (TARGET_VECTORIZE_ADD_STMT_COST): New.
1128         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1130 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
1132         PR target/57777
1133         * config/i386/predicates.md (vsib_address_operand): Disallow
1134         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1136 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
1138         PR middle-end/55030
1139         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1140         expand_builtin_setjmp_receiver.
1141         (expand_label): Adjust, call expand_builtin_setjmp_receiver
1142         with NULL for the label parameter.
1143         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1144         the frame-pointer.  Adjust comments.
1145         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1146         only if LABEL is non-NULL.
1148 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
1150         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1151         (ARM_ABI_AAPCS64): Ditto.
1152         (arm_abi): Ditto.
1153         (ARM_DEFAULT_ABI): Ditto.
1155 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
1157         * config/aarch64/aarch64-builtins.c
1158         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1159         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1160         (st1): Likewise.
1161         * config/aarch64/aarch64-simd.md
1162         (aarch64_ld1<VALL:mode>): New.
1163         (aarch64_st1<VALL:mode>): Likewise.
1164         * config/aarch64/arm_neon.h
1165         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1167 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
1169         * config/i386/i386.c (gate_insert_vzeroupper): Check if
1170         target ISA is AVX.
1171         (ix86_option_override_internal):Turn on all -mavx target flags by
1172         default as they are dependent on AVX anyway.
1174 2013-07-02  Cary Coutant  <ccoutant@google.com>
1176         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1177         deterministic hash.
1178         (loc_checksum_ordered): Likewise.
1179         (hash_loc_operands): Remove inline keyword.
1181 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
1183         PR tree-optimization/57741
1184         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1185         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1186         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1187         Allow REAL_CST step_exprs if flag_associative_math.
1188         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1190 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
1192         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1194 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
1196         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1198 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1200         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1201         encoding.
1202         (iorsi3_insn): Likewise.
1203         (arm_xorsi3): Likewise.
1205 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
1207         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
1208         to ...
1209         (attribute "type"): ... here, and prefix with "wmmx_".
1210         (attribute "core_cycles"): Update for attribute changes.
1211         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1212         (tbcstv4hi): Likewise.
1213         (tbcstv2si): Likewise.
1214         (iwmmxt_iordi3): Likewise.
1215         (iwmmxt_xordi3): Likewise.
1216         (iwmmxt_anddi3): Likewise.
1217         (iwmmxt_nanddi3): Likewise.
1218         (iwmmxt_arm_movdi): Likewise.
1219         (iwmmxt_movsi_insn): Likewise.
1220         (mov<mode>_internal): Likewise.
1221         (and<mode>3_iwmmxt): Likewise.
1222         (ior<mode>3_iwmmxt): Likewise.
1223         (xor<mode>3_iwmmxt): Likewise.
1224         (add<mode>3_iwmmxt): Likewise.
1225         (ssaddv8qi3): Likewise.
1226         (ssaddv4hi3): Likewise.
1227         (ssaddv2si3): Likewise.
1228         (usaddv8qi3): Likewise.
1229         (usaddv4hi3): Likewise.
1230         (usaddv2si3): Likewise.
1231         (sub<mode>3_iwmmxt): Likewise.
1232         (sssubv8qi3): Likewise.
1233         (sssubv4hi3): Likewise.
1234         (sssubv2si3): Likewise.
1235         (ussubv8qi3): Likewise.
1236         (ussubv4hi3): Likewise.
1237         (ussubv2si3): Likewise.
1238         (mulv4hi3_iwmmxt): Likewise.
1239         (smulv4hi3_highpart): Likewise.
1240         (umulv4hi3_highpart): Likewise.
1241         (iwmmxt_wmacs): Likewise.
1242         (iwmmxt_wmacsz): Likewise.
1243         (iwmmxt_wmacu): Likewise.
1244         (iwmmxt_wmacuz): Likewise.
1245         (iwmmxt_clrdi): Likewise.
1246         (iwmmxt_clrv8qi): Likewise.
1247         (iwmmxt_clr4hi): Likewise.
1248         (iwmmxt_clr2si): Likewise.
1249         (iwmmxt_uavgrndv8qi3): Likewise.
1250         (iwmmxt_uavgrndv4hi3): Likewise.
1251         (iwmmxt_uavgv8qi3): Likewise.
1252         (iwmmxt_uavgv4hi3): Likewise.
1253         (iwmmxt_tinsrb): Likewise.
1254         (iwmmxt_tinsrh): Likewise.
1255         (iwmmxt_tinsrw): Likewise.
1256         (iwmmxt_textrmub): Likewise.
1257         (iwmmxt_textrmsb): Likewise.
1258         (iwmmxt_textrmuh): Likewise.
1259         (iwmmxt_textrmsh): Likewise.
1260         (iwmmxt_textrmw): Likewise.
1261         (iwmxxt_wshufh): Likewise.
1262         (eqv8qi3): Likewise.
1263         (eqv4hi3): Likewise.
1264         (eqv2si3): Likewise.
1265         (gtuv8qi3): Likewise.
1266         (gtuv4hi3): Likewise.
1267         (gtuv2si3): Likewise.
1268         (gtv8qi3): Likewise.
1269         (gtv4hi3): Likewise.
1270         (gtv2si3): Likewise.
1271         (smax<mode>3_iwmmxt): Likewise.
1272         (umax<mode>3_iwmmxt): Likewise.
1273         (smin<mode>3_iwmmxt): Likewise.
1274         (umin<mode>3_iwmmxt): Likewise.
1275         (iwmmxt_wpackhss): Likewise.
1276         (iwmmxt_wpackwss): Likewise.
1277         (iwmmxt_wpackdss): Likewise.
1278         (iwmmxt_wpackhus): Likewise.
1279         (iwmmxt_wpackwus): Likewise.
1280         (iwmmxt_wpackdus): Likewise.
1281         (iwmmxt_wunpckihb): Likewise.
1282         (iwmmxt_wunpckihh): Likewise.
1283         (iwmmxt_wunpckihw): Likewise.
1284         (iwmmxt_wunpckilb): Likewise.
1285         (iwmmxt_wunpckilh): Likewise.
1286         (iwmmxt_wunpckilw): Likewise.
1287         (iwmmxt_wunpckehub): Likewise.
1288         (iwmmxt_wunpckehuh): Likewise.
1289         (iwmmxt_wunpckehuw): Likewise.
1290         (iwmmxt_wunpckehsb): Likewise.
1291         (iwmmxt_wunpckehsh): Likewise.
1292         (iwmmxt_wunpckehsw): Likewise.
1293         (iwmmxt_wunpckelub): Likewise.
1294         (iwmmxt_wunpckeluh): Likewise.
1295         (iwmmxt_wunpckeluw): Likewise.
1296         (iwmmxt_wunpckelsb): Likewise.
1297         (iwmmxt_wunpckelsh): Likewise.
1298         (iwmmxt_wunpckelsw): Likewise.
1299         (ror<mode>3): Likewise.
1300         (ashr<mode>3_iwmmxt): Likewise.
1301         (lshr<mode>3_iwmmxt): Likewise.
1302         (ashl<mode>3_iwmmxt): Likewise.
1303         (ror<mode>3_di): Likewise.
1304         (ashr<mode>3_di): Likewise.
1305         (lshr<mode>3_di): Likewise.
1306         (ashl<mode>3_di): Likewise.
1307         (iwmmxt_wmadds): Likewise.
1308         (iwmmxt_wmaddu): Likewise.
1309         (iwmmxt_tmia): Likewise.
1310         (iwmmxt_tmiaph): Likewise.
1311         (iwmmxt_tmiabb): Likewise.
1312         (iwmmxt_tmiatb): Likewise.
1313         (iwmmxt_tmiabt): Likewise.
1314         (iwmmxt_tmiatt): Likewise.
1315         (iwmmxt_tmovmskb): Likewise.
1316         (iwmmxt_tmovmskh): Likewise.
1317         (iwmmxt_tmovmskw): Likewise.
1318         (iwmmxt_waccb): Likewise.
1319         (iwmmxt_wacch): Likewise.
1320         (iwmmxt_waccw): Likewise.
1321         (iwmmxt_waligni): Likewise.
1322         (iwmmxt_walignr): Likewise.
1323         (iwmmxt_walignr0): Likewise.
1324         (iwmmxt_walignr1): Likewise.
1325         (iwmmxt_walignr2): Likewise.
1326         (iwmmxt_walignr3): Likewise.
1327         (iwmmxt_wsadb): Likewise.
1328         (iwmmxt_wsadh): Likewise.
1329         (iwmmxt_wsadbz): Likewise.
1330         (iwmmxt_wsadhz): Likewise.
1331         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1332         (iwmmxt_wabsdiffb): Likewise.
1333         (iwmmxt_wabsdiffh): Likewise.
1334         (iwmmxt_wabsdiffw): Likewise.
1335         (iwmmxt_waddsubhx): Likewise
1336         (iwmmxt_wsubaddhx): Likewise.
1337         (addc<mode>3): Likewise.
1338         (iwmmxt_avg4): Likewise.
1339         (iwmmxt_avg4r): Likewise.
1340         (iwmmxt_wmaddsx): Likewise.
1341         (iwmmxt_wmaddux): Likewise.
1342         (iwmmxt_wmaddsn): Likewise.
1343         (iwmmxt_wmaddun): Likewise.
1344         (iwmmxt_wmulwsm): Likewise.
1345         (iwmmxt_wmulwum): Likewise.
1346         (iwmmxt_wmulsmr): Likewise.
1347         (iwmmxt_wmulumr): Likewise.
1348         (iwmmxt_wmulwsmr): Likewise.
1349         (iwmmxt_wmulwumr): Likewise.
1350         (iwmmxt_wmulwl): Likewise.
1351         (iwmmxt_wqmulm): Likewise.
1352         (iwmmxt_wqmulwm): Likewise.
1353         (iwmmxt_wqmulmr): Likewise.
1354         (iwmmxt_wqmulwmr): Likewise.
1355         (iwmmxt_waddbhusm): Likewise.
1356         (iwmmxt_waddbhusl): Likewise.
1357         (iwmmxt_wqmiabb): Likewise.
1358         (iwmmxt_wqmiabt): Likewise.
1359         (iwmmxt_wqmiatb): Likewise.
1360         (iwmmxt_wqmiatt): Likewise.
1361         (iwmmxt_wqmiabbn): Likewise.
1362         (iwmmxt_wqmiabtn): Likewise.
1363         (iwmmxt_wqmiatbn): Likewise.
1364         (iwmmxt_wqmiattn): Likewise.
1365         (iwmmxt_wmiabb): Likewise.
1366         (iwmmxt_wmiabt): Likewise.
1367         (iwmmxt_wmiatb): Likewise.
1368         (iwmmxt_wmiatt): Likewise.
1369         (iwmmxt_wmiabbn): Likewise.
1370         (iwmmxt_wmiabtn): Likewise.
1371         (iwmmxt_wmiatbn): Likewise.
1372         (iwmmxt_wmiattn): Likewise.
1373         (iwmmxt_wmiawbb): Likewise.
1374         (iwmmxt_wmiawbt): Likewise.
1375         (iwmmxt_wmiawtb): Likewise.
1376         (iwmmxt_wmiawtt): Likewise.
1377         (iwmmxt_wmiawbbn): Likewise.
1378         (iwmmxt_wmiawbtn): Likewise.
1379         (iwmmxt_wmiawtbn): Likewise.
1380         (iwmmxt_wmiawttn): Likewise.
1381         (iwmmxt_wmerge): Likewise.
1382         (iwmmxt_tandc<mode>3): Likewise.
1383         (iwmmxt_torc<mode>3): Likewise.
1384         (iwmmxt_torvsc<mode>3): Likewise.
1385         (iwmmxt_textrc<mode>3): Likewise.
1386         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1387         (wmmxt_pack): Likewise.
1388         (wmmxt_mult_c1): Likewise.
1389         (wmmxt_mult_c2): Likewise.
1390         (wmmxt_alu_c1): Likewise.
1391         (wmmxt_alu_c2): Likewise.
1392         (wmmxt_alu_c3): Likewise.
1393         (wmmxt_transfer_c1): Likewise.
1394         (wmmxt_transfer_c2): Likewise.
1395         (wmmxt_transfer_c3): Likewise.
1396         (marvell_f_iwmmxt_wstr): Likewise.
1397         (marvell_f_iwmmxt_wldr): Likewise.
1399 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
1401         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1403 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1405         Revert:
1406         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1407         * lra-constraints.c (need_for_split_p): Check call used hard regs
1408         living through calls.
1410         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1411         call used regs for call insn.
1413 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
1415         PR target/57736
1416         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1417         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1419 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1421         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1423 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1425         * lra-constraints.c (need_for_split_p): Check call used hard regs
1426         living through calls.
1428 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
1430         PR target/57744
1431         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1432         to tie with any other modes.  Eliminate Altivec vector mode tests,
1433         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
1434         code, to return 0 if testing MODE2 for a condition, if we've
1435         already tested MODE1 for the same condition.
1437 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1439         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1440         layout.
1442 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1444         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1445         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1447 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1449         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1450         Define.
1451         (aarch64_symbolic_constant_p): Remove.
1452         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1453         static.  Fix line length and white space.
1454         (aarch64_symbolic_constant_p): Remove.
1455         * config/aarch64/predicates.md (aarch64_valid_symref):
1456         Use aarch64_classify_symbol_expression.
1458 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1460         * config/arm/constraints.md (Ts): New constraint.
1461         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1462         16-bit encodings.
1463         (compare_scc): Use "Ts" constraint for operand 0.
1464         (ior_scc_scc): Likewise.
1465         (and_scc_scc): Likewise.
1466         (and_scc_scc_nodom): Likewise.
1467         (ior_scc_scc_cmp): Likewise for operand 7.
1468         (and_scc_scc_cmp): Likewise.
1469         * config/arm/thumb2.md (thumb2_movsi_insn):
1470         Add alternatives for 16-bit encodings.
1471         (thumb2_movhi_insn): Likewise.
1472         (thumb2_movsicc_insn): Likewise.
1473         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
1474         (thumb2_negscc): Use "Ts" constraint.
1475         Move mvn instruction outside cond_exec block.
1476         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1477         for 16-bit encodings.
1479 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1481         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1482         encoding.
1483         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1484         (mulsi3subsi): Likewise.
1485         (mulsidi3adddi): Likewise.
1486         (mulsidi3_v6): Likewise.
1487         (umulsidi3_v6): Likewise.
1488         (umulsidi3adddi_v6): Likewise.
1489         (smulsi3_highpart_v6): Likewise.
1490         (umulsi3_highpart_v6): Likewise.
1491         (mulhisi3tb): Likewise.
1492         (mulhisi3bt): Likewise.
1493         (mulhisi3tt): Likewise.
1494         (maddhisi4): Likewise.
1495         (maddhisi4tb): Likewise.
1496         (maddhisi4tt): Likewise.
1497         (maddhidi4): Likewise.
1498         (maddhidi4tb): Likewise.
1499         (maddhidi4tt): Likewise.
1500         (zeroextractsi_compare0_scratch): Likewise.
1501         (insv_zero): Likewise.
1502         (insv_t2): Likewise.
1503         (anddi_notzesidi_di): Likewise.
1504         (anddi_notsesidi_di): Likewise.
1505         (andsi_notsi_si): Likewise.
1506         (iordi_zesidi_di): Likewise.
1507         (xordi_zesidi_di): Likewise.
1508         (andsi_iorsi3_notsi): Likewise.
1509         (smax_0): Likewise.
1510         (smax_m1): Likewise.
1511         (smin_0): Likewise.
1512         (not_shiftsi): Likewise.
1513         (unaligned_loadsi): Likewise.
1514         (unaligned_loadhis): Likewise.
1515         (unaligned_loadhiu): Likewise.
1516         (unaligned_storesi): Likewise.
1517         (unaligned_storehi): Likewise.
1518         (extv_reg): Likewise.
1519         (extzv_t2): Likewise.
1520         (divsi3): Likewise.
1521         (udivsi3): Likewise.
1522         (arm_zero_extendhisi2addsi): Likewise.
1523         (arm_zero_extendqisi2addsi): Likewise.
1524         (compareqi_eq0): Likewise.
1525         (arm_extendhisi2_v6): Likewise.
1526         (arm_extendqisi2addsi): Likewise.
1527         (arm_movt): Likewise.
1528         (thumb2_ldrd): Likewise.
1529         (thumb2_ldrd_base): Likewise.
1530         (thumb2_ldrd_base_neg): Likewise.
1531         (thumb2_strd): Likewise.
1532         (thumb2_strd_base): Likewise.
1533         (thumb2_strd_base_neg): Likewise.
1534         (arm_negsi2): Add alternative for 16-bit encoding.
1535         (arm_one_cmplsi2): Likewise.
1537 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1539         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1540         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1541         (movdfcc): Likewise.
1542         * config/arm/vfp.md (*thumb2_movsf_vfp):
1543         Disable predication for arm_restrict_it.
1544         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1545         (*thumb2_movdfcc_vfp): Likewise.
1546         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1547         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1548         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1549         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1550         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1551         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1552         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1553         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1554         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1555         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1556         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1557         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1558         Disable predication for arm_restrict_it.
1560 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
1562         * config/i386/bmiintrin.h (_bextr_u32): New.
1563         (_bextr_u64): Ditto.
1565 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1567         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1568         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1569         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1570         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1571         * config/mips/n32-elf.h: ...this new file.
1573 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
1575         PR target/57224
1576         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1577         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1579 2013-06-27  Catherine Moore <clm@codesourcery.com>
1581         * config/mips/mips-tables.opt: Regenerate.
1582         * config/mips/mips-cpus.def: Add m14ke and m14kec.
1583         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1584         * doc/invoke.texi: Add -m14kc.
1586 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
1588         PR target/57623
1589         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1590         constraints of operand 1 and 2.
1592         PR target/57623
1593         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1594         to match RTL canonicalization.  Swap predicates and
1595         constraints of operand 1 and 2.
1597 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
1599         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1600         Process OP_INOUT regs for splitting too.
1602 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
1604         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1605         decl before the loop, initialize to NULL.
1606         (vectorizable_load): Initialize ptr_incr to NULL.
1608 2013-06-27  Martin Jambor  <mjambor@suse.cz>
1610         PR lto/57208
1611         * ipa-ref.h (ipa_maybe_record_reference): Declare.
1612         * ipa-ref.c (ipa_maybe_record_reference): New function.
1613         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1614         * ipa-cp.c (create_specialized_node): Record potential references from
1615         aggvals.
1616         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1618 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
1620         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1621         parameter 'mode' of type 'enum machine_mode mode'; change to pass
1622         'mode' to force_reg.
1623         (aarch64_add_offset): Update calls to aarch64_force_temporary.
1624         (aarch64_expand_mov_immediate): Likewise.
1626 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
1628         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1629         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1631 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1633         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1634         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1635         (struct machine_function): Add tbegin_p.
1636         (s390_canonicalize_comparison): Fold CC mode compares to
1637         conditional jump if possible.
1638         (s390_emit_jump): Return the emitted jump.
1639         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1640         Handle CCRAWmode compares.
1641         (s390_option_override): Default to -mhtm if available.
1642         (s390_reg_clobbered_rtx): Handle floating point regs as well.
1643         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1644         FPRs instead of df_regs_ever_live_p.
1645         (s390_optimize_nonescaping_tx): New function.
1646         (s390_init_frame_layout): Extend clobbered_regs array to cover
1647         FPRs as well.
1648         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1649         (s390_expand_tbegin): New function.
1650         (enum s390_builtin): New enum definition.
1651         (code_for_builtin): New array definition.
1652         (s390_init_builtins): New function.
1653         (s390_expand_builtin): New function.
1654         (TARGET_INIT_BUILTINS): Define.
1655         (TARGET_EXPAND_BUILTIN): Define.
1656         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1657         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1658         (s390_alc_comparison): Likewise.
1659         * config/s390/s390-modes.def: Add CCRAWmode.
1660         * config/s390/s390.h (processor_flags): Add PF_TX.
1661         (TARGET_CPU_HTM): Define macro.
1662         (TARGET_HTM): Define macro.
1663         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1664         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1665         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1666         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1667         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
1668         (TBEGIN_MASK, TBEGINC_MASK): New constants.
1669         ("*cc_to_int"): Move up.
1670         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1671         constants other than 0.
1672         ("*ccraw_to_int"): New insn and splitter definition.
1673         ("tbegin", "tbegin_nofloat", "tbegin_retry")
1674         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1675         ("tx_assist"): New expander.
1676         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1677         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1678         * config/s390/s390.opt: Add -mhtm option.
1679         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1680         * config/s390/htmxlintrin.h: New file.
1681         * config/s390/htmintrin.h: New file.
1682         * config/s390/s390intrin.h: New file.
1683         * doc/extend.texi: Document htm builtins.
1684         * config.gcc: Add the new header files to extra_headers.
1686 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
1688         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
1689         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
1691 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1692             Pat Haugen <pthaugen@us.ibm.com>
1693             Peter Bergner <bergner@vnet.ibm.com>
1695         * config/rs6000/power8.md: New.
1696         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1697         setting for power8 entry.
1698         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1699         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1700         test for Power4/Power5 only.
1701         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1702         support.
1703         (force_new_group): Adjust comment.
1704         * config/rs6000/rs6000.md: Include power8.md.
1706 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
1708         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1709         * config/arm/arm-protos.h (arm_max_conditional_execute): New
1710         declaration.
1711         (tune_params): Update comment.
1712         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1713         (arm_max_conditional_execute): New function.
1714         (thumb2_final_prescan_insn): Use max_insn_skipped and
1715         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1717 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
1719         PR tree-optimization/57705
1720         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1721         SSA_NAME step, provided that it is not defined inside the loop.
1722         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
1723         (get_initial_def_for_induction): Handle SSA_NAME IV step.
1725 2013-06-25  Martin Jambor  <mjambor@suse.cz>
1727         PR middle-end/57670
1728         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1729         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1730         calls in the dump.
1731         (ipa_note_param_call): Initialize member_ptr flag.
1732         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1733         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1734         (ipa_write_indirect_edge_info): Stream member_ptr flag.
1735         (ipa_read_indirect_edge_info): Likewise.
1737 2013-06-25  Richard Biener  <rguenther@suse.de>
1739         PR middle-end/56977
1740         * passes.c (init_optimization_passes): Move pass_fold_builtins
1741         and pass_dce earlier with -Og.
1743 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
1745         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1746         <BIT_FIELD_REF>: Remove trailing TAB.
1747         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1748         remove blank line.
1750 2013-06-24  Martin Jambor  <mjambor@suse.cz>
1752         PR tree-optimization/57358
1753         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1754         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1755         (ipa_analyze_params_uses): Generate pessimistic info when true.
1757 2013-06-24  Martin Jambor  <mjambor@suse.cz>
1759         PR tree-optimization/57539
1760         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1761         global.inlined_to of the new node to it.  All callers changed.
1762         * ipa-inline-transform.c (clone_inlined_nodes): New variable
1763         inlining_into, pass it to cgraph_clone_node.
1764         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1765         ipa_free_edge_args_substructures.
1766         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1767         rdesc linked list.  Do not assert rdesc edges have inlined caller.
1768         Assert we have found an rdesc in the rdesc list.
1770 2013-06-24  Richard Biener  <rguenther@suse.de>
1772         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
1773         (pointer_set_lookup): Declare.
1774         (class pointer_map): New template class implementing a
1775         generic pointer to T map.
1776         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1777         pointer_map<T>::contains, pointer_map<T>::insert,
1778         pointer_map<T>::traverse): New functions.
1779         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1780         (pointer_set_lookup): New function.
1781         (pointer_set_contains): Use pointer_set_lookup.
1782         (pointer_set_insert): Likewise.
1783         (insert_aux): Remove.
1784         (struct pointer_map_t): Embed a pointer_set_t.
1785         (pointer_map_create): Adjust.
1786         (pointer_map_destroy): Likewise.
1787         (pointer_map_contains): Likewise.
1788         (pointer_map_insert): Likewise.
1789         (pointer_map_traverse): Likewise.
1790         * tree-streamer.h (struct streamer_tree_cache_d): Use a
1791         pointer_map<unsigned> instead of a pointer_map_t.
1792         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1793         (streamer_tree_cache_lookup): Likewise.
1794         (streamer_tree_cache_create): Likewise.
1795         (streamer_tree_cache_delete): Likewise.
1796         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1797         pointer_map<unsigned> instead of a pointer_map_t.
1798         (lto_init_tree_ref_encoder): Adjust.
1799         (lto_destroy_tree_ref_encoder): Likewise.
1800         * lto-section-out.c (lto_output_decl_index): Likewise.
1801         (lto_record_function_out_decl_state): Likewise.
1802         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1804 2013-06-24  Richard Biener  <rguenther@suse.de>
1806         PR tree-optimization/57488
1807         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1809 2013-06-24  Alan Modra  <amodra@gmail.com>
1811         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1812         (gen_easy_altivec_constant): Likewise.
1813         * config/rs6000/predicates.md (easy_vector_constant_add_self,
1814         easy_vector_constant_msb): Likewise.
1816 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
1818         PR target/57688
1819         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1820         add missing return true.
1822 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
1824         PR target/52483
1825         * config/sh/predicates.md (general_extend_operand): Invoke
1826         general_movsrc_operand for memory operands.
1827         (general_movsrc_operand): Allow reg+reg addressing, do not use
1828         general_operand for memory operands.
1830 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
1832         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
1833         when current target options does not apply.
1834         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
1835         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
1836         * config/i386/bmiintrin.h: Pass appropriate target
1837         attributes to header.
1838         * config/i386/mmintrin.h: Ditto.
1839         * config/i386/nmmintrin.h: Ditto.
1840         * config/i386/avx2intrin.h: Ditto.
1841         * config/i386/fxsrintrin.h: Ditto.
1842         * config/i386/tbmintrin.h: Ditto.
1843         * config/i386/xsaveintrin.h: Ditto.
1844         * config/i386/f16cintrin.h: Ditto.
1845         * config/i386/xtestintrin.h: Ditto.
1846         * config/i386/xsaveoptintrin.h: Ditto.
1847         * config/i386/bmi2intrin.h: Ditto.
1848         * config/i386/lzcntintrin.h: Ditto.
1849         * config/i386/smmintrin.h: Ditto.
1850         * config/i386/wmmintrin.h: Ditto.
1851         * config/i386/x86intrin.h: Remove all header include guards.
1852         * config/i386/prfchwintrin.h: Ditto.
1853         * config/i386/pmmintrin.h: Ditto.
1854         * config/i386/tmmintrin.h: Ditto.
1855         * config/i386/xmmintrin.h: Ditto.
1856         * config/i386/popcntintrin.h: Ditto.
1857         * config/i386/rdseedintrin.h: Ditto.
1858         * config/i386/ammintrin.h: Ditto.
1859         * config/i386/emmintrin.h: Ditto.
1860         * config/i386/immintrin.h: Remove all header include guards.
1861         * config/i386/fma4intrin.h: Ditto.
1862         * config/i386/lwpintrin.h: Ditto.
1863         * config/i386/xopintrin.h: Ditto.
1864         * config/i386/ia32intrin.h: Ditto.
1865         * config/i386/avxintrin.h: Ditto.
1866         * config/i386/rtmintrin.h: Ditto.
1867         * config/i386/fmaintrin.h: Ditto.
1868         * config/i386/mm3dnow.h: Ditto.
1870 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
1872         * common/config/i386/i386-common.c: Handle LZCNT.
1874 2013-06-22  Andi Kleen  <ak@linux.intel.com>
1876         * doc/extend.texi: Use __atomic_store_n instead of
1877         __atomic_store in HLE example.
1879 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
1881         * config/sh/sh.c: Remove <cstdlib> workaround.
1883 2013-06-21  Andi Kleen  <ak@linux.intel.com>
1885         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
1887 2013-06-21  Andi Kleen  <ak@linux.intel.com>
1889         * doc/extend.texi: Document that __atomic_clear and
1890           __atomic_test_and_set should only be used with bool.
1892 2013-06-20  Jan Hubicka  <jh@suse.cz>
1894         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
1895         types_same_for_odr.
1896         * tree.c (decls_same_for_odr): New function.
1897         (same_for_edr): New function.
1898         (types_same_for_odr): New function.
1899         (get_binfo_at_offset): Use it.
1900         * tree.h (types_same_for_odr): Declare.
1902 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
1903             Jason Merrill  <jason@redhat.com>
1905         * system.h: Include <cstdlib> as well as <stdlib.h>.
1907 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
1909         PR target/57655
1910         * config/i386/i386.c (construct_container): Report error if
1911         long double is used with disabled x87 float returns.
1913 2013-06-20  Jan Hubicka  <jh@suse.cz>
1915         * lto-cgraph.c (input_symtab): Do not set cgraph state.
1917 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
1919         PR rtl-optimization/57425
1920         PR rtl-optimization/57569
1921         * alias.c (write_dependence_p): Remove parameters mem_mode and
1922         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
1923         Changed all callers.
1924         (canon_anti_dependence): Get comments and semantics in sync.
1925         Add parameter mem_canonicalized.  Changed all callers.
1926         * rtl.h (canon_anti_dependence): Update prototype.
1928 2013-06-20  Richard Biener  <rguenther@suse.de>
1930         * data-streamer-in.c (streamer_read_uhwi): Optimize single
1931         byte case, inline streamer_read_uchar and defer section
1932         overrun check.
1934 2013-06-20  Richard Biener  <rguenther@suse.de>
1936         PR tree-optimization/57584
1937         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1938         SSA names into the expanded expression that take part in
1939         abnormal coalescing.
1941 2013-06-19  Sharad Singhai  <singhai@google.com>
1943         * gcov.c (print_usage): Handle new option.
1944         (process_args): Ditto.
1945         (get_gcov_intermediate_filename): New function.
1946         (output_intermediate_file): New function.
1947         (output_gcov_file): New function
1948         (generate_results): Handle new option.
1949         (release_function): Relase demangled name.
1950         (read_graph_file): Handle demangled name.
1951         (output_lines): Ditto.
1952         * doc/gcov.texi: Document gcov intermediate format.
1954 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
1956         PR bootstrap/57604
1957         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1958         (lra_emit_add): Use the functions.  Add comment about Y as an
1959         address segment.
1961 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
1963         PR driver/57652
1964         * collect2.c (collect_atexit): New.
1965         (collect_exit): Delete.
1966         (main): Register collect_atexit with atexit.
1967         (collect_wait): Change collect_exit to exit.
1968         (do_wait): Same.
1969         * collect2.h (collect_exit): Delete.
1970         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1972 2013-06-19  Wei Mi  <wmi@google.com>
1974         PR rtl-optimization/57518
1975         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1976         if regno is used in paradoxical subreg.
1977         (update_equiv_regs): Check pdx_subregs[regno] before
1978         set a reg to be equivalent with a mem.
1980 2013-06-19  Matthias Klose  <doko@ubuntu.com>
1982         PR driver/57651
1983         * file-find.h (find_a_file): Add a mode parameter.
1984         * file-find.c (find_a_file): Likewise.
1985         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1986         with X_OK for the executables.
1987         * collect2.c (main): Call find_a_file with X_OK.
1989 2013-06-19  Steve Ellcey  <sellcey@mips.com>
1991         PR target/56942
1992         * config/mips/mips.md (casesi_internal_mips16_<mode>):
1993         Use NEXT_INSN instead of next_real_insn.
1995 2013-06-19  Jan Hubicka  <jh@suse.cz>
1997         * cgraph.h (const_value_known_p): Replace by ...
1998         (ctor_for_folding): .. this one.
1999         * cgraphunit.c (process_function_and_variable_attributes): Use it.
2000         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2001         * expr.c (expand_expr_real_1): Likewise.
2002         (string_constant): Likewise.
2003         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2004         * ipa.c (process_references): Likewise.
2005         (symtab_remove_unreachable_nodes): Likewise.
2006         * ipa-inline-analysis.c (param_change_prob): Likewise.
2007         * gimple-fold.c (canonicalize_constructor_val): Likewise.
2008         (get_base_constructor): Likwise.
2009         * varpool.c (varpool_remove_node): Likewise.
2010         (varpool_remove_initializer): LIkewise.
2011         (dump_varpool_node): LIkwise.
2012         (const_value_known_p): Rewrite to ...
2013         (ctor_for_folding): ... this one.
2015 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
2017         PR driver/57651
2018         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2019         PERSONALITY in $PATH derived prefixes.
2021 2013-06-19  Jeff Law  <law@redhat.com>
2023         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2024         in comment.
2026         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2027         (simplify_bitwise_binary): Use it to simpify certain binary ops on
2028         booleans.
2030 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
2032         * config/arm/vfp.md: Move VFP instruction classification documentation
2033         to ...
2034         * config/arm/arm.md: ... here.  Update instruction classification
2035         documentation.
2037 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
2039         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2040         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2041         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
2043 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2045         PR target/57609
2046         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2047         with NEXT_INSN.  Use tablejump_p to check for jump table data
2048         insns.
2050 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
2052         PR c++/56544
2053         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2054         that now in C++ the value is correct per the C++ standards.
2056 2013-06-19  Richard Biener  <rguenther@suse.de>
2058         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2059         for global context.
2061 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2063         Revert:
2064         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2066         PR target/57609
2067         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2068         with next_active_insn.
2070 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
2072         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2073         functions are inlined during failures to flag an error.
2074         * tree-inline.c (expand_call_inline): Allow the error to be flagged
2075         in early inline pass.
2077 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2079         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2080         in comments.
2082 2013-06-18  Julian Brown  <julian@codesourcery.com>
2084         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2085         Permit virtual register pre-reload if !strict.
2086         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2087         change.
2088         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2089         prototype.
2090         * config/arm/neon.md (movmisalign<mode>): Use
2091         neon_perm_struct_or_reg_operand instead of
2092         neon_struct_or_register_operand.
2093         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2094         neon_permissive_struct_operand instead of neon_struct_operand.
2095         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2096         neon_vector_mem_operand.
2097         * config/arm/predicates.md (neon_struct_operand): Adjust call to
2098         neon_vector_mem_operand.
2099         (neon_permissive_struct_operand): New.
2100         (neon_struct_or_register_operand): Rename to...
2101         (neon_perm_struct_or_reg_operand): This. Adjust call to
2102         neon_vector_mem_operand.
2104 2013-06-18  Richard Biener  <rguenther@suse.de>
2106         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2107         * lto-streamer.h: Include pointer-set.h.
2108         (struct lto_decl_slot): Remove.
2109         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2110         Remove next_index entry.
2111         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2112         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2113         (lto_init_tree_ref_encoder): Adjust.
2114         (lto_destroy_tree_ref_encoder): Likewise.
2115         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2116         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2117         (lto_output_decl_index): Adjust.
2118         (lto_new_out_decl_state): Likewise.
2119         (lto_record_function_out_decl_state): Likewise.
2120         * lto-streamer-out.c (copy_function): Likewise.
2122 2013-06-18  Richard Biener  <rguenther@suse.de>
2124         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2125         * cgraphunit.c: Include cfgloop.h.
2126         (init_lowered_empty_function): Initialize the loop tree.
2127         (assemble_thunk): Insert new BBs into loops.
2129 2013-06-18  Richard Biener  <rguenther@suse.de>
2131         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2132         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2133         the map from cache entry to cache index optional.
2134         (streamer_tree_cache_replace_tree): Adjust accordingly.
2135         (streamer_tree_cache_append): Likewise.
2136         (streamer_tree_cache_delete): Likewise.
2137         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2138         streamer cache map from cache entry to cache index.
2139         * lto-streamer-out.c (create_output_block): Adjust.
2141 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
2143         * config/arm/arm.md (attribute "insn"): Move multiplication and
2144         division attributes to...
2145         (attribute "type"): ... here.  Remove mult.
2146         (attribute "mul32"): New attribute.
2147         (attribute "mul64"): Add umaal.
2148         (*arm_mulsi3): Update attributes.
2149         (*arm_mulsi3_v6): Likewise.
2150         (*thumb_mulsi3): Likewise.
2151         (*thumb_mulsi3_v6): Likewise.
2152         (*mulsi3_compare0): Likewise.
2153         (*mulsi3_compare0_v6): Likewise.
2154         (*mulsi_compare0_scratch): Likewise.
2155         (*mulsi_compare0_scratch_v6): Likewise.
2156         (*mulsi3addsi): Likewise.
2157         (*mulsi3addsi_v6): Likewise.
2158         (*mulsi3addsi_compare0): Likewise.
2159         (*mulsi3addsi_compare0_v6): Likewise.
2160         (*mulsi3addsi_compare0_scratch): Likewise.
2161         (*mulsi3addsi_compare0_scratch_v6): Likewise.
2162         (*mulsi3subsi): Likewise.
2163         (*mulsidi3adddi): Likewise.
2164         (*mulsi3addsi_v6): Likewise.
2165         (*mulsidi3adddi_v6): Likewise.
2166         (*mulsidi3_nov6): Likewise.
2167         (*mulsidi3_v6): Likewise.
2168         (*umulsidi3_nov6): Likewise.
2169         (*umulsidi3_v6): Likewise.
2170         (*umulsidi3adddi): Likewise.
2171         (*umulsidi3adddi_v6): Likewise.
2172         (*smulsi3_highpart_nov6): Likewise.
2173         (*smulsi3_highpart_v6): Likewise.
2174         (*umulsi3_highpart_nov6): Likewise.
2175         (*umulsi3_highpart_v6): Likewise.
2176         (mulhisi3): Likewise.
2177         (*mulhisi3tb): Likewise.
2178         (*mulhisi3bt): Likewise.
2179         (*mulhisi3tt): Likewise.
2180         (maddhisi4): Likewise.
2181         (*maddhisi4tb): Likewise.
2182         (*maddhisi4tt): Likewise.
2183         (maddhidi4): Likewise.
2184         (*maddhidi4tb): Likewise.
2185         (*maddhidi4tt): Likewise.
2186         (divsi3): Likewise.
2187         (udivsi3): Likewise.
2188         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2189         (thumb2_mulsi_short_compare0): Likewise.
2190         (thumb2_mulsi_short_compare0_scratch): Likewise.
2191         * config/arm/arm1020e.md (1020mult1): Update attribute change.
2192         (1020mult2): Likewise.
2193         (1020mult3): Likewise.
2194         (1020mult4): Likewise.
2195         (1020mult5): Likewise.
2196         (1020mult6): Likewise.
2197         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2198         change.
2199         (cortex_a15_mult64): Likewise.
2200         (cortex_a15_sdiv): Likewise.
2201         (cortex_a15_udiv): Likewise.
2202         * config/arm/arm1026ejs.md (mult1): Update attribute change.
2203         (mult2): Likewise.
2204         (mult3): Likewise.
2205         (mult4): Likewise.
2206         (mult5): Likewise.
2207         (mult6): Likewise.
2208         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2209         (pj4_ir_div): Likewise.
2210         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2211         (11_mult2): Likewise.
2212         (11_mult3): Likewise.
2213         (11_mult4): Likewise.
2214         (11_mult5): Likewise.
2215         (11_mult6): Likewise.
2216         (11_mult7): Likewise.
2217         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2218         (cortex_a8_mla): Likewise.
2219         (cortex_a8_mull): Likewise.
2220         (cortex_a8_smulwy): Likewise.
2221         (cortex_a8_smlald): Likewise.
2222         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2223         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2224         (cortex_r4_mul_3): Likewise.
2225         (cortex_r4_mla_4): Likewise.
2226         (cortex_r4_mla_3): Likewise.
2227         (cortex_r4_smlald): Likewise.
2228         (cortex_r4_mull): Likewise.
2229         (cortex_r4_sdiv): Likewise.
2230         (cortex_r4_udiv): Likewise.
2231         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2232         (cortex_a7_idiv): Likewise.
2233         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2234         (9_mult2): Likewise.
2235         (9_mult3): Likewise.
2236         (9_mult4): Likewise.
2237         (9_mult5): Likewise.
2238         (9_mult6): Likewise.
2239         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2240         (cortex_a53_sdiv): Likewise.
2241         (cortex_a53_udiv): Likewise.
2242         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2243         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2244         (mp626_mult2): Likewise.
2245         (mp626_mult3): Likewise.
2246         (mp626_mult4): Likewise.
2247         * config/arm/fa526.md (526_mult1): Update attribute change.
2248         (526_mult2): Likewise.
2249         * config/arm/arm-generic.md (mult): Update attribute change.
2250         (mult_ldsched_strongarm): Likewise.
2251         (mult_ldsched): Likewise.
2252         (multi_cycle): Likewise.
2253         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2254         * config/arm/fa606te.md (606te_mult1): Update attribute change.
2255         (606te_mult2): Likewise.
2256         (606te_mult3): Likewise.
2257         (606te_mult4): Likewise.
2258         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2259         (cortex_a9_mac16): Likewise.
2260         (cortex_a9_multiply): Likewise.
2261         (cortex_a9_mac): Likewise.
2262         (cortex_a9_multiply_long): Likewise.
2263         * config/arm/fa626te.md (626te_mult1): Update attribute change.
2264         (626te_mult2): Likewise.
2265         (626te_mult3): Likewise.
2266         (626te_mult4): Likewise.
2268 2013-06-18  Richard Biener  <rguenther@suse.de>
2270         PR lto/57334
2271         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2273 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2275         PR target/57609
2276         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2277         with next_active_insn.
2279 2013-06-18  Alan Modra  <amodra@gmail.com>
2281         * config/rs6000/rs6000.h (enum data_align): New.
2282         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2283         (DATA_ABI_ALIGNMENT): Define.
2284         (CONSTANT_ALIGNMENT): Correct comment.
2285         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2286         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2288 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
2290         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2291         ATTRIBUTE_UNUSED marking.
2293 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
2295         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2296         alternative and update.
2297         (aarch64_dup_lanedi): Delete.
2298         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2299         * config/aarch64/aarch64-simd-builtins.def: Update.
2301 2013-06-17  Richard Biener  <rguenther@suse.de>
2303         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2304         (lto_input_scc): Declare.
2305         (lto_input_tree_1): Likewise.
2306         (struct lto_stats_d): Add num_tree_bodies_output and
2307         num_pickle_refs_output.
2308         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2309         (lto_read_tree_1): Split out from ...
2310         (lto_read_tree): ... this.
2311         (lto_input_scc): New function.
2312         (lto_input_tree_1): Split out from ...
2313         (lto_input_tree): ... this.  Handle LTO_tree_scc.
2314         (lto_data_in_create): Create the streamer cache without hashes.
2315         * lto-streamer-out.c (create_output_block): Create the streamer
2316         cache with hashes when not doing WPA.
2317         (lto_write_tree_1): Split out from ...
2318         (lto_write_tree): ... this.
2319         (get_symbol_initial_value): New function.
2320         (lto_output_tree_1): Split out from ...
2321         (lto_output_tree): ... this.  Write trees as series of SCCs
2322         using a DFS walk via DFS_write_tree.
2323         (struct sccs, struct scc_entry): New types.
2324         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2325         (DFS_write_tree_body): New function.
2326         (DFS_write_tree): Likewise.
2327         (hash_tree): Likewise.
2328         (scc_entry_compare): Likewise.
2329         (hash_scc): Likewise.
2330         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2331         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2332         TREE_CHAIN as regular reference.
2333         (streamer_read_integer_cst): Remove.
2334         (streamer_get_pickled_tree): Adjust.
2335         * tree-streamer-out.c (streamer_write_chain): Disable streaming
2336         of DECL_EXTERNALs in BLOCK_VARS for now.
2337         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2338         reference.
2339         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2340         Add hash value argument and record that if hashes are recorded
2341         in the cache.
2342         (streamer_tree_cache_insert_1): Adjust.
2343         (streamer_tree_cache_insert): Likewise.
2344         (streamer_tree_cache_insert_at): Rename to ...
2345         (streamer_tree_cache_replace_tree): ... this and adjust.
2346         (streamer_tree_cache_append): Adjust.
2347         (record_common_node): Likewise.
2348         (streamer_tree_cache_create): Add argument whether to
2349         record hash values together with trees.
2350         (streamer_tree_cache_delete): Adjust.
2351         * tree-streamer.h (struct streamer_tree_cache_d): Add
2352         vector of hashes.
2353         (streamer_read_integer_cst): Remove.
2354         (streamer_tree_cache_insert): Adjust.
2355         (streamer_tree_cache_append): Likewise.
2356         (streamer_tree_cache_insert_at): Rename to ...
2357         (streamer_tree_cache_replace_tree): ... this and adjust.
2358         (streamer_tree_cache_create): Add argument whether to record hashes.
2359         (streamer_tree_cache_get): Rename to ...
2360         (streamer_tree_cache_get_tree): ... this.
2361         (streamer_tree_cache_get_hash): New function.
2362         * tree.c (cache_integer_cst): New function.
2363         * tree.h (cache_integer_cst): Declare.
2364         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2365         * lto-symtab.c (lto_varpool_replace_node): Only release
2366         DECL_INITIAL of non-prevailing decls.
2367         * varpool.c (varpool_remove_initializer): Do not release
2368         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2370 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
2372         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2373         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2374         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2375         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2376         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2377         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2378         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2379         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2380         instead of TARGET_64BIT.
2381         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2382         Require ISA_HAS_<D>DIV.
2384 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
2386         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2387         (mips*-*-linux*): Move default with_llsc setting to where other
2388         defaults are set.
2389         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2390         with_arch block.
2391         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2392         Likewise.  Remove default with_tune setting.  Move default float
2393         setting to its own block.  Handle with_llsc in the same block as above.
2395 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
2397         PR rtl-optimization/57425
2398         PR rtl-optimization/57569
2399         * alias.c (write_dependence_p): Add new parameters mem_mode,
2400         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
2401         Changed all callers.
2402         (canon_anti_dependence): New function.
2403         * cse.c (check_dependence): Use canon_anti_dependence.
2404         * cselib.c (cselib_invalidate_mem): Likewise.
2405         * rtl.h (canon_anti_dependence): Declare.
2407 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
2409         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2410         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2411         ".set mips3" for 64-bit targets.
2413 2013-06-15  Dehao Chen  <dehao@google.com>
2415         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2416         * gimple-low.c (gimple_check_call_matching_types): Likewise.
2417         (gimple_check_call_args): Likewise.
2418         * value-prof.c (check_ic_target): Likewise.
2419         * ipa-inline.c (early_inliner): Likewise.
2420         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2421         * cgraph.c (cgraph_create_edge_1): Likewise.
2422         (cgraph_make_edge_direct): Likewise.
2424 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2426         PR target/57615
2427         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2428         rs6000_output_move_128bit to handle emitting quad memory
2429         operations.  Set attribute length to 8 bytes.
2431 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
2433         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2434         New pattern.
2435         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2436         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2437         (aarch64_<su>mlsl<mode>): Likewise.
2439 2013-06-14  Mike Stump  <mikestump@comcast.net>
2441         * Makefile.in (TARGET_H): Add insn-codes.h.
2443 2013-06-14  Alan Modra  <amodra@gmail.com>
2445         PR middle-end/57134
2446         PR middle-end/57586
2447         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2448         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
2449         bitfield expansion when EXPAND_MEMORY.
2450         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2452 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2454         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2455         test for clearing quad memory on 32-bit later.
2457 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
2459         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2460         (fold_negate_expr): Likewise.
2461         (fold_real_zero_addition_p): Handle vectors.
2462         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2464 2013-06-14  Alan Modra  <amodra@gmail.com>
2466         * varasm.c (force_const_mem): Revert 2013-06-07 change.
2468 2013-06-13  Jan Hubicka  <jh@suse.cz>
2470         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2471         Local comdats are not externally visible.
2472         * symtab.c (dump_symtab_base): Dump externally visible.
2473         (verify_symtab_base): Verify back links in the symtab hash.
2475 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
2477         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2478         CONVERT_EXPR as equal nodes.
2480 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
2482         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2484 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
2486         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2487         Generalize to complex and vector.
2488         * tree.c (build_all_ones_cst): New function.
2489         * tree.h (build_all_ones_cst): Declare it.
2491 2013-06-13  Alan Modra  <amodra@gmail.com>
2493         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2494         * config/rs6000/rs6000.md (signbittf2): New insn.
2495         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2496         (abstf2_internal, cmptf_internal2): Likewise.
2497         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2499 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2500             Pat Haugen <pthaugen@us.ibm.com>
2501             Peter Bergner <bergner@vnet.ibm.com>
2503         * config/rs6000/rs6000.c (emit_load_locked): Add support for
2504         power8 byte, half-word, and quad-word atomic instructions.
2505         (emit_store_conditional): Likewise.
2506         (rs6000_expand_atomic_compare_and_swap): Likewise.
2507         (rs6000_expand_atomic_op): Likewise.
2509         * config/rs6000/sync.md (larx): Add new modes for power8.
2510         (stcx): Likewise.
2511         (AINT): New mode iterator to include TImode as well as normal
2512         integer modes on power8.
2513         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2514         that VSX registers are not considered.  Use AINT mode iterator
2515         instead of INT1 to allow inclusion of quad word atomic operations
2516         on power8.
2517         (load_locked<mode>): Likewise.
2518         (store_conditional<mode>): Likewise.
2519         (atomic_compare_and_swap<mode>): Likewise.
2520         (atomic_exchange<mode>): Likewise.
2521         (atomic_nand<mode>): Likewise.
2522         (atomic_fetch_<fetchop_name><mode>): Likewise.
2523         (atomic_nand_fetch<mode>): Likewise.
2524         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2525         each type.
2526         (ATOMIC): On power8, add QImode, HImode modes.
2527         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2528         modes that promote to SImode.
2529         (load_lockedti): Convert TImode arguments to PTImode, so that we
2530         get a guaranteed even/odd register pair.
2531         (load_lockedpti): Likewise.
2532         (store_conditionalti): Likewise.
2533         (store_conditionalpti): Likewise.
2535         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2536         atomic load/store instructions.
2537         (HSI): Likewise.
2539 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
2541         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2542         loads.
2543         (insn_count): New attribute, with most cases extracted from...
2544         (length): ...here.  Redefine most cases in terms of insn_count.
2545         (single_insn): Delete.
2546         (can_delay): Use insn_count to check for single instructions.
2547         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2548         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2549         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2550         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2551         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2552         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2553         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2554         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2555         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2556         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2557         rather than "length".
2558         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
2559         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2560         Use "insn_count" rather than "length".
2561         * config/mips/mips-dsp.md
2562         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2563         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2564         length attributes.
2566 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
2568         PR tree-optimization/57361
2569         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2571 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
2573         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2574         to split.
2575         (aarch64_simd_combine<mode>): New instruction expansion.
2576         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2577         function prototype.
2578         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2579         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2581 2013-06-12  Jan Hubicka  <jh@suse.cz>
2583         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2584         decl has when in streaming stage.
2585         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2586         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2588 2013-06-12  Roland Stigge <stigge@antcom.de>
2590         PR target/57578
2591         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2593 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
2595         PR tree-optimization/57537
2596         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2597         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2599 2013-06-12  Richard Biener  <rguenther@suse.de>
2601         * data-streamer.h (streamer_write_char_stream): CSE
2602         obs->current_pointer.
2603         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2604         streamer_write_char_stream manually and optimize the resulting loop.
2605         (streamer_write_hwi_stream): Likewise.
2607 2013-06-12  Jan Hubicka  <jh@suse.cz>
2609         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2610         * cgraph.h (varpool_create_empty_node): Declare.
2611         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2612         duplicated nodes.
2613         * symtab.c (symtab_unregister_node): Be lax about missin entries
2614         in node hash.
2615         (symtab_get_node): Update comment.
2616         * varpool.c (varpool_create_empty_node): Break out from ...
2617         (varpool_node_for_decl): ... here.
2618         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2620 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2622         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2623         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2624         part.  Use straight-line flow at the end.
2625         <COMPONENT_REF>: Remove superfluous else.
2626         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2628 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
2630         PR target/56564
2631         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2632         target hook even for !TREE_PUBLIC decls.  If no resolution info
2633         is available, return false for common and external decls.
2635 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2637         * config/rl78/constraints.md (U): New constraint.
2638         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2639         valloc attribute.
2641 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2643         PR target/57589
2644         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2645         to allow returning address to AT_PLATFORM name.
2647 2013-06-11  Jan Hubicka  <jh@suse.cz>
2649         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2650         * cgraph.h (symtab_node_base): Add weakref flag.
2651         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2652         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2653         (output_weakrefs): Use weakref flag.
2654         * fold-const.c (simple_operand_p): Handle WEAK.
2655         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2656         * ipa.c (varpool_externally_visible_p): Drop weakref.
2657         (function_and_variable_visibility): Update comment; fix weakref
2658         sanity checks; do not clear DECL_WEAK on them.
2659         * lto-cgraph.c (lto_output_node): update.
2660         (lto_output_varpool_node): Update.
2661         (input_overwrite_node): Update.
2662         (input_node): Update.
2663         (input_varpool_node): Update.
2664         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2665         (lto_symtab_merge_symbols): Add sanity check.
2666         (lto_symtab_prevailing_decl): Do not special case weakrefs.
2667         * passes.c (rest_of_decl_compilation): Set static flag, too.
2668         * symtab.c (dump_symtab_base): Dump weakref.
2669         (verify_symtab_base): Sanity check weakrefs.
2670         (symtab_make_decl_local): Remove duplicated code.
2671         (symtab_alias_ultimate_target): Simplify.
2672         * varpool.c (varpool_create_variable_alias): Set weakref flag.
2674 2013-06-11  DJ Delorie  <dj@redhat.com>
2676         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2677         (rl78_unwind_word_mode): New.
2679 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
2681         * final.c (debug_prefix_maps): Make static.
2683 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
2685         * function.c (initial_trampoline): Remove stray copy.
2687 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
2689         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2691 2013-06-11  Martin Jambor  <mjambor@suse.cz>
2693         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2694         within bounds at the beginning of the function.
2696 2013-06-11  Alan Modra  <amodra@gmail.com>
2698         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
2699         reporting.
2700         (get_named_section): Don't NULL !DECL_P decl.
2702 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
2704         * doc/invoke.texi (core-avx2): Document.
2705         (slm): Likewise.
2706         (atom): Updated with MOVBE.
2708 2013-06-11  Richard Biener  <rguenther@suse.de>
2710         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
2712 2013-06-11  Anton Blanchard  <anton@samba.org>
2714         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2715         correct shift value in little-endian mode.
2717 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
2719         PR target/56564
2720         * varasm.c (get_variable_align): Move #endif to the right place.
2722 2013-06-10  Cary Coutant  <ccoutant@google.com>
2724         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2725         for hash so that hash table traversal order is deterministic.
2727 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2728             Pat Haugen <pthaugen@us.ibm.com>
2729             Peter Bergner <bergner@vnet.ibm.com>
2731         * config/rs6000/vector.md (GPR move splitter): Do not split moves
2732         of vectors in GPRS if they are direct moves or quad word load or
2733         store moves.
2735         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2736         declaration.
2737         (direct_move_p): Likewise.
2738         (quad_load_store_p): Likewise.
2740         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2741         classes into bins based on the physical register type.
2742         (reg_class_to_reg_type): Likewise.
2743         (IS_STD_REG_TYPE): Likewise.
2744         (IS_FP_VECT_REG_TYPE): Likewise.
2745         (reload_fpr_gpr): Arrays to determine what insn to use if we can
2746         use direct move instructions.
2747         (reload_gpr_vsx): Likewise.
2748         (reload_vsx_gpr): Likewise.
2749         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2750         information that is a simplification of register classes.  Also
2751         precalculate direct move reload helpers.
2752         (direct_move_p): New function to return true if the operation can
2753         be done as a direct move instruciton.
2754         (quad_load_store_p): New function to return true if the operation
2755         is a quad memory operation.
2756         (rs6000_legitimize_address): If quad memory, only allow register
2757         indirect for TImode addresses.
2758         (rs6000_legitimate_address_p): Likewise.
2759         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2760         (rs6000_reload_register_type): Likewise.
2761         (register_to_reg_type): Return register type.
2762         (rs6000_secondary_reload_simple_move): New helper function for
2763         secondary reload and secondary memory needed to identify anything
2764         that is a simple move, and does not need reloading.
2765         (rs6000_secondary_reload_direct_move): New helper function for
2766         secondary reload to identify cases that can be done with several
2767         instructions via the direct move instructions.
2768         (rs6000_secondary_reload_move): New helper function for secondary
2769         reload to identify moves between register types that can be done.
2770         (rs6000_secondary_reload): Add support for quad memory operations
2771         and for direct move.
2772         (rs6000_secondary_memory_needed): Likewise.
2773         (rs6000_debug_secondary_memory_needed): Change argument names.
2774         (rs6000_output_move_128bit): New function to return the move to
2775         use for 128-bit moves, including knowing about the various
2776         limitations of quad memory operations.
2778         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2779         memory operations.  call rs6000_output_move_128bit for the actual
2780         instruciton(s) to generate.
2781         (vsx_movti_64bit): Likewise.
2783         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2784         (UNSPEC_P8V_MTVSRWZ): Likewise.
2785         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2786         (UNSPEC_P8V_MTVSRD): Likewise.
2787         (UNSPEC_P8V_XXPERMDI): Likewise.
2788         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2789         (UNSPEC_FUSION_GPR): Likewise.
2790         (FMOVE128_GPR): New iterator for direct move.
2791         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
2792         (f32_sv): Likewise.
2793         (f32_dm): Likewise.
2794         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2795         loads and direct move instructions.
2796         (zero_extendsidi2_lfiwzx): Likewise.
2797         (extendsidi2_lfiwax): Likewise.
2798         (extendsidi2_nocell): Likewise.
2799         (floatsi<mode>2_lfiwax): Likewise.
2800         (lfiwax): Likewise.
2801         (floatunssi<mode>2_lfiwzx): Likewise.
2802         (lfiwzx): Likewise.
2803         (fix_trunc<mode>_stfiwx): Likewise.
2804         (fixuns_trunc<mode>_stfiwx): Likewise.
2805         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2806         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2807         (parity<mode>2_cmpb): Set length/type attr.
2808         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2809         for 'mr.' to fast_compare.
2810         (bpermd_<mode>): Change type attr to popcnt.
2811         (p8_fmrgow_<mode>): New insns for power8 direct move support.
2812         (p8_mtvsrwz_1): Likewise.
2813         (p8_mtvsrwz_2): Likewise.
2814         (reload_fpr_from_gpr<mode>): Likewise.
2815         (p8_mtvsrd_1): Likewise.
2816         (p8_mtvsrd_2): Likewise.
2817         (p8_xxpermdi_<mode>): Likewise.
2818         (reload_vsx_from_gpr<mode>): Likewise.
2819         (reload_vsx_from_gprsf): Likewise.
2820         (p8_mfvsrd_3_<mode>): LIkewise.
2821         (reload_gpr_from_vsx<mode>): Likewise.
2822         (reload_gpr_from_vsxsf): Likewise.
2823         (p8_mfvsrd_4_disf): Likewise.
2824         (multi-word GPR splits): Do not split direct moves or quad memory
2825         operations.
2827 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
2829         * tree-into-ssa.c (interesting_blocks): Make static.
2831 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
2833         PR target/56564
2834         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
2835         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
2836         Use DATA_ABI_ALIGNMENT for that case instead if defined.
2837         (get_variable_align): New function.
2838         (get_variable_section, emit_bss, emit_common,
2839         assemble_variable_contents, place_block_symbol): Use
2840         get_variable_align instead of DECL_ALIGN.
2841         (assemble_noswitch_variable): Add align argument, use it
2842         instead of DECL_ALIGN.
2843         (assemble_variable): Adjust caller.  Use get_variable_align
2844         instead of DECL_ALIGN.
2845         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
2846         caller.
2847         (DATA_ABI_ALIGNMENT): Define.
2848         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
2849         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
2850         opt is false, only return the psABI mandated alignment increase.
2851         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
2852         (DATA_ABI_ALIGNMENT): ... this.
2853         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
2854         (DATA_ABI_ALIGNMENT): ... this.
2855         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
2856         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
2857         (DATA_ABI_ALIGNMENT): ... this.
2858         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
2859         * doc/tm.texi: Regenerated.
2861 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
2863         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2864         cmp_code to construct REG_EQUAL note.
2866 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
2868         PR target/57568
2869         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2870         that operands[2] doesn't overlap with operands[0].
2872 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
2873             Jan Hubicka  <jh@suse.cz>
2875         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
2876         hack to mark symbols as used.
2878 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
2880         PR rtl-optimization/57559
2881         * lra-constraints.c (process_alt_operands): Don't discourage
2882         memory with known offset for offsetable memory constraint.
2883         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
2885 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
2887         * varasm.c (struct oc_local_state): Reorder fields.
2888         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
2889         and adjust accordingly.
2890         (output_constructor): Reorder initialization code and adjust call to
2891         output_constructor_bitfield.
2893 2013-06-07  Jan Hubicka  <jh@suse.cz>
2895         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
2897 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
2899         * tree-object-size.c (unknown): Make const.
2901 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2903         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
2904         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
2905         for last alternative in the cpu_facility attribute.
2907 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2909         PR target/56315
2910         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
2911         (xordi3): Change operand 2 constraint to arm_xordi_operand.
2912         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2913         * config/arm/constraints.md (Dg): New constraint.
2914         * config/arm/neon.md (xordi3_neon): Remove.
2915         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2916         * config/arm/predicates.md (arm_xordi_operand): New predicate.
2918 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2920         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2921         Clean up alternatives.
2923 2013-06-07  Alan Modra  <amodra@gmail.com>
2925         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2926         va_list_gpr_size.
2928 2013-06-07  Alan Modra  <amodra@gmail.com>
2930         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2932 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2934         * config/arm/constraints.md (Df): New constraint.
2935         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2936         Correct length attribute for last two alternatives.
2938 2013-06-07  Alan Modra  <amodra@gmail.com>
2940         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2941         override user -mfp-in-toc.
2942         (offsettable_ok_by_alignment): Consider just the current access
2943         rather than the whole object, unless BLKmode.  Handle
2944         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2945         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2946         for -mcmodel=medium.
2947         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2948         override user -mfp-in-toc or -msum-in-toc.  Default to
2949         -mno-fp-in-toc for -mcmodel=medium.
2951 2013-06-06  DJ Delorie  <dj@redhat.com>
2953         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2954         TARGET_VALID_POINTER_MODE.
2956 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2957             Pat Haugen <pthaugen@us.ibm.com>
2958             Peter Bergner <bergner@vnet.ibm.com>
2960         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2961         Document new power8 builtins.
2963         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2964         condition code register, to allow 128-bit logical operations to be
2965         done in the VSX or GPR registers.
2966         (nor<mode>3): Use the canonical form for nor.
2967         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2968         vclz*, and vpopcnt* vector instructions.
2969         (nand<mode>3): Likewise.
2970         (orc<mode>3): Likewise.
2971         (clz<mode>2): LIkewise.
2972         (popcount<mode>2): Likewise.
2974         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2975         that only the GPRs are recognized.
2977         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2978         support for new power8 builtins.
2980         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2981         builtin functions.
2982         (xscvdpspn): Likewise.
2983         (vclz): Likewise.
2984         (vclzb): Likewise.
2985         (vclzh): Likewise.
2986         (vclzw): Likewise.
2987         (vclzd): Likewise.
2988         (vpopcnt): Likewise.
2989         (vpopcntb): Likewise.
2990         (vpopcnth): Likewise.
2991         (vpopcntw): Likewise.
2992         (vpopcntd): Likewise.
2993         (vgbbd): Likewise.
2994         (vmrgew): Likewise.
2995         (vmrgow): Likewise.
2996         (eqv): Likewise.
2997         (eqv_v16qi3): Likewise.
2998         (eqv_v8hi3): Likewise.
2999         (eqv_v4si3): Likewise.
3000         (eqv_v2di3): Likewise.
3001         (eqv_v4sf3): Likewise.
3002         (eqv_v2df3): Likewise.
3003         (nand): Likewise.
3004         (nand_v16qi3): Likewise.
3005         (nand_v8hi3): Likewise.
3006         (nand_v4si3): Likewise.
3007         (nand_v2di3): Likewise.
3008         (nand_v4sf3): Likewise.
3009         (nand_v2df3): Likewise.
3010         (orc): Likewise.
3011         (orc_v16qi3): Likewise.
3012         (orc_v8hi3): Likewise.
3013         (orc_v4si3): Likewise.
3014         (orc_v2di3): Likewise.
3015         (orc_v4sf3): Likewise.
3016         (orc_v2df3): Likewise.
3018         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3019         allow power8 quad mode in 64-bit.
3020         (rs6000_builtin_vectorized_function): Add support to vectorize
3021         ISA 2.07 count leading zeros, population count builtins.
3022         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3023         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3024         (builtin_function_type): Add vgbbd builtin function which takes an
3025         unsigned argument.
3026         (altivec_expand_vec_perm_const): Add support for new power8 merge
3027         instructions.
3029         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3030         that does not include TImdoe for use with 32-bit.
3031         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3032         instructions.
3033         (UNSPEC_VSX_CVDPSPN): Likewise.
3034         (vsx_xscvdpspn): Likewise.
3035         (vsx_xscvspdpn): Likewise.
3036         (vsx_xscvdpspn_scalar): Likewise.
3037         (vsx_xscvspdpn_directmove): Likewise.
3038         (vsx_and<mode>3): Split logical operations into 32-bit and
3039         64-bit. Add support to do logical operations on TImode as well as
3040         VSX vector types.  Allow logical operations to be done in either
3041         VSX registers or in general purpose registers in 64-bit mode.  Add
3042         splitters if GPRs were used. For AND, add clobber of CCmode to
3043         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
3044         encoding.
3045         (vsx_and<mode>3_32bit): Likewise.
3046         (vsx_and<mode>3_64bit): Likewise.
3047         (vsx_ior<mode>3): Likewise.
3048         (vsx_ior<mode>3_32bit): Likewise.
3049         (vsx_ior<mode>3_64bit): Likewise.
3050         (vsx_xor<mode>3): Likewise.
3051         (vsx_xor<mode>3_32bit): Likewise.
3052         (vsx_xor<mode>3_64bit): Likewise.
3053         (vsx_one_cmpl<mode>2): Likewise.
3054         (vsx_one_cmpl<mode>2_32bit): Likewise.
3055         (vsx_one_cmpl<mode>2_64bit): Likewise.
3056         (vsx_nor<mode>3): Likewise.
3057         (vsx_nor<mode>3_32bit): Likewise.
3058         (vsx_nor<mode>3_64bit): Likewise.
3059         (vsx_andc<mode>3): Likewise.
3060         (vsx_andc<mode>3_32bit): Likewise.
3061         (vsx_andc<mode>3_64bit): Likewise.
3062         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3063         and xxlorc instructions.
3064         (vsx_eqv<mode>3_64bit): Likewise.
3065         (vsx_nand<mode>3_32bit): Likewise.
3066         (vsx_nand<mode>3_64bit): Likewise.
3067         (vsx_orc<mode>3_32bit): Likewise.
3068         (vsx_orc<mode>3_64bit): Likewise.
3070         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3072         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3073         instruction.
3074         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3075         (p8_vmrgow): Likewise.
3076         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3077         GPRs to be split under VSX.
3078         (p8v_clz<mode>2): Add power8 count leading zero support.
3079         (p8v_popcount<mode>2): Add power8 population count support.
3080         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3081         support.
3083         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3084         instruction.
3086         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3087         builtin functions.
3088         (vec_nand): Likewise.
3089         (vec_vclz): Likewise.
3090         (vec_vclzb): Likewise.
3091         (vec_vclzd): Likewise.
3092         (vec_vclzh): Likewise.
3093         (vec_vclzw): Likewise.
3094         (vec_vgbbd): Likewise.
3095         (vec_vmrgew): Likewise.
3096         (vec_vmrgow): Likewise.
3097         (vec_vpopcnt): Likewise.
3098         (vec_vpopcntb): Likewise.
3099         (vec_vpopcntd): Likewise.
3100         (vec_vpopcnth): Likewise.
3101         (vec_vpopcntw): Likewise.
3103 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
3105         PR rtl-optimization/57468
3106         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3107         spilled pseudos.
3109 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
3111         PR rtl-optimization/57459
3112         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3113         type when setting live regs.
3115 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
3117         * config/s390/s390.opt (mlra): New option.
3118         * config/s390/s390.c (s390_decompose_address): Check displacement
3119         for all registers for LRA.
3120         (s390_secondary_reload): Don't used secondary reloads for LRA.
3121         (s390_lra_p): New function.
3122         (TARGET_LRA_P): Define.
3123         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3124         of attribute cpu_facility to zarch for the last alternative.
3125         (*cmpmem_short): Ditto.
3127 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3129         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3130         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
3131         (arm_expand_prologue): Likewise.
3133 2013-06-06  Teresa Johnson  <tejohnson@google.com>
3135         PR c++/53743
3136         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3137         as this is now done by redirect_edge_and_branch_force.
3138         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3139         barriers, and fix interaction with splitting.
3140         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3141         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3142         reflect changes made in the routine.
3143         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3144         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3145         since this is called in cfglayout mode, and replace partition fixup
3146         with assert as that is now done by force_nonfallthru_and_redirect.
3147         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3148         already be marked with region crossing note.
3149         (insert_section_boundary_note): Make non-static, gate on flag
3150         has_bb_partition, rewrite to also check for multiple partitions.
3151         (rest_of_handle_reorder_blocks): Remove call to
3152         insert_section_boundary_note, now done later during free_cfg.
3153         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3154         * bb-reorder.h (insert_section_boundary_note): Declare.
3155         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3156         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3157         invoke insert_section_boundary_note.
3158         (try_redirect_by_replacing_jump): Remove unnecessary
3159         check for region crossing note.
3160         (fixup_partition_crossing): New function.
3161         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3162         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3163         in non-cfglayout mode.
3164         (force_nonfallthru_and_redirect): Fixup partition boundaries,
3165         remove old code that tried to do this. Emit barrier correctly
3166         when we are in cfglayout mode.
3167         (last_bb_in_partition): New function.
3168         (rtl_split_edge): Correctly fixup partition boundaries.
3169         (commit_one_edge_insertion): Remove old code that tried to
3170         fixup region crossing edge since this is now handled in
3171         split_block, and set up insertion point correctly since
3172         block may now end in a jump.
3173         (verify_hot_cold_block_grouping): Guard against checking when not in
3174         linearized RTL mode.
3175         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3176         notes.
3177         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3178         rtl_verify_flow_info, so not called in cfglayout mode.
3179         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3180         (fixup_reorder_chain): Remove old code that attempted to fixup region
3181         crossing note as this is now handled in force_nonfallthru_and_redirect.
3182         (duplicate_insn_chain): Don't duplicate switch section notes.
3183         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3184         note.
3185         * basic-block.h (emit_barrier_after_bb): Declare.
3187 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3189         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3190         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3191         arm_usatsihi): Adjust alternatives for arm_restrict_it.
3193 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3195         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3196         where appropriate.
3197         * config/arm/ldmstm.md: Regenerate.
3199 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3201         * config/arm/sync.md (atomic_loaddi_1):
3202         Disable predication for arm_restrict_it.
3203         (arm_load_exclusive<mode>): Likewise.
3204         (arm_load_exclusivesi): Likewise.
3205         (arm_load_exclusivedi): Likewise.
3206         (arm_load_acquire_exclusive<mode>): Likewise.
3207         (arm_load_acquire_exclusivesi): Likewise.
3208         (arm_load_acquire_exclusivedi): Likewise.
3209         (arm_store_exclusive<mode>): Likewise.
3210         (arm_store_exclusive<mode>): Likewise.
3211         (arm_store_release_exclusivedi): Likewise.
3212         (arm_store_release_exclusive<mode>): Likewise.
3214 2013-06-06  Richard Biener  <rguenther@suse.de>
3216         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3217         after LTO_null.
3218         (lto_tag_is_tree_code_p): Adjust.
3219         (lto_tag_is_gimple_code_p): Likewise.
3220         (lto_gimple_code_to_tag): Likewise.
3221         (lto_tag_to_gimple_code): Likewise.
3222         (lto_tree_code_to_tag): Likewise.
3223         (lto_tag_to_tree_code): Likewise.
3224         * data-streamer.h (streamer_write_hwi_in_range): Use
3225         uhwi streaming to stream the normalized range.
3226         (streamer_read_hwi_in_range): Likewise.
3228 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3230         * config/arm/arm.md (enabled_for_depr_it): New attribute.
3231         (predicable_short_it): Likewise.
3232         (predicated): Likewise.
3233         (enabled): Handle above.
3234         (define_cond_exec): Set predicated attribute to yes.
3236 2013-06-05  Mike Stump  <mikestump@comcast.net>
3238         * gdbinit.in (__FUNCTION__): Add.
3240 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
3242         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3243         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3245 2013-06-05  Jan Hubicka  <jh@suse.cz>
3247         * varasm.c (mark_decl_referenced): Revert the removal until targets
3248         are fixed.
3250 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
3252         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3253         instead of mark_decl_referenced.
3255 2013-06-05  Jan Hubicka  <jh@suse.cz>
3257         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3258         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3259         and symtab_used_from_object_file_p.
3260         (cgraph_make_node_local_1): Clear forced_by_abi.
3261         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3262         * cgraph.h (symtab_node_base): Add forced_by_abi.
3263         (decide_is_variable_needed): Remove.
3264         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3265         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3266         (decide_is_symbol_needed): ... this one; handle symbols in general;
3267         always analyze virtuals; honnor forced_by_abi.
3268         (cgraph_finalize_function): Update.
3269         (varpool_finalize_decl): Update.
3270         (symbol_defined_and_needed): Remove.
3271         (analyze_functions): Update.
3272         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3273         output_refs, input_overwrite_node): Handle forced_by_abi.
3274         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3275         (address_taken_from_non_vtable_p): ... this one.
3276         (comdat_can_be_unshared_p_1): New function.
3277         (cgraph_comdat_can_be_unshared_p): Rename to ...
3278         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3279         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3280         (function_and_variable_visibility): Clear forced_by_abi as needed.
3281         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3282         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3283         * symtab.c (dump_symtab_base): Dump forced_by_abi.
3284         * varpool.c (decide_is_variable_needed): Remove.
3286 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3288         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3289         (arm_option_override): Override arm_restrict_it where appropriate.
3290         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3291         * config/arm/arm.opt (mrestrict-it): New command-line option.
3292         * doc/invoke.texi: Document -mrestrict-it.
3294 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
3296         * tsan.c (tsan_atomic_table): Make const.
3298 2013-06-05  Richard Biener  <rguenther@suse.de>
3300         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3301         index associated with the tree we are supposed to replace.
3302         * tree-streamer-out.c (pack_ts_base_value_fields): Output
3303         TREE_ASM_WRITTEN as zero for everything but SSA names.
3305 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
3307         * tree-ssa-structalias.c (call_stmt_vars): Make static.
3309 2013-06-04  Jan Hubicka  <jh@suse.cz>
3311         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3312         (input_node, input_varpool_node): Handle correctly external same
3313         body aliases.
3314         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3315         nodes at ltrans stage.
3317 2013-06-04  Jan Hubicka  <jh@suse.cz>
3319         * ipa-inline.c (update_caller_keys): Fix availability test.
3320         (update_callee_keys): Likewise.
3321         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3322         to follow ELF standard.
3324 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
3326         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3327         (mips64r5900el-*-elf*): New configurations.
3328         * config/mips/mips-cpus.def (r5900): New processor.
3329         * config/mips/mips-tables.opt: Regenerate.
3330         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3331         (mips_issue_rate): Handle PROCESSOR_R5900.
3332         (mips_reorg_process_insns): Force reorder mode for the R5900.
3333         * config/mips/mips.h (TARGET_MIPS5900): Define.
3334         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3335         TARGET_MIPS5900.
3336         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3337         TARGET_MIPS5900.
3338         * config/mips/mips.md (processor): Add r5900.
3339         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3341 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3343         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3344         into function to generate MOVI instruction.
3345         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3346         (aarch64_preferred_simd_mode): Turn into wrapper.
3347         (aarch64_output_scalar_simd_mov_immediate): New function.
3348         * config/aarch64/aarch64-protos.h: Add prototype for above.
3350 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3352         * config/aarch64/aarch64.c (simd_immediate_info): Remove
3353         element_char member.
3354         (sizetochar): Return signed char.
3355         (aarch64_simd_valid_immediate): Remove elchar and other
3356         unnecessary variables.
3357         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3358         Calculate element_char as required.
3359         * config/aarch64/aarch64-protos.h: Update and move prototype
3360         for aarch64_output_simd_mov_immediate.
3361         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3362         Update arguments.
3364 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3366         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3367         information completed by aarch64_simd_valid_immediate.
3368         (aarch64_legitimate_constant_p): Update arguments.
3369         (aarch64_simd_valid_immediate): Work with struct rather than many
3370         pointers.
3371         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3372         (aarch64_simd_make_constant): Update arguments.
3373         (aarch64_output_simd_mov_immediate): Work with struct rather than
3374         many pointers.  Output immediate directly rather than as operand.
3375         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3376         Update prototype.
3377         * config/aarch64/constraints.md (Dn): Update arguments.
3379 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3381         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3382         longer static.
3383         (aarch64_simd_immediate_valid_for_move): Remove.
3384         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3385         (aarch64_simd_make_constant): Update call.
3386         (aarch64_output_simd_mov_immediate): Update call.
3387         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3388         Add prototype.
3389         * config/aarch64/constraints.md (Dn): Update call.
3391 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3393         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3394         return type to bool for prototype.
3395         (aarch64_legitimate_constant_p): Check for true instead of not -1.
3396         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3397         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3399 2013-06-04  Catherine Moore  <clm@codesourcery.com>
3401         * config/mips/mips.opt (meva): New.
3402         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3403         (ASM_SPEC): Handle -meva.
3404         * doc/invoke.texi (meva):  Document.
3406 2013-06-04  Alan Modra  <amodra@gmail.com>
3408         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3409         constant output.
3411 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3413         * rtl.def: Add extra fourth optional field to define_cond_exec.
3414         * gensupport.c (process_one_cond_exec): Process attributes from
3415         define_cond_exec.
3416         * doc/md.texi: Document fourth field in define_cond_exec.
3418 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
3420         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3421         out the processing order as in store_bit_field_1.
3423 2013-06-04  Jan Hubicka  <jh@suse.cz>
3425         PR middle-end/57500
3426         * cgraphunit.c (cgraph_process_same_body_aliases): Create
3427         non-VAR_DECL node if it does not exist yet.
3429 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
3431         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3432         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3433         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3434         target_cpu_default setting.
3436 2013-06-03  Teresa Johnson  <tejohnson@google.com>
3438         * dumpfile.c (opt_info_switch_p): Change -fopt-info
3439         default to -fopt-info=optimized instead of all.
3440         * doc/invoke.texi: Ditto.
3441         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3442         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3443         (execute_vect_slp): Emit BB vectorization success under
3444         MSG_OPTIMIZED_LOCATIONS.
3445         * tree-vect-slp.c (vect_slp_transform_bb): Change
3446         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3447         * tree-vect-loop.c (vect_transform_loop): Ditto.
3449 2013-06-03  Jason Merrill  <jason@redhat.com>
3451         PR c++/57415
3452         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3453         Use TARGET_EXPR for C++.
3455 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
3457         PR rtl-optimization/57268
3458         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3459         if DEBUG_INSN_P (insn).
3461         Reapply
3462         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
3464         PR rtl-optimization/57268
3465         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3466         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3468 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3470         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3471         (ix86_avoid_lea_for_addr): Likewise.
3472         (exact_dependency_1): Likewise.
3473         (ix86_adjust_cost): Likewise.
3474         (swap_top_of_ready_list): Fix formatting and !reload_completed check
3475         removed.
3476         (do_reorder_for_imul): Fix typo, formatting and
3477         !reload_completed check removed.
3478         (ix86_sched_reorder): Fix typo and formatting.
3479         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3480         list.
3482 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
3484         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3486 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
3488         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3489         <STRING_CST>: Likewise.
3490         <VECTOR_CST>: Likewise.
3492 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
3493             Mikael Morin  <mikael@gcc.gnu.org>
3495         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3496         * config.in: Regenerated.
3497         * configure: Regenerated.
3499 2013-06-01  Jan Hubicka  <jh@suse.cz>
3501         PR middle-end/57366
3502         * cgraphunit.c (compile): When weakref is not supported,
3503         set up transparent aliases before final output pass.
3504         * varasm.c (assemble_alias): Do not try to do it here.
3506 2013-06-01  Jan Hubicka  <jh@suse.cz>
3508         PR middle-end/57467
3509         * passes.c (for_per_function): Skip unanalyzed functions.
3511 2013-06-01  Jan Hubicka  <jh@suse.cz>
3513         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3514         (lto_symtab_merge_symbols_1): ... this one.
3515         (lto_symtab_merge_cgraph_nodes): Rename to ...
3516         (lto_symtab_merge_symbols): ... this one; simplify.
3517         * cgraph.c (same_body_aliases_done): Rename to ...
3518         (cpp_implicit_aliases_done): ... this one.
3519         (cgraph_create_function_alias): Update.
3520         (cgraph_same_body_alias): Update.
3521         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3522         (verify_edge_corresponds_to_fndecl): Simplify.
3523         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3524         (cgraph_node): Remove same_body_alias.
3525         (varpool_node): Remove alias_of and extra_name_alias.
3526         (same_body_aliases_done): Rename to ..
3527         (cpp_implicit_aliases_done): ... this one.
3528         (symtab_alias_ultimate_target): Add default parameter.
3529         (symtab_resolve_alias): New function.
3530         (fixup_same_cpp_alias_visibility): Declare.
3531         (cgraph_function_node): Add default parameter.
3532         (cgraph_node_asm_name): Likewise.
3533         (cgraph_function_or_thunk_node): Add default parameter; do
3534         not ICE when it is NULL.
3535         (varpool_variable_node): Likewise.
3536         * tree-emutls.c (create_emultls_var): Update.
3537         (ipa_lower_emutls): Update.
3538         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3539         (cgraph_reset_node): Reset alias info.
3540         (cgraph_finalize_function): Update.
3541         (fixup_same_cpp_alias_visibility): Move to symtab.c.
3542         (analyze_function): Simplify.
3543         (cgraph_process_same_body_aliases): Simplify.
3544         (analyze_functions): Fixup same body aliases.
3545         (handle_alias_pairs): Simplify.
3546         (assemble_thunk): Update.
3547         (assemble_thunks_and_aliases): Update.
3548         (output_weakrefs): Rewrite.
3549         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3550         (lto_output_varpool_node): Likewise.
3551         (compute_ltrans_boundary): Remve assert.
3552         (get_alias_symbol): New functoin.
3553         (input_node): Rewrite alias handling.
3554         (input_varpool_node): Likewise.
3555         * ipa-pure-const.c (propagate_pure_const): Fix formating.
3556         * ipa.c (process_references): Handle weakrefs correctly.
3557         (symtab_remove_unreachable_nodes): Likewise.
3558         * trans-mem.c (get_cg_data): Update.
3559         (ipa_tm_create_version_alias): Update.
3560         (ipa_tm_execute): Update.
3561         * symtab.c (dump_symtab_base): Dump aliases.
3562         (verify_symtab_base): Verify aliases.
3563         (symtab_node_availability): New function.
3564         (symtab_alias_ultimate_target): Simplify.
3565         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3566         handle all the fixup cases.
3567         (symtab_resolve_alias): New function.
3568         * passes.c (ipa_write_summaries): Handle weakrefs.
3569         * varpool.c (varpool_analyze_node): Simplify.
3570         (assemble_aliases): Update.
3571         (varpool_create_variable_alias): Simplify.
3572         (varpool_extra_name_alias): Simplify.
3573         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3574         (lto_symtab_merge_symbols): ... this one.
3576 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
3578         Revert
3579         PR rtl-optimization/57268
3580         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3581         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3583 2013-06-01  Tobias Burnus  <burnus@net-b.de>
3585         Partially reverted:
3586         2013-05-31  Tobias Burnus  <burnus@net-b.de>
3588         PR middle-end/57073
3589         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3590         further up.
3592 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
3594         PR rtl-optimization/57268
3595         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3596         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3598 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3600         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3601         unordered comparison operators when -fno-trapping-math is in effect
3602         on the e500.
3603         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3604         and implement unordered comparison operators properly on the e500.
3606 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3608         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3609         for constant scalar integers.
3610         (simplify_relational_operation_1): Likewise.
3612 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
3614         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3615         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
3616         Fix comment.
3618 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3619             Igor Zamyatin  <igor.zamyatin@intel.com>
3621         Silvermont (SLM) architecture performance tuning.
3622         * config/i386/i386.h (enum ix86_tune_indices): Add
3623         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3624         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3626         * config/i386/i386.c (initial_ix86_tune_features)
3627         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3628         (ix86_lea_outperforms): Handle Silvermont tuning.
3629         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3630         call.
3631         (ix86_use_lea_for_mov): Likewise.
3632         (ix86_avoid_lea_for_addr): Likewise.
3633         (ix86_lea_for_add_ok): Likewise.
3634         (exact_dependency_1): New function.
3635         (exact_store_load_dependency): Likewise.
3636         (ix86_adjust_cost): Handle Silvermont tuning.
3637         (do_reoder_for_imul): Likewise.
3638         (swap_top_of_ready_list): New function.
3639         (ix86_sched_reorder): Changed to handle Silvermont tuning.
3641         * config/i386/i386.md (peepholes that split memory operand in fp
3642         converts): New.
3644 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3646         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3647         Remove un-necessary braces.
3649 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3651         * config/aarch64/aarch64.c (aarch64_classify_symbol):
3652         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3654 2013-05-31  Tobias Burnus  <burnus@net-b.de>
3656         PR middle-end/57073
3657         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
3659 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3661         PR target/56315
3662         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3663         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3664         * config/arm/neon.md (iordi3_neon): Remove.
3665         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3666         * config/arm/predicates.md (imm_for_neon_logic_operand):
3667         Move to earlier in the file.
3668         (neon_logic_op2): Likewise.
3669         (arm_iordi_operand_neon): New predicate.
3671 2013-05-31  Richard Biener  <rguenther@suse.de>
3673         PR tree-optimization/57478
3674         PR tree-optimization/57453
3675         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3676         are life as well.
3678 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3680         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3681         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3683 2013-05-30  Tobias Burnus  <burnus@net-b.de>
3684             Thomas Koenig  <tkoenig@gcc.gnu.org>
3686         PR middle-end/57073
3687         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3688         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3690 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
3692         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
3694 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
3696         * target.def (register_usage_leveling_p): New hook.
3697         * targhooks.c (default_register_usage_leveling_p): New.
3698         * targhooks.h (default_register_usage_leveling_p): New prototype.
3699         * lra-assigns.c (register_usage_leveling_p): Use the hook.
3700         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3701         * doc/tm.texi: Update.
3702         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3704 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
3706         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3707         (*insv_reg<mode>): New define_insn.
3709 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
3711         PR rtl-optimization/57439
3712         * postreload.c (move2add_valid_value_p): Check that we have
3713         a zero subreg_regno_offset when accessing the register in
3714         the requested mode.
3716 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3717             Igor Zamyatin  <igor.zamyatin@intel.com>
3719         Silvermont (SLM) architecture pipeline model, tuning and
3720         insn selection.
3721         * config.gcc: Add slm config options and target.
3723         * config/i386/slm.md: New.
3725         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3727         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
3728         PROCESSOR_SLM.
3729         (ix86_target_macros_internal): Likewise.
3731         * gcc/config/i386/i386.c (slm_cost): New cost.
3732         (m_SLM): New macro flag.
3733         (initial_ix86_tune_features): Set m_SLM.
3734         (x86_accumulate_outgoing_args): Likewise.
3735         (x86_arch_always_fancy_math_387): Likewise.
3736         (processor_target_table): Add slm cost.
3737         (cpu_names): Add slm cpu name.
3738         (x86_option_override_internal): Set SLM ISA.
3739         (ix86_issue_rate): New case PROCESSOR_SLM.
3740         (ia32_multipass_dfa_lookahead): Likewise.
3741         (fold_builtin_cpu): Add slm.
3743         * config/i386/i386.h (TARGET_SLM): New target macro.
3744         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3745         (processor_type): Add PROCESSOR_SLM.
3747         * config/i386/i386.md (cpu): Add new value "slm".
3748         (slm.md): Include slm.md.
3750 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
3751             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3753         * config/arm/arm-protos.h: Add and update function protos.
3754         * config/arm/arm.c (use_simple_return_p): New added.
3755         (thumb2_expand_return): Check simple_return flag.
3756         * config/arm/arm.md: Add simple_return and conditional simple_return.
3757         * config/arm/iterators.md: Add iterator for return and simple_return.
3759 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3761         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3762         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3763         (arm_emit_vfp_multi_reg_pop): Likewise.
3764         (thumb2_emit_ldrd_pop): Likewise.
3765         (arm_expand_epilogue): Add misc REG_CFA notes.
3766         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3768 2013-05-29  Lawrence Crowl  <crowl@google.com>
3770         * config/arm/t-arm: Update for below.
3772         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3773         Change type to hash_table.  Update dependent calls and types.
3775         * config/i386/t-cygming: Update for below.
3777         * config/i386/t-interix: Update for below.
3779         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3780         Change type to hash_table.  Update dependent calls and types.
3781         (i386_find_on_wrapper_list::wrappers): Likewise.
3783         * config/ia64/t-ia64: Update for below.
3785         * config/ia64/ia64.c (bundle_state_table):
3786         Change type to hash_table.  Update dependent calls and types.
3788         * config/mips/mips.c (mips_reorg_process_insns::htab):
3789         Change type to hash_table.  Update dependent calls and types.
3791         * config/sol2.c (solaris_comdat_htab):
3792         Change type to hash_table.  Update dependent calls and types.
3794         * config/t-sol2: Update for above.
3796 2013-05-29  Teresa Johnson  <tejohnson@google.com>
3798         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3799         functions are not yet marked as defined.
3801 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3802             Pat Haugen <pthaugen@us.ibm.com>
3803             Peter Bergner <bergner@vnet.ibm.com>
3805         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3806         instructions.
3807         (VEC_A): Likewise.
3808         (VEC_C): Likewise.
3809         (vrotl<mode>3): Likewise.
3810         (vashl<mode>3): Likewise.
3811         (vlshr<mode>3): Likewise.
3812         (vashr<mode>3): Likewise.
3814         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3815         support for power8 V2DI builtins.
3817         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3818         power8 V2DI builtins.
3819         (vupkhsw): Likewise.
3820         (vupklsw): Likewise.
3821         (vaddudm): Likewise.
3822         (vminsd): Likewise.
3823         (vmaxsd): Likewise.
3824         (vminud): Likewise.
3825         (vmaxud): Likewise.
3826         (vpkudum): Likewise.
3827         (vpksdss): Likewise.
3828         (vpkudus): Likewise.
3829         (vpksdus): Likewise.
3830         (vrld): Likewise.
3831         (vsld): Likewise.
3832         (vsrd): Likewise.
3833         (vsrad): Likewise.
3834         (vsubudm): Likewise.
3835         (vcmpequd): Likewise.
3836         (vcmpgtsd): Likewise.
3837         (vcmpgtud): Likewise.
3838         (vcmpequd_p): Likewise.
3839         (vcmpgtsd_p): Likewise.
3840         (vcmpgtud_p): Likewise.
3841         (vupkhsw): Likewise.
3842         (vupklsw): Likewise.
3843         (vaddudm): Likewise.
3844         (vmaxsd): Likewise.
3845         (vmaxud): Likewise.
3846         (vminsd): Likewise.
3847         (vminud): Likewise.
3848         (vpksdss): Likewise.
3849         (vpksdus): Likewise.
3850         (vpkudum): Likewise.
3851         (vpkudus): Likewise.
3852         (vrld): Likewise.
3853         (vsld): Likewise.
3854         (vsrad): Likewise.
3855         (vsrd): Likewise.
3856         (vsubudm): Likewise.
3858         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3859         support for power8 V2DI instructions.
3861         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
3862         power8 V2DI instructions.  Combine pack and unpack insns to use an
3863         iterator for each mode.  Check whether a particular mode supports
3864         Altivec instructions instead of just checking TARGET_ALTIVEC.
3865         (UNSPEC_VPKUWUM): Likewise.
3866         (UNSPEC_VPKSHSS): Likewise.
3867         (UNSPEC_VPKSWSS): Likewise.
3868         (UNSPEC_VPKUHUS): Likewise.
3869         (UNSPEC_VPKSHUS): Likewise.
3870         (UNSPEC_VPKUWUS): Likewise.
3871         (UNSPEC_VPKSWUS): Likewise.
3872         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
3873         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
3874         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
3875         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
3876         (UNSPEC_VUPKHSB): Likewise.
3877         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
3878         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
3879         (UNSPEC_VUPKHSH): Likewise.
3880         (UNSPEC_VUPKLSB): Likewise.
3881         (UNSPEC_VUPKLSH): Likewise.
3882         (VI2): Likewise.
3883         (VI_char): Likewise.
3884         (VI_scalar): Likewise.
3885         (VI_unit): Likewise.
3886         (VP): Likewise.
3887         (VP_small): Likewise.
3888         (VP_small_lc): Likewise.
3889         (VU_char): Likewise.
3890         (add<mode>3): Likewise.
3891         (altivec_vaddcuw): Likewise.
3892         (altivec_vaddu<VI_char>s): Likewise.
3893         (altivec_vadds<VI_char>s): Likewise.
3894         (sub<mode>3): Likewise.
3895         (altivec_vsubcuw): Likewise.
3896         (altivec_vsubu<VI_char>s): Likewise.
3897         (altivec_vsubs<VI_char>s): Likewise.
3898         (altivec_vavgs<VI_char>): Likewise.
3899         (altivec_vcmpbfp): Likewise.
3900         (altivec_eq<mode>): Likewise.
3901         (altivec_gt<mode>): Likewise.
3902         (altivec_gtu<mode>): Likewise.
3903         (umax<mode>3): Likewise.
3904         (smax<mode>3): Likewise.
3905         (umin<mode>3): Likewise.
3906         (smin<mode>3): Likewise.
3907         (altivec_vpkuhum): Likewise.
3908         (altivec_vpkuwum): Likewise.
3909         (altivec_vpkshss): Likewise.
3910         (altivec_vpkswss): Likewise.
3911         (altivec_vpkuhus): Likewise.
3912         (altivec_vpkshus): Likewise.
3913         (altivec_vpkuwus): Likewise.
3914         (altivec_vpkswus): Likewise.
3915         (altivec_vpks<VI_char>ss): Likewise.
3916         (altivec_vpks<VI_char>us): Likewise.
3917         (altivec_vpku<VI_char>us): Likewise.
3918         (altivec_vpku<VI_char>um): Likewise.
3919         (altivec_vrl<VI_char>): Likewise.
3920         (altivec_vsl<VI_char>): Likewise.
3921         (altivec_vsr<VI_char>): Likewise.
3922         (altivec_vsra<VI_char>): Likewise.
3923         (altivec_vsldoi_<mode>): Likewise.
3924         (altivec_vupkhsb): Likewise.
3925         (altivec_vupkhs<VU_char>): Likewise.
3926         (altivec_vupkls<VU_char>): Likewise.
3927         (altivec_vupkhsh): Likewise.
3928         (altivec_vupklsb): Likewise.
3929         (altivec_vupklsh): Likewise.
3930         (altivec_vcmpequ<VI_char>_p): Likewise.
3931         (altivec_vcmpgts<VI_char>_p): Likewise.
3932         (altivec_vcmpgtu<VI_char>_p): Likewise.
3933         (abs<mode>2): Likewise.
3934         (vec_unpacks_hi_v16qi): Likewise.
3935         (vec_unpacks_hi_v8hi): Likewise.
3936         (vec_unpacks_lo_v16qi): Likewise.
3937         (vec_unpacks_hi_<VP_small_lc>): Likewise.
3938         (vec_unpacks_lo_v8hi): Likewise.
3939         (vec_unpacks_lo_<VP_small_lc>): Likewise.
3940         (vec_pack_trunc_v8h): Likewise.
3941         (vec_pack_trunc_v4si): Likewise.
3942         (vec_pack_trunc_<mode>): Likewise.
3944         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3945         V2DI builtins.
3946         (vec_vmaxsd): Likewise.
3947         (vec_vmaxud): Likewise.
3948         (vec_vminsd): Likewise.
3949         (vec_vminud): Likewise.
3950         (vec_vpksdss): Likewise.
3951         (vec_vpksdus): Likewise.
3952         (vec_vpkudum): Likewise.
3953         (vec_vpkudus): Likewise.
3954         (vec_vrld): Likewise.
3955         (vec_vsld): Likewise.
3956         (vec_vsrad): Likewise.
3957         (vec_vsrd): Likewise.
3958         (vec_vsubudm): Likewise.
3959         (vec_vupkhsw): Likewise.
3960         (vec_vupklsw): Likewise.
3962 2013-05-29  Jan Hubicka  <jh@suse.cz>
3964         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3965         flags; reorder rest of fields in more consistent way.
3966         (varpool_node): Remove analyzed, finalized and alias.
3967         (cgraph_ndoe): Likewise.
3968         (symtab_alias_ultimate_target): New function.
3969         (cgraph_function_node): Move offline.
3970         (cgraph_reset_node): Declare.
3971         (cgraph_comdat_can_be_unshared_p): Remove.
3972         (varpool_remove_initializer): Declare.
3973         (varpool_first_defined_variable, varpool_next_defined_variable
3974         cgraph_first_defined_function, cgraph_next_defined_function): Update.
3975         (cgraph_function_with_gimple_body_p): Update.
3976         (varpool_all_refs_explicit_p): Update.
3977         (symtab_alias_target): New function.
3978         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3979         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3980         (cgraph_function_or_thunk_node): Simplify using
3981         symtab_alias_ultimate_target.
3982         (varpool_variable_node): Likewise.
3983         * cgraph.c (cgraph_create_function_alias): Update.
3984         (cgraph_add_thunk): Update.
3985         (cgraph_remove_node): Update.
3986         (dump_cgraph_node): Do not dump removed flags.
3987         (cgraph_function_body_availability): Update.
3988         (cgraph_propagate_frequency): Update.
3989         (verify_cgraph_node): Check sanity of local flag.
3990         (cgraph_function_node): Move here from cgraph.h; revamp for
3991         cgraph_function_or_thunk_node.
3992         * lto-symtab.c (lto_varpool_replace_node): Update.
3993         (lto_symtab_resolve_can_prevail_p): Update.
3994         (lto_symtab_merge_cgraph_nodes): Update.
3995         * ipa-cp.c (determine_versionability, initialize_node_lattices,
3996         propagate_constants_accross_call, devirtualization_time_bonus,
3997         ipcp_propagate_stage): Update.
3998         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3999         * ipa-inline-transform.c (clone_inlined_nodes,
4000         preserve_function_body_p): Update.
4001         * ipa-reference.c (propagate): Update.
4002         (write_node_summary_p): Update.
4003         * toplev.c (wrapup_global_declaration_2): Update.
4004         * cgraphunit.c (cgraph_analyze_function): Rename to ...
4005         (analyze_function) ... this one.
4006         (cgraph_process_new_functions): Update.
4007         (cgraph_reset_node): Export.
4008         (cgraph_finalize_function): Update.
4009         (cgraph_add_new_function): Update.
4010         (process_function_and_variable_attributes): Update.
4011         (varpool_finalize_decl): Update.
4012         (symbol_finalized): Remove.
4013         (symbol_finalized_and_needed): Rename to ...
4014         (symbol_defined_and_needed): ... update.
4015         (cgraph_analyze_functions): Update.
4016         (handle_alias_pairs): Update.
4017         (mark_functions_to_output): Update.
4018         (assemble_thunk): Update.
4019         (output_in_order): Update.
4020         (output_weakrefs): Update.
4021         (finalize_compilation_unit): Update.
4022         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4023         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4024         input_node, input_varpool_node): Update.
4025         * dbxout.c (dbxout_expand_expr): Update.
4026         * cgraphclones.c (cgraph_clone_node): Update.
4027         (cgraph_copy_node_for_versioning): Update.
4028         (cgraph_materialize_clone): Update.
4029         (cgraph_materialize_all_clones): Update.
4030         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4031         propagate_pure_const, propagate_nothrow): Update.
4032         * lto-streamer-out.c (lto_output, write_symbol): Update.
4033         * ipa-utils.c (ipa_reverse_postorder): Update.
4034         * ipa-inline.c (can_inline_edge_p): Update.
4035         (update_caller_keys, ipa_inline): Update.
4036         * dwarf2out.c (reference_to_unused,
4037         premark_types_used_by_global_vars_helper): Update.
4038         * tree-eh.c (tree_could_trap_p): Update.
4039         * ipa-split.c (consider_split, execute_split_functions): Update.
4040         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4041         has_addr_references_p): Update; move ahead in file for better
4042         readability.
4043         (process_references): Simplify.
4044         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4045         bodies are removed.
4046         (cgraph_comdat_can_be_unshared_p): Make static.
4047         (cgraph_externally_visible_p): Update.
4048         (varpool_externally_visible_p): Update.
4049         (function_and_variable_visibility): Update.
4050         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4051         ipa_tm_mark_force_output_node): Update.
4052         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4053         estimate_edge_devirt_benefit, inline_generate_summary,
4054         inline_write_summary): Update.
4055         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4056         * ipa-prop.c (ipa_compute_jump_functions): Update.
4057         (ipa_print_node_params, ipa_prop_read_section,
4058         ipa_update_after_lto_read, read_replacements_section): Update.
4059         * varasm.c (mark_decl_referenced): Update.
4060         (assemble_alias, dump_tm_clone_pairs): Update.
4061         * tree-inline.c (copy_bb): Update.
4062         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4063         Update.
4064         * symtab.c (dump_symtab_base): Print new flags.
4065         (verify_symtab_base): Verify new flags.
4066         (symtab_alias_ultimate_target): New function.
4067         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4068         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4069         Update.
4070         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4071         Update.
4072         * i386.c (ix86_get_function_versions_dispatcher,
4073         ix86_generate_version_dispatcher_body): Update.
4074         (fold_builtin_cpu): Use varpool_add_new_variable.
4075         * varpool.c (varpool_remove_initializer): Break out from ...
4076         (varpool_remove_node): ... this one.
4077         (dump_varpool_node, varpool_node_for_asm,
4078         cgraph_variable_initializer_availability, varpool_analyze_node,
4079         varpool_assemble_decl, varpool_remove_unreferenced_decls,
4080         varpool_finalize_named_section_flags, varpool_create_variable_alias):
4081         Update.
4083 2013-05-29  Jan Hubicka  <jh@suse.cz>
4085         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4087 2013-05-29  Easwaran Raman  <eraman@google.com>
4089         PR tree-optimization/57442
4090         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4091         when control exits the main loop.
4093 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
4095         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4096         and RX600.
4097         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
4098         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4099         * rx/t-rx: Add rx100 under multi library matches option for nofpu
4100         option.
4102 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4104         PR tree-optimization/57441
4105         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4106         Don't limit size of incr_vec to number of candidates.
4108 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
4110         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4111         and mips16 directories.
4112         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4113         (MULTILIB_DIRNAMES): Ditto.
4114         (MULTILIB_EXCEPTIONS): Add new exceptions.
4115         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4116         (MULTILIB_DIRNAMES): Ditto.
4117         (MULTILIB_EXCEPTIONS): Add new exceptions.
4119 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4120             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4122         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4123         SYMBOL_TINY_ABSOLUTE.
4124         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4125         SYMBOL_TINY_ABSOLUTE.
4126         (aarch64_expand_mov_immediate): Likewise.
4127         (aarch64_classify_symbol): Likewise.
4128         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4129         Permit SYMBOL_TINY_ABSOLUTE.
4130         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4132 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4133             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4135         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4136         Refactor if/switch.  Replace gcc_assert with if.
4138 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4140         * config/i386/i386.c (initial_ix86_tune_features): Enable
4141         FP Reassociation for AMD bdver1 and bdver2.
4143 2013-05-29  Martin Jambor  <mjambor@suse.cz>
4145         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4146         and IMAGPART_EXPR do not occur within other handled_components.
4148 2013-05-29  Richard Biener  <rguenther@suse.de>
4150         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4151         access on whether the use is in the BB we currently try to
4152         vectorize.
4153         (vect_bb_vectorization_profitable_p): Pass the BB we currently
4154         vectorize to vect_bb_slp_scalar_cost.
4156 2013-05-29  Richard Biener  <rguenther@suse.de>
4158         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4159         computing scalar cost offsetted by stmts that are kept live
4160         by scalar uses.
4161         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4162         for computation of scalar cost.
4164 2013-05-28  Steve Ellcey  <sellcey@mips.com>
4166         * config/mips/mips-cpus.def (mips32r2): Change processor type.
4168 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4170         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4171         array notation built-in reduction functions.
4172         * doc/passes.texi (Passes): Added documentation about changes done
4173         for Cilk Plus.
4174         * doc/invoke.texi (C Dialect Options): Added documentation about
4175         the -fcilkplus flag.
4176         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4177         (BUILTINS_DEF): Depend on cilkplus.def.
4178         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
4179         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4180         * cilkplus.def: New file.
4182 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
4184         PR rtl-optimization/57439
4185         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4187 2013-05-28  Easwaran Raman  <eraman@google.com>
4189         PR tree-optimization/57337
4190         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4191         (find_insert_point): Correctly identify the insertion point
4192         when two statements with the same UID is compared.
4194 2013-05-28  Richard Biener  <rguenther@suse.de>
4196         PR tree-optimization/56787
4197         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4198         from the list of data references.
4199         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4200         clobbers.
4201         (vect_analyze_loop_operations): Likewise.
4202         (vect_transform_loop): Remove clobbers.
4204 2013-05-28  Martin Jambor  <mjambor@suse.cz>
4206         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4207         and REALPART_EXPRs have scalar type.
4209 2013-05-28  Richard Biener  <rguenther@suse.de>
4211         PR tree-optimization/57411
4212         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4213         virtual operands.
4214         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4215         virtual operand propagation.
4217 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
4219         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4220         destination register for bmasksi_vis.
4221         (vector_init_bshuffle): Likewise.
4222         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4224 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
4226         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4227         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4228         mode if the instruction isn't available in the original mode.
4229         * config/sparc/sparc.opt (mfix-ut699): New option.
4230         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4231         (divdf3): Turn into expander.
4232         (divdf3_nofix): New insn.
4233         (divdf3_fix): Likewise.
4234         (divsf3): Disable if -mfix-ut699.
4235         (sqrtdf2): Turn into expander.
4236         (sqrtdf2_nofix): New insn.
4237         (sqrtdf2_fix): Likewise.
4238         (sqrtsf2): Disable if -mfix-ut699.
4240 2013-05-27  Richard Biener  <rguenther@suse.de>
4242         PR middle-end/57412
4243         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4244         block for the new loop.
4246 2013-05-27  Richard Biener  <rguenther@suse.de>
4248         PR tree-optimization/57343
4249         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4250         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4251         (number_of_iterations_cond): Do not build the folded tree.
4253 2013-05-27  Richard Biener  <rguenther@suse.de>
4255         Revert
4256         PR middle-end/57381
4257         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4258         OEP_CONSTANT_ADDRESS_OF retained.
4260         PR tree-optimization/57417
4261         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4262         for unchanged base.
4263         (set_ssa_val_to): Compare addresses using
4264         get_addr_base_and_unit_offset.
4266 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
4268         PR rtl-optimization/56833
4269         * postreload.c (move2add_record_mode): New function.
4270         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4271         (move2add_use_add2_insn): Use move2add_record_sym_value.
4272         (move2add_use_add3_insn): Likewise.
4273         (reload_cse_move2add): Use move2add_valid_value_p and
4274         move2add_record_mode.  Invalidate call-clobbered and REG_INC
4275         affected regs by setting reg_mode to VOIDmode.
4276         (move2add_note_store): Don't pretend the inside of a SUBREG is
4277         the actual destination.  Invalidate single/leading registers by
4278         setting reg_mode to VOIDmode.
4279         Use move2add_record_sym_value, move2add_valid_value_p and
4280         move2add_record_mode.
4282 2013-05-27  Richard Biener  <rguenther@suse.de>
4284         PR tree-optimization/57396
4285         * tree-affine.c (double_int_constant_multiple_p): Properly
4286         return false for val == 0 and div != 0.
4288 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4290         * config/mips/mips.h: Use #elif in preprocessor conditions.
4292 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4294         PR target/53916
4295         * config/mips/constraints.md (kl): New constraint.
4296         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4297         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
4298         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
4299         from LO for MIPS16.
4300         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4302 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4304         PR target/55777
4305         * config/mips/mips.c (mips_can_inline_p): New function.
4306         (TARGET_CAN_INLINE_P): Define.
4308 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
4310         * sched-int.h (ds_t, dw_t): Make unsigned int.
4311         Fix documentation that describes how all the ds_t bits are used.
4312         Reserve the last bit for delayed-branch scheduling.
4313         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4314         (BITS_PER_DEP_WEAK): Fix definition and documentation.
4315         (gen_dep_weak_1): Remove prototype.
4316         * sched-deps.c (get_dep_weak_1): Make static.
4317         * target.def (speculate_insn, needs_block_p, gen_spec_check,
4318         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4319         * doc/tm.texi: Regenerate.
4320         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4322 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
4324         PR debug/56950
4325         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4327 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
4328             Sandra Loosemore  <sandra@codesourcery.com>
4330         * config.gcc (powerpc-*): Allow native for with-cpu.
4332 2013-05-24  Jeff Law  <law@redhat.com>
4334         PR tree-optimization/57124
4335         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4336         conversion feeding a condition if the range has an overflow
4337         if -fstrict-overflow.  Add warnings for when we do make the
4338         transformation.
4340 2013-05-24  Dehao Chen  <dehao@google.com>
4342         * tree-cfg.c (locus_discrim_map): Fix the typo.
4343         (locus_discrim_hasher): Likewise.
4344         (locus_discrim_hasher::hash): Likewise.
4345         (locus_discrim_hasher::equal): Likewise.
4347 2013-05-24  Martin Jambor  <mjambor@suse.cz>
4349         PR tree-optimization/57294
4350         * cgraph.h (ipa_record_stmt_references): Declare.
4351         * cgraphbuild.c (ipa_record_stmt_references): New function.
4352         (build_cgraph_edges): Use ipa_record_stmt_references.
4353         (rebuild_cgraph_edges): Likewise.
4354         (cgraph_rebuild_references): Likewise.
4355         * ipa-prop.c (ipa_modify_call_arguments): Discard references
4356         associated with the old statement and build references from the
4357         newly built statements.
4358         * ipa-ref.c (ipa_remove_stmt_references): New function.
4359         * ipa-ref.h (ipa_remove_stmt_references): Declare.
4361 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4363         * lra-constraints.c (emit_spill_move): Use smaller mode for
4364         mem-mem moves.
4365         (check_and_process_move): Consider mem-reg moves for secondary
4366         too.
4367         (curr_insn_transform): Don't lose insns emitted before for
4368         secondary memory moves.
4369         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
4370         reg set up in the current insn.
4372 2013-05-24  Dehao Chen  <dehao@google.com>
4374         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4375         hash function.
4376         (locus_descrim_hasher::equal): Likewise.
4377         (build_gimple_cfg): New discriminator assignment algorithm.
4378         (make_edges): Likewise.
4379         (next_discriminator_for_locus): Likewise.
4380         (same_line_p): Likewise.
4381         (assign_discriminators): Likewise.
4382         (make_cond_expr_edges): Likewise.
4383         (make_gimple_switch_edges): Likewise.
4384         (make_goto_expr_edges): Likewise.
4385         (make_gimple_asm_edges): Likewise.
4387 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
4389         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4390         X format specifier to only display bottom 16 bits.
4391         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4392         immediate to match for operand 2, since it will be masked.
4394 2013-05-24  Richard Biener  <rguenther@suse.de>
4396         PR tree-optimization/57287
4397         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4398         all SSA names that occur in abnormal PHIs.
4400 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4402         PR tree-ssa/57385
4403         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4404         that index is not negative.
4406 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4408         PR rtl-optimization/55177
4409         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4410         (simplify_byte_swapping_operation): New.
4411         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4412         (simplify_relational_operation_1): Deal with BSWAP.
4414 2013-05-23  Richard Henderson  <rth@redhat.com>
4416         PR target/56742
4417         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4418         (ix86_reorg): Call it.
4420 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
4422         PR target/57379
4423         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4424         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4425         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4427 2013-05-23  Christian Bruel  <christian.bruel@st.com>
4429         PR debug/57351
4430         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4432 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4433             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4435         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4436         * config/aarch64/constraints.md (Usa): Remove.
4437         * doc/md.texi (AArch64 Usa): Remove.
4439 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4440             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4442         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4443         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4444         * config/aarch64/predicates.md (aarch64_const_address): Remove.
4445         (aarch64_mov_operand): Use aarch64_mov_operand_p.
4447 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
4449         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4450         instruction (AdvSIMD).
4451         * config/aarch64/aarch64-builtins.c
4452         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4453         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4455 2013-05-23  Martin Jambor  <mjambor@suse.cz>
4457         PR middle-end/57347
4458         * tree.h (contains_bitfld_component_ref_p): Declare.
4459         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4460         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
4461         caller.
4462         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4463         not access a bit-field.  Assert all final offsets are byte-aligned.
4465 2013-05-23  Richard Biener  <rguenther@suse.de>
4467         PR tree-optimization/57380
4468         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4469         least one invariant or re-used load.
4470         * passes.c (init_optimization_passes): Move pass_phiprop before
4471         pass_forwprop.
4473 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
4475         * config/aarch64/aarch64-simd.md
4476         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4478 2013-05-23  Richard Biener  <rguenther@suse.de>
4480         PR middle-end/57381
4481         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4482         OEP_CONSTANT_ADDRESS_OF retained.
4484 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
4486         PR middle-end/57344
4487         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4488         don't lower unit.  Handle unit not being always BITS_PER_WORD.
4490 2013-05-23  Richard Biener  <rguenther@suse.de>
4492         PR rtl-optimization/57341
4493         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4494         instead of true_dependence.
4496 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
4498         * bb-reorder.c (branch_threshold): Make const.
4499         (exec_threshold): Ditto.
4501 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4502             Pat Haugen <pthaugen@us.ibm.com>
4503             Peter Bergner <bergner@vnet.ibm.com>
4505         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4506         documentation for the power8 crypto builtins.
4508         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4510         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4511         macros for defining power8 builtin functions.
4512         (BU_P8V_AV_2): Likewise.
4513         (BU_P8V_AV_P): Likewise.
4514         (BU_P8V_VSX_1): Likewise.
4515         (BU_P8V_OVERLOAD_1): Likewise.
4516         (BU_P8V_OVERLOAD_2): Likewise.
4517         (BU_CRYPTO_1): Likewise.
4518         (BU_CRYPTO_2): Likewise.
4519         (BU_CRYPTO_3): Likewise.
4520         (BU_CRYPTO_OVERLOAD_1): Likewise.
4521         (BU_CRYPTO_OVERLOAD_2): Likewise.
4522         (XSCVSPDP): Fix typo, point to the correct instruction.
4523         (VCIPHER): Add power8 crypto builtins.
4524         (VCIPHERLAST): Likewise.
4525         (VNCIPHER): Likewise.
4526         (VNCIPHERLAST): Likewise.
4527         (VPMSUMB): Likewise.
4528         (VPMSUMH): Likewise.
4529         (VPMSUMW): Likewise.
4530         (VPERMXOR_V2DI): Likewise.
4531         (VPERMXOR_V4SI: Likewise.
4532         (VPERMXOR_V8HI: Likewise.
4533         (VPERMXOR_V16QI: Likewise.
4534         (VSHASIGMAW): Likewise.
4535         (VSHASIGMAD): Likewise.
4536         (VPMSUM): Likewise.
4537         (VPERMXOR): Likewise.
4538         (VSHASIGMA): Likewise.
4540         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4541         __CRYPTO__ if the crypto instructions are available.
4542         (altivec_overloaded_builtins): Add support for overloaded power8
4543         builtins.
4545         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4546         support for power8 crypto builtins.
4547         (builtin_function_type): Likewise.
4548         (altivec_init_builtins): Add support for builtins that take vector
4549         long long (V2DI) arguments.
4551         * config/rs6000/crypto.md: New file, define power8 crypto
4552         instructions.
4554 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4555             Pat Haugen <pthaugen@us.ibm.com>
4556             Peter Bergner <bergner@vnet.ibm.com>
4558         * doc/invoke.texi (Option Summary): Add power8 options.
4559         (RS/6000 and PowerPC Options): Likewise.
4561         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4562         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
4563         wm, wn, wr documentation.
4565         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4566         registers if direct move instructions are enabled.
4567         (wn): New constraint for no registers.
4568         (wq): New constraint for quad word even GPR registers.
4569         (wr): New constraint if 64-bit instructions are enabled.
4570         (wv): New constraint if power8 vector instructions are enabled.
4571         (wQ): New constraint for quad word memory locations.
4573         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4574         constraint for 0..15 for crypto instructions.
4575         (gpc_reg_operand): If VSX allow registers in VSX registers as well
4576         as GPR and floating point registers.
4577         (int_reg_operand): New predicate to match only GPR registers.
4578         (base_reg_operand): New predicate to match base registers.
4579         (quad_int_reg_operand): New predicate to match even GPR registers
4580         for quad memory operations.
4581         (vsx_reg_or_cint_operand): New predicate to allow vector logical
4582         operations in both GPR and VSX registers.
4583         (quad_memory_operand): New predicate for quad memory operations.
4584         (reg_or_indexed_operand): New predicate for direct move support.
4586         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4587         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4588         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4589         (POWERPC_MASKS): Add power8 options.
4590         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4591         various options.
4593         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4594         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4596         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4597         (-mpower8-fusion): New power8 options.
4598         (-mpower8-fusion-sign): Likewise.
4599         (-mpower8-vector): Likewise.
4600         (-mcrypto): Likewise.
4601         (-mdirect-move): Likewise.
4602         (-mquad-memory): Likewise.
4604         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4605         power8.
4606         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4607         registers.
4608         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4609         (rs6000_debug_vector_unit): Add p8_vector.
4610         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4611         definitions.  Also print fusion state.
4612         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4613         (rs6000_builtin_mask_calculate): Add power8 builtin support.
4614         (rs6000_option_override_internal): Add support for power8.
4615         (rs6000_common_init_builtins): Add debugging for skipped builtins
4616         if -mdebug=builtin.
4617         (rs6000_adjust_cost): Add power8 support.
4618         (rs6000_issue_rate): Likewise.
4619         (insn_must_be_first_in_group): Likewise.
4620         (insn_must_be_last_in_group): Likewise.
4621         (force_new_group): Likewise.
4622         (rs6000_register_move_cost): Likewise.
4623         (rs6000_opt_masks): Likewise.
4625         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4626         power8 capable assembler, default to power7 options.
4627         (TARGET_DIRECT_MOVE): Likewise.
4628         (TARGET_CRYPTO): Likewise.
4629         (TARGET_P8_VECTOR): Likewise.
4630         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4631         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4632         (VECTOR_MEM_P8_VECTOR_P): Likewise.
4633         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4634         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4635         (TARGET_XSCVDPSPN): Likewise.
4636         (TARGET_XSCVSPDPN): Likewsie.
4637         (TARGET_SYNC_HI_QI): Likewise.
4638         (TARGET_SYNC_TI): Likewise.
4639         (MASK_CRYPTO): Likewise.
4640         (MASK_DIRECT_MOVE): Likewise.
4641         (MASK_P8_FUSION): Likewise.
4642         (MASK_P8_VECTOR): Likewise.
4643         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4644         temporary used by some of the direct move instructions to get two FP
4645         temporary registers does not force creation of a stack frame.
4646         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4647         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4648         that any VSX registers are tieable, even if they are also an
4649         Altivec vector mode.
4650         (r6000_reg_class_enum): Add wm, wr, wv constraints.
4651         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4652         (RS6000_BTM_CRYPTO): Likewise.
4653         (RS6000_BTM_COMMON): Likewise.
4655         * config/rs6000/rs6000.md (cpu attribute): Add power8.
4656         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4657         (enum rs6000_vector): Add power8 vector support.
4659 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4661         PR target/19599
4662         PR target/57340
4663         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4664         (any_sibcall_could_use_r3): this and handle indirect calls.
4665         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4667 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4669         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4671 2013-05-22  Richard Biener  <rguenther@suse.de>
4673         PR middle-end/57349
4674         * profile.c (branch_prob): Do not split blocks that are
4675         abnormally receiving from ECF_RETURNS_TWICE functions.
4677 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4679         * recog.c (offsettable_address_addr_space_p): Fix calculation of
4680         address mode.  Move pointer mode initialization to the same place.
4682 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4684         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4685         while it has any effect.
4687 2013-05-21  Easwaran Raman  <eraman@google.com>
4689         PR tree-optimization/57322
4690         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4691         UID of the statement added to the BB to be 1.
4693 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
4695         PR tree-optimization/57331
4696         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4697         of conversion from pointer type to integral type with integer.
4699 2013-05-21  Martin Jambor  <mjambor@suse.cz>
4701         PR lto/57289
4702         * ipa-prop.c (ipa_read_node_info): Process param_used and
4703         controlled_uses in the same order as when writing.
4705 2013-05-21  Magnus Granberg  <baldrick@free.fr>
4707         PR plugins/56754
4708         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
4710 2013-05-21  Richard Biener  <rguenther@suse.de>
4712         PR tree-optimization/57318
4713         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4714         estimate stmts with side-effects as likely eliminated.
4716 2013-05-21  Richard Biener  <rguenther@suse.de>
4718         PR tree-optimization/57330
4719         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4720         preserve the call stmts fntype.
4722 2013-05-21  Richard Biener  <rguenther@suse.de>
4724         PR tree-optimization/57303
4725         * tree-ssa-sink.c (statement_sink_location): Improve killing
4726         stmt detection and properly handle self-assignments.
4728 2013-05-21  Christian Bruel  <christian.bruel@st.com>
4730         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4731         spanning registers. LEAF_REG_REMAP is supported only for contiguous
4732         registers. Set register size out of the PARALLEL loop.
4734 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
4736         PR target/56547
4737         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4738         (*fmasf4, *fmasf4_media): New insns.
4740 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
4742         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4743         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4744         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4745         (mips_idiv_insns): Update the comments to say that the returned
4746         instruction counts are in units of BASE_INSN_LENGTH.
4747         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4748         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
4749         using 2 rather than 4 as the length of indirect MIPS16 and
4750         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
4751         length of a NOP.  Don't divide MIPS16 lengths by 2.
4752         (mips16_split_long_branches): Assume a branch is long if the
4753         length is greater than 4 rather than 8.
4754         * config/mips/mips.md (length): Give MIPS16 lengths directly,
4755         rather than multiplying them by 2.  Multiply instruction counts
4756         by BASE_INSN_LENGTH rather than 4.
4757         (*jump_mips16, tls_get_tp_mips16_<mode>)
4758         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4760 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
4762         * config/mips/mips.md (extended_mips16): Remove branch case.
4763         (length): Remove duplicated extended_mips16 test.
4765 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
4767         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4769 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
4771         * recog.h (Recog_data): Rename to...
4772         (recog_data_d): ...this.
4773         (recog_data): Update accordingly.
4774         * recog.c (recog_data): Likewise.
4775         * reload.c (save_recog_data): Likewise.
4776         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4777         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4779 2013-05-17  Julian Brown  <julian@codesourcery.com>
4781         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4782         found in a REG_EQUAL note, invalidate it.
4784 2013-05-17  Easwaran Raman  <eraman@google.com>
4786         * tree-ssa-reassoc.c (find_insert_point): New function.
4787         (insert_stmt_after): Likewise.
4788         (get_def_stmt): Likewise.
4789         (ensure_ops_are_available): Likewise.
4790         (not_dominated_by): Likewise.
4791         (rewrite_expr_tree): Do not move statements beyond what is
4792         necessary. Remove call to swap_ops_for_binary_stmt...
4793         (reassociate_bb): ... and move it here.
4794         (build_and_add_sum): Assign UIDs for new statements.
4795         (linearize_expr): Likewise.
4796         (do_reassoc): Renumber gimple statement UIDs.
4798 2013-05-17  Jan Hubicka  <jh@suse.cz>
4800         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4801         weakrefs.
4802         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
4803         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4804         weakrefs.
4805         (output_weakrefs): Update.
4807 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
4808             Martin Jambor  <mjambor@suse.cz>
4810         PR middle-end/57276
4811         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4812         value that corresponds to the given aggval is found in values vector.
4814 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
4816         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4817         sse, sse2, sse3, ssse3 and sse4a flags to options.
4819 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
4821         * gengtype-state.c: (s_expr_writer): New class, to handle
4822         prettifying of output layout of s-expressions.
4823         (state_writer): New class, to write out gtype.state.
4824         (state_written_type_count): Move this variable into member data of
4825         state_writer.
4826         (s_expr_writer::s_expr_writer): New code: constructor for new class
4827         (state_writer::state_writer(): ditto
4828         (s_expr_writer::write_new_line): New function
4829         (s_expr_writer::write_any_indent): ditto
4830         (s_expr_writer::begin_s_expr): ditto
4831         (s_expr_writer::end_s_expr): ditto
4832         (write_state_fileloc): convert to method of state_writer...
4833         (state_writer:: write_state_fileloc): ...and use methods of
4834         s_expr_writer to write indentation into the gtype.state output file
4835         to visually represent the hierarchical structure of the list
4836         structures
4837         (write_state_fields): ditto, renaming to...
4838         (state_writer::write_state_fields)
4839         (write_state_a_string): ditto, renaming to...
4840         (state_writer::write_state_a_string)
4841         (write_state_string_option): ditto, renaming to...
4842         (state_writer::write_state_string_option)
4843         (write_state_type_option): ditto, renaming to...
4844         (state_writer::write_state_type_option)
4845         (write_state_nested_option): ditto, renaming to...
4846         (state_writer::write_state_nested_option)
4847         (write_state_option): ditto, renaming to...
4848         (state_writer::write_state_option)
4849         (write_state_options): ditto, renaming to...
4850         (state_writer::write_state_options)
4851         (write_state_lang_bitmap): ditto, renaming to...
4852         (state_writer::write_state_lang_bitmap)
4853         (write_state_version): ditto, renaming to...
4854         (state_writer::write_state_version)
4855         (write_state_scalar_type): ditto, renaming to...
4856         (state_writer::write_state_scalar_type)
4857         (write_state_string_type): ditto, renaming to...
4858         (state_writer::write_state_string_type)
4859         (write_state_undefined_type): ditto, renaming to...
4860         (state_writer::write_state_undefined_type)
4861         (write_state_struct_union_type): ditto, renaming to...
4862         (state_writer::write_state_struct_union_type)
4863         (write_state_struct_type): ditto, renaming to...
4864         (state_writer::write_state_struct_type)
4865         (write_state_user_struct_type): ditto, renaming to...
4866         (state_writer::write_state_user_struct_type)
4867         (write_state_lang_struct_type): ditto, renaming to...
4868         (state_writer::write_state_lang_struct_type)
4869         (write_state_param_struct_type): ditto, renaming to...
4870         (state_writer::write_state_param_struct_type)
4871         (write_state_pointer_type): ditto, renaming to...
4872         (state_writer::write_state_pointer_type)
4873         (write_state_array_type): ditto, renaming to...
4874         (state_writer::write_state_array_type)
4875         (write_state_gc_used): ditto, renaming to...
4876         (state_writer::write_state_gc_used)
4877         (write_state_common_type_content): ditto, renaming to...
4878         (state_writer::write_state_common_type_content)
4879         (write_state_type): ditto, renaming to...
4880         (state_writer::write_state_type)
4881         (write_state_pair_list): ditto, renaming to...
4882         (state_writer::write_state_pair_list)
4883         (write_state_pair): ditto, renaming to...
4884         (state_writer::write_state_pair)
4885         (write_state_typedefs): ditto, renaming to...
4886         (state_writer::write_state_typedefs)
4887         (write_state_structures): ditto, renaming to...
4888         (state_writer::write_state_structures)
4889         (write_state_param_structs): ditto, renaming to...
4890         (state_writer::write_state_param_structs)
4891         (write_state_variables): ditto, renaming to...
4892         (state_writer::write_state_variables)
4893         (write_state_srcdir): ditto, renaming to...
4894         (state_writer::write_state_srcdir)
4895         (write_state_files_list): ditto, renaming to...
4896         (state_writer::write_state_files_list)
4897         (write_state_languages): ditto, renaming to...
4898         (state_writer::write_state_languages)
4899         (write_state): create a state_writer instance and use it when
4900         writing out the state file
4902 2013-05-17  Mike Stump  <mikestump@comcast.net>
4904         PR rtl-optimization/57304
4905         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
4906         accessing DF_REF_REAL_LOC.
4908 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4910         PR rtl-optimization/57281
4911         PR rtl-optimization/57300
4912         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4913         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4914         what the other splitter did if the registers are dead.
4916 2013-05-17  Richard Biener  <rguenther@suse.de>
4918         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4919         MEM_REF offsets.
4921 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4923         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4924         linking.
4926 2013-05-17  Marek Polacek  <polacek@redhat.com>
4928         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4929         length when doing non-zero store of storing '\0' to '\0'.
4931 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4933         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4934         vect_external_def oprnd1 with loop_vinfo, try to emit
4935         optional cast, negation and and stmts on the loop preheader
4936         edge instead of into the pattern def seq.
4938         PR tree-optimization/57051
4939         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4940         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4942 2013-05-16  Nick Clifton  <nickc@redhat.com>
4944         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4945         (rl78_is_naked_func): New function.
4946         (rl78_expand_prologue): Skip prologue generation for naked functions.
4947         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4948         * doc/extend.texi (naked): Add RL78 to the list of processors
4949         that supports this attribute.
4951 2013-05-16  Jeff Law  <law@redhat.com>
4953         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4955 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4957         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4958         cache parameters using detect_caches_amd also for CYRIX,
4959         NSC and TM2 signatures.
4961 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4962             Dzianis Kahanovich  <mahatma@eu.by>
4964         PR target/45359
4965         PR target/46396
4966         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4967         VIA/Centaur processors and determine their cache parameters
4968         using detect_caches_amd.
4970 2013-05-16  Teresa Johnson  <tejohnson@google.com>
4972         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4973         (rtl_verify_edges): New function.
4974         (rtl_verify_bb_insns): Ditto.
4975         (rtl_verify_bb_pointers): Ditto.
4976         (rtl_verify_bb_insn_chain): Ditto.
4977         (rtl_verify_fallthru): Ditto.
4978         (rtl_verify_bb_layout): Ditto.
4979         (rtl_verify_flow_info_1): Outline checks into new functions.
4980         (rtl_verify_flow_info): Ditto.
4982 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
4984         * cfghooks.c (copy_bbs): Add update_dominance argument.
4985         * cfghooks.h (copy_bbs): Update prototype.
4986         * tree-cfg.c (gimple_duplicate_sese_region):
4987         Add update_dominance argument.
4988         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4989         * tree-ssa-loop-ch.c (copy_loop_headers): Update
4990         gimple_duplicate_sese_region call.
4991         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4992         Update copy_bbs call.
4993         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4994         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4996 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
4998         * tree-vectorizer.h (NUM_PATTERNS): Increment.
4999         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5000         vect_recog_rotate_pattern.
5001         (vect_recog_rotate_pattern): New function.
5003 2013-05-16  Jason Merrill  <jason@redhat.com>
5005         * Makefile.in (LLINKER): New variable.
5006         (mostlyclean): Remove link mutex.
5007         * configure.ac: Handle --enable-link-mutex.
5008         * lock-and-run.sh: New script.
5010 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5012         PR target/19599
5013         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5014         for NULL decl.
5016 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5018         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5020 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
5022         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5023         * config/arm/arm.c (next_consecutive_mem): New function.
5024         (gen_movmem_ldrd_strd): Likewise.
5025         * config/arm/arm.md (movmemqi): Update condition and code.
5026         (unaligned_loaddi, unaligned_storedi): New patterns.
5028 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5030         * config.gcc: Obsolete *-*-solaris2.9*.
5031         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5033 2013-05-16  Richard Biener  <rguenther@suse.de>
5035         * passes.c (init_optimization_passes): Move pass_parallelize_loops
5036         earlier, after GRAPHITE transforms and IV canonicalization.
5038 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
5040         * omp-low.c (extract_omp_for_data): For collapsed loops,
5041         if at least one of the loops is known at compile time to
5042         iterate zero times, set count to 0.
5043         (expand_omp_regimplify_p): New function.
5044         (expand_omp_for_generic): For collapsed loops, if at least
5045         one of the loops isn't known to iterate at least once,
5046         add runtime check with setting count to 0.
5047         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5048         For unsigned types if it isn't known at compile time that
5049         the loop will iterate at least once, add runtime check to bypass
5050         the whole loop if initial condition isn't true.
5052 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
5054         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5056 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
5058         PR middle-end/57286
5059         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5060         transformations to avoid an infinite loop.
5062 2013-05-16  Marek Polacek  <polacek@redhat.com>
5064         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5066 2013-05-15  Leif Ekblad  <leif@rdos.net>
5068         * config/i386/i386.c (ix86_decompose_address): Use
5069         DEFAULT_TLS_SEG_REG to access TLS segment register.
5070         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5071         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5072         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5074 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
5076         PR target/57260
5077         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5078         sibling calls to functions that would normally be lazily bound,
5079         unless $gp is call-clobbered.
5081 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
5083         * config/i386/i386.c (ix86_option_override_internal): Update
5084         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
5085         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5086         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
5087         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5088         of TARGET_3DNOW.
5089         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5091 2013-05-15  Andreas Schwab  <schwab@suse.de>
5093         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5094         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
5095         third operand.
5097 2013-05-15  Teresa Johnson  <tejohnson@google.com>
5099         * loop-unroll.c (report_unroll_peel): Check decision before
5100         emitting unroll/peel message.
5102 2013-05-15  Teresa Johnson  <tejohnson@google.com>
5104         * function.h (has_bb_partition): New rtl_data flag.
5105         (bb_reorder_complete): Ditto.
5106         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5107         instead of flag_reorder_blocks_and_partition.
5108         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5109         with some enhancements.
5110         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5111         * bb-reorder.c (connect_traces): Check for has_bb_partition
5112         instead of flag_reorder_blocks_and_partition.
5113         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5114         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5115         verify_hot_cold_block_grouping.
5116         (partition_hot_cold_basic_blocks): Set has_bb_partition.
5118 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5120         PR target/19599
5121         * config/arm/predicates.md (call_insn_operand): New predicate.
5122         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
5123         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5124         if insn is not a tail call.
5125         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5126         registers.
5127         * config/arm/arm.h (enum reg_class): New caller save register class.
5128         (REG_CLASS_NAMES): Likewise.
5129         (REG_CLASS_CONTENTS): Likewise.
5130         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5131         without decls.
5133 2013-05-15  Richard Biener  <rguenther@suse.de>
5135         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5136         of MSG_OPTIMIZED_LOCATIONS.
5137         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5138         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5139         message.
5140         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5141         of MSG_OPTIMIZED_LOCATIONS.
5142         (execute_vect_slp): Likewise.
5143         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5144         (vect_create_cond_for_alias_checks): Likewise.
5145         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5146         (vect_recog_widen_mult_pattern): Likewise.
5147         (vect_recog_widen_sum_pattern): Likewise.
5148         (vect_recog_over_widening_pattern): Likewise.
5149         (vect_recog_widen_shift_pattern): Likewise.
5150         (vect_recog_vector_vector_shift_pattern): Likewise.
5151         (vect_recog_divmod_pattern): Likewise.
5152         (vect_recog_mixed_size_cond_pattern): Likewise.
5153         (vect_recog_bool_pattern): Likewise.
5154         (vect_pattern_recog_1): Likewise.
5156 2013-05-15  Martin Jambor  <mjambor@suse.cz>
5158         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5159         non-functions to builtin_unreachable.
5160         * ipa-inline-transform.c (inline_call): Do not assert estimates were
5161         correct when new direct edges were discovered.
5163 2013-05-15  Martin Jambor  <mjambor@suse.cz>
5165         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5166         header, print symbol order instead of node uid, print more information
5167         about indirect edge targets.
5168         (ipa_make_edge_direct_to_target): Print symbol order instead of node
5169         uids.
5170         (ipa_make_edge_direct_to_target): Likewise.
5171         (remove_described_reference): Likewise.
5172         (propagate_controlled_uses): Likewise.
5173         (ipa_print_node_params): Also print symbol order.
5174         (ipcp_transform_function): Print symbol order instead of node uids.
5175         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5176         (cgraph_get_create_real_symbol_node): Likewise.
5177         * ipa-cp.c (print_lattice): Likewise.
5178         (print_all_lattices): Likewise.
5179         (determine_versionability): Likewise.
5180         (initialize_node_lattices): Likewise.
5181         (estimate_local_effects): Likewise.
5182         (update_profiling_info): Likewise.
5183         (create_specialized_node): Likewise.
5184         (perhaps_add_new_callers): Likewise.
5185         (decide_about_value): Likewise.
5186         (decide_whether_version_node): Likewise.
5187         (identify_dead_nodes): Likewise.
5188         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5189         (dump_inline_summary): Likewise.
5190         (estimate_node_size_and_time): Likewise.
5191         (inline_analyze_function): Likewise.
5192         * ipa-inline.c (report_inline_failed_reason): Likewise.
5193         (want_early_inline_function_p): Likewise.
5194         (edge_badness): Likewise.
5195         (update_edge_key): Likewise.
5196         (inline_small_functions): Likewise.  Add dumping of order to two other
5197         dumps.
5198         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5199         instead of node uids.
5200         (propagate_pure_const): Likewise.
5201         (propagate_pure_const): Likewise.
5202         * ipa-utils.c (dump_cgraph_node_set): Likewise.
5203         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5204         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5205         of node uids.
5206         * tree-pretty-print.c (dump_function_header): Likewise.
5207         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5208         Print symbol order instead of node uids.
5210 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5212         * config/s390/s390.c (s390_register_move_cost): Don't impose the
5213         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5215 2013-05-15  Richard Biener  <rguenther@suse.de>
5217         PR tree-optimization/57275
5218         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5219         return value for fail to do runtime alias checks for gather loads.
5221 2013-05-15  Jan Hubicka  <jh@suse.cz>
5223         PR lto/57038
5224         PR lto/47375
5225         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5226         weakrefs are not external.
5227         (lto_symtab_merge_decls): Fix thinko when dealing with
5228         non-lto_symtab decls.
5229         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5230         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5231         * varpool.c (dump_varpool_node): Dump more flags.
5233 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5235         * config/i386/i386.c (processor_alias_table): Add instruction
5236         FSGSBASE for AMD bdver3 architecture.
5238 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5240         * tree.c (warn_deprecated_use): Print file:line using locus color.
5241         * diagnostic.c (diagnostic_report_current_module): Print file:line
5242         and file:line:column using locus color.
5244 2013-05-14  Mike Stump  <mikestump@comcast.net>
5246         * gdbinit.in: Add __null.
5248 2013-05-14  Mike Stump  <mikestump@comcast.net>
5250         * recog.h: Rename struct recog_data to Recog_data.
5251         * recog.c: Likewise.
5252         * reload.c (can_reload_into): Likewise.
5253         * config/picochip/picochip.c: Likewise.
5255 2013-05-14  Mike Stump  <mikestump@comcast.net>
5257         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5259 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
5261         * resource.h (struct resources): Remove unch_memory member.
5262         (CLEAR_RESOURCE): Don't clear unch_memory.
5263         * resource.c (mark_referenced_resources): Don't set it.
5264         (mark_set_resources): Likewise.
5265         (mark_target_live_regs): Don't clear it.
5266         (init_resource_info): Likewise.
5267         * reorg.c (resource_conflicts_p): Don't compare it.
5268         (redundant_insn): Don't set it.
5270         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5271         Remove prototypes.
5272         * emit-rtl.c (next_label): Remove unused function.
5273         (skip_consecutive_labels, link_cc0_insns): Move to ...
5274         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5275         only place where these functions are used, and make them static.
5277 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
5279         * fold-const.c (fold_negate_expr): Handle vectors.
5280         (fold_truth_not_expr): Make it static.
5281         (fold_invert_truthvalue): New static function.
5282         (invert_truthvalue_loc): Handle vectors. Do not call
5283         fold_truth_not_expr directly.
5284         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5285         <TRUTH_NOT_EXPR>: Do not cast to boolean.
5286         (fold_comparison): Handle vector constants.
5287         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5288         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5289         * tree.h (fold_truth_not_expr): Remove declaration.
5291 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
5293         * config/aarch64/aarch64-simd.md
5294         (aarch64_vcond_internal<mode>): Rename to...
5295         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5296         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5297         float modes. Clarify all iterator modes.
5298         (vcond<mode><mode>): Use new name for vcond expanders.
5299         (vcond<v_cmp_result><mode>): Likewise.
5300         (vcondu<mode><mode>: Likewise.
5301         * config/aarch64/iterators.md (VDQF_COND): New.
5303 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
5305         PR bootstrap/57266
5306         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5307         variable for the shift amount. Check that we shift by non-negative
5308         amounts.
5310 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
5312         PR target/42017
5313         * config/arm/arm.h (EPILOGUE_USES): Only return true
5314         for LR_REGNUM after epilogue_completed.
5316 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
5318         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5319         is error_mark_node.
5321 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5323         PR target/57261
5324         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5325         and Solaris 11+/x86 with gld.
5326         * configure: Regenerate.
5328 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5330         * expmed.c (expand_shift_1): Canonicalize rotates by
5331         constant bitsize / 2 to bitsize - 1.
5332         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5333         case ROTATERT>: Likewise.
5335         Revert:
5336         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
5338         * config/i386/i386.md (rotateinv): New code attr.
5339         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5340         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5341         roll $31, %eax, etc.
5343 2013-05-14  Richard Biener  <rguenther@suse.de>
5345         PR middle-end/57235
5346         * tree-eh.c (sink_clobbers): Give up for successors with
5347         multiple predecessors and no virtual uses.
5349 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5351         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5352         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5354 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5356         PR middle-end/57251
5357         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5358         the case when both op0 and op1 have VOIDmode.
5360 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5362         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5363         in multiply-accumulate mode.
5365 2013-05-13  Guozhi Wei  <carrot@google.com>
5367         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5369 2013-05-13  Kai Tietz  <ktietz@redhat.com>
5371         PR target/56975
5372         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5373         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5374         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5375         * config/i386/i386.c (ix86_option_override_internal): Likewise.
5376         (ix86_expand_prologue): Likewise.
5377         (ix86_expand_split_stack_prologue): Likewise.
5378         (legitimate_pic_address_disp_p): Likewise.
5379         (legitimize_pic_address): Likewise.
5380         (legitimize_tls_address): Likewise.
5381         (legitimize_pe_coff_symbol): Likewise.
5382         (output_pic_addr_const): Likewise.
5383         (construct_plt_address): Likewise.
5384         (ix86_expand_call): Likewise.
5385         (x86_output_mi_thunk): Likewise.
5386         (x86_function_profiler): Likewise.
5388 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
5390         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5391         similar switch cases.
5392         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5393         (aarch64_simd_mov_to_<mode>low): Delete.
5394         (aarch64_simd_mov_to_<mode>high): Delete.
5395         (move_lo_quad_<mode>): Add w<-r alternative.
5396         (aarch64_simd_move_hi_quad_<mode>): Likewise.
5397         (aarch64_simd_mov_from_*): Update type attribute.
5398         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5399         statement.
5401 2013-05-13  Jan Hubicka  <jh@suse.cz>
5403         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5404         * config/i386/i386.c (ix86_compute_frame_layout,
5405         ix86_expand_epilogue, emit_i387_cw_initialization,
5406         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5407         ix86_local_alignment): Fix use of size/speed predicates.
5409 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
5411         PR tree-optimization/45216
5412         PR tree-optimization/57157
5413         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5414         the (-Y) & (B - 1) variant if OP is |.
5415         * expmed.c (expand_shift_1): For rotations by const0_rtx just
5416         return shifted.  Use (-op1) & (prec - 1) as other_amount
5417         instead of prec - op1.
5419 2013-05-13  Martin Jambor  <mjambor@suse.cz>
5421         PR middle-end/42371
5422         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5423         (ipa_constant_data): New type.
5424         (ipa_jump_func): Use ipa_constant_data to hold information about
5425         constant jump functions.
5426         (ipa_get_jf_constant): Adjust to jump function type changes.
5427         (ipa_get_jf_constant_rdesc): New function.
5428         (ipa_param_descriptor): New field controlled_uses.
5429         (ipa_get_controlled_uses): New function.
5430         (ipa_set_controlled_uses): Likewise.
5431         * ipa-ref.h (ipa_find_reference): Declare.
5432         * ipa-prop.c (ipa_cst_ref_desc): New type.
5433         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5434         changes.
5435         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
5436         New parameter cs.  Adjust all callers.
5437         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5438         (remove_described_reference): New function.
5439         (jfunc_rdesc_usable): Likewise.
5440         (try_make_edge_direct_simple_call): Decrement controlled use count,
5441         attempt to remove reference if it hits zero.
5442         (combine_controlled_uses_counters): New function.
5443         (propagate_controlled_uses): Likewise.
5444         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5445         (ipa_edge_duplication_hook): Duplicate reference descriptions.
5446         (ipa_print_node_params): Print described use counter.
5447         (ipa_write_jump_function): Adjust to jump function type changes.
5448         (ipa_read_jump_function): New parameter CS, pass it to
5449         ipa_set_jf_constant.  Adjust caller.
5450         (ipa_write_node_info): Stream controlled use count
5451         (ipa_read_node_info): Likewise.
5452         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5453         asserting.
5454         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5455         count.  Remove cloning-added reference if it reaches zero.
5456         * ipa-ref.c (ipa_find_reference): New function.
5458 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5460         * config/i386/i386.c (processor_target_table): Modified default
5461         alignment values for AMD BD and BT architectures.
5463 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
5465         * tree-vect-generic.c (uniform_vector_p): Move ...
5466         * tree.c (uniform_vector_p): ... here.
5467         * tree.h (uniform_vector_p): Declare it.
5468         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5469         into a scalar.
5471 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
5473         PR tree-optimization/57230
5474         * tree-ssa-strlen.c (handle_char_store): Record length for
5475         array store from STRING_CST.
5477         PR tree-optimization/57230
5478         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5479         check.
5481 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
5483         * config/epiphany/epiphany.c (epiphany_init): Check size of
5484         NUM_MODES_FOR_MODE_SWITCHING.
5485         (epiphany_expand_prologue):
5486         Remove CONFIG_REGNUM initial value handling code.
5487         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5488         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5489         (emit_set_fp_mode, epiphany_mode_after): Likewise.
5490         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5491         Don't return 1 for FP_MODE_NONE.
5492         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5493         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5494         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5495         * config/epiphany/epiphany.md (save_config): New pattern.
5497 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
5499         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5501 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
5503         * config/i386/i386.md (memory): Handle sseishft1.
5504         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5505         (*vec_extractv2di_1): Ditto.
5507 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
5509         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5510         saved registers.
5512 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5514         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5515         Add mthumb/march=armv7-a multilib.
5516         Add mthumb/march=armv7-r multilib.
5517         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5519 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
5521         * config/v850/t-rtems: Add more multilibs.
5523 2013-05-10  Richard Biener  <rguenther@suse.de>
5525         PR tree-optimization/57214
5526         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5527         not propagate from SSA names that occur in abnormal PHI nodes.
5529 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
5531         * stor-layout.c (element_precision): New function.
5532         * machmode.h (element_precision): Declare it.
5533         * tree.c (build_minus_one_cst): New function.
5534         (element_precision): Likewise.
5535         * tree.h (build_minus_one_cst): Declare new function.
5536         (element_precision): Likewise.
5537         * fold-const.c (operand_equal_p): Use element_precision.
5538         (fold_binary_loc): Handle vector types.
5539         * convert.c (convert_to_integer): Use element_precision.
5540         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5541         separately.
5543 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
5545         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5546         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5547         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5548         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5549         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5550         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5551         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5552         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5553         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5554         (Uuw8): New constraints.
5555         (Usb4): Move into alphabetical order.
5556         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5557         (sd8_operand, ub8_operand, uw8_operand): New predicates.
5558         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5559         previously unnamed patterns.
5560         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5561         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5562         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5563         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5564         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
5565         of specific lengths.
5567 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
5569         * config/i386/i386.md (rotateinv): New code attr.
5570         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5571         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5572         roll $31, %eax, etc.
5574         PR tree-optimization/45216
5575         PR tree-optimization/57157
5576         * tree-ssa-forwprop.c (simplify_rotate): New function.
5577         (ssa_forward_propagate_and_combine): Call it.
5579 2013-05-10  Richard Biener  <rguenther@suse.de>
5581         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5582         disable peeling when we version for aliasing.
5583         (vector_alignment_reachable_p): Honor explicit user alignment.
5584         (vect_supportable_dr_alignment): Likewise.
5585         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5586         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5587         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5588         then peeling to arrange for the cost-model check to come first.
5590 2013-05-10  Alan Modra  <amodra@gmail.com>
5592         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5593         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5594         * configure: Regenerate.
5596 2013-05-10  Alan Modra  <amodra@gmail.com>
5598         PR target/55033
5599         * varasm.c (default_elf_select_section): Move !DECL_P check..
5600         (get_named_section): ..to here before calling get_section_name.
5601         Adjust assertion.
5602         (default_section_type_flags): Add DECL_P check.
5603         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5604         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5606 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5608         * config/epiphany/epiphany.c (epiphany_expand_prologue):
5609         When using gen_stack_adjust_str with a register offset, add a
5610         REG_FRAME_RELATED_EXPR note.
5612 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
5614         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5615         (*vec_extractv4si_zext_mem): Ditto.
5616         (*vec_extractv2di): Add 0->x and x->x alternatives.
5617         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5618         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5620 2013-05-09  Jason Merrill  <jason@redhat.com>
5622         N3639 C++1y VLA support
5623         * gimplify.c (gimplify_vla_decl): Don't touch an existing
5624         DECL_VALUE_EXPR.
5626         * tree.c (build_constructor_va): New.
5627         * tree.h: Declare it.
5629 2013-05-09  Martin Jambor  <mjambor@suse.cz>
5631         PR lto/57084
5632         * gimple-fold.c (canonicalize_constructor_val): Call
5633         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5635 2013-05-09  Jan Hubicka  <jh@suse.cz>
5636             Richard Biener  <rguenther@suse.de>
5638         PR lto/54095
5639         * symtab.c (symtab_make_decl_local): Do not add private names.
5641 2013-05-09  Jan Hubicka  <jh@suse.cz>
5643         PR lto/54095
5644         * symtab.c (insert_to_assembler_name_hash): Handle clones.
5645         (unlink_from_assembler_name_hash): Likewise.
5646         (symtab_prevail_in_asm_name_hash, symtab_register_node,
5647         symtab_unregister_node, symtab_initialize_asm_name_hash,
5648         change_decl_assembler_name): Update.
5650 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
5652         * config/aarch64/aarch64.md: New movtf split.
5653         (*movtf_aarch64): Update.
5654         (aarch64_movdi_tilow): Handle TF modes and rename to
5655         aarch64_movdi_<mode>low.
5656         (aarch64_movdi_tihigh): Handle TF modes and rename to
5657         aarch64_movdi_<mode>high
5658         (aarch64_movtihigh_di): Handle TF modes and rename to
5659         aarch64_mov<mode>high_di
5660         (aarch64_movtilow_di): Handle TF modes and rename to
5661         aarch64_mov<mode>low_di
5662         (aarch64_movtilow_tilow): Remove spurious whitespace.
5663         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5664         splits.
5665         (aarch64_print_operand): Update.
5667 2013-05-09  Alan Modra  <amodra@gmail.com>
5669         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5670         powerpc64le.
5671         * configure: Regenerate.
5673 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
5675         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5676         splitter preparation statements.
5677         * config/i386/sse.md (*vec_extract* splitters): Ditto.
5678         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5679         adjust_address_nv.
5681 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5683         * gimple-ssa-strength-reduction.c (count_candidates): Change
5684         return value to int.
5685         (analyze_candidates_and_replace): Change type of length to int.
5687 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
5689         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5690         (*vec_extract<mode>): Use VI12_128 mode iterator.
5691         (*vec_extract<mode>_mem): Ditto.
5692         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5693         attribute.
5695 2013-05-08  Diego Novillo  <dnovillo@google.com>
5697         PR bootstrap/54659
5699         Revert:
5700         2012-08-17  Diego Novillo  <dnovillo@google.com>
5702         PR bootstrap/54281
5703         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5704         * config.in: Regenerate.
5705         * configure: Regenerate.
5706         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
5708 2013-05-08  Jan Hubicka  <jh@suse.cz>
5710         PR lto/54095
5711         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5712         * cgraph.h (symtab_node_base): Add unique_name.
5713         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5714         input_overwrite_node, input_varpool_node): Stream unique_name.
5715         * cgraphclones.c (cgraph_create_virtual_clone,
5716         cgraph_function_versioning): Set unique_name.
5717         * ipa.c (function_and_variable_visibility): Set unique_name.
5719 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5721         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5722         (alloc_cand_and_find_basis): Restrict conditional candidate
5723         processing to CAND_MULTs.
5725 2013-05-08  Jan Hubicka  <jh@suse.cz>
5727         PR lto/54095
5728         lto-symtab.c (lto_symtab_symbol_p): New function.
5729         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5730         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5731         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5732         Skip static symbols.
5734 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
5736         PR tree-optimization/57200
5737         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5738         Only call inform if the preceding warning_at returns true.
5740 2013-05-07  Han Shen  <shenhan@google.com>
5742         * cfgexpand.c (record_or_union_type_has_array_p): New function.
5743         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5744         * common.opt (fstack-protector-strong): New option.
5745         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5746         * doc/invoke.texi (Optimization Options): Document
5747         "-fstack-protector-strong".
5748         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5750 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
5752         * config/mips/mips.c (mips_machine_reorg2): Return 0.
5754 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
5756         * ira.c (update_equiv_regs): Add insn having equiv memory even if
5757         it is not lhs of the insn.
5758         (setup_reg_equiv): Remove insn having equiv memory which it is not
5759         lhs of the insn.
5760         * lra-constraints.c (process_address): Try to improve generation
5761         code for address base + disp.
5762         (lra_constraints): Make correct the code for checking insn setting
5763         up backward equivalence.  Remove insn only if it is in the init
5764         insn list.
5765         * lra-eliminations.c (update_reg_eliminate): Change return value.
5766         (lra_eliminate): Use the result.
5768 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
5770         * config/i386/sse.md (ssescalarnummask): New mode attribute.
5771         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5772         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5773         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5774         register target operands.
5775         (*vec_extractv8hi_sse2): New pattern.
5776         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5777         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5778         (*vec_extract<mode>_mem): New insn and split pattern.
5780 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
5782         * config/arm/arm.c (arm_asan_shadow_offset): New function.
5783         (TARGET_ASAN_SHADOW_OFFSET): Define.
5784         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5785         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5787 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5789         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5790         (incr_vec_index): Return -1 if increment not found.
5791         (create_add_on_incoming_edge): Assert if increment not found.
5792         (record_increment): Limit number of increments recorded.
5793         (all_phi_incrs_profitable): Return false if an increment not found.
5794         (replace_profitable_candidates): Don't process increments that were
5795         not recorded.
5796         (analyze_candidates_and_replace): Limit size of incr_vec.
5798 2013-05-07  Richard Biener  <rguenther@suse.de>
5800         * calls.c (special_function_p): setjmp-like functions are leaf.
5801         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5802         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5804 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
5806         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5807         (aarch64_simd_mov<mode>): New expander.
5808         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5809         (aarch64_simd_mov_to_<mode>high): Likewise.
5810         (aarch64_simd_mov_from_<mode>low): Likewise.
5811         (aarch64_simd_mov_from_<mode>high): Likewise.
5812         (aarch64_dup_lane<mode>): Update.
5813         (aarch64_dup_lanedi): New instruction pattern.
5814         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5815         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5817 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5819         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5820         (replace_mult_candidate): Remove unnecessary argument; remove
5821         unnecessary parameter from call to introduce_cast_before_cand.
5822         (replace_unconditional_candidate): Remove unnecessary parameter
5823         from call to replace_mult_candidate.
5824         (replace_conditional_candidate): Likewise.
5825         (insert_initializers): Use make_temp_ssa_name.
5826         (introduce_cast_before_cand): Remove unnecessary argument; use
5827         make_temp_ssa_name.
5828         (replace_one_candidate): Remove unnecessary argument; remove
5829         unnecessary parameter from calls to introduce_cast_before_cand.
5830         (replace_profitable_candidates): Remove unnecessary parameters
5831         from calls to replace_one_candidate.
5833 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5835         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
5836         phi def as possibly hiding a basis for a CAND_ADD whose operands
5837         have been commuted in the analysis.
5838         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
5840 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5842         * config/aarch64/aarch64.md
5843         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
5844         shift value between 0-4.
5846 2013-05-07  Richard Biener  <rguenther@suse.de>
5848         * double-int.h (rshift): New overload.
5849         * double-int.c (rshift): New function.
5850         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
5851         (create_reference_ops_from_ref): Remove.
5852         (vn_reference_insert): Use shared ops for constructing the
5853         reference and copy it.
5855 2013-05-07  Richard Biener  <rguenther@suse.de>
5857         PR middle-end/57190
5858         * tree-eh.c (sink_clobbers): Properly propagate
5859         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5861 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
5863         PR tree-optimization/57149
5864         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
5865         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
5866         collect_phi_def_edges, execute_late_warn_uninitialized): Use
5867         uninit_undefined_value_p instead of ssa_undefined_value_p.
5869         PR debug/57184
5870         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
5871         for modifier == EXPAND_INITIALIZER.
5873 2013-05-07  Anton Blanchard  <anton@samba.org>
5875         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
5876         for powerpc64 little endian.
5877         * configure: Regenerate.
5879 2013-05-06  Graham Stott  <grahams@btinternet.com>
5881         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
5882         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
5883         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
5884         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
5886 2013-05-06  Graham Stott  <grahams@btinternet.com>
5888         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
5889         codes which allow non-lvalues.
5891 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
5893         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
5894         components are all 1s.
5895         (integer_minus_onep): New function.
5896         * tree.h (integer_minus_onep): Declare it.
5897         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
5898         integer_minus_onep instead of integer_all_onesp.
5900 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5902         PR target/52933
5903         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
5904         variations of these patterns.
5906 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
5908         * config/i386/i386.md (isa): Add x64_sse4 member.
5909         (enabled): Handle x64_sse4.
5910         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
5911         instruction for 64bit SSE4_1 targets.  Update insn attributes.
5912         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5913         instruction for SSE4_1 targets.  Update insn attributes.
5914         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5915         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5916         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5917         const_1 selector.
5918         (*vec_extractv4si): Rename from *sse4_1_pextrd.
5919         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5920         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5922 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5924         PR target/57108
5925         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5927 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
5929         * final.c (do_assembler_dialects): Don't handle curly braces and
5930         vertical bar escaped by % as dialect delimiters.
5931         (output_asm_insn): Print curly braces and vertical bar if escaped
5932         by % and ASSEMBLER_DIALECT defined.
5933         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5934         * doc/tm.texi: Regenerated.
5936 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
5938         * config/mips/mips.c: Include tree-pass.h.
5939         (mips_reorg): Split in pre- and post-dbr_schedule parts.
5940         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5941         (pass_mips_machine_reorg2): New machine specific pass.
5942         (insert_pass_mips_machine_reorg2): New pass plugin definition.
5943         (mips_option_override): Register the new pass.
5944         * rtl.h (cleanup_barriers): Remove prototype.
5945         (dbr_schedule): Likewise.
5946         * jump.c (cleanup_barriers): Make static.
5947         * reorg.c (dbr_schedule): Likewise.
5949 2013-05-06  Richard Biener  <rguenther@suse.de>
5951         PR tree-optimization/57185
5952         * tree-parloops.c (add_field_for_reduction): Handle anonymous
5953         SSA names properly.
5955 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
5957         PR target/57106
5958         * config/i386/i386.c (add_parameter_dependencies): Add dependence
5959         between "first_arg" and "insn", not "last" and "insn".
5961 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5963         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5964         (find_candidates_in_block): Re-enable slsr_process_phi.
5965         (create_phi_basis): Fix double counting of candidate adjustment.
5967 2013-05-06  Richard Biener  <rguenther@suse.de>
5969         PR middle-end/57147
5970         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5971         the edge is also fallthru, preserve it and just clear the
5972         abnormal flag.
5973         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5974         also complex, preserve that and just clear the fallthru flag.
5975         * tree-inline.c (update_ssa_across_abnormal_edges): Also
5976         update virtual operands.
5978 2013-05-06  Alan Modra  <amodra@gmail.com>
5980         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5981         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5982         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5983         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5984         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5985         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5987 2013-05-06  Alan Modra  <amodra@gmail.com>
5989         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5990         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
5991         (DEFAULT_ASM_ENDIAN): Define.
5992         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5993         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5994         Update -K PIC clause from sysv4.h.
5995         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5996         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5998 2013-05-06  Alan Modra  <amodra@gmail.com>
6000         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6001         twice for little-endian.
6002         (ashrdi3_no_power, ashrdi3): Support little-endian.
6004 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6006         PR target/55303
6007         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6008         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6009         related expanders.
6010         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6011         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6012         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6013         New predicates.
6015 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
6016             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6018         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6019         * config/pa/pa.opt: Make mbig-switch a no-op.
6020         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6021         (CASE_VECTOR_MODE): Always return SImode.
6022         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6023         for the !TARGET_BIG_SWITCH case.
6024         * config/pa/pa-linux.h: Likewise.
6025         * config/pa/pa-openbsd.h: Likewise.
6026         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6027         * config/pa/pa.md (short_jump): Remove define_insn.
6028         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6029         (casesi0): Remove define_insn.
6030         (type): Remove btable_branch.
6031         (pa_combine_type): Likewise.
6032         (in_nullified_branch_delay): Likewise.
6033         (in_call_delay): Likewise.
6034         (define_delay): Likewise.
6035         (define_insn_reservation "Z3"): Likewise.
6036         (define_insn_reservation "Z4"): Likewise.
6037         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6038         (pa_adjust_insn_length): Remove adjustment for btable branches.
6039         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6040         and mno-big-switch
6042 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
6044         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6045         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6046         Add m->r,x alternatives.
6047         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6048         splitters using SWI48x mode iterator.
6049         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
6050         TARGET_64BIT.  Add m->x alternative.
6051         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6052         Add o->x alternative.  Enable for TARGET_SSE.
6053         (sse_storeq): Remove expander.
6054         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6055         with memory input operand.
6056         (*vec_extractv2di_1 splitter): New.
6057         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6058         * config/i386/i386.md (ssevecmodelower): New mode attribute.
6060 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
6062         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
6063         (INT_LOWPART): Delete.
6064         (extract_MB): Adjust.
6065         (extract_ME): Adjust.
6066         (print_operand): Adjust.
6068 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
6070         * config/rs6000/predicates.md (reg_or_add_cint_operand,
6071         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6072         (reg_or_logical_cint_operand, easy_fp_constant,
6073         logical_const_operand): Delete "CONST_DOUBLE" case.
6074         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6075         "HOST_BITS_PER_WIDE_INT == 64" test.
6076         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
6077         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6078         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6079         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6080         test.
6081         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6082         CONST_DOUBLE DImode/VOIDmode case.
6083         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6084         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
6085         CONST_DOUBLE VOIDmode case.
6086         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6087         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6088         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6089         Delete CONST_DOUBLE case.
6090         (splitters for mov FMOVE64 const_double): Delete
6091         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
6092         "HOST_BITS_PER_WIDE_INT >= 64" test.
6093         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6094         case.
6095         (mov DI const_double): Delete.
6097 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
6099         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6100         on op shows all bits zero in mode of a lowpart subreg, return zero.
6102 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6104         PR target/57150
6105         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6106         to save TFmode registers and DImode to save TImode registers for
6107         caller save operations.
6108         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6109         mark being partially clobbered since they only use the first
6110         double word.
6112         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6113         and TDmode only use the upper 64-bits of each VSX register.
6115 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6117         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6118         (find_candidates_in_block): Disable slsr_process_phi.
6120 2013-05-03  Guozhi Wei  <carrot@google.com>
6122         * coverage.c (coverage_obj_init): Move the construction of gcov
6123         constructor to ...
6124         (build_init_ctor): ... here.
6126 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6128         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6129         (slsr_cand_d): Redefine def_phi.
6130         (stride_status, phi_adjust_status, count_phis_status): New enums.
6131         (find_phi_def): New.
6132         (find_basis_for_base_expr): New.
6133         (find_basis_for_candidate): Handle hidden bases.
6134         (alloc_cand_and_find_basis): Handle phi candidates.
6135         (slsr_process_phi): New.
6136         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6137         (create_mul_imm_cand): Likewise.
6138         (create_add_ssa_cand): Exclude phi base candidates.
6139         (create_add_imm_cand): Likewise.
6140         (slsr_process_cast): Likewise.
6141         (slsr_process_copy): Likewise.
6142         (find_candidates_in_block): Handle phi candidates.
6143         (dump_candidate): Likewise.
6144         (unconditional_cands): Delete.
6145         (unconditional_cands_with_known_stride_p): Delete.
6146         (phi_dependent_cand_p): New.
6147         (cand_increment): Handle phi-dependent candidates.
6148         (replace_dependent): Delete.
6149         (replace_mult_candidate): New.
6150         (replace_unconditional_candidate): New.
6151         (incr_vec_index): Move to avoid forward reference.
6152         (create_add_on_incoming_edge): New.
6153         (create_phi_basis): New.
6154         (replace_dependents): Delete.
6155         (replace_conditional_candidate): New.
6156         (phi_add_costs): New.
6157         (replace_uncond_cands_and_profitable_phis): New.
6158         (record_increment): Handle phi adjustments.
6159         (record_phi_increments): New.
6160         (record_increments): Handle phi adjustments.
6161         (phi_incr_cost): New.
6162         (lowest_cost_path): Handle phis.
6163         (total_savings): Likewise.
6164         (analyze_increments): Likewise.
6165         (ncd_with_phi): New.
6166         (ncd_of_cand_and_phis): New.
6167         (nearest_common_dominator_for_cands): Handle phi increments.
6168         (all_phi_incrs_profitable): New.
6169         (replace_profitable_candidates): Handle phi-dependent candidates.
6170         (analyze_candidates_and_replace): Likewise.
6172 2013-05-03  Teresa Johnson  <tejohnson@google.com>
6174         PR bootstrap/57154
6175         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6176         do not exceed REG_BR_PROB_BASE.
6178 2013-05-03  Jeff Law  <law@redhat.com>
6180         PR tree-optimization/57144
6181         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6182         operand of the condition will bit into the new type when eliminating
6183         a cast feeding a condition.
6185 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
6187         PR rtl-optimization/57130
6188         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6189         of COMPARE as in_code to the recursive call if needed.
6191 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
6193         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6194         (enabled): Handle new members.
6195         * config/i386/sse.md (*vec_concatv2si): Merge from
6196         *vec_concatv2si_sse2 and vec_concatv2si_sse.
6197         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6199 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
6201         PR tree-optimization/57027
6202         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6203         for fnms opportunity, check we got the prerequisite kind
6204         of tree / gimple before using accessor functions.
6206 2013-05-03  Richard Biener  <rguenther@suse.de>
6208         * double-int.h (lshift): New overload without precision
6209         and arith argument.
6210         (operator *=, operator +=, operator -=): Move ...
6211         * double-int.c (operator *=, operator +=, operator -=): ... here
6212         and implement more efficiently.
6213         (mul_double_with_sign): Remove.
6214         (lshift_double): Adjust to take unsinged shift argument, push
6215         dispatching code to callers.
6216         (mul_double_wide_with_sign): Add early out for callers that
6217         are not interested in high parts or overflow.
6218         (lshift): New function.
6219         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6220         dispatch code here.
6221         (lrotate, rrotate): Use logical shifts.
6222         * expr.c (get_inner_reference): Use lshift.
6223         * fixed-value.c (do_fixed_divide): Likewise.
6224         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6225         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6226         (indirect_refs_may_alias_p): Likewise.
6227         (stmt_kills_ref_p_1): Likewise.
6229 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
6231         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6233 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
6235         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6236         scalar form of FABD instruction.
6238 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
6240         * lra-constraints.c (process_alt_operands): Add checking alt
6241         number to choose the best alternative.
6243 2013-05-02  Richard Biener  <rguenther@suse.de>
6245         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6246         bitmap and its handling.
6247         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6249 2013-05-02  Richard Biener  <rguenther@suse.de>
6251         PR middle-end/57140
6252         * tree-inline.c (copy_loops): Properly handle removed loops.
6253         (copy_cfg_body): Mark destination loops for fixup if source
6254         loops needed fixup.
6256 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
6258         PR target/56732
6259         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6260         generating simple_return for naked functions.
6262 2013-05-02  Martin Jambor  <mjambor@suse.cz>
6264         PR middle-end/56988
6265         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6266         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6267         flags match.
6268         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6269         ipa_agg_replacement_value structures.
6270         (known_aggs_to_agg_replacement_list): Likewise.
6271         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6272         (read_agg_replacement_chain): Likewise.
6273         (ipcp_transform_function): Also check that by_ref flags match.
6275 2013-05-02  Richard Biener  <rguenther@suse.de>
6277         * graphds.h (struct graph): Add obstack member.
6278         * graphds.c (new_graph): Initialize obstack and allocate
6279         vertices from it.
6280         (add_edge): Allocate edge from the obstack.
6281         (free_graph): Free the obstack instead of all edges and vertices.
6283 2013-05-02  Teresa Johnson  <tejohnson@google.com>
6285         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6286         divides.
6287         * cfg.c (update_bb_profile_for_threading): Ditto.
6288         * tree-inline.c (copy_bb): Ditto.
6289         (copy_edges_for_bb): Ditto.
6290         (initialize_cfun): Ditto.
6291         (copy_cfg_body): Ditto.
6292         (expand_call_inline): Ditto.
6293         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6294         (estimate_node_size_and_time): Ditto.
6295         (inline_merge_summary): Ditto.
6296         * cgraphclones.c (cgraph_clone_edge): Ditto.
6297         (cgraph_clone_node): Ditto.
6298         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6299         (compute_trg_info): Ditto.
6301 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
6303         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6304         S reg when fp attribute set.
6305         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6307 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
6309         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6310         New pattern.
6311         (*and_one_cmplsi3_compare0_uxtw): Likewise.
6312         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6313         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6315 2013-05-02  Richard Biener  <rguenther@suse.de>
6317         * tree-scalar-evolution.c (scev_info_hasher): Remove.
6318         (struct instantiate_cache_entry): New type.
6319         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6320         (struct instantiate_cache_type): New type.
6321         (set_instantiated_value, get_instantiated_value): Remove.
6322         (get_instantiated_value_entry): New function.
6323         (instantiate_scev_name): Use the new cache and adjust.
6324         (instantiate_scev_poly): Adjust.
6325         (instantiate_scev_binary): Likewise.
6326         (instantiate_array_ref): Likewise.
6327         (instantiate_scev_convert): Likewise.
6328         (instantiate_scev_not): Likewise.
6329         (instantiate_scev_3): Likewise.
6330         (instantiate_scev_2): Likewise.
6331         (instantiate_scev_r): Likewise.
6332         (instantiate_scev): Likewise.
6333         (resolve_mixers): Likewise.
6335 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
6337         PR target/57091
6338         * lra-constraints.c (best_small_class_operands_num): Remove.
6339         (process_alt_operands): Remove small_class_operands_num.  Take
6340         small classes operands into losers and only if the operand is not
6341         matched.  Modify debugging output.
6342         (curr_insn_transform): Remove best_small_class_operands_num.
6343         Print insn name.
6345 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6347         * config/aarch64/aarch64-builtins.c
6348         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6349         * config/aarch64/aarch64-simd-builtins.def
6350         (reduc_splus_): Add new modes.
6351         (reduc_uplus_): New.
6352         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6353         (reduc_uplus_v4sf): Likewise.
6354         (reduc_splus_v4sf): Likewise.
6355         (aarch64_addv<mode>): Likewise.
6356         (reduc_uplus_<mode>): Likewise.
6357         (reduc_splus_<mode>): Likewise.
6358         (aarch64_addvv2di): Likewise.
6359         (reduc_uplus_v2di): Likewise.
6360         (reduc_splus_v2di): Likewise.
6361         (aarch64_addvv2si): Likewise.
6362         (reduc_uplus_v2si): Likewise.
6363         (reduc_splus_v2si): Likewise.
6364         (reduc_<sur>plus_<mode>): New.
6365         (reduc_<sur>plus_v2di): Likewise.
6366         (reduc_<sur>plus_v2si): Likewise.
6367         (reduc_<sur>plus_v4sf): Likewise.
6368         (aarch64_addpv4sf): Likewise.
6369         * config/aarch64/arm_neon.h
6370         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6371         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6372         add UNSPEC_SADDV, UNSPEC_UADDV.
6373         (SUADDV): New.
6374         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6376 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6378         * config/aarch64/arm_neon.h
6379         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6381 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6383         * config/aarch64/aarch64-builtins
6384         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6386 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6388         * config/aarch64/aarch64-simd-builtins.def
6389         (reduc_smax_): New.
6390         (reduc_smin_): Likewise.
6391         (reduc_umax_): Likewise.
6392         (reduc_umin_): Likewise.
6393         (reduc_smax_nan_): Likewise.
6394         (reduc_smin_nan_): Likewise.
6395         (fmax): Remove.
6396         (fmin): Likewise.
6397         (smax): Update for V2SF, V4SF and V2DF modes.
6398         (smin): Likewise.
6399         (smax_nan): New.
6400         (smin_nan): Likewise.
6401         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6402         (<su><maxmin><mode>3): ...This, refactor.
6403         (s<maxmin><mode>3): New.
6404         (<maxmin_uns><mode>3): Likewise.
6405         (reduc_<maxmin_uns>_<mode>): Refactor.
6406         (reduc_<maxmin_uns>_v4sf): Likewise.
6407         (reduc_<maxmin_uns>_v2si): Likewise.
6408         (aarch64_<fmaxmin><mode>: Remove.
6409         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6410         new builtin names.
6411         (vmin<q>_f<32,64>): Likewise.
6412         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6413         (FMAXMIN): New.
6414         (su): Add mappings for smax, smin, umax, umin.
6415         (maxmin): New.
6416         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6417         (FMAXMIN): Rename as...
6418         (FMAXMIN_UNS): ...This.
6419         (maxminv): Remove.
6420         (fmaxminv): Likewise.
6421         (fmaxmin): Likewise.
6422         (maxmin_uns): New.
6423         (maxmin_uns_op): Likewise.
6425 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6427         * config/aarch64/arm_neon.h
6428         (vac<ge, gt><sd>_f<32, 64>): Rename to...
6429         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6430         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6432 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6434         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6435         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6437 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6439         * config/aarch64/aarch64-simd.md
6440         (vcond<mode>_internal): Handle special cases for constant masks.
6441         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6442         (vcondu<mode><mode>): Likewise.
6443         (vcond<v_cmp_result><mode>): New.
6445 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6447         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6448         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6449         * config/aarch64/aarch64-simd-builtins.def
6450         (cmeq): Update to BUILTIN_VALLDI.
6451         (cmgt): Likewise.
6452         (cmge): Likewise.
6453         (cmle): Likewise.
6454         (cmlt): Likewise.
6455         * config/aarch64/arm_neon.h
6456         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6457         to builtins or C as appropriate.
6459 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6461         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6462         (cmgeu): ...This.
6463         (cmhi): Rename to...
6464         (cmgtu): ...This.
6465         * config/aarch64/aarch64-simd.md
6466         (simd_mode): Add SF.
6467         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6468         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6469         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6470         (cstore<mode>_neg): ...This.
6471         * config/aarch64/iterators.md
6472         (VALLF): new.
6473         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6474         (COMPARISONS): New.
6475         (UCOMPARISONS): Likewise.
6476         (optab): Add missing comparisons.
6477         (n_optab): New.
6478         (cmp_1): Likewise.
6479         (cmp_2): Likewise.
6480         (CMP): Likewise.
6481         (cmp): Remove.
6482         (VCMP_S): Likewise.
6483         (VCMP_U): Likewise.
6484         (V_cmp_result): Add DF, SF modes.
6485         (v_cmp_result): Likewise.
6486         (v): Likewise.
6487         (vmtype): Likewise.
6488         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6490 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
6492         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6493         define_insn to define_insn_and_split.
6494         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6495         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6496         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6497         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6498         (thumb2_negscc): Likewise.
6500 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
6502         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6504 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
6506         * config/arm/thumb2.md: Remove trailing whitespaces.
6508 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6510         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6511         Use gen_int_mode rather than GEN_INT.
6513 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
6515         * value-prof.c (stream_in_histogram_value): Remove the strayed
6516         debug_gimple_stmt.
6518 2013-04-30  Richard Biener  <rguenther@suse.de>
6520         PR middle-end/57122
6521         * cfghooks.c (split_edge): Properly check for the loop latch edge.
6523 2013-04-30  Richard Biener  <rguenther@suse.de>
6525         PR middle-end/57107
6526         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6528 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
6530         PR rtl-optimization/56957
6531         PR rtl-optimization/57105
6532         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6533         variable.  Use just INSN_UID for determining whether an insn
6534         should be only disconnected from the insn stream.
6535         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6537 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
6539         PR tree-optimization/57104
6540         * tsan.c (instrument_expr): Don't instrument accesses to
6541         DECL_HARD_REGISTER VAR_DECLs.
6543 2013-04-30  Richard Biener  <rguenther@suse.de>
6545         * function.h (loops_for_fn): New inline function.
6546         (set_loops_for_fn): Likewise.
6547         * cfgloop.h (place_new_loop): Add struct function parameter.
6548         (get_loop): Likewise.
6549         (get_loops): Likewise.
6550         (number_of_loops): Likewise.
6551         (fel_next): Adjust.
6552         (fel_init): Likewise.
6553         * cfg.c (get_loop_copy): Adjust.
6554         * cfgloop.c (flow_loops_dump): Likewise.
6555         (record_loop_exits): Likewise.
6556         (verify_loop_structure): Likewise.
6557         * cfgloopanal.c (mark_irreducible_loops): Likewise.
6558         (estimate_reg_pressure_cost): Likewise.
6559         (mark_loop_exit_edges): Likewise.
6560         * cfgloopmanip.c (place_new_loop): Likewise.
6561         (add_loop): Likewise.
6562         (duplicate_loop): Likewise.
6563         * graph.c (draw_cfg_nodes): Likewise.
6564         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6565         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6566         (extract_affine_chrec): Likewise.
6567         (build_scop_iteration_domain): Likewise.
6568         * graphite.c (graphite_initialize): Likewise.
6569         * ira-build.c (create_loop_tree_nodes): Likewise.
6570         (more_one_region_p): Likewise.
6571         (rebuild_regno_allocno_maps): Likewise.
6572         (mark_loops_for_removal): Likewise.
6573         (mark_all_loops_for_removal): Likewise.
6574         (remove_unnecessary_regions): Likewise.
6575         (ira_build): Likewise.
6576         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6577         * loop-init.c (fix_loop_structure): Likewise.
6578         (gate_rtl_move_loop_invariants): Likewise.
6579         (gate_rtl_unswitch): Likewise.
6580         (gate_rtl_unroll_and_peel_loops): Likewise.
6581         (rtl_doloop): Likewise.
6582         * lto-streamer-in.c (input_cfg): Likewise.
6583         * lto-streamer-out.c (output_cfg): Likewise.
6584         * modulo-sched.c (sms_schedule): Likewise.
6585         * predict.c (tree_estimate_probability): Likewise.
6586         (tree_estimate_probability_driver): Likewise.
6587         (estimate_loops): Likewise.
6588         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6589         (move_sese_region_to_fn): Likewise.
6590         (debug_loop_num): Likewise.
6591         * tree-chrec.c (chrec_evaluate): Likewise.
6592         (hide_evolution_in_other_loops_than_loop): Likewise.
6593         (chrec_component_in_loop_num): Likewise.
6594         (reset_evolution_in_loop): Likewise.
6595         (evolution_function_is_invariant_rec_p): Likewise.
6596         * tree-if-conv.c (main_tree_if_conversion): Likewise.
6597         * tree-inline.c (copy_loops): Likewise.
6598         (copy_cfg_body): Likewise.
6599         (tree_function_versioning): Likewise.
6600         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6601         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6602         Likewise.
6603         (add_to_evolution_1): Likewise.
6604         (scev_const_prop): Likewise.
6605         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6606         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6607         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6608         (tree_ssa_lim_initialize): Likewise.
6609         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6610         (verify_loop_closed_ssa): Likewise.
6611         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
6612         (tree_ssa_loop_im): Likewise.
6613         (tree_ssa_loop_unswitch): Likewise.
6614         (tree_vectorize): Likewise.
6615         (check_data_deps): Likewise.
6616         (tree_ssa_loop_ivcanon): Likewise.
6617         (tree_ssa_loop_bounds): Likewise.
6618         (tree_complete_unroll): Likewise.
6619         (tree_complete_unroll_inner): Likewise.
6620         (tree_parallelize_loops): Likewise.
6621         (tree_ssa_loop_prefetch): Likewise.
6622         (tree_ssa_loop_ivopts): Likewise.
6623         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6624         * tree-vectorizer.c (vectorize_loops): Likewise.
6626 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
6628         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6629         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6630         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6631         with EABI_LINK_SPEC.
6633 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6635         PR target/44578
6636         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6637         alternative.
6639 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
6641         PR target/57097
6642         * lra-constraints.c (process_alt_operands): Discourage a bit more
6643         using memory for pseudos.  Print cost dump for alternatives.
6644         Modify cost values for conflicts with early clobbers.
6645         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6647 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6649         PR target/57098
6650         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6652 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
6654         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6655         from/to S register.
6656         (movdi_aarch64): Support LDR/STR from/to D register.
6658 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
6660         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6661         or higher by default.
6663 2013-04-29  Richard Biener  <rguenther@suse.de>
6665         PR middle-end/57075
6666         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6667         even if not adding abnormal edges for calls that can make
6668         abnormal gotos.
6670 2013-04-29  Richard Biener  <rguenther@suse.de>
6672         PR middle-end/57103
6673         * tree-cfg.c (move_stmt_op): Fix condition under which to update
6674         TREE_BLOCK.
6675         (move_stmt_r): Remove redundant checking.
6677 2013-04-29  Teresa Johnson  <tejohnson@google.com>
6679         PR bootstrap/57077
6680         * basic-block.h (apply_scale): New function.
6681         (apply_probability): Use apply_scale.
6682         * gimple-streamer-in.c (input_bb): Ditto.
6683         * lto-streamer-in.c (input_cfg): Ditto.
6684         * lto-cgraph.c (merge_profile_summaries): Ditto.
6685         * tree-optimize.c (execute_fixup_cfg): Ditto.
6686         * tree-inline.c (copy_bb): Update comment to use apply_scale.
6687         (copy_edges_for_bb): Ditto.
6688         (copy_cfg_body): Ditto.
6690 2013-04-29  Tom de Vries  <tom@codesourcery.com>
6692         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6693         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6694         (tail_merge_optimize): Handle current_loops == NULL.
6696 2013-04-26  Jeff Law  <law@redhat.com>
6698         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6699         (simplify_cond_using_ranges): Generalize code to simplify
6700         COND_EXPRs where one argument is a constant and the other
6701         is an SSA_NAME created by an integral type conversion.
6703 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6705         * config/arm/arm.md (store_minmaxsi): Use only when
6706         optimize_insn_for_size_p.
6708 2013-04-29  Christian Bruel  <christian.bruel@st.com>
6710         PR target/57108
6711         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6713 2013-04-29  Richard Biener  <rguenther@suse.de>
6715         PR middle-end/57089
6716         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6717         loop tree make sure to schedule a fixup for the child as well.
6718         (expand_omp_for_generic): Properly add loops.
6719         (expand_omp_for_static_nochunk): Likewise.
6720         (expand_omp_for_static_chunk): Likewise.
6721         (expand_omp_for): For the degenerate case fixup loops.
6722         (expand_omp_sections): Fix default bb placement in loops.
6723         (expand_omp_atomic_pipeline): Properly add loops.
6725 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6727         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6729 2013-04-29  Tom de Vries  <tom@codesourcery.com>
6731         * tree-ssa-tail-merge.c: Update header comment.
6733 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6735         * config/aarch64/arm_neon.h
6736         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6737         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6738         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6739         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6740         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6741         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6742         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6743         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6745 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6747         * config/aarch64/aarch64-simd.md
6748         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6749         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6750         fix_trunc, fixuns_trunc.
6751         (ftrunc<VDQF:mode>2): New.
6752         * config/aarch64/iterators.md (optab): Add fix, fixuns.
6753         (fix_trunc_optab): New.
6755 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6757         * config/aarch64/aarch64-builtins.c
6758         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6759         iceilf, lround, iroundf.
6761 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6763         PR target/54349
6764         * config/i386/i386.h (enum ix86_tune_indices)
6765         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6766         New, split from X86_TUNE_INTER_UNIT_MOVES.
6767         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6768         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6769         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6770         (TARGET_INTER_UNIT_MOVES): Remove.
6771         * config/i386/i386.c (initial_ix86_tune_features): Update.
6772         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6773         (ix86_expand_convert_uns_didf_sse): Use
6774         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6775         (ix86_expand_vector_init_one_nonzero): Ditto.
6776         (ix86_expand_vector_init_interleave): Ditto.
6777         (inline_secondary_memory_needed): Return true for moves from SSE class
6778         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6779         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6780         * config/i386/constraints.md (Yi, Ym): Depend on
6781         TARGET_INTER_UNIT_MOVES_TO_VEC.
6782         (Yj, Yn): New constraints.
6783         * config/i386/i386.md (*movdi_internal): Change constraints of
6784         operand 1 from Yi to Yj and from Ym to Yn.
6785         (*movsi_internal): Ditto.
6786         (*movdf_internal): Ditto.
6787         (*movsf_internal): Ditto.
6788         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6789         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6790         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6791         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6792         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6793         * config/i386/sse.md (movdi_to_sse): Ditto.
6794         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6795         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6796         TARGET_INTER_UNIT_MOVES.
6797         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6798         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6799         instead of TARGET_INTER_UNIT_MOVES.
6800         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6801         operand 1 from Yi to Yj and from Ym to Yn.
6803 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6805         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6806         (float_truncate_hi_): Likewise.
6807         (float_extend_lo_): Likewise.
6808         (float_truncate_lo_): Likewise.
6809         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6810         (aarch64_float_extend_lo_v2df): Likewise.
6811         (vec_unpacks_hi_v4sf): Likewise.
6812         (aarch64_float_truncate_lo_v2sf): Likewise.
6813         (aarch64_float_truncate_hi_v4sf): Likewise.
6814         (vec_pack_trunc_v2df): Likewise.
6815         (vec_pack_trunc_df): Likewise.
6817 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6819         * config/aarch64/aarch64-builtins.c
6820         (aarch64_fold_builtin): Fold float conversions.
6821         * config/aarch64/aarch64-simd-builtins.def
6822         (floatv2si, floatv4si, floatv2di): New.
6823         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
6824         * config/aarch64/aarch64-simd.md
6825         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
6826         * config/aarch64/iterators.md (FLOATUORS): New.
6827         (optab): Add float, floatuns.
6828         (su_optab): Likewise.
6830 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6832         * config/aarch64/aarch64-builtins.c
6833         (aarch64_builtin_vectorized_function): Use new names for
6834         fcvt builtins.
6835         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
6836         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
6837         (fcvtzu): Split as...
6838         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
6839         (fcvtas): Split as...
6840         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
6841         (fcvtau): Split as...
6842         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
6843         (fcvtps): Split as...
6844         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
6845         (fcvtpu): Split as...
6846         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
6847         (fcvtms): Split as...
6848         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
6849         (fcvtmu): Split as...
6850         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
6851         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
6852         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
6853         (lfrintnusf, lfrintnudf): Likewise.
6854         * config/aarch64/aarch64-simd.md
6855         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
6856         define_insn.
6857         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
6858         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
6859         (fcvt_pattern): Likewise.
6861 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6863         * config/aarch64/aarch64-simd.md
6864         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
6865         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
6867 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6869         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
6870         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
6871         (vrnd<a,m,n,p>_f32): Implement using builtins.
6872         (vrnd<i,x><q>_f<32, 64>): New.
6874 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6876         * config/aarch64/aarch64-builtins.c
6877         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
6878         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
6879         (frintz): Rename to...
6880         (btrunc): ...this.
6881         (frintp): Rename to...
6882         (ceil): ...this.
6883         (frintm): Rename to...
6884         (floor): ...this.
6885         (frinti): Rename to...
6886         (nearbyint): ...this.
6887         (frintx): Rename to...
6888         (rint): ...this.
6889         (frinta): Rename to...
6890         (round): ...this.
6891         * config/aarch64/aarch64-simd.md
6892         (aarch64_frint<frint_suffix><mode>): Delete.
6893         (<frint_pattern><mode>2): Convert to insn.
6894         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
6895         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
6896         (frint_pattern): Likewise.
6897         (frint_suffix): Likewise.
6899 2013-04-29  Richard Biener  <rguenther@suse.de>
6901         PR tree-optimization/57081
6902         * loop-init.c: Include tree-flow.h.
6903         (loop_optimizer_finalize): Free number of iteration estimates.
6904         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
6906 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
6908         PR tree-optimization/57083
6909         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
6910         non-singleton shift count range, zero extend low_bound for uns case.
6912         * config/i386/predicates.md (general_vector_operand): New predicate.
6913         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6914         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6915         if they aren't nonimmediate operands.  If their original values
6916         satisfy const_vector_equal_evenodd_p, don't shift them.
6917         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6918         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
6919         if not nonimmediate_operand.
6920         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6921         instead of register_operand.
6922         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6924 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6926         * stor-layout.c (finalize_size_functions): Allocate a structure and
6927         reset cfun before dumping the functions.
6929 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
6931         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6933         PR target/56866
6934         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6935         use xop_pmacsdqh if uns_p.
6936         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6937         the immediate rotate count.
6939 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
6941         * rtl.h (struct rtx_def): Add comment for field jump.
6942         (LRA_SUBREG_P): New macro.
6943         * recog.c (register_operand): Check LRA_SUBREG_P.
6944         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6945         stack frame.
6946         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6947         (lra_final_code_change): Skip subreg change for operators.
6948         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6949         if there are no operand changes.
6950         * lra-constraints.c (curr_insn_set): New.
6951         (match_reload): Set LRA_SUBREG_P.
6952         (emit_spill_move): Ditto.
6953         (check_and_process_move): Use curr_insn_set. Process only single
6954         set insns.  Don't initialize sec_mem_p and change_p.
6955         (simplify_operand_subreg): Use LRA_SUBREG_P.
6956         (reg_in_class_p): New function.
6957         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6958         of #ifdef.  Add code to remove cycling.
6959         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6960         non-null disp.  Reload inner instead of disp when base and index
6961         are null.  Try to put lo_sum into register.
6962         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6963         (check_and_process_move): Move code for move cost check to
6964         simple_move_p.  Remove equiv_substitution.
6965         (simple_move_p): New function.
6966         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6967         curr_insn_set.  Call check_and_process_move only for single set
6968         insns.  Use the new function.  Move call of check_and_process_move
6969         after operand equiv substitution and address process.
6971 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6973         PR go/57045
6974         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6975         with nonlocal goto receivers or returns twice calls, ignore
6976         unininitialized values from abnormal edges to nl goto receiver
6977         or returns twice call.
6979 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6981         PR tree-optimization/57051
6982         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6983         and VEC_RSHIFT_EXPR if shift count is a multiple of element
6984         bitsize.
6986 2013-04-26  Richard Biener  <rguenther@suse.de>
6988         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6989         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
6990         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6991         (fixup_loop_arrays_after_move): New function.
6992         (move_sese_region_to_fn): Properly outline the loop tree parts
6993         of the SESE region.
6995 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
6997         * config/i386/i386.md (type, unit): Fix long lines.
6999 2013-04-26  Richard Biener  <rguenther@suse.de>
7001         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7002         (lto-streamer-out.o): Likewise.
7003         * cfgloop.c (init_loops_structure): Export, add struct function
7004         argument and adjust.
7005         (flow_loops_find): Adjust.
7006         * cfgloop.h (enum loop_estimation): Add EST_LAST.
7007         (init_loops_structure): Declare.
7008         * lto-streamer-in.c: Include cfgloop.h.
7009         (input_cfg): Input the loop tree.
7010         * lto-streamer-out.c: Include cfgloop.h.
7011         (output_cfg): Output the loop tree.
7012         (output_struct_function_base): Do not drop PROP_loops.
7014 2013-03-26  Richard Biener  <rguenther@suse.de>
7016         * tree-cfg.c (execute_build_cfg): Build the loop tree.
7017         (pass_build_cfg): Provide PROP_loops.
7018         (move_sese_region_to_fn): Remove loops that are outlined into fn
7019         for now.
7020         * tree-inline.c: Include cfgloop.h.
7021         (initialize_cfun): Do not drop PROP_loops.
7022         (copy_loops): New function.
7023         (copy_cfg_body): Copy loop structure.
7024         (tree_function_versioning): Initialize destination loop tree.
7025         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7026         (pass_parallelize_loops): Do IL verification.
7027         * loop-init.c (loop_optimizer_init): Fixup loops if required.
7028         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7029         the CFG make sure we fixup loops as well.
7030         * tree-ssa-tail-merge.c: Include cfgloop.h.
7031         (replace_block_by): When merging loop latches mark loops for fixup.
7032         * lto-streamer-out.c (output_struct_function_base): Drop
7033         PROP_loops for now.
7034         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7035         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7036         * ipa-split.c: Include cfgloop.h.
7037         (split_function): Add the new return block to the loop tree root.
7038         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7039         whether we have removed the forwarder block.
7040         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7041         * cfgloop.h (place_new_loop): Declare.
7042         * cfgloopmanip.c (place_new_loop): Export.
7043         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7044         (tree-switch-conversion.o): Likewise.
7045         (tree-complex.o): Likewise.
7046         (tree-inline.o): Likewise.
7047         (tree-ssa-tailmerge.o): Likewise.
7048         (ipa-split.o): Likewise.
7049         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7050         (tree-ssa-copy.o): Likewise.
7051         * tree-switch-conversion.c: Include cfgloop.h
7052         (process_switch): If we emit a bit-test cascade, schedule loops
7053         for fixup.
7054         * tree-complex.c: Include cfgloop.h.
7055         (expand_complex_div_wide): Properly add new basic-blocks to loops.
7056         * asan.c: Include cfgloop.h.
7057         (create_cond_insert_point): Properly add new basic-blocks to
7058         loops, schedule loop fixup.
7059         * cfgloop.c (verify_loop_structure): Check that looks are not
7060         marked for fixup.
7061         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7062         to loops.
7063         (expand_omp_for_generic): Likewise.
7064         (expand_omp_sections): Likewise.
7065         (expand_omp_atomic_pipeline): Schedule loops for fixup.
7066         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7067         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7068         is initialized, not when loops are present.
7069         * tree-parloops.c (parallelize_loops): Remove checking here.
7070         * passes.c (init_optimization_passes): Schedule a copy-propagation
7071         pass before complete unrolling of inner loops.
7073 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
7075         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7076         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7077         (colorize_init): Add argument to _WIN32 version.
7078         * toplev.c: Include diagnostic-color.h.
7079         (process_options): Default to -fdiagnostics-color=auto if
7080         GCC_COLORS env var is in the environment.
7081         * common.opt (fdiagnostics-color=): Add Var and Init.
7082         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7083         env var is in the environment, the default is auto rather than never.
7085         * diagnostic.h (file_name_as_prefix): Add context argument.
7086         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
7087         the string as locus.
7088         * langhooks.c (lhd_print_error_function): Adjust caller.
7090 2013-04-25  Lawrence Crowl  <crowl@google.com>
7092         * var-tracking.c (shared_hash_def::htab):
7093         Change type to hash_table.  Update dependent calls and types.
7095 2013-04-25  Lawrence Crowl  <crowl@google.com>
7097         * Makefile.in: Update as needed below.
7099         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7100         Move declaration to after the type's method definitons.
7102         * attribs.c (htab_t scoped_attributes::attribute_hash):
7103         Change type to hash_table.  Update dependent calls and types.
7105         * bitmap.c (htab_t bitmap_desc_hash):
7106         Change type to hash_table.  Update dependent calls and types.
7108         * cselib.c (htab_t cselib_hash_table):
7109         Change type to hash_table.  Update dependent calls and types.
7111         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7112         (hash_string_slot_node): Move implementation into lto-streamer.h
7113         struct string_slot_hasher.
7114         (eq_string_slot_node): Likewise.
7116         * data-streamer-out.c: Update output_block::string_hash_table
7117         dependent calls and types.
7119         * dwarf2cfi.c (htab_t trace_index):
7120         Change type to hash_table.  Update dependent calls and types.
7122         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7123         Change type to hash_table.  Update dependent calls and types.
7124         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7125         (htab_t optimize_external_refs::map): Likewise.
7126         (htab_t output_comp_unit::extern_map): Likewise.
7127         (htab_t output_comdat_type_unit::extern_map): Likewise.
7128         (htab_t output_macinfo::macinfo_htab): Likewise.
7129         (htab_t optimize_location_lists::htab): Likewise.
7130         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7132         * except.c (htab_t ehspec_hash_type):
7133         Change type to hash_table.  Update dependent calls and types.
7134         (assign_filter_values::ttypes): Likewise.
7135         (assign_filter_values::ehspec): Likewise.
7136         (sjlj_assign_call_site_values::ar_hash): Likewise.
7137         (convert_to_eh_region_ranges::ar_hash): Likewise.
7139         * gcse.c (htab_t pre_ldst_table):
7140         Change type to hash_table.  Update dependent calls and types.
7142         * ggc-common.c (htab_t saving_htab):
7143         Change type to hash_table.  Update dependent calls and types.
7144         (htab_t loc_hash): Likewise.
7145         (htab_t ptr_hash): Likewise.
7146         (call_count): Rename ggc_call_count.
7147         (call_alloc): Rename ggc_call_alloc.
7148         (loc_descriptor): Rename make_loc_descriptor.
7149         (add_statistics): Rename ggc_add_statistics.
7151         * ggc-common.c (saving_htab):
7152         Change type to hash_table.  Update dependent calls and types.
7154         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7155         (push_gimplify_context): Likewise.
7156         (pop_gimplify_context): Likewise.
7157         (struct gimple_temp_hash_elt): Added.
7158         (struct gimplify_hasher): Likewise.
7159         (struct gimplify_ctx.temp_htab):
7160         Change type to hash_table.  Update dependent calls and types.
7162         * gimple-fold.c: Include gimplify-ctx.h.
7164         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7165         Change type to hash_table.  Update dependent calls and types.
7166         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7167         avoid potential global name collision.
7169         * gimplify.c: Include gimplify-ctx.h.
7170         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7171         (htab_t gimplify_ctx::temp_htab):
7172         Update dependent calls and types for new type hash_table.
7173         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7174         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7176         * gimplify-ctx.h: New.
7177         (struct gimple_temp_hash_elt): Move from gimplify.c.
7178         (class gimplify_hasher): New.
7179         (struct gimplify_ctx): Move from gimple.h.
7180         (htab_t gimplify_ctx::temp_htab):
7181         Change type to hash_table.  Update dependent calls and types.
7183         * graphite-clast-to-gimple.c: Include graphite-htab.h.
7184         (htab_t ivs_params::newivs_index):
7185         Change type to hash_table.  Update dependent calls and types.
7186         (htab_t ivs_params::params_index): Likewise.
7187         (htab_t print_generated_program::params_index): Likewise.
7188         (htab_t gloog::newivs_index): Likewise.
7189         (htab_t gloog::params_index): Likewise.
7191         * graphite.c: Include graphite-htab.h.
7192         4htab_t graphite_transform_loops::bb_pbb_mapping):
7193         Change type to hash_table.  Update dependent calls and types.
7195         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7196         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7197         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7199         * graphite-dependences.c: Include graphite-htab.h.
7200         (loop_is_parallel_p): Change hash table type of parameter.
7202         * graphite-htab.h: New.
7203         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7204         (extern find_pbb_via_hash): Move from graphite-poly.h.
7205         (extern loop_is_parallel_p): Move from graphite-poly.h.
7206         (extern get_loop_body_pbbs): Move from graphite-poly.h.
7208         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7209         (extern loop_is_parallel_p): Move to graphite-htab.h.
7210         (extern get_loop_body_pbbs): Move to graphite-htab.h.
7212         * haifa-sched.c (htab_t delay_htab):
7213         Change type to hash_table.  Update dependent calls and types.
7214         (htab_t delay_htab_i2): Likewise.
7216         * ira-color.c (htab_t allocno_hard_regs_htab):
7217         Change type to hash_table.  Update dependent calls and types.
7219         * ira-costs.c (htab_t cost_classes_htab):
7220         Change type to hash_table.  Update dependent calls and types.
7222         * loop-invariant.c (htab_t merge_identical_invariants::eq):
7223         Change type to hash_table.  Update dependent calls and types.
7225         * loop-iv.c (htab_t bivs):
7226         Change type to hash_table.  Update dependent calls and types.
7228         * loop-unroll.c (htab_t opt_info::insns_to_split):
7229         Change type to hash_table.  Update dependent calls and types.
7230         (htab_t opt_info::insns_with_var_to_expand): Likewise.
7232         * lto-streamer.h (struct string_slot): Move from data-streamer.h
7233         (struct string_slot_hasher): New.
7234         (htab_t output_block::string_hash_table):
7235         Change type to hash_table.  Update dependent calls and types.
7237         * lto-streamer-in.c (freeing_string_slot_hasher): New.
7238         (htab_t file_name_hash_table):
7239         Change type to hash_table.  Update dependent calls and types.
7241         * lto-streamer-out.c: Update output_block::string_hash_table dependent
7242         calls and types.
7244         * lto-streamer.c (htab_t tree_htab):
7245         Change type to hash_table.  Update dependent calls and types.
7247         * omp-low.c: Include gimplify-ctx.h.
7249         * passes.c (htab_t name_to_pass_map):
7250         Change type to hash_table.  Update dependent calls and types.
7251         (pass_traverse): Rename to passes_pass_traverse.
7253         * plugin.c (htab_t event_tab):
7254         Change type to hash_table.  Update dependent calls and types.
7256         * postreload-gcse.c (htab_t expr_table):
7257         Change type to hash_table.  Update dependent calls and types.
7258         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7260         * sese.c (debug_rename_map_1): Make extern.
7261         (htab_t copy_bb_and_scalar_dependences::rename_map):
7262         Change type to hash_table.  Update dependent calls and types.
7264         * sese.h (extern debug_rename_map): Move to .c file.
7266         * store-motion.c (htab_t store_motion_mems_table):
7267         Change type to hash_table.  Update dependent calls and types.
7269         * trans-mem.c (htab_t tm_new_mem_hash):
7270         Change type to hash_table.  Update dependent calls and types.
7272         * tree-browser.c (htab_t TB_up_ht):
7273         Change type to hash_table.  Update dependent calls and types.
7275         * tree-cfg.c (htab_t discriminator_per_locus):
7276         Change type to hash_table.  Update dependent calls and types.
7278         * tree-complex.c: Include tree-hasher.h
7279         (htab_t complex_variable_components):
7280         Change type to hash_table.  Update dependent calls and types.
7282         * tree-eh.c (htab_t finally_tree):
7283         Change type to hash_table.  Update dependent calls and types.
7285         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7286         struct int_tree_hasher.
7287         (extern int_tree_map_eq): Likewise.
7288         (uid_decl_map_hash): Removed.
7289         (extern decl_tree_map_eq): Likewise.
7291         * tree-hasher.h: New.
7292         (struct int_tree_hasher): New.
7293         (typedef int_tree_htab_type): New.
7295         * tree-inline.c: Include gimplify-ctx.h.
7297         * tree-mudflap.c: Include gimplify-ctx.h.
7299         * tree-parloops.c: Include tree-hasher.h.
7300         (htab_t eliminate_local_variables_stmt::decl_address):
7301         Change type to hash_table.  Update dependent calls and types.
7302         (htab_t separate_decls_in_region::decl_copies): Likewise.
7304         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7305         Change type to hash_table.  Update dependent calls and types.
7307         * tree-sra.c (candidates):
7308         Change type to hash_table.  Update dependent calls and types.
7310         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7311         in tree-flow.h.
7312         (int_tree_map_hash): Likewise.
7314         * tree-ssa-dom.c (htab_t avail_exprs):
7315         Change type to hash_table.  Update dependent calls and types.
7317         * tree-ssa-live.c (var_map_base_init::tree_to_index):
7318         Change type to hash_table.  Update dependent calls and types.
7320         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7321         Change type to hash_table.  Update dependent calls and types.
7323         * tree-ssa-phiopt.c (seen_ssa_names):
7324         Change type to hash_table.  Update dependent calls and types.
7326         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7327         Change type to hash_table.  Update dependent calls and types.
7329         * tree-ssa-uncprop.c (equiv):
7330         Change type to hash_table.  Update dependent calls and types.
7332 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
7334         PR rtl-optimization/57003
7335         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7336         call note_stores with kill_clobbered_value callback again after
7337         killing regs_invalidated_by_call.
7339 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7341         * config/aarch64/aarch64-simd.md
7342         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7343         (aarch64_simd_bsl<mode>): Likewise.
7344         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7346 2013-04-25  Marek Polacek  <polacek@redhat.com>
7348         PR tree-optimization/57066
7349         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7351 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
7353         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7355 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7357         * config/aarch64/aarch64-builtins.c
7358         (aarch64_fold_builtin): New.
7359         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7360         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7361         * config/aarch64/aarch64-simd-builtins.def (abs): New.
7362         * config/aarch64/arm_neon.h
7363         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7365 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7366             Tejas Belagod  <tejas.belagod@arm.com>
7368         * config/aarch64/aarch64-builtins.c
7369         (aarch64_gimple_fold_builtin): New.
7370         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7371         * config/aarch64/aarch64-simd-builtins.def (addv): New.
7372         * config/aarch64/aarch64-simd.md (addpv4sf): New.
7373         (addvv4sf): Update.
7374         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7376 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7378         * config/aarch64/aarch64.md
7379         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7381 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7383         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7384         (*ngcsi_uxtw): New pattern.
7386 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7387             Julian Brown  <julian@codesourcery.com>
7389         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7390         (TB_DREG): Add T_V4HF.
7391         (v4hf_UP): New macro.
7392         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7393         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7394         Handle initialisation of V4HF. Adjust initialisation of reinterpret
7395         built-ins.
7396         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7397         (arm_vector_mode_supported_p): Handle V4HF.
7398         (arm_mangle_map): Handle V4HFmode.
7399         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7400         * config/arm/arm_neon_builtins.def: Add entries for
7401         vcvtv4hfv4sf, vcvtv4sfv4hf.
7402         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7403         (neon_vcvtv4hfv4sf): Likewise.
7404         * config/arm/neon-gen.ml: Handle half-precision floating point
7405         features.
7406         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7407         * config/arm/arm_neon.h: Regenerate.
7408         * config/arm/neon.ml (type elts): Add F16.
7409         (type vectype): Add T_float16x4, T_floatHF.
7410         (type vecmode): Add V4HF.
7411         (type features): Add Requires_FP_bit feature.
7412         (elt_width): Handle F16.
7413         (elt_class): Likewise.
7414         (elt_of_class_width): Likewise.
7415         (mode_of_elt): Refactor.
7416         (type_for_elt): Handle F16, fix error messages.
7417         (vectype_size): Handle T_float16x4.
7418         (vcvt_sh): New function.
7419         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7420         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7421         (string_of_mode): Handle V4HF.
7422         * doc/arm-neon-intrinsics.texi: Regenerate.
7424 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7426         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7427         format specifier in 'X' case.
7429 2013-04-25  Alan Modra  <amodra@gmail.com>
7431         PR target/57052
7432         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7433         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7434         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7435         Repeat for many other rotate/shift and mask patterns using subregs.
7436         Name lshiftrt insns.
7437         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7438         on WORDS_BIG_ENDIAN.
7440 2013-04-25  Alan Modra  <amodra@gmail.com>
7442         * config.gcc: Support little-endian powerpc-linux targets.
7443         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7444         (LINK_OS_LINUX_SPEC): Define.
7445         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7446         Preserve MASK_LITTLE_ENDIAN.
7447         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7448         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7449         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7450         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7451         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7452         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7453         Correct fp word order for little-endian.  Don't shift toc entries
7454         smaller than a word for little-endian.
7455         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7456         (bswapdi2 splits): Correct low-part subreg for little-endian.
7457         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7458         low/high where such is correct only for be.
7459         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7460         little-endian for -mcall-aixdesc.
7462 2013-04-25  Alan Modra  <amodra@gmail.com>
7464         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7465         replace_equiv_address_nv.
7467 2013-04-25  Alan Modra  <amodra@gmail.com>
7469         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7471 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7473         Revert:
7474         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7475         * rtl.h (struct rtx_def): ...
7477 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7479         PR rtl-optimizations/57046
7480         * lra-constraints (split_reg): Set up lra_risky_transformations_p
7481         for multi-reg splits.
7483 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7485         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7487 2013-04-24  Sterling Augustine  <saugustine@google.com>
7489         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7490         (comp_dir_string, debug_str_dwo_section): New.
7491         (DEBUG_STR_DWO_SECTION): Rename to ...
7492         (DEBUG_DWO_STR_SECTION): ... this.
7493         (DEBUG_NORM_STR_SECTION): Delete.
7494         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7495         (DEBUG_STR_DWO_SECTION_FLAGS): New.
7496         (find_AT_string): Move most logic to ...
7497         (find_AT_string_in_table): ... here.  New.
7498         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7499         add_skeleton_AT_string.  Delete logic.
7500         (output_skeleton_debug_sections): Remove call to
7501         add_top_level_skeleton_die_attrs.
7502         (add_comp_dir_attribute): Move logic to comp_dir_string.
7503         (dwarf2out_init): Initialize debug_str_dwo_section.
7504         (output_indirect_string): Call find_string_form.
7505         (output_indirect_strings): Rewrite.
7506         (prune_unused_types): Empty skeleton_debug_str_hash.
7507         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7508         (dwarf2out_finish):  Call output_indirect_strings.
7510 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7512         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7514 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7516         * rtl.h (struct rtx_def): Add comment for field jump.
7517         (LRA_SUBREG_P): New macro.
7518         * recog.c (register_operand): Check LRA_SUBREG_P.
7519         * lra.c (lra): Add note at the end of RTL code. Align non-empty
7520         stack frame.
7521         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7522         (lra_final_code_change): Skip subreg change for operators.
7523         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7524         if there are no operand changes.
7525         * lra-constraints.c (curr_insn_set): New.
7526         (match_reload): Set LRA_SUBREG_P.
7527         (emit_spill_move): Ditto.
7528         (check_and_process_move): Use curr_insn_set. Process only single
7529         set insns.  Don't initialize sec_mem_p and change_p.
7530         (simplify_operand_subreg): Use LRA_SUBREG_P.
7531         (reg_in_class_p): New function.
7532         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
7533         of #ifdef.  Add code to remove cycling.
7534         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7535         non-null disp.  Reload inner instead of disp when base and index
7536         are null.  Try to put lo_sum into register.
7537         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7538         (check_and_process_move): Move code for move cost check to
7539         simple_move_p.  Remove equiv_substitution.
7540         (simple_move_p): New function.
7541         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
7542         curr_insn_set.  Call check_and_process_move only for single set
7543         insns.  Use the new function.  Move call of check_and_process_move
7544         after operand equiv substitution and address process.
7546 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
7548         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7549         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7550         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7552 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7554         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7556 2013-04-24  Marek Polacek  <polacek@redhat.com>
7558         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7559         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7560         (select_loops_exit_conditions): Likewise.
7561         (number_of_iterations_for_all_loops): Likewise.
7562         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7563         (scev_analysis): Likewise.
7565 2013-04-02  Catherine Moore  <clm@codesourcery.com>
7566             Chao-ying Fu <fu@mips.com>
7568         * config/mips/micromips.md (jraddiusp): New pattern.
7569         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7570         instruction if possible.
7572 2013-04-24  Alan Modra  <amodra@gmail.com>
7574         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7576 2013-04-24  Julian Brown  <julian@codesourcery.com>
7577             Chung-Lin Tang  <cltang@codesourcery.com>
7579         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7580         dependency behavior in enumeration type DIE generation. Add TODO note
7581         to comments about future DW_FORM_sdata/udata re-work of related code.
7583 2013-04-23  Lawrence Crowl  <crowl@google.com>
7585         * Makefile.in: Update as needed below.
7587         * hash-table.h (class hash_table):
7588         Correct many methods with parameter types compare_type to the correct
7589         value_type.  (Correct code was unlikely to notice the change.)
7590         (hash_table::elements_with_deleted) New.
7591         (class hashtable::iterator): New.
7592         (hashtable::begin()): New.
7593         (hashtable::end()): New.
7594         (FOR_EACH_HASH_TABLE_ELEMENT): New.
7596         * statistics.c (statistics_hashes):
7597         Change type to hash_table.  Update dependent calls and types.
7599         * tree-into-ssa.c (var_infos):
7600         Change type to hash_table.  Update dependent calls and types.
7602         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7603         Change type to hash_table.  Update dependent calls and types.
7605         * tree-ssa-loop-im.c (struct mem_ref.refs):
7606         Change type to hash_table.  Update dependent calls and types.
7608         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7609         Change type to hash_table.  Update dependent calls and types.
7611         * tree-ssa-sccvn.c (vn_tables_s::nary):
7612         Change type to hash_table.  Update dependent calls and types.
7613         (vn_tables_s::phis): Likewise.
7614         (vn_tables_s::references): Likewise.
7616         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7617         (vn_reference_eq): Update parameter and return types.
7619         * tree-ssa-structalias.c (pointer_equiv_class_table):
7620         Change type to hash_table.  Update dependent calls and types.
7621         (location_equiv_class_table): Likewise.
7623         * tree-vect-data-refs.c: Consequential changes for making
7624         peeling a hash_table.
7626         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7627         (destroy_loop_vec_info): Dependent hash_table update.
7629         * tree-vectorizer.h (peeling_htab):
7630         Change type to hash_table.  Update dependent calls and types.
7632 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
7634         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7635         to check the register content is equal or not.
7636         * lra-constraints.c (match_reload): Use lra_assign_reg_val
7637         to assign register content record.
7638         * lra-eliminations.c (update_reg_eliminate): Use
7639         lra_update_reg_val_offset to update register content offset.
7640         * lra-int.h (struct lra_reg): Add offset member.
7641         (lra_reg_val_equal_p): New static inline function.
7642         (lra_update_reg_val_offset): New static inline function.
7643         (lra_assign_reg_val): New static inline function.
7644         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7645         to assign register content record.
7646         (initialize_lra_reg_info_element): Initial offset to zero.
7648 2013-04-23  Catherine Moore  <clm@codesourcery.com>
7650         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7651         operands.  Record compression.
7653 2013-04-23  Xinliang David Li  <davidxl@google.com>
7655         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7657 2013-04-23  Richard Biener  <rguenther@suse.de>
7659         PR middle-end/57036
7660         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7661         parameter, only add abnormal goto edges from the copied body
7662         if the call could perform abnormal gotos.
7663         (copy_cfg_body): Adjust.
7665 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
7667         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7669 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
7671         * coretypes.h (gimple_stmt_iterator): Add struct to make
7672         compatible with C.
7674 2013-04-23  Richard Biener  <rguenther@suse.de>
7676         PR tree-optimization/57026
7677         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7678         from SSA names occuring in abnormal PHI nodes.
7680 2013-04-22  Andi Kleen  <ak@linux.intel.com>
7682         * lto/lto.c (print_lto_report_1): Fix LTO report names.
7684 2013-04-22  Andi Kleen  <ak@linux.intel.com>
7686         * lto/lto.c (print_lto_report_1): Declare early.
7687         (read_cgraph_and_symbols): Call print_lto_report_1 early.
7689 2013-04-22  Andi Kleen  <ak@linux.intel.com>
7691         * common.opt (-flto-report-wpa): Add.
7692         * doc/invoke.texi (-flto-report-wpa): Add.
7693         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7694         (lto_main): dito.
7696 2013-04-22  Xinliang David Li  <davidxl@google.com>
7698         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7699         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7700         * Makefile.in: New dependency
7702             David Daney <ddaney.cavm@gmail.com>
7704         * configure.ac (gcc_cv_as_micromips_support):  Use the
7705         --fatal-warnings option.
7706         * configure: Regenerate.
7708 2013-04-22  Marek Polacek  <polacek@redhat.com>
7710         PR sanitizer/56990
7711         * tsan.c (instrument_expr): Don't instrument expression
7712         in case its size is zero.
7714 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
7716         PR target/57032
7717         Revert:
7718         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
7720         * config/alpha/alpha.c (TARGET_LRA_P): New define.
7722 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
7724         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7725         (gimple_stmt_iterator): New typedef.
7726         * gimple.h (gimple_stmt_iterator): Rename to...
7727         (gimple_stmt_iterator_d): ... This.
7728         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7729         trees be valid for GIMPLE and GENERIC.
7730         (TARGET_GIMPLE_FOLD_BUILTIN): New.
7731         * gimple-fold.c (gimple_fold_call): Call target hook
7732         gimple_fold_builtin.
7733         * hooks.c (hook_bool_gsiptr_false): New.
7734         * hooks.h (hook_bool_gsiptr_false): New.
7735         * target.def (fold_stmt): New.
7736         * doc/tm.texi: Regenerate.
7738 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
7740         PR target/57018
7741         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7742         a set sp if no stack realignment.
7744 2013-04-22  Nick Clifton  <nickc@redhat.com>
7746         * config.gcc (tilegx-linux): Extend extra_objs rather than
7747         overwriting it.
7748         (tilepro-linux): Likewise.
7750 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
7752         * config/aarch64/aarch64-builtins.c
7753         (CF): Remove.
7754         (CF0, CF1, CF2, CF3, CF4, CF10): New.
7755         (VAR<1-12>): Add MAP parameter.
7756         (BUILTIN_*): Likewise.
7757         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7758         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7759         (aarch64_ushl_n<mode>): Likewise.
7760         (aarch64_sshr_n<mode>): Likewise.
7761         (aarch64_ushr_n<mode>): Likewise.
7762         (aarch64_<maxmin><mode>): Likewise.
7763         (aarch64_sqrt<mode>): Likewise.
7764         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7765         (vshr<q>_n_*): Likewise.
7767 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
7769         * config/aarch64/aarch64-builtins.c
7770         (aarch64_simd_builtin_type_mode): Handle SF types.
7771         (sf_UP): Define.
7772         (BUILTIN_GPF): Define.
7773         (aarch64_init_simd_builtins): Handle SF types.
7774         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7775         (frecps): Likewise.
7776         (frecpx): Likewise.
7777         * config/aarch64/aarch64-simd.md
7778         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7779         (aarch64_frecpe<mode>): New.
7780         (aarch64_frecps<mode>): Likewise.
7781         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7782         (v8type): Add frecp<esx>.
7783         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7784         (aarch64_frecps<mode>): Likewise.
7785         * config/aarch64/iterators.md (FRECP): New.
7786         (frecp_suffix): Likewise.
7787         * config/aarch64/arm_neon.h
7788         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7790 2013-04-22  Christian Bruel  <christian.bruel@st.com>
7792         PR target/56995
7793         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7794         (REG_CLASS_NAMES): Idem.
7795         (REG_CLASS_CONTENTS): Idem.
7796         (REGCLASS_HAS_FP_REG): Idem.
7797         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7798         (sh_conditional_register_usage): Idem.
7800 2013-04-21  Jeff Law  <law@redhat.com>
7802         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7803         (ssa_forward_propagate_and_combine): Use it.
7805 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
7807         * lra.c: Update the flow chart diagram.
7809 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
7811         PR rtl-optimization/56847
7812         * lra-constraints.c (process_alt_operands): Discourage alternative
7813         with non-matche doffsettable memory constraint fro memory with
7814         known offset.
7816 2013-04-19  Richard Biener  <rguenther@suse.de>
7818         PR tree-optimization/56982
7819         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7820         function.
7821         * gimplify.c (gimplify_call_expr): Notice special calls.
7822         (gimplify_modify_expr): Likewise.
7823         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
7824         abnormal control flow receivers.
7825         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
7826         in the same way as cfun->has_nonlocal_labels.
7827         (gimple_purge_dead_abnormal_call_edges): Likewise.
7828         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
7829         receivers start a basic-block.
7831 2013-04-19  Richard Biener  <rguenther@suse.de>
7833         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
7834         member ...
7835         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
7836         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
7837         (SLP_TREE_LOAD_PERMUTATION): Add.
7838         (vect_transform_slp_perm_load): Adjust prototype.
7839         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
7840         (vect_free_slp_instance): Likewise.
7841         (vect_create_new_slp_node): Likewise.
7842         (vect_supported_slp_permutation_p): Remove.
7843         (vect_slp_rearrange_stmts): Adjust.
7844         (vect_supported_load_permutation_p): Likewise.  Inline
7845         vect_supported_slp_permutation_p here.
7846         (vect_analyze_slp_instance): Compute load permutations per
7847         slp node instead of per instance.
7848         (vect_get_slp_defs): Adjust.
7849         (vect_transform_slp_perm_load): Likewise.
7850         (vect_schedule_slp_instance): Remove redundant code.
7851         (vect_schedule_slp): Remove hack for PR56270, add it ...
7852         * tree-vect-stmts.c (vectorizable_load): ... here, do not
7853         CSE loads for SLP.  Adjust.
7855 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
7857         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
7858         spelling in two comments.
7860 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
7862         PR target/56797
7863         * config/arm/arm.c (load_multiple_sequence): Require SP
7864         as base register for loads if SP is in the register list.
7866 2013-04-19  Martin Jambor  <mjambor@suse.cz>
7868         PR tree-optimization/56718
7869         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
7870         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
7871         and made public.  Adjusted all callers.
7872         (ipa_intraprocedural_devirtualization): New function.
7873         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
7874         (ipa_intraprocedural_devirtualization): Likewise.
7875         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
7877 2013-04-19  Richard Biener  <rguenther@suse.de>
7879         PR tree-optimization/57000
7880         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
7882 2013-04-19  Terry Guo  <terry.guo@arm.com>
7884         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
7885         Replace with ...
7886         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
7887         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
7888         (cortex_m4_fmacs): Use new reservations.
7889         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
7891 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
7893         PR rtl-optimization/56999
7894         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
7895         related code.
7896         (lra_coalesce): Remove split_origin_bitmap and related code.
7897         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
7898         ranges if necessary.
7900 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
7902         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
7903         New array.
7904         (ix86_expand_call): Remove clobbered_registers array and use
7905         x86_64_ms_sysv_extra_clobbered_registers instead.
7906         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
7907         Declare here.
7908         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
7909         predicate.
7910         * config/i386/i386.md (*call_rex64_ms_sysv): Use
7911         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
7912         (*call_value_rex64_ms_sysv): Ditto.
7914 2013-04-18  Cary Coutant  <ccoutant@google.com>
7916         * dwarf2out.c (output_pubnames): Check die_perennial_p of
7917         parent instead of die_mark.
7919 2013-04-18  Diego Novillo  <dnovillo@google.com>
7921         * gimple.c (create_gimple_tmp): New.
7922         (get_expr_type): New.
7923         (build_assign): New.
7924         (build_type_cast): New.
7925         * gimple.h (enum ssa_mode): Define.
7926         (gimple_seq_set_location): New.
7927         * asan.c (build_check_stmt): Change some gimple_build_* calls
7928         to use build_assign and build_type_cast.
7930 2013-04-18  Richard Biener  <rguenther@suse.de>
7932         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7933         handle negative step.  Remove redundant checks.
7934         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7935         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7936         for negative step and grouped loads fail to vectorize.
7938 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
7940         * emit-rtl.c (reset_insn_used_flags): New function.
7941         (reset_all_used_flags): Use it.
7942         (verify_insn_sharing): New function.
7943         (verify_rtl_sharing): Fix verification for SEQUENCEs.
7945 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
7947         PR tree-optimization/56984
7948         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7949         and (x >> M) >= N don't register any assertion if N << M is the
7950         minimum value.
7952 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
7954         * lower-subreg.c (resolve_simple_move): If called self-recursive,
7955         do not delete_insn insns that have not yet been emitted, only
7956         unlink them with remove_insn.
7957         * df-scan.c (df_insn_delete): Revert r197492.
7959 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
7961         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7962         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7964 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7966         * config/arm/arm.md (movsicc_insn): Convert define_insn into
7967         define_insn_and_split.
7968         (and_scc,ior_scc,negscc): Likewise.
7969         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7971 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7973         * config/arm/arm.c (use_return_insn): Return 0 for targets that
7974         can benefit from using a sequence of LDRD instructions in epilogue
7975         instead of a single LDM instruction.
7977 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7979         PR 45688
7980         * doc/extend.texi: Fix typo.
7982 2013-04-17  Richard Biener  <rguenther@suse.de>
7984         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7985         (vect_build_slp_tree): ... here.
7986         (vect_build_slp_tree_1): Compute which stmts of the SLP group
7987         match.  Remove special-casing of mismatched complex loads.
7988         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7989         re-try the match with swapped commutative operands.
7990         (vect_supported_load_permutation_p): Remove special-casing of
7991         mismatched complex loads.
7992         (vect_analyze_slp_instance): Adjust.
7994 2013-04-17  Richard Biener  <rguenther@suse.de>
7996         PR rtl-optimization/56921
7997         * cfgloop.h (struct loop): Add simple_loop_desc member.
7998         (struct niter_desc): Mark with GTY(()).
7999         (simple_loop_desc): Do not use aux field but simple_loop_desc.
8000         * loop-iv.c (get_simple_loop_desc): Likewise.
8001         (free_simple_loop_desc): Likewise.
8003         Revert
8004         2013-04-16  Richard Biener  <rguenther@suse.de>
8006         PR rtl-optimization/56921
8007         * loop-init.c (pass_rtl_move_loop_invariants): Add
8008         TODO_do_not_ggc_collect to todo_flags_finish.
8009         (pass_rtl_unswitch): Same.
8010         (pass_rtl_unroll_and_peel_loops): Same.
8011         (pass_rtl_doloop): Same.
8013 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8015         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8016         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8017         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8018         references.
8019         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8020         * tree-streamer.c (record_common_node): Adjust reference in comment.
8022 2013-04-17  Terry Guo  <terry.guo@arm.com>
8024         * config/arm/cortex-m4.md: Add a new bypass.
8026 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8028         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8029         New pattern.
8030         (*subs_<optab><mode>_multp2): New pattern.
8031         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8032         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8034 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8036         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8037         (*subs_mul_imm_<mode>): New pattern.
8039 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
8041         PR target/56948
8042         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8043         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
8044         (vsx_movti_32bit): Change j->wa to O->wa.
8046 2013-04-16  Richard Biener  <rguenther@suse.de>
8048         PR rtl-optimization/56921
8049         * loop-init.c (pass_rtl_move_loop_invariants): Add
8050         TODO_do_not_ggc_collect to todo_flags_finish.
8051         (pass_rtl_unswitch): Same.
8052         (pass_rtl_unroll_and_peel_loops): Same.
8053         (pass_rtl_doloop): Same.
8055 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
8057         * config/arm/arm.c (emit_multi_reg_push): New declaration
8058         for an existing function.
8059         (arm_emit_strd_push): New function.
8060         (arm_expand_prologue): Used here.
8061         (arm_emit_ldrd_pop): New function.
8062         (arm_expand_epilogue): Used here.
8063         (arm_get_frame_offsets): Update condition.
8064         (arm_emit_multi_reg_pop): Add a special case for load of a single
8065         register with writeback.
8067 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
8069         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8070         description.
8072 2013-04-16  Richard Biener  <rguenther@suse.de>
8074         PR tree-optimization/56756
8075         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8076         (first_mem_ref_loc): New.
8077         (execute_sm): Place the load temporarily before a previous
8078         access instead of in the latch edge to ensure its SSA dependencies
8079         are defined at points dominating the load.
8081 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
8083         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8084         correct fix by moving header and footer insn to the footer of
8085         the merged basic block.  Clear BB_END of the merged-away block.
8087         PR middle-end/43631
8088         * emit-rtl.c (make_note_raw): New function.
8089         (link_insn_into_chain): New static inline function.
8090         (add_insn): Use it.
8091         (add_insn_before, add_insn_after): Factor insn chain linking code...
8092         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8093         using link_insn_into_chain.
8094         (note_outside_basic_block_p): New helper function for emit_note_after
8095         and emit_note_before.
8096         (emit_note_after): Use nobb variant of add_insn_after if the note
8097         should not be contained in a basic block.
8098         (emit_note_before): Use nobb variant of add_insn_before if the note
8099         should not be contained in a basic block.
8100         (emit_note_copy): Use make_note_raw.
8101         (emit_note): Likewise.
8102         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8103         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8104         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8105         the moved barrier the tail of the basic block it follows.
8106         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8108 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
8110         PR tree-optimization/56962
8111         * gimple-ssa-strength-reduction.c (record_increment): Only set
8112         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8113         either rhs1 or rhs2 is equal to c->base_expr.
8115 2013-04-15  Richard Biener  <rguenther@suse.de>
8117         PR tree-optimization/56933
8118         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8119         member.
8120         (GROUP_READ_WRITE_DEPENDENCE): Remove.
8121         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8122         * tree-vect-data-refs.c (vect_analyze_group_access): Move
8123         dependence check ...
8124         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8125         ... here.
8126         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8127         GROUP_READ_WRITE_DEPENDENCE.
8129 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8131         * emit-rtl.c (reset_all_used_flags): New function.
8132         (verify_rtl_sharing): Call reset_all_used_flags before and after
8133         performing the checks.
8135 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8137         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8138         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8139         * config/arm/constraints.md (De): New constraint.
8140         * config/arm/neon.md (anddi3_neon): Delete.
8141         (neon_vand<mode>): Expand to standard anddi3 pattern.
8142         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8143         Move earlier in the file.
8144         (neon_inv_logic_op2): Likewise.
8145         (arm_anddi_operand_neon): New predicate.
8147 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8149         * configure.ac (gcc_cv_ld_as_needed): Set
8150         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8151         Use -z ignore, -z record on *-*-solaris2*.
8152         (HAVE_LD_AS_NEEDED): Update comment.
8153         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8154         * configure: Regenerate.
8155         * config.in: Regenerate.
8156         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8157         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8158         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8159         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8160         equivalents.  Fix markup.
8161         * doc/tm.texi: Regenerate.
8163 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
8165         * config/i386/i386.opt: New option mstack-protector-guard=.
8166         * config/i386/i386-opts.h: Add enum stack_protector_guard.
8167         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8168         TARGET_SSP_TLS_GUARD.
8169         * config/i386/i386.c (ix86_option_override_internal): Set
8170         ix86_stack_protector_guard.
8171         * config/i386/i386.md (stack_protect_set): Enable for
8172         TARGET_SSP_TLS_GUARD only.
8173         (stack_protect_set_<mode>): Ditto.
8174         (stack_protect_test): Ditto.
8175         (stack_protect_test_<mode>): Ditto.
8176         * doc/invoke.texi (i386 Option): Document.
8178 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8180         PR target/56890
8181         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8182         (S_MODES): Set H_MODE bit.
8183         (SF_MODES): Set only S_MODE and SF_MODE bits.
8184         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8185         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8186         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8187         <MODE_FLOAT>: Likewise.
8189 2013-04-15  Joey Ye  <joey.ye@arm.com>
8191         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8193 2013-04-15  Joey Ye  <joey.ye@arm.com>
8195         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8196         for real far jump.
8197         (thumb_far_jump_used_p): Count instruction size and set
8198         far_jump_used.
8200 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
8202         * reorg.c (fill_simple_delay_slots): Reindent block of code.
8203         * resource.c (mark_target_live_regs): Reformat conditional block.
8205 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
8207         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8208         notes, they are emitted only just before final.
8209         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8211 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
8213         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8214         * cfgrtl.c (delete_insn): Call it here instead.
8215         * lra-spills.c (lra_final_code_change): Use delete_insn.
8216         * haifa-sched.c (sched_remove_insn): Likewise.
8217         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8218         returning to the nop pool.
8219         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8220         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
8222 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
8224         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8225         * doc/tm.texi: Regenerated.
8227 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
8229         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8230         QImode checks.
8232 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
8234         * df-core.c (df_find_def): Compare register numbers.
8235         (df_find_use): Likewise.
8237 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
8239         PR target/56903
8240         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8241         lra_in_progress for return.
8243 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
8245         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8246         define_insn into define_insn_and_split and emit movsicc patterns.
8248 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
8250         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8252 2013-04-12  Richard Biener  <rguenther@suse.de>
8254         * tree-pass.h (TODO_do_not_ggc_collect): New.
8255         * passes.c (execute_one_ipa_transform_pass): Honor
8256         TODO_do_not_ggc_collect.
8257         (execute_one_pass): Likewise.
8259         Revert
8260         2013-04-10  Richard Biener  <rguenther@suse.de>
8262         * passes.c (init_optimization_passes): Remove reload pass.
8263         * ira.c (do_reload): Merge into ...
8264         (ira): ... this.
8265         (rest_of_handle_reload): Remove.
8266         (pass_reload): Likewise.
8267         * config/i386/i386.c (ix86_option_override): Refer to ira instead
8268         of reload for vzeroupper pass placement.
8270 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
8272         PR tree-optimization/56918
8273         PR tree-optimization/56920
8274         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8275         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
8276         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
8277         use wide_mul_with_sign method.
8279 2013-04-12  Richard Biener  <rguenther@suse.de>
8281         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8282         not be considered a gimple constant.
8284 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
8286         * fold-const.c (const_binop): Handle vector shifts by a scalar.
8287         (fold_binary_loc): Call const_binop also for mixed vector-scalar
8288         operations.
8290 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8291             Jakub Jelinek  <jakub@redhat.com>
8293         * opts.c: Include diagnostic-color.h.
8294         (common_handle_option): Handle OPT_fdiagnostics_color_.
8295         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8296         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8297         (diagnostic-color.o): New.
8298         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8299         (diagnostic_color_rule): New enum.
8300         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8301         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8302         the location string.
8303         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8304         either NULL, or color kind.
8305         * diagnostic-color.c: New file.
8306         * diagnostic-color.h: New file.
8307         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8308         arguments.
8309         * doc/invoke.texi (-fdiagnostics-color): Document.
8310         * pretty-print.h (pp_show_color): Define.
8311         (struct pretty_print_info): Add show_color field.
8312         * diagnostic.c: Include diagnostic-color.h.
8313         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8314         macros.  Colorize error:, warning: etc. strings and also the location
8315         string.
8316         (diagnostic_show_locus): Colorize the caret line.
8317         * pretty-print.c: Include diagnostic-color.h.
8318         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
8319         inside of %< %> quotes or quoted through q format modifier.
8321 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8323         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8325 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8327         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8328         code in CC_NZ mode.
8329         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8330         pattern.
8332 2013-04-11  Marek Polacek  <polacek@redhat.com>
8334         PR tree-optimization/48184
8335         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8337 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8339         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8340         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8341         (skip_simple_arithmetic): Tidy up.
8342         * tree.h (skip_simple_constant_arithmetic): Declare.
8344 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8346         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8348 2013-04-11  Richard Biener  <rguenther@suse.de>
8350         * tree-vect-loop.c (get_initial_def_for_induction): Properly
8351         generate vector constants.
8353 2013-04-11  Richard Biener  <rguenther@suse.de>
8355         PR tree-optimization/56878
8356         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8357         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8358         New function.
8359         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8360         Prefer to align the DR with the most invariant base address.
8362 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8364         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8365         comment.
8367 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8369         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8370         floating-point vector comparisons against 0.
8372 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
8374         PR tree-optimization/56899
8375         * fold-const.c (extract_muldiv_1): Apply distributive law
8376         only if TYPE_OVERFLOW_WRAPS (ctype).
8378 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
8380         PR target/56124
8381         * ira-costs.c (scan_one_insn): Check whether the source rtx of
8382         loading has side effect.
8384 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
8386         * config/sparc/sparc.c: Include tree-pass.h.
8387         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8388         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
8389         head of file.  Change return type.  Split off gate function.
8390         (sparc_gate_work_around_errata): New function.
8391         (pass_work_around_errata): New pass definition.
8392         (insert_pass_work_around_errata) New pass insert definition to
8393         insert pass_work_around_errata just after delayed-branch scheduling.
8394         (sparc_option_override): Insert the pass.
8395         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8397 2013-04-10  David S. Miller  <davem@davemloft.net>
8399         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8400         or -mcpu=hypersparc.
8402         * target.def (cstore_mode): New hook.
8403         * target.h: Include insn-codes.h
8404         * targhooks.c: Likewise.
8405         (default_cstore_mode): New function.
8406         * targhooks.h: Declare it.
8407         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8408         * doc/tm.texi: Rebuild.
8409         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8410         target hook, rather than inspecting the insn_data.
8411         * config/sparc/sparc.c (sparc_cstore_mode): New function.
8412         (TARGET_CSTORE_MODE): Redefine.
8413         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8414         result patterns.
8415         * config/sparc/predicates.md (cstore_result_operand): New special
8416         predicate.
8417         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8418         Use it for operand 0.
8419         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8420         (*snesi_special): Likewise.
8421         (*snesi_zero): Likewise.
8422         (*seqsi_zero): Likewise.
8423         (*sltu_insn): Likewise.
8424         (*sgeu_insn): Likewise.
8425         (*seqdi_special): Make operand 0 and comparison operation be of
8426         DImode.
8427         (*snedi_special): Likewise.
8428         (*snedi_special_vis3): Likewise.
8429         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8430         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8431         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8432         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8433         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8434         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8435         (*sltu_extend_sp64): Likewise.
8436         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8437         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8438         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8439         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8440         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8442 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
8444         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8445         (aarch64_start_file): Use the new function.
8447 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8448             Jason Merrill  <jason@redhat.com>
8450         * common.opt: Add -gdwarf.
8451         * opts.c (common_handle_option): Handle it.
8452         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8454 2013-04-10  Richard Biener  <rguenther@suse.de>
8456         * passes.c (execute_todo): Do not call ggc_collect conditional here.
8457         (execute_one_ipa_transform_pass): But unconditionally here.
8458         (execute_one_pass): And here.
8459         (init_optimization_passes): Remove reload pass.
8460         * tree-pass.h (TODO_ggc_collect): Remove.
8461         (pass_reload): Likewise.
8462         * ira.c (do_reload): Merge into ...
8463         (ira): ... this.
8464         (rest_of_handle_reload): Remove.
8465         (pass_reload): Likewise.
8466         * config/i386/i386.c (ix86_option_override): Refer to ira instead
8467         of reload for vzeroupper pass placement.
8468         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8469         and todo_flags_finish of all passes.
8471 2013-04-10  Richard Biener  <rguenther@suse.de>
8473         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8474         first_const_oprnd field, rename first_def_type to first_op_type.
8475         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8476         (vect_get_and_check_slp_defs): Always use the type of the
8477         operand.  Allow mixed vect_external_def, vect_constant_def types.
8478         (vect_get_constant_vectors): Handle mixed vect_external_def,
8479         vect_constant_def types.
8481 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
8483         PR tree-optimization/55524
8484         * tree-ssa-math-opts.c
8485         (convert_mult_to_fma): Don't use an fms construct
8486         when we don't have an fms operation, but fnma, and it looks
8487         likely that we'll be able to use the latter.
8489 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8491         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8492         function.
8493         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8494         inline fail caused by overwritable functions.
8496 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
8498         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8499         unnecessary bits in the constant power of two case.
8501 2013-04-10  Richard Biener  <rguenther@suse.de>
8503         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8504         broken code swapping operands.
8505         (vect_build_slp_tree): Do not compute load permutations here.
8506         (vect_analyze_slp_instance): Compute load permutations here,
8507         after building the SLP tree.
8509 2013-04-09  Christian Bruel  <christian.bruel@st.com>
8511         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8512         of next/prev_real_insn.
8514 2013-04-09  Jan Hubicka  <jh@suse.cz>
8516         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8517         Drop aliased parameter.
8518         (function_and_variable_visibility): Do not handle alias pairs.
8519         * cgraph.c (varpool_externally_visible_p): Update prototype.
8520         * varpool.c (varpool_add_new_variable): Update.
8522 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8524         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8526 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
8528         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8530         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8532 2013-04-09  Marek Polacek  <polacek@redhat.com>
8534         PR tree-optimization/48762
8535         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8537 2013-04-09  Richard Biener  <rguenther@suse.de>
8539         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8540         dealing with cost.
8541         (vect_build_slp_tree): Likewise.
8542         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8543         calculating the cost of a SLP instance.
8544         (vect_analyze_slp_instance): Use it from here, after building
8545         the SLP tree.
8547 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
8549         PR middle-end/56883
8550         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8551         expand_omp_for_static_chunk): Use simple_p = true in
8552         force_gimple_operand_gsi calls when assigning to addressable decls.
8554 2013-04-09  Jeff Law  <law@redhat.com>
8556         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8557         when the boolean was created by converting a wider object which
8558         had a boolean range.
8560 2013-04-09  Richard Biener  <rguenther@suse.de>
8562         * tree-vectorizer.h (slp_void_p): Remove.
8563         (slp_tree): Typedef before _slp_tree declaration.
8564         (struct _slp_tree): Use a vector of slp_tree as children.
8565         (vect_get_place_in_interleaving_chain): Remove.
8566         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8567         Move ...
8568         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8569         and make static.
8570         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8571         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8572         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8573         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8574         Use slp_node instead of slp_void_p and adjust.
8576 2013-04-09  Richard Biener  <rguenther@suse.de>
8578         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8579         work that is not necessary.
8581 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
8583         PR tree-optimization/56854
8584         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8585         forward into clobber stmts if it would change MEM_REF lhs into
8586         non-MEM_REF.
8588 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
8590         * tree.c (type_hash_lookup, type_hash_add): Make static.
8591         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8593 2013-04-09  Richard Biener  <rguenther@suse.de>
8595         * tree.h (unsave_expr_now): Remove.
8596         * tree-inline.c (mark_local_for_remap_r): Remove.
8597         (unsave_expr_1): Likewise.
8598         (unsave_r): Likewise.
8599         (unsave_expr_now): Likewise.
8600         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8601         (propagate_tree_value): Likewise.
8603 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
8605         * doc/rtl.texi (sequence): Rewrite documentation to match the
8606         current use of SEQUENCE rtl objects.
8607         * rtl.def (SEQUENCE): Likewise.
8609         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8610         Update documentation.
8611         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8612         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8614         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8616 2013-04-08  Teresa Johnson  <tejohnson@google.com>
8618         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8619         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8620         methods.
8621         (estimate_edge_size_and_time): Add comment to suggest using rounding
8622         methods.
8623         (estimate_node_size_and_time): Ditto.
8624         (remap_edge_change_prob): Use helper rounding divide methods.
8625         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8626         (gimple_mod_pow2_value_transform): Ditto.
8627         (gimple_mod_subtract_transform): Ditto.
8628         (gimple_ic_transform): Ditto.
8629         (gimple_stringops_transform): Ditto.
8630         * stmt.c (conditional_probability): Ditto.
8631         (emit_case_dispatch_table): Ditto.
8632         * lto-cgraph.c (merge_profile_summaries): Ditto.
8633         * tree-optimize.c (execute_fixup_cfg): Ditto.
8634         * cfgcleanup.c (try_forward_edges): Ditto.
8635         * cfgloopmanip.c (scale_loop_profile): Ditto.
8636         (loopify): Ditto.
8637         (duplicate_loop_to_header_edge): Ditto.
8638         (lv_adjust_loop_entry_edge): Ditto.
8639         * tree-vect-loop.c (vect_transform_loop): Ditto.
8640         * profile.c (compute_branch_probabilities): Ditto.
8641         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8642         * lto-streamer-in.c (input_cfg): Ditto.
8643         * gimple-streamer-in.c (input_bb): Ditto.
8644         * ipa-cp.c (update_profiling_info): Ditto.
8645         (update_specialized_profile): Ditto.
8646         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8647         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8648         rounding methods.
8649         * sched-rgn.c (compute_dom_prob_ps): Ditto.
8650         (compute_trg_info): Ditto.
8651         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8652         (purge_dead_edges): Ditto.
8653         * loop-unswitch.c (unswitch_loop): Ditto.
8654         * cgraphclones.c (cgraph_clone_edge): Ditto.
8655         (cgraph_clone_node): Ditto.
8656         * tree-inline.c (copy_bb): Ditto.
8657         (copy_edges_for_bb): Ditto.
8658         (initialize_cfun): Ditto.
8659         (copy_cfg_body): Ditto.
8660         (expand_call_inline): Ditto.
8662 2013-04-08  Kai Tietz  <ktietz@redhat.com>
8664         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8665         TARGET_CYGWIN64 by TARGET_64BIT.
8667 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
8669         * config/epiphany/epiphany.md (GPR_1): New constant.
8670         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8671         * config/epiphany/epiphany.c (gen_compare_reg):
8672         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8673         is already in place.
8674         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8675         Don't require being called during rtl expansion; If y operlaps r0,
8676         return 0.
8677         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8678         (epiphany_expand_epilogue): Likewise.
8680         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8681         Don't use CC_FPmode for ORDERED / UNORDERED.
8682         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8684         * config/epiphany/constraints.md (CnL): New constraint.
8685         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8686         * config/epiphany/predicates.md (add_operand): Allow 1024.
8688         * config/epiphany/epiphany.md (logical_op): New code iterator.
8689         (op_mnc): New code attribute.
8690         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8691         (mov_f+1, mov_f+2): New peephole2 patterns.
8693         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8694         (cstoresi4): Also allow re-use of zero result when doing a NE
8695         comparison to a non-zero operand.
8696         Use (clobber (scratch)) for first insn if the gpr output is not needed.
8698         * config/epiphany/epiphany.md (<insn_opname>v2si3):
8699         Use gen_addsi3_i / gen_subsi3_i.
8701 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
8703         PR c++/34949
8704         PR c++/50243
8705         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8706         contain anything but clobbers, at most one __builtin_stack_restore,
8707         optionally debug stmts and final resx, and if it has at least one
8708         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
8709         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8710         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8711         which isn't defaut definition, remove them.
8712         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8713         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8714         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8715         with MEM_REF LHS with SSA_NAME address.
8717 2013-04-08  Jeff Law  <law@redhat.com>
8719         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
8721 2013-04-08  Richard Biener  <rguenther@suse.de>
8723         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8724         extra newline.
8725         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8726         determined vector type.
8727         (vect_analyze_data_refs): Likewise.
8728         (vect_get_new_vect_var): Adjust.
8729         (vect_create_destination_var): Preserve SSA name versions.
8730         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8731         not dump anything here.
8733 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
8735         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8736         Add member lr_slot_known.
8737         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8738         if necessary.
8739         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8740         Remove code that sets lr_slot_offset according to what a previous
8741         version of epiphany_emit_save_restore used to do.
8742         (epiphany_emit_save_restore): When doing an lr save or restore,
8743         set/verify lr_slot_known and lr_slot_offset.
8745 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
8747         PR target/54338
8748         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
8749         in ALL_REGS.
8751 2013-04-08  Richard Biener  <rguenther@suse.de>
8753         * alias.c (find_base_term): Fix thinko in previous change.
8755 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
8757         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8758         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8759         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
8760         if possible to compute val.
8761         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8762         For QImode integers don't require anything about precision.  Use
8763         const_with_all_bytes_same to find out if the constant doesn't have
8764         repeated bytes in it.
8766 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8768         * config/s390/s390.c (s390_expand_insv): Only accept insertions
8769         within mode size.
8771 2013-04-08  Marek Polacek  <polacek@redhat.com>
8773         PR rtl-optimization/48182
8774         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8775         value to 1.
8777 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8779         PR target/55487
8780         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8781         nuses, make sure we have a label.
8783 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8785         PR target/56843
8786         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8787         (rs6000_emit_swdiv_low_precision): Remove.
8788         (rs6000_emit_swdiv): Rewrite to handle between one and four
8789         iterations of Newton-Raphson generally; modify required number of
8790         iterations for some cases.
8791         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8793 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8795         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8796         set-but-unused variable.
8798         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8799         basic blocks of released function bodies garbage-collectable.
8801         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8802         (struct rtl_opt_pass): Add TODO_df_finish.
8804         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8806 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8808         * config/arm/constraints.md (q): New constraint.
8809         * config/arm/ldrdstrd.md: New file.
8810         * config/arm/arm.md (ldrdstrd.md) New include.
8811         (arm_movdi): Use "q" instead of "r" constraint
8812         for double-word memory access.
8813         (movdf_soft_insn): Likewise.
8814         * config/arm/vfp.md (movdi_vfp): Likewise.
8815         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
8816         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
8817         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8818         (mem_ok_for_ldrd_strd): Likewise.
8819         (output_move_double): Update assertion.
8821 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8823         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
8825 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8827         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
8828         define_insn_and_split.
8829         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
8831 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8833         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
8834         define_insn_and_split.
8835         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
8836         (shiftsi3_compare): New pattern.
8837         (rrx): New pattern.
8838         * config/arm/unspecs.md (UNSPEC_RRX): New.
8840 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8842         * config/arm/arm.md (negdi_extendsidi): New pattern.
8843         (negdi_zero_extendsidi): Likewise.
8845 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8847         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
8848         define_insn_and_split.
8849         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
8850         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
8852 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8854         * config/arm/arm.md (arm_subdi3): Convert define_insn into
8855         define_insn_and_split.
8856         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
8857         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
8859 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8861         * config/arm/arm.md (subsi3_carryin): New pattern.
8862         (subsi3_carryin_const): Likewise.
8863         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
8864         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
8866 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8868         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
8870 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8872         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
8873         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
8875 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8877         * config/arm/arm.c (arm_expand_builtin): Change fcode
8878         type to unsigned int.
8880 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8882         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
8884 2013-04-04  Ian Lance Taylor  <iant@google.com>
8886         * doc/standards.texi (Standards): The Go frontend supports the Go 1
8887         language standard.
8889 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
8891         PR middle-end/56729
8892         * df-scan.c (df_insn_delete): Disable failing assert.
8894 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8896         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
8897         New function prototype.
8898         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
8899         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
8900         (arm_builtin_vectorized_function): New function.
8902 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8904         * config/arm/arm_neon_builtins.def: New file.
8905         * config/arm/arm.c (neon_builtin_data): Move contents to
8906         arm_neon_builtins.def.
8907         (enum arm_builtins): Include neon builtin definitions.
8908         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
8909         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
8911 2013-04-04  Marek Polacek  <polacek@redhat.com>
8913         PR tree-optimization/48186
8914         * predict.c (maybe_hot_frequency_p): Return false if
8915         HOT_BB_FREQUENCY_FRACTION is 0.
8916         (cgraph_maybe_hot_edge_p): Likewise.
8918 2013-04-04  Richard Biener  <rguenther@suse.de>
8920         PR tree-optimization/56826
8921         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8922         more accurately.
8924 2013-04-04  Richard Biener  <rguenther@suse.de>
8926         PR tree-optimization/56213
8927         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8928         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8930 2013-04-04  Richard Biener  <rguenther@suse.de>
8932         PR tree-optimization/56837
8933         * tree-loop-distribution.c (classify_partition): For non-zero
8934         values require that the value has the same precision as its
8935         mode to be useful as memset value.
8937 2013-04-03  Nick Clifton  <nickc@redhat.com>
8939         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8940         (fmssf4): Use fmsf.s on E3V5 architectures.
8941         (fnmasf4): Use fnmaf.s on E3V5 architectures.
8942         (fnmssf4): Use fnmsf.s on E3V5 architectures.
8944 2013-04-03  Jeff Law  <law@redhat.com>
8946         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8947         (lra-eliminations.o): Likewise.
8949 2013-04-03  Teresa Johnson  <tejohnson@google.com>
8951         * gcov-io.c (compute_working_sets): Moved most of body of old
8952         compute_working_sets here from profile.c.
8953         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8954         (gcov_working_set_t): Moved typedef here from basic-block.h
8955         (compute_working_set): Declare.
8956         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8957         (get_working_sets): Renamed from compute_working_set,
8958         replace most of body with call to new compute_working_sets.
8959         (get_exec_counts): Replace call to compute_working_sets
8960         to get_working_sets.
8961         * profile.h (get_working_sets): Renamed from compute_working_set.
8962         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8963         to get_working_sets.
8964         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8965         * gcov-dump.c (dump_working_sets): New function.
8967 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
8969         * hwint.c (sext_hwi, zext_hwi): New functions.
8970         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8971         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8972         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8973         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8974         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8975         (sext_hwi, zext_hwi): New functions.
8977 2013-04-03  Jeff Law  <law@redhat.com>
8979         PR tree-optimization/56799
8980         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8981         back test for widening conversion erroneously dropped in prior change.
8983 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8985         PR target/56809
8986         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8987         instead of next_real_insn.
8989 2013-04-03  Marek Polacek  <polacek@redhat.com>
8991         PR sanitizer/55702
8992         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8994 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8996         PR target/56809
8997         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8998         next_real_insn.
8999         (thumb1_output_casesi): Likewise.
9000         (thumb2_output_casesi): Likewise.
9002 2013-04-03  Richard Biener  <rguenther@suse.de>
9004         PR tree-optimization/56817
9005         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9006         Split out ...
9007         (tree_unroll_loops_completely_1): ... new function to manually
9008         walk the loop tree, properly defering outer loops of unrolled
9009         loops to later iterations.
9011 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9013         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9014         (vectorizable_load): Likewise.
9015         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9016         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9018 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9020         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9021         BIT_FIELD_REF.
9023 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9025         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9027 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
9029         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9031 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9033         PR tree-optimization/56790
9034         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9035         folding.
9037 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9039         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9040         Handle VEC_MERGE.
9041         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9042         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9043         equal arguments.
9045 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
9047         PR c/19449
9048         * tree.h (force_folding_builtin_constant_p): New decl.
9049         * builtins.c (force_folding_builtin_constant_p): New variable.
9050         (fold_builtin_constant_p): Fold immediately also if
9051         force_folding_builtin_constant_p.
9053 2013-04-03  Richard Biener  <rguenther@suse.de>
9055         PR tree-optimization/56812
9056         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9057         DRs of the same interleaving chain are independent.
9059 2013-04-02  Jason Merrill  <jason@redhat.com>
9061         * gdbinit.in (pbb): Use debug fn.
9063 2013-04-02  Lawrence Crowl  <crowl@google.com>
9065         * sese.h (struct ivtype_map_elt_s): Remove unused.
9066         (extern debug_ivtype_map): Remove unused.
9067         (extern eq_ivtype_map_elts): Remove unused.
9068         * sese.c (debug_ivtype_map): Removed unused.
9069         (debug_ivtype_map_1): Removed unused.
9070         (debug_ivtype_elt): Remove unused.
9071         (eq_ivtype_map_elts): Remove unused.
9074 2013-04-02  Kai Tietz  <ktietz@redhat.com>
9076         PR target/52790
9077         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9078         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
9079         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9080         function.
9081         (legitimize_pe_coff_symbol): Likewise.
9082         (is_imported_p): New helper-function.
9083         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9084         for Windows x64 targets.
9085         (ix86_expand_prologue): Optimize for pe-coff targets.
9086         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9087         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9088         medium/large code-model.
9089         (legitimize_pic_address): Likewise.
9090         (legitimize_tls_address): Likewise.
9091         (ix86_expand_call): Likewise.
9092         (x86_output_mi_thunk): Likewise.
9093         (get_dllimport_decl): Add new beimport argument.
9094         (construct_plt_address): Don't assert for x64 pe-coff targets.
9095         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9096         targets.
9097         (SYMBOL_FLAG_STUBVAR): New macro.
9098         (SYMBOL_REF_STUBVAR_P): Likewise.
9099         * config/i386/winnt.c (stub_list): New structure.
9100         (stub_head): New local variable.
9101         (i386_pe_record_stub): New function.
9102         (i386_pe_file_end): Emit refptr-stubs.
9104 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
9106         PR rtl-optimization/56745
9107         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9108         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9110         PR c++/34949
9111         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9112         and both of them are MEM_REFs, just compare first argument for
9113         equality and attempt to deal even with differing offsets.
9115         PR c++/34949
9116         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9117         of gimple_clobber_p to be MEM_REF.
9118         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9119         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
9120         after gimplification.
9121         * asan.c (get_mem_ref_of_assignment): Don't instrument
9122         gimple_clobber_p stmts.
9123         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9124         gimple_clobber_p stmt if they have MEM_REF lhs and
9125         are dead because of another gimple_clobber_p stmt.
9126         * tree-ssa-live.c (clear_unused_block_pointer): Treat
9127         gimple_clobber_p stmts like debug stmts.
9128         (remove_unused_locals): Remove clobbers with MEM_REF lhs
9129         that refer to unused VAR_DECLs or uninitialized values.
9130         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9131         gimple_clobber_p stmts if they refer to removed parameters.
9132         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9133         formatting.
9135 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
9137         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9138         using SWI48 mode attribute.
9140 2013-04-02  Wei Mi  <wmi@google.com>
9142         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9143         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9144         *<rotate_insn><mode>3_mask in i386.md.
9146 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9148         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9150 2013-04-02  Richard Biener  <rguenther@suse.de>
9152         PR tree-optimization/56778
9153         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9154         Runtime alias tests are not supported for gather loads.
9155         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9156         stmts referenced from SSA operands before updating SSA form.
9158 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
9159             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9161         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9162         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9163         * config/arm/cortex-a53.md: New file.
9164         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9165         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9166         * config/arm/arm.c (arm_issue_rate): Likewise.
9167         * config/arm/arm-tune.md: Regenerate
9168         * config/arm/arm-tables.opt: Regenerate.
9169         * config/arm/arm-cores.def: Add cortex-a53.
9171 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9173         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9174         non-static link.
9176 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
9178         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9179         scalar load/store operations using B/H registers.
9180         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9182 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
9184         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9185         scalar move.
9186         * config/aarch64/aarch64.c
9187         (aarch64_simd_scalar_immediate_valid_for_move): New.
9188         * config/aarch64/aarch64-protos.h
9189         (aarch64_simd_scalar_immediate_valid_for_move): New.
9190         * config/aarch64/constraints.md (Dh, Dq): New.
9191         * config/aarch64/iterators.md (hq): New.
9193 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9195         * reorg.c (get_branch_condition): Deal with conditional returns.
9196         (fill_simple_delay_slots): Remove dead code dealing with jumps.
9198 2013-04-01  Wei Mi  <wmi@google.com>
9200         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9201         Truncate operand 2 using %b asm operand modifier.
9202         (*<shift_insn><mode>3_mask): Ditto.
9203         (*<rotate_insn><mode>3_mask): Ditto.
9205 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
9207         PR middle-end/56798
9208         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9210 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9212         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9213         of next_real_insn.
9214         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9216 2013-03-30  Lawrence Crowl  <crowl@google.com>
9218         * dse.c (clear_alias_sets): Remove never set.
9219         (disqualified_clear_alias_sets): Remove never set.
9220         (clear_alias_mode_pool): Remove never set.
9221         (dse_step0): Remove condition that is never true.
9222         (canon_address): Remove condition that is never true.
9223         (dse_step7): Remove condition that is never true.
9224         (rest_of_handle_dse): Remove condition that is never true.
9225         (rest_of_handle_dse::did_global): Remove never read from above.
9226         (dse_step2_spill): Remove never called from above.
9227         (dse_step5_spill): Remove never called from above.
9229 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
9231         * doc/md.texi (Standard Names) <casesi>: Update documentation for
9232         JUMP_TABLE_DATA changes.
9233         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9234         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9235         (Insns) <jump_table_data>: New entry.
9236         * doc/tm.texi: Regenerate.
9238         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9240         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9241         for table jump at the end of a basic block using tablejump_p.
9242         * targhooks.c (default_invalid_within_doloop): Likewise.
9243         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9244         target hook implementation that is identical to the default hook.
9245         (rs6000_invalid_within_doloop): Remove.
9247         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9248         unused variable from tablejump_p call.
9250         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9251         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9252         (INSN_DELETED_P): Likewise.
9253         (emit_jump_table_data): New prototype.
9254         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9255         after 4th as unused.
9256         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9257         * sched-vis.c (print_insn): Likewise.
9258         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9259         insn for compatibility with back ends that use next_active_insn to
9260         identify jump table data.
9261         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9262         (remove_insn): Likewise.
9263         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9264         to be emitted.
9265         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9266         (emit_jump_table_data): New function.
9268         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9269         basic block, a JUMP_TABLE_DATA never is.
9270         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9271         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9272         off from code handling real insns.
9273         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9274         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9275         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9276         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9277         is not a NONDEBUG_INSN_P.
9278         * ira-costs.c (scan_one_insn): Likewise.
9279         * jump.c (mark_all_labels): Likewise.
9280         (mark_jump_label_1): Likewise.
9281         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9282         * lra.c (get_insn_freq): Expect all insns reaching here to be in
9283         a basic block.
9284         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9285         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9286         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9287         JUMP_TABLE_DATA_P insns.
9288         (calculate_elim_costs_all_insns): Likewise.
9289         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9290         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9291         (delete_output_reload): Code style fixups.
9292         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9293         insn flags on this non-insn.
9294         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9295         as scheduling barriers, for pre-change compatibility.
9296         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9297         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9299         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9300         redundant JUMP_TABLE_DATA_P test.
9301         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9302         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9303         (frv_for_each_packet): Likewise.
9304         * config/i386/i386.c (min_insn_size): Likewise.
9305         (ix86_avoid_jump_mispredicts): Likewise.
9306         * config/m32r/m32r.c (m32r_is_insn): Likewise.
9307         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9308         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9309         (mips16_insn_length): Robustify.
9310         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9311         (mips16_split_long_branches): Likewise.
9312         * config/pa/pa.c (pa_combine_instructions): Likewise.
9313         * config/rs6000/rs6000.c (get_next_active_insn): Treat
9314         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9315         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9316         as contributing to pool range lengths.
9317         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9318         Remove redundant JUMP_TABLE_DATA_P test.
9319         (sh_loop_align): Likewise.
9320         (split_branches): Likewise.
9321         (sh_insn_length_adjustment): Likewise.
9322         * config/spu/spu.c (get_branch_target): Likewise.
9324 2013-03-29  Jan Hubicka  <jh@suse.cz>
9326         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9327         gcov streaming; stream hot bb threshold to ltrans.
9328         * predict.c (get_hot_bb_threshold): Break out from ....
9329         (maybe_hot_count_p): ... here.
9330         (set_hot_bb_threshold): New function.
9331         * lto-section-in.c (lto_section_name): Add profile.
9332         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9333         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9334         and data-streamer.h
9335         (histogram_entry): New structure.
9336         (histogram, histogram_pool): New global vars.
9337         (histogram_hash): New structure.
9338         (histogram_hash::hash): New method.
9339         (histogram_hash::equal): Likewise.
9340         (account_time_size): New function.
9341         (cmp_counts): New function.
9342         (dump_histogram): New function.
9343         (ipa_profile_generate_summary): New function.
9344         (ipa_profile_write_summary): New function.
9345         (ipa_profile_read_summary): New function.
9346         (ipa_profile): Decide on threshold.
9347         (pass_ipa_profile): Add ipa_profile_write_summary and
9348         ipa_profile_read_summary.
9349         * Makefile.in (ipa.o): Update dependencies.
9350         * lto-streamer.h (LTO_section_ipa_profile): New section.
9352 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9354         * tree.h (VAR_P): New.
9356 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
9358         PR lto/56777
9359         * doc/invoke.texi ([-fwhole-program]): Fix typo.
9361 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
9363         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9364         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9365         (control_flow_insn_p): Likewise.
9366         * cfgrtl.c (duplicate_insn_chain): Likewise.
9367         * final.c (get_attr_length_1): Likewise.
9368         (shorten_branches): Likewise.
9369         (final_scan_insn): Likewise.
9370         * function.c (instantiate_virtual_regs): Likewise.
9371         * gcse.c (insert_insn_end_basic_block): Likewise.
9372         * ira-costs.c (scan_one_insn): Likewise.
9373         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9374         * lra.c (check_rtl): Likewise.
9375         * reload1.c (elimination_costs_in_insn): Likewise.
9376         * reorg.c (follow_jumps): Likewise.
9378         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9379         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9380         (thumb_far_jump_used_p): Likewise.
9381         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9382         (workaround_speculation): Likewise.
9383         (add_sched_insns_for_speculation): Likewise.
9384         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9385         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9386         (frv_for_each_packet): Likewise.
9387         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9388         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9389         (final_emit_insn_group_barriers): Likewise.
9390         * config/m32r/m32r.c (m32r_is_insn): Likewise.
9391         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9392         (mips16_insn_length): Likewise.
9393         * config/pa/pa.c (pa_reorg): Likewise.
9394         (pa_combine_instructions): Likewise.
9395         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9396         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9397         (sh_reorg): Likewise.
9398         (split_branches): Likewise.
9399         * config/spu/spu.c (get_branch_target): Likewise.
9401         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9402         JUMP_TABLE_DATA_P.
9404 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
9406         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9407         Fix declaration name.
9409 2013-03-28  Lawrence Crowl  <crowl@google.com>
9411         * graphds.h (struct graph.indicies): Remove unused.
9412         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9413         (SCOP_ORIGINAL_PDDRS): Remove unused.
9414         * sese.h (extern insert_loop_close_phis): Removed unused.
9415         (extern insert_guard_phis): Removed unused.
9416         (extern ivtype_map_elt_info): Removed unused.
9417         (new_ivtype_map_elt): Removed unused.
9418         * sese.c (ivtype_map_elt_info): Removed unused.
9420 2013-03-28  Lawrence Crowl  <crowl@google.com>
9422         * Makefile.in: Add several missing include dependences.
9423         (DUMPFILE_H): New.
9424         (test-dump.o): New.  This object is not added to any executable,
9425         but is present for ad-hoc testing.
9426         * bitmap.c
9427         (debug (const bitmap_head_def &)): New.
9428         (debug (const bitmap_head_def *)): New.
9429         * bitmap.h
9430         (extern debug (const bitmap_head_def &)): New.
9431         (extern debug (const bitmap_head_def *)): New.
9432         * cfg.c
9433         (debug (edge_def &)): New.
9434         (debug (edge_def *)): New.
9435         * cfghooks.c
9436         (debug (basic_block_def &)): New.
9437         (debug (basic_block_def *)): New.
9438         * dumpfile.h
9439         (dump_node (const_tree, int, FILE *)): Correct source file.
9440         * dwarf2out.c
9441         (debug (die_struct &)): New.
9442         (debug (die_struct *)): New.
9443         * dwarf2out.h
9444         (extern debug (die_struct &)): New.
9445         (extern debug (die_struct *)): New.
9446         * gimple-pretty-print.c
9447         (debug (gimple_statement_d &)): New.
9448         (debug (gimple_statement_d *)): New.
9449         * gimple-pretty-print.h
9450         (extern debug (gimple_statement_d &)): New.
9451         (extern debug (gimple_statement_d *)): New.
9452         * ira-build.c
9453         (debug (ira_allocno_copy &)): New.
9454         (debug (ira_allocno_copy *)): New.
9455         (debug (ira_allocno &)): New.
9456         (debug (ira_allocno *)): New.
9457         * ira-int.h
9458         (extern debug (ira_allocno_copy &)): New.
9459         (extern debug (ira_allocno_copy *)): New.
9460         (extern debug (ira_allocno &)): New.
9461         (extern debug (ira_allocno *)): New.
9462         * ira-lives.c
9463         (debug (live_range &)): New.
9464         (debug (live_range *)): New.
9465         * lra-int.h
9466         (debug (lra_live_range &)): New.
9467         (debug (lra_live_range *)): New.
9468         * lra-lives.c
9469         (debug (lra_live_range &)): New.
9470         (debug (lra_live_range *)): New.
9471         * omega.c
9472         (debug (omega_pb_d &)): New.
9473         (debug (omega_pb_d *)): New.
9474         * omega.h
9475         (extern debug (omega_pb_d &)): New.
9476         (extern debug (omega_pb_d *)): New.
9477         * print-rtl.c
9478         (debug (const rtx_def &)): New.
9479         (debug (const rtx_def *)): New.
9480         * print-tree.c
9481         (debug_tree (tree): Move within file.
9482         (debug_raw (const tree_node &)): New.
9483         (debug_raw (const tree_node *)): New.
9484         (dump_tree_via_hooks (const tree_node *, int)): New.
9485         (debug (const tree_node &)): New.
9486         (debug (const tree_node *)): New.
9487         (debug_verbose (const tree_node &)): New.
9488         (debug_verbose (const tree_node *)): New.
9489         (debug_head (const tree_node &)): New.
9490         (debug_head (const tree_node *)): New.
9491         (debug_body (const tree_node &)): New.
9492         (debug_body (const tree_node *)): New.
9493         (debug_vec_tree (tree): Move and reimplement in terms of dump.
9494         (debug (vec<tree, va_gc> &)): New.
9495         (debug (vec<tree, va_gc> *)): New.
9496         * rtl.h
9497         (extern debug (const rtx_def &)): New.
9498         (extern debug (const rtx_def *)): New.
9499         * sbitmap.c
9500         (debug_raw (simple_bitmap_def &)): New.
9501         (debug_raw (simple_bitmap_def *)): New.
9502         (debug (simple_bitmap_def &)): New.
9503         (debug (simple_bitmap_def *)): New.
9504         * sbitmap.h
9505         (extern debug (simple_bitmap_def &)): New.
9506         (extern debug (simple_bitmap_def *)): New.
9507         (extern debug_raw (simple_bitmap_def &)): New.
9508         (extern debug_raw (simple_bitmap_def *)): New.
9509         * sel-sched-dump.c
9510         (debug (vinsn_def &)): New.
9511         (debug (vinsn_def *)): New.
9512         (debug_verbose (vinsn_def &)): New.
9513         (debug_verbose (vinsn_def *)): New.
9514         (debug (expr_def &)): New.
9515         (debug (expr_def *)): New.
9516         (debug_verbose (expr_def &)): New.
9517         (debug_verbose (expr_def *)): New.
9518         (debug (vec<rtx> &)): New.
9519         (debug (vec<rtx> *)): New.
9520         * sel-sched-dump.h
9521         (extern debug (vinsn_def &)): New.
9522         (extern debug (vinsn_def *)): New.
9523         (extern debug_verbose (vinsn_def &)): New.
9524         (extern debug_verbose (vinsn_def *)): New.
9525         (extern debug (expr_def &)): New.
9526         (extern debug (expr_def *)): New.
9527         (extern debug_verbose (expr_def &)): New.
9528         (extern debug_verbose (expr_def *)): New.
9529         (extern debug (vec<rtx> &)): New.
9530         (extern debug (vec<rtx> *)): New.
9531         * sel-sched-ir.h
9532         (_list_iter_cond_expr): Make inline instead of static.
9533         * sreal.c
9534         (debug (sreal &)): New.
9535         (debug (sreal *)): New.
9536         * sreal.h
9537         (extern debug (sreal &)): New.
9538         (extern debug (sreal *)): New.
9539         * tree.h
9540         (extern debug_raw (const tree_node &)): New.
9541         (extern debug_raw (const tree_node *)): New.
9542         (extern debug (const tree_node &)): New.
9543         (extern debug (const tree_node *)): New.
9544         (extern debug_verbose (const tree_node &)): New.
9545         (extern debug_verbose (const tree_node *)): New.
9546         (extern debug_head (const tree_node &)): New.
9547         (extern debug_head (const tree_node *)): New.
9548         (extern debug_body (const tree_node &)): New.
9549         (extern debug_body (const tree_node *)): New.
9550         (extern debug (vec<tree, va_gc> &)): New.
9551         (extern debug (vec<tree, va_gc> *)): New.
9552         * tree-cfg.c
9553         (debug (struct loop &)): New.
9554         (debug (struct loop *)): New.
9555         (debug_verbose (struct loop &)): New.
9556         (debug_verbose (struct loop *)): New.
9557         * tree-dump.c: Add header dependence.
9558         * tree-flow.h
9559         (extern debug (struct loop &)): New.
9560         (extern debug (struct loop *)): New.
9561         (extern debug_verbose (struct loop &)): New.
9562         (extern debug_verbose (struct loop *)): New.
9563         * tree-data-ref.c
9564         (debug (data_reference &)): New.
9565         (debug (data_reference *)): New.
9566         (debug (vec<data_reference_p> &)): New.
9567         (debug (vec<data_reference_p> *)): New.
9568         (debug (vec<ddr_p> &)): New.
9569         (debug (vec<ddr_p> *)): New.
9570         * tree-data-ref.h
9571         (extern debug (data_reference &)): New.
9572         (extern debug (data_reference *)): New.
9573         (extern debug (vec<data_reference_p> &)): New.
9574         (extern debug (vec<data_reference_p> *)): New.
9575         (extern debug (vec<ddr_p> &)): New.
9576         (extern debug (vec<ddr_p> *)): New.
9577         * tree-ssa-alias.c
9578         (debug (pt_solution &)): New.
9579         (debug (pt_solution *)): New.
9580         * tree-ssa-alias.h
9581         (extern debug (pt_solution &)): New.
9582         (extern debug (pt_solution *)): New.
9583         * tree-ssa-alias.c
9584         (debug (_var_map &)): New.
9585         (debug (_var_map *)): New.
9586         (debug (tree_live_info_d &)): New.
9587         (debug (tree_live_info_d *)): New.
9588         * tree-ssa-alias.h
9589         (extern debug (_var_map &)): New.
9590         (extern debug (_var_map *)): New.
9591         (extern debug (tree_live_info_d &)): New.
9592         (extern debug (tree_live_info_d *)): New.
9594 2013-03-28  Jan Hubicka  <jh@suse.cz>
9596         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9598 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
9600         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9601         record only when desired or required.
9603 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
9605         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9606         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
9608 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9610         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9611         (*andsi3_compare0_uxtw): New pattern.
9612         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9613         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9615 2013-03-28  Jan Hubicka  <jh@suse.cz>
9617         * data-streamer-in.c (streamer_read_gcov_count): New function.
9618         * gimple-streamer-out.c: Include value-prof.h.
9619         (output_gimple_stmt): Output histogram.
9620         (output_bb): Use streamer_write_gcov_count.
9621         * value-prof.c: Include data-streamer.h
9622         (dump_histogram_value): Add HIST_TYPE_MAX.
9623         (stream_out_histogram_value): New function.
9624         (stream_in_histogram_value): New function.
9625         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9626         (stream_out_histogram_value, stream_in_histogram_value): Declare.
9627         * data-streamer-out.c (streamer_write_gcov_count): New function.
9628         (streamer_write_gcov_count_stream): New function.
9629         * lto-cgraph.c (lto_output_edge): Update counter streaming.
9630         (lto_output_node): Likewise.
9631         (input_node, input_edge): Likewise.
9632         * lto-streamer-out.c (output_cfg): Update streaming.
9633         * lto-streamer-in.c (input_cfg): Likewise.
9634         * data-streamer.h (streamer_write_gcov_count,
9635         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9636         * gimple-streamer-in.c: Include value-prof.h
9637         (input_gimple_stmt): Input histograms.
9638         (input_bb): Update profile streaming.
9640 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
9642         * genmodes.c (emit_max_int): New function.
9643         (emit_insn_modes_h): Added call to emit_max_function.
9644         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9645         Added doc.
9646         * machmode.def: Fixed comment.
9648 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
9650         * combine.c (try_combine): Removed useless assert.
9651         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9653 2013-03-28  Marek Polacek  <polacek@redhat.com>
9654             Richard Biener  <rguenther@suse.de>
9656         PR tree-optimization/56695
9657         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9658         build signed result of a vector comparison.
9659         * tree-cfg.c (verify_gimple_comparison): Check that a result
9660         of a vector comparison has signed type.
9662 2013-03-28  Richard Biener  <rguenther@suse.de>
9664         PR tree-optimization/37021
9665         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9666         do not restrict gaps between groups.
9667         * tree-vect-stmts.c (vectorizable_load): Properly account for
9668         a gap between groups.
9670 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9672         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9673         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9674         is not enabled.
9676 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
9678         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9679         * doc/extend.texi (Named Address Spaces): Ditto.
9680         (Variable Attributes): Ditto.
9682 2013-03-27  Kai Tietz  <ktietz@redhat.com>
9684         * config.build: Add support for cygwin x64 target.
9685         * config.gcc: Likewise.
9686         * config.host: Likewise.
9687         * configure.ac: Likewise
9688         * configure: Regenerated.
9690 2013-03-27  Kai Tietz  <ktietz@redhat.com>
9692         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9693         * config/i386/t-cygwin-w64: New file.
9694         * config/i386/cygwin-w64.h: New file.
9695         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9696         and add support for x64-cygwin target.
9697         (CPP_SPEC): Likewise.
9698         (CXX_WRAP_SPEC_LIST): Undefine before define.
9699         (LIBGCJ_SONAME): Use 15 as version.
9701 2013-03-27  Richard Biener  <rguenther@suse.de>
9703         PR tree-optimization/56716
9704         * tree-ssa-structalias.c (perform_var_substitution): Adjust
9705         dumping for ref nodes.
9707 2013-03-27  Martin Jambor  <mjambor@suse.cz>
9709         PR tree-optimization/55334
9710         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9711         restricted pointers to arrays.
9713 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9715         * Makefile.in (.SUFFIXES): Add .cc.
9716         (.c.o): Apply same recipe for implicit rule .cc.o.
9718 2013-03-27  Richard Biener  <rguenther@suse.de>
9720         PR tree-optimization/37021
9721         * tree-vect-data-refs.c (vect_check_strided_load): Allow
9722         REALPART/IMAGPART_EXPRs around the supported refs.
9723         * tree-ssa-structalias.c (find_func_aliases): Assume that
9724         floating-point values are not used to transfer pointers.
9726 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9728         * target.def (TARGET_HAS_IFUNC_P): New target hook.
9729         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9730         * doc/tm.texi: Regenerate.
9731         * targhooks.h (default_has_ifunc_p): New.
9732         * targhooks.c (default_has_ifunc_p): Ditto.
9733         * config/linux-protos.h: New file.
9734         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
9735         this hook for linux which disables support of indirect functions in
9736         android.
9737         * config/linux-android.c: New file.
9738         * config/t-linux-android.c: Ditto.
9739         * config.gcc: Added new object file linux-android.o.
9740         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
9741         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
9742         * varasm.c (do_assemble_alias): Likewise.
9743         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9744         doesn't support indirect functions.
9745         * configure: Regenerate.
9747 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
9749         PR target/56102
9750         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9751         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9752         mult-word mode.
9754 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9756         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9758 2013-03-27  Terry Guo  <terry.guo@arm.com>
9760         * config/arm/arm-cores.def: Added core cortex-r7.
9761         * config/arm/arm-tune.md: Regenerated.
9762         * config/arm/arm-tables.opt: Regenerated.
9763         * doc/invoke.texi: Added entry for core cortex-r7.
9765 2013-03-27  Walter Lee  <walt@tilera.com>
9767         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9768         double-decrement of next_scratch_regno.
9770 2013-03-27  Walter Lee  <walt@tilera.com>
9772         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9773         input operands.
9774         (insn_v1mulus): Ditto.
9775         (insn_v2muls): Ditto.
9777 2013-03-27  Walter Lee  <walt@tilera.com>
9779         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
9780         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9782 2013-03-27  Walter Lee  <walt@tilera.com>
9784         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
9785         (*sibcall_value): Ditto.
9787 2013-03-27  Walter Lee  <walt@tilera.com>
9789         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9790         (insn_mnz_v8qi): ... this ...
9791         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
9792         vector equivalent.
9793         (insn_v<n>mnz): Replaced by ...
9794         (insn_v1mnz): ... this ...
9795         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
9796         equivalent.
9797         (insn_mz_<mode>): Replaced by ...
9798         (insn_mz_v8qi): ... this ...
9799         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
9800         vector equivalent.
9801         (insn_v<n>mz): Replaced by ...
9802         (insn_v1mz): ... this ...
9803         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
9804         equivalent.
9806 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9808         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9810 2013-03-26  Roland McGrath  <mcgrathr@google.com>
9812         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9813         than fprintf with a non-constant, non-format string.
9815 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
9817         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9818         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
9819         operand 0 predicate.
9820         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
9821         attribute.  Use general_x64nomem_operand as operand 1 predicate.
9822         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
9823         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
9824         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
9825         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
9826         (mov<mode>_insv_1): Remove expander.  Merge insn with
9827         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
9828         Use general_x64nomem_operand as operand 1 predicate.
9829         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
9830         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
9831         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
9832         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
9833         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
9834         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
9835         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
9836         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
9837         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
9838         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
9839         (general_x64nomem_operand): Ditto.
9841 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9843         * config/rtems.opt: Add -pthread option.
9845 2013-03-26  Richard Biener  <rguenther@suse.de>
9847         * alias.c (find_base_term): Avoid redundant and not used recursion.
9848         (base_alias_check): Get the initial base term from the caller.
9849         (true_dependence_1): Compute and pass base terms to base_alias_check.
9850         (write_dependence_p): Likewise.
9851         (may_alias_p): Likewise.
9853 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
9855         * config/aarch64/aarch64.c (aarch64_classify_address): Support
9856         PC-relative load in SI modes and above only.
9858 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
9860         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
9861         * config/arm/iwmmxt.md (WCGR0): Update.
9862         (WCGR1, WCGR2, WCGR3): Likewise.
9864 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
9866         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
9867         Use x64 and nox64 isa attributes.
9869 2013-03-26  Richard Biener  <rguenther@suse.de>
9871         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9872         alignment computations and rely on get_object_alignment_1
9873         for the !TYPE_P case.
9874         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
9876 2013-03-26  Walter Lee  <walt@tilera.com>
9878         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
9879         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
9881 2013-03-25  Jeff Law  <law@redhat.com>
9883         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
9884         check for INTEGRAL_TYPE_P that was missing due to checking in
9885         wrong version of prior patch.
9887 2013-03-25  Walter Lee  <walt@tilera.com>
9889         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
9890         TILEGX_INSN_SHUFFLEBYTES1.
9891         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
9892         shufflebytes1.
9893         (tilegx_builtins): Ditto.
9894         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
9896 2013-03-25  Walter Lee  <walt@tilera.com>
9898         * config/tilegx/tilegx.md (floatsisf2): New pattern.
9899         (floatunssisf2): New pattern.
9900         (floatsidf2): New pattern.
9901         (floatunssidf2): New pattern.
9903 2013-03-25  Walter Lee  <walt@tilera.com>
9905         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
9906         tests for constraint J, K, N, P.
9908 2013-03-25  Walter Lee  <walt@tilera.com>
9910         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
9911         Use indirect/pcrel encoding.
9912         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9913         Ditto.
9915 2013-03-25  Steve Ellcey  <sellcey@mips.com>
9917         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9918         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9919         * config/mips/mips.c (mips_option_override): Set IMADD default.
9920         * config/mips/mips.h (PTF_AVOID_IMADD): New.
9921         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9922         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9923         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9924         * doc/invoke.texi (-mimadd/-mno-imadd): New.
9926 2013-03-25  Jeff Law  <law@redhat.com>
9928         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9929         slightly to avoid creating and folding useless trees.  Simplify
9930         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9932 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
9934         * config/i386/i386.md (*zero_extendsidi2): Merge with
9935         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
9936         * config/i386/predicates.md (x86_64_zext_operand): Rename from
9937         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
9938         targets.  Clarify comment.
9940 2013-03-25  Martin Jambor  <mjambor@suse.cz>
9942         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9943         pass-through jump functions differently.
9944         (ipa_read_jump_function): Likewise.  Also use setter functions to set
9945         up jump functions.
9947 2013-03-25  Martin Jambor  <mjambor@suse.cz>
9949         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9950         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9951         process it.
9952         (ipa_get_indirect_edge_target): New function.
9953         (devirtualization_time_bonus): New parameter known_aggs, pass it to
9954         ipa_get_indirect_edge_target.  Update all callers.
9955         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
9956         ipa_get_indirect_edge_target_1 instead of calling
9957         ipa_get_indirect_edge_target.
9958         (create_specialized_node): Pass aggvlas to
9959         ipcp_discover_new_direct_edges.
9961 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9963         * config/arm/arm.md (f_sels, f_seld): New types.
9964         (*cmov<mode>): New pattern.
9965         * config/arm/predicates.md (arm_vsel_comparison_operator): New
9966         predicate.
9968 2013-03-25  Kai Tietz  <ktietz@redhat.com>
9970         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9971         POSIX-printf for mingw-hosted  builds.
9973 2013-03-25  Richard Biener  <rguenther@suse.de>
9975         PR middle-end/56694
9976         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9977         must-not-throw stmt location.
9979 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9981         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9982         Emit load-acquire versions when acq is true.
9983         (arm_emit_store_exclusive): Add rel parameter.
9984         Emit store-release versions when rel is true.
9985         (arm_split_compare_and_swap): Use acquire-release instructions
9986         instead.
9987         of barriers when appropriate.
9988         (arm_split_atomic_op): Likewise.
9989         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9990         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9991         (VUNSPEC_SLX): Likewise.
9992         (VUNSPEC_LDA): Likewise.
9993         (VUNSPEC_STL): Likewise.
9994         * config/arm/sync.md (atomic_load<mode>): New pattern.
9995         (atomic_store<mode>): Likewise.
9996         (arm_load_acquire_exclusive<mode>): Likewise.
9997         (arm_load_acquire_exclusivesi): Likewise.
9998         (arm_load_acquire_exclusivedi): Likewise.
9999         (arm_store_release_exclusive<mode>): Likewise.
10001 2013-03-25  Catherine Moore  <clm@codesourcery.com>
10003         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10004         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10005         * config/mip/predicates.md (lwsp_swsp_operand,
10006         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10007         sb16_operand, db4_operand, db7_operand, ib3_operand,
10008         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10009         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10010         andi16_operand): New predicates.
10011         * config/mips/mips.md (compression): New attribute.
10012         (enabled): New attribute.
10013         (length): Consider compression in computing length.
10014         (shift_compression): New code attribute.
10015         (*add<mode>3): New operands. Record compression.
10016         (sub<mode>3): Likewise.
10017         (one_cmpl<mode>2): Likewise.
10018         (*and<mode>3): Likewise.
10019         (*ior<mode>3): Likewise.
10020         (unnamed pattern for xor): Likewise.
10021         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10022         (*<optab><mode>3): Likewise.
10023         (*mov<mode>_internal: Likewise.
10024         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10025         (mips_unsigned_immediate_p): New.
10026         (umips_lwsp_swsp_address_p): New.
10027         (m16_based_address_p): New.
10028         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10029         (mips_unsigned_immediate_p): New prototype.
10030         (lwsp_swsp_address_p): New prototype.
10031         (m16_based_address_p): New prototype.
10032         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10033         (mips_signed_immediate_p): New function.
10034         (m16_based_address_p): New function.
10035         (lwsp_swsp_address_p): New function.
10036         (mips_print_operand_punctuation): Recognize short delay slot insns
10037         for microMIPS.add<mode>3"
10039 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10041         PR target/56720
10042         * config/arm/iterators.md (v_cmp_result): New mode attribute.
10043         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10045 2013-03-25  Richard Biener  <rguenther@suse.de>
10047         PR tree-optimization/56689
10048         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10049         any edge.
10051 2013-03-25  Richard Biener  <rguenther@suse.de>
10053         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10054         of bitmap.
10055         (memory_references): Likewise.
10056         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10057         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10058         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10059         (gather_mem_refs_in_loops): Fold into ...
10060         (analyze_memory_references): ... this.  Move initialization
10061         to tree_ssa_lim_initialize.
10062         (fill_always_executed_in): Rename to ...
10063         (fill_always_executed_in_1): ... this.
10064         (fill_always_executed_in): Move contains_call computation to
10065         this new function from ...
10066         (tree_ssa_lim_initialize): ... here.
10067         (tree_ssa_lim): Call fill_always_executed_in.
10069 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
10071         * postreload.c (reload_combine): Fix code detecting returns.
10073 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
10075         * function.c (emit_use_return_register_into_block): On cc0 targets,
10076         do not emit the sequence between cc0 setter and user.
10078 2013-03-25  Kai Tietz  <ktietz@redhat.com>
10080         * config/i386/predicates.md (local_symbolic_operand): Interpret
10081         dll-imported symbols as none-local.
10083 2013-03-25  Richard Biener  <rguenther@suse.de>
10085         * tree-ssa-loop-im.c (struct depend): Remove.
10086         (struct lim_aux_data): Make depends a vec of gimples.
10087         (free_lim_aux_data): Adjust.
10088         (add_dependency): Likewise.
10089         (set_level): Likewise.
10091 2013-03-25  Richard Biener  <rguenther@suse.de>
10093         PR middle-end/56434
10094         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10095         the pointer returned by calls with ECF_MALLOC set.
10097 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
10099         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10101 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
10103         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
10104         using MMXMODE mode iterator.
10105         (*move<mode>_internal): Merge with *movv2sf_internal and
10106         *movv2sf_internal_rex64 using MMXMODE mode iterator.
10108 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
10110         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10111         (record_last_mem_set_info): Likewise.
10113         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10114         of XNEWVEC followed by memset.
10115         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10117 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
10119         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10120         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10121         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10122         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10123         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10124         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10125         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10126         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10127         BARRIER_P instead of GET_CODE.
10129 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
10131         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10132         inaccuracy in the probing code.
10134         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10135         (ctrapdi4): Likewise.
10137 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
10139         * calls.c (expand_call): Add missing guard to code handling return
10140         of non-BLKmode structures in MSB.
10141         * function.c (expand_function_end): Likewise.
10143 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
10145         * combine.c (try_combine): Adjust comment.  Do not add the set of
10146         insn #0 if the destination indirectly is set or dies in insn #2.
10147         Tidy up code to distribute a new note.
10149 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
10151         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10152         also for alternatives 16 and 17.
10154 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
10156         * config/i386/sse.md (*mov<mode>_internal): Merge with
10157         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
10158         Emit insn template depending on type attribute.  Use
10159         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10160         movd instead of movq mnemonic for interunit moves.  Rewrite mode
10161         attribute calculation.  Remove unit attribute calculation.
10162         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10163         Set prefix_data16 attribute for DImode ssemov types.
10164         Use Ym instead of y for SSE-MMX conversion alternatives.
10165         Reorder operand constraints.
10167 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
10169         * df.h (df_insn_delete): Adjust prototype.
10170         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10171         and let it decide whether mark the basic block dirty.
10172         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10173         * df-scan.c (df_insn_info_delete): New helper function, split
10174         off from df_insn_delete.
10175         (df_scan_free_bb_info): Use it.
10176         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10177         Likewise.
10178         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
10179         that the insn is actually an insn and it has a non-NULL basic block.
10180         Do not mark basic block dirty if only deleting a DEBUG_INSN.
10182 2013-03-22  Richard Biener  <rguenther@suse.de>
10184         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10185         dep_ref members.
10186         (mem_ref_alloc): Do not allocate them.
10187         (refs_independent_p): Do not query or maintain a cache.
10189 2013-03-22  Richard Biener  <rguenther@suse.de>
10191         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10192         (gather_mem_refs_in_loops): Do not compute it.
10193         (analyze_memory_references): Do not allocate it.
10194         (tree_ssa_lim_finalize): Do not free it.
10195         (for_all_locs_in_loop): Do not query all_refs_in_loop.
10197 2013-03-22  Richard Biener  <rguenther@suse.de>
10199         * is-a.h (as_a): Use gcc_checking_assert.
10201 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
10203         * config/aarch64/aarch64.c (aarch64_print_operand): New
10204         format specifier for printing a constant in hex.
10205         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10206         format specifier for printing second operand.
10208 2013-03-22  Richard Biener  <rguenther@suse.de>
10210         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10211         bitmaps.
10212         (gather_mem_refs_in_loops): Perform store accumulation here.
10213         (create_vop_ref_mapping_loop): Remove.
10214         (create_vop_ref_mapping): Likewise.
10215         (analyze_memory_references): Initialize refs_stored_in_loop.
10216         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10217         (record_indep_loop): Remove.
10218         (record_dep_loop): New function.
10219         (ref_indep_loop_p_1): Adjust to only walk over references
10220         in the loop, not its subloops.
10221         (ref_indep_loop_p): Rename to ...
10222         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10223         maintaining a more fine-grained cache.
10224         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10225         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10227 2013-03-22  Richard Biener  <rguenther@suse.de>
10229         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10230         (struct mem_ref): Make accesses_in_loop a vec of a vec of
10231         aggregate mem_ref_loc.
10232         (free_mem_ref_locs): Inline into ...
10233         (memref_free): ... this and adjust.
10234         (mem_ref_alloc): Adjust.
10235         (mem_ref_locs_alloc): Remove.
10236         (record_mem_ref_loc): Adjust.
10237         (get_all_locs_in_loop): Rewrite into ...
10238         (for_all_locs_in_loop): ... this iterator.
10239         (rewrite_mem_ref_loc): New functor.
10240         (rewrite_mem_refs): Use for_all_locs_in_loop.
10241         (sm_set_flag_if_changed): New functor.
10242         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10243         (ref_always_accessed): New functor.
10244         (ref_always_accessed_p): Use for_all_locs_in_loop.
10246 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10248         * tree-pass.h (PROP_gimple_lvec): New.
10249         * passes.c (dump_properties): Handle PROP_gimple_lvec.
10250         (init_optimization_passes): Move pass_lower_vector.
10251         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10252         PROP_gimple_lvec.
10253         (pass_lower_vector): Provide PROP_gimple_lvec.
10254         (pass_lower_vector_ssa): Likewise.
10255         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10257 2013-03-21  Mark Wielaard  <mjw@redhat.com>
10259         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10261 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
10263         * config/i386/i386.md (*movdi_internal): Disparage slightly
10264         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
10265         conversion alternatives.
10267 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
10269         PR middle-end/48087
10270         * diagnostic.def (DK_WERROR): New kind.
10271         * diagnostic.h (werrorcount): Define.
10272         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10273         promoted to DK_ERROR, increment DK_WERROR counter instead of
10274         DK_ERROR counter.
10275         * toplev.c (toplev_main): Call print_ignored_options even if
10276         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
10277         even if just werrorcount is non-zero.
10279         PR debug/55608
10280         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10281         on failure.
10282         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10283         (string_cst_pool_decl): New function.
10284         (optimize_one_addr_into_implicit_ptr): New function.
10285         (resolve_addr_in_expr): Optimize DWARF location expression
10286         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10287         which doesn't live in memory, but has DW_AT_location or
10288         DW_AT_const_value, or refers to a string literal, into
10289         DW_OP_GNU_implicit_pointer.
10290         (optimize_location_into_implicit_ptr): New function.
10291         (resolve_addr): If removing DW_AT_location of a variable because
10292         it was DW_OP_addr of address of the variable, but the variable doesn't
10293         live in memory, try to emit const value attribute for the initializer.
10295 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10297         * tree.h (VECTOR_TYPE_P): New macro.
10298         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10299         TYPE_MODE): Use it.
10300         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10301         VEC_COND_EXPR cannot be lvalues.
10302         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10304 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10306         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10307         Restrict the transformation to equal modes.
10309 2013-03-21  Richard Biener  <rguenther@suse.de>
10311         PR tree-optimization/39326
10312         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10313         (MEM_ANALYZABLE): Adjust.
10314         (record_mem_ref_loc): Move bitmap ops ...
10315         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
10316         unanalyzable refs, do not record locations for it.
10317         (analyze_memory_references): Allocate ref zero as shared
10318         unanalyzable ref.
10319         (refs_independent_p): Do not test for unanalyzed mems here.
10320         (ref_indep_loop_p_1): Special-case disambiguation against
10321         the unanalyzed ref.
10322         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10324 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
10326         * config/arm/arm-protos.h (tune_params): Add
10327         prefer_neon_for_64bits field.
10328         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10329         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10330         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10331         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10332         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10333         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10334         (arm_option_override): Handle -mneon-for-64bits new option.
10335         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10336         (prefer_neon_for_64bits): Declare new variable.
10337         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10338         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10339         (arch_enabled): Handle new arch types. Remove support for onlya8
10340         and nota8.
10341         (one_cmpldi2): Use new arch names.
10342         (zero_extend<mode>di2, extend<mode>di2): Ditto.
10343         * config/arm/arm.opt (mneon-for-64bits): Add option.
10344         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10345         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10346         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10347         of onlya8.
10348         * doc/invoke.texi (-mneon-for-64bits): Document.
10350 2013-03-21  Richard Biener  <rguenther@suse.de>
10352         PR tree-optimization/39326
10353         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10354         (sort_bbs_in_loop_postorder_cmp): New function.
10355         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10357 2013-03-21  Richard Biener  <rguenther@suse.de>
10359         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10360         (vect_insert_into_interleaving_chain): Likewise.
10361         (vect_drs_dependent_in_basic_block): Inline ...
10362         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
10363         split out from ...
10364         (vect_analyze_data_ref_dependence): ... here.  Simplify.
10365         (vect_check_interleaving): Simplify.
10366         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
10367         (vect_slp_analyze_data_ref_dependences): ... this new function.
10368         (dr_group_sort_cmp): New function.
10369         (vect_analyze_data_ref_accesses): Compute data-reference groups
10370         here instead of in vect_analyze_data_ref_dependence.  Use
10371         a more efficient algorithm.
10372         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10373         vect_slp_analyze_data_ref_dependences.  Call
10374         vect_analyze_data_ref_accesses earlier.
10375         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10376         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10377         (vect_slp_analyze_data_ref_dependences): New prototype.
10379 2013-03-21  Richard Biener  <rguenther@suse.de>
10381         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10382         ref is stored in the loop.
10383         (find_refs_for_sm): Walk only over all stores.
10384         (store_motion_loop): Allocate from lim_bitmap_obstack.
10385         (store_motion): Likewise.
10387 2013-03-21  Richard Biener  <rguenther@suse.de>
10389         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10390         Update virtual SSA form.
10392 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10394         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10395         * configure: Regenerate.
10396         * config.in: Regenerate.
10397         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10398         if !HAVE_LD_EH_FRAME_CIEV3.
10400 2013-03-21  Richard Biener  <rguenther@suse.de>
10402         * tree-cfg.c (verify_expr_no_block): New function.
10403         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10404         nor DECL_VALUE_EXPR have locations with associated blocks.
10405         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10406         (clear_unused_block_pointer): Remove code dealing with
10407         blocks in DECL_DEBUG_EXPR locations.
10409 2013-03-21  Richard Biener  <rguenther@suse.de>
10411         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10412         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
10413         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10414         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10415         instead of DECL_DEBUG_EXPR_IS_FROM.
10416         * gimplify.c (gimplify_modify_expr): Likewise.
10417         * tree-cfg.c (verify_expr_location_1): Likewise.
10418         * tree-complex.c (create_one_component_var): Likewise.
10419         * tree-sra.c (create_access_replacement): Likewise.
10420         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10421         (clear_unused_block_pointer): Likewise.
10422         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10423         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10424         * var-tracking.c (var_debug_decl): Likewise.
10425         (track_expr_p): Likewise.
10426         * tree-inline.c (add_local_variables): Likewise.  Set
10427         DECL_HAS_DEBUG_EXPR_P after copying it.
10428         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10429         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
10431 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
10433         PR bootstrap/56656
10434         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10435         * configure: Regenerate.
10436         * config.in: Regenerate.
10437         * config/i386/i386.md (*movdf_internal): Use
10438         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10439         movd instead of movq mnemonic for interunit moves.
10440         (*movdi_internal): Ditto.
10442 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10444         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10445         (abd<mode>_3): New pattern.
10446         (aba<mode>_3): New pattern.
10447         (fabd<mode>_3): New pattern.
10449 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10451         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10452         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10453         occurrence of REGISTER_PREFIX as its empty string.
10455 2013-03-20  Jeff Law  <law@redhat.com>
10457         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10458         addititional equivalences for equality comparisons between an SSA_NAME
10459         and a constant where the SSA_NAME was set from a widening conversion.
10461 2013-03-20  Walter Lee  <walt@tilera.com>
10463         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10465 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10467         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10468         depending on type attribute.
10469         (*movti_internal): Ditto.
10470         (*movtf_internal): Ditto.
10471         (*movxf_internal): Ditto.
10472         (*movdf_internal): Ditto.
10473         (*movsf_internal): Ditto.
10475 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10477         * config/i386/i386.md (*movti_internal): Set prefix attribute to
10478         maybe_vex for sselog1 and ssemov types.
10479         (*movdi_internal): Reorder operand constraints.
10480         (*movsi_internal): Ditto.  Set prefix attribute to
10481         maybe_vex for sselog1 and ssemov types.
10482         (*movtf_internal): Set prefix attribute to maybe_vex
10483         for sselog1 and ssemov types.
10484         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
10485         DImode ssemov types.  Reorder operand constraints.
10486         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
10487         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
10488         attribute for SImode ssemov types.  Reorder operand constraints.
10490 2013-03-20  Martin Jambor  <mjambor@suse.cz>
10492         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10493         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10495 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
10497         * config/rs6000/predicates.md (indexed_address, update_address_mem
10498         update_indexed_address_mem): New predicates.
10499         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10500         attribute for load/store instructions.
10501         * config/rs6000/dfp.md (movsd_store): Likewise.
10502         (movsd_load): Likewise.
10503         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10504         (unnamed HI->DI extend define_insn): Likewise.
10505         (unnamed SI->DI extend define_insn): Likewise.
10506         (unnamed QI->SI extend define_insn): Likewise.
10507         (unnamed QI->HI extend define_insn): Likewise.
10508         (unnamed HI->SI extend define_insn): Likewise.
10509         (unnamed HI->SI extend define_insn): Likewise.
10510         (extendsfdf2_fpr): Likewise.
10511         (movsi_internal1): Likewise.
10512         (movsi_internal1_single): Likewise.
10513         (movhi_internal): Likewise.
10514         (movqi_internal): Likewise.
10515         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10516         attribute for load/store instructions.
10517         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10518         instructions.
10519         (mov<mode>_softfloat): Likewise.
10520         (mov<mode>_hardfloat32): Likewise.
10521         (mov<mode>_hardfloat64): Likewise.
10522         (mov<mode>_softfloat64): Likewise.
10523         (movdi_internal32): Likewise.
10524         (movdi_internal64): Likewise.
10525         (probe_stack_<mode>): Likewise.
10527 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
10529         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10530         floating point, and decimal floating point to reload iterator.
10532         * config/rs6000/constraints.md (wl constraint): New constraints to
10533         return FLOAT_REGS if certain options are used to reduce the number
10534         of separate patterns that exist in the file.
10535         (wx constraint): Likewise.
10536         (wz constraint): Likewise.
10538         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10539         -mdebug=reg, print wg, wl, wx, and wz constraints.
10540         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10541         Initialize the reload functions for 64-bit binary/decimal floating
10542         point types.
10543         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10544         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10545         create the buffer on the stack to overcome not having a 32-bit
10546         load and store.
10547         (rs6000_emit_move): Likewise.
10548         (rs6000_secondary_memory_needed_rtx): Likewise.
10549         (rs6000_alloc_sdmode_stack_slot): Likewise.
10550         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10551         via xxlxor, just like DFmode 0.0.
10553         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10554         define as 1 if we are running on a power7 or newer.
10555         (enum r6000_reg_class_enum): Add new constraints.
10557         * config/rs6000/dfp.md (movsd): Delete, combine with binary
10558         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
10559         with other moves by using conditional constraits (wg).  Use LFIWZX
10560         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
10561         (movsd splitter): Likewise.
10562         (movsd_hardfloat): Likewise.
10563         (movsd_softfloat): Likewise.
10565         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10566         binary and decimal floating point moves.
10567         (fmove_ok): New attributes to combine binary and decimal floating
10568         point moves, and to combine power6x (mfpgpr) moves along normal
10569         floating moves.
10570         (real_value_to_target): Likewise.
10571         (f32_lr): Likewise.
10572         (f32_lm): Likewise.
10573         (f32_li): Likewise.
10574         (f32_sr): Likewise.
10575         (f32_sm): Likewise.
10576         (f32_si): Likewise.
10577         (movsf): Combine binary and decimal floating point moves.  Combine
10578         power6x (mfpgpr) moves with other moves by using conditional
10579         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
10580         (mov<mode> for SFmode/SDmode); Likewise.
10581         (SFmode/SDmode splitters): Likewise.
10582         (movsf_hardfloat): Likewise.
10583         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10584         (movsf_softfloat): Likewise.
10585         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10587         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10588         wx and wz constraints.
10590         * config/rs6000/constraints.md (wg constraint): New constraint to
10591         return FLOAT_REGS if -mmfpgpr (power6x) was used.
10593         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10594         constraint.
10596         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10597         -mdebug=reg, print wg, wl, wx, and wz constraints.
10598         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10599         Initialize the reload functions for 64-bit binary/decimal floating
10600         point types.
10601         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10602         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10603         create the buffer on the stack to overcome not having a 32-bit
10604         load and store.
10605         (rs6000_emit_move): Likewise.
10606         (rs6000_secondary_memory_needed_rtx): Likewise.
10607         (rs6000_alloc_sdmode_stack_slot): Likewise.
10608         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10609         via xxlxor, just like DFmode 0.0.
10611         * config/rs6000/dfp.md (movdd): Delete, combine with binary
10612         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
10613         with other moves by using conditional constraits (wg).  Use LFIWZX
10614         and STFIWX for loading SDmode on power7.
10615         (movdd splitters): Likewise.
10616         (movdd_hardfloat32): Likewise.
10617         (movdd_softfloat32): Likewise.
10618         (movdd_hardfloat64_mfpgpr): Likewise.
10619         (movdd_hardfloat64): Likewise.
10620         (movdd_softfloat64): Likewise.
10622         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10623         64-bit binary and decimal floating point moves.
10624         (FMOVE64X): Likewise.
10625         (movdf): Combine 64-bit binary and decimal floating point moves.
10626         Combine power6x (mfpgpr) moves with other moves by using
10627         conditional constraits (wg).
10628         (mov<mode> for DFmode/DDmode): Likewise.
10629         (DFmode/DDmode splitters): Likewise.
10630         (movdf_hardfloat32): Likewise.
10631         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10632         (movdf_softfloat32): Likewise.
10633         (movdf_hardfloat64_mfpgpr): Likewise.
10634         (movdf_hardfloat64): Likewise.
10635         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10636         (movdf_softfloat64): Likewise.
10637         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10638         (reload_<mode>_load): Move to later in the file so they aren't in
10639         the middle of the floating point move insns.
10640         (reload_<mode>_store): Likewise.
10642         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10643         constraint.
10645         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10646         constraint if -mdebug=reg.
10647         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10648         Enable using dd reload support if needed.
10650         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10651         binary and decimal floating point moves in rs6000.md.
10652         (movtd_internal): Likewise.
10654         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10655         decimal floating point moves.
10656         (movtf): Likewise.
10657         (movtf_internal): Likewise.
10658         (mov<mode>_internal, TDmode/TFmode): Likewise.
10659         (movtf_softfloat): Likewise.
10660         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10662         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10663         movdi_internal64, using wg constraint for move direct operations.
10664         (movdi_internal64): Likewise.
10666         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10667         MODES_TIEABLE_P for selected modes.  Print the numerical value of
10668         the various virtual registers. Use GPR/FPR first/last values,
10669         instead of hard coding the register numbers.  Print which modes
10670         have reload functions registered.
10671         (rs6000_option_override_internal): If -mdebug=reg, trace the options
10672         settings before/after setting cpu, target and subtarget settings.
10673         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10674         and for secondary reload failures in rs6000_secondary_reload_inner.
10675         (rs6000_secondary_reload_fail): Likewise.
10676         (rs6000_secondary_reload_inner): Likewise.
10678         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10679         macros for first/last GPR and FPR registers.
10680         (LAST_GPR_REGNO): Likewise.
10681         (FIRST_FPR_REGNO): Likewise.
10682         (LAST_FPR_REGNO): Likewise.
10684         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10685         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10686         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10687         (vcond<mode><mode>): Likewise.
10688         (vcondu<mode><mode>): Likewise.
10689         (vector_gtu<mode>): Likewise.
10690         (vector_gte<mode>): Likewise.
10691         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
10692         to prevent the compiler from converting DImode operations to TImode.
10693         (ior<mode>3): Likewise.
10694         (and<mode>3): Likewise.
10695         (one_cmpl<mode>2): Likewise.
10696         (nor<mode>3): Likewise.
10697         (andc<mode>3): Likewise.
10699         * config/rs6000/constraints.md (wt constraint): New constraint
10700         that returns VSX_REGS if TImode is allowed in VSX registers.
10702         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10703         constant under VSX.
10705         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10706         similar to TImode, but it is restricted to being in the GPRs.
10708         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10709         TImode to occupy a single VSX register.
10711         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10712         -mvsx-timode for power7/power8.
10713         (power7 cpu): Likewise.
10714         (power8 cpu): Likewise.
10716         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10717         sure that TFmode/TDmode take up two registers if they are ever
10718         allowed in the upper VSX registers.
10719         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10720         registers.
10721         (rs6000_init_hard_regno_mode_ok): Likewise.
10722         (rs6000_debug_reg_global): Add debugging for PTImode and wt
10723         constraint.  Print if LRA is turned on.
10724         (rs6000_option_override_internal): Give an error if -mvsx-timode
10725         and VSX is not enabled.
10726         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
10727         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10728         to reg+offset addressing.  Use PTImode when checking offset
10729         addresses for validity.
10730         (reg_offset_addressing_ok_p): Likewise.
10731         (rs6000_legitimate_offset_address_p): Likewise.
10732         (rs6000_legitimize_address): Likewise.
10733         (rs6000_legitimize_reload_address): Likewise.
10734         (rs6000_legitimate_address_p): Likewise.
10735         (rs6000_eliminate_indexed_memrefs): Likewise.
10736         (rs6000_emit_move): Likewise.
10737         (rs6000_secondary_reload): Likewise.
10738         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
10739         reloads to fpr registers to continue to use reg+offset addressing,
10740         but 64-bit reloads to altivec registers need reg+reg addressing.
10741         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10742         it.  Treat LO_SUM like a PLUS operation.
10743         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
10744         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
10745         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10746         registers to share a register with a smaller sized type, since VSX
10747         puts scalars in the upper 64-bits.
10748         (print_operand): Add support for PTImode.
10749         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10750         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10751         registers, but don't have arithmetic support.
10752         (rs6000_memory_move_cost): Add test for VSX.
10753         (rs6000_opt_masks): Add -mvsx-timode.
10755         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10756         for TImode.
10757         (VSs): Likewise.
10758         (VSr): Use wt constraint for TImode.
10759         (VSv): Drop TImode support.
10760         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10761         (vsx_movti_64bit): Likewise.
10762         (vsx_movti_32bit): Likewise.
10763         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10764         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10765         one '?' on the appropriate output constraint.  Do not allow TImode
10766         logical operations on 32-bit systems.
10767         (vsx_ior<mode>3): Likewise.
10768         (vsx_xor<mode>3): Likewise.
10769         (vsx_one_cmpl<mode>2): Likewise.
10770         (vsx_nor<mode>3): Likewise.
10771         (vsx_andc<mode>3): Likewise.
10772         (vsx_concat_<mode>): Likewise.
10773         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10775         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10776         OPTION_MASK_VSX_TIMODE.
10777         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10778         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10780         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10781         (TI2 iterator): New iterator for TImode, PTImode.
10782         (wd mode attribute): Add values for vector types.
10783         (movti_string): Replace TI move operations with operations for TImode
10784         and PTImode.  Add support for TImode being allowed in VSX registers.
10785         (mov<mode>_string, TImode/PTImode): Likewise.
10786         (movti_ppc64): Likewise.
10787         (mov<mode>_ppc64, TImode/PTImode): Likewise.
10788         (TI mode splitters): Likewise.
10790         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10791         constraint.
10793 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
10795         PR tree-optimization/56355
10796         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10797         Also handle integers with undefined overflow.
10799 2013-03-20  Catherine Moore  <clm@codesourcery.com>
10800             Maciej W. Rozycki  <macro@codesourcery.com>
10801             Tom de Vries  <tom@codesourcery.com>
10802             Nathan Sidwell <nathan@codesourcery.com>
10803             Iain Sandoe  <iain@codesourcery.com>
10804             Nathan Froyd  <froydnj@codesourcery.com>
10805             Chao-ying Fu <fu@mips.com>
10807         * doc/extend.texi: (micromips, nomicromips, nocompression):
10808         Document new function attributes.
10809         * doc/invoke.texi (minterlink-compressed, mmicromips,
10810         m14k, m14ke, m14kec): Document new options.
10811         (minterlink-mips16): Update documentation.
10812         * doc/md.texi (ZC, ZD): Document new constraints.
10813         * configure.ac (gcc_cv_as_micromips): Check if linker
10814         supports the .set micromips directive.
10815         * configure: Regenerate.
10816         * config.in: Regenerate.
10817         * config/mips/mips-tables.opt: Regenerate.
10818         * config/mips/micromips.md: New file.
10819         * constraints.md (ZC, ZD): New constraints.
10820         * config/mips/predicates.md (movep_src_register): New predicate.
10821         (movep_src_operand): New predicate.
10822         (non_volatile_mem_operand): New predicate.
10823         * config/mips/mips.md (multimem): New type.
10824         (length): Differentiate between 17-bit and 18-bit branch offsets.
10825         (MOVEP1, MOVEP2): New mode iterator.
10826         (mov_<load>l): Use ZC constraint.
10827         (mov_<load>r): Likewise.
10828         (mov_<store>l): Likewise.
10829         (mov_<store>r): Likewise.
10830         (*branch_equality<mode>_inverted): Add microMIPS support.
10831         (*branch_equality<mode>): Likewise.
10832         (*jump_absolute): Likewise.
10833         (indirect_jump_<mode>): Likewise.
10834         (tablejump_<mode>): Likewise.
10835         (<optab>_internal): Likewise.
10836         (sibcall_internal): Likewise.
10837         (sibcall_value_internal): Likewise.
10838         (prefetch): Use constraint ZD.
10839         * config/mips/mips.opt (minterlink-compressed): New option.
10840         (minterlink-mips16): Now an alias for minterlink-compressed.
10841         (mmicromips): New option.
10842         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10843         (compare_and_swap_12): Likewise.
10844         (sync_add<mode>): Likewise.
10845         (sync_<optab>_12): Likewise.
10846         (sync_old_<optab>_12): Likewise.
10847         (sync_new_<optab>_12): Likewise.
10848         (sync_nand_12): Likewise.
10849         (sync_old_nand_12): Likewise.
10850         (sync_new_nand_12): Likewise.
10851         (sync_sub<mode>): Likewise.
10852         (sync_old_add<mode>): Likewise.
10853         (sync_old_sub<mode>): Likewise.
10854         (sync_new_add<mode>): Likewise.
10855         (sync_new_sub<mode>): Likewise.
10856         (sync_<optab><mode>): Likewise.
10857         (sync_old_<optab><mode>): Likewise.
10858         (sync_new_<optab><mode>): Likewise.
10859         (sync_nand<mode>): Likewise.
10860         (sync_old_nand<mode>): Likewise.
10861         (sync_new_nand<mode>): Likewise.
10862         (sync_lock_test_and_set<mode>): Likewise.
10863         (test_and_set_12): Likewise.
10864         (atomic_compare_and_swap<mode>): Likewise.
10865         (atomic_exchange<mode>_llsc): Likewise.
10866         (atomic_fetch_add<mode>_llsc): Likewise.
10867         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10868         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10869         (umips_save_restore_pattern_p): Likewise.
10870         (umips_load_store_pair_p): Likewise.
10871         (umips_output_load_store_pair): Likewise.
10872         (umips_movep_target_p): Likewise.
10873         (umips_12bit_offset_address_p): Likewise.
10874         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10875         (mips_base_mips16): Rename this...
10876         (mips_base_compression_flags): ...to this. Update all uses.
10877         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10878         (mips_mips16_decl_p): Delete.
10879         (mips_nomips16_decl_p): Delete.
10880         (mips_get_compress_on_flags): New function.
10881         (mips_get_compress_off_flags): New function.
10882         (mips_get_compress_mode): New function.
10883         (mips_get_compress_on_name): New function.
10884         (mips_get_compress_off_name): New function.
10885         (mips_insert_attributes): Support multiple compression types.
10886         (mips_merge_decl_attributes): Likewise.
10887         (umips_12bit_offset_address_p): New function.
10888         (mips_start_function_definition): Emit .set micromips directive.
10889         (mips_call_may_need_jalx_p): New function.
10890         (mips_function_ok_for_sibcall): Add microMIPS support.
10891         (mips_print_operand_punctuation): Support short delay slots and
10892         compact jumps.
10893         (umips_swm_mask, umips_swm_encoding): New.
10894         (umips_build_save_restore): New function.
10895         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10896         (was_mips16_p): Remove.
10897         (old_compression_mode): New.
10898         (mips_set_compression_mode): New function.
10899         (mips_set_current_function): Add microMIPS support.
10900         (mips_option_override): Likewise.
10901         (umips_save_restore_pattern_p): New function.
10902         (umips_output_save_restore): New function.
10903         (umips_load_store_pair_p_1): New function.
10904         (umips_load_store_pair_p): New function.
10905         (umips_output_load_store_pair_1): New function.
10906         (umips_output_load_store_pair): New function.
10907         (umips_movep_target_p) New function.
10908         (mips_prepare_pch_save): Add microMIPS support.
10909         * config/mips/mips.h (TARGET_COMPRESSION): New.
10910         (TARGET_CPU_CPP_BUILTINS): Update macro
10911         to use new compression flags and to support microMIPS.
10912         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10913         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10914         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10915         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10916         (ASM_SPEC): Support mmicromips and mno-micromips.
10917         (M16STORE_REG_P): New macro.
10918         (MIPS_CALL): Support TARGET_MICROMIPS.
10919         (MICROMIPS_J): New macro.
10920         (mips_base_mips16): Rename this...
10921         (mips_base_compression_flags): ...to this.
10922         (UMIPS_12BIT_OFFSET_P): New macro.
10923         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10924         (MULTILIB_DIRNAMES): Likewise.
10925 2013-03-20  Richard Biener  <rguenther@suse.de>
10927         PR tree-optimization/56661
10928         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10929         the result does not have to be distinct.
10931 2013-03-20  Richard Biener  <rguenther@suse.de>
10933         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10934         remap_gimple_op_r.
10936 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10937             Steven Bosscher <steven@gcc.gnu.org>
10939         PR rtl-optimization/56605
10940         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10942 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10944         PR bootstrap/56656
10945         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10946         that require movd instead of movq.
10948 2013-03-20  Richard Biener  <rguenther@suse.de>
10950         * tree-ssa-structalias.c (struct variable_info): Add pointer
10951         to the first field of an aggregate with sub-vars.  Make
10952         this and the pointer to the next subfield its ID.
10953         (vi_next): New function.
10954         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10955         storedanything_id, integer_id): Increment by one.
10956         (new_var_info, get_call_vi, lookup_call_clobber_vi,
10957         get_call_clobber_vi): Adjust.
10958         (solution_set_expand): Simplify and speedup.
10959         (solution_set_add): Inline into ...
10960         (set_union_with_increment): ... this.  Adjust accordingly.
10961         (do_sd_constraint): Likewise.
10962         (do_ds_constraint): Likewise.
10963         (do_complex_constraint): Simplify.
10964         (build_pred_graph): Adjust.
10965         (solve_graph): Likewise.  Simplify and speedup.
10966         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10967         get_constraint_for_component_ref, get_constraint_for_1,
10968         first_vi_for_offset, first_or_preceding_vi_for_offset,
10969         create_function_info_for, create_variable_info_for_1,
10970         create_variable_info_for, intra_create_variable_infos): Adjust.
10971         (init_base_vars): Push NULL for ID zero.
10972         (compute_points_to_sets): Adjust.
10974 2013-03-20  Richard Biener  <rguenther@suse.de>
10976         * cfgloop.c (verify_loop_structure): Streamline and avoid
10977         ICEing on corrupt loop tree.
10978         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10979         loop tree.
10981 2013-03-20  Richard Biener  <rguenther@suse.de>
10983         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10984         check whether an SSA update is needed.
10986 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
10988         * config/mips/constraints.md (T): Rename to...
10989         (Yf): ...this.
10990         (U): Rename to...
10991         (Yd): ...this.
10992         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10993         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10995 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10997         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10998         (*subsi3_carryin_uxtw): Likewise.
11000 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
11002         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11003         (*rorsi3_insn_uxtw): Likewise.
11005 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
11007         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11008         (*extrsi5_insn_uxtw): Likewise.
11010 2013-03-19  Richard Biener  <rguenther@suse.de>
11012         PR tree-optimization/56273
11013         * passes.c (init_optimization_passes): Move second VRP after DOM.
11015 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
11017         * config/i386/i386.md (*movti_internal): Merge from
11018         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
11019         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
11020         nox64 isa attributes.
11022 2013-03-18  Richard Biener  <rguenther@suse.de>
11024         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11025         (unite): Likewise.
11026         (merge_node_constraints): Likewise.
11027         (build_succ_graph): Likewise.
11028         (valid_graph_edge): Inline into single caller.
11029         (unify_nodes): Likewise.  Use bitmap_set_bit return value
11030         and cache varinfo.
11031         (scc_visit): Fix formatting and variable use.
11032         (do_sd_constraint): Use gcc_checking_assert.
11033         (do_ds_constraint): Likewise.
11034         (do_complex_constraint): Likewise.
11035         (condense_visit): Likewise.  Cleanup.
11036         (dump_pred_graph): New function.
11037         (perform_var_substitution): Dump the pred-graph before
11038         variable substitution.
11039         (find_equivalent_node): Use gcc_checking_assert.
11040         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11042 2013-03-18  Richard Biener  <rguenther@suse.de>
11044         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11045         Remove cond_expr_stmt_list argument and do not gimplify the
11046         built expression.
11047         (vect_loop_versioning): Adjust.
11048         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11049         Cleanup to use less temporaries.
11050         (vect_create_data_ref_ptr): Cleanup.
11052 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
11054         PR tree-optimization/56635
11055         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11056         require types_compatible_p types.
11058 2013-03-18  Nick Clifton  <nickc@redhat.com>
11060         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11061         spurious backslash.
11063         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11064         Add missing line to comment describing function.
11066 2013-03-18  Richard Biener  <rguenther@suse.de>
11068         PR tree-optimization/56210
11069         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11070         Handle string / character search functions.
11071         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11073 2013-03-18  Richard Biener  <rguenther@suse.de>
11075         PR middle-end/56483
11076         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11077         and implement properly.
11078         * gimple.h (gimple_cond_single_var_p): Remove.
11080 2013-03-18  Richard Biener  <rguenther@suse.de>
11082         * tree-data-ref.h (find_data_references_in_loop): Declare.
11083         * tree-data-ref.c (get_references_in_stmt): Use a stack
11084         vector pre-allocated in the callers.
11085         (find_data_references_in_stmt): Adjust.
11086         (graphite_find_data_references_in_stmt): Likewise.
11087         (create_rdg_vertices): Likewise.
11088         (find_data_references_in_loop): Export.
11089         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11090         Compute dependences here...
11091         (vect_analyze_data_refs): ...not here.  When we encounter
11092         a non-vectorizable data reference in basic-block vectorization
11093         truncate the data reference vector.  Do not bother to
11094         fixup data-dependence information for gather loads.
11095         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11096         of data references, as reported.
11098 2013-03-18  Richard Biener  <rguenther@suse.de>
11100         PR tree-optimization/3713
11101         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
11102         has_constants and expr.
11103         (stmt_has_constants): Properly valueize SSA names when deciding
11104         whether the stmt has constants.
11106 2013-03-18  Richard Biener  <rguenther@suse.de>
11108         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11109         whole function when there is nothing to do.
11110         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11111         * tree-vectorizer.c (vectorize_loops): Update virtual and
11112         loop-closed SSA once.
11113         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11115 2013-03-18  Richard Biener  <rguenther@suse.de>
11117         PR middle-end/56113
11118         * domwalk.c (bb_postorder): New global static.
11119         (cmp_bb_postorder): New function.
11120         (walk_dominator_tree): Replace scheme imposing an order for
11121         visiting dominator sons by one sorting them at the time they
11122         are pushed on the stack.
11124 2013-03-18  Richard Biener  <rguenther@suse.de>
11126         PR tree-optimization/39326
11127         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11128         (struct mem_ref): Replace mem member with ao_ref typed member.
11129         (MEM_ANALYZABLE): Adjust.
11130         (memref_eq): Likewise.
11131         (mem_ref_alloc): Likewise.
11132         (gather_mem_refs_stmt): Likewise.
11133         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11134         (execute_sm_if_changed_flag_set): Adjust.
11135         (execute_sm): Likewise.
11136         (ref_always_accessed_p): Likewise.
11137         (refs_independent_p): Likewise.
11138         (can_sm_ref_p): Likewise.
11140 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
11142         PR c/56566
11143         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11144         return 1 even for !unsignedp.
11146 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
11148         * config/i386/i386.md (isa): Add x64 and nox64.
11149         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11150         (*pushtf): Enable *roF alternative for x64 isa only.
11151         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
11152         mode attribute of integer alternatives to DImode for TARGET_64BIT.
11153         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
11154         (*movtf_internal): Merge from *movtf_internal_rex64 and
11155         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
11156         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
11157         nox64 isa attributes.
11158         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
11159         nox64 isa attributes.
11160         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11162 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
11164         * config/alpha/alpha.c (TARGET_LRA_P): New define.
11166 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
11168         PR target/56640
11169         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11170         class names.  Remove trailing comma after "ALL_REGS".
11172 2013-03-16  Jan Hubicka  <jh@suse.cz>
11174         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11175         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11176         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11177         of cgraph_get_create_node.
11178         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11180 2013-03-16  Jason Merrill  <jason@redhat.com>
11182         PR debug/49090
11183         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11184         with DW_AT_default_value.
11186 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
11188         * BASE-VER: Set to 4.9.0.
11190 2013-03-14  Andi Kleen  <ak@linux.intel.com>
11192         PR target/56619
11193         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11194         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11195         Document _x* TSX intrinsics.
11197 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
11198             David Holsgrove  <david.holsgrove@xilinx.com>
11200         * configure.ac: Add MicroBlaze TLS support detection.
11201         * configure: Regenerate.
11202         * config/microblaze/microblaze-protos.h
11203         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11204         symbol_mentioned_p, label_mentioned_p): Add prototypes.
11205         * config/microblaze/microblaze.c (microblaze_address_type): Add
11206         ADDRESS_TLS and tls_reloc address types.
11207         (microblaze_address_info): Add tls_reloc.
11208         (TARGET_HAVE_TLS): Define.
11209         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11210          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11211          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11212         load_tls_operand,  microblaze_call_tls_get_addr,
11213         microblaze_legitimize_tls_address): New functions.
11214         (microblaze_classify_unspec): Handle UNSPEC_TLS.
11215         (get_base_reg): Use microblaze_tls_symbol_p.
11216         (microblaze_classify_address): Handle TLS.
11217         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11218         label_mentioned_p and microblaze_tls_referenced_p.
11219         (microblaze_legitimize_address): Handle TLS.
11220         (microblaze_address_insns): Handle ADDRESS_TLS.
11221         (pic_address_needs_scratch): Handle TLS.
11222         (print_operand_address): Handle TLS.
11223         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11224         (microblaze_expand_move): Handle TLS.
11225         (microblaze_legitimate_constant_p): Check
11226         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11227         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11228         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11229         (PIC_OFFSET_TABLE_REGNUM): Set.
11230         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11231         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11232         (addsi3, movsi_internal2, movdf_internal): Update constraints
11233         * config/microblaze/predicates.md (arith_plus_operand): Define
11234         (move_operand): Redefine as move_src_operand,
11235         check microblaze_tls_referenced_p.
11237 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
11239         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11240         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11242 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
11244         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11245         CC mode for AND.
11247 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
11249         PR tree-optimization/53265
11250         * common.opt (Waggressive-loop-optimizations): New option.
11251         * tree-ssa-loop-niter.c: Include tree-pass.h.
11252         (do_warn_aggressive_loop_optimizations): New function.
11253         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
11254         if number_of_latch_executions returned constant.
11255         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11256         early.  If number_of_latch_executions returned constant, set
11257         nb_iterations_upper_bound back to it.
11258         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11259         field.
11260         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11261         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11263         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11264         (MULTILIB_OSDIRNAMES): Set.
11265         * genmultilib: If defaultosdirname doesn't start with :: , set
11266         defaultosdirname2 instead, clear it and emit two . multilib_raw
11267         entries instead of just one.
11269 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
11271         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11272         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11273         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11274         (SUBTARGET_OVERRIDE_OPTIONS): New.
11276 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
11278         PR target/49880
11279         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11280         (musermode): Convert to Var(TARGET_USERMODE).
11281         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11282         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11283         * config/sh/sh.c (sh_option_override): Use
11284         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11285         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11286         condition.
11287         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11288         TARGET_SH4.
11289         (udivsi3_i4_single, divsi3_i4_single): Use
11290         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11292 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
11294         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11295         default setting.
11297 2013-03-13  Richard Biener  <rguenther@suse.de>
11299         PR tree-optimization/56608
11300         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11301         calls when vectorizing basic-blocks.
11303 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
11305         PR plugins/45078
11306         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11307         tm_file.
11309 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
11311         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11313 2013-03-11  Jan Hubicka  <jh@suse.cz>
11315         PR lto/56557
11316         * lto-streamer-out.c (output_symbol_p): Skip references from
11317         constructors of external variables.
11319 2013-03-11  Jan Hubicka  <jh@suse.cz>
11321         PR middle-end/56571
11322         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11323         from pseudos.
11324         * emit-rtl.c (verify_rtx_sharing): Likewise.
11325         (copy_insn_1): Likewise.
11326         * rtl.c (copy_rtx): Likewise.
11328 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
11330         PR target/56591
11331         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11332         output_operand_lossage message.
11334 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
11336         PR target/56470
11337         * arm.c (shift_op): Validate RTL pattern on the fly.
11338         (arm_print_operand, case 'S'): Don't use shift_operator to validate
11339         the RTL.
11341 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11343         PR target/56347
11344         * config/pa/pa.md (call_value): Check for calls to powf and direct to
11345         new call patterns that clobber %fr12.
11346         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11347         split and postreload patterns.
11348         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11349         registers %fr12 and %fr12R as call used.
11351 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
11353         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11354         (canon_address, record_store, replace_read, check_mem_read_rtx,
11355         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11356         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11357         rest_of_handle_dse): Likewise.
11359 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
11361         PR middle-end/56524
11362         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11363         Add base_optabs.
11364         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11365         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11366         (save_optabs_if_changed): Replace with...
11367         (init_tree_optimization_optabs): ...this.
11368         * optabs.c (save_optabs_if_changed): Rename to...
11369         (init_tree_optimization_optabs): ...this.  Take the optimization node
11370         as argument.  Do nothing if the base optabs are already correct.
11371         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11372         to recompute optabs.
11373         * function.h (function): Remove optabs field.
11374         * function.c (invoke_set_current_function_hook): Call
11375         init_tree_optimization_optabs.  Use the result to initialize
11376         this_fn_optabs.
11378 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
11380         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11381         if GTMA_HAS_NO_INSTRUMENTATION.
11382         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11383         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11384         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11385         * gimple-pretty-print.c (dump_gimple_transaction): Handle
11386         GTMA_HAS_NO_INSTRUMENTATION.
11388 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
11390         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11391         libasan_preinit.o.
11393 2013-03-08  Marek Polacek  <polacek@redhat.com>
11394             Jakub Jelinek  <jakub@redhat.com>
11396         PR tree-optimization/56478
11397         * predict.c (is_comparison_with_loop_invariant_p): Change the
11398         type of loop_step to tree.
11399         (predict_loops): Adjust.
11400         (predict_iv_comparison): Perform the computations on double_ints.
11402 2013-03-08  Richard Biener  <rguenther@suse.de>
11404         PR tree-optimization/56570
11405         * tree-cfg.c (verify_expr_location_1): Verify locations for
11406         DECL_DEBUG_EXPR.
11407         * tree-sra.c (create_access_replacement): Strip locations
11408         from DECL_DEBUG_EXPRs.
11410 2013-03-08  Richard Biener  <rguenther@suse.de>
11412         * tree-inline.c (expand_call_inline): Do not associate
11413         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11414         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11416 2013-03-08  Richard Biener  <rguenther@suse.de>
11418         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11419         or block changes with -Og.  Fix for location / block encoding
11420         changes and PHI arguments with locations.
11422 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
11424         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11425         for all counters.
11426         (struct output_info): Likewise.
11427         (register_overhead): Remove bad gcc_assert.
11428         (bitmap_find_bit): If there is only a single bitmap element, do not
11429         count a miss as a search.
11430         (print_statistics): Update for counter type changes.
11431         (dump_bitmap_statistics): Likewise.  Print headers such that they
11432         are properly lined up with the printed counters.
11434 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
11436         PR tree-optimization/56559
11437         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11438         check that it has only a single use.
11440 2013-03-07  Richard Biener  <rguenther@suse.de>
11442         * doc/invoke.texi (fwhole-program): Discourage use in combination
11443         with -flto.
11445 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
11447         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11449         PR tree-optimization/56539
11450         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11451         instead of GSI_CONTINUE_LINKING as last argument to
11452         force_gimple_operand_gsi.  Adjust function comment.
11454         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11455         aarch64-cores.def.
11457         PR middle-end/56548
11458         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11459         promoted mode, convert the result back to the original mode.
11461 2013-03-06  Richard Biener  <rguenther@suse.de>
11463         PR middle-end/56294
11464         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11465         (insert_updated_phi_nodes_compare_uids): New function.
11466         (update_ssa): Sort symbols_to_rename after UID before
11467         traversing it to insert PHI nodes.
11469 2013-03-06  Richard Biener  <rguenther@suse.de>
11471         PR middle-end/50494
11472         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11473         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11475         Revert
11476         2013-02-13  Richard Biener  <rguenther@suse.de>
11478         PR lto/50494
11479         * varasm.c (output_constant_def_1): Get the decl representing
11480         the constant as argument.
11481         (output_constant_def): Wrap output_constant_def_1.
11482         (make_decl_rtl): Use output_constant_def_1 with the decl
11483         representing the constant.
11484         (build_constant_desc): Optionally re-use a decl already
11485         representing the constant.
11486         (tree_output_constant_def): Adjust.
11488 2013-03-06  Joey Ye  <joey.ye@arm.com>
11490         PR lto/50293
11491         * gcc.c (convert_white_space): New function.
11492         (main): Handles white space in function name.
11494 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
11496         PR target/56529
11497         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11498         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
11499         to SH_DIV_CALL_TABLE for TARGET_SH2.
11500         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11501         list.
11502         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11503         call-table options.
11505 2013-03-05  Sterling Augustine  <saugustine@google.com>
11506             Cary Coutant  <ccoutant@google.com>
11508         PR debug/55364
11509         * dwarf2out.c (resolve_addr): Don't call
11510         remove_loc_list_addr_table_entries a second time for the same
11511         expression.
11513 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11515         PR debug/56510
11516         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11517         (avoid_complex_debug_insns): New function.
11518         (expand_debug_locations): Call it.
11520         PR rtl-optimization/56484
11521         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11522         lifetimes of hard registers on small register class machines.
11524 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
11526         * config/microblaze/microblaze-protos.h: Rename
11527         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11528         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11529         fast_interrupt.
11530         (microblaze_fast_interrupt_function_p): New function.
11531         (microblaze_is_interrupt_handler): Rename to
11532         microblaze_is_interrupt_variant and add fast_interrupt check.
11533         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11534         (save_restore_insns): Likewise.
11535         (compute_frame_size): Likewise.
11536         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11537         (microblaze_globalize_label): Likewise.
11538         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11539         * config/microblaze/microblaze.md: Use wrapper
11540         microblaze_is_interrupt_variant.
11542 2013-03-05  Kai Tietz  <ktietz@redhat.com>
11544         * sdbout.c (sdbout_one_type): Switch to current function's section
11545         supporting cold/hot.
11547 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
11549         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11550         -mxl-reorder.
11552 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11554         PR middle-end/56461
11555         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11556         if VALGRIND_GET_VBITS is defined, temporarily make object
11557         memory all defined, and restore previous valgrind addressability
11558         and definability afterwards.  Free this_object at the end.
11560         PR middle-end/56461
11561         * lra.c (lra): Call lra_clear_live_ranges if live_p,
11562         right before calling lra_create_live_ranges, also call it
11563         when clearing live_p.  Only call lra_clear_live_ranges
11564         at the end if live_p.
11566         PR middle-end/56461
11567         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11569 2013-03-05  Richard Biener  <rguenther@suse.de>
11571         PR tree-optimization/56521
11572         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11573         value-id.
11575 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
11577         PR c++/55135
11578         * except.h (remove_unreachable_eh_regions): New prototype.
11579         * except.c (remove_eh_handler_splicer): New function, split out
11580         of remove_eh_handler.
11581         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
11582         warning about running it on many EH regions one at a time.
11583         (remove_unreachable_eh_regions_worker): New function, walk the
11584         EH tree in depth-first order and remove non-marked regions.
11585         (remove_unreachable_eh_regions): New function.
11586         * tree-eh.c (mark_reachable_handlers): New function, split out
11587         from remove_unreachable_handlers.
11588         (remove_unreachable_handlers): Use mark_reachable_handlers and
11589         remove_unreachable_eh_regions.
11590         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11591         and remove_unreachable_eh_regions.
11593 2013-03-05  Richard Biener  <rguenther@suse.de>
11595         PR middle-end/56525
11596         * loop-init.c (fix_loop_structure): Remove loops in two stages,
11597         not freeing them until the end.
11599 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11601         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11603 2013-03-05  Richard Biener  <rguenther@suse.de>
11605         PR tree-optimization/56270
11606         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11607         of loads after scheduling an SLP instance.
11609 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11611         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11612         tic6x.exp.
11613         (check_gcc_parallelize): Run guality.exp as a separate job from
11614         vect.exp with unsorted.exp and $(dg_target_exps) separately from
11615         struct-layout-1.exp with stackalign.exp.
11617         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11619         PR middle-end/56461
11620         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11621         load_index sbitmap even if some bit in it isn't set.
11623         PR middle-end/56461
11624         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11625         (discover_iteration_bound_by_body_walk): Change queues to
11626         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
11627         spelling in comment.  Call safe_push on queues[bound_index] directly.
11628         Release queues[queue_index] in every iteration unconditionally.
11629         Release bounds vector.
11631         PR middle-end/56461
11632         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11633         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11634         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11635         inner_phis vector.
11637 2013-03-05  Richard Biener  <rguenther@suse.de>
11639         PR lto/56515
11640         * tree-inline.c (remap_blocks_to_null): New function.
11641         (expand_call_inline): When expanding a call stmt without
11642         an associated block inline remap all callee blocks to NULL.
11644 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11646         PR rtl-optimization/56494
11647         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11648         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11649         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11651         PR middle-end/56461
11652         * sel-sched-ir.c (free_sched_pools): Release
11653         succs_info_pool.stack[succs_info_pool.max_top] vectors too
11654         if succs_info_pool.max_top isn't -1.
11656         PR bootstrap/56509
11657         * opts.c (opts_obstack, opts_concat): Moved to...
11658         * opts-common.c (opts_obstack, opts_concat): ... here.
11660 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
11662         PR middle-end/56461
11663         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11665 2013-03-04  Martin Jambor  <mjambor@suse.cz>
11667         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11668         all appropriate places.
11670 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11672         PR tree-optimization/56424
11673         * ipa-split.c (split_function): Do not set the RSO flag if result is
11674         not by reference and its type is a register type.
11676 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
11678         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
11679         (microblaze_legitimate_pic_operand): Likewise
11680         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
11681         new function microblaze_legitimate_pic_operand
11682         * config/microblaze/microblaze-protos.h
11683         (microblaze_legitimate_pic_operand): Declare.
11685 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11687         * config/microblaze/predicates.md (call_insn_simple_operand):
11688         New predicate for supported rtx code types.
11689         * config/microblaze/microblaze.md (call_internal1): Use
11690         call_insn_simple_operand predicate.
11692 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
11694         PR middle-end/56461
11695         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11696         partitions.ordered_remove.
11698         PR middle-end/56461
11699         * tree-vect-stmts.c (vectorizable_conversion): Don't call
11700         vec_oprnds0.create (1) for modifier == NONE.
11702         PR middle-end/56461
11703         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11704         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11705         vec_oprnds1 right before pushing anything to it for
11706         scalar_shift_arg.
11708         PR middle-end/56461
11709         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11710         set nbbs to 0 instead of having separate code path.
11711         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11712         instead of false as last argument if returning NULL.
11714 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
11716         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11717         the attribute is now called "target" instead of "option".
11718         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11719         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
11720         attribute/pragma name for TARGET_OPTION_VALID_P and
11721         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
11722         * doc/tm.texi: Regenerated.
11724 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
11726         * config/microblaze/microblaze.c:
11727         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
11728         * config/microblaze/microblaze.h: Add -mxl-reorder to
11729         DRIVER_SELF_SPECS.
11730         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11731         instructions emitted if TARGET_REORDER.
11732         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11733         or 0 for -m/-mno case, but initialises as 2 to detect default use case
11734         separately.
11736 2013-03-01  Xinliang David Li  <davidxl@google.com>
11738         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11739         walk length.
11741 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
11743         PR middle-end/56461
11744         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11745         vector even when returning true.  Fix up function comment formatting.
11747         PR middle-end/56461
11748         * ira-build.c (ira_loop_nodes_count): New variable.
11749         (create_loop_tree_nodes): Initialize it.
11750         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11752         PR middle-end/56461
11753         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11754         method on dr_chain and result_chain.
11755         * tree-vect-stmts.c (vectorizable_store): Only call
11756         result_chain.create if j == 0.
11758         PR middle-end/56461
11759         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11760         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11761         before overwriting it.
11763 2013-03-01  Tobias Burnus  <burnus@net-b.de>
11765         * doc/extended.texi (C Extensions): Change order in @menu
11766         to match @node.
11767         (Other MIPS Built-in Functions): Move last MIPS entry before
11768         "picoChip Built-in Functions".
11769         (SH Built-in Functions): Move after RX Built-in Functions.
11770         * doc/gcc.texi (Introduction): Change order in @menu
11771         to match @node.
11772         * doc/md.texi (Constraints): Ditto.
11773         * gty.texi (Type Information): Ditto.
11774         (User-provided marking routines for template types): Make
11775         subsection.
11776         * doc/invoke.texi (AArch64 Options): Move before
11777         "Adapteva Epiphany Options".
11779 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
11780             Jakub Jelinek  <jakub@redhat.com>
11782         PR sanitizer/56454
11783         * asan.c (gate_asan): Lookup no_sanitize_address instead of
11784         no_address_safety_analysis attribute.
11785         * doc/extend.texi (no_address_safety_attribute): Rename to
11786         no_sanitize_address attribute, mention no_address_safety_analysis
11787         attribute as deprecated alias.
11789 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
11791         PR middle-end/56461
11792         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11793         type to vec<vec<tree> > *.
11794         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
11795         to be vec<tree> instead of vec<tree> *, set vec_defs
11796         to vNULL and call vec_defs.create (number_of_vects), adjust other
11797         uses of vec_defs.
11798         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11799         vectorizable_condition): Adjust vect_get_slp_defs callers.
11801 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11803         * config/aarch64/aarch64.c
11804         (aarch64_float_const_representable): Remove unused variable.
11806 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11808         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11810 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11812         * config/aarch64/aarch64-builtins.c
11813         (aarch64_init_simd_builtins): Make static.
11815 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11817         * config/aarch64/aarch64.c
11818         (aarch64_simd_make_constant): Make static.
11820 2013-02-28  Martin Jambor  <mjambor@suse.cz>
11822         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
11823         with no initialization to the RHS of debug statements.
11825 2013-02-28  Martin Jambor  <mjambor@suse.cz>
11827         PR tree-optimization/56294
11828         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
11829         Adjust dumping.
11830         (get_access_replacement): Do not call create_access_replacement.
11831         Assert a replacement exists.
11832         (get_repl_default_def_ssa_name): Create the replacement declaration
11833         itself.
11835 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11837         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
11838         final_end_function.
11840 2013-02-28  Marek Polacek  <polacek@redhat.com>
11842         PR rtl-optimization/56466
11843         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
11844         if we're changing a loop.
11845         (peel_loops_completely): Likewise.
11847 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
11849         PR c++/55813
11850         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
11852 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
11854         PR target/56445
11855         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
11856         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
11857         INTX_FTYPE_FX, FX_FTYPE_INTX.
11858         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
11860 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
11862         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
11863         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
11864         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
11865         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
11866         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
11867         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
11868         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
11869         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
11870         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
11871         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
11872         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
11873         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
11874         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
11875         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
11876         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
11877         (avrxmega6): Increase max flash segments from 5 to 6.
11878         * config/avr/t-multilib: Regenerate.
11879         * config/avr/avr-tables.opt: Regenerate.
11880         * doc/avr-mmcu.texi: Regenerate.
11882 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
11884         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
11885         (avr_device_to_arch): Rename to avr_device_to_ld.
11886         (avr_device_to_as): New prototype.
11887         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
11888         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
11889         * config/avr/driver-avr.c (avr_device_to_as): New.
11890         (avr_device_to_arch): Rename to avr_device_to_ld.
11892 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11894         PR middle-end/56461
11895         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
11896         method on dr_chain and result_chain.
11898         PR middle-end/56461
11899         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
11900         pointer_set_destroy on not_executed_last_iteration.
11902         PR middle-end/56461
11903         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
11905         PR middle-end/56461
11906         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
11907         FOR_EACH_DEFINED_FUNCTION when freeing state.
11909         PR middle-end/56461
11910         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11911         pool_free.
11912         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11913         overwriting it.
11915         PR middle-end/56461
11916         * ipa-cp.c (decide_whether_version_node): Call vec_free on
11917         known_aggs[i].items and release known_aggs vector.
11919         PR middle-end/56461
11920         * ipa-reference.c (propagate): Free node_info even for alias nodes.
11922 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11924         * config/microblaze/microblaze.c (microblaze_emit_compare):
11925         Use xor for EQ/NE comparisions.
11926         * config/microblaze/microblaze.md (cstoresf4): Add constraints
11927         (cbranchsf4): Adjust operator to comparison_operator.
11929 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11931         PR middle-end/56461
11932         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11933         vector.
11934         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11935         vec_safe_push, always update *slot.
11936         (redirect_edge_var_map_clear): Use vec_free.
11937         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11938         (free_var_map_entry): Use vec_free.
11939         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11940         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11942 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
11944         PR middle-end/45472
11945         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11946         when the may_trap_p bit of the exprs being merged differs.
11947         Reorder tests for speculativeness in the logical and operator.
11949 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11951         * incpath.c (add_standard_paths): Use reconcat instead of concat
11952         where appropriate and avoid leaking memory.
11954         * opts.h: Include obstack.h.
11955         (opts_concat): New prototype.
11956         (opts_obstack): New declaration.
11957         * opts.c (opts_concat): New function.
11958         (opts_obstack): New variable.
11959         (init_options_struct): Call gcc_init_obstack on opts_obstack.
11960         (finish_options): Use opts_concat instead of concat
11961         and XOBNEWVEC instead of XNEWVEC.
11962         * opts-common.c (generate_canonical_option, decode_cmdline_option,
11963         generate_option): Likewise.
11964         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11965         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11967         PR target/56455
11968         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11969         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11971 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
11973         PR middle-end/56461
11974         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11976 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11978         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11979         (arm_block_move_unaligned_straight): Likewise.
11980         (arm_adjust_block_mem): Likewise.
11982 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11984         PR target/48901
11985         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11986         temp, cond and label.
11987         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11989         PR target/52500
11990         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11991         * config/c6x/c6x.h (dbx_register_map): Update declaration.
11993         PR target/52501
11994         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11995         of prologue/epilogue functions.
11997         PR target/52550
11998         * config/tilegx/tilegx.c (tilegx_expand_prologue):
11999         Remove unused variable cfa_offset.
12000         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12002         PR target/54639
12003         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12004         type promotion to unsigned.
12006         PR target/54640
12007         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12008         for HOST_WIDE_INT of 32 bit / same size as int.
12009         (arm_block_move_unaligned_straight): Likewise.
12010         (arm_adjust_block_mem): Likewise.
12012         PR target/54662
12013         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12014         ALL_CFLAGS.
12016 2013-02-26  Marek Polacek  <polacek@redhat.com>
12018         PR tree-optimization/56426
12019         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
12021 2013-02-26  Richard Biener  <rguenther@suse.de>
12023         PR target/56444
12024         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12025         unused variable loops.
12027 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
12029         PR tree-optimization/56448
12030         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12031         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12032         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12033         later operands of the references, or even first operand for
12034         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12036         PR tree-optimization/56443
12037         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12038         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12039         to type_for_mode langhook.
12041 2013-02-25  Matt Turner  <mattst88@gmail.com>
12043         * doc/invoke.texi: Document r4700.
12045 2013-02-25  Richard Biener  <rguenther@suse.de>
12047         PR tree-optimization/56175
12048         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12049         split out from ...
12050         (simplify_bitwise_binary): ... here.  Also guard the conversion
12051         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12053 2013-02-25  Catherine Moore  <clm@codesourcery.com>
12055         Revert:
12056         2013-02-24  Catherine Moore  <clm@codesourcery.com>
12057             Maciej W. Rozycki  <macro@codesourcery.com>
12058             Tom de Vries  <tom@codesourcery.com>
12059             Nathan Sidwell  <nathan@codesourcery.com>
12060             Iain Sandoe  <iain@codesourcery.com>
12061             Nathan Froyd  <froydnj@codesourcery.com>
12062             Chao-ying Fu  <fu@mips.com>
12064         * doc/extend.texi: (micromips, nomicromips, nocompression):
12065         Document new function attributes.
12066         * doc/invoke.texi (minterlink-compressed, mmicromips,
12067         m14k, m14ke, m14kec): Document new options.
12068         (minterlink-mips16): Update documentation.
12069         * doc/md.texi (ZC, ZD): Document new constraints.
12070         * configure.ac (gcc_cv_as_micromips): Check if linker
12071         supports the .set micromips directive.
12072         * configure: Regenerate.
12073         * config.in: Regenerate.
12074         * config/mips/mips-tables.opt: Regenerate.
12075         * config/mips/micromips.md: New file.
12076         * constraints.md (ZC, AD): New constraints.
12077         * config/mips/predicates.md (movep_src_register): New predicate.
12078         (movep_src_operand): New predicate.
12079         (non_volatile_mem_operand): New predicate.
12080         * config/mips/mips.md (multimem): New type.
12081         (length): Differentiate between 17-bit and 18-bit branch offsets.
12082         (MOVEP1, MOVEP2): New mode iterator.
12083         (mov_<load>l): Use ZC constraint.
12084         (mov_<load>r): Likewise.
12085         (mov_<store>l): Likewise.
12086         (mov_<store>r): Likewise.
12087         (*branch_equality<mode>_inverted): Add microMIPS support.
12088         (*branch_equality<mode>): Likewise.
12089         (*jump_absolute): Likewise.
12090         (indirect_jump_<mode>): Likewise.
12091         (tablejump_<mode>): Likewise.
12092         (<optab>_internal): Likewise.
12093         (sibcall_internal): Likewise.
12094         (sibcall_value_internal): Likewise.
12095         (prefetch): Use constraint ZD.
12096         * config/mips/mips.opt (minterlink-compressed): New option.
12097         (minterlink-mips16): Now an alias for minterlink-compressed.
12098         (mmicromips): New option.
12099         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12100         (compare_and_swap_12): Likewise.
12101         (sync_add<mode>): Likewise.
12102         (sync_<optab>_12): Likewise.
12103         (sync_old_<optab>_12): Likewise.
12104         (sync_new_<optab>_12): Likewise.
12105         (sync_nand_12): Likewise.
12106         (sync_old_nand_12): Likewise.
12107         (sync_new_nand_12): Likewise.
12108         (sync_sub<mode>): Likewise.
12109         (sync_old_add<mode>): Likewise.
12110         (sync_old_sub<mode>): Likewise.
12111         (sync_new_add<mode>): Likewise.
12112         (sync_new_sub<mode>): Likewise.
12113         (sync_<optab><mode>): Likewise.
12114         (sync_old_<optab><mode>): Likewise.
12115         (sync_new_<optab><mode>): Likewise.
12116         (sync_nand<mode>): Likewise.
12117         (sync_old_nand<mode>): Likewise.
12118         (sync_new_nand<mode>): Likewise.
12119         (sync_lock_test_and_set<mode>): Likewise.
12120         (test_and_set_12): Likewise.
12121         (atomic_compare_and_swap<mode>): Likewise.
12122         (atomic_exchange<mode>_llsc): Likewise.
12123         (atomic_fetch_add<mode>_llsc): Likewise.
12124         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12125         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12126         (umips_save_restore_pattern_p): Likewise.
12127         (umips_load_store_pair_p): Likewise.
12128         (umips_output_load_store_pair): Likewise.
12129         (umips_movep_target_p): Likewise.
12130         (umips_12bit_offset_address_p): Likewise.
12131         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12132         (mips_base_mips16): Rename this...
12133         (mips_base_compression_flags): ...to this. Update all uses.
12134         (mips_attribute_table): Add micromips, nomicromips and nocompression.
12135         (mips_mips16_decl_p): Delete.
12136         (mips_nomips16_decl_p): Delete.
12137         (mips_get_compress_on_flags): New function.
12138         (mips_get_compress_off_flags): New function.
12139         (mips_get_compress_mode): New function.
12140         (mips_get_compress_on_name): New function.
12141         (mips_get_compress_off_name): New function.
12142         (mips_insert_attributes): Support multiple compression types.
12143         (mips_merge_decl_attributes): Likewise.
12144         (umips_12bit_offset_address_p): New function.
12145         (mips_start_function_definition): Emit .set micromips directive.
12146         (mips_call_may_need_jalx_p): New function.
12147         (mips_function_ok_for_sibcall): Add microMIPS support.
12148         (mips_print_operand_punctuation): Support short delay slots and
12149         compact jumps.
12150         (umips_swm_mask, umips_swm_encoding): New.
12151         (umips_build_save_restore): New function.
12152         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12153         (was_mips16_p): Remove.
12154         (old_compression_mode): New.
12155         (mips_set_compression_mode): New function.
12156         (mips_set_current_function): Add microMIPS support.
12157         (mips_option_override): Likewise.
12158         (umips_save_restore_pattern_p): New function.
12159         (umips_output_save_restore): New function.
12160         (umips_load_store_pair_p_1): New function.
12161         (umips_load_store_pair_p): New function.
12162         (umips_output_load_store_pair_1): New function.
12163         (umips_output_load_store_pair): New function.
12164         (umips_movep_target_p) New function.
12165         (mips_prepare_pch_save): Add microMIPS support.
12166         * config/mips/mips.h (TARGET_COMPRESSION): New.
12167         (TARGET_CPU_CPP_BUILTINS): Update macro
12168         to use new compression flags and to support microMIPS.
12169         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12170         (MIPS_ARCH_FLOAT_SPEC): Likewise.
12171         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12172         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12173         (ASM_SPEC): Support mmicromips and mno-micromips.
12174         (M16STORE_REG_P): New macro.
12175         (MIPS_CALL): Support TARGET_MICROMIPS.
12176         (MICROMIPS_J): New macro.
12177         (mips_base_mips16): Rename this...
12178         (mips_base_compression_flags): ...to this.
12179         (UMIPS_12BIT_OFFSET_P): New macro.
12180         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12181         (MULTILIB_DIRNAMES): Likewise.
12183 2013-02-25  Tom de Vries  <tom@codesourcery.com>
12185         PR rtl-optimization/56131
12186         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12187         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12188         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12190 2013-02-25  Tobias Burnus  <burnus@net-b.de>
12192         * doc/invoke.texi (-fsanitize=): Move from optimization
12193         to debugging options.
12195 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
12197         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12199 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
12200             Alexander Monakov  <amonakov@ispras.ru>
12202         PR middle-end/56077
12203         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12204         flush pending lists also on non-jumps.  Adjust comment.
12206 2013-02-24  Catherine Moore  <clm@codesourcery.com>
12207             Maciej W. Rozycki  <macro@codesourcery.com>
12208             Tom de Vries  <tom@codesourcery.com>
12209             Nathan Sidwell  <nathan@codesourcery.com>
12210             Iain Sandoe  <iain@codesourcery.com>
12211             Nathan Froyd  <froydnj@codesourcery.com>
12212             Chao-ying Fu  <fu@mips.com>
12214         * doc/extend.texi: (micromips, nomicromips, nocompression):
12215         Document new function attributes.
12216         * doc/invoke.texi (minterlink-compressed, mmicromips,
12217         m14k, m14ke, m14kec): Document new options.
12218         (minterlink-mips16): Update documentation.
12219         * doc/md.texi (ZC, ZD): Document new constraints.
12220         * configure.ac (gcc_cv_as_micromips): Check if linker
12221         supports the .set micromips directive.
12222         * configure: Regenerate.
12223         * config.in: Regenerate.
12224         * config/mips/mips-tables.opt: Regenerate.
12225         * config/mips/micromips.md: New file.
12226         * constraints.md (ZC, AD): New constraints.
12227         * config/mips/predicates.md (movep_src_register): New predicate.
12228         (movep_src_operand): New predicate.
12229         (non_volatile_mem_operand): New predicate.
12230         * config/mips/mips.md (multimem): New type.
12231         (length): Differentiate between 17-bit and 18-bit branch offsets.
12232         (MOVEP1, MOVEP2): New mode iterator.
12233         (mov_<load>l): Use ZC constraint.
12234         (mov_<load>r): Likewise.
12235         (mov_<store>l): Likewise.
12236         (mov_<store>r): Likewise.
12237         (*branch_equality<mode>_inverted): Add microMIPS support.
12238         (*branch_equality<mode>): Likewise.
12239         (*jump_absolute): Likewise.
12240         (indirect_jump_<mode>): Likewise.
12241         (tablejump_<mode>): Likewise.
12242         (<optab>_internal): Likewise.
12243         (sibcall_internal): Likewise.
12244         (sibcall_value_internal): Likewise.
12245         (prefetch): Use constraint ZD.
12246         * config/mips/mips.opt (minterlink-compressed): New option.
12247         (minterlink-mips16): Now an alias for minterlink-compressed.
12248         (mmicromips): New option.
12249         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12250         (compare_and_swap_12): Likewise.
12251         (sync_add<mode>): Likewise.
12252         (sync_<optab>_12): Likewise.
12253         (sync_old_<optab>_12): Likewise.
12254         (sync_new_<optab>_12): Likewise.
12255         (sync_nand_12): Likewise.
12256         (sync_old_nand_12): Likewise.
12257         (sync_new_nand_12): Likewise.
12258         (sync_sub<mode>): Likewise.
12259         (sync_old_add<mode>): Likewise.
12260         (sync_old_sub<mode>): Likewise.
12261         (sync_new_add<mode>): Likewise.
12262         (sync_new_sub<mode>): Likewise.
12263         (sync_<optab><mode>): Likewise.
12264         (sync_old_<optab><mode>): Likewise.
12265         (sync_new_<optab><mode>): Likewise.
12266         (sync_nand<mode>): Likewise.
12267         (sync_old_nand<mode>): Likewise.
12268         (sync_new_nand<mode>): Likewise.
12269         (sync_lock_test_and_set<mode>): Likewise.
12270         (test_and_set_12): Likewise.
12271         (atomic_compare_and_swap<mode>): Likewise.
12272         (atomic_exchange<mode>_llsc): Likewise.
12273         (atomic_fetch_add<mode>_llsc): Likewise.
12274         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12275         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12276         (umips_save_restore_pattern_p): Likewise.
12277         (umips_load_store_pair_p): Likewise.
12278         (umips_output_load_store_pair): Likewise.
12279         (umips_movep_target_p): Likewise.
12280         (umips_12bit_offset_address_p): Likewise.
12281         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12282         (mips_base_mips16): Rename this...
12283         (mips_base_compression_flags): ...to this. Update all uses.
12284         (mips_attribute_table): Add micromips, nomicromips and nocompression.
12285         (mips_mips16_decl_p): Delete.
12286         (mips_nomips16_decl_p): Delete.
12287         (mips_get_compress_on_flags): New function.
12288         (mips_get_compress_off_flags): New function.
12289         (mips_get_compress_mode): New function.
12290         (mips_get_compress_on_name): New function.
12291         (mips_get_compress_off_name): New function.
12292         (mips_insert_attributes): Support multiple compression types.
12293         (mips_merge_decl_attributes): Likewise.
12294         (umips_12bit_offset_address_p): New function.
12295         (mips_start_function_definition): Emit .set micromips directive.
12296         (mips_call_may_need_jalx_p): New function.
12297         (mips_function_ok_for_sibcall): Add microMIPS support.
12298         (mips_print_operand_punctuation): Support short delay slots and
12299         compact jumps.
12300         (umips_swm_mask, umips_swm_encoding): New.
12301         (umips_build_save_restore): New function.
12302         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12303         (was_mips16_p): Remove.
12304         (old_compression_mode): New.
12305         (mips_set_compression_mode): New function.
12306         (mips_set_current_function): Add microMIPS support.
12307         (mips_option_override): Likewise.
12308         (umips_save_restore_pattern_p): New function.
12309         (umips_output_save_restore): New function.
12310         (umips_load_store_pair_p_1): New function.
12311         (umips_load_store_pair_p): New function.
12312         (umips_output_load_store_pair_1): New function.
12313         (umips_output_load_store_pair): New function.
12314         (umips_movep_target_p) New function.
12315         (mips_prepare_pch_save): Add microMIPS support.
12316         * config/mips/mips.h (TARGET_COMPRESSION): New.
12317         (TARGET_CPU_CPP_BUILTINS): Update macro
12318         to use new compression flags and to support microMIPS.
12319         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12320         (MIPS_ARCH_FLOAT_SPEC): Likewise.
12321         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12322         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12323         (ASM_SPEC): Support mmicromips and mno-micromips.
12324         (M16STORE_REG_P): New macro.
12325         (MIPS_CALL): Support TARGET_MICROMIPS.
12326         (MICROMIPS_J): New macro.
12327         (mips_base_mips16): Rename this...
12328         (mips_base_compression_flags): ...to this.
12329         (UMIPS_12BIT_OFFSET_P): New macro.
12330         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12331         (MULTILIB_DIRNAMES): Likewise.
12333 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
12335         PR target/52555
12336         * target-globals.c (save_target_globals): For init_reg_sets and
12337         target_reinit remporarily set this_fn_optabs to this_target_optabs.
12339 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
12341         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12342         * config/aarch64/t-aarch64
12343         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12345 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
12347         PR inline-asm/56148
12348         * lra-constraints.c (process_alt_operands): Reload operand
12349         conflicting with earlier clobber only if no more other conflicting
12350         operands.
12352 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
12354         PR sanitizer/56393
12355         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12356         if not linking a shared library.
12358 2013-02-22  Seth LaForge  <sethml@google.com>
12360         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12362 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
12364         * config/arm/arm.md (split for extendsidi): Update condition.
12365         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12366         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12367         (qhs_zextenddi_cstr): Likewise.
12369 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
12371         PR middle-end/56420
12372         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12373         avoid signed wrapping.
12374         (expand_mult): Handle properly multiplication by
12375         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
12376         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
12377         in the compiler if coeff is HOST_WIDE_INT_MIN.
12378         (expand_divmod): Don't make ext_op1 static, change it's type to
12379         uhwi.  Avoid undefined behavior in -INTVAL (op1).
12381         PR rtl-optimization/50339
12382         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12383         field.
12384         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12385         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12386         into splitting_ashiftrt field.
12387         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12388         ASHIFTRT.
12389         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12390         choices.
12392 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
12394         PR middle-end/56108
12395         * trans-mem.c (execute_tm_mark): Do not expand transactions that
12396         are sure to go irrevocable.
12398 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
12400         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12401         scalars are valid operands.
12403 2013-02-21  Martin Jambor  <mjambor@suse.cz>
12405         PR tree-optimization/56310
12406         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12407         only matching indices and non-negative final offsets.
12408         (intersect_aggregates_with_edge): Pass src_idx to
12409         agg_replacements_to_vector.  Pass src_idx insstead of index to
12410         intersect_with_agg_replacements.
12412 2013-02-21  Martin Jambor  <mjambor@suse.cz>
12414         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12415         instead of hard-wired defaults.
12417 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
12419         * doc/invoke.texi (MIPS Options): Update documentation of the
12420         floating-point multiply-accumulate instruction restrictions.
12422 2013-02-21  Kostya Serebryany  <kcc@google.com>
12424         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12425         asan_shadow_offset on x86_64 linux.
12427 2013-02-21  Richard Biener  <rguenther@suse.de>
12429         PR tree-optimization/56415
12430         Revert
12431         2013-02-11  Richard Biener  <rguenther@suse.de>
12433         PR tree-optimization/56273
12434         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12435         first VRP run.
12437 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
12439         PR bootstrap/56258
12440         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12441         instead of @itemx.
12443         PR inline-asm/56405
12444         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12445         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12447 2013-02-20  Jan Hubicka  <jh@suse.cz>
12449         PR tree-optimization/56265
12450         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12451         when target is referenced for first time.
12453 2013-02-20  Richard Biener  <rguenther@suse.de>
12455         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12456         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12457         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12458         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12459         not return anything.
12460         (rename_ssa_copies): Do not remove unused locals.
12461         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12462         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12463         * passes.c (execute_function_todo): Do not schedule unused locals
12464         removal if cleanup_tree_cfg did something.
12465         * tree-ssa-live.c (remove_unused_locals): Dump statistics
12466         about the number of removed locals.
12468 2013-02-20  Richard Biener  <rguenther@suse.de>
12470         PR tree-optimization/56398
12471         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12473 2013-02-20  Martin Jambor  <mjambor@suse.cz>
12475         PR tree-optimization/55334
12476         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12477         restricted pointers to arrays.
12479 2013-02-20  Richard Biener  <rguenther@suse.de>
12480             Jakub Jelinek  <jakub@redhat.com>
12482         PR tree-optimization/56396
12483         * tree-ssa-ccp.c (n_const_val): New static variable.
12484         (get_value): Return NULL for SSA names we don't have a lattice
12485         entry for.
12486         (ccp_initialize): Initialize n_const_val.
12487         * tree-ssa-copy.c (n_copy_of): New static variable.
12488         (init_copy_prop): Initialize n_copy_of.
12489         (get_value): Return NULL_TREE for SSA names we don't have a
12490         lattice entry for.
12492 2013-02-20  Martin Jambor  <mjambor@suse.cz>
12494         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12496 2013-02-20  Richard Biener  <rguenther@suse.de>
12498         * genpreds.c (write_lookup_constraint): Do not compare first
12499         letter of the constraint again.
12501 2013-02-20  Richard Biener  <rguenther@suse.de>
12503         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12504         and ceil_log2.
12505         (get_use_iv_cost): Terminate hashtable walk when coming across
12506         an empty entry.
12508 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
12510         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12511         reassociation for avx2 targets.
12513 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12515         * config/microblaze/microblaze.c: microblaze_has_clz = 0
12516         Add version check for v8.10.a to enable microblaze_has_clz
12517         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12518         version and TARGET_PATTERN_COMPARE check
12519         * config/microblaze/microblaze.md: New clzsi2 instruction
12521 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12523         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12524         function before branching.
12526 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
12528         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12529         DUMP_INSN_RTX_UID.
12530         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12532 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
12534         PR middle-end/55889
12535         * sel-sched.c: Include ira.h.
12536         (implicit_clobber_conflict_p): New function.
12537         (moveup_expr): Use it.
12538         * Makefile.in (sel-sched.o): Depend on ira.h.
12540 2013-02-19  Richard Biener  <rguenther@suse.de>
12542         PR tree-optimization/56384
12543         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12544         (vn_hash_type): Split out from ...
12545         (vn_hash_constant_with_type): ... here.
12546         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12547         (vn_phi_eq): Compare types from vn_phi_s structure.
12548         (vn_phi_lookup): Populate vn_phi_s type.
12549         (vn_phi_insert): Likewise.
12551 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12553         PR tree-optimization/56350
12554         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12555         if haven't found reduction or nested cycle operand, rather than
12556         asserting we must find it.
12558         PR tree-optimization/56381
12559         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12560         to fold_build3.
12562 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
12563             Jakub Jelinek  <jakub@redhat.com>
12565         PR target/52555
12566         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12567         (swap_optab_enable): Same.
12568         (init_all_optabs): Use argument instead of global.
12569         * tree.h (struct tree_optimization_option): New field target_optabs.
12570         * expr.h (init_all_optabs): Add argument to prototype.
12571         (TREE_OPTIMIZATION_OPTABS): New.
12572         (save_optabs_if_changed): Protoize.
12573         * optabs.h: Declare this_fn_optabs.
12574         * optabs.c (save_optabs_if_changed): New.
12575         Declare this_fn_optabs.
12576         (init_optabs): Add argument to init_all_optabs() call.
12577         * function.c (invoke_set_current_function_hook): Handle per
12578         function optabs.
12579         * function.h (struct function): New field optabs.
12580         * config/mips/mips.c (mips_set_mips16_mode): Handle when
12581         optimization_current_node has changed.
12582         * target-globals.h (save_target_globals_default_opts): Protoize.
12583         * target-globals.c (save_target_globals_default_opts): New.
12585 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12587         PR target/56347
12588         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12589         registers %fr12 and %fr12R as call used.
12591         PR target/56214
12592         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12593         and HImode, require all displacements to be an integer multiple of
12594         their mode size.
12595         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12596         only allow QImode and HImode when reload is in progress and strict is
12597         true.  Likewise for symbolic addresses.  Use base14_operand to check
12598         displacements in REG+BASE addresses.
12600 2013-02-18  Richard Biener  <rguenther@suse.de>
12602         PR tree-optimization/56366
12603         * tree-vect-loop.c (get_initial_def_for_induction): Properly
12604         handle sign-conversion of outer-loop initial induction value.
12606 2013-02-18  Richard Biener  <rguenther@suse.de>
12608         PR middle-end/56349
12609         * cfghooks.c (merge_blocks): If we merge a latch into another
12610         block adjust references to it.
12611         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12612         (verify_loop_structure): Verify that a recorded latch is in fact
12613         a latch.
12615 2013-02-18  Richard Biener  <rguenther@suse.de>
12617         PR tree-optimization/56321
12618         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12619         order SSA name release and virtual operand unlinking.
12621 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12623         * config/microblaze/microblaze.md (save_stack_block): Define.
12624         (restore_stack_block): Likewise.
12626 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12628         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12629         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12630         * config/microblaze/microblaze.c (microblaze_option_override):
12631         Bail out early for PIC modes when target does not support PIC.
12633 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12635         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12636         Replace with a microblaze version.
12637         (microblaze_trampoline_init): Adapt for microblaze.
12638         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12639         microblaze.
12641 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
12642             Dodji Seketeli  <dodji@redhat.com>
12644         PR asan/56330
12645         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12646         (instrument_mem_region_access): Do not forget to always put
12647         instrumentation of the of 'base' and 'base + len' in a "if (len !=
12648         0) statement, even for cases where either 'base' or 'base + len'
12649         are not instrumented -- because they have been previously
12650         instrumented.  Simplify the logic by putting all the statements
12651         instrument 'base + len' inside a sequence, and then insert that
12652         sequence right before the current insertion point.  Then, to
12653         instrument 'base + len', just get an iterator on that statement.
12654         And do not forget to update the pointer to iterator the function
12655         received as argument.
12657 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
12659         PR rtl-optimization/56348
12660         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12662 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
12664         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12665         (clean_graph_dump_file): Pass base to start_graph_dump.
12667 2013-02-14  Richard Henderson  <rth@redhat.com>
12669         PR target/55941
12670         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12672 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
12674         * collect2-aix.h: Define F_LOADONLY.
12676 2013-02-14  Richard Biener  <rguenther@suse.de>
12678         PR lto/50494
12679         * varasm.c (output_constant_def_1): Get the decl representing
12680         the constant as argument.
12681         (output_constant_def): Wrap output_constant_def_1.
12682         (make_decl_rtl): Use output_constant_def_1 with the decl
12683         representing the constant.
12684         (build_constant_desc): Optionally re-use a decl already
12685         representing the constant.
12686         (tree_output_constant_def): Adjust.
12688 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
12690         Fix an asan crash
12691         * asan.c (instrument_builtin_call):  Really put the length of the
12692         second source argument into src1_len.
12694 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
12696         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12697         argument.  If it is false, don't create edge from then_bb to
12698         fallthru_bb.
12699         (insert_if_then_before_iter): Pass true to it.
12700         (build_check_stmt): Pass false to it.
12701         (transform_statements): Flush hash table only on extended basic
12702         block boundaries, rather than at the beginning of every bb.
12703         Don't flush hash table on nonfreeing_call_p calls.
12704         * tree-flow.h (nonfreeing_call_p): New prototype.
12705         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12707 2013-02-13  David S. Miller  <davem@davemloft.net>
12709         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12711 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
12713         PR target/56184
12714         * ira.c (max_regno_before_ira): Move from ...
12715         (ira): ... here.
12716         (fix_reg_equiv_init): Use max_regno_before_ira instead of
12717         vec_safe_length.
12719 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
12721         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12723 2013-02-13  Richard Biener  <rguenther@suse.de>
12725         PR lto/56295
12726         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12727         globals in MEM_REFs.
12729 2013-02-13  Richard Biener  <rguenther@suse.de>
12731         * loop-init.c (loop_optimizer_init): Clear loop state when
12732         re-initializing preserved loops.
12733         * loop-unswitch.c (unswitch_single_loop): Return whether
12734         we unswitched the loop.  Do not verify loop state here.
12735         (unswitch_loops): When we unswitched a loop discover new loops.
12737 2013-02-13  Kostya Serebryany  <kcc@google.com>
12739         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12740         on x86_64 linux.
12741         * sanitizer.def: Rename __asan_init to __asan_init_v1.
12743 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
12745         Avoid instrumenting duplicated memory access in the same basic block
12746         * Makefile.in (asan.o): Add new dependency on hash-table.h
12747         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12748         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12749         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12750         (free_mem_ref_resources, has_mem_ref_been_instrumented)
12751         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12752         (get_mem_ref_of_assignment): New functions.
12753         (get_mem_refs_of_builtin_call): Extract from
12754         instrument_builtin_call and tweak a little bit to make it fit with
12755         the new signature.
12756         (instrument_builtin_call): Use the new
12757         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
12758         of is_gimple_builtin_call.
12759         (instrument_derefs, instrument_mem_region_access): Insert the
12760         instrumented memory reference into the hash table.
12761         (maybe_instrument_assignment): Renamed instrument_assignment into
12762         this, and change it to advance the iterator when instrumentation
12763         actually happened and return true in that case.  This makes it
12764         homogeneous with maybe_instrument_assignment, and thus give a
12765         chance to callers to be more 'regular'.
12766         (transform_statements): Clear the memory reference hash table
12767         whenever we enter a new BB, when we cross a function call, or when
12768         we are done transforming statements.  Use
12769         maybe_instrument_assignment instead of instrumentation.  No more
12770         need to special case maybe_instrument_assignment and advance the
12771         iterator after calling it; it's now handled just like
12772         maybe_instrument_call.  Update comment.
12774 2013-02-13  Richard Biener  <rguenther@suse.de>
12776         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12777         Fix loop discovery code.
12779 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
12781         PR inline-asm/56148
12782         * lra-constraints.c (process_alt_operands): Match early clobber
12783         operand with itself.  Check conflicts with earlyclobber only if
12784         the operand is not reloaded.  Prefer to reload conflicting operand
12785         if earlyclobber and matching operands are the same.
12787 2013-02-12  Richard Biener  <rguenther@suse.de>
12789         PR lto/56297
12790         * lto-streamer-out.c (write_symbol): Do not output symbols
12791         for hard register variables.
12793 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
12795         PR target/54222
12796         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12797         (umulsidi3_insn, mulsidi3_insn): New insns.
12799 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
12801         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12802         (struct tune_params): Add vec_costs field.
12803         * config/arm/arm.c (arm_builtin_vectorization_cost)
12804         (arm_add_stmt_cost): New functions.
12805         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12806         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12807         (arm_default_vec_cost): New struct of type cpu_vec_costs.
12808         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12809         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12810         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12811         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12813 2013-02-12  Richard Biener  <rguenther@suse.de>
12815         PR lto/56295
12816         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12817         decls again if possible.
12819 2013-02-12  Richard Biener  <rguenther@suse.de>
12821         PR middle-end/56288
12822         * tree-ssa.c (verify_ssa_name): Fix check, move
12823         SSA_NAME_IN_FREE_LIST check up.
12825 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
12826             Steven Bosscher   <steven@gcc.gnu.org>
12828         PR rtl-optimization/56151
12829         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
12830         equal to op0 or op1, and last_insn pattern is CODE operation
12831         with MEM dest and one of the operands matches that MEM.
12833 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
12835         * doc/extend.texi: Document Function Multiversioning and "default"
12836         parameter string to target attribute.
12837         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
12838         target attribute parameter is "default".
12839         (ix86_compare_version_priority): Remove checks for target attribute.
12840         (ix86_mangle_function_version_assembler_name): Change error to sorry.
12841         Remove check for target attribute equal to NULL. Add assert.
12842         (ix86_generate_version_dispatcher_body): Change error to sorry.
12844 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
12845             Jack Howarth  <howarth@bromo.med.uc.edu>
12846             Patrick Marlier  <patrick.marlier@gmail.com>
12848         PR libitm/55693
12849         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
12850         define ENDFILE_SPEC as TM_DESTRUCTOR.
12851         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
12853 2013-02-11  Alexander Potapenko  <glider@google.com>
12854             Jack Howarth  <howarth@bromo.med.uc.edu>
12855             Jakub Jelinek  <jakub@redhat.com>
12857         PR sanitizer/55617
12858         * config/darwin.c (cdtor_record): Rename ctor_record.
12859         (sort_cdtor_records): Rename sort_ctor_records.
12860         (finalize_dtors): New routine to sort destructors by
12861         priority before use in assemble_integer.
12862         (machopic_asm_out_destructor): Use finalize_dtors if needed.
12864 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
12866         PR rtl-optimization/56275
12867         * simplify-rtx.c (avoid_constant_pool_reference): Check that
12868         offset is non-negative and less than cmode size before
12869         calling simplify_subreg.
12871 2013-02-11  Richard Biener  <rguenther@suse.de>
12873         PR tree-optimization/56264
12874         * cfgloop.h (fix_loop_structure): Adjust prototype.
12875         * loop-init.c (fix_loop_structure): Return the number of
12876         newly discovered loops.
12877         * tree-cfgcleanup.c (repair_loop_structures): When new loops
12878         are discovered, do a full loop-closed SSA rewrite.
12880 2013-02-11  Richard Biener  <rguenther@suse.de>
12882         PR tree-optimization/56273
12883         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12884         first VRP run.
12885         (check_array_ref): Fix missing newline in dumps.
12886         (search_for_addr_array): Likewise.
12888 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
12890         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
12892 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
12894         PR target/56256
12895         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
12897 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
12899         PR rtl-optimization/56246
12900         * lra-constraints.c (simplify_operand_subreg): Try to reuse
12901         reload pseudo.
12902         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
12903         constraints are satisfied.
12905 2013-02-08  Jeff Law  <law@redhat.com>
12907         PR debug/53948
12908         * emit-rtl.c (reg_is_parm_p): New function.
12909         * regs.h (reg_is_parm_p): New prototype.
12910         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
12911         callee-clobbered registers.
12913 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
12915         PR target/56043
12916         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12917         If there is no implicit builtin declaration, just return NULL.
12919 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12921         * config/i386/sse.md (FMAMODEM): New mode iterator.
12922         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12923         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12925 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12927         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12928         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12929         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12931 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12933         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12934         (microblaze*-*-elf): Likewise.
12935         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12936         LINK_SPEC.
12937         * config/microblaze/microblaze-c.c: Add builtin defines for
12938         _LITTLE_ENDIAN and _BIG_ENDIAN.
12939         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12940         add to TARGET_DEFAULT flags.
12941         Expand ASM_SPEC and LINK_SPEC.
12942         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12943         * config/microblaze/microblaze.md: Update extendsidi2 and
12944         movdi_internal instructions to use low-order / high-order reg
12945         print_operands.
12946         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12947         options and inversemask / mask of LITTLE_ENDIAN.
12948         * config/microblaze/t-microblaze: Expand multilib options to
12949         include mlittle-endian (le) and update exceptions patterns.
12951 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
12953         PR rtl-optimization/56195
12954         * lra-constraints.c (get_reload_reg): Don't reuse regs
12955         if they have smaller mode than requested, if they have
12956         wider mode than requested, try to return a SUBREG.
12958         PR tree-optimization/56250
12959         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12960         if type is unsigned and code isn't MULT_EXPR.
12962 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
12964         PR tree-optimization/56064
12965         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12966         bits according to mode.
12967         * fixed-value.h (fixed_from_double_int)
12968         (const_fixed_from_double_int): Adjust comments.
12970 2013-02-08  Richard Biener  <rguenther@suse.de>
12972         PR lto/56231
12973         * lto-streamer.h (struct data_in): Remove current_file, current_line
12974         and current_col members.
12975         * lto-streamer-out.c (lto_output_location): Stream changed bits
12976         en-block for efficiency.
12977         * lto-streamer-in.c (clear_line_info): Remove.
12978         (lto_input_location): Cache current file, line and column
12979         globally via local statics.  Read changed bits en-block.
12980         (input_function): Do not call clear_line_info.
12981         (lto_read_body): Likewise.
12982         (lto_input_toplevel_asms): Likewise.
12984 2013-02-08  Michael Matz  <matz@suse.de>
12986         PR tree-optimization/52448
12987         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12988         (nt_call_phase): New static.
12989         (add_or_mark_expr): Only mark accesses with newer phase than any
12990         call seen.
12991         (nonfreeing_call_p): New.
12992         (nt_init_block): Update nt_call_phase, mark blocks as visited.
12993         (nt_fini_block): Keep blocks marked as visited.
12994         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12996 2013-02-08  Richard Biener  <rguenther@suse.de>
12998         * ira.c (ira): Free broken dominator information.
13000 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
13002         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13004 2013-02-08  Marek Polacek  <polacek@redhat.com>
13006         * cfgloop.c (verify_loop_structure): Add more checking of headers.
13008 2013-02-08  Richard Biener  <rguenther@suse.de>
13010         PR middle-end/56181
13011         * cfgloop.h (flow_loops_find): Adjust.
13012         (bb_loop_header_p): Declare.
13013         * cfgloop.c (bb_loop_header_p): New function split out from ...
13014         (flow_loops_find): ... here.  Adjust function signature,
13015         support incremental loop structure update.
13016         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
13017         * cfgloopmanip.c (fix_loop_structure): Move ...
13018         * loop-init.c (fix_loop_structure): ... here.
13019         (apply_loop_flags): Split out from ...
13020         (loop_optimizer_init): ... here.
13021         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
13022         in incremental mode, only remove dead loops here.
13024 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
13026         PR target/54222
13027         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13028         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13029         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13030         (*round<mode>3.libgcc): New insns for fixed-modes.
13031         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13032         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13033         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13034         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13035         implementations.  Define to __builtin_avr_absFX,
13036         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13037         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13038         __builtin_avr_countlsFX, respectively.
13039         * config/avr/avr-c.c (target.h): Include it.
13040         (enum avr_builtin_id): New enum.
13041         (avr_resolve_overloaded_builtin): New static function.
13042         (avr_register_target_pragmas): Use it to set
13043         targetm.resolve_overloaded_builtin.
13044         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13045         tree nodes used by DEF_BUILTIN.
13046         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13047         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13048         <AVR_BUILTIN_xxBITS>: Same.
13050 2013-02-08  Richard Biener  <rguenther@suse.de>
13052         * cfgloop.c (verify_loop_structure): Properly handle
13053         a loop exiting to another loop header.
13054         * ira-int.h (ira_loops): Remove.
13055         * ira.c (ira_loops): Remove.
13056         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13057         (do_reload): Use loop_optimizer_finalize.
13058         * ira-build.c (create_loop_tree_nodes): Use get_loops and
13059         number_of_loops to access the loop tree.
13060         (more_one_region_p): Likewise.
13061         (finish_loop_tree_nodes): Likewise.
13062         (rebuild_regno_allocno_maps): Likewise.
13063         (mark_loops_for_removal): Likewise.
13064         (mark_all_loops_for_removal): Likewise.
13065         (remove_unnecessary_regions): Likewise.
13066         (ira_build): Likewise.
13067         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13069 2013-02-08  Richard Biener  <rguenther@suse.de>
13071         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13072         * ipa-pure-const.c (analyze_function): Avoid calling
13073         mark_irreducible_loops twice.
13074         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
13076 2013-02-07  David S. Miller  <davem@davemloft.net>
13078         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13079         on 'reg'.
13080         * var-tracking.c (vt_add_function_parameter): Test the presence of
13081         HAVE_window_save properly and do not remap argument registers when
13082         we have a leaf function.
13084 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
13086         PR bootstrap/56227
13087         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13088         instead of "ll".
13089         * config/i386/i386.c (ix86_print_operand): Ditto.
13091 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
13093         * lra-constraints.c (process_alt_operands): Fix recently added comment.
13095 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
13097         PR rtl-optimization/56225
13098         * lra-constraints.c (process_alt_operands): Check that reload hard
13099         reg can hold value for strict_low_part.
13101 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
13103         PR debug/56154
13104         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13105         dwarf2out_end_function.
13106         (in_first_function_p, maybe_at_text_label_p,
13107         first_loclabel_num_not_at_text_label): New variables.
13108         (dwarf2out_var_location): In the first function find out
13109         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
13110         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13111         functions.
13113 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
13115         PR rtl-optimization/56178
13116         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13117         SUBREG of a register.  Tidy up related block of code.
13118         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13119         note if the source is a register or a SUBREG of a register.
13121 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
13123         PR target/56228
13124         * config/rs6000/rs6000.md (ptrm): New mode attr.
13125         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13126         call_value_indirect_aix<pttrsize>,
13127         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13128         m in constraints.
13130 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13132         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13133         if -bnortl. Convert to strcmp and strncmp.
13135 2013-02-07  Alan Modra  <amodra@gmail.com>
13137         PR target/54009
13138         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13139         addresses won't wrap when offsetting.
13140         (rs6000_secondary_reload): Provide secondary reloads needed for
13141         wrapping LO_SUM addresses.
13143 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
13145         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13146         MACH, just __MACH__.
13148 2013-02-06  Richard Biener  <rguenther@suse.de>
13150         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13151         instead of calling fix_loop_structure.
13153 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
13155         PR middle-end/56217
13156         * omp-low.c (use_pointer_for_field): Return false if
13157         lower_send_shared_vars doesn't generate any copy-out code.
13159 2013-02-06  Tom de Vries  <tom@codesourcery.com>
13161         PR rtl-optimization/56131
13162         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13163         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
13164         of the label is NULL.  Add comment.
13166 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
13168         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13170         PR sanitizer/55374
13171         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13172         (STATIC_LIBTSAN_LIBS): Likewise.
13173         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13174         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13175         is defined, don't add anything else beyond that.
13176         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13177         (LINK_COMMAND_SPEC): Use them.
13179         PR tree-optimization/56205
13180         * tree-stdarg.c (check_all_va_list_escapes): Return true if
13181         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13182         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13184 2013-02-05  Richard Biener  <rguenther@suse.de>
13186         PR tree-optimization/53342
13187         PR tree-optimization/53185
13188         * tree-vectorizer.h (vect_check_strided_load): Remove.
13189         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13190         not disallow peeling for vectorized strided loads.
13191         (vect_check_strided_load): Make static and simplify.
13192         (vect_analyze_data_refs): Adjust.
13193         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13194         correctly when vectorizing strided loads.
13196 2013-02-05  Richard Biener  <rguenther@suse.de>
13198         * doc/install.texi: Refer to ISL, not PPL.
13200 2013-02-05  Jan Hubicka  <jh@suse.cz>
13202         PR tree-optimization/55789
13203         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13205 2013-02-05  Jan Hubicka  <jh@suse.cz>
13207         PR tree-optimization/55789
13208         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13209         the dead call anyway.
13211 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
13213         PR sanitizer/55374
13214         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13216 2013-02-04  Alexander Potapenko  <glider@google.com>
13217             Jack Howarth  <howarth@bromo.med.uc.edu>
13218             Jakub Jelinek  <jakub@redhat.com>
13220         PR sanitizer/55617
13221         * config/darwin.c (sort_ctor_records): Stabilized qsort
13222         on constructor priority by using original position.
13223         (finalize_ctors): New routine to sort constructors by
13224         priority before use in assemble_integer.
13225         (machopic_asm_out_constructor): Use finalize_ctors if needed.
13227 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
13229         PR libstdc++/54314
13230         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13231         about visibility on artificial decls.
13232         * config/sol2.c (solaris_assemble_visibility): Likewise.
13234 2013-02-04  Kai Tietz  <ktietz@redhat.com>
13236         PR target/56186
13237         * config/i386/i386.c (function_value_ms_64): Add additional valtype
13238         argument and improve checking of return-argument types for 16-byte
13239         modes.
13240         (ix86_function_value_1): Add additional valtype argument on call
13241         of function_value_64.
13242         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13243         handling infunction_value_64 function.
13245 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
13247         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13249 2013-02-04  Richard Biener  <rguenther@suse.de>
13251         PR tree-optimization/56188
13252         * tree-ssa-structalias.c (label_visit): Consider case with
13253         initially non-empty points-to set.
13254         (perform_var_substitution): Dump node mapping and clean up.
13256 2013-02-04  Richard Guenther  <rguenther@suse.de>
13258         PR lto/56168
13259         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13260         node prevail as last resort.
13261         (lto_symtab_merge_decls): Remove guard on LTRANS here.
13262         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13264 2013-02-04  Richard Biener  <rguenther@suse.de>
13266         PR tree-optimization/56113
13267         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13268         Merge into ...
13269         (equiv_class_lookup_or_add): ... this.
13270         (label_visit): Adjust and fix error in previous patch.
13271         (perform_var_substitution): Adjust.
13273 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
13275         * config/sh/divtab.c: Fix formatting and comments throughout the file.
13276         * config/sh/sh4-300.md: Likewise.
13277         * config/sh/sh4a.md: Likewise.
13278         * config/sh/constraints.md: Likewise.
13279         * config/sh/sh.md: Likewise.
13280         * config/sh/netbsd-elf.h: Likewise.
13281         * config/sh/predicates.md: Likewise.
13282         * config/sh/sh-protos.h: Likewise.
13283         * config/sh/ushmedia.h: Likewise.
13284         * config/sh/linux.h: Likewise.
13285         * config/sh/sh.c: Likewise.
13286         * config/sh/superh.h: Likewise.
13287         * config/sh/elf.h: Likewise.
13288         * config/sh/sh4.md: Likewise.
13289         * config/sh/sh.h: Likewise.
13291 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13293         * config/pa/constraints.md: Adjust unused letters.  Change "T"
13294         constraint to match_test floating_point_store_memory_operand().
13295         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13296         (base14_operand): New.
13297         (floating_point_store_memory_operand): New.
13298         (integer_store_memory_operand): Revise to use base14_operand and
13299         reg_plus_base_memory_operand.
13300         (move_dest_operand): Allow symbolic_memory_operands.
13301         (symbolic_memory_operand): Check for LO_SOM.
13302         (symbolic_operand): Change default case to break.
13303         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13304         CONST_DOUBLE values to be reloaded by putting them into memory when
13305         the destination is a floating point register.
13306         (movdf): Remove code to handle CONST_DOUBLE.
13307         (movsf): Likewise.
13308         (reload_indf_r1): New.
13309         (reload_insf_r1): New.
13310         Consistently use "Q" and "T" constraints with integer and floating
13311         point move instructions, respectively.
13312         (movdi): Remove FAIL.
13313         Change predicate for source operand unamed DImode move from
13314         general_operand to move_src_operand.
13315         (umulsidi3): Change predicate for destination operand to
13316         register_operand.
13317         Likewise for similar unamed patterns.
13318         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13319         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13320         (hppa_legitimize_address): Simplify mask calculation.
13321         (pa_emit_move_sequence): Revised handling of secondary reloads from
13322         REG+D addresses for floating point loads and stores.  Directly handle
13323         loading CONST0_RTX (mode) to a floating point register.
13324         (pa_secondary_reload): Handle reloading DF and SFmode constant values
13325         to floating point registers.  Don't restrict secondary reloads to
13326         floating point registers to integer modes.  Revise some comments and
13327         cleanup some code.
13328         (TARGET_LEGITIMATE_ADDRESS_P): Define.
13329         (pa_legitimate_address_p): New.
13330         (pa_legitimize_reload_address): New.
13331         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13332         (STRICT_REG_OK_FOR_BASE_P): New.
13333         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
13334         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13336 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
13337             Andrew Dixie  <andrewd@gentrack.com>
13339         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13340         flag set.
13342 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
13344         * expmed.c (extract_bit_field_1): Pass the full width of the
13345         structure to get_best_reg_extraction_insn.
13347 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
13349         PR target/54601
13350         * configure.ac (use_cxa_atexit): Add AIX.
13351         * configure: Regenerate.
13353         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13355 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
13357         PR debug/54793
13358         * final.c (need_profile_function): New variable.
13359         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13360         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13361         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13362         notes, targetm.asm_out.function_prologue doesn't emit anything,
13363         HAVE_prologue and profiler should be emitted before prologue,
13364         set need_profile_function instead of emitting it.
13365         (final_scan_insn): If need_profile_function, emit
13366         profile_function on the first NOTE_INSN_BASIC_BLOCK or
13367         NOTE_INSN_FUNCTION_BEG note.
13369 2013-02-01  Richard Henderson  <rth@redhat.com>
13371         * config/rs6000/rs6000.md (smulditi3): New.
13372         (umulditi3): New.
13374         * config/alpha/alpha.md (umulditi3): New.
13376 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
13378         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13379         (ASM_OUTPUT_ALIGNED_LOCAL): New.
13381 2013-02-01  Richard Biener  <rguenther@suse.de>
13383         PR tree-optimization/56113
13384         * tree-ssa-structalias.c (label_visit): Reduce work for
13385         single-predecessor nodes.
13387 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
13389         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13390         range isn't testing for zero.
13392 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
13394         PR middle-end/56113
13395         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13397 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
13398             Nick Clifton  <nickc@redhat.com>
13400         * config/v850/constraints.md (Q): Define as a memory constraint.
13401         * config/v850/predicates.md (label_ref_operand): New predicate.
13402         (e3v5_shift_operand): New predicate.
13403         (ior_operator): New predicate.
13404         * config/v850/t-v850: Add e3v5 multilib.
13405         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13406         (v850_gen_movdi): Prototype.
13407         * config/v850/v850.c: Add support for e3v5 architecture.
13408         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13409         TARGET_V850E_UP.
13410         (construct_save_jarl): Add e3v5 long JARL support.
13411         (v850_adjust_insn_length): New function.  Adjust length of call
13412         insns when using e3v5 instructions.
13413         (v850_gen_movdi): New function: Generate instructions to move a
13414         DImode value.
13415         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13416         (CPP_SPEC): Define __v850e3v5__ as appropriate.
13417         (TARGET_USE_FPU): Enable for e3v5.
13418         (CONST_OK_FOR_W): New macro.
13419         (ADJUST_INSN_LENGTH): Define.
13420         * config/v850/v850.md (UNSPEC_LOOP): Define.
13421         (attr cpu): Add v850e3v5.
13422         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13423         (movdi): New pattern.
13424         (movdi_internal): New pattern.
13425         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13426         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13427         (cstoresf4): Likewise.
13428         (cstoredf4): Likewise.
13429         (insv): New pattern.
13430         (rotlso3_a): New pattern.
13431         (rotlsi3_b): New pattern
13432         (rotlsi3_v850e3v5): New pattern.
13433         (doloop_begin): New pattern.
13434         (fix_loop_counter): New pattern.
13435         (doloop_end): New pattern.
13436         (branch_normal): Add e3v5 long branch support.
13437         (branch_invert): Likewise.
13438         (branch_z_normal): Likewise.
13439         (branch_z_invert): Likewise.
13440         (branch_nz_normal): Likewise.
13441         (branch_nz_invert): Likewise.
13442         (call_internal_short): Add e3v5 register-indirect JARL support.
13443         (call_internal_long): Likewise.
13444         (call_value_internal_short): Likewise.
13445         (call_value_internal_long): Likewise.
13446         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13447         (mloop): New option.
13448         * config.gcc: Add support for configuring v840e3v5 target.
13449         * doc/invoke.texi: Document new v850 specific command line options.
13451 2013-01-31  Paul Koning  <ni1d@arrl.net>
13453         PR debug/55059
13454         PR debug/54508
13455         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13456         children if parent is a class.
13457         (prune_unused_types_prune): Don't add DW_AT_declaration.
13459 2013-01-31  Richard Biener  <rguenther@suse.de>
13461         PR tree-optimization/56157
13462         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13463         match up operand with SLP child.
13465 2013-01-31  Jason Merrill  <jason@redhat.com>
13467         PR debug/54410
13468         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13469         parameters the first time.
13470         (gen_scheduled_generic_parms_dies): Check completeness here.
13472 2013-01-31  Richard Biener  <rguenther@suse.de>
13474         PR middle-end/53073
13475         * common.opt (faggressive-loop-optimizations): New flag,
13476         enabled by default.
13477         * doc/invoke.texi (faggressive-loop-optimizations): Document.
13478         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13479         infer_loop_bounds_from_undefined by it.
13481 2013-01-31  Richard Biener  <rguenther@suse.de>
13483         PR tree-optimization/56150
13484         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13485         visit virtual operands.
13486         (find_uses_to_rename_bb): Likewise.
13488 2013-01-31  Richard Biener  <rguenther@suse.de>
13490         PR tree-optimization/56150
13491         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13492         mixed store non-store stmts.
13494 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
13496         PR sanitizer/55374
13497         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13498         LIBASAN_EARLY_SPEC is defined.
13499         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13500         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13501         before %o.
13502         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13504         PR c++/55742
13505         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13506         invalid args instead of ICEing on it.
13507         (ix86_valid_target_attribute_tree): Return error_mark_node if
13508         ix86_valid_target_attribute_inner_p failed.
13509         (ix86_valid_target_attribute_p): Return false only if
13510         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
13511         target("default") attribute.
13512         (sorted_attr_string): Change argument from const char * to tree,
13513         merge in all target attribute arguments rather than just one.
13514         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
13515         instead of free.  Avoid using strcat.
13516         (ix86_mangle_function_version_assembler_name): Mangle
13517         target("default") as if no target attribute is present.  Adjust
13518         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
13519         instead of xmalloc and XDELETEVEC instead of free.
13520         (ix86_function_versions): Don't return true if one of the decls
13521         doesn't have target attribute.  If they don't and one of the decls
13522         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
13523         sorted_attr_string caller.  Use XDELETEVEC instead of free.
13524         (ix86_supports_function_versions): Remove.
13525         (make_name): Fix up formatting.
13526         (make_dispatcher_decl): Remove resolver_name and its initialization.
13527         Avoid leaking memory.
13528         (is_function_default_version): Return true if there is
13529         target("default") attribute rather than no target attribute at all.
13530         (make_resolver_func): Avoid leaking memory.
13531         (ix86_generate_version_dispatcher_body): Likewise.
13532         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13533         * target.def (supports_function_versions): Remove.
13534         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13535         * doc/tm.texi: Regenerated.
13537 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13539         PR rtl-optimization/56144
13540         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13541         for values with side effects.
13543 2013-01-30  Richard Biener  <rguenther@suse.de>
13545         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13546         (sparseset_pop): Likewise.
13547         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
13548         to be able to use quick_push in the worker loop.
13550 2013-01-30  Marek Polacek  <polacek@redhat.com>
13552         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13554 2013-01-30  Richard Biener  <rguenther@suse.de>
13556         PR lto/56147
13557         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13559 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
13561         PR tree-optimization/56064
13562         * fixed-value.c (fixed_from_double_int): New function.
13563         * fixed-value.h (fixed_from_double_int): New prototype.
13564         (const_fixed_from_double_int): New static inline function.
13565         * fold-const.c (native_interpret_fixed): New static function.
13566         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13567         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13568         (native_encode_fixed): New static function.
13569         (native_encode_expr) <FIXED_CST>: Use it.
13570         (native_interpret_int): Move double_int worker code to...
13571         * double-int.c (double_int::from_buffer): ...this new static method.
13572         * double-int.h (double_int::from_buffer): Prototype it.
13574 2013-01-30  Richard Biener  <rguenther@suse.de>
13576         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13577         New pointer-map and obstack.
13578         (init_alias_vars): Allocate pointer-map and obstack.
13579         (delete_points_to_sets): Free them.
13580         (find_what_var_points_to): Cache result.
13581         (find_what_p_points_to): Adjust for changed interface of
13582         find_what_var_points_to.
13583         (compute_points_to_sets): Likewise.
13584         (ipa_pta_execute): Likewise.
13586 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13588         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13589         * configure: Regenerate.
13590         * config.in: Regenerate.
13591         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13592         #nobits/#progbits if supported.
13594 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
13596         PR target/56121
13597         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13598         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13599         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13601 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13603         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13604         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13606 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13608         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13609         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13611 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13613         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13614         declaration.
13615         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13616         * config/arm/cortex-a7.md: New bypasses using
13617         arm_mac_accumulator_is_result.
13619 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13621         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
13622         (cortex_a7_neon_mla): Likewise.
13623         (cortex_a7_fpfmad): New reservation.
13624         (cortex_a7_fpmacs): Use ffmas and update required units.
13625         (cortex_a7_fpmuld): Update required units and latency.
13626         (cortex_a7_fpmacd): Likewise.
13627         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13628         (cortex_a7_neon). Likewise.
13629         (bypass) Update participating units.
13631 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13633         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13634         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13635         from fmac to ffma.
13636         * config/arm/vfp11.md (vfp_farith): Use ffmas.
13637         (vfp_fmul): Use ffmad.
13638         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13639         (cortex_r4_fmacd): Use ffmad.
13640         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13641         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
13642         (cortex_a9_fmacd): Use ffmad.
13643         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13644         (cortex_a8_vfp_macd): Use ffmad.
13645         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13646         (cortex_a5_fpmacd): Use ffmad.
13647         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13648         (cortex_a15_vfp_macd): Use ffmad.
13649         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13651 2013-01-29  Jason Merrill  <jason@redhat.com>
13653         PR libstdc++/54314
13654         * varasm.c (default_assemble_visibility): Don't warn about
13655         visibility on artificial decls.
13657 2013-01-29  Richard Biener  <rguenther@suse.de>
13659         PR tree-optimization/56113
13660         * tree-ssa-structalias.c (equiv_class_lookup): Also return
13661         the bitmap leader.
13662         (label_visit): Free duplicate bitmaps and record the leader instead.
13663         (perform_var_substitution): Adjust.
13665 2013-01-29  Richard Biener  <rguenther@suse.de>
13667         PR tree-optimization/55270
13668         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13669         the CFG, schedule loops for fixup.
13671 2013-01-29  Nick Clifton  <nickc@redhat.com>
13673         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13674         SP_REG.
13676 2013-01-28  Leif Ekblad  <leif@rdos.net>
13678         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13679         * config/i386/i386.h (TARGET_RDOS): New macro.
13680         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13681         * config/i386/i386.c (ix86_option_override_internal): For 64bit
13682         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13683         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13684         DEFAULT_LARGE_SECTION_THRESHOLD.
13685         * config/i386/i386.md (R14_REG, R15_REG): New constants.
13686         * config/i386/rdos.h: New file.
13687         * config/i386/rdos64.h: New file.
13689 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
13691         PR other/54814
13692         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13693         TEST_HARD_REG_BIT.
13695 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
13697         PR rtl-optimization/56117
13698         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13699         call cselib_lookup_from_insn on the MEM before calling
13700         add_insn_mem_dependence.
13702 2013-01-28  Richard Biener  <rguenther@suse.de>
13704         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13705         to a stmt that didn't have one.
13706         (copy_phis_for_bb): Likewise for PHI arguments.
13707         (copy_debug_stmt): Likewise for debug stmts.
13709 2013-01-28  Richard Biener  <rguenther@suse.de>
13711         PR tree-optimization/56034
13712         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
13713         (partition_builtin_p): Adjust.
13714         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
13715         it is the last partition.
13716         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13717         up the vertex for the definition.
13718         (classify_partition): Classify whether a partition is a
13719         PKIND_REDUCTION, thus has uses outside of the loop.
13720         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13721         Merge all PKIND_REDUCTION partitions into the last partition.
13722         (tree_loop_distribution): Seed partitions from reductions as well.
13724 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
13726         PR tree-optimization/56125
13727         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13728         pow(x,c) into sqrt(x) * powi(x, n/2) or
13729         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13730         optimizing for size.
13731         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13732         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13733         integer.
13735         PR tree-optimization/56094
13736         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13737         to UNKNOWN_LOCATION while gimplifying expr.
13739 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
13741         PR target/56114
13742         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13743         operand 0 in movabs insn template for -masm=intel asm alternative.
13744         (*movabs<mode>_2): Ditto for operand 1.
13746 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
13748         PR target/54663
13749         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13750         of microblaze-c.o
13752 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
13754         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13755         tm_file.
13757 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13759         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13760         Undef to avoid warning.
13762 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13764         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13765         * configure: Regenerate.
13767 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
13769         PR tree-optimization/56098
13770         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13771         for stmts with volatile ops.
13772         (cond_store_replacement): Don't optimize if assign has volatile ops.
13773         (cond_if_else_store_replacement_1): Don't optimize if either
13774         then_assign or else_assign have volatile ops.
13775         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13776         volatile ops.
13778 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
13780         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13782 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
13784         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13785         missing ':' in asm example.
13787 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
13789         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13790         entries into lane and laneq entries.
13791         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13792         Remove AdvSIMD scalar modes.
13793         (aarch64_sq<r>dmulh_laneq<mode>): New.
13794         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13795         modes.
13796         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13797         builtin implementations to relfect changes in RTL in aarch64-simd.md.
13798         * config/aarch64/iterators.md (VCOND): New.
13799         (VCONQ): New.
13801 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
13803         PR target/54222
13804         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13805         Add NULL LIBNAME argument to existing definitions.
13806         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13807         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13808         * config/avr/avr.c (DEF_BUILTIN): Same.
13809         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13810         (avr_expand_builtin): Expand to a vanilla call if a libgcc
13811         implementation is available (DECL_ASSEMBLER_NAME is set).
13812         (avr_fold_absfx): New static function.
13813         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13814         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13815         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13816         AVR_BUILTIN_ABSLLK.
13817         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13818         (abshk, absk, abslk, absllk): Provide as static inline functions.
13820 2013-01-25  Marek Polacek  <polacek@redhat.com>
13822         PR tree-optimization/56035
13823         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
13825 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
13827         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
13828         (*movtf_internal_rex64): Add (!o,C) alternative
13829         (*movxf_internal_rex64): Ditto.
13830         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
13832 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
13834         * doc/invoke.texi: fix typo.
13835         * doc/objc.texi: fix typo.
13837 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
13839         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
13840         for the first two alternatives.
13842 2013-01-24  Diego Novillo  <dnovillo@google.com>
13844         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
13845         (ggc-zone.o): Remove.
13846         * configure.ac: Remove option --with-gc.
13847         * configure: Re-generate.
13848         * doc/install.texi: Remove documentation for --with-gc.
13849         * gengtype.c (write_enum_defn): Remove.  Update all users.
13850         (write_Types_process_field): Remove generation of gt_e_* argument.
13851         (output_type_enum): Remove.  Update all users.
13852         (write_enum_defn): Remove.  Update all users.
13853         (enum alloc_zone): Remove.  Update all users.
13854         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
13855         * ggc-common.c (ggc_splay_alloc): Remove first argument.
13856         Update all callers.
13857         (struct ptr_data): Remove field TYPE.  Update all users.
13858         (gt_pch_note_object): Remove argument TYPE.  Update all users.
13859         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
13860         Update all users.
13861         * ggc-none.c (ggc_alloc_typed_stat): Remove.
13862         (struct alloc_zone): Remove.
13863         (ggc_internal_alloc_zone_stat): Remove.
13864         (ggc_internal_cleared_alloc_zone_stat): Remove.
13865         * ggc-page.c (ggc_alloc_typed_stat): Remove.
13866         (ggc_pch_count_object): Remove last argument.  Update all users.
13867         (ggc_pch_alloc_object): Remove last argument.  Update all users.
13868         (struct alloc_zone): Remove.
13869         * ggc-zone.c: Remove.
13870         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
13871         (struct alloc_zone): Remove.
13872         (ggc_alloc_typed_stat): Remove.
13873         (ggc_alloc_typed): Remove.
13874         (ggc_splay_alloc): Remove first argument.
13875         (rtl_zone): Remove.  Update all users.
13876         (tree_zone): Remove.  Update all users.
13877         (tree_id_zone): Remove.  Update all users.
13878         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
13879         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
13880         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
13881         * tree-ssanames.c: Remove references to zone allocator in comments.
13883 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
13885         * config/avr/avr.c (avr_out_fract): Make register numbers that
13886         might be outside of source operand signed.
13888 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
13890         * config/i386/constraints.md (Yf): New constraint.
13891         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
13892         of f constraint to conditionaly disable x87 register preferences.
13893         (*movdf_internal): Ditto.
13894         (*movsf_internal): Ditto.
13896 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
13898         PR inline-asm/55934
13899         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
13900         that have operands with impossible constraints.
13901         Add a FIXME for a speed-up opportunity.
13902         * lra-constraints.c (process_alt_operands): Verify that a class
13903         selected from constraints on asms is valid for the operand mode.
13904         (curr_insn_transform): Remove incorrect comment.
13906 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
13908         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
13909         TOC operand is a valid symbol ref in the constant pool.
13911 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
13913         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
13915 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
13917         PR target/54222
13918         * config/avr/stdfix.h: New file.
13919         * t-avr (stdfix-gcc.h): New rule to build it.
13920         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13922 2013-01-23  Kostya Serebryany  <kcc@google.com>
13924         * config/darwin.h: remove dependency on
13925         CoreFoundation (asan on Mac OS).
13927 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
13929         PR target/49069
13930         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13931         instead of cmpdi_operand for first comparison operand.
13932         Don't assert that comparison operands aren't both constants.
13934 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
13936         * doc/install.texi (Downloading the Source): Update references to
13937         downloading separate components.
13939 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
13941         * doc/extend.texi (__int128): Improve grammar.
13943 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
13945         PR target/56028
13946         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13947         alternative to (o,r).
13948         (*movdi_internal_rex64): Remove (!o,n) alternative.
13949         (DImode immediate->memory splitter): Remove.
13950         (DImode immediate->memory peephole2): Remove.
13951         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13952         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13953         alternative to (!o,*r).
13954         (*movtf_internal_sse): New pattern.
13955         (*movxf_internal_rex64): New pattern.
13956         (*movxf_internal): Disable for TARGET_64BIT.
13957         (*movdf_internal_rex64): Remove (!o,F) alternative.
13959 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
13961         PR middle-end/56074
13962         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13963         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13964         * tree-vect-loop-manip.c (find_loop_location): Also ignore
13965         stmt locations where LOCATION_LOCUS of the stmt location is
13966         UNKNOWN_LOCATION or BUILTINS_LOCATION.
13968         PR target/55686
13969         * config/i386/i386.md (UNSPEC_STOS): New.
13970         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13971         *strsetqi_1): Add UNSPEC_STOS.
13973 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
13975         PR c++/56067
13976         * doc/invoke.texi: Remove left over -Wsynth example.
13978 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
13980         PR tree-optimization/56051
13981         * fold-const.c (fold_binary_loc): Don't fold
13982         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13983         a narrowing conversion, or widening conversion from signed
13984         to unsigned.
13986 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
13988         PR rtl-optimization/56023
13989         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13990         dependent on debug instruction.
13992 2013-01-21  Martin Jambor  <mjambor@suse.cz>
13994         PR middle-end/56022
13995         * function.c (allocate_struct_function): Call
13996         invoke_set_current_function_hook earlier.
13998 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
14000         * reload1.c (init_reload): Only initialize reload_obstack
14001         during the first call.
14003 2013-01-21  Marek Polacek  <polacek@redhat.com>
14005         * cfgloop.c (verify_loop_structure): Fix up grammar.
14007 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
14009         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14010         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14012 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14014         PR target/56058
14015         * config/arm/marvell-pj4.md: Update copyright year.
14016         Fix up use of alu to alu_reg and simple_alu_imm.
14018 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
14020         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14022 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
14024         PR target/55433
14025         * lra-constraints.c (curr_insn_transform): Don't reuse original
14026         insn for secondary memory move when memory mode should be different.
14028 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14030         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14031         atomic_storedi_1): New patterns.
14033 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14035         btver2 pipeline descriptions.
14036         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14037         descriptions.
14038         * config/i386/i386.md (btver2_decode): New type attributes.
14039         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
14040         type attributes.
14041         * config/i386/btver2.md: New file describing btver2 pipelines.
14043 2013-01-19  Andrew Pinski  <apinski@cavium.com>
14045         PR tree-optimization/52631
14046         * tree-ssa-sccvn (visit_use): Before looking up the original
14047         statement, try looking up the simplified expression.
14049 2013-01-19  Anthony Green  <green@moxielogic.com>
14051         * config/moxie/moxie.c (moxie_expand_prologue): Set
14052         current_function_static_stack_size.
14054 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
14056         PR tree-optimization/56029
14057         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14058         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14060 2013-01-18  Sharad Singhai  <singhai@google.com>
14062         PR tree-optimization/55995
14063         * dumpfile.c (dump_loc): Print location only if available.
14064         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14066 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
14068         PR target/55433
14069         * lra-constraints.c (curr_insn_transform): Reuse original insn for
14070         secondary memory move.
14071         (inherit_reload_reg): Use rclass instead of cl for
14072         check_secondary_memory_needed_p.
14074 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
14076         PR middle-end/56015
14077         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
14078         the case where writing real complex part of target modifies op1.
14080 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
14082         * config/aarch64/aarch64-simd.md
14083         (aarch64_vcond_internal<mode>): Handle unordered cases.
14084         * config/aarch64/iterators.md (v_cmp_result): New.
14086 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
14087             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14089         * config/arm/marvell-pj4.md: New file.
14090         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14091         * config/arm/arm.md (generic_sched): Add marvell_pj4.
14092         (generic_vfp): Likewise.
14093         * config/arm/arm-cores.def: Add marvell-pj4.
14094         * config/arm/arm-tune.md: Regenerate.
14095         * config/arm/arm-tables.opt: Regenerate.
14096         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14097         * doc/invoke.texi: Document marvell-pj4.
14099 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
14101         * config/aarch64/arm_neon.h: Map scalar types to standard types.
14103 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
14105         PR debug/54114
14106         PR debug/54402
14107         PR debug/49888
14108         * var-tracking.c (negative_power_of_two_p): New.
14109         (global_get_addr_cache, local_get_addr_cache): New.
14110         (get_addr_from_global_cache, get_addr_from_local_cache): New.
14111         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
14112         heading comment.
14113         (vt_stack_offset_p): Remove.
14114         (vt_canon_true_dep): Always canonicalize loc's address.
14115         (clobber_overlapping_mems): Make sure we have a MEM.
14116         (local_get_addr_clear_given_value): New.
14117         (val_reset): Clear local cached entries.
14118         (compute_bb_dataflow): Create and release the local cache.
14119         Disable duplicate MEMs clobbering.
14120         (emit_notes_in_bb): Clobber MEMs likewise.
14121         (vt_emit_notes): Create and release the local cache.
14122         (vt_initialize, vt_finalize): Create and release the global
14123         cache, respectively.
14124         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
14126 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
14128         PR libmudflap/53359
14129         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14130         not found in the symtab.
14132 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
14134         PR debug/56006
14135         PR rtl-optimization/55547
14136         PR rtl-optimization/53827
14137         PR debug/53671
14138         PR debug/49888
14139         * alias.c (offset_overlap_p): New, factored out of...
14140         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
14141         the conservative special case for symbolic constants.  Don't
14142         adjust zero sizes on alignment.
14144 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
14146         PR rtl-optimization/52573
14147         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14148         REG_UNUSED for the same register.
14150 2013-01-17  Richard Biener  <rguenther@suse.de>
14151             Marek Polacek  <polacek@redhat.com>
14153         PR rtl-optimization/55833
14154         * loop-unswitch.c (unswitch_loops): Move loop verification...
14155         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
14156         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14157         Set it to true when we're removing a loop from hierarchy tree in
14158         an irreducible region.
14159         (fix_bb_placements): Adjust caller.
14160         (fix_loop_placements): Likewise.
14162 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
14164         * config/avr/builtins.def (DEF_BUILTIN): Factor out
14165         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14166         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14167         Remove ID.  Adjust comments.
14168         * config/avr/avr-c.c (avr_builtin_name): Remove.
14169         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14170         * config/avr/avr.c (avr_tolower): New static function.
14171         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
14172         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14173         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14174         default expansion.
14176 2013-01-17  Jan Hubicka  <jh@suse.cz>
14178         PR tree-optimization/55273
14179         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14181 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
14183         PR target/55981
14184         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14185         store through atomic_store<mode>_1.
14186         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14188 2013-01-17  Martin Jambor  <mjambor@suse.cz>
14190         PR tree-optimizations/55264
14191         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14192         for virtual methods.
14193         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14194         virtual methods before inlining is over.
14195         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14196         virtual functions.
14197         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14198         non-virtual.
14200 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
14202         PR rtl-optimization/56005
14203         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14204         pending reads for prefetch.
14206 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
14208         * config/aarch64/aarch64.md
14209         (*cstoresi_neg_uxtw): New pattern.
14210         (*cmovsi_insn_uxtw): New pattern.
14211         (*<optab>si3_uxtw): New pattern.
14212         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14213         (*<optab>si3_insn_uxtw): New pattern.
14214         (*bswapsi2_uxtw): New pattern.
14216 2013-01-16  Richard Biener  <rguenther@suse.de>
14218         * tree-inline.c (tree_function_versioning): Remove set but
14219         never used variable.
14221 2013-01-16  Richard Biener  <rguenther@suse.de>
14223         PR tree-optimization/55964
14224         * tree-flow.h (rename_variables_in_loop): Remove.
14225         (rename_variables_in_bb): Likewise.
14226         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14227         (copy_loop_before): Adjust and delete update-ssa status.
14228         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14229         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
14230         (rename_variables_in_loop): Remove.
14231         (slpeel_update_phis_for_duplicate_loop): Likewise.
14232         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14233         use available cfg machinery instead of duplicating it.
14234         Update PHI nodes and perform poor-mans SSA update here.
14235         (slpeel_tree_peel_loop_to_edge): Adjust.
14237 2013-01-16  Richard Biener  <rguenther@suse.de>
14239         PR tree-optimization/54767
14240         PR tree-optimization/53465
14241         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14242         (vrp_visit_phi_node): For PHI arguments coming via backedges
14243         drop all symbolical range information.
14244         (execute_vrp): Compute backedges.
14246 2013-01-16  Richard Biener  <rguenther@suse.de>
14248         * doc/install.texi: Update CLooG and ISL requirements to
14249         0.18.0 and 0.11.1.
14251 2013-01-16  Christian Bruel  <christian.bruel@st.com>
14253         PR target/55301
14254         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14255         (broken_move): Handle UNSPECV_SP_SWITCH_B.
14256         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14258 2013-01-16  DJ Delorie  <dj@redhat.com>
14260         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14261         (UNSPECV_SP_SWITCH_E): New.
14262         (sp_switch_1): Change to an unspec.
14263         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
14264         replace $r15.
14266 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
14268         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14269         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14270         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14271         (expand_mem_thread_fence): Ditto.
14272         (expand_mem_signal_fence): Ditto.
14273         (expand_atomic_load): Ditto.
14274         (expand_atomic_store): Ditto.
14276 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
14278         PR rtl-optimization/55547
14279         PR rtl-optimization/53827
14280         PR debug/53671
14281         PR debug/49888
14282         * alias.c (memrefs_conflict_p): Set sizes to negative after
14283         AND adjustments.
14285 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14287         PR target/55940
14288         * function.c (thread_prologue_and_epilogue_insns): Always
14289         add crtl->drap_reg to set_up_by_prologue.set, even if
14290         stack_realign_drap is false.
14292 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14294         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14295         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14296         *call): Fix indention.
14298 2013-01-15  Tom de Vries  <tom@codesourcery.com>
14300         PR target/55876
14301         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14302         Update comment.
14304 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14306         PR rtl-optimization/55153
14307         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14309 2013-01-15  Martin Jambor  <mjambor@suse.cz>
14311         PR tree-optimization/55920
14312         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14313         accesses as grp_to_be_debug_replaced.
14315 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14317         PR tree-optimization/55920
14318         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14319         there is non-useless type conversion needed from debug rhs to lhs,
14320         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14322 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
14323             Mikael Pettersson  <mikpe@it.uu.se>
14325         PR target/43961
14326         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14327         Thumb.
14328         (ASM_OUTPUT_CASE_LABEL): Remove.
14329         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14330         * final.c (shorten_branches): Update alignment of labels before
14331         jump tables if CASE_VECTOR_SHORTEN_MODE.
14333 2013-01-15  Richard Biener  <rguenther@suse.de>
14335         PR bootstrap/55961
14336         * system.h: Do not include gmp.h for building host tools.
14338 2013-01-15  Richard Biener  <rguenther@suse.de>
14340         PR middle-end/55882
14341         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14342         account for bitpos when computing alignment.
14344 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
14346         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14347         (ix86_target_macros_internal): Likewise.
14349         * config/i386/i386.c (m_CORE2I7): Removed.
14350         (m_CORE_HASWELL): New macro.
14351         (m_CORE_ALL): Likewise.
14352         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14353         (initial_ix86_arch_features): Likewise.
14354         (processor_target_table): Initializations for Core avx2.
14355         (cpu_names): New names "core-avx2".
14356         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14357         PROCESSOR_CORE_HASWELL.
14358         (ix86_issue_rate): New case.
14359         (ia32_multipass_dfa_lookahead): Likewise.
14360         (ix86_sched_init_global): Likewise.
14362         * config/i386/i386.h (TARGET_HASWELL): New macro.
14363         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14364         (processor_type): New PROCESSOR_HASWELL.
14366 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14368         PR tree-optimization/55955
14369         * tree-vect-loop.c (vectorizable_reduction): Give up early on
14370         *SHIFT_EXPR and *ROTATE_EXPR codes.
14372         PR tree-optimization/48766
14373         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14374         -ftrapv disable -fwrapv.
14376 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14378         PR target/55974
14379         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14380         etc. to 1 and not to __flash.
14381         Use LL suffix for __INT24_MAX__ with -mint8.
14382         Use ULL suffix for __UINT24_MAX__ with -mint8.
14384 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14386         * config/avr/avr-arch.h
14387         (struct base_arch_s): Use typedef avr_arch_t instead.
14388         (struct arch_info_s): Use typedef avr_arch_info_t instead.
14389         (struct mcu_type_s): Use typedef avr_mcu_t instead.
14390         * config/avr/avr.c: Same.
14391         * config/avr/avr-devices.c: Same.
14392         * config/avr/driver-avr.c: Same.
14393         * config/avr/gen-avr-mmcu-texi.c: Same.
14394         * config/avr/avr-mcus.def: Adjust comment.
14396 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
14398         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14399         * config/aarch64/iterators.md (VALLDI): New.
14401 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
14402             Andi Kleen  <ak@linux.intel.com>
14404         PR target/55948
14405         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14406         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14407         memmodel flag.
14409 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14411         * config/avr/avr-stdint.h: Remove trailing blanks.
14412         * config/avr/avr-log.h: Same.
14413         * config/avr/avr-arch.h: Same.
14414         * config/avr/avr-devices.c: Same.
14415         * config/avr/avr-dimode.md: Same.
14416         * config/avr/predicates.md: Same.
14417         * config/avr/avr-c.c: Same.  And fix typo.
14419         * config/avr/avr-protos.h: Same.  And:
14420         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14421         (init_cumulative_args): Rename to avr_init_cumulative_args.
14422         (expand_prologue): Rename to avr_expand_prologue.
14423         (expand_epilogue): Rename to avr_expand_epilogue.
14424         (adjust_insn_length): Rename to avr_adjust_insn_length.
14425         (notice_update_cc): Rename to avr_notice_update_cc.
14426         (final_prescan_insn): Rename to avr_final_prescan_insn.
14427         * config/avr/avr.c: Same.
14428         * config/avr/avr.h: Same.
14429         * config/avr/avr.md: Remove trailing blanks.
14430         (prologue): Use avr_expand_prologue.
14431         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14433 2013-01-14  Richard Biener  <rguenther@suse.de>
14435         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14436         verify_location, collect_subblocks): New functions.
14437         (verify_gimple_in_cfg): Verify that locations only reference
14438         BLOCKs in the functions BLOCK tree.
14440 2013-01-14  Richard Biener  <rguenther@suse.de>
14442         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14443         PHI argument.
14444         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14445         unshare reference.
14446         (insert_out_of_ssa_copy_on_edge): Likewise.
14447         (rewrite_close_phi_out_of_ssa): Likewise.
14448         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14449         debug expressions.
14450         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14451         propagated constants.
14452         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14453         can not be shared.
14455 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14457         * config/avr/avr-modes.def: Add GPL copyright notice.
14459 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
14461         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14462         MEMMODEL_MASK to determine memory model.
14463         (atomic_store<mode>): Ditto from operands[2].
14464         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14466 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
14468         PR fortran/55935
14469         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14470         (fold_gimple_assign): Don't call unshare_expr here.
14471         (fold_ctor_reference): Call unshare_expr.
14473 2013-01-13  Terry Guo  <terry.guo@arm.com>
14475         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14476         * doc/fragments.texi: Document MULTILIB_REUSE.
14477         * gcc.c (multilib_reuse): New internal spec.
14478         (set_multilib_dir): Also search multilib from multilib_reuse.
14479         * genmultilib (tmpmultilib3): Refactor code.
14480         (tmpmultilib4): Ditto.
14481         (multilib_reuse): New multilib argument.
14483 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
14485         * Makefile.in: Update copyright.
14487 2013-01-12  Tom de Vries  <tom@codesourcery.com>
14489         PR middle-end/55890
14490         * calls.c (expand_call): Check if arg_nr is valid.
14492 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14494         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14495         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14496         documentation.  Add missing '__' in front of
14497         __builtin_ia32_packssdw256.
14499 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14501         PR target/55719
14502         * config/s390/s390.c (s390_preferred_reload_class): Do not return
14503         NO_REGS for larl operands.
14504         (s390_reload_larl_operand): Use s390_load_address instead of
14505         emit_move_insn.
14507 2013-01-11  Richard Biener  <rguenther@suse.de>
14509         * tree-cfg.c (verify_node_sharing_1): Split out from ...
14510         (verify_node_sharing): ... here.
14511         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14513 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14515         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14516         Substitute TREECHECKING.
14517         * configure: Regenerate.
14518         * Makefile.in (TREECHECKING): New.
14520 2013-01-11  Richard Guenther  <rguenther@suse.de>
14522         PR tree-optimization/44061
14523         * tree-vrp.c (extract_range_basic): Compute zero as
14524         value-range for __builtin_constant_p of function parameters.
14526 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
14528         Update copyright years.
14530 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
14532         PR rtl-optimization/55672
14533         * lra-eliminations.c (mark_not_eliminable): Permit addition with
14534         const to be eliminable.
14536 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
14538         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14539         * configure: Regenerate.
14541 2013-01-10  Richard Biener  <rguenther@suse.de>
14543         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14545 2013-01-10  Richard Biener  <rguenther@suse.de>
14547         PR bootstrap/55792
14548         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14549         locations for virtual PHI arguments.
14550         (rewrite_update_phi_arguments): Likewise.
14552 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
14554         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14555         on to assembler.
14557 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
14559         PR tree-optimization/55921
14560         * tree-complex.c (expand_complex_asm): New function.
14561         (expand_complex_operations_1): Call it for GIMPLE_ASM.
14563 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14565         PR target/55718
14566         * config/s390/s390.c (s390_symref_operand_p)
14567         (s390_loadrelative_operand_p): Merge the two functions.
14568         (s390_check_qrst_address, print_operand_address): Add parameters
14569         to s390_loadrelative_operand_p invokation.
14570         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14571         (s390_reload_larl_operand, s390_secondary_reload): Use
14572         s390_loadrelative_operand_p instead of s390_symref_operand_p.
14573         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14575 2013-01-09  Mike Stump  <mikestump@comcast.net>
14577         * dse.c (record_store): Remove unnecessary assert.
14579 2013-01-09  Jan Hubicka  <jh@suse.cz>
14581         PR tree-optimization/55569
14582         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14583         * cfgloop.h (scale_loop_profile): Likewise.
14585 2013-01-09  Jan Hubicka  <jh@suse.cz>
14587         PR lto/45375
14588         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14589         functions.
14590         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14592 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
14594         PR middle-end/55114
14595         * expr.h (maybe_emit_group_store): Declare.
14596         * expr.c (maybe_emit_group_store): New function.
14597         * builtins.c (expand_builtin_int_roundingfn): Call it.
14598         (expand_builtin_int_roundingfn_2): Likewise.
14600 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
14602         PR rtl-optimization/55829
14603         * lra-constraints.c (match_reload): Add code for absent output.
14604         (curr_insn_transform): Add code for reloads of matched inputs
14605         without output.
14607 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
14609         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14610         attribute of movddup insn to DF.
14611         (*vec_interleave_lowv2df): Ditto.
14612         (vec_dupv2df): Ditto.
14614 2013-01-09  Jan Hubicka  <jh@suse.cz>
14616         PR tree-optimiation/55875
14617         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14618         EVERY_ITERATION parameter.
14619         (number_of_iterations_exit): Check if exit is executed every iteration.
14620         (idx_infer_loop_bounds): Similarly here.
14621         (n_of_executions_at_most): Simplify
14622         to only test for cases where statement is dominated by the
14623         particular bound; handle correctly the "postdominance" test.
14624         (scev_probably_wraps_p): Use max loop iterations info
14625         as a global bound first.
14627 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
14628             Nick Clifton  <nickc@redhat.com>
14630         * config/v850/v850.md (cbranchsf4): New pattern.
14631         (cstoresf4): New pattern.
14632         (cbranchdf4): New pattern.
14633         (cstoredf4): New pattern.
14634         (movsicc): Disallow floating point comparisons.
14635         (cmpsf_le_insn): Fix order of operators.
14636         (cmpsf_lt_insn): Likewise.
14637         (cmpsf_eq_insn): Likewise.
14638         (cmpdf_le_insn): Likewise.
14639         (cmpdf_lt_insn): Likewise.
14640         (cmpdf_eq_insn): Likewise.
14641         (cmpsf_ge_insn): Use LE comparison.
14642         (cmpdf_ge_insn): Likewise.
14643         (cmpsf_gt_insn): Use LT comparison.
14644         (cmpdf_gt_insn): Likewise.
14645         (cmpsf_ne_insn): Delete pattern.
14646         (cmpdf_ne_insn): Delete pattern.
14647         * config/v850/v850.c (v850_gen_float_compare): Use
14648         gen_cmpdf_eq_insn for NE comparison.
14649         (v850_float_z_comparison_operator)
14650         (v850_float_nz_comparison_operator): Move from here ...
14651         * config/v850/predicates.md: ... to here.  Move GT and GE
14652         comparisons into v850_float_z_comparison_operator.
14653         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14654         Delete prototype.
14655         (v850_float_nz_comparison_operator): Likewise.
14657 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14659         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14660         with calls to gen_insvsi/gen_insvdi.
14662 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14664         * config/i386/i386.c (initial_ix86_tune_features): Set up
14665         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14667 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
14668             Jakub Jelinek  <jakub@redhat.com>
14670         PR tree-optimization/48189
14671         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14672         If nitercst is 0, don't predict the exit edge.
14674 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14676         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14677         in asm_fprintf with reg_names.
14678         (aarch64_print_operand_address): Likewise.
14679         (aarch64_return_addr): Likewise.
14680         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14682 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14684         * config/pa/pa.h (VAL_U6_BITS_P): Define.
14685         (INT_U6_BITS): Likewise.
14686         * config/pa/predicates.md (uint6_operand): New predicate.
14687         (shift5_operand, shift6_operand): Likewise.
14688         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14689         arith32_operand.
14690         (lshrdi3): Use shift6_operand.
14691         (shrpsi4, shrpdi4): New insn patterns.
14692         (extzv): Delete expander.
14693         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
14694         predicates in unamed zero extract patterns.  Tighten common constraint.
14695         (extv): Delete expander.
14696         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
14697         predicates in unamed sign extract patterns.  Tighten common constraint.
14698         (insv): Delete expander.
14699         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
14700         predicates in unamed insert patterns.  Tighten common constraint.
14701         Change uint32_operand predicate to uint6_operand predicate in unamed
14702         DImode pattern to insert constant values of type 1...1xxxx.
14704 2013-01-04  Jan Hubicka  <jh@suse.cz>
14706         PR tree-optimization/55823
14707         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14708         issue.
14710 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14711             Uros Bizjak  <ubizjak@gmail.com>
14713         PR rtl-optimization/55845
14714         * df-problems.c (can_move_insns_across): Stop scanning at
14715         volatile_insn_p source instruction or give up if
14716         across_from .. across_to range contains any volatile_insn_p
14717         instructions.
14719 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
14721         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14722         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14723         Declare.
14724         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
14725         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
14727 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14729         PR fortran/55341
14730         * asan.c (asan_clear_shadow): New function.
14731         (asan_emit_stack_protection): Use it.
14733 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
14735         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14736         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14737         with tab instead of space.
14739 2013-01-08  Nick Clifton  <nickc@redhat.com>
14741         * config/rl78/rl78.c (rl78_expand_prologue): Always select
14742         register bank 0 at the start of an interrupt handler.
14743         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14744         MDBH registers.
14746 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
14748         * config/aarch64/aarch64-simd.md
14749         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14750         (aarch64_simd_bsl): Likewise.
14751         (aarch64_vcond_internal<mode>): Likewise.
14752         (vcond<mode><mode>): Likewise.
14753         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14754         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14756 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
14758         * config/aarch64/aarch64-builtins.c
14759         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14761 2013-01-08  Martin Jambor  <mjambor@suse.cz>
14763         PR debug/55579
14764         * tree-sra.c (analyze_access_subtree): Return true also after
14765         potentially creating a debug-only replacement.
14767 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14769         PR middle-end/55890
14770         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14772         PR tree-optimization/54120
14773         * tree-vrp.c (range_fits_type_p): Don't allow
14774         src_precision < precision from signed vr to unsigned_p
14775         if vr->min or vr->max is negative.
14776         (simplify_float_conversion_using_ranges): Test can_float_p
14777         against CODE_FOR_nothing.
14779 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14780             Richard Biener  <rguenther@suse.de>
14782         PR middle-end/55851
14783         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14784         types instead of just INTEGER_TYPE types.
14786 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
14788         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14789         TF_SIZE): Define.
14791 2013-01-07  Steve Ellcey  <sellcey@mips.com>
14793         PR target/42661
14794         * config/mips/mips.opt: Change mad to mmad to match documentation.
14796 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14798         PR target/55897
14799         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14800         .progmemx.data now.
14802 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14804         PR target/55897
14805         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14806         (avr_addrspace_t): Add .section_name field.
14807         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14808         array size.
14809         (avr_addrspace): Same.  Initialize .section_name.  Remove last
14810         NULL entry.  Put __memx into .progmemx.data.
14811         (progmem_section_prefix): Remove.
14812         (avr_asm_init_sections): No need to initialize progmem_section.
14813         (avr_asm_named_section): Use avr_addrspace[].section_name to get
14814         section name prefix.
14815         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
14816         retrieve the progmem section.
14817         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14818         boundary to run over avr_addrspace[].
14819         (avr_register_target_pragmas): Ditto.
14821 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
14823         * varasm.c (output_constant_def_contents): For asan_protect_global
14824         protected strings, adjust DECL_ALIGN if needed, before testing for
14825         anchored symbols.
14826         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
14827         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
14828         normal decls.
14829         (output_object_block): For asan protected decls, emit asan padding
14830         after their contents.
14831         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
14832         (asan_finish_file): Test it here instead.
14834 2013-01-07  Nick Clifton  <nickc@redhat.com>
14835             Matthias Klose  <doko@debian.org>
14836             Doug Kwan  <dougkwan@google.com>
14837             H.J. Lu  <hongjiu.lu@intel.com>
14839         PR driver/55470
14840         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
14842         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
14844         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
14846         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
14848         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
14850 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14852         PR target/54461
14853         * doc/install.texi (Cross-Compiler-Specific Options): Document
14854         --with-avrlibc.
14856 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
14858         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
14859         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
14860         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
14861         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
14862         vqmovun_high_s64): Fix source operand number and update copyright.
14864 2013-01-07  Richard Biener  <rguenther@suse.de>
14866         PR middle-end/55890
14867         * gimple.h (gimple_call_builtin_p): New overload.
14868         * gimple.c (validate_call): New function.
14869         (gimple_call_builtin_p): Likewise.
14870         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14871         Use gimple_call_builtin_p.
14872         (find_func_clobbers): Likewise.
14873         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
14874         (strlen_optimize_stmt): Likewise.
14876 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
14878         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
14879         (vld1q_dup_*): Likewise.
14880         (vld1_*): Likewise.
14881         (vld1q_*): Likewise.
14882         (vld1_lane_*): Likewise.
14883         (vld1q_lane_*): Likewise.
14885 2013-01-07  Richard Biener  <rguenther@suse.de>
14887         * lto-streamer.h (LTO_minor_version): Bump to 2.
14889 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
14891         * config/aarch64/aarch64-protos.h
14892         (aarch64_const_double_zero_rtx_p): Rename to...
14893         (aarch64_float_const_zero_rtx_p): ...this.
14894         (aarch64_float_const_representable_p): New.
14895         (aarch64_output_simd_mov_immediate): Likewise.
14896         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
14897         move immediate case.
14898         * config/aarch64/aarch64.c
14899         (aarch64_const_double_zero_rtx_p): Rename to...
14900         (aarch64_float_const_zero_rtx_p): ...this.
14901         (aarch64_print_operand): Allow printing of new constants.
14902         (aarch64_valid_floating_const): New.
14903         (aarch64_legitimate_constant_p): Check for valid floating-point
14904         constants.
14905         (aarch64_simd_valid_immediate): Likewise.
14906         (aarch64_vect_float_const_representable_p): New.
14907         (aarch64_float_const_representable_p): Likewise.
14908         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
14909         (aarch64_output_simd_mov_immediate): New.
14910         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
14911         (*movdf_aarch64): Likewise.
14912         * config/aarch64/constraints.md (Ufc): New.
14913         (Y): call aarch64_float_const_zero_rtx.
14914         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14916 2013-01-07  Richard Biener  <rguenther@suse.de>
14918         PR tree-optimization/55888
14919         PR tree-optimization/55862
14920         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14921         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14922         not if it is contained therein.
14924 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14926         * config/avr/t-avr: Typo.
14928 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14930         PR55243
14931         * config/avr/t-avr: Don't automatically rebuild
14932         $(srcdir)/config/avr/t-multilib
14933         $(srcdir)/config/avr/avr-tables.opt
14934         $(srcdir)/doc/avr-mmcu.texi
14935         (avr-mcus): New phony target to build them on request.
14936         (s-avr-mlib, s-avr-mmcu-texi): Remove.
14937         * avr/avr-mcus.def: Adjust comments.
14939 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
14941         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14943 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14945         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14947 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14949         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14951 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
14953         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14954         to generate profiling.
14955         * config/rs6000/aix64.h (LIB_SPEC): Same.
14957 2013-01-04  Andrew Pinski  <apinski@cavium.com>
14959         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14960         New function.
14961         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14963 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
14965         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14966         unconditionally.
14967         (ix86_expand_move): Ditto.
14968         (ix86_zero_extend_to_Pmode): Ditto.
14969         (ix86_expand_call): Ditto.
14970         (ix86_expand_special_args_builtin): Ditto.
14971         (ix86_expand_builtin): Ditto.
14973 2013-01-04  Richard Biener  <rguenther@suse.de>
14975         PR tree-optimization/55862
14976         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14977         translating them through PHI nodes.
14979 2013-01-04  Martin Jambor  <mjambor@suse.cz>
14981         PR tree-optimization/55755
14982         * tree-sra.c (sra_modify_assign): Do not check that an access has no
14983         children when trying to avoid producing a VIEW_CONVERT_EXPR.
14985 2013-01-04  Marek Polacek  <polacek@redhat.com>
14987         PR middle-end/55859
14988         * opts.c (default_options_optimization): Clarify error message.
14990 2013-01-04  Richard Biener  <rguenther@suse.de>
14992         PR middle-end/55863
14993         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14994         reassociation.
14996 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14998         PR target/53789
14999         * config/pa/pa.md (movsi): Revert previous change.
15000         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15001         references.
15003 2013-01-03  Richard Henderson  <rth@redhat.com>
15005         * config/i386/i386.c (ix86_expand_move): Always assign to op1
15006         after eliminating TLS symbols.
15008 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
15010         PR bootstrap/50167
15011         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15012         * graphite-poly.c (debug_gmp_value): Likewise.
15014 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
15016         PR target/55712
15017         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15018         selected code model, define __code_mode_small__, __code_model_medium__,
15019         __code_model_large__, __code_model_32__ or __code_model_kernel__.
15020         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15021         xchg temporary register with %k.  Declare temporary register as
15022         early clobbered.
15023         [__x86_64__]: For medium and large code models, preserve %rbx register.
15025 2013-01-03  Richard Biener  <rguenther@suse.de>
15027         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
15028         (dump_subscript): Adjust.
15029         (finalize_ddr_dependent): Do not dump redundant info.
15030         (analyze_siv_subscript): Adjust.
15031         (subscript_dependence_tester): Likewise.
15032         (compute_affine_dependence): Likewise.
15034 2013-01-03  Richard Biener  <rguenther@suse.de>
15036         Revert
15037         2013-01-03  Richard Biener  <rguenther@suse.de>
15039         PR tree-optimization/55857
15040         * tree-vect-stmts.c (vectorizable_load): Do not setup
15041         re-alignment for invariant loads.
15043         2013-01-02  Richard Biener  <rguenther@suse.de>
15045         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15046         invariant load do not generate a vector load from the scalar location.
15048 2013-01-03  Richard Biener  <rguenther@suse.de>
15050         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15051         for not vectorizing.
15052         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15053         not build INDIRECT_REFs, call get_name once only.
15054         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
15055         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15057 2013-01-03  Richard Biener  <rguenther@suse.de>
15059         PR tree-optimization/55857
15060         * tree-vect-stmts.c (vectorizable_load): Do not setup
15061         re-alignment for invariant loads.
15063 2013-01-03  Richard Biener  <rguenther@suse.de>
15065         PR lto/55848
15066         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15067         prefer a built-in decl.
15069 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
15071         * gcc.c (process_command): Update copyright notice dates.
15072         * gcov.c (print_version): Likewise.
15073         * gcov-dump.c (print_version): Likewise.
15075         PR rtl-optimization/55838
15076         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15077         iv0.step, iv1.step and step.
15079 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
15080             Marc Glisse  <marc.glisse@inria.fr>
15082         PR tree-optimization/55832
15083         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15084         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15085         integer_{one,zero}_node.
15087 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
15089         PR debug/54402
15090         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15091         * var-tracking.c (reverse_op): Don't add reverse ops to
15092         VALUEs that have already
15093         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
15095 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
15097         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15099 2013-01-02  Teresa Johnson  <tejohnson@google.com>
15101         * dumpfile.c (dump_loc): Print filename with location.
15102         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15103         new location_t parameter to emit complete unroll message with
15104         new dump framework.
15105         (canonicalize_loop_induction_variables): Compute loops location
15106         and pass to try_unroll_loop_completely.
15107         * loop-unroll.c (report_unroll_peel): New function.
15108         (peel_loops_completely): Use new dump format with location
15109         for main dumpfile message, and invoke report_unroll_peel on success.
15110         (decide_unrolling_and_peeling): Ditto.
15111         (decide_peel_once_rolling): Remove old dumpfile message subsumed
15112         by report_unroll_peel.
15113         (decide_peel_completely): Ditto.
15114         (decide_unroll_constant_iterations): Ditto.
15115         (decide_unroll_runtime_iterations): Ditto.
15116         (decide_peel_simple): Ditto.
15117         (decide_unroll_stupid): Ditto.
15118         * cfgloop.c (get_loop_location): New function.
15119         * cfgloop.h (get_loop_location): Declare.
15121 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
15123         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15124         NULL.
15126 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15128         PR middle-end/55198
15129         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15130         BLKmode objects when EXPAND_MEMORY is specified.
15132 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
15134         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15135         in loop predicate.
15136         (fold_builtin_cpu): Do not share cpu model decls across statements.
15138 2013-01-02  Jason Merrill  <jason@redhat.com>
15140         PR c++/55804
15141         * tree.c (build_array_type_1): Revert earlier change.
15143 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
15145         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15146         "cortex-a57".
15147         * config/aarch64/aarch64-tune.md: Re-generate.
15149 2013-01-02  Richard Biener  <rguenther@suse.de>
15151         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15152         invariant load do not generate a vector load from the scalar location.
15154 2013-01-02  Richard Biener  <rguenther@suse.de>
15156         PR bootstrap/55784
15157         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15158         * configure: Regenerate.
15160 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15162         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15163         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15164         (expand_builtin_int_roundingfn_2): Keep the original target around
15165         for the fallback case.
15167 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15169         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15170         to be clear for sign changes.
15172 2013-01-01  Jan Hubicka  <jh@suse.cz>
15174         * ipa-inline-analysis.c: Fix formatting.
15176 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
15178         PR tree-optimization/55831
15179         * tree-vect-loop.c (get_initial_def_for_induction): Use
15180         gsi_after_labels instead of gsi_start_bb.
15182 Copyright (C) 2013 Free Software Foundation, Inc.
15184 Copying and distribution of this file, with or without modification,
15185 are permitted in any medium without royalty provided the copyright
15186 notice and this notice are preserved.