]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
[AArch64] Implement TARGET_GIMPLE_FOLD_BUILTIN for aarch64 backend.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
0ac198d3
JG
12013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2 Tejas Belagod <tejas.belagod@arm.com>
3
4 * config/aarch64/aarch64-builtins.c
5 (aarch64_gimple_fold_builtin): New.
6 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7 * config/aarch64/aarch64-simd-builtins.def (addv): New.
8 * config/aarch64/aarch64-simd.md (addpv4sf): New.
9 (addvv4sf): Update.
10 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
11
58cff58c
N
122013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13
14 * config/aarch64/aarch64.md
15 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
16
7e0228bf
N
172013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18
19 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
20 (*ngcsi_uxtw): New pattern.
21
5819f96f
KT
222013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23 Julian Brown <julian@codesourcery.com>
24
25 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
26 (TB_DREG): Add T_V4HF.
27 (v4hf_UP): New macro.
28 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN,
30 NEON_FLOAT_NARROW.
31 Handle initialisation of V4HF. Adjust initialisation of reinterpret
32 built-ins.
33 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN,
34 NEON_FLOAT_NARROW.
35 (arm_vector_mode_supported_p): Handle V4HF.
36 (arm_mangle_map): Handle V4HFmode.
37 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
38 * config/arm/arm_neon_builtins.def: Add entries for
39 vcvtv4hfv4sf, vcvtv4sfv4hf.
40 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
41 (neon_vcvtv4hfv4sf): Likewise.
42 * config/arm/neon-gen.ml: Handle half-precision floating point
43 features.
44 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
45 * config/arm/arm_neon.h: Regenerate.
46 * config/arm/neon.ml (type elts): Add F16.
47 (type vectype): Add T_float16x4, T_floatHF.
48 (type vecmode): Add V4HF.
49 (type features): Add Requires_FP_bit feature.
50 (elt_width): Handle F16.
51 (elt_class): Likewise.
52 (elt_of_class_width): Likewise.
53 (mode_of_elt): Refactor.
54 (type_for_elt): Handle F16, fix error messages.
55 (vectype_size): Handle T_float16x4.
56 (vcvt_sh): New function.
57 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
58 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
59 (string_of_mode): Handle V4HF.
60 * doc/arm-neon-intrinsics.texi: Regenerate.
61
1ef395e4
JG
622013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
63
64 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
65 format specifier in 'X' case.
66
41c34e94
AM
672013-04-25 Alan Modra <amodra@gmail.com>
68
69 PR target/57052
70 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
71 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
72 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
73 Repeat for many other rotate/shift and mask patterns using subregs.
74 Name lshiftrt insns.
75 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
76 on WORDS_BIG_ENDIAN.
77
b9a7eb5d
AM
782013-04-25 Alan Modra <amodra@gmail.com>
79
80 * config.gcc: Support little-endian powerpc-linux targets.
81 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
82 (LINK_OS_LINUX_SPEC): Define.
83 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
84 Preserve MASK_LITTLE_ENDIAN.
85 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
86 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
87 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
88 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
89 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
90 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
91 Correct fp word order for little-endian. Don't shift toc entries
92 smaller than a word for little-endian.
93 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
94 (bswapdi2 splits): Correct low-part subreg for little-endian.
95 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
96 low/high where such is correct only for be.
97 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
98 little-endian for -mcall-aixdesc.
99
87f73374
AM
1002013-04-25 Alan Modra <amodra@gmail.com>
101
102 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
103 replace_equiv_address_nv.
104
cabf91cd
AM
1052013-04-25 Alan Modra <amodra@gmail.com>
106
107 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
108
0ae24cc8
VM
1092013-04-24 Vladimir Makarov <vmakarov@redhat.com>
110
111 Revert:
112 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
113 * rtl.h (struct rtx_def): ...
cabf91cd 114
77bce07c
VM
1152013-04-24 Vladimir Makarov <vmakarov@redhat.com>
116
117 PR rtl-optimizations/57046
118 * lra-constraints (split_reg): Set up lra_risky_transformations_p
119 for multi-reg splits.
120
0db63e7f
L
1212013-04-24 H.J. Lu <hongjiu.lu@intel.com>
122
123 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
124
3362b6b6
SA
1252013-04-24 Sterling Augustine <saugustine@google.com>
126
127 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
128 (comp_dir_string, debug_str_dwo_section): New.
129 (DEBUG_STR_DWO_SECTION): Rename to ...
130 (DEBUG_DWO_STR_SECTION): ... this.
131 (DEBUG_NORM_STR_SECTION): Delete.
132 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
133 (DEBUG_STR_DWO_SECTION_FLAGS): New.
134 (find_AT_string): Move most logic to ...
135 (find_AT_string_in_table): ... here. New.
136 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
137 add_skeleton_AT_string. Delete logic.
138 (output_skeleton_debug_sections): Remove call to
139 add_top_level_skeleton_die_attrs.
140 (add_comp_dir_attribute): Move logic to comp_dir_string.
141 (dwarf2out_init): Initialize debug_str_dwo_section.
142 (output_indirect_string): Call find_string_form.
143 (output_indirect_strings): Rewrite.
144 (prune_unused_types): Empty skeleton_debug_str_hash.
145 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
146 (dwarf2out_finish): Call output_indirect_strings.
147
e93e18e9
PC
1482013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
149
150 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
151
f6ce35ac
VM
1522013-04-24 Vladimir Makarov <vmakarov@redhat.com>
153
cabf91cd 154 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
155 (LRA_SUBREG_P): New macro.
156 * recog.c (register_operand): Check LRA_SUBREG_P.
157 * lra.c (lra): Add note at the end of RTL code. Align non-empty
158 stack frame.
159 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
160 (lra_final_code_change): Skip subreg change for operators.
161 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
162 if there are no operand changes.
163 * lra-constraints.c (curr_insn_set): New.
164 (match_reload): Set LRA_SUBREG_P.
165 (emit_spill_move): Ditto.
166 (check_and_process_move): Use curr_insn_set. Process only single
167 set insns. Don't initialize sec_mem_p and change_p.
168 (simplify_operand_subreg): Use LRA_SUBREG_P.
169 (reg_in_class_p): New function.
170 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
171 of #ifdef. Add code to remove cycling.
172 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
173 non-null disp. Reload inner instead of disp when base and index
174 are null. Try to put lo_sum into register.
175 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 176 (check_and_process_move): Move code for move cost check to
f6ce35ac 177 simple_move_p. Remove equiv_substitution.
cabf91cd 178 (simple_move_p): New function.
f6ce35ac
VM
179 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
180 curr_insn_set. Call check_and_process_move only for single set
181 insns. Use the new function. Move call of check_and_process_move
182 after operand equiv substitution and address process.
183
38047d90
JG
1842013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
185
186 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
187 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
188 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
189
13f39b2e
PC
1902013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
191
192 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
193
97c116dc
MP
1942013-04-24 Marek Polacek <polacek@redhat.com>
195
196 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
197 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
198 (select_loops_exit_conditions): Likewise.
199 (number_of_iterations_for_all_loops): Likewise.
200 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
201 (scev_analysis): Likewise.
202
83082391
CM
2032013-04-02 Catherine Moore <clm@codesourcery.com>
204 Chao-ying Fu <fu@mips.com>
205
cabf91cd
AM
206 * config/mips/micromips.md (jraddiusp): New pattern.
207 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
208 instruction if possible.
83082391 209
19e34aa2
AM
2102013-04-24 Alan Modra <amodra@gmail.com>
211
212 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
213
fdb6603c
JB
2142013-04-24 Julian Brown <julian@codesourcery.com>
215 Chung-Lin Tang <cltang@codesourcery.com>
216
217 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
218 dependency behavior in enumeration type DIE generation. Add TODO
219 note to comments about future DW_FORM_sdata/udata re-work of related
220 code.
221
bf190e8d
LC
2222013-04-23 Lawrence Crowl <crowl@google.com>
223
224 * Makefile.in: Update as needed below.
225
226 * hash-table.h (class hash_table):
227 Correct many methods with parameter types compare_type to the correct
228 value_type. (Correct code was unlikely to notice the change.)
229 (hash_table::elements_with_deleted) New.
230 (class hashtable::iterator): New.
231 (hashtable::begin()): New.
232 (hashtable::end()): New.
233 (FOR_EACH_HASH_TABLE_ELEMENT): New.
234
235 * statistics.c (statistics_hashes):
236 Change type to hash_table. Update dependent calls and types.
237
238 * tree-into-ssa.c (var_infos):
239 Change type to hash_table. Update dependent calls and types.
240
241 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
242 Change type to hash_table. Update dependent calls and types.
243
244 * tree-ssa-loop-im.c (struct mem_ref.refs):
245 Change type to hash_table. Update dependent calls and types.
246
247 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
248 Change type to hash_table. Update dependent calls and types.
249
250 * tree-ssa-sccvn.c (vn_tables_s::nary):
251 Change type to hash_table. Update dependent calls and types.
252 (vn_tables_s::phis): Likewise.
253 (vn_tables_s::references): Likewise.
254
255 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
256 (vn_reference_eq): Update parameter and return types.
257
258 * tree-ssa-structalias.c (pointer_equiv_class_table):
259 Change type to hash_table. Update dependent calls and types.
260 (location_equiv_class_table): Likewise.
261
262 * tree-vect-data-refs.c: Consequential changes for making
263 peeling a hash_table.
264
265 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
266 (destroy_loop_vec_info): Dependent hash_table update.
267
268 * tree-vectorizer.h (peeling_htab):
269 Change type to hash_table. Update dependent calls and types.
270
d70a81dd
SC
2712013-04-23 Shiva Chen <shiva0217@gmail.com>
272
cabf91cd
AM
273 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
274 to check the register content is equal or not.
275 * lra-constraints.c (match_reload): Use lra_assign_reg_val
276 to assign register content record.
277 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 278 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
279 * lra-int.h (struct lra_reg): Add offset member.
280 (lra_reg_val_equal_p): New static inline function.
281 (lra_update_reg_val_offset): New static inline function.
282 (lra_assign_reg_val): New static inline function.
283 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
284 to assign register content record.
285 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 286
b894a1f3
CM
2872013-04-23 Catherine Moore <clm@codesourcery.com>
288
289 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
290 operands. Record compression.
291
ecd14de9
XDL
2922013-04-23 Xinliang David Li <davidxl@google.com>
293
294 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
295
92e776e9
RB
2962013-04-23 Richard Biener <rguenther@suse.de>
297
298 PR middle-end/57036
299 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
300 parameter, only add abnormal goto edges from the copied body
301 if the call could perform abnormal gotos.
302 (copy_cfg_body): Adjust.
303
a15ee567
SN
3042013-04-23 Sofiane Naci <sofiane.naci@arm.com>
305
306 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
307
aaec3fc8
AK
3082013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
309
310 * config/s390/sjlj.S: New file.
311 * config/s390/target.h: New file.
312 * configure.tgt: Set options for S/390.
313
08c52234
AS
3142013-04-23 Andreas Schwab <schwab@linux-m68k.org>
315
316 * coretypes.h (gimple_stmt_iterator): Add struct to make
317 compatible with C.
318
999c1171
RB
3192013-04-23 Richard Biener <rguenther@suse.de>
320
321 PR tree-optimization/57026
322 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
323 from SSA names occuring in abnormal PHI nodes.
324
53669259
AK
3252013-04-22 Andi Kleen <ak@linux.intel.com>
326
327 * lto/lto.c (print_lto_report_1): Fix LTO report names.
328
1a0ad150
AK
3292013-04-22 Andi Kleen <ak@linux.intel.com>
330
331 * lto/lto.c (print_lto_report_1): Declare early.
332 (read_cgraph_and_symbols): Call print_lto_report_1 early.
333
057f8f20
AK
3342013-04-22 Andi Kleen <ak@linux.intel.com>
335
336 * common.opt (-flto-report-wpa): Add.
337 * doc/invoke.texi (-flto-report-wpa): Add.
338 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
339 (lto_main): dito.
340
473b1e05
XDL
3412013-04-22 Xinliang David Li <davidxl@google.com>
342
343 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
344 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
345 * Makefile.in: New dependency
346
cabf91cd 347 David Daney <ddaney.cavm@gmail.com>
b1485a33 348
cabf91cd
AM
349 * configure.ac (gcc_cv_as_micromips_support): Use the
350 --fatal-warnings option.
351 * configure: Regenerate.
b1485a33 352
829d0168
MP
3532013-04-22 Marek Polacek <polacek@redhat.com>
354
355 PR sanitizer/56990
356 * tsan.c (instrument_expr): Don't instrument expression
357 in case its size is zero.
358
6d9b7208
UB
3592013-04-22 Uros Bizjak <ubizjak@gmail.com>
360
361 PR target/57032
362 Revert:
363 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
364
365 * config/alpha/alpha.c (TARGET_LRA_P): New define.
366
ea679d55
JG
3672013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
368
369 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
370 (gimple_stmt_iterator): New typedef.
371 * gimple.h (gimple_stmt_iterator): Rename to...
372 (gimple_stmt_iterator_d): ... This.
373 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
374 trees be valid for GIMPLE and GENERIC.
375 (TARGET_GIMPLE_FOLD_BUILTIN): New.
376 * gimple-fold.c (gimple_fold_call): Call target hook
377 gimple_fold_builtin.
378 * hooks.c (hook_bool_gsiptr_false): New.
379 * hooks.h (hook_bool_gsiptr_false): New.
380 * target.def (fold_stmt): New.
381 * doc/tm.texi: Regenerate.
382
88a581da
VM
3832013-04-22 Vladimir Makarov <vmakarov@redhat.com>
384
385 PR target/57018
386 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
387 a set sp if no stack realignment.
388
92be22dc
NC
3892013-04-22 Nick Clifton <nickc@redhat.com>
390
391 * config.gcc (tilegx-linux): Extend extra_objs rather than
392 overwriting it.
393 (tilepro-linux): Likewise.
394
0ddec79f
JG
3952013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
396
397 * config/aarch64/aarch64-builtins.c
398 (CF): Remove.
399 (CF0, CF1, CF2, CF3, CF4, CF10): New.
400 (VAR<1-12>): Add MAP parameter.
401 (BUILTIN_*): Likewise.
402 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
403 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
404 (aarch64_ushl_n<mode>): Likewise.
405 (aarch64_sshr_n<mode>): Likewise.
406 (aarch64_ushr_n<mode>): Likewise.
407 (aarch64_<maxmin><mode>): Likewise.
408 (aarch64_sqrt<mode>): Likewise.
409 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
410 (vshr<q>_n_*): Likewise.
411
0050faf8
JG
4122013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
413
414 * config/aarch64/aarch64-builtins.c
415 (aarch64_simd_builtin_type_mode): Handle SF types.
416 (sf_UP): Define.
417 (BUILTIN_GPF): Define.
418 (aarch64_init_simd_builtins): Handle SF types.
419 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
420 (frecps): Likewise.
421 (frecpx): Likewise.
422 * config/aarch64/aarch64-simd.md
423 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
424 (aarch64_frecpe<mode>): New.
425 (aarch64_frecps<mode>): Likewise.
426 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
427 (v8type): Add frecp<esx>.
428 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
429 (aarch64_frecps<mode>): Likewise.
430 * config/aarch64/iterators.md (FRECP): New.
431 (frecp_suffix): Likewise.
432 * config/aarch64/arm_neon.h
433 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
434
0fad3dbc 4352013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
436
437 PR target/56995
438 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
439 (REG_CLASS_NAMES): Idem.
440 (REG_CLASS_CONTENTS): Idem.
441 (REGCLASS_HAS_FP_REG): Idem.
442 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
443 (sh_conditional_register_usage): Idem.
444
3e8a33f9
JL
4452013-04-21 Jeff Law <law@redhat.com>
446
447 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
448 (ssa_forward_propagate_and_combine): Use it.
449
f38e1b0a
VM
4502013-04-19 Vladimir Makarov <vmakarov@redhat.com>
451
452 * lra.c: Update the flow chart diagram.
453
682303da
VM
4542013-04-19 Vladimir Makarov <vmakarov@redhat.com>
455
456 PR rtl-optimization/56847
457 * lra-constraints.c (process_alt_operands): Discourage alternative
458 with non-matche doffsettable memory constraint fro memory with
459 known offset.
460
f6b64c35
RB
4612013-04-19 Richard Biener <rguenther@suse.de>
462
463 PR tree-optimization/56982
464 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
465 function.
466 * gimplify.c (gimplify_call_expr): Notice special calls.
467 (gimplify_modify_expr): Likewise.
468 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
469 abnormal control flow receivers.
470 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
471 in the same way as cfun->has_nonlocal_labels.
472 (gimple_purge_dead_abnormal_call_edges): Likewise.
473 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
474 receivers start a basic-block.
475
01d8bf07
RB
4762013-04-19 Richard Biener <rguenther@suse.de>
477
478 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
479 member ...
480 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
481 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
482 (SLP_TREE_LOAD_PERMUTATION): Add.
483 (vect_transform_slp_perm_load): Adjust prototype.
484 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
485 (vect_free_slp_instance): Likewise.
486 (vect_create_new_slp_node): Likewise.
487 (vect_supported_slp_permutation_p): Remove.
488 (vect_slp_rearrange_stmts): Adjust.
489 (vect_supported_load_permutation_p): Likewise. Inline
490 vect_supported_slp_permutation_p here.
491 (vect_analyze_slp_instance): Compute load permutations per
492 slp node instead of per instance.
493 (vect_get_slp_defs): Adjust.
494 (vect_transform_slp_perm_load): Likewise.
495 (vect_schedule_slp_instance): Remove redundant code.
496 (vect_schedule_slp): Remove hack for PR56270, add it ...
497 * tree-vect-stmts.c (vectorizable_load): ... here, do not
498 CSE loads for SLP. Adjust.
499
ede22fc3
GY
5002013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
501
502 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
503 spelling in two comments.
504
67bc84fb
GY
5052013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
506
507 PR target/56797
508 * config/arm/arm.c (load_multiple_sequence): Require SP
509 as base register for loads if SP is in the register list.
510
e248d83f
MJ
5112013-04-19 Martin Jambor <mjambor@suse.cz>
512
513 PR tree-optimization/56718
514 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
515 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
516 and made public. Adjusted all callers.
517 (ipa_intraprocedural_devirtualization): New function.
518 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
519 (ipa_intraprocedural_devirtualization): Likewise.
520 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
521
4891e8f8
RB
5222013-04-19 Richard Biener <rguenther@suse.de>
523
524 PR tree-optimization/57000
525 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
526
dad89f7c
TG
5272013-04-19 Terry Guo <terry.guo@arm.com>
528
529 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
530 Replace with ...
531 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
532 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
533 (cortex_m4_fmacs): Use new reservations.
534 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
535
72ea0d47
VM
5362013-04-18 Vladimir Makarov <vmakarov@redhat.com>
537
f1e6512c 538 PR rtl-optimization/56999
72ea0d47
VM
539 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
540 related code.
541 (lra_coalesce): Remove split_origin_bitmap and related code.
542 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
543 ranges if necessary.
544
780a5b71
UB
5452013-04-18 Uros Bizjak <ubizjak@gmail.com>
546
547 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
548 New array.
549 (ix86_expand_call): Remove clobbered_registers array and use
550 x86_64_ms_sysv_extra_clobbered_registers instead.
551 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
552 Declare here.
553 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
554 predicate.
555 * config/i386/i386.md (*call_rex64_ms_sysv): Use
556 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
557 (*call_value_rex64_ms_sysv): Ditto.
558
6f5a366a
CC
5592013-04-18 Cary Coutant <ccoutant@google.com>
560
561 * dwarf2out.c (output_pubnames): Check die_perennial_p of
562 parent instead of die_mark.
563
475b8f37
DN
5642013-04-18 Diego Novillo <dnovillo@google.com>
565
566 * gimple.c (create_gimple_tmp): New.
567 (get_expr_type): New.
568 (build_assign): New.
569 (build_type_cast): New.
570 * gimple.h (enum ssa_mode): Define.
571 (gimple_seq_set_location): New.
572 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 573 to use build_assign and build_type_cast.
475b8f37 574
08940f33
RB
5752013-04-18 Richard Biener <rguenther@suse.de>
576
577 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
578 handle negative step. Remove redundant checks.
579 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
580 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
581 for negative step and grouped loads fail to vectorize.
582
0e0f87d4
SB
5832013-04-18 Steven Bosscher <steven@gcc.gnu.org>
584
585 * emit-rtl.c (reset_insn_used_flags): New function.
586 (reset_all_used_flags): Use it.
587 (verify_insn_sharing): New function.
588 (verify_rtl_sharing): Fix verification for SEQUENCEs.
589
4c445590
JJ
5902013-04-18 Jakub Jelinek <jakub@redhat.com>
591
592 PR tree-optimization/56984
593 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
594 and (x >> M) >= N don't register any assertion if N << M is the
595 minimum value.
596
6873ecab
SB
5972013-04-18 Steven Bosscher <steven@gcc.gnu.org>
598
599 * lower-subreg.c (resolve_simple_move): If called self-recursive,
600 do not delete_insn insns that have not yet been emitted, only
601 unlink them with remove_insn.
602 * df-scan.c (df_insn_delete): Revert r197492.
603
3ccb989e
SB
6042013-04-17 Steven Bosscher <steven@gcc.gnu.org>
605
606 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
607 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
608
6092013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
610
611 * config/arm/arm.md (movsicc_insn): Convert define_insn into
612 define_insn_and_split.
613 (and_scc,ior_scc,negscc): Likewise.
614 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
615
3ccb989e 6162013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
617
618 * config/arm/arm.c (use_return_insn): Return 0 for targets that
619 can benefit from using a sequence of LDRD instructions in epilogue
620 instead of a single LDM instruction.
621
6d10a203
MLI
6222013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
623
624 PR 45688
625 * doc/extend.texi: Fix typo.
626
6983e6b5
RB
6272013-04-17 Richard Biener <rguenther@suse.de>
628
629 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
630 (vect_build_slp_tree): ... here.
631 (vect_build_slp_tree_1): Compute which stmts of the SLP group
632 match. Remove special-casing of mismatched complex loads.
633 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
634 re-try the match with swapped commutative operands.
635 (vect_supported_load_permutation_p): Remove special-casing of
636 mismatched complex loads.
637 (vect_analyze_slp_instance): Adjust.
638
ef23e6a2
RB
6392013-04-17 Richard Biener <rguenther@suse.de>
640
641 PR rtl-optimization/56921
642 * cfgloop.h (struct loop): Add simple_loop_desc member.
643 (struct niter_desc): Mark with GTY(()).
644 (simple_loop_desc): Do not use aux field but simple_loop_desc.
645 * loop-iv.c (get_simple_loop_desc): Likewise.
646 (free_simple_loop_desc): Likewise.
647
648 Revert
649 2013-04-16 Richard Biener <rguenther@suse.de>
650
651 PR rtl-optimization/56921
652 * loop-init.c (pass_rtl_move_loop_invariants): Add
653 TODO_do_not_ggc_collect to todo_flags_finish.
654 (pass_rtl_unswitch): Same.
655 (pass_rtl_unroll_and_peel_loops): Same.
656 (pass_rtl_doloop): Same.
657
fc6f94f5
EB
6582013-04-17 Eric Botcazou <ebotcazou@adacore.com>
659
660 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
661 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
662 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
663 references.
664 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
665 * tree-streamer.c (record_common_node): Adjust reference in comment.
666
10a88311
TG
6672013-04-17 Terry Guo <terry.guo@arm.com>
668
669 * config/arm/cortex-m4.md: Add a new bypass.
670
6d9b7208 6712013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
672
673 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
674 New pattern.
675 (*subs_<optab><mode>_multp2): New pattern.
676 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
677 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
678
6d9b7208 6792013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
680
681 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
682 (*subs_mul_imm_<mode>): New pattern.
683
18a6701e
DE
6842013-04-16 David Edelsohn <dje.gcc@gmail.com>
685
686 PR target/56948
687 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
688 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
689 (vsx_movti_32bit): Change j->wa to O->wa.
690
07c37b2f
RB
6912013-04-16 Richard Biener <rguenther@suse.de>
692
693 PR rtl-optimization/56921
694 * loop-init.c (pass_rtl_move_loop_invariants): Add
695 TODO_do_not_ggc_collect to todo_flags_finish.
696 (pass_rtl_unswitch): Same.
697 (pass_rtl_unroll_and_peel_loops): Same.
698 (pass_rtl_doloop): Same.
699
0e0f87d4 7002013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
701
702 * config/arm/arm.c (emit_multi_reg_push): New declaration
703 for an existing function.
704 (arm_emit_strd_push): New function.
705 (arm_expand_prologue): Used here.
706 (arm_emit_ldrd_pop): New function.
707 (arm_expand_epilogue): Used here.
708 (arm_get_frame_offsets): Update condition.
709 (arm_emit_multi_reg_pop): Add a special case for load of a single
710 register with writeback.
711
5e8e2af4
UB
7122013-04-16 Uros Bizjak <ubizjak@gmail.com>
713
714 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
715 description.
716
9fd9ccf7
RB
7172013-04-16 Richard Biener <rguenther@suse.de>
718
719 PR tree-optimization/56756
720 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
721 (first_mem_ref_loc): New.
722 (execute_sm): Place the load temporarily before a previous
723 access instead of in the latch edge to ensure its SSA dependencies
724 are defined at points dominating the load.
725
96fba521
SB
7262013-04-16 Steven Bosscher <steven@gcc.gnu.org>
727
4c8af858
SB
728 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
729 correct fix by moving header and footer insn to the footer of
730 the merged basic block. Clear BB_END of the merged-away block.
731
96fba521
SB
732 PR middle-end/43631
733 * emit-rtl.c (make_note_raw): New function.
734 (link_insn_into_chain): New static inline function.
735 (add_insn): Use it.
736 (add_insn_before, add_insn_after): Factor insn chain linking code...
737 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
738 using link_insn_into_chain.
739 (note_outside_basic_block_p): New helper function for emit_note_after
740 and emit_note_before.
741 (emit_note_after): Use nobb variant of add_insn_after if the note
742 should not be contained in a basic block.
743 (emit_note_before): Use nobb variant of add_insn_before if the note
744 should not be contained in a basic block.
745 (emit_note_copy): Use make_note_raw.
746 (emit_note): Likewise.
747 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
748 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
749 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
750 the moved barrier the tail of the basic block it follows.
751 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
752
7b8265ba
JJ
7532013-04-15 Jakub Jelinek <jakub@redhat.com>
754
755 PR tree-optimization/56962
756 * gimple-ssa-strength-reduction.c (record_increment): Only set
757 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
758 either rhs1 or rhs2 is equal to c->base_expr.
759
5185d248
RB
7602013-04-15 Richard Biener <rguenther@suse.de>
761
762 PR tree-optimization/56933
763 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
764 member.
765 (GROUP_READ_WRITE_DEPENDENCE): Remove.
766 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
767 * tree-vect-data-refs.c (vect_analyze_group_access): Move
768 dependence check ...
769 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
770 ... here.
771 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
772 GROUP_READ_WRITE_DEPENDENCE.
773
a24243a0
AK
7742013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
775
776 * emit-rtl.c (reset_all_used_flags): New function.
777 (verify_rtl_sharing): Call reset_all_used_flags before and after
778 performing the checks.
779
1c50eada
KT
7802013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
781
782 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
783 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
784 * config/arm/constraints.md (De): New constraint.
785 * config/arm/neon.md (anddi3_neon): Delete.
786 (neon_vand<mode>): Expand to standard anddi3 pattern.
787 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
788 Move earlier in the file.
789 (neon_inv_logic_op2): Likewise.
790 (arm_anddi_operand_neon): New predicate.
791
e927b6ad
RO
7922013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
793
794 * configure.ac (gcc_cv_ld_as_needed): Set
795 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
796 Use -z ignore, -z record on *-*-solaris2*.
797 (HAVE_LD_AS_NEEDED): Update comment.
798 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
799 * configure: Regenerate.
800 * config.in: Regenerate.
801 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
802 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
803 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
804 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
805 equivalents. Fix markup.
806 * doc/tm.texi: Regenerate.
807
e0ea8797
AH
8082013-04-15 Andrew Hsieh <andrewhsieh.google.com>
809
810 * config/i386/i386.opt: New option mstack-protector-guard=.
811 * config/i386/i386-opts.h: Add enum stack_protector_guard.
812 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
813 TARGET_SSP_TLS_GUARD.
814 * config/i386/i386.c (ix86_option_override_internal): Set
815 ix86_stack_protector_guard.
816 * config/i386/i386.md (stack_protect_set): Enable for
817 TARGET_SSP_TLS_GUARD only.
818 (stack_protect_set_<mode>): Ditto.
819 (stack_protect_test): Ditto.
820 (stack_protect_test_<mode>): Ditto.
821 * doc/invoke.texi (i386 Option): Document.
822
811b72f9
EB
8232013-04-15 Eric Botcazou <ebotcazou@adacore.com>
824
825 PR target/56890
826 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
827 (S_MODES): Set H_MODE bit.
828 (SF_MODES): Set only S_MODE and SF_MODE bits.
829 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
830 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
831 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
832 <MODE_FLOAT>: Likewise.
833
5529fdd6
JY
8342013-04-15 Joey Ye <joey.ye@arm.com>
835
836 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
837
517b1da2
JY
8382013-04-15 Joey Ye <joey.ye@arm.com>
839
840 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
841 for real far jump.
842 (thumb_far_jump_used_p): Count instruction size and set
843 far_jump_used.
844
01007ae0
EB
8452013-04-14 Eric Botcazou <ebotcazou@adacore.com>
846
847 * reorg.c (fill_simple_delay_slots): Reindent block of code.
848 * resource.c (mark_target_live_regs): Reformat conditional block.
849
c46f6580
SB
8502013-04-13 Steven Bosscher <steven@gcc.gnu.org>
851
852 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
853 notes, they are emitted only just before final.
854 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
855
1f397f45
SB
8562013-04-13 Steven Bosscher <steven@gcc.gnu.org>
857
858 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
859 * cfgrtl.c (delete_insn): Call it here instead.
860 * lra-spills.c (lra_final_code_change): Use delete_insn.
861 * haifa-sched.c (sched_remove_insn): Likewise.
862 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
863 returning to the nop pool.
864 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
865 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
866
58a51369
SB
8672013-04-12 Steven Bosscher <steven@gcc.gnu.org>
868
869 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
870 * doc/tm.texi: Regenerated.
871
33159866
UB
8722013-04-12 Uros Bizjak <ubizjak@gmail.com>
873
874 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
875 QImode checks.
876
226e378f
SB
8772013-04-12 Steven Bosscher <steven@gcc.gnu.org>
878
879 * df-core.c (df_find_def): Compare register numbers.
880 (df_find_use): Likewise.
881
fafb9b18
VM
8822013-04-12 Vladimir Makarov <vmakarov@redhat.com>
883
884 PR target/56903
885 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
886 lra_in_progress for return.
887
9a946fd6
GY
8882013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
889
890 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
891 define_insn into define_insn_and_split and emit movsicc patterns.
892
41b83758
GY
8932013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
894
895 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
896
d3afd9aa
RB
8972013-04-12 Richard Biener <rguenther@suse.de>
898
899 * tree-pass.h (TODO_do_not_ggc_collect): New.
900 * passes.c (execute_one_ipa_transform_pass): Honor
901 TODO_do_not_ggc_collect.
902 (execute_one_pass): Likewise.
903
904 Revert
905 2013-04-10 Richard Biener <rguenther@suse.de>
906
907 * passes.c (init_optimization_passes): Remove reload pass.
908 * ira.c (do_reload): Merge into ...
909 (ira): ... this.
910 (rest_of_handle_reload): Remove.
911 (pass_reload): Likewise.
912 * config/i386/i386.c (ix86_option_override): Refer to ira instead
913 of reload for vzeroupper pass placement.
914
06f9b387
JJ
9152013-04-12 Jakub Jelinek <jakub@redhat.com>
916
917 PR tree-optimization/56918
918 PR tree-optimization/56920
919 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
920 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
921 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
922 use wide_mul_with_sign method.
923
953094d2
RB
9242013-04-12 Richard Biener <rguenther@suse.de>
925
926 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
927 not be considered a gimple constant.
928
bb506982
MG
9292013-04-12 Marc Glisse <marc.glisse@inria.fr>
930
931 * fold-const.c (const_binop): Handle vector shifts by a scalar.
932 (fold_binary_loc): Call const_binop also for mixed vector-scalar
933 operations.
934
4b84d650
JJ
9352013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
936 Jakub Jelinek <jakub@redhat.com>
937
938 * opts.c: Include diagnostic-color.h.
939 (common_handle_option): Handle OPT_fdiagnostics_color_.
940 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
941 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
942 (diagnostic-color.o): New.
943 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
944 (diagnostic_color_rule): New enum.
945 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
946 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
947 the location string.
948 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
949 either NULL, or color kind.
950 * diagnostic-color.c: New file.
951 * diagnostic-color.h: New file.
952 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
953 arguments.
954 * doc/invoke.texi (-fdiagnostics-color): Document.
955 * pretty-print.h (pp_show_color): Define.
956 (struct pretty_print_info): Add show_color field.
957 * diagnostic.c: Include diagnostic-color.h.
958 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
959 macros. Colorize error:, warning: etc. strings and also the location
960 string.
961 (diagnostic_show_locus): Colorize the caret line.
962 * pretty-print.c: Include diagnostic-color.h.
963 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
964 inside of %< %> quotes or quoted through q format modifier.
965
067a1e71
AK
9662013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
967
33159866 968 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 969
33159866 9702013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
971
972 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
973 code in CC_NZ mode.
974 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
975 pattern.
976
7b55f98f
MP
9772013-04-11 Marek Polacek <polacek@redhat.com>
978
979 PR tree-optimization/48184
33159866 980 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 981
966b587e
EB
9822013-04-11 Eric Botcazou <ebotcazou@adacore.com>
983
984 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
985 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
986 (skip_simple_arithmetic): Tidy up.
987 * tree.h (skip_simple_constant_arithmetic): Declare.
988
33159866 9892013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
990
991 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
992
1d42c1ec
RB
9932013-04-11 Richard Biener <rguenther@suse.de>
994
995 * tree-vect-loop.c (get_initial_def_for_induction): Properly
996 generate vector constants.
997
4ba5ea11
RB
9982013-04-11 Richard Biener <rguenther@suse.de>
999
1000 PR tree-optimization/56878
1001 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
1002 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
1003 New function.
1004 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1005 Prefer to align the DR with the most invariant base address.
1006
f0defe58
SKS
10072013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1008
1009 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
1010 comment.
1011
d07458be
JG
10122013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1013
1014 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1015 floating-point vector comparisons against 0.
1016
146b8692
JJ
10172013-04-11 Jakub Jelinek <jakub@redhat.com>
1018
1019 PR tree-optimization/56899
1020 * fold-const.c (extract_muldiv_1): Apply distributive law
1021 only if TYPE_OVERFLOW_WRAPS (ctype).
1022
b8578ff7
BC
10232013-04-11 Bin Cheng <bin.cheng@arm.com>
1024
1025 PR target/56124
1026 * ira-costs.c (scan_one_insn): Check whether the source rtx of
1027 loading has side effect.
1028
0ea8a6f9
SB
10292013-04-10 Steven Bosscher <steven@gcc.gnu.org>
1030
1031 * config/sparc/sparc.c: Include tree-pass.h.
1032 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1033 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
1034 head of file. Change return type. Split off gate function.
1035 (sparc_gate_work_around_errata): New function.
1036 (pass_work_around_errata): New pass definition.
1037 (insert_pass_work_around_errata) New pass insert definition to
1038 insert pass_work_around_errata just after delayed-branch scheduling.
1039 (sparc_option_override): Insert the pass.
1040 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1041
42e37616
DM
10422013-04-10 David S. Miller <davem@davemloft.net>
1043
89deeb3b
DM
1044 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1045 or -mcpu=hypersparc.
1046
42e37616
DM
1047 * target.def (cstore_mode): New hook.
1048 * target.h: Include insn-codes.h
1049 * targhooks.c: Likewise.
1050 (default_cstore_mode): New function.
1051 * targhooks.h: Declare it.
1052 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
1053 * doc/tm.texi: Rebuild.
1054 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
1055 target hook, rather than inspecting the insn_data.
1056 * config/sparc/sparc.c (sparc_cstore_mode): New function.
1057 (TARGET_CSTORE_MODE): Redefine.
1058 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
1059 result patterns.
1060 * config/sparc/predicates.md (cstore_result_operand): New special
1061 predicate.
1062 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
1063 Use it for operand 0.
1064 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
1065 (*snesi_special): Likewise.
1066 (*snesi_zero): Likewise.
1067 (*seqsi_zero): Likewise.
1068 (*sltu_insn): Likewise.
1069 (*sgeu_insn): Likewise.
1070 (*seqdi_special): Make operand 0 and comparison operation be of
1071 DImode.
1072 (*snedi_special): Likewise.
1073 (*snedi_special_vis3): Likewise.
1074 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
1075 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
1076 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
1077 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
1078 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
1079 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
1080 (*sltu_extend_sp64): Likewise.
1081 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
1082 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
1083 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
1084 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
1085 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
1086
95ca411e
YZ
10872013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
1088
1089 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1090 (aarch64_start_file): Use the new function.
1091
6782438d 10922013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 1093 Jason Merrill <jason@redhat.com>
6782438d
SKS
1094
1095 * common.opt: Add -gdwarf.
1096 * opts.c (common_handle_option): Handle it.
1097 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
1098
bb313b93
RB
10992013-04-10 Richard Biener <rguenther@suse.de>
1100
1101 * passes.c (execute_todo): Do not call ggc_collect conditional here.
1102 (execute_one_ipa_transform_pass): But unconditionally here.
1103 (execute_one_pass): And here.
1104 (init_optimization_passes): Remove reload pass.
1105 * tree-pass.h (TODO_ggc_collect): Remove.
1106 (pass_reload): Likewise.
1107 * ira.c (do_reload): Merge into ...
1108 (ira): ... this.
1109 (rest_of_handle_reload): Remove.
1110 (pass_reload): Likewise.
1111 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1112 of reload for vzeroupper pass placement.
1113 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
1114 and todo_flags_finish of all passes.
1115
793d9a16
RB
11162013-04-10 Richard Biener <rguenther@suse.de>
1117
1118 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
1119 first_const_oprnd field, rename first_def_type to first_op_type.
1120 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
1121 (vect_get_and_check_slp_defs): Always use the type of the
1122 operand. Allow mixed vect_external_def, vect_constant_def types.
1123 (vect_get_constant_vectors): Handle mixed vect_external_def,
1124 vect_constant_def types.
1125
ee8a9b7b
JR
11262013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
1127
1128 PR tree-optimization/55524
1129 * tree-ssa-math-opts.c
1130 (convert_mult_to_fma): Don't use an fms construct
1131 when we don't have an fms operation, but fnma, and it looks
1132 likely that we'll be able to use the latter.
1133
6957a6f6
ZZ
11342013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1135
1136 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
1137 function.
1138 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
1139 inline fail caused by overwritable functions.
1140
34ab4a5b
CJW
11412013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
1142
1143 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
1144 unnecessary bits in the constant power of two case.
1145
abf9bfbc
RB
11462013-04-10 Richard Biener <rguenther@suse.de>
1147
1148 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
1149 broken code swapping operands.
1150 (vect_build_slp_tree): Do not compute load permutations here.
1151 (vect_analyze_slp_instance): Compute load permutations here,
1152 after building the SLP tree.
1153
f408477e
CB
11542013-04-09 Christian Bruel <christian.bruel@st.com>
1155
1156 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
1157 of next/prev_real_insn.
1158
5ac42672
JH
11592013-04-09 Jan Hubicka <jh@suse.cz>
1160
abf9bfbc
RB
1161 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1162 Drop aliased parameter.
5ac42672
JH
1163 (function_and_variable_visibility): Do not handle alias pairs.
1164 * cgraph.c (varpool_externally_visible_p): Update prototype.
1165 * varpool.c (varpool_add_new_variable): Update.
1166
5017f1d2
KT
11672013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1168
1169 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
1170
48eecbee
SB
11712013-04-09 Steven Bosscher <steven@gcc.gnu.org>
1172
a949cf1c
SB
1173 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
1174
48eecbee
SB
1175 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
1176
75ef8e3d
MP
11772013-04-09 Marek Polacek <polacek@redhat.com>
1178
1179 PR tree-optimization/48762
33159866 1180 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 1181
23847df4
RB
11822013-04-09 Richard Biener <rguenther@suse.de>
1183
1184 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
1185 dealing with cost.
1186 (vect_build_slp_tree): Likewise.
1187 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
1188 calculating the cost of a SLP instance.
1189 (vect_analyze_slp_instance): Use it from here, after building
1190 the SLP tree.
1191
ea3a0fde
JJ
11922013-04-09 Jakub Jelinek <jakub@redhat.com>
1193
1194 PR middle-end/56883
1195 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1196 expand_omp_for_static_chunk): Use simple_p = true in
1197 force_gimple_operand_gsi calls when assigning to addressable decls.
1198
a32dfe9d
JL
11992013-04-09 Jeff Law <law@redhat.com>
1200
1201 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
1202 when the boolean was created by converting a wider object which
1203 had a boolean range.
1204
d755c7ef
RB
12052013-04-09 Richard Biener <rguenther@suse.de>
1206
1207 * tree-vectorizer.h (slp_void_p): Remove.
1208 (slp_tree): Typedef before _slp_tree declaration.
1209 (struct _slp_tree): Use a vector of slp_tree as children.
1210 (vect_get_place_in_interleaving_chain): Remove.
1211 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
1212 Move ...
1213 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
1214 and make static.
1215 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
1216 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1217 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1218 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
1219 Use slp_node instead of slp_void_p and adjust.
1220
3d741091
RB
12212013-04-09 Richard Biener <rguenther@suse.de>
1222
1223 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
1224 work that is not necessary.
1225
39307ba7
JJ
12262013-04-09 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR tree-optimization/56854
1229 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
1230 forward into clobber stmts if it would change MEM_REF lhs into
1231 non-MEM_REF.
1232
343881fd
MK
12332013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
1234
1235 * tree.c (type_hash_lookup, type_hash_add): Make static.
1236 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
1237
3922658a
RB
12382013-04-09 Richard Biener <rguenther@suse.de>
1239
1240 * tree.h (unsave_expr_now): Remove.
1241 * tree-inline.c (mark_local_for_remap_r): Remove.
1242 (unsave_expr_1): Likewise.
1243 (unsave_r): Likewise.
1244 (unsave_expr_now): Likewise.
1245 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
1246 (propagate_tree_value): Likewise.
1247
9fb6b620
SB
12482013-04-08 Steven Bosscher <steven@gcc.gnu.org>
1249
1250 * doc/rtl.texi (sequence): Rewrite documentation to match the
1251 current use of SEQUENCE rtl objects.
1252 * rtl.def (SEQUENCE): Likewise.
1253
1254 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
1255 Update documentation.
1256 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
1257 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
1258
1259 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
1260
8ddb5a29
TJ
12612013-04-08 Teresa Johnson <tejohnson@google.com>
1262
1263 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
1264 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 1265 methods.
8ddb5a29
TJ
1266 (estimate_edge_size_and_time): Add comment to suggest using rounding
1267 methods.
1268 (estimate_node_size_and_time): Ditto.
1269 (remap_edge_change_prob): Use helper rounding divide methods.
1270 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
1271 (gimple_mod_pow2_value_transform): Ditto.
1272 (gimple_mod_subtract_transform): Ditto.
1273 (gimple_ic_transform): Ditto.
1274 (gimple_stringops_transform): Ditto.
1275 * stmt.c (conditional_probability): Ditto.
1276 (emit_case_dispatch_table): Ditto.
1277 * lto-cgraph.c (merge_profile_summaries): Ditto.
1278 * tree-optimize.c (execute_fixup_cfg): Ditto.
1279 * cfgcleanup.c (try_forward_edges): Ditto.
1280 * cfgloopmanip.c (scale_loop_profile): Ditto.
1281 (loopify): Ditto.
1282 (duplicate_loop_to_header_edge): Ditto.
1283 (lv_adjust_loop_entry_edge): Ditto.
1284 * tree-vect-loop.c (vect_transform_loop): Ditto.
1285 * profile.c (compute_branch_probabilities): Ditto.
1286 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1287 * lto-streamer-in.c (input_cfg): Ditto.
1288 * gimple-streamer-in.c (input_bb): Ditto.
1289 * ipa-cp.c (update_profiling_info): Ditto.
1290 (update_specialized_profile): Ditto.
1291 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
1292 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 1293 rounding methods.
8ddb5a29
TJ
1294 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1295 (compute_trg_info): Ditto.
1296 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
1297 (purge_dead_edges): Ditto.
1298 * loop-unswitch.c (unswitch_loop): Ditto.
1299 * cgraphclones.c (cgraph_clone_edge): Ditto.
1300 (cgraph_clone_node): Ditto.
1301 * tree-inline.c (copy_bb): Ditto.
1302 (copy_edges_for_bb): Ditto.
1303 (initialize_cfun): Ditto.
1304 (copy_cfg_body): Ditto.
1305 (expand_call_inline): Ditto.
1306
661e6bd7
KT
13072013-04-08 Kai Tietz <ktietz@redhat.com>
1308
1309 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
1310 TARGET_CYGWIN64 by TARGET_64BIT.
1311
105766f3
JR
13122013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
1313
1314 * config/epiphany/epiphany.md (GPR_1): New constant.
1315 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
1316 * config/epiphany/epiphany.c (gen_compare_reg):
1317 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
1318 is already in place.
1319 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
1320 Don't require being called during rtl expansion; If y operlaps r0,
1321 return 0.
1322 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
1323 (epiphany_expand_epilogue): Likewise.
1324
8afab237
JR
1325 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
1326 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 1327 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 1328
fa7707d6
JR
1329 * config/epiphany/constraints.md (CnL): New constraint.
1330 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
1331 * config/epiphany/predicates.md (add_operand): Allow 1024.
1332
5138e18d
JR
1333 * config/epiphany/epiphany.md (logical_op): New code iterator.
1334 (op_mnc): New code attribute.
1335 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
1336 (mov_f+1, mov_f+2): New peephole2 patterns.
1337
2ccc703d
JR
1338 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
1339 (cstoresi4): Also allow re-use of zero result when doing a NE
1340 comparison to a non-zero operand.
aefb0819 1341 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 1342
093ac0a5
JR
1343 * config/epiphany/epiphany.md (<insn_opname>v2si3):
1344 Use gen_addsi3_i / gen_subsi3_i.
1345
f223bb13
JJ
13462013-04-08 Jakub Jelinek <jakub@redhat.com>
1347
1348 PR c++/34949
1349 PR c++/50243
1350 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
1351 contain anything but clobbers, at most one __builtin_stack_restore,
1352 optionally debug stmts and final resx, and if it has at least one
1353 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
1354 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
1355 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
1356 which isn't defaut definition, remove them.
1357 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
1358 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
1359 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
1360 with MEM_REF LHS with SSA_NAME address.
1361
4481581f
JL
13622013-04-08 Jeff Law <law@redhat.com>
1363
1364 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 1365
451dabda
RB
13662013-04-08 Richard Biener <rguenther@suse.de>
1367
1368 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
1369 extra newline.
1370 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
1371 determined vector type.
1372 (vect_analyze_data_refs): Likewise.
1373 (vect_get_new_vect_var): Adjust.
1374 (vect_create_destination_var): Preserve SSA name versions.
1375 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
1376 not dump anything here.
1377
3b088b47
JR
13782013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
1379
1380 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
1381 Add member lr_slot_known.
1382 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
1383 if necessary.
1384 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
1385 Remove code that sets lr_slot_offset according to what a previous
1386 version of epiphany_emit_save_restore used to do.
1387 (epiphany_emit_save_restore): When doing an lr save or restore,
1388 set/verify lr_slot_known and lr_slot_offset.
1389
d8484d41
XQ
13902013-04-08 Xinyu Qi <xyqi@marvell.com>
1391
33159866
UB
1392 PR target/54338
1393 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
1394 in ALL_REGS.
1395
481be1c4
RB
13962013-04-08 Richard Biener <rguenther@suse.de>
1397
1398 * alias.c (find_base_term): Fix thinko in previous change.
1399
401f3a81
JJ
14002013-04-08 Jakub Jelinek <jakub@redhat.com>
1401
1402 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
1403 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
1404 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
1405 if possible to compute val.
1406 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
1407 For QImode integers don't require anything about precision. Use
1408 const_with_all_bytes_same to find out if the constant doesn't have
1409 repeated bytes in it.
1410
03ed99a8
AK
14112013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1412
1413 * config/s390/s390.c (s390_expand_insv): Only accept insertions
1414 within mode size.
1415
781b2e62
MP
14162013-04-08 Marek Polacek <polacek@redhat.com>
1417
1418 PR rtl-optimization/48182
1419 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
1420 value to 1.
1421
27e430a2
JDA
14222013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1423
1424 PR target/55487
1425 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
1426 nuses, make sure we have a label.
1427
4902aa64
BS
14282013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1429
1430 PR target/56843
1431 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
1432 (rs6000_emit_swdiv_low_precision): Remove.
1433 (rs6000_emit_swdiv): Rewrite to handle between one and four
1434 iterations of Newton-Raphson generally; modify required number of
1435 iterations for some cases.
1436 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
1437
7bca81dc
SB
14382013-04-05 Steven Bosscher <steven@gcc.gnu.org>
1439
1440 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
1441 set-but-unused variable.
1442
1443 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
1444 basic blocks of released function bodies garbage-collectable.
1445
1446 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
1447 (struct rtl_opt_pass): Add TODO_df_finish.
1448
1449 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
1450
4542a38a
GY
14512013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1452
1453 * config/arm/constraints.md (q): New constraint.
1454 * config/arm/ldrdstrd.md: New file.
1455 * config/arm/arm.md (ldrdstrd.md) New include.
1456 (arm_movdi): Use "q" instead of "r" constraint
1457 for double-word memory access.
1458 (movdf_soft_insn): Likewise.
1459 * config/arm/vfp.md (movdi_vfp): Likewise.
1460 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 1461 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
1462 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
1463 (mem_ok_for_ldrd_strd): Likewise.
1464 (output_move_double): Update assertion.
1465
2385b218
GY
14662013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1467
1468 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
1469
75fe1cb5
GY
14702013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1471
1472 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
1473 define_insn_and_split.
1474 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
1475
dd660e8e
GY
14762013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1477
1478 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
1479 define_insn_and_split.
33159866 1480 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
1481 (shiftsi3_compare): New pattern.
1482 (rrx): New pattern.
1483 * config/arm/unspecs.md (UNSPEC_RRX): New.
1484
045e472c
GY
14852013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1486
1487 * config/arm/arm.md (negdi_extendsidi): New pattern.
1488 (negdi_zero_extendsidi): Likewise.
1489
3f3bf1a8
GY
14902013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1491
1492 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
1493 define_insn_and_split.
1494 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
1495 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
1496
b0b49556
GY
14972013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1498
1499 * config/arm/arm.md (arm_subdi3): Convert define_insn into
1500 define_insn_and_split.
1501 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
1502 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
1503
d633dd84
GY
15042013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1505
1506 * config/arm/arm.md (subsi3_carryin): New pattern.
1507 (subsi3_carryin_const): Likewise.
1508 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
1509 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
1510
f4499066
GY
15112013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1512
1513 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
1514
ceef6fd9
GY
15152013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1516
1517 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 1518 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 1519
ddbdd8a7
KT
15202013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1521
1522 * config/arm/arm.c (arm_expand_builtin): Change fcode
1523 type to unsigned int.
1524
8456d78a
RR
15252013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1526
1527 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
1528
526c230f
ILT
15292013-04-04 Ian Lance Taylor <iant@google.com>
1530
33159866
UB
1531 * doc/standards.texi (Standards): The Go frontend supports the Go 1
1532 language standard.
526c230f 1533
3cfbe04d
SB
15342013-04-04 Steven Bosscher <steven@gcc.gnu.org>
1535
1536 PR middle-end/56729
1537 * df-scan.c (df_insn_delete): Disable failing assert.
1538
dfa3f8d0
KT
15392013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1540
1541 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
1542 New function prototype.
1543 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
1544 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1545 (arm_builtin_vectorized_function): New function.
1546
f7837758
KT
15472013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1548
1549 * config/arm/arm_neon_builtins.def: New file.
1550 * config/arm/arm.c (neon_builtin_data): Move contents to
1551 arm_neon_builtins.def.
1552 (enum arm_builtins): Include neon builtin definitions.
1553 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 1554 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 1555
39c1b6db
MP
15562013-04-04 Marek Polacek <polacek@redhat.com>
1557
1558 PR tree-optimization/48186
1559 * predict.c (maybe_hot_frequency_p): Return false if
1560 HOT_BB_FREQUENCY_FRACTION is 0.
1561 (cgraph_maybe_hot_edge_p): Likewise.
1562
314f64eb
RB
15632013-04-04 Richard Biener <rguenther@suse.de>
1564
1565 PR tree-optimization/56826
1566 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
1567 more accurately.
1568
51a905b2
RB
15692013-04-04 Richard Biener <rguenther@suse.de>
1570
1571 PR tree-optimization/56213
1572 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 1573 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 1574
f1bf4f3a
RB
15752013-04-04 Richard Biener <rguenther@suse.de>
1576
1577 PR tree-optimization/56837
1578 * tree-loop-distribution.c (classify_partition): For non-zero
1579 values require that the value has the same precision as its
1580 mode to be useful as memset value.
1581
0bca7ded
NC
15822013-04-03 Nick Clifton <nickc@redhat.com>
1583
33159866 1584 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
1585 (fmssf4): Use fmsf.s on E3V5 architectures.
1586 (fnmasf4): Use fnmaf.s on E3V5 architectures.
1587 (fnmssf4): Use fnmsf.s on E3V5 architectures.
1588
b4019227
JL
15892013-04-03 Jeff Law <law@redhat.com>
1590
1591 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1592 (lra-eliminations.o): Likewise.
1593
f57ddb5b
TJ
15942013-04-03 Teresa Johnson <tejohnson@google.com>
1595
1596 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 1597 compute_working_sets here from profile.c.
f57ddb5b 1598 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
1599 (gcov_working_set_t): Moved typedef here from basic-block.h
1600 (compute_working_set): Declare.
f57ddb5b
TJ
1601 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
1602 (get_working_sets): Renamed from compute_working_set,
33159866 1603 replace most of body with call to new compute_working_sets.
f57ddb5b 1604 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
1605 to get_working_sets.
1606 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 1607 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 1608 to get_working_sets.
f57ddb5b
TJ
1609 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
1610 * gcov-dump.c (dump_working_sets): New function.
1611
5e0919f1
KZ
16122013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1613
1614 * hwint.c (sext_hwi, zext_hwi): New functions.
1615 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
1616 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
1617 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
1618 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
1619 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
1620 (sext_hwi, zext_hwi): New functions.
0bca7ded 1621
be672e08
JL
16222013-04-03 Jeff Law <law@redhat.com>
1623
1624 PR tree-optimization/56799
33159866
UB
1625 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
1626 back test for widening conversion erroneously dropped in prior change.
be672e08 1627
9d821fa5
KT
16282013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1629
1630 PR target/56809
1631 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
1632 instead of next_real_insn.
1633
71c581e7
MP
16342013-04-03 Marek Polacek <polacek@redhat.com>
1635
1636 PR sanitizer/55702
33159866 1637 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 1638
4a32ef80
KT
16392013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1640
1641 PR target/56809
1642 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
1643 next_real_insn.
1644 (thumb1_output_casesi): Likewise.
1645 (thumb2_output_casesi): Likewise.
1646
1b2253d4
RB
16472013-04-03 Richard Biener <rguenther@suse.de>
1648
1649 PR tree-optimization/56817
1650 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1651 Split out ...
1652 (tree_unroll_loops_completely_1): ... new function to manually
1653 walk the loop tree, properly defering outer loops of unrolled
1654 loops to later iterations.
1655
38000232
MG
16562013-04-03 Marc Glisse <marc.glisse@inria.fr>
1657
1658 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
1659 (vectorizable_load): Likewise.
1660 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1661 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
1662
3fa35298
MG
16632013-04-03 Marc Glisse <marc.glisse@inria.fr>
1664
1665 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
1666 BIT_FIELD_REF.
1667
b3d45ff0
UW
16682013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1669
1670 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
1671
ec9202a8
BC
16722013-04-03 Bin Cheng <bin.cheng@arm.com>
1673
1674 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
1675
6805bd36
MG
16762013-04-03 Marc Glisse <marc.glisse@inria.fr>
1677
1678 PR tree-optimization/56790
33159866
UB
1679 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
1680 folding.
6805bd36 1681
da694a77
MG
16822013-04-03 Marc Glisse <marc.glisse@inria.fr>
1683
1684 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1685 Handle VEC_MERGE.
1686 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
1687 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
1688 equal arguments.
1689
4e7d7b3d
JJ
16902013-04-03 Jakub Jelinek <jakub@redhat.com>
1691
1692 PR c/19449
1693 * tree.h (force_folding_builtin_constant_p): New decl.
1694 * builtins.c (force_folding_builtin_constant_p): New variable.
1695 (fold_builtin_constant_p): Fold immediately also if
1696 force_folding_builtin_constant_p.
1697
e6c9d234
RB
16982013-04-03 Richard Biener <rguenther@suse.de>
1699
1700 PR tree-optimization/56812
1701 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1702 DRs of the same interleaving chain are independent.
1703
984d07dd
JM
17042013-04-02 Jason Merrill <jason@redhat.com>
1705
1706 * gdbinit.in (pbb): Use debug fn.
1707
622849c9
LC
17082013-04-02 Lawrence Crowl <crowl@google.com>
1709
1710 * sese.h (struct ivtype_map_elt_s): Remove unused.
1711 (extern debug_ivtype_map): Remove unused.
1712 (extern eq_ivtype_map_elts): Remove unused.
1713 * sese.c (debug_ivtype_map): Removed unused.
1714 (debug_ivtype_map_1): Removed unused.
1715 (debug_ivtype_elt): Remove unused.
1716 (eq_ivtype_map_elts): Remove unused.
1717
1718
82c0e1a0
KT
17192013-04-02 Kai Tietz <ktietz@redhat.com>
1720
1721 PR target/52790
1722 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
1723 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
1724 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
1725 function.
82c0e1a0
KT
1726 (legitimize_pe_coff_symbol): Likewise.
1727 (is_imported_p): New helper-function.
1728 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
1729 for Windows x64 targets.
1730 (ix86_expand_prologue): Optimize for pe-coff targets.
1731 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
1732 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
1733 medium/large code-model.
1734 (legitimize_pic_address): Likewise.
1735 (legitimize_tls_address): Likewise.
1736 (ix86_expand_call): Likewise.
1737 (x86_output_mi_thunk): Likewise.
1738 (get_dllimport_decl): Add new beimport argument.
1739 (construct_plt_address): Don't assert for x64 pe-coff targets.
1740 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
1741 targets.
1742 (SYMBOL_FLAG_STUBVAR): New macro.
1743 (SYMBOL_REF_STUBVAR_P): Likewise.
1744 * config/i386/winnt.c (stub_list): New structure.
1745 (stub_head): New local variable.
1746 (i386_pe_record_stub): New function.
1747 (i386_pe_file_end): Emit refptr-stubs.
1748
5d751b0c
JJ
17492013-04-02 Jakub Jelinek <jakub@redhat.com>
1750
09bb4c99
JJ
1751 PR rtl-optimization/56745
1752 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1753 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1754
a1d8947a
JJ
1755 PR c++/34949
1756 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
1757 and both of them are MEM_REFs, just compare first argument for
1758 equality and attempt to deal even with differing offsets.
1759
5d751b0c
JJ
1760 PR c++/34949
1761 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
1762 of gimple_clobber_p to be MEM_REF.
1763 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
1764 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
1765 after gimplification.
1766 * asan.c (get_mem_ref_of_assignment): Don't instrument
1767 gimple_clobber_p stmts.
1768 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
1769 gimple_clobber_p stmt if they have MEM_REF lhs and
1770 are dead because of another gimple_clobber_p stmt.
1771 * tree-ssa-live.c (clear_unused_block_pointer): Treat
1772 gimple_clobber_p stmts like debug stmts.
1773 (remove_unused_locals): Remove clobbers with MEM_REF lhs
1774 that refer to unused VAR_DECLs or uninitialized values.
1775 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
1776 gimple_clobber_p stmts if they refer to removed parameters.
1777 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
1778 formatting.
1779
e594716a
UB
17802013-04-02 Uros Bizjak <ubizjak@gmail.com>
1781
1782 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
1783 using SWI48 mode attribute.
1784
7a80735b
WM
17852013-04-02 Wei Mi <wmi@google.com>
1786
1787 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1788 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1789 *<rotate_insn><mode>3_mask in i386.md.
1790
f423a9e4
AI
17912013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
1792
1793 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
1794
90eb75f2
RB
17952013-04-02 Richard Biener <rguenther@suse.de>
1796
1797 PR tree-optimization/56778
1798 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1799 Runtime alias tests are not supported for gather loads.
1800 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
1801 stmts referenced from SSA operands before updating SSA form.
1802
d8c69a92
IC
18032013-04-02 Ian Caulfield <ian.caulfield@arm.com>
1804 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1805
1806 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
1807 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
1808 * config/arm/cortex-a53.md: New file.
1809 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
1810 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
1811 * config/arm/arm.c (arm_issue_rate): Likewise.
1812 * config/arm/arm-tune.md: Regenerate
1813 * config/arm/arm-tables.opt: Regenerate.
1814 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 1815
239eb04c
ZC
18162013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
1817
1818 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
1819 non-static link.
1820
c902d3c8
SN
18212013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1822
d8c69a92
IC
1823 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
1824 scalar load/store operations using B/H registers.
c902d3c8
SN
1825 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
1826
051d0e2f
SN
18272013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1828
1829 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
1830 scalar move.
1831 * config/aarch64/aarch64.c
1832 (aarch64_simd_scalar_immediate_valid_for_move): New.
1833 * config/aarch64/aarch64-protos.h
1834 (aarch64_simd_scalar_immediate_valid_for_move): New.
1835 * config/aarch64/constraints.md (Dh, Dq): New.
1836 * config/aarch64/iterators.md (hq): New.
1837
0ee1e3d9
EB
18382013-04-02 Eric Botcazou <ebotcazou@adacore.com>
1839
1840 * reorg.c (get_branch_condition): Deal with conditional returns.
1841 (fill_simple_delay_slots): Remove dead code dealing with jumps.
1842
136fb3f7
WM
18432013-04-01 Wei Mi <wmi@google.com>
1844
1845 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1846 Truncate operand 2 using %b asm operand modifier.
1847 (*<shift_insn><mode>3_mask): Ditto.
1848 (*<rotate_insn><mode>3_mask): Ditto.
1849
6388c738
SB
18502013-04-01 Steven Bosscher <steven@gcc.gnu.org>
1851
1852 PR middle-end/56798
1853 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
1854
f7a4d826
KK
18552013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
1856
1857 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
1858 of next_real_insn.
1859 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
1860
4b943a49
LC
18612013-03-30 Lawrence Crowl <crowl@google.com>
1862
1863 * dse.c (clear_alias_sets): Remove never set.
1864 (disqualified_clear_alias_sets): Remove never set.
1865 (clear_alias_mode_pool): Remove never set.
1866 (dse_step0): Remove condition that is never true.
1867 (canon_address): Remove condition that is never true.
1868 (dse_step7): Remove condition that is never true.
1869 (rest_of_handle_dse): Remove condition that is never true.
1870 (rest_of_handle_dse::did_global): Remove never read from above.
1871 (dse_step2_spill): Remove never called from above.
1872 (dse_step5_spill): Remove never called from above.
1873
39718607
SB
18742013-03-30 Steven Bosscher <steven@gcc.gnu.org>
1875
da5c6bde
SB
1876 * doc/md.texi (Standard Names) <casesi>: Update documentation for
1877 JUMP_TABLE_DATA changes.
1878 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
1879 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
1880 (Insns) <jump_table_data>: New entry.
1881 * doc/tm.texi: Regenerate.
1882
39718607
SB
1883 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
1884
1885 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
1886 for table jump at the end of a basic block using tablejump_p.
1887 * targhooks.c (default_invalid_within_doloop): Likewise.
1888 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
1889 target hook implementation that is identical to the default hook.
1890 (rs6000_invalid_within_doloop): Remove.
1891
1892 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
1893 unused variable from tablejump_p call.
1894
1895 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
1896 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
1897 (INSN_DELETED_P): Likewise.
1898 (emit_jump_table_data): New prototype.
1899 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
1900 after 4th as unused.
1901 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
1902 * sched-vis.c (print_insn): Likewise.
1903 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
1904 insn for compatibility with back ends that use next_active_insn to
1905 identify jump table data.
1906 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
1907 (remove_insn): Likewise.
1908 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
1909 to be emitted.
1910 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
1911 (emit_jump_table_data): New function.
1912
1913 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
1914 basic block, a JUMP_TABLE_DATA never is.
1915 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
1916 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
1917 off from code handling real insns.
1918 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
1919 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
1920 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
1921 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
1922 is not a NONDEBUG_INSN_P.
1923 * ira-costs.c (scan_one_insn): Likewise.
1924 * jump.c (mark_all_labels): Likewise.
1925 (mark_jump_label_1): Likewise.
1926 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1927 * lra.c (get_insn_freq): Expect all insns reaching here to be in
1928 a basic block.
1929 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
1930 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
1931 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
1932 JUMP_TABLE_DATA_P insns.
1933 (calculate_elim_costs_all_insns): Likewise.
1934 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
1935 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
1936 (delete_output_reload): Code style fixups.
1937 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
1938 insn flags on this non-insn.
1939 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
1940 as scheduling barriers, for pre-change compatibility.
1941 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
1942 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
1943
1944 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
1945 redundant JUMP_TABLE_DATA_P test.
1946 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
1947 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1948 (frv_for_each_packet): Likewise.
1949 * config/i386/i386.c (min_insn_size): Likewise.
1950 (ix86_avoid_jump_mispredicts): Likewise.
1951 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1952 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
1953 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1954 (mips16_insn_length): Robustify.
1955 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
1956 (mips16_split_long_branches): Likewise.
1957 * config/pa/pa.c (pa_combine_instructions): Likewise.
1958 * config/rs6000/rs6000.c (get_next_active_insn): Treat
1959 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
1960 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
1961 as contributing to pool range lengths.
1962 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1963 Remove redundant JUMP_TABLE_DATA_P test.
1964 (sh_loop_align): Likewise.
1965 (split_branches): Likewise.
1966 (sh_insn_length_adjustment): Likewise.
1967 * config/spu/spu.c (get_branch_target): Likewise.
1968
0208f7da
JH
19692013-03-29 Jan Hubicka <jh@suse.cz>
1970
1971 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1972 gcov streaming; stream hot bb threshold to ltrans.
1973 * predict.c (get_hot_bb_threshold): Break out from ....
1974 (maybe_hot_count_p): ... here.
1975 (set_hot_bb_threshold): New function.
1976 * lto-section-in.c (lto_section_name): Add profile.
1977 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1978 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1979 and data-streamer.h
1980 (histogram_entry): New structure.
1981 (histogram, histogram_pool): New global vars.
1982 (histogram_hash): New structure.
1983 (histogram_hash::hash): New method.
1984 (histogram_hash::equal): Likewise.
1985 (account_time_size): New function.
1986 (cmp_counts): New function.
1987 (dump_histogram): New function.
1988 (ipa_profile_generate_summary): New function.
1989 (ipa_profile_write_summary): New function.
1990 (ipa_profile_read_summary): New function.
1991 (ipa_profile): Decide on threshold.
e594716a
UB
1992 (pass_ipa_profile): Add ipa_profile_write_summary and
1993 ipa_profile_read_summary.
0208f7da
JH
1994 * Makefile.in (ipa.o): Update dependencies.
1995 * lto-streamer.h (LTO_section_ipa_profile): New section.
1996
5a6ccc94
GDR
19972013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
1998
1999 * tree.h (VAR_P): New.
2000
39385fa6
PC
20012013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
2002
2003 PR lto/56777
2004 * doc/invoke.texi ([-fwhole-program]): Fix typo.
2005
34f0d87a
SB
20062013-03-29 Steven Bosscher <steven@gcc.gnu.org>
2007
2008 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
2009 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2010 (control_flow_insn_p): Likewise.
2011 * cfgrtl.c (duplicate_insn_chain): Likewise.
2012 * final.c (get_attr_length_1): Likewise.
2013 (shorten_branches): Likewise.
2014 (final_scan_insn): Likewise.
2015 * function.c (instantiate_virtual_regs): Likewise.
2016 * gcse.c (insert_insn_end_basic_block): Likewise.
2017 * ira-costs.c (scan_one_insn): Likewise.
2018 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2019 * lra.c (check_rtl): Likewise.
2020 * reload1.c (elimination_costs_in_insn): Likewise.
2021 * reorg.c (follow_jumps): Likewise.
2022
2023 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
2024 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2025 (thumb_far_jump_used_p): Likewise.
2026 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
2027 (workaround_speculation): Likewise.
2028 (add_sched_insns_for_speculation): Likewise.
2029 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
2030 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2031 (frv_for_each_packet): Likewise.
2032 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
2033 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
2034 (final_emit_insn_group_barriers): Likewise.
2035 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2036 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2037 (mips16_insn_length): Likewise.
2038 * config/pa/pa.c (pa_reorg): Likewise.
2039 (pa_combine_instructions): Likewise.
2040 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
2041 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
2042 (sh_reorg): Likewise.
2043 (split_branches): Likewise.
2044 * config/spu/spu.c (get_branch_target): Likewise.
2045
2046 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
2047 JUMP_TABLE_DATA_P.
2048
4ac761b0
KY
20492013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
2050
39385fa6 2051 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
2052 Fix declaration name.
2053
58a49189
LC
20542013-03-28 Lawrence Crowl <crowl@google.com>
2055
2056 * graphds.h (struct graph.indicies): Remove unused.
2057 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
2058 (SCOP_ORIGINAL_PDDRS): Remove unused.
2059 * sese.h (extern insert_loop_close_phis): Removed unused.
2060 (extern insert_guard_phis): Removed unused.
2061 (extern ivtype_map_elt_info): Removed unused.
2062 (new_ivtype_map_elt): Removed unused.
2063 * sese.c (ivtype_map_elt_info): Removed unused.
2064
7b3b6ae4
LC
20652013-03-28 Lawrence Crowl <crowl@google.com>
2066
2067 * Makefile.in: Add several missing include dependences.
2068 (DUMPFILE_H): New.
2069 (test-dump.o): New. This object is not added to any executable,
2070 but is present for ad-hoc testing.
2071 * bitmap.c
2072 (debug (const bitmap_head_def &)): New.
2073 (debug (const bitmap_head_def *)): New.
2074 * bitmap.h
2075 (extern debug (const bitmap_head_def &)): New.
2076 (extern debug (const bitmap_head_def *)): New.
2077 * cfg.c
2078 (debug (edge_def &)): New.
2079 (debug (edge_def *)): New.
2080 * cfghooks.c
2081 (debug (basic_block_def &)): New.
2082 (debug (basic_block_def *)): New.
2083 * dumpfile.h
2084 (dump_node (const_tree, int, FILE *)): Correct source file.
2085 * dwarf2out.c
2086 (debug (die_struct &)): New.
2087 (debug (die_struct *)): New.
2088 * dwarf2out.h
2089 (extern debug (die_struct &)): New.
2090 (extern debug (die_struct *)): New.
2091 * gimple-pretty-print.c
2092 (debug (gimple_statement_d &)): New.
2093 (debug (gimple_statement_d *)): New.
2094 * gimple-pretty-print.h
2095 (extern debug (gimple_statement_d &)): New.
2096 (extern debug (gimple_statement_d *)): New.
2097 * ira-build.c
2098 (debug (ira_allocno_copy &)): New.
2099 (debug (ira_allocno_copy *)): New.
2100 (debug (ira_allocno &)): New.
2101 (debug (ira_allocno *)): New.
2102 * ira-int.h
2103 (extern debug (ira_allocno_copy &)): New.
2104 (extern debug (ira_allocno_copy *)): New.
2105 (extern debug (ira_allocno &)): New.
2106 (extern debug (ira_allocno *)): New.
2107 * ira-lives.c
2108 (debug (live_range &)): New.
2109 (debug (live_range *)): New.
2110 * lra-int.h
2111 (debug (lra_live_range &)): New.
2112 (debug (lra_live_range *)): New.
2113 * lra-lives.c
2114 (debug (lra_live_range &)): New.
2115 (debug (lra_live_range *)): New.
2116 * omega.c
2117 (debug (omega_pb_d &)): New.
2118 (debug (omega_pb_d *)): New.
2119 * omega.h
2120 (extern debug (omega_pb_d &)): New.
2121 (extern debug (omega_pb_d *)): New.
2122 * print-rtl.c
2123 (debug (const rtx_def &)): New.
2124 (debug (const rtx_def *)): New.
2125 * print-tree.c
2126 (debug_tree (tree): Move within file.
2127 (debug_raw (const tree_node &)): New.
2128 (debug_raw (const tree_node *)): New.
2129 (dump_tree_via_hooks (const tree_node *, int)): New.
2130 (debug (const tree_node &)): New.
2131 (debug (const tree_node *)): New.
2132 (debug_verbose (const tree_node &)): New.
2133 (debug_verbose (const tree_node *)): New.
2134 (debug_head (const tree_node &)): New.
2135 (debug_head (const tree_node *)): New.
2136 (debug_body (const tree_node &)): New.
2137 (debug_body (const tree_node *)): New.
2138 (debug_vec_tree (tree): Move and reimplement in terms of dump.
2139 (debug (vec<tree, va_gc> &)): New.
2140 (debug (vec<tree, va_gc> *)): New.
2141 * rtl.h
2142 (extern debug (const rtx_def &)): New.
2143 (extern debug (const rtx_def *)): New.
2144 * sbitmap.c
2145 (debug_raw (simple_bitmap_def &)): New.
2146 (debug_raw (simple_bitmap_def *)): New.
2147 (debug (simple_bitmap_def &)): New.
2148 (debug (simple_bitmap_def *)): New.
2149 * sbitmap.h
2150 (extern debug (simple_bitmap_def &)): New.
2151 (extern debug (simple_bitmap_def *)): New.
2152 (extern debug_raw (simple_bitmap_def &)): New.
2153 (extern debug_raw (simple_bitmap_def *)): New.
2154 * sel-sched-dump.c
2155 (debug (vinsn_def &)): New.
2156 (debug (vinsn_def *)): New.
2157 (debug_verbose (vinsn_def &)): New.
2158 (debug_verbose (vinsn_def *)): New.
2159 (debug (expr_def &)): New.
2160 (debug (expr_def *)): New.
2161 (debug_verbose (expr_def &)): New.
2162 (debug_verbose (expr_def *)): New.
2163 (debug (vec<rtx> &)): New.
2164 (debug (vec<rtx> *)): New.
2165 * sel-sched-dump.h
2166 (extern debug (vinsn_def &)): New.
2167 (extern debug (vinsn_def *)): New.
2168 (extern debug_verbose (vinsn_def &)): New.
2169 (extern debug_verbose (vinsn_def *)): New.
2170 (extern debug (expr_def &)): New.
2171 (extern debug (expr_def *)): New.
2172 (extern debug_verbose (expr_def &)): New.
2173 (extern debug_verbose (expr_def *)): New.
2174 (extern debug (vec<rtx> &)): New.
2175 (extern debug (vec<rtx> *)): New.
2176 * sel-sched-ir.h
2177 (_list_iter_cond_expr): Make inline instead of static.
2178 * sreal.c
2179 (debug (sreal &)): New.
2180 (debug (sreal *)): New.
2181 * sreal.h
2182 (extern debug (sreal &)): New.
2183 (extern debug (sreal *)): New.
2184 * tree.h
2185 (extern debug_raw (const tree_node &)): New.
2186 (extern debug_raw (const tree_node *)): New.
2187 (extern debug (const tree_node &)): New.
2188 (extern debug (const tree_node *)): New.
2189 (extern debug_verbose (const tree_node &)): New.
2190 (extern debug_verbose (const tree_node *)): New.
2191 (extern debug_head (const tree_node &)): New.
2192 (extern debug_head (const tree_node *)): New.
2193 (extern debug_body (const tree_node &)): New.
2194 (extern debug_body (const tree_node *)): New.
2195 (extern debug (vec<tree, va_gc> &)): New.
2196 (extern debug (vec<tree, va_gc> *)): New.
2197 * tree-cfg.c
2198 (debug (struct loop &)): New.
2199 (debug (struct loop *)): New.
2200 (debug_verbose (struct loop &)): New.
2201 (debug_verbose (struct loop *)): New.
2202 * tree-dump.c: Add header dependence.
2203 * tree-flow.h
2204 (extern debug (struct loop &)): New.
2205 (extern debug (struct loop *)): New.
2206 (extern debug_verbose (struct loop &)): New.
2207 (extern debug_verbose (struct loop *)): New.
2208 * tree-data-ref.c
2209 (debug (data_reference &)): New.
2210 (debug (data_reference *)): New.
2211 (debug (vec<data_reference_p> &)): New.
2212 (debug (vec<data_reference_p> *)): New.
2213 (debug (vec<ddr_p> &)): New.
2214 (debug (vec<ddr_p> *)): New.
2215 * tree-data-ref.h
2216 (extern debug (data_reference &)): New.
2217 (extern debug (data_reference *)): New.
2218 (extern debug (vec<data_reference_p> &)): New.
2219 (extern debug (vec<data_reference_p> *)): New.
2220 (extern debug (vec<ddr_p> &)): New.
2221 (extern debug (vec<ddr_p> *)): New.
2222 * tree-ssa-alias.c
2223 (debug (pt_solution &)): New.
2224 (debug (pt_solution *)): New.
2225 * tree-ssa-alias.h
2226 (extern debug (pt_solution &)): New.
2227 (extern debug (pt_solution *)): New.
2228 * tree-ssa-alias.c
2229 (debug (_var_map &)): New.
2230 (debug (_var_map *)): New.
2231 (debug (tree_live_info_d &)): New.
2232 (debug (tree_live_info_d *)): New.
2233 * tree-ssa-alias.h
2234 (extern debug (_var_map &)): New.
2235 (extern debug (_var_map *)): New.
2236 (extern debug (tree_live_info_d &)): New.
2237 (extern debug (tree_live_info_d *)): New.
2238
be77e1e5
JH
22392013-03-28 Jan Hubicka <jh@suse.cz>
2240
2241 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
2242
777e6976
IB
22432013-03-28 Ian Bolton <ian.bolton@arm.com>
2244
2245 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
2246 record only when desired or required.
2247
9cd347ae
UB
22482013-03-28 Uros Bizjak <ubizjak@gmail.com>
2249
2250 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
2251 *vec_extractv2di_1_rex64. Use x64 isa attribute.
2252
33159866 22532013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
2254
2255 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
2256 (*andsi3_compare0_uxtw): New pattern.
2257 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
2258 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
2259
89ab31c1
JH
22602013-03-28 Jan Hubicka <jh@suse.cz>
2261
2262 * data-streamer-in.c (streamer_read_gcov_count): New function.
2263 * gimple-streamer-out.c: Include value-prof.h.
2264 (output_gimple_stmt): Output histogram.
2265 (output_bb): Use streamer_write_gcov_count.
2266 * value-prof.c: Include data-streamer.h
2267 (dump_histogram_value): Add HIST_TYPE_MAX.
2268 (stream_out_histogram_value): New function.
2269 (stream_in_histogram_value): New function.
2270 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
2271 (stream_out_histogram_value, stream_in_histogram_value): Declare.
2272 * data-streamer-out.c (streamer_write_gcov_count): New function.
2273 (streamer_write_gcov_count_stream): New function.
2274 * lto-cgraph.c (lto_output_edge): Update counter streaming.
2275 (lto_output_node): Likewise.
2276 (input_node, input_edge): Likewise.
2277 * lto-streamer-out.c (output_cfg): Update streaming.
2278 * lto-streamer-in.c (input_cfg): Likewise.
2279 * data-streamer.h (streamer_write_gcov_count,
2280 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
2281 * gimple-streamer-in.c: Include value-prof.h
2282 (input_gimple_stmt): Input histograms.
2283 (input_bb): Update profile streaming.
2284
e594716a 22852013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 2286
33159866 2287 * genmodes.c (emit_max_int): New function.
8697be17 2288 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
2289 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
2290 Added doc.
8697be17 2291 * machmode.def: Fixed comment.
89ab31c1 2292
e594716a 22932013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
2294
2295 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
2296 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
2297
74946978
MP
22982013-03-28 Marek Polacek <polacek@redhat.com>
2299 Richard Biener <rguenther@suse.de>
2300
2301 PR tree-optimization/56695
2302 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
2303 build signed result of a vector comparison.
2304 * tree-cfg.c (verify_gimple_comparison): Check that a result
2305 of a vector comparison has signed type.
2306
a64b9c26
RB
23072013-03-28 Richard Biener <rguenther@suse.de>
2308
2309 PR tree-optimization/37021
2310 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
2311 do not restrict gaps between groups.
2312 * tree-vect-stmts.c (vectorizable_load): Properly account for
2313 a gap between groups.
2314
a9dc2a2f
EB
23152013-03-28 Eric Botcazou <ebotcazou@adacore.com>
2316
2317 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
2318 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
2319 is not enabled.
2320
53cb97f9
GP
23212013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
2322
2323 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
2324 * doc/extend.texi (Named Address Spaces): Ditto.
2325 (Variable Attributes): Ditto.
2326
b802ae5c
KT
23272013-03-27 Kai Tietz <ktietz@redhat.com>
2328
eddae10a
KT
2329 * config.build: Add support for cygwin x64 target.
2330 * config.gcc: Likewise.
2331 * config.host: Likewise.
2332 * configure.ac: Likewise
2333 * configure: Regenerated.
b802ae5c 2334
8269de54
KT
23352013-03-27 Kai Tietz <ktietz@redhat.com>
2336
2337 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
2338 * config/i386/t-cygwin-w64: New file.
2339 * config/i386/cygwin-w64.h: New file.
2340 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
2341 and add support for x64-cygwin target.
2342 (CPP_SPEC): Likewise.
2343 (CXX_WRAP_SPEC_LIST): Undefine before define.
2344 (LIBGCJ_SONAME): Use 15 as version.
2345
f49b33cb
RB
23462013-03-27 Richard Biener <rguenther@suse.de>
2347
2348 PR tree-optimization/56716
2349 * tree-ssa-structalias.c (perform_var_substitution): Adjust
2350 dumping for ref nodes.
2351
b37a6ce5
MJ
23522013-03-27 Martin Jambor <mjambor@suse.cz>
2353
2354 PR tree-optimization/55334
2355 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
2356 restricted pointers to arrays.
2357
9469b9b2
GDR
23582013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2359
2360 * Makefile.in (.SUFFIXES): Add .cc.
2361 (.c.o): Apply same recipe for implicit rule .cc.o.
2362
7d24f650
RB
23632013-03-27 Richard Biener <rguenther@suse.de>
2364
2365 PR tree-optimization/37021
2366 * tree-vect-data-refs.c (vect_check_strided_load): Allow
2367 REALPART/IMAGPART_EXPRs around the supported refs.
2368 * tree-ssa-structalias.c (find_func_aliases): Assume that
2369 floating-point values are not used to transfer pointers.
2370
2f251a05
AI
23712013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2372
39385fa6
PC
2373 * target.def (TARGET_HAS_IFUNC_P): New target hook.
2374 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
2375 * doc/tm.texi: Regenerate.
2376 * targhooks.h (default_has_ifunc_p): New.
2377 * targhooks.c (default_has_ifunc_p): Ditto.
2378 * config/linux-protos.h: New file.
2379 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
2380 this hook for linux which disables support of indirect functions in
2381 android.
39385fa6
PC
2382 * config/linux-android.c: New file.
2383 * config/t-linux-android.c: Ditto.
2384 * config.gcc: Added new object file linux-android.o.
2385 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 2386 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 2387 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
2388 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
2389 doesn't support indirect functions.
2390 * configure: Regenerate.
2391
78b4e425
BC
23922013-03-27 Bin Cheng <bin.cheng@arm.com>
2393
2394 PR target/56102
2395 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
2396 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
2397 mult-word mode.
2398
a5ba7b92
AK
23992013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2400
2401 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
2402
be624986
TG
24032013-03-27 Terry Guo <terry.guo@arm.com>
2404
2405 * config/arm/arm-cores.def: Added core cortex-r7.
2406 * config/arm/arm-tune.md: Regenerated.
2407 * config/arm/arm-tables.opt: Regenerated.
2408 * doc/invoke.texi: Added entry for core cortex-r7.
2409
0a514f47
WL
24102013-03-27 Walter Lee <walt@tilera.com>
2411
2412 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
2413 double-decrement of next_scratch_regno.
2414
9332b0d2
WL
24152013-03-27 Walter Lee <walt@tilera.com>
2416
801d9b2a 2417 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
2418 input operands.
2419 (insn_v1mulus): Ditto.
2420 (insn_v2muls): Ditto.
2421
f54ea5dd
WL
24222013-03-27 Walter Lee <walt@tilera.com>
2423
e594716a 2424 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
2425 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
2426
bf60f4ca
WL
24272013-03-27 Walter Lee <walt@tilera.com>
2428
e594716a 2429 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
2430 (*sibcall_value): Ditto.
2431
e3b51eeb
WL
24322013-03-27 Walter Lee <walt@tilera.com>
2433
2434 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
2435 (insn_mnz_v8qi): ... this ...
2436 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
2437 vector equivalent.
2438 (insn_v<n>mnz): Replaced by ...
2439 (insn_v1mnz): ... this ...
2440 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
2441 equivalent.
2442 (insn_mz_<mode>): Replaced by ...
2443 (insn_mz_v8qi): ... this ...
2444 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
2445 vector equivalent.
2446 (insn_v<n>mz): Replaced by ...
2447 (insn_v1mz): ... this ...
2448 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
2449 equivalent.
2450
4fc7b145
EB
24512013-03-26 Eric Botcazou <ebotcazou@adacore.com>
2452
2453 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
2454
6f33817e
RM
24552013-03-26 Roland McGrath <mcgrathr@google.com>
2456
2457 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
2458 than fprintf with a non-constant, non-format string.
2459
93a4145b
UB
24602013-03-26 Uros Bizjak <ubizjak@gmail.com>
2461
2462 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
2463 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
2464 operand 0 predicate.
2465 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
2466 attribute. Use general_x64nomem_operand as operand 1 predicate.
2467 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
2468 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
2469 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
2470 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
2471 (mov<mode>_insv_1): Remove expander. Merge insn with
2472 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
2473 Use general_x64nomem_operand as operand 1 predicate.
2474 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
2475 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
2476 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
2477 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
2478 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
2479 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
2480 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
2481 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
2482 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
2483 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
2484 (general_x64nomem_operand): Ditto.
2485
c6a9ed5a 24862013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
2487
2488 * config/rtems.opt: Add -pthread option.
2489
31b0a960
RB
24902013-03-26 Richard Biener <rguenther@suse.de>
2491
93a4145b
UB
2492 * alias.c (find_base_term): Avoid redundant and not used recursion.
2493 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
2494 (true_dependence_1): Compute and pass base terms to base_alias_check.
2495 (write_dependence_p): Likewise.
2496 (may_alias_p): Likewise.
2497
79517551
SN
24982013-03-26 Sofiane Naci <sofiane.naci@arm.com>
2499
2500 * config/aarch64/aarch64.c (aarch64_classify_address): Support
2501 PC-relative load in SI modes and above only.
2502
a76213b9
XQ
25032013-03-26 Xinyu Qi <xyqi@marvell.com>
2504
2505 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
2506 * config/arm/iwmmxt.md (WCGR0): Update.
2507 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 2508
37ff9355
UB
25092013-03-26 Uros Bizjak <ubizjak@gmail.com>
2510
2511 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
2512 Use x64 and nox64 isa attributes.
2513
30b0317c
RB
25142013-03-26 Richard Biener <rguenther@suse.de>
2515
2516 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2517 alignment computations and rely on get_object_alignment_1
2518 for the !TYPE_P case.
2519 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
2520
cbcdb140
WL
25212013-03-26 Walter Lee <walt@tilera.com>
2522
2523 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
2524 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
2525
dd884525 25262013-03-25 Jeff Law <law@redhat.com>
be672e08 2527
33159866
UB
2528 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
2529 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
2530 wrong version of prior patch.
2531
0051d3ec
WL
25322013-03-25 Walter Lee <walt@tilera.com>
2533
2534 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2535 TILEGX_INSN_SHUFFLEBYTES1.
2536 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2537 shufflebytes1.
2538 (tilegx_builtins): Ditto.
2539 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2540
065a3605
WL
25412013-03-25 Walter Lee <walt@tilera.com>
2542
2543 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
2544 (floatunssisf2): New pattern.
2545 (floatsidf2): New pattern.
2546 (floatunssidf2): New pattern.
065a3605 2547
5b2a3c82
WL
25482013-03-25 Walter Lee <walt@tilera.com>
2549
2550 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2551 tests for constraint J, K, N, P.
2552
192ea533
WL
25532013-03-25 Walter Lee <walt@tilera.com>
2554
2555 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2556 Use indirect/pcrel encoding.
2557 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2558 Ditto.
2559
855e0d0b
SE
25602013-03-25 Steve Ellcey <sellcey@mips.com>
2561
2562 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
2563 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
2564 * config/mips/mips.c (mips_option_override): Set IMADD default.
2565 * config/mips/mips.h (PTF_AVOID_IMADD): New.
2566 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
2567 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
2568 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
2569 * doc/invoke.texi (-mimadd/-mno-imadd): New.
2570
39e45653
JL
25712013-03-25 Jeff Law <law@redhat.com>
2572
2573 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
2574 slightly to avoid creating and folding useless trees. Simplify
2575 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
2576
7482c470
UB
25772013-03-25 Uros Bizjak <ubizjak@gmail.com>
2578
2579 * config/i386/i386.md (*zero_extendsidi2): Merge with
2580 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
2581 * config/i386/predicates.md (x86_64_zext_operand): Rename from
2582 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
2583 targets. Clarify comment.
2584
4a53743e
MJ
25852013-03-25 Martin Jambor <mjambor@suse.cz>
2586
2587 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
2588 pass-through jump functions differently.
2589 (ipa_read_jump_function): Likewise. Also use setter functions to set
2590 up jump functions.
2591
162712de
MJ
25922013-03-25 Martin Jambor <mjambor@suse.cz>
2593
2594 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
2595 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
2596 process it.
2597 (ipa_get_indirect_edge_target): New function.
2598 (devirtualization_time_bonus): New parameter known_aggs, pass it to
2599 ipa_get_indirect_edge_target. Update all callers.
2600 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
2601 ipa_get_indirect_edge_target_1 instead of calling
2602 ipa_get_indirect_edge_target.
2603 (create_specialized_node): Pass aggvlas to
2604 ipcp_discover_new_direct_edges.
2605
a5a4c20a
KT
26062013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2607
2608 * config/arm/arm.md (f_sels, f_seld): New types.
2609 (*cmov<mode>): New pattern.
2610 * config/arm/predicates.md (arm_vsel_comparison_operator): New
2611 predicate.
2612
f992b9fc
KT
26132013-03-25 Kai Tietz <ktietz@redhat.com>
2614
2615 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
2616 POSIX-printf for mingw-hosted builds.
2617
c16fd676
RB
26182013-03-25 Richard Biener <rguenther@suse.de>
2619
2620 PR middle-end/56694
2621 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2622 must-not-throw stmt location.
2623
5ad29f12
KT
26242013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2625
2626 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
2627 Emit load-acquire versions when acq is true.
2628 (arm_emit_store_exclusive): Add rel parameter.
2629 Emit store-release versions when rel is true.
2630 (arm_split_compare_and_swap): Use acquire-release instructions
2631 instead.
2632 of barriers when appropriate.
2633 (arm_split_atomic_op): Likewise.
2634 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
2635 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
2636 (VUNSPEC_SLX): Likewise.
2637 (VUNSPEC_LDA): Likewise.
2638 (VUNSPEC_STL): Likewise.
2639 * config/arm/sync.md (atomic_load<mode>): New pattern.
2640 (atomic_store<mode>): Likewise.
2641 (arm_load_acquire_exclusive<mode>): Likewise.
2642 (arm_load_acquire_exclusivesi): Likewise.
2643 (arm_load_acquire_exclusivedi): Likewise.
2644 (arm_store_release_exclusive<mode>): Likewise.
2645
03a7dddb
CM
26462013-03-25 Catherine Moore <clm@codesourcery.com>
2647
2648 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
2649 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
2650 * config/mip/predicates.md (lwsp_swsp_operand,
2651 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
2652 sb16_operand, db4_operand, db7_operand, ib3_operand,
2653 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
2654 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
2655 andi16_operand): New predicates.
2656 * config/mips/mips.md (compression): New attribute.
2657 (enabled): New attribute.
2658 (length): Consider compression in computing length.
2659 (shift_compression): New code attribute.
2660 (*add<mode>3): New operands. Record compression.
2661 (sub<mode>3): Likewise.
2662 (one_cmpl<mode>2): Likewise.
2663 (*and<mode>3): Likewise.
2664 (*ior<mode>3): Likewise.
2665 (unnamed pattern for xor): Likewise.
2666 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
2667 (*<optab><mode>3): Likewise.
2668 (*mov<mode>_internal: Likewise.
2669 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
2670 (mips_unsigned_immediate_p): New.
2671 (umips_lwsp_swsp_address_p): New.
2672 (m16_based_address_p): New.
2673 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
2674 (mips_unsigned_immediate_p): New prototype.
2675 (lwsp_swsp_address_p): New prototype.
2676 (m16_based_address_p): New prototype.
2677 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
2678 (mips_signed_immediate_p): New function.
2679 (m16_based_address_p): New function.
2680 (lwsp_swsp_address_p): New function.
2681 (mips_print_operand_punctuation): Recognize short delay slot insns
2682 for microMIPS.add<mode>3"
2683
f35c297f 26842013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 2685
f35c297f
KT
2686 PR target/56720
2687 * config/arm/iterators.md (v_cmp_result): New mode attribute.
2688 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2689
051b9446
RB
26902013-03-25 Richard Biener <rguenther@suse.de>
2691
2692 PR tree-optimization/56689
2693 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
2694 any edge.
2695
374001cb
RB
26962013-03-25 Richard Biener <rguenther@suse.de>
2697
2698 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
2699 of bitmap.
2700 (memory_references): Likewise.
2701 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
2702 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
2703 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
2704 (gather_mem_refs_in_loops): Fold into ...
2705 (analyze_memory_references): ... this. Move initialization
2706 to tree_ssa_lim_initialize.
2707 (fill_always_executed_in): Rename to ...
2708 (fill_always_executed_in_1): ... this.
2709 (fill_always_executed_in): Move contains_call computation to
2710 this new function from ...
2711 (tree_ssa_lim_initialize): ... here.
2712 (tree_ssa_lim): Call fill_always_executed_in.
2713
57895947
EB
27142013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2715
2716 * postreload.c (reload_combine): Fix code detecting returns.
2717
1e1b18c1
EB
27182013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2719
2720 * function.c (emit_use_return_register_into_block): On cc0 targets,
2721 do not emit the sequence between cc0 setter and user.
2722
9216baf1
KT
27232013-03-25 Kai Tietz <ktietz@redhat.com>
2724
1e1b18c1
EB
2725 * config/i386/predicates.md (local_symbolic_operand): Interpret
2726 dll-imported symbols as none-local.
9216baf1 2727
76421b44
RB
27282013-03-25 Richard Biener <rguenther@suse.de>
2729
2730 * tree-ssa-loop-im.c (struct depend): Remove.
2731 (struct lim_aux_data): Make depends a vec of gimples.
2732 (free_lim_aux_data): Adjust.
2733 (add_dependency): Likewise.
2734 (set_level): Likewise.
2735
d154bfa2
RB
27362013-03-25 Richard Biener <rguenther@suse.de>
2737
2738 PR middle-end/56434
2739 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
2740 the pointer returned by calls with ECF_MALLOC set.
2741
2cd9804e
UB
27422013-03-24 Uros Bizjak <ubizjak@gmail.com>
2743
acef5fe0
UB
2744 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
2745
27462013-03-24 Uros Bizjak <ubizjak@gmail.com>
2747
2748 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
2749 using MMXMODE mode iterator.
2750 (*move<mode>_internal): Merge with *movv2sf_internal and
2751 *movv2sf_internal_rex64 using MMXMODE mode iterator.
2752
225ccc68
SB
27532013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2754
85c0f02d
SB
2755 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
2756 (record_last_mem_set_info): Likewise.
2757
225ccc68
SB
2758 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
2759 of XNEWVEC followed by memset.
2760 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
2761
b64925dc
SB
27622013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2763
2764 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2765 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
2766 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
2767 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
2768 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
2769 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
2770 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
2771 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
2772 BARRIER_P instead of GET_CODE.
2773
b9aaf52e
EB
27742013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2775
2776 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
2777 inaccuracy in the probing code.
2778
2779 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
2780 (ctrapdi4): Likewise.
2781
66de4d7c
EB
27822013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2783
2784 * calls.c (expand_call): Add missing guard to code handling return
2785 of non-BLKmode structures in MSB.
2786 * function.c (expand_function_end): Likewise.
2787
4f25c8fb
EB
27882013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2789
2790 * combine.c (try_combine): Adjust comment. Do not add the set of
2791 insn #0 if the destination indirectly is set or dies in insn #2.
2792 Tidy up code to distribute a new note.
2793
23b7850d
UB
27942013-03-22 Uros Bizjak <ubizjak@gmail.com>
2795
2796 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
2797 also for alternatives 16 and 17.
2798
bed852cf
UB
27992013-03-22 Uros Bizjak <ubizjak@gmail.com>
2800
2801 * config/i386/sse.md (*mov<mode>_internal): Merge with
2802 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
2803 Emit insn template depending on type attribute. Use
2804 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2805 movd instead of movq mnemonic for interunit moves. Rewrite mode
2806 attribute calculation. Remove unit attribute calculation.
2807 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
2808 Set prefix_data16 attribute for DImode ssemov types.
2809 Use Ym instead of y for SSE-MMX conversion alternatives.
2810 Reorder operand constraints.
2811
1e8a7937
SB
28122013-03-22 Steven Bosscher <steven@gcc.gnu.org>
2813
2814 * df.h (df_insn_delete): Adjust prototype.
2815 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
2816 and let it decide whether mark the basic block dirty.
2817 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
2818 * df-scan.c (df_insn_info_delete): New helper function, split
2819 off from df_insn_delete.
2820 (df_scan_free_bb_info): Use it.
2821 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
2822 Likewise.
2823 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
2824 that the insn is actually an insn and it has a non-NULL basic block.
2825 Do not mark basic block dirty if only deleting a DEBUG_INSN.
2826
e14d094c
RB
28272013-03-22 Richard Biener <rguenther@suse.de>
2828
2829 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
2830 dep_ref members.
2831 (mem_ref_alloc): Do not allocate them.
2832 (refs_independent_p): Do not query or maintain a cache.
2833
e9cf7316
RB
28342013-03-22 Richard Biener <rguenther@suse.de>
2835
2836 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
2837 (gather_mem_refs_in_loops): Do not compute it.
2838 (analyze_memory_references): Do not allocate it.
2839 (tree_ssa_lim_finalize): Do not free it.
2840 (for_all_locs_in_loop): Do not query all_refs_in_loop.
2841
f046e81b
RB
28422013-03-22 Richard Biener <rguenther@suse.de>
2843
2844 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 2845
a05c0ddf
IB
28462013-03-22 Ian Bolton <ian.bolton@arm.com>
2847
2848 * config/aarch64/aarch64.c (aarch64_print_operand): New
2849 format specifier for printing a constant in hex.
2850 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2851 format specifier for printing second operand.
2852
c00217fc
RB
28532013-03-22 Richard Biener <rguenther@suse.de>
2854
2855 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
2856 bitmaps.
2857 (gather_mem_refs_in_loops): Perform store accumulation here.
2858 (create_vop_ref_mapping_loop): Remove.
2859 (create_vop_ref_mapping): Likewise.
2860 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 2861 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
2862 (record_indep_loop): Remove.
2863 (record_dep_loop): New function.
2864 (ref_indep_loop_p_1): Adjust to only walk over references
2865 in the loop, not its subloops.
2866 (ref_indep_loop_p): Rename to ...
2867 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
2868 maintaining a more fine-grained cache.
2869 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
2870 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
2871
15d19bf8
RB
28722013-03-22 Richard Biener <rguenther@suse.de>
2873
2874 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
2875 (struct mem_ref): Make accesses_in_loop a vec of a vec of
2876 aggregate mem_ref_loc.
2877 (free_mem_ref_locs): Inline into ...
2878 (memref_free): ... this and adjust.
2879 (mem_ref_alloc): Adjust.
2880 (mem_ref_locs_alloc): Remove.
2881 (record_mem_ref_loc): Adjust.
2882 (get_all_locs_in_loop): Rewrite into ...
2883 (for_all_locs_in_loop): ... this iterator.
2884 (rewrite_mem_ref_loc): New functor.
2885 (rewrite_mem_refs): Use for_all_locs_in_loop.
2886 (sm_set_flag_if_changed): New functor.
2887 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
2888 (ref_always_accessed): New functor.
2889 (ref_always_accessed_p): Use for_all_locs_in_loop.
2890
6f37411d
MG
28912013-03-21 Marc Glisse <marc.glisse@inria.fr>
2892
2893 * tree-pass.h (PROP_gimple_lvec): New.
2894 * passes.c (dump_properties): Handle PROP_gimple_lvec.
2895 (init_optimization_passes): Move pass_lower_vector.
2896 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
2897 PROP_gimple_lvec.
2898 (pass_lower_vector): Provide PROP_gimple_lvec.
2899 (pass_lower_vector_ssa): Likewise.
2900 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
2901
511ef689
MW
29022013-03-21 Mark Wielaard <mjw@redhat.com>
2903
2904 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2905
cc1df30b
UB
29062013-03-21 Uros Bizjak <ubizjak@gmail.com>
2907
2908 * config/i386/i386.md (*movdi_internal): Disparage slightly
2909 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
2910 conversion alternatives.
2911
c845cfe1
JJ
29122013-03-21 Jakub Jelinek <jakub@redhat.com>
2913
37e99116
JJ
2914 PR middle-end/48087
2915 * diagnostic.def (DK_WERROR): New kind.
2916 * diagnostic.h (werrorcount): Define.
2917 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
2918 promoted to DK_ERROR, increment DK_WERROR counter instead of
2919 DK_ERROR counter.
2920 * toplev.c (toplev_main): Call print_ignored_options even if
2921 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
2922 even if just werrorcount is non-zero.
2923
c845cfe1
JJ
2924 PR debug/55608
2925 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
2926 on failure.
2927 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
2928 (string_cst_pool_decl): New function.
2929 (optimize_one_addr_into_implicit_ptr): New function.
2930 (resolve_addr_in_expr): Optimize DWARF location expression
2931 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
2932 which doesn't live in memory, but has DW_AT_location or
2933 DW_AT_const_value, or refers to a string literal, into
2934 DW_OP_GNU_implicit_pointer.
2935 (optimize_location_into_implicit_ptr): New function.
2936 (resolve_addr): If removing DW_AT_location of a variable because
2937 it was DW_OP_addr of address of the variable, but the variable doesn't
2938 live in memory, try to emit const value attribute for the initializer.
2939
08e0cda6
MG
29402013-03-21 Marc Glisse <marc.glisse@inria.fr>
2941
2942 * tree.h (VECTOR_TYPE_P): New macro.
2943 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
2944 TYPE_MODE): Use it.
2945 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
2946 VEC_COND_EXPR cannot be lvalues.
2947 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
2948
d08633b4
MG
29492013-03-21 Marc Glisse <marc.glisse@inria.fr>
2950
2951 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
2952 Restrict the transformation to equal modes.
2953
e6647190
RB
29542013-03-21 Richard Biener <rguenther@suse.de>
2955
2956 PR tree-optimization/39326
2957 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
2958 (MEM_ANALYZABLE): Adjust.
2959 (record_mem_ref_loc): Move bitmap ops ...
2960 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
2961 unanalyzable refs, do not record locations for it.
2962 (analyze_memory_references): Allocate ref zero as shared
2963 unanalyzable ref.
2964 (refs_independent_p): Do not test for unanalyzed mems here.
2965 (ref_indep_loop_p_1): Special-case disambiguation against
2966 the unanalyzed ref.
cc1df30b 2967 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 2968
65074f54
CL
29692013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
2970
2971 * config/arm/arm-protos.h (tune_params): Add
2972 prefer_neon_for_64bits field.
2973 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2974 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2975 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2976 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2977 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2978 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2979 (arm_option_override): Handle -mneon-for-64bits new option.
2980 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2981 (prefer_neon_for_64bits): Declare new variable.
2982 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 2983 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
2984 (arch_enabled): Handle new arch types. Remove support for onlya8
2985 and nota8.
2986 (one_cmpldi2): Use new arch names.
bc5faa5b 2987 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
2988 * config/arm/arm.opt (mneon-for-64bits): Add option.
2989 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2990 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2991 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2992 of onlya8.
2993 * doc/invoke.texi (-mneon-for-64bits): Document.
2994
5a2d2a79
RB
29952013-03-21 Richard Biener <rguenther@suse.de>
2996
2997 PR tree-optimization/39326
2998 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2999 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 3000 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 3001
5abe1e05
RB
30022013-03-21 Richard Biener <rguenther@suse.de>
3003
3004 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
3005 (vect_insert_into_interleaving_chain): Likewise.
3006 (vect_drs_dependent_in_basic_block): Inline ...
3007 (vect_slp_analyze_data_ref_dependence): ... here. New function,
3008 split out from ...
3009 (vect_analyze_data_ref_dependence): ... here. Simplify.
3010 (vect_check_interleaving): Simplify.
3011 (vect_analyze_data_ref_dependences): Likewise. Split out ...
3012 (vect_slp_analyze_data_ref_dependences): ... this new function.
3013 (dr_group_sort_cmp): New function.
3014 (vect_analyze_data_ref_accesses): Compute data-reference groups
3015 here instead of in vect_analyze_data_ref_dependence. Use
3016 a more efficient algorithm.
3017 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
3018 vect_slp_analyze_data_ref_dependences. Call
3019 vect_analyze_data_ref_accesses earlier.
3020 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3021 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
3022 (vect_slp_analyze_data_ref_dependences): New prototype.
3023
cad1735b
RB
30242013-03-21 Richard Biener <rguenther@suse.de>
3025
3026 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
3027 ref is stored in the loop.
3028 (find_refs_for_sm): Walk only over all stores.
3029 (store_motion_loop): Allocate from lim_bitmap_obstack.
3030 (store_motion): Likewise.
3031
141310ef
RB
30322013-03-21 Richard Biener <rguenther@suse.de>
3033
3034 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
3035 Update virtual SSA form.
3036
5022315a
RO
30372013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3038
3039 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
3040 * configure: Regenerate.
3041 * config.in: Regenerate.
3042 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
3043 if !HAVE_LD_EH_FRAME_CIEV3.
3044
50d4421c
RB
30452013-03-21 Richard Biener <rguenther@suse.de>
3046
3047 * tree-cfg.c (verify_expr_no_block): New function.
3048 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
3049 nor DECL_VALUE_EXPR have locations with associated blocks.
3050 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
3051 (clear_unused_block_pointer): Remove code dealing with
3052 blocks in DECL_DEBUG_EXPR locations.
3053
839b422f
RB
30542013-03-21 Richard Biener <rguenther@suse.de>
3055
3056 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
3057 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
3058 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
3059 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
3060 instead of DECL_DEBUG_EXPR_IS_FROM.
3061 * gimplify.c (gimplify_modify_expr): Likewise.
3062 * tree-cfg.c (verify_expr_location_1): Likewise.
3063 * tree-complex.c (create_one_component_var): Likewise.
3064 * tree-sra.c (create_access_replacement): Likewise.
3065 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
3066 (clear_unused_block_pointer): Likewise.
3067 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3068 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3069 * var-tracking.c (var_debug_decl): Likewise.
3070 (track_expr_p): Likewise.
3071 * tree-inline.c (add_local_variables): Likewise. Set
3072 DECL_HAS_DEBUG_EXPR_P after copying it.
3073 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3074 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
3075
fe04878d
UB
30762013-03-21 Uros Bizjak <ubizjak@gmail.com>
3077
3078 PR bootstrap/56656
3079 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
3080 * configure: Regenerate.
3081 * config.in: Regenerate.
3082 * config/i386/i386.md (*movdf_internal): Use
3083 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3084 movd instead of movq mnemonic for interunit moves.
3085 (*movdi_internal): Ditto.
3086
bd059b26 30872013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
3088
3089 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
3090 (abd<mode>_3): New pattern.
3091 (aba<mode>_3): New pattern.
3092 (fabd<mode>_3): New pattern.
3093
bd059b26 30942013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
3095
3096 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
3097 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
3098 occurrence of REGISTER_PREFIX as its empty string.
3099
4f1f78b9
JL
31002013-03-20 Jeff Law <law@redhat.com>
3101
3102 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
3103 addititional equivalences for equality comparisons between an SSA_NAME
3104 and a constant where the SSA_NAME was set from a widening conversion.
3105
327a1118
WL
31062013-03-20 Walter Lee <walt@tilera.com>
3107
3108 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3109
813e0036
UB
31102013-03-20 Uros Bizjak <ubizjak@gmail.com>
3111
3112 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
3113 depending on type attribute.
3114 (*movti_internal): Ditto.
3115 (*movtf_internal): Ditto.
3116 (*movxf_internal): Ditto.
3117 (*movdf_internal): Ditto.
3118 (*movsf_internal): Ditto.
3119
7cf34aae
UB
31202013-03-20 Uros Bizjak <ubizjak@gmail.com>
3121
3122 * config/i386/i386.md (*movti_internal): Set prefix attribute to
3123 maybe_vex for sselog1 and ssemov types.
3124 (*movdi_internal): Reorder operand constraints.
3125 (*movsi_internal): Ditto. Set prefix attribute to
3126 maybe_vex for sselog1 and ssemov types.
3127 (*movtf_internal): Set prefix attribute to maybe_vex
3128 for sselog1 and ssemov types.
3129 (*movdf_internal): Ditto. Set prefix_data16 attribute for
3130 DImode ssemov types. Reorder operand constraints.
3131 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
3132 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
3133 attribute for SImode ssemov types. Reorder operand constraints.
3134
19321415
MJ
31352013-03-20 Martin Jambor <mjambor@suse.cz>
3136
3137 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
3138 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
3139
c6d5ff83
MM
31402013-03-20 Pat Haugen <pthaugen@us.ibm.com>
3141
3142 * config/rs6000/predicates.md (indexed_address, update_address_mem
3143 update_indexed_address_mem): New predicates.
3144 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
3145 attribute for load/store instructions.
3146 * config/rs6000/dfp.md (movsd_store): Likewise.
3147 (movsd_load): Likewise.
3148 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
3149 (unnamed HI->DI extend define_insn): Likewise.
3150 (unnamed SI->DI extend define_insn): Likewise.
3151 (unnamed QI->SI extend define_insn): Likewise.
3152 (unnamed QI->HI extend define_insn): Likewise.
3153 (unnamed HI->SI extend define_insn): Likewise.
3154 (unnamed HI->SI extend define_insn): Likewise.
3155 (extendsfdf2_fpr): Likewise.
3156 (movsi_internal1): Likewise.
3157 (movsi_internal1_single): Likewise.
3158 (movhi_internal): Likewise.
3159 (movqi_internal): Likewise.
3160 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
3161 attribute for load/store instructions.
3162 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
3163 instructions.
3164 (mov<mode>_softfloat): Likewise.
3165 (mov<mode>_hardfloat32): Likewise.
3166 (mov<mode>_hardfloat64): Likewise.
3167 (mov<mode>_softfloat64): Likewise.
3168 (movdi_internal32): Likewise.
3169 (movdi_internal64): Likewise.
3170 (probe_stack_<mode>): Likewise.
3171
31722013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3173
3174 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
3175 floating point, and decimal floating point to reload iterator.
3176
3177 * config/rs6000/constraints.md (wl constraint): New constraints to
3178 return FLOAT_REGS if certain options are used to reduce the number
3179 of separate patterns that exist in the file.
3180 (wx constraint): Likewise.
3181 (wz constraint): Likewise.
3182
3183 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3184 -mdebug=reg, print wg, wl, wx, and wz constraints.
3185 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3186 Initialize the reload functions for 64-bit binary/decimal floating
3187 point types.
3188 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3189 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3190 create the buffer on the stack to overcome not having a 32-bit
3191 load and store.
3192 (rs6000_emit_move): Likewise.
3193 (rs6000_secondary_memory_needed_rtx): Likewise.
3194 (rs6000_alloc_sdmode_stack_slot): Likewise.
3195 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3196 via xxlxor, just like DFmode 0.0.
3197
3198 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
3199 define as 1 if we are running on a power7 or newer.
3200 (enum r6000_reg_class_enum): Add new constraints.
3201
3202 * config/rs6000/dfp.md (movsd): Delete, combine with binary
3203 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
3204 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 3205 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
3206 (movsd splitter): Likewise.
3207 (movsd_hardfloat): Likewise.
3208 (movsd_softfloat): Likewise.
3209
3210 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
3211 binary and decimal floating point moves.
3212 (fmove_ok): New attributes to combine binary and decimal floating
3213 point moves, and to combine power6x (mfpgpr) moves along normal
3214 floating moves.
3215 (real_value_to_target): Likewise.
3216 (f32_lr): Likewise.
3217 (f32_lm): Likewise.
3218 (f32_li): Likewise.
3219 (f32_sr): Likewise.
3220 (f32_sm): Likewise.
3221 (f32_si): Likewise.
3222 (movsf): Combine binary and decimal floating point moves. Combine
3223 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 3224 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
3225 (mov<mode> for SFmode/SDmode); Likewise.
3226 (SFmode/SDmode splitters): Likewise.
3227 (movsf_hardfloat): Likewise.
3228 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
3229 (movsf_softfloat): Likewise.
3230 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
3231
3232 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
3233 wx and wz constraints.
3234
3235 * config/rs6000/constraints.md (wg constraint): New constraint to
3236 return FLOAT_REGS if -mmfpgpr (power6x) was used.
3237
3238 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
3239 constraint.
3240
3241 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3242 -mdebug=reg, print wg, wl, wx, and wz constraints.
3243 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3244 Initialize the reload functions for 64-bit binary/decimal floating
3245 point types.
3246 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3247 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3248 create the buffer on the stack to overcome not having a 32-bit
3249 load and store.
3250 (rs6000_emit_move): Likewise.
3251 (rs6000_secondary_memory_needed_rtx): Likewise.
3252 (rs6000_alloc_sdmode_stack_slot): Likewise.
3253 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3254 via xxlxor, just like DFmode 0.0.
3255
c6d5ff83
MM
3256 * config/rs6000/dfp.md (movdd): Delete, combine with binary
3257 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
3258 with other moves by using conditional constraits (wg). Use LFIWZX
3259 and STFIWX for loading SDmode on power7.
3260 (movdd splitters): Likewise.
3261 (movdd_hardfloat32): Likewise.
3262 (movdd_softfloat32): Likewise.
3263 (movdd_hardfloat64_mfpgpr): Likewise.
3264 (movdd_hardfloat64): Likewise.
3265 (movdd_softfloat64): Likewise.
3266
3267 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
3268 64-bit binary and decimal floating point moves.
3269 (FMOVE64X): Likewise.
3270 (movdf): Combine 64-bit binary and decimal floating point moves.
3271 Combine power6x (mfpgpr) moves with other moves by using
3272 conditional constraits (wg).
3273 (mov<mode> for DFmode/DDmode): Likewise.
3274 (DFmode/DDmode splitters): Likewise.
3275 (movdf_hardfloat32): Likewise.
3276 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
3277 (movdf_softfloat32): Likewise.
3278 (movdf_hardfloat64_mfpgpr): Likewise.
3279 (movdf_hardfloat64): Likewise.
3280 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
3281 (movdf_softfloat64): Likewise.
3282 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
3283 (reload_<mode>_load): Move to later in the file so they aren't in
3284 the middle of the floating point move insns.
3285 (reload_<mode>_store): Likewise.
3286
3287 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
3288 constraint.
3289
3290 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
3291 constraint if -mdebug=reg.
bd059b26
UB
3292 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
3293 Enable using dd reload support if needed.
c6d5ff83
MM
3294
3295 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
3296 binary and decimal floating point moves in rs6000.md.
3297 (movtd_internal): Likewise.
3298
3299 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
3300 decimal floating point moves.
3301 (movtf): Likewise.
3302 (movtf_internal): Likewise.
3303 (mov<mode>_internal, TDmode/TFmode): Likewise.
3304 (movtf_softfloat): Likewise.
3305 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
3306
3307 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
3308 movdi_internal64, using wg constraint for move direct operations.
3309 (movdi_internal64): Likewise.
3310
3311 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
3312 MODES_TIEABLE_P for selected modes. Print the numerical value of
3313 the various virtual registers. Use GPR/FPR first/last values,
3314 instead of hard coding the register numbers. Print which modes
3315 have reload functions registered.
bd059b26
UB
3316 (rs6000_option_override_internal): If -mdebug=reg, trace the options
3317 settings before/after setting cpu, target and subtarget settings.
3318 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
3319 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
3320 (rs6000_secondary_reload_fail): Likewise.
3321 (rs6000_secondary_reload_inner): Likewise.
3322
3323 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
3324 macros for first/last GPR and FPR registers.
3325 (LAST_GPR_REGNO): Likewise.
3326 (FIRST_FPR_REGNO): Likewise.
3327 (LAST_FPR_REGNO): Likewise.
3328
3329 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
3330 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
3331 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
3332 (vcond<mode><mode>): Likewise.
3333 (vcondu<mode><mode>): Likewise.
3334 (vector_gtu<mode>): Likewise.
3335 (vector_gte<mode>): Likewise.
3336 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 3337 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
3338 (ior<mode>3): Likewise.
3339 (and<mode>3): Likewise.
3340 (one_cmpl<mode>2): Likewise.
3341 (nor<mode>3): Likewise.
3342 (andc<mode>3): Likewise.
3343
3344 * config/rs6000/constraints.md (wt constraint): New constraint
3345 that returns VSX_REGS if TImode is allowed in VSX registers.
3346
3347 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
3348 constant under VSX.
3349
3350 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
3351 similar to TImode, but it is restricted to being in the GPRs.
3352
3353 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
3354 TImode to occupy a single VSX register.
3355
3356 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
3357 -mvsx-timode for power7/power8.
3358 (power7 cpu): Likewise.
3359 (power8 cpu): Likewise.
3360
3361 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
3362 sure that TFmode/TDmode take up two registers if they are ever
3363 allowed in the upper VSX registers.
3364 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
3365 registers.
3366 (rs6000_init_hard_regno_mode_ok): Likewise.
3367 (rs6000_debug_reg_global): Add debugging for PTImode and wt
3368 constraint. Print if LRA is turned on.
3369 (rs6000_option_override_internal): Give an error if -mvsx-timode
3370 and VSX is not enabled.
3371 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
3372 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
3373 to reg+offset addressing. Use PTImode when checking offset
3374 addresses for validity.
3375 (reg_offset_addressing_ok_p): Likewise.
3376 (rs6000_legitimate_offset_address_p): Likewise.
3377 (rs6000_legitimize_address): Likewise.
3378 (rs6000_legitimize_reload_address): Likewise.
3379 (rs6000_legitimate_address_p): Likewise.
3380 (rs6000_eliminate_indexed_memrefs): Likewise.
3381 (rs6000_emit_move): Likewise.
3382 (rs6000_secondary_reload): Likewise.
3383 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
3384 reloads to fpr registers to continue to use reg+offset addressing,
3385 but 64-bit reloads to altivec registers need reg+reg addressing.
3386 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
3387 it. Treat LO_SUM like a PLUS operation.
3388 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 3389 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
3390 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
3391 registers to share a register with a smaller sized type, since VSX
3392 puts scalars in the upper 64-bits.
3393 (print_operand): Add support for PTImode.
3394 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
3395 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
3396 registers, but don't have arithmetic support.
3397 (rs6000_memory_move_cost): Add test for VSX.
3398 (rs6000_opt_masks): Add -mvsx-timode.
3399
3400 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
3401 for TImode.
3402 (VSs): Likewise.
3403 (VSr): Use wt constraint for TImode.
3404 (VSv): Drop TImode support.
3405 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
3406 (vsx_movti_64bit): Likewise.
3407 (vsx_movti_32bit): Likewise.
3408 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
3409 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
3410 one '?' on the appropriate output constraint. Do not allow TImode
3411 logical operations on 32-bit systems.
3412 (vsx_ior<mode>3): Likewise.
3413 (vsx_xor<mode>3): Likewise.
3414 (vsx_one_cmpl<mode>2): Likewise.
3415 (vsx_nor<mode>3): Likewise.
3416 (vsx_andc<mode>3): Likewise.
3417 (vsx_concat_<mode>): Likewise.
3418 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
3419
3420 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
3421 OPTION_MASK_VSX_TIMODE.
3422 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
3423 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
3424
3425 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
3426 (TI2 iterator): New iterator for TImode, PTImode.
3427 (wd mode attribute): Add values for vector types.
bd059b26
UB
3428 (movti_string): Replace TI move operations with operations for TImode
3429 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
3430 (mov<mode>_string, TImode/PTImode): Likewise.
3431 (movti_ppc64): Likewise.
3432 (mov<mode>_ppc64, TImode/PTImode): Likewise.
3433 (TI mode splitters): Likewise.
3434
3435 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
3436 constraint.
3437
1fc5eced
MG
34382013-03-20 Marc Glisse <marc.glisse@inria.fr>
3439
3440 PR tree-optimization/56355
3441 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
3442 Also handle integers with undefined overflow.
3443
22c4c869
CM
34442013-03-20 Catherine Moore <clm@codesourcery.com>
3445 Maciej W. Rozycki <macro@codesourcery.com>
3446 Tom de Vries <tom@codesourcery.com>
3447 Nathan Sidwell <nathan@codesourcery.com>
3448 Iain Sandoe <iain@codesourcery.com>
3449 Nathan Froyd <froydnj@codesourcery.com>
3450 Chao-ying Fu <fu@mips.com>
3451
3452 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 3453 Document new function attributes.
22c4c869
CM
3454 * doc/invoke.texi (minterlink-compressed, mmicromips,
3455 m14k, m14ke, m14kec): Document new options.
3456 (minterlink-mips16): Update documentation.
3457 * doc/md.texi (ZC, ZD): Document new constraints.
3458 * configure.ac (gcc_cv_as_micromips): Check if linker
3459 supports the .set micromips directive.
3460 * configure: Regenerate.
3461 * config.in: Regenerate.
3462 * config/mips/mips-tables.opt: Regenerate.
3463 * config/mips/micromips.md: New file.
3464 * constraints.md (ZC, ZD): New constraints.
3465 * config/mips/predicates.md (movep_src_register): New predicate.
3466 (movep_src_operand): New predicate.
3467 (non_volatile_mem_operand): New predicate.
3468 * config/mips/mips.md (multimem): New type.
3469 (length): Differentiate between 17-bit and 18-bit branch offsets.
3470 (MOVEP1, MOVEP2): New mode iterator.
33159866 3471 (mov_<load>l): Use ZC constraint.
22c4c869
CM
3472 (mov_<load>r): Likewise.
3473 (mov_<store>l): Likewise.
3474 (mov_<store>r): Likewise.
3475 (*branch_equality<mode>_inverted): Add microMIPS support.
3476 (*branch_equality<mode>): Likewise.
3477 (*jump_absolute): Likewise.
3478 (indirect_jump_<mode>): Likewise.
3479 (tablejump_<mode>): Likewise.
3480 (<optab>_internal): Likewise.
3481 (sibcall_internal): Likewise.
3482 (sibcall_value_internal): Likewise.
3483 (prefetch): Use constraint ZD.
3484 * config/mips/mips.opt (minterlink-compressed): New option.
3485 (minterlink-mips16): Now an alias for minterlink-compressed.
3486 (mmicromips): New option.
3487 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3488 (compare_and_swap_12): Likewise.
3489 (sync_add<mode>): Likewise.
3490 (sync_<optab>_12): Likewise.
3491 (sync_old_<optab>_12): Likewise.
3492 (sync_new_<optab>_12): Likewise.
3493 (sync_nand_12): Likewise.
3494 (sync_old_nand_12): Likewise.
3495 (sync_new_nand_12): Likewise.
3496 (sync_sub<mode>): Likewise.
3497 (sync_old_add<mode>): Likewise.
3498 (sync_old_sub<mode>): Likewise.
3499 (sync_new_add<mode>): Likewise.
3500 (sync_new_sub<mode>): Likewise.
3501 (sync_<optab><mode>): Likewise.
3502 (sync_old_<optab><mode>): Likewise.
3503 (sync_new_<optab><mode>): Likewise.
3504 (sync_nand<mode>): Likewise.
3505 (sync_old_nand<mode>): Likewise.
3506 (sync_new_nand<mode>): Likewise.
3507 (sync_lock_test_and_set<mode>): Likewise.
3508 (test_and_set_12): Likewise.
3509 (atomic_compare_and_swap<mode>): Likewise.
3510 (atomic_exchange<mode>_llsc): Likewise.
3511 (atomic_fetch_add<mode>_llsc): Likewise.
3512 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3513 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3514 (umips_save_restore_pattern_p): Likewise.
3515 (umips_load_store_pair_p): Likewise.
3516 (umips_output_load_store_pair): Likewise.
3517 (umips_movep_target_p): Likewise.
3518 (umips_12bit_offset_address_p): Likewise.
3519 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3520 (mips_base_mips16): Rename this...
3521 (mips_base_compression_flags): ...to this. Update all uses.
3522 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3523 (mips_mips16_decl_p): Delete.
3524 (mips_nomips16_decl_p): Delete.
33159866 3525 (mips_get_compress_on_flags): New function.
22c4c869
CM
3526 (mips_get_compress_off_flags): New function.
3527 (mips_get_compress_mode): New function.
3528 (mips_get_compress_on_name): New function.
3529 (mips_get_compress_off_name): New function.
3530 (mips_insert_attributes): Support multiple compression types.
3531 (mips_merge_decl_attributes): Likewise.
3532 (umips_12bit_offset_address_p): New function.
3533 (mips_start_function_definition): Emit .set micromips directive.
3534 (mips_call_may_need_jalx_p): New function.
3535 (mips_function_ok_for_sibcall): Add microMIPS support.
3536 (mips_print_operand_punctuation): Support short delay slots and
3537 compact jumps.
3538 (umips_swm_mask, umips_swm_encoding): New.
3539 (umips_build_save_restore): New function.
3540 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3541 (was_mips16_p): Remove.
3542 (old_compression_mode): New.
3543 (mips_set_compression_mode): New function.
3544 (mips_set_current_function): Add microMIPS support.
3545 (mips_option_override): Likewise.
3546 (umips_save_restore_pattern_p): New function.
3547 (umips_output_save_restore): New function.
3548 (umips_load_store_pair_p_1): New function.
3549 (umips_load_store_pair_p): New function.
3550 (umips_output_load_store_pair_1): New function.
3551 (umips_output_load_store_pair): New function.
3552 (umips_movep_target_p) New function.
3553 (mips_prepare_pch_save): Add microMIPS support.
3554 * config/mips/mips.h (TARGET_COMPRESSION): New.
3555 (TARGET_CPU_CPP_BUILTINS): Update macro
3556 to use new compression flags and to support microMIPS.
3557 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3558 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3559 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3560 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3561 (ASM_SPEC): Support mmicromips and mno-micromips.
3562 (M16STORE_REG_P): New macro.
3563 (MIPS_CALL): Support TARGET_MICROMIPS.
3564 (MICROMIPS_J): New macro.
3565 (mips_base_mips16): Rename this...
3566 (mips_base_compression_flags): ...to this.
3567 (UMIPS_12BIT_OFFSET_P): New macro.
3568 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3569 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
35702013-03-20 Richard Biener <rguenther@suse.de>
3571
3572 PR tree-optimization/56661
3573 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3574 the result does not have to be distinct.
3575
54714c68
RB
35762013-03-20 Richard Biener <rguenther@suse.de>
3577
3578 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
3579 remap_gimple_op_r.
3580
cca1130d
BS
35812013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3582 Steven Bosscher <steven@gcc.gnu.org>
3583
3584 PR rtl-optimization/56605
3585 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3586
2a930377
UB
35872013-03-20 Uros Bizjak <ubizjak@gmail.com>
3588
3589 PR bootstrap/56656
3590 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
3591 that require movd instead of movq.
3592
d6d305fe
RB
35932013-03-20 Richard Biener <rguenther@suse.de>
3594
3595 * tree-ssa-structalias.c (struct variable_info): Add pointer
3596 to the first field of an aggregate with sub-vars. Make
3597 this and the pointer to the next subfield its ID.
3598 (vi_next): New function.
3599 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
3600 storedanything_id, integer_id): Increment by one.
3601 (new_var_info, get_call_vi, lookup_call_clobber_vi,
3602 get_call_clobber_vi): Adjust.
3603 (solution_set_expand): Simplify and speedup.
3604 (solution_set_add): Inline into ...
3605 (set_union_with_increment): ... this. Adjust accordingly.
3606 (do_sd_constraint): Likewise.
3607 (do_ds_constraint): Likewise.
3608 (do_complex_constraint): Simplify.
3609 (build_pred_graph): Adjust.
3610 (solve_graph): Likewise. Simplify and speedup.
3611 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
3612 get_constraint_for_component_ref, get_constraint_for_1,
3613 first_vi_for_offset, first_or_preceding_vi_for_offset,
3614 create_function_info_for, create_variable_info_for_1,
3615 create_variable_info_for, intra_create_variable_infos): Adjust.
3616 (init_base_vars): Push NULL for ID zero.
3617 (compute_points_to_sets): Adjust.
3618
a271b42d
RB
36192013-03-20 Richard Biener <rguenther@suse.de>
3620
3621 * cfgloop.c (verify_loop_structure): Streamline and avoid
3622 ICEing on corrupt loop tree.
3623 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
3624 loop tree.
3625
ebd65954
RB
36262013-03-20 Richard Biener <rguenther@suse.de>
3627
3628 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
3629 check whether an SSA update is needed.
3630
4547b7ee
RS
36312013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
3632
3633 * config/mips/constraints.md (T): Rename to...
3634 (Yf): ...this.
3635 (U): Rename to...
3636 (Yd): ...this.
3637 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
3638 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
3639
0b8cdc58
IB
36402013-03-19 Ian Bolton <ian.bolton@arm.com>
3641
3642 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
3643 (*subsi3_carryin_uxtw): Likewise.
3644
5977a10d
IB
36452013-03-19 Ian Bolton <ian.bolton@arm.com>
3646
3647 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
3648 (*rorsi3_insn_uxtw): Likewise.
3649
bd83ff2c
IB
36502013-03-19 Ian Bolton <ian.bolton@arm.com>
3651
3652 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
3653 (*extrsi5_insn_uxtw): Likewise.
3654
ba65123c
RB
36552013-03-19 Richard Biener <rguenther@suse.de>
3656
3657 PR tree-optimization/56273
3658 * passes.c (init_optimization_passes): Move second VRP after DOM.
3659
2eac0476
UB
36602013-03-19 Uros Bizjak <ubizjak@gmail.com>
3661
3662 * config/i386/i386.md (*movti_internal): Merge from
3663 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
3664 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
3665 nox64 isa attributes.
3666
6e55eda7
RB
36672013-03-18 Richard Biener <rguenther@suse.de>
3668
3669 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
3670 (unite): Likewise.
3671 (merge_node_constraints): Likewise.
3672 (build_succ_graph): Likewise.
3673 (valid_graph_edge): Inline into single caller.
3674 (unify_nodes): Likewise. Use bitmap_set_bit return value
3675 and cache varinfo.
3676 (scc_visit): Fix formatting and variable use.
3677 (do_sd_constraint): Use gcc_checking_assert.
3678 (do_ds_constraint): Likewise.
3679 (do_complex_constraint): Likewise.
3680 (condense_visit): Likewise. Cleanup.
3681 (dump_pred_graph): New function.
3682 (perform_var_substitution): Dump the pred-graph before
3683 variable substitution.
3684 (find_equivalent_node): Use gcc_checking_assert.
3685 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
3686
4bdd44c4
RB
36872013-03-18 Richard Biener <rguenther@suse.de>
3688
3689 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3690 Remove cond_expr_stmt_list argument and do not gimplify the
3691 built expression.
3692 (vect_loop_versioning): Adjust.
3693 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3694 Cleanup to use less temporaries.
3695 (vect_create_data_ref_ptr): Cleanup.
3696
38c56a5b
JJ
36972013-03-18 Jakub Jelinek <jakub@redhat.com>
3698
3699 PR tree-optimization/56635
3700 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
3701 require types_compatible_p types.
3702
20b2e6a0
NC
37032013-03-18 Nick Clifton <nickc@redhat.com>
3704
a6178a25
NC
3705 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
3706 spurious backslash.
3707
20b2e6a0
NC
3708 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
3709 Add missing line to comment describing function.
3710
92608d0e
RB
37112013-03-18 Richard Biener <rguenther@suse.de>
3712
3713 PR tree-optimization/56210
3714 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3715 Handle string / character search functions.
3716 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3717
31348d52
RB
37182013-03-18 Richard Biener <rguenther@suse.de>
3719
3720 PR middle-end/56483
3721 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
3722 and implement properly.
3723 * gimple.h (gimple_cond_single_var_p): Remove.
3724
fcac74a1
RB
37252013-03-18 Richard Biener <rguenther@suse.de>
3726
3727 * tree-data-ref.h (find_data_references_in_loop): Declare.
3728 * tree-data-ref.c (get_references_in_stmt): Use a stack
3729 vector pre-allocated in the callers.
3730 (find_data_references_in_stmt): Adjust.
3731 (graphite_find_data_references_in_stmt): Likewise.
3732 (create_rdg_vertices): Likewise.
3733 (find_data_references_in_loop): Export.
3734 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3735 Compute dependences here...
3736 (vect_analyze_data_refs): ...not here. When we encounter
3737 a non-vectorizable data reference in basic-block vectorization
3738 truncate the data reference vector. Do not bother to
3739 fixup data-dependence information for gather loads.
3740 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
3741 of data references, as reported.
3742
0d5a1b56
RB
37432013-03-18 Richard Biener <rguenther@suse.de>
3744
3745 PR tree-optimization/3713
3746 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
3747 has_constants and expr.
3748 (stmt_has_constants): Properly valueize SSA names when deciding
3749 whether the stmt has constants.
3750
789c34e3
RB
37512013-03-18 Richard Biener <rguenther@suse.de>
3752
3753 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
3754 whole function when there is nothing to do.
3755 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
3756 * tree-vectorizer.c (vectorize_loops): Update virtual and
3757 loop-closed SSA once.
3758 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
3759
076b4605
RB
37602013-03-18 Richard Biener <rguenther@suse.de>
3761
3762 PR middle-end/56113
3763 * domwalk.c (bb_postorder): New global static.
3764 (cmp_bb_postorder): New function.
3765 (walk_dominator_tree): Replace scheme imposing an order for
3766 visiting dominator sons by one sorting them at the time they
3767 are pushed on the stack.
3768
bdb01696
RB
37692013-03-18 Richard Biener <rguenther@suse.de>
3770
3771 PR tree-optimization/39326
3772 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
3773 (struct mem_ref): Replace mem member with ao_ref typed member.
3774 (MEM_ANALYZABLE): Adjust.
3775 (memref_eq): Likewise.
3776 (mem_ref_alloc): Likewise.
3777 (gather_mem_refs_stmt): Likewise.
3778 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
3779 (execute_sm_if_changed_flag_set): Adjust.
3780 (execute_sm): Likewise.
3781 (ref_always_accessed_p): Likewise.
3782 (refs_independent_p): Likewise.
3783 (can_sm_ref_p): Likewise.
3784
12d2dc5e
JJ
37852013-03-18 Jakub Jelinek <jakub@redhat.com>
3786
3787 PR c/56566
3788 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
3789 return 1 even for !unsignedp.
3790
286fb677
UB
37912013-03-17 Uros Bizjak <ubizjak@gmail.com>
3792
3793 * config/i386/i386.md (isa): Add x64 and nox64.
3794 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
3795 (*pushtf): Enable *roF alternative for x64 isa only.
3796 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
3797 mode attribute of integer alternatives to DImode for TARGET_64BIT.
3798 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
3799 (*movtf_internal): Merge from *movtf_internal_rex64 and
3800 *movtf_internal_sse. Use x64 and nox64 isa attributes.
3801 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
3802 nox64 isa attributes.
3803 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
3804 nox64 isa attributes.
3805 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
3806
88b97037
UB
38072013-03-17 Uros Bizjak <ubizjak@gmail.com>
3808
3809 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3810
9f4f1735
JJ
38112013-03-17 Jakub Jelinek <jakub@redhat.com>
3812
3813 PR target/56640
3814 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3815 class names. Remove trailing comma after "ALL_REGS".
3816
48f4a6fa
JH
38172013-03-16 Jan Hubicka <jh@suse.cz>
3818
3819 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
3820 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
3821 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
3822 of cgraph_get_create_node.
3823 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3824
98e81123
JM
38252013-03-16 Jason Merrill <jason@redhat.com>
3826
3827 PR debug/49090
3828 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
3829 with DW_AT_default_value.
3830
8a298c04
JJ
38312013-03-16 Jakub Jelinek <jakub@redhat.com>
3832
3833 * BASE-VER: Set to 4.9.0.
3834
4323afa0
AK
38352013-03-14 Andi Kleen <ak@linux.intel.com>
3836
3837 PR target/56619
3838 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3839 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3840 Document _x* TSX intrinsics.
3841
b3c0d469
JJ
38422013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
3843 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
3844
3845 * configure.ac: Add MicroBlaze TLS support detection.
3846 * configure: Regenerate.
88b97037
UB
3847 * config/microblaze/microblaze-protos.h
3848 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3849 symbol_mentioned_p, label_mentioned_p): Add prototypes.
3850 * config/microblaze/microblaze.c (microblaze_address_type): Add
3851 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
3852 (microblaze_address_info): Add tls_reloc.
3853 (TARGET_HAVE_TLS): Define.
3854 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3855 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
3856 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3857 load_tls_operand, microblaze_call_tls_get_addr,
3858 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
3859 (microblaze_classify_unspec): Handle UNSPEC_TLS.
3860 (get_base_reg): Use microblaze_tls_symbol_p.
3861 (microblaze_classify_address): Handle TLS.
88b97037
UB
3862 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3863 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
3864 (microblaze_legitimize_address): Handle TLS.
3865 (microblaze_address_insns): Handle ADDRESS_TLS.
3866 (pic_address_needs_scratch): Handle TLS.
3867 (print_operand_address): Handle TLS.
3868 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3869 (microblaze_expand_move): Handle TLS.
88b97037
UB
3870 (microblaze_legitimate_constant_p): Check
3871 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
3872 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3873 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3874 (PIC_OFFSET_TABLE_REGNUM): Set.
3875 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3876 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3877 (addsi3, movsi_internal2, movdf_internal): Update constraints
3878 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
3879 (move_operand): Redefine as move_src_operand,
3880 check microblaze_tls_referenced_p.
8cc9a5a5 3881
d803a491
IB
38822013-03-14 Ian Bolton <ian.bolton@arm.com>
3883
3884 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3885 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3886
a8504f22
IB
38872013-03-14 Ian Bolton <ian.bolton@arm.com>
3888
3889 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3890 CC mode for AND.
3891
df2dfaea
JJ
38922013-03-14 Jakub Jelinek <jakub@redhat.com>
3893
fbd28bc3
JJ
3894 PR tree-optimization/53265
3895 * common.opt (Waggressive-loop-optimizations): New option.
3896 * tree-ssa-loop-niter.c: Include tree-pass.h.
3897 (do_warn_aggressive_loop_optimizations): New function.
3898 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
3899 if number_of_latch_executions returned constant.
3900 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3901 early. If number_of_latch_executions returned constant, set
3902 nb_iterations_upper_bound back to it.
3903 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3904 field.
3905 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3906 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3907
df2dfaea
JJ
3908 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3909 (MULTILIB_OSDIRNAMES): Set.
3910 * genmultilib: If defaultosdirname doesn't start with :: , set
3911 defaultosdirname2 instead, clear it and emit two . multilib_raw
3912 entries instead of just one.
3913
ee0d2b68
KK
39142013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
3915
3916 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3917 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3918 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3919 (SUBTARGET_OVERRIDE_OPTIONS): New.
3920
decc676e
OE
39212013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
3922
3923 PR target/49880
3924 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3925 (musermode): Convert to Var(TARGET_USERMODE).
3926 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3927 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3928 * config/sh/sh.c (sh_option_override): Use
3929 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3930 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3931 condition.
3932 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3933 TARGET_SH4.
3934 (udivsi3_i4_single, divsi3_i4_single): Use
3935 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3936
f4b719c7
DK
39372013-03-13 Dave Korn <dave.korn.cygwin@....>
3938
3939 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3940 default setting.
3941
c40eced0
RB
39422013-03-13 Richard Biener <rguenther@suse.de>
3943
3944 PR tree-optimization/56608
3945 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3946 calls when vectorizing basic-blocks.
3947
1bfa5973
JJ
39482013-03-13 Jakub Jelinek <jakub@redhat.com>
3949
3950 PR plugins/45078
3951 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3952 tm_file.
3953
6fcf5434
JJ
39542013-03-12 Jakub Jelinek <jakub@redhat.com>
3955
3956 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3957
4f38fa8c
JH
39582013-03-11 Jan Hubicka <jh@suse.cz>
3959
3960 PR lto/56557
3961 * lto-streamer-out.c (output_symbol_p): Skip references from
3962 constructors of external variables.
3963
c5c5ba89
JH
39642013-03-11 Jan Hubicka <jh@suse.cz>
3965
3966 PR middle-end/56571
3967 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3968 from pseudos.
3969 * emit-rtl.c (verify_rtx_sharing): Likewise.
3970 (copy_insn_1): Likewise.
3971 * rtl.c (copy_rtx): Likewise.
3972
c2a939b1
GJL
39732013-03-11 Georg-Johann Lay <avr@gjlay.de>
3974
3975 PR target/56591
3976 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3977 output_operand_lossage message.
88b97037 3978
3c3279fb
RE
39792013-03-11 Richard Earnshaw <rearnsha@arm.com>
3980
3981 PR target/56470
3982 * arm.c (shift_op): Validate RTL pattern on the fly.
3983 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3984 the RTL.
3985
aef5ef9d
JDA
39862013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3987
3988 PR target/56347
3989 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3990 new call patterns that clobber %fr12.
3991 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3992 split and postreload patterns.
3993 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3994 registers %fr12 and %fr12R as call used.
3995
456610d3
SB
39962013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3997
3998 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3999 (canon_address, record_store, replace_read, check_mem_read_rtx,
4000 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
4001 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
4002 rest_of_handle_dse): Likewise.
4003
4b1baac8
RS
40042013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4005
4006 PR middle-end/56524
4007 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
4008 Add base_optabs.
4009 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
4010 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
4011 (save_optabs_if_changed): Replace with...
4012 (init_tree_optimization_optabs): ...this.
4013 * optabs.c (save_optabs_if_changed): Rename to...
4014 (init_tree_optimization_optabs): ...this. Take the optimization node
4015 as argument. Do nothing if the base optabs are already correct.
4016 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
4017 to recompute optabs.
4018 * function.h (function): Remove optabs field.
4019 * function.c (invoke_set_current_function_hook): Call
4020 init_tree_optimization_optabs. Use the result to initialize
4021 this_fn_optabs.
4022
b7a78683
AH
40232013-02-27 Aldy Hernandez <aldyh@redhat.com>
4024
4025 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
4026 if GTMA_HAS_NO_INSTRUMENTATION.
4027 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
4028 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
4029 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
4030 * gimple-pretty-print.c (dump_gimple_transaction): Handle
4031 GTMA_HAS_NO_INSTRUMENTATION.
4032
6384c29b
JJ
40332013-03-08 Jakub Jelinek <jakub@redhat.com>
4034
4035 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4036 libasan_preinit.o.
4037
ecd4f20a
MP
40382013-03-08 Marek Polacek <polacek@redhat.com>
4039 Jakub Jelinek <jakub@redhat.com>
4040
4041 PR tree-optimization/56478
4042 * predict.c (is_comparison_with_loop_invariant_p): Change the
4043 type of loop_step to tree.
4044 (predict_loops): Adjust.
4045 (predict_iv_comparison): Perform the computations on double_ints.
4046
64366d35
RB
40472013-03-08 Richard Biener <rguenther@suse.de>
4048
4049 PR tree-optimization/56570
4050 * tree-cfg.c (verify_expr_location_1): Verify locations for
4051 DECL_DEBUG_EXPR.
4052 * tree-sra.c (create_access_replacement): Strip locations
4053 from DECL_DEBUG_EXPRs.
4054
a9d5a059
RB
40552013-03-08 Richard Biener <rguenther@suse.de>
4056
4057 * tree-inline.c (expand_call_inline): Do not associate
4058 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
4059 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
4060
b7aa4e9a
RB
40612013-03-08 Richard Biener <rguenther@suse.de>
4062
4063 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
4064 or block changes with -Og. Fix for location / block encoding
4065 changes and PHI arguments with locations.
4066
c4c2f9fa
SB
40672013-03-07 Steven Bosscher <steven@gcc.gnu.org>
4068
4069 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4070 for all counters.
4071 (struct output_info): Likewise.
4072 (register_overhead): Remove bad gcc_assert.
4073 (bitmap_find_bit): If there is only a single bitmap element, do not
4074 count a miss as a search.
4075 (print_statistics): Update for counter type changes.
4076 (dump_bitmap_statistics): Likewise. Print headers such that they
4077 are properly lined up with the printed counters.
4078
5bf6606a
JJ
40792013-03-07 Jakub Jelinek <jakub@redhat.com>
4080
4081 PR tree-optimization/56559
4082 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
4083 check that it has only a single use.
4084
2c653d46
RB
40852013-03-07 Richard Biener <rguenther@suse.de>
4086
4087 * doc/invoke.texi (fwhole-program): Discourage use in combination
4088 with -flto.
4089
a72d8780
JJ
40902013-03-06 Jakub Jelinek <jakub@redhat.com>
4091
01a454df
JJ
4092 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
4093
c1781047
JJ
4094 PR tree-optimization/56539
4095 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
4096 instead of GSI_CONTINUE_LINKING as last argument to
4097 force_gimple_operand_gsi. Adjust function comment.
4098
9772c47a
JJ
4099 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
4100 aarch64-cores.def.
4101
a72d8780
JJ
4102 PR middle-end/56548
4103 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
4104 promoted mode, convert the result back to the original mode.
4105
fa5556de
RB
41062013-03-06 Richard Biener <rguenther@suse.de>
4107
4108 PR middle-end/56294
4109 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
4110 (insert_updated_phi_nodes_compare_uids): New function.
4111 (update_ssa): Sort symbols_to_rename after UID before
4112 traversing it to insert PHI nodes.
4113
010403d1
RB
41142013-03-06 Richard Biener <rguenther@suse.de>
4115
4116 PR middle-end/50494
4117 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
4118 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
4119
4120 Revert
4121 2013-02-13 Richard Biener <rguenther@suse.de>
4122
4123 PR lto/50494
4124 * varasm.c (output_constant_def_1): Get the decl representing
4125 the constant as argument.
4126 (output_constant_def): Wrap output_constant_def_1.
4127 (make_decl_rtl): Use output_constant_def_1 with the decl
4128 representing the constant.
4129 (build_constant_desc): Optionally re-use a decl already
4130 representing the constant.
4131 (tree_output_constant_def): Adjust.
4132
3c27ce4c
JY
41332013-03-06 Joey Ye <joey.ye@arm.com>
4134
4135 PR lto/50293
4136 * gcc.c (convert_white_space): New function.
4137 (main): Handles white space in function name.
4138
8f6d1c86
OE
41392013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
4140
4141 PR target/56529
4142 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
4143 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
4144 to SH_DIV_CALL_TABLE for TARGET_SH2.
4145 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
4146 list.
4147 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
4148 call-table options.
4149
798a209f
SA
41502013-03-05 Sterling Augustine <saugustine@google.com>
4151 Cary Coutant <ccoutant@google.com>
4152
4153 PR debug/55364
4154 * dwarf2out.c (resolve_addr): Don't call
4155 remove_loc_list_addr_table_entries a second time for the same
4156 expression.
4157
6cfa417f 41582013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 4159
6cfa417f
JJ
4160 PR debug/56510
4161 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
4162 (avoid_complex_debug_insns): New function.
4163 (expand_debug_locations): Call it.
4164
4165 PR rtl-optimization/56484
4166 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
4167 lifetimes of hard registers on small register class machines.
4168
41692013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
4170
4171 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 4172 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 4173 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
4174 fast_interrupt.
4175 (microblaze_fast_interrupt_function_p): New function.
4176 (microblaze_is_interrupt_handler): Rename to
4177 microblaze_is_interrupt_variant and add fast_interrupt check.
4178 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
4179 (save_restore_insns): Likewise.
4180 (compute_frame_size): Likewise.
4181 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
4182 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
4183 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
4184 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
4185 microblaze_is_interrupt_variant.
4186
731aefac
KT
41872013-03-05 Kai Tietz <ktietz@redhat.com>
4188
4189 * sdbout.c (sdbout_one_type): Switch to current function's section
4190 supporting cold/hot.
4191
a72d8780 41922013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
4193
4194 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
4195 -mxl-reorder.
4196
334e71e8
JJ
41972013-03-05 Jakub Jelinek <jakub@redhat.com>
4198
0b50e654
JJ
4199 PR middle-end/56461
4200 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
4201 if VALGRIND_GET_VBITS is defined, temporarily make object
4202 memory all defined, and restore previous valgrind addressability
4203 and definability afterwards. Free this_object at the end.
4204
4ccf8f43
JJ
4205 PR middle-end/56461
4206 * lra.c (lra): Call lra_clear_live_ranges if live_p,
4207 right before calling lra_create_live_ranges, also call it
4208 when clearing live_p. Only call lra_clear_live_ranges
4209 at the end if live_p.
4210
334e71e8
JJ
4211 PR middle-end/56461
4212 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
4213
9ca966ca
RB
42142013-03-05 Richard Biener <rguenther@suse.de>
4215
4216 PR tree-optimization/56521
4217 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
4218 value-id.
4219
d273b176
SB
42202013-03-05 Steven Bosscher <steven@gcc.gnu.org>
4221
4222 PR c++/55135
4223 * except.h (remove_unreachable_eh_regions): New prototype.
4224 * except.c (remove_eh_handler_splicer): New function, split out
4225 of remove_eh_handler.
4226 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
4227 warning about running it on many EH regions one at a time.
4228 (remove_unreachable_eh_regions_worker): New function, walk the
4229 EH tree in depth-first order and remove non-marked regions.
4230 (remove_unreachable_eh_regions): New function.
4231 * tree-eh.c (mark_reachable_handlers): New function, split out
4232 from remove_unreachable_handlers.
4233 (remove_unreachable_handlers): Use mark_reachable_handlers and
4234 remove_unreachable_eh_regions.
4235 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
4236 and remove_unreachable_eh_regions.
4237
5e7f1aef
RB
42382013-03-05 Richard Biener <rguenther@suse.de>
4239
4240 PR middle-end/56525
4241 * loop-init.c (fix_loop_structure): Remove loops in two stages,
4242 not freeing them until the end.
4243
f276b762
AK
42442013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4245
4246 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
4247
12a43ab8
RB
42482013-03-05 Richard Biener <rguenther@suse.de>
4249
4250 PR tree-optimization/56270
4251 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
4252 of loads after scheduling an SLP instance.
4253
93675444
JJ
42542013-03-05 Jakub Jelinek <jakub@redhat.com>
4255
db4138e3
JJ
4256 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
4257 tic6x.exp.
4258 (check_gcc_parallelize): Run guality.exp as a separate job from
4259 vect.exp with unsorted.exp and $(dg_target_exps) separately from
4260 struct-layout-1.exp with stackalign.exp.
4261
dd3d1ec0
JJ
4262 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
4263
b8d381a3
JJ
4264 PR middle-end/56461
4265 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
4266 load_index sbitmap even if some bit in it isn't set.
4267
b4f9786b
JJ
4268 PR middle-end/56461
4269 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
4270 (discover_iteration_bound_by_body_walk): Change queues to
4271 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
4272 spelling in comment. Call safe_push on queues[bound_index] directly.
4273 Release queues[queue_index] in every iteration unconditionally.
4274 Release bounds vector.
4275
93675444
JJ
4276 PR middle-end/56461
4277 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
4278 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
4279 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
4280 inner_phis vector.
4281
3e492e9c
RB
42822013-03-05 Richard Biener <rguenther@suse.de>
4283
4284 PR lto/56515
4285 * tree-inline.c (remap_blocks_to_null): New function.
4286 (expand_call_inline): When expanding a call stmt without
4287 an associated block inline remap all callee blocks to NULL.
4288
a5d1569a
JJ
42892013-03-05 Jakub Jelinek <jakub@redhat.com>
4290
86efb5cd
JJ
4291 PR rtl-optimization/56494
4292 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
4293 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
4294 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
4295
85f5dbea
JJ
4296 PR middle-end/56461
4297 * sel-sched-ir.c (free_sched_pools): Release
4298 succs_info_pool.stack[succs_info_pool.max_top] vectors too
4299 if succs_info_pool.max_top isn't -1.
4300
a5d1569a
JJ
4301 PR bootstrap/56509
4302 * opts.c (opts_obstack, opts_concat): Moved to...
4303 * opts-common.c (opts_obstack, opts_concat): ... here.
4304
4432aa6c
JJ
43052013-03-04 Jakub Jelinek <jakub@redhat.com>
4306
4307 PR middle-end/56461
4308 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
4309
f3a1fb91
MJ
43102013-03-04 Martin Jambor <mjambor@suse.cz>
4311
4312 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
4313 all appropriate places.
4314
22110e6c
EB
43152013-01-04 Eric Botcazou <ebotcazou@adacore.com>
4316
4317 PR tree-optimization/56424
4318 * ipa-split.c (split_function): Do not set the RSO flag if result is
4319 not by reference and its type is a register type.
4320
a72d8780 43212013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 4322
88b97037 4323 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 4324 (microblaze_legitimate_pic_operand): Likewise
88b97037 4325 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
4326 new function microblaze_legitimate_pic_operand
4327 * config/microblaze/microblaze-protos.h
4328 (microblaze_legitimate_pic_operand): Declare.
4329
a72d8780 43302013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 4331
a72d8780 4332 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 4333 New predicate for supported rtx code types.
a72d8780 4334 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
4335 call_insn_simple_operand predicate.
4336
541d9ac8
JJ
43372013-03-04 Jakub Jelinek <jakub@redhat.com>
4338
5eb010bc
JJ
4339 PR middle-end/56461
4340 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
4341 partitions.ordered_remove.
4342
30862efc
JJ
4343 PR middle-end/56461
4344 * tree-vect-stmts.c (vectorizable_conversion): Don't call
4345 vec_oprnds0.create (1) for modifier == NONE.
4346
8930f723
JJ
4347 PR middle-end/56461
4348 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
4349 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
4350 vec_oprnds1 right before pushing anything to it for
4351 scalar_shift_arg.
4352
541d9ac8
JJ
4353 PR middle-end/56461
4354 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
4355 set nbbs to 0 instead of having separate code path.
4356 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
4357 instead of false as last argument if returning NULL.
4358
7aa7f2e3
SL
43592013-03-03 Sandra Loosemore <sandra@codesourcery.com>
4360
4361 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4362 the attribute is now called "target" instead of "option".
4363 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
4364 * doc/tm.texi.in (Target Attributes): Likewise document the correct
4365 attribute/pragma name for TARGET_OPTION_VALID_P and
4366 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
4367 * doc/tm.texi: Regenerated.
4368
8930f723 43692013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 4370
8930f723 4371 * config/microblaze/microblaze.c:
cb8a1637 4372 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
4373 * config/microblaze/microblaze.h: Add -mxl-reorder to
4374 DRIVER_SELF_SPECS.
4375 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
4376 instructions emitted if TARGET_REORDER.
88b97037
UB
4377 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
4378 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 4379 separately.
cb8a1637 4380
4dc1d68c
XDL
43812013-03-01 Xinliang David Li <davidxl@google.com>
4382
4383 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
4384 walk length.
4385
689eaba3
JJ
43862013-03-01 Jakub Jelinek <jakub@redhat.com>
4387
9d676bf6
JJ
4388 PR middle-end/56461
4389 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
4390 vector even when returning true. Fix up function comment formatting.
4391
caff7edf
JJ
4392 PR middle-end/56461
4393 * ira-build.c (ira_loop_nodes_count): New variable.
4394 (create_loop_tree_nodes): Initialize it.
4395 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
4396
b6b9227d
JJ
4397 PR middle-end/56461
4398 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
4399 method on dr_chain and result_chain.
4400 * tree-vect-stmts.c (vectorizable_store): Only call
4401 result_chain.create if j == 0.
4402
689eaba3
JJ
4403 PR middle-end/56461
4404 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
4405 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
4406 before overwriting it.
4407
40bf31ed
TB
44082013-03-01 Tobias Burnus <burnus@net-b.de>
4409
4410 * doc/extended.texi (C Extensions): Change order in @menu
4411 to match @node.
4412 (Other MIPS Built-in Functions): Move last MIPS entry before
4413 "picoChip Built-in Functions".
4414 (SH Built-in Functions): Move after RX Built-in Functions.
4415 * doc/gcc.texi (Introduction): Change order in @menu
4416 to match @node.
4417 * doc/md.texi (Constraints): Ditto.
4418 * gty.texi (Type Information): Ditto.
4419 (User-provided marking routines for template types): Make
4420 subsection.
4421 * doc/invoke.texi (AArch64 Options): Move before
4422 "Adapteva Epiphany Options".
4423
e664c61c
KS
44242013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4425 Jakub Jelinek <jakub@redhat.com>
4426
4427 PR sanitizer/56454
4428 * asan.c (gate_asan): Lookup no_sanitize_address instead of
4429 no_address_safety_analysis attribute.
4430 * doc/extend.texi (no_address_safety_attribute): Rename to
4431 no_sanitize_address attribute, mention no_address_safety_analysis
4432 attribute as deprecated alias.
4433
37b5ec8f
JJ
44342013-02-28 Jakub Jelinek <jakub@redhat.com>
4435
4436 PR middle-end/56461
4437 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
4438 type to vec<vec<tree> > *.
4439 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
4440 to be vec<tree> instead of vec<tree> *, set vec_defs
4441 to vNULL and call vec_defs.create (number_of_vects), adjust other
4442 uses of vec_defs.
4443 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
4444 vectorizable_condition): Adjust vect_get_slp_defs callers.
4445
ba96cdfb
JG
44462013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4447
4448 * config/aarch64/aarch64.c
4449 (aarch64_float_const_representable): Remove unused variable.
4450
6f549691
JG
44512013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4452
4453 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
4454
af55e82d
JG
44552013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4456
4457 * config/aarch64/aarch64-builtins.c
4458 (aarch64_init_simd_builtins): Make static.
4459
1df3f464
JG
44602013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4461
4462 * config/aarch64/aarch64.c
4463 (aarch64_simd_make_constant): Make static.
4464
f8f42513
MJ
44652013-02-28 Martin Jambor <mjambor@suse.cz>
4466
4467 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
4468 with no initialization to the RHS of debug statements.
4469
b48b3fc4
MJ
44702013-02-28 Martin Jambor <mjambor@suse.cz>
4471
4472 PR tree-optimization/56294
4473 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
4474 Adjust dumping.
4475 (get_access_replacement): Do not call create_access_replacement.
4476 Assert a replacement exists.
4477 (get_repl_default_def_ssa_name): Create the replacement declaration
4478 itself.
4479
c3ae224c
RR
44802013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4481
4482 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
4483 final_end_function.
4484
45fa0eef
MP
44852013-02-28 Marek Polacek <polacek@redhat.com>
4486
4487 PR rtl-optimization/56466
4488 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
4489 if we're changing a loop.
4490 (peel_loops_completely): Likewise.
4491
502c067d
PC
44922013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
4493
4494 PR c++/55813
4495 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
4496
ff24afc8
GJL
44972013-02-28 Georg-Johann Lay <avr@gjlay.de>
4498
4499 PR target/56445
4500 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
4501 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
4502 INTX_FTYPE_FX, FX_FTYPE_INTX.
4503 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
4504
c7b1fc1b
GJL
45052013-02-28 Georg-Johann Lay <avr@gjlay.de>
4506
4507 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
4508 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
4509 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
4510 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
4511 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
4512 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
4513 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
4514 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
4515 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
4516 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
4517 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
4518 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
4519 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
4520 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
4521 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
4522 (avrxmega6): Increase max flash segments from 5 to 6.
4523 * config/avr/t-multilib: Regenerate.
4524 * config/avr/avr-tables.opt: Regenerate.
4525 * doc/avr-mmcu.texi: Regenerate.
4526
4a0e3cfe
GJL
45272013-02-28 Georg-Johann Lay <avr@gjlay.de>
4528
4529 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
4530 (avr_device_to_arch): Rename to avr_device_to_ld.
4531 (avr_device_to_as): New prototype.
4532 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
4533 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
4534 * config/avr/driver-avr.c (avr_device_to_as): New.
4535 (avr_device_to_arch): Rename to avr_device_to_ld.
4536
97785e52
JJ
45372013-02-27 Jakub Jelinek <jakub@redhat.com>
4538
3f292312
JJ
4539 PR middle-end/56461
4540 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4541 method on dr_chain and result_chain.
4542
a344216b
JJ
4543 PR middle-end/56461
4544 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4545 pointer_set_destroy on not_executed_last_iteration.
4546
f121ad02 4547 PR middle-end/56461
88b97037 4548 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 4549
307f83a3
JJ
4550 PR middle-end/56461
4551 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4552 FOR_EACH_DEFINED_FUNCTION when freeing state.
4553
e19624ee
JJ
4554 PR middle-end/56461
4555 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4556 pool_free.
4557 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4558 overwriting it.
4559
90e709fd
JJ
4560 PR middle-end/56461
4561 * ipa-cp.c (decide_whether_version_node): Call vec_free on
4562 known_aggs[i].items and release known_aggs vector.
4563
97785e52
JJ
4564 PR middle-end/56461
4565 * ipa-reference.c (propagate): Free node_info even for alias nodes.
4566
45672013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 4568
97785e52
JJ
4569 * config/microblaze/microblaze.c (microblaze_emit_compare):
4570 Use xor for EQ/NE comparisions.
4571 * config/microblaze/microblaze.md (cstoresf4): Add constraints
4572 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 4573
6fa5e0ed
JJ
45742013-02-27 Jakub Jelinek <jakub@redhat.com>
4575
4576 PR middle-end/56461
4577 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4578 vector.
4579 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4580 vec_safe_push, always update *slot.
4581 (redirect_edge_var_map_clear): Use vec_free.
4582 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4583 (free_var_map_entry): Use vec_free.
4584 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4585 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4586
436a956a
AB
45872013-02-27 Andrey Belevantsev <abel@ispras.ru>
4588
4589 PR middle-end/45472
436a956a
AB
4590 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4591 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
4592 Reorder tests for speculativeness in the logical and operator.
4593
f5c2caca
JJ
45942013-02-27 Jakub Jelinek <jakub@redhat.com>
4595
0fcb564b
JJ
4596 * incpath.c (add_standard_paths): Use reconcat instead of concat
4597 where appropriate and avoid leaking memory.
4598
dc357798
JJ
4599 * opts.h: Include obstack.h.
4600 (opts_concat): New prototype.
4601 (opts_obstack): New declaration.
4602 * opts.c (opts_concat): New function.
4603 (opts_obstack): New variable.
4604 (init_options_struct): Call gcc_init_obstack on opts_obstack.
4605 (finish_options): Use opts_concat instead of concat
4606 and XOBNEWVEC instead of XNEWVEC.
4607 * opts-common.c (generate_canonical_option, decode_cmdline_option,
4608 generate_option): Likewise.
4609 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4610 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4611
f5c2caca
JJ
4612 PR target/56455
4613 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4614 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4615
d0163673
JJ
46162013-02-26 Jakub Jelinek <jakub@redhat.com>
4617
4618 PR middle-end/56461
4619 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4620
b5ad2b8e
JR
46212013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4622
4623 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4624 (arm_block_move_unaligned_straight): Likewise.
4625 (arm_adjust_block_mem): Likewise.
4626
9b639e2c
JR
46272013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4628
4629 PR target/48901
4630 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4631 temp, cond and label.
4632 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4633
e13a0ccb
JR
4634 PR target/52500
4635 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4636 * config/c6x/c6x.h (dbx_register_map): Update declaration.
4637
fbe4f171
JR
4638 PR target/52501
4639 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4640 of prologue/epilogue functions.
4641
ae006543
JR
4642 PR target/52550
4643 * config/tilegx/tilegx.c (tilegx_expand_prologue):
4644 Remove unused variable cfa_offset.
4645 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4646
c81369fa
JR
4647 PR target/54639
4648 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4649 type promotion to unsigned.
4650
f8a8fea7
JR
4651 PR target/54640
4652 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4653 for HOST_WIDE_INT of 32 bit / same size as int.
4654 (arm_block_move_unaligned_straight): Likewise.
4655 (arm_adjust_block_mem): Likewise.
4656
f8be5169
JR
4657 PR target/54662
4658 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4659 ALL_CFLAGS.
4660
f1ad3354
MP
46612013-02-26 Marek Polacek <polacek@redhat.com>
4662
4663 PR tree-optimization/56426
88b97037 4664 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 4665
a6af0f42
RB
46662013-02-26 Richard Biener <rguenther@suse.de>
4667
4668 PR target/56444
4669 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4670 unused variable loops.
4671
aca43c6c
JJ
46722013-02-26 Jakub Jelinek <jakub@redhat.com>
4673
cecbe5d9
JJ
4674 PR tree-optimization/56448
4675 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4676 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4677 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4678 later operands of the references, or even first operand for
4679 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4680
aca43c6c
JJ
4681 PR tree-optimization/56443
4682 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4683 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4684 to type_for_mode langhook.
4685
53e2e141
MT
46862013-02-25 Matt Turner <mattst88@gmail.com>
4687
4688 * doc/invoke.texi: Document r4700.
4689
259ee451
RB
46902013-02-25 Richard Biener <rguenther@suse.de>
4691
4692 PR tree-optimization/56175
4693 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4694 split out from ...
4695 (simplify_bitwise_binary): ... here. Also guard the conversion
4696 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4697
6d65e8f1
CM
46982013-02-25 Catherine Moore <clm@codesourcery.com>
4699
4700 Revert:
4701 2013-02-24 Catherine Moore <clm@codesourcery.com>
4702 Maciej W. Rozycki <macro@codesourcery.com>
4703 Tom de Vries <tom@codesourcery.com>
a72d8780 4704 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
4705 Iain Sandoe <iain@codesourcery.com>
4706 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 4707 Chao-ying Fu <fu@mips.com>
88b97037 4708
6d65e8f1 4709 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 4710 Document new function attributes.
6d65e8f1
CM
4711 * doc/invoke.texi (minterlink-compressed, mmicromips,
4712 m14k, m14ke, m14kec): Document new options.
4713 (minterlink-mips16): Update documentation.
4714 * doc/md.texi (ZC, ZD): Document new constraints.
4715 * configure.ac (gcc_cv_as_micromips): Check if linker
4716 supports the .set micromips directive.
4717 * configure: Regenerate.
4718 * config.in: Regenerate.
4719 * config/mips/mips-tables.opt: Regenerate.
4720 * config/mips/micromips.md: New file.
4721 * constraints.md (ZC, AD): New constraints.
4722 * config/mips/predicates.md (movep_src_register): New predicate.
4723 (movep_src_operand): New predicate.
4724 (non_volatile_mem_operand): New predicate.
4725 * config/mips/mips.md (multimem): New type.
4726 (length): Differentiate between 17-bit and 18-bit branch offsets.
4727 (MOVEP1, MOVEP2): New mode iterator.
4728 (mov_<load>l): Use ZC constraint.
4729 (mov_<load>r): Likewise.
4730 (mov_<store>l): Likewise.
4731 (mov_<store>r): Likewise.
4732 (*branch_equality<mode>_inverted): Add microMIPS support.
4733 (*branch_equality<mode>): Likewise.
4734 (*jump_absolute): Likewise.
4735 (indirect_jump_<mode>): Likewise.
4736 (tablejump_<mode>): Likewise.
4737 (<optab>_internal): Likewise.
4738 (sibcall_internal): Likewise.
4739 (sibcall_value_internal): Likewise.
4740 (prefetch): Use constraint ZD.
4741 * config/mips/mips.opt (minterlink-compressed): New option.
4742 (minterlink-mips16): Now an alias for minterlink-compressed.
4743 (mmicromips): New option.
4744 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4745 (compare_and_swap_12): Likewise.
4746 (sync_add<mode>): Likewise.
4747 (sync_<optab>_12): Likewise.
4748 (sync_old_<optab>_12): Likewise.
4749 (sync_new_<optab>_12): Likewise.
4750 (sync_nand_12): Likewise.
4751 (sync_old_nand_12): Likewise.
4752 (sync_new_nand_12): Likewise.
4753 (sync_sub<mode>): Likewise.
4754 (sync_old_add<mode>): Likewise.
4755 (sync_old_sub<mode>): Likewise.
4756 (sync_new_add<mode>): Likewise.
4757 (sync_new_sub<mode>): Likewise.
4758 (sync_<optab><mode>): Likewise.
4759 (sync_old_<optab><mode>): Likewise.
4760 (sync_new_<optab><mode>): Likewise.
4761 (sync_nand<mode>): Likewise.
4762 (sync_old_nand<mode>): Likewise.
4763 (sync_new_nand<mode>): Likewise.
4764 (sync_lock_test_and_set<mode>): Likewise.
4765 (test_and_set_12): Likewise.
4766 (atomic_compare_and_swap<mode>): Likewise.
4767 (atomic_exchange<mode>_llsc): Likewise.
4768 (atomic_fetch_add<mode>_llsc): Likewise.
4769 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4770 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4771 (umips_save_restore_pattern_p): Likewise.
4772 (umips_load_store_pair_p): Likewise.
4773 (umips_output_load_store_pair): Likewise.
4774 (umips_movep_target_p): Likewise.
4775 (umips_12bit_offset_address_p): Likewise.
4776 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4777 (mips_base_mips16): Rename this...
4778 (mips_base_compression_flags): ...to this. Update all uses.
4779 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4780 (mips_mips16_decl_p): Delete.
4781 (mips_nomips16_decl_p): Delete.
4782 (mips_get_compress_on_flags): New function.
4783 (mips_get_compress_off_flags): New function.
4784 (mips_get_compress_mode): New function.
4785 (mips_get_compress_on_name): New function.
4786 (mips_get_compress_off_name): New function.
4787 (mips_insert_attributes): Support multiple compression types.
4788 (mips_merge_decl_attributes): Likewise.
4789 (umips_12bit_offset_address_p): New function.
4790 (mips_start_function_definition): Emit .set micromips directive.
4791 (mips_call_may_need_jalx_p): New function.
4792 (mips_function_ok_for_sibcall): Add microMIPS support.
4793 (mips_print_operand_punctuation): Support short delay slots and
4794 compact jumps.
4795 (umips_swm_mask, umips_swm_encoding): New.
4796 (umips_build_save_restore): New function.
4797 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4798 (was_mips16_p): Remove.
4799 (old_compression_mode): New.
4800 (mips_set_compression_mode): New function.
4801 (mips_set_current_function): Add microMIPS support.
4802 (mips_option_override): Likewise.
4803 (umips_save_restore_pattern_p): New function.
4804 (umips_output_save_restore): New function.
4805 (umips_load_store_pair_p_1): New function.
4806 (umips_load_store_pair_p): New function.
4807 (umips_output_load_store_pair_1): New function.
4808 (umips_output_load_store_pair): New function.
4809 (umips_movep_target_p) New function.
4810 (mips_prepare_pch_save): Add microMIPS support.
4811 * config/mips/mips.h (TARGET_COMPRESSION): New.
4812 (TARGET_CPU_CPP_BUILTINS): Update macro
4813 to use new compression flags and to support microMIPS.
4814 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4815 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4816 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4817 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4818 (ASM_SPEC): Support mmicromips and mno-micromips.
4819 (M16STORE_REG_P): New macro.
4820 (MIPS_CALL): Support TARGET_MICROMIPS.
4821 (MICROMIPS_J): New macro.
4822 (mips_base_mips16): Rename this...
4823 (mips_base_compression_flags): ...to this.
4824 (UMIPS_12BIT_OFFSET_P): New macro.
4825 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4826 (MULTILIB_DIRNAMES): Likewise.
4827
5e5df392
TV
48282013-02-25 Tom de Vries <tom@codesourcery.com>
4829
4830 PR rtl-optimization/56131
4831 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4832 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4833 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4834
3fdb53c1
TB
48352013-02-25 Tobias Burnus <burnus@net-b.de>
4836
4837 * doc/invoke.texi (-fsanitize=): Move from optimization
4838 to debugging options.
4839
ed358aea
AB
48402013-02-25 Andrey Belevantsev <abel@ispras.ru>
4841
4842 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4843
f45e9053
AB
48442013-02-25 Andrey Belevantsev <abel@ispras.ru>
4845 Alexander Monakov <amonakov@ispras.ru>
4846
4847 PR middle-end/56077
4848 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4849 flush pending lists also on non-jumps. Adjust comment.
4850
6941b508
CM
48512013-02-24 Catherine Moore <clm@codesourcery.com>
4852 Maciej W. Rozycki <macro@codesourcery.com>
4853 Tom de Vries <tom@codesourcery.com>
a72d8780 4854 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
4855 Iain Sandoe <iain@codesourcery.com>
4856 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 4857 Chao-ying Fu <fu@mips.com>
6941b508
CM
4858
4859 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 4860 Document new function attributes.
6941b508
CM
4861 * doc/invoke.texi (minterlink-compressed, mmicromips,
4862 m14k, m14ke, m14kec): Document new options.
4863 (minterlink-mips16): Update documentation.
4864 * doc/md.texi (ZC, ZD): Document new constraints.
4865 * configure.ac (gcc_cv_as_micromips): Check if linker
4866 supports the .set micromips directive.
4867 * configure: Regenerate.
4868 * config.in: Regenerate.
4869 * config/mips/mips-tables.opt: Regenerate.
4870 * config/mips/micromips.md: New file.
4871 * constraints.md (ZC, AD): New constraints.
4872 * config/mips/predicates.md (movep_src_register): New predicate.
4873 (movep_src_operand): New predicate.
4874 (non_volatile_mem_operand): New predicate.
4875 * config/mips/mips.md (multimem): New type.
4876 (length): Differentiate between 17-bit and 18-bit branch offsets.
4877 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 4878 (mov_<load>l): Use ZC constraint.
6941b508
CM
4879 (mov_<load>r): Likewise.
4880 (mov_<store>l): Likewise.
4881 (mov_<store>r): Likewise.
4882 (*branch_equality<mode>_inverted): Add microMIPS support.
4883 (*branch_equality<mode>): Likewise.
4884 (*jump_absolute): Likewise.
4885 (indirect_jump_<mode>): Likewise.
4886 (tablejump_<mode>): Likewise.
4887 (<optab>_internal): Likewise.
4888 (sibcall_internal): Likewise.
4889 (sibcall_value_internal): Likewise.
4890 (prefetch): Use constraint ZD.
4891 * config/mips/mips.opt (minterlink-compressed): New option.
4892 (minterlink-mips16): Now an alias for minterlink-compressed.
4893 (mmicromips): New option.
4894 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4895 (compare_and_swap_12): Likewise.
4896 (sync_add<mode>): Likewise.
4897 (sync_<optab>_12): Likewise.
4898 (sync_old_<optab>_12): Likewise.
4899 (sync_new_<optab>_12): Likewise.
4900 (sync_nand_12): Likewise.
4901 (sync_old_nand_12): Likewise.
4902 (sync_new_nand_12): Likewise.
4903 (sync_sub<mode>): Likewise.
4904 (sync_old_add<mode>): Likewise.
4905 (sync_old_sub<mode>): Likewise.
4906 (sync_new_add<mode>): Likewise.
4907 (sync_new_sub<mode>): Likewise.
4908 (sync_<optab><mode>): Likewise.
4909 (sync_old_<optab><mode>): Likewise.
4910 (sync_new_<optab><mode>): Likewise.
4911 (sync_nand<mode>): Likewise.
4912 (sync_old_nand<mode>): Likewise.
4913 (sync_new_nand<mode>): Likewise.
4914 (sync_lock_test_and_set<mode>): Likewise.
4915 (test_and_set_12): Likewise.
4916 (atomic_compare_and_swap<mode>): Likewise.
4917 (atomic_exchange<mode>_llsc): Likewise.
4918 (atomic_fetch_add<mode>_llsc): Likewise.
4919 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4920 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4921 (umips_save_restore_pattern_p): Likewise.
4922 (umips_load_store_pair_p): Likewise.
4923 (umips_output_load_store_pair): Likewise.
4924 (umips_movep_target_p): Likewise.
4925 (umips_12bit_offset_address_p): Likewise.
4926 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4927 (mips_base_mips16): Rename this...
4928 (mips_base_compression_flags): ...to this. Update all uses.
4929 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4930 (mips_mips16_decl_p): Delete.
4931 (mips_nomips16_decl_p): Delete.
3fdb53c1 4932 (mips_get_compress_on_flags): New function.
6941b508
CM
4933 (mips_get_compress_off_flags): New function.
4934 (mips_get_compress_mode): New function.
4935 (mips_get_compress_on_name): New function.
4936 (mips_get_compress_off_name): New function.
4937 (mips_insert_attributes): Support multiple compression types.
4938 (mips_merge_decl_attributes): Likewise.
4939 (umips_12bit_offset_address_p): New function.
4940 (mips_start_function_definition): Emit .set micromips directive.
4941 (mips_call_may_need_jalx_p): New function.
4942 (mips_function_ok_for_sibcall): Add microMIPS support.
4943 (mips_print_operand_punctuation): Support short delay slots and
4944 compact jumps.
4945 (umips_swm_mask, umips_swm_encoding): New.
4946 (umips_build_save_restore): New function.
4947 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4948 (was_mips16_p): Remove.
4949 (old_compression_mode): New.
4950 (mips_set_compression_mode): New function.
4951 (mips_set_current_function): Add microMIPS support.
4952 (mips_option_override): Likewise.
4953 (umips_save_restore_pattern_p): New function.
4954 (umips_output_save_restore): New function.
4955 (umips_load_store_pair_p_1): New function.
4956 (umips_load_store_pair_p): New function.
4957 (umips_output_load_store_pair_1): New function.
4958 (umips_output_load_store_pair): New function.
4959 (umips_movep_target_p) New function.
4960 (mips_prepare_pch_save): Add microMIPS support.
4961 * config/mips/mips.h (TARGET_COMPRESSION): New.
4962 (TARGET_CPU_CPP_BUILTINS): Update macro
4963 to use new compression flags and to support microMIPS.
4964 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4965 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4966 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4967 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4968 (ASM_SPEC): Support mmicromips and mno-micromips.
4969 (M16STORE_REG_P): New macro.
4970 (MIPS_CALL): Support TARGET_MICROMIPS.
4971 (MICROMIPS_J): New macro.
4972 (mips_base_mips16): Rename this...
4973 (mips_base_compression_flags): ...to this.
4974 (UMIPS_12BIT_OFFSET_P): New macro.
4975 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4976 (MULTILIB_DIRNAMES): Likewise.
4977
cdebbc6d
JJ
49782013-02-24 Jakub Jelinek <jakub@redhat.com>
4979
4980 PR target/52555
4981 * target-globals.c (save_target_globals): For init_reg_sets and
4982 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4983
18c63565
JG
49842013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4985
4986 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4987 * config/aarch64/t-aarch64
4988 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4989
2194f7a2
VM
49902013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4991
4992 PR inline-asm/56148
4993 * lra-constraints.c (process_alt_operands): Reload operand
4994 conflicting with earlier clobber only if no more other conflicting
4995 operands.
4996
7d613735
JJ
49972013-02-22 Jakub Jelinek <jakub@redhat.com>
4998
4999 PR sanitizer/56393
5000 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
5001 if not linking a shared library.
5002
ac8d93a7
SL
50032013-02-22 Seth LaForge <sethml@google.com>
5004
5005 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
5006
e0237780
GY
50072013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
5008
3fdb53c1
TB
5009 * config/arm/arm.md (split for extendsidi): Update condition.
5010 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
5011 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
5012 (qhs_zextenddi_cstr): Likewise.
e0237780 5013
d7fde18c
JJ
50142013-02-21 Jakub Jelinek <jakub@redhat.com>
5015
be63b77d
JJ
5016 PR middle-end/56420
5017 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
5018 avoid signed wrapping.
5019 (expand_mult): Handle properly multiplication by
5020 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
5021 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
5022 in the compiler if coeff is HOST_WIDE_INT_MIN.
5023 (expand_divmod): Don't make ext_op1 static, change it's type to
5024 uhwi. Avoid undefined behavior in -INTVAL (op1).
5025
d7fde18c
JJ
5026 PR rtl-optimization/50339
5027 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
5028 field.
5029 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
5030 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
5031 into splitting_ashiftrt field.
5032 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
5033 ASHIFTRT.
5034 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
5035 choices.
5036
6aad4455
AH
50372013-02-20 Aldy Hernandez <aldyh@redhat.com>
5038
5039 PR middle-end/56108
5040 * trans-mem.c (execute_tm_mark): Do not expand transactions that
5041 are sure to go irrevocable.
5042
38fe784d
HPN
50432013-02-21 Hans-Peter Nilsson <hp@axis.com>
5044
5045 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
5046 scalars are valid operands.
5047
0fd44da3
MJ
50482013-02-21 Martin Jambor <mjambor@suse.cz>
5049
5050 PR tree-optimization/56310
5051 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
5052 only matching indices and non-negative final offsets.
5053 (intersect_aggregates_with_edge): Pass src_idx to
5054 agg_replacements_to_vector. Pass src_idx insstead of index to
5055 intersect_with_agg_replacements.
5056
7a92038b
MJ
50572013-02-21 Martin Jambor <mjambor@suse.cz>
5058
5059 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
5060 instead of hard-wired defaults.
5061
c0da9c37
MR
50622013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
5063
5064 * doc/invoke.texi (MIPS Options): Update documentation of the
5065 floating-point multiply-accumulate instruction restrictions.
5066
d247ea0c 50672013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
5068
5069 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
5070 asan_shadow_offset on x86_64 linux.
5071
22deefcb
RB
50722013-02-21 Richard Biener <rguenther@suse.de>
5073
5074 PR tree-optimization/56415
5075 Revert
5076 2013-02-11 Richard Biener <rguenther@suse.de>
5077
5078 PR tree-optimization/56273
5079 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5080 first VRP run.
5081
7bcc6e75
JJ
50822013-02-21 Jakub Jelinek <jakub@redhat.com>
5083
a0ad148f
JJ
5084 PR bootstrap/56258
5085 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
5086 instead of @itemx.
5087
7bcc6e75
JJ
5088 PR inline-asm/56405
5089 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
5090 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
5091
a0a7b611
JH
50922013-02-20 Jan Hubicka <jh@suse.cz>
5093
5094 PR tree-optimization/56265
88b97037
UB
5095 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
5096 when target is referenced for first time.
a0a7b611 5097
c0e50f72
RB
50982013-02-20 Richard Biener <rguenther@suse.de>
5099
5100 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
5101 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
5102 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5103 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
5104 not return anything.
5105 (rename_ssa_copies): Do not remove unused locals.
5106 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 5107 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
5108 * passes.c (execute_function_todo): Do not schedule unused locals
5109 removal if cleanup_tree_cfg did something.
5110 * tree-ssa-live.c (remove_unused_locals): Dump statistics
5111 about the number of removed locals.
5112
a52ca739
RB
51132013-02-20 Richard Biener <rguenther@suse.de>
5114
5115 PR tree-optimization/56398
88b97037 5116 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 5117
ec9c9d1b
MJ
51182013-02-20 Martin Jambor <mjambor@suse.cz>
5119
5120 PR tree-optimization/55334
5121 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
5122 restricted pointers to arrays.
5123
e91c8ed6 51242013-02-20 Richard Biener <rguenther@suse.de>
88b97037 5125 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
5126
5127 PR tree-optimization/56396
5128 * tree-ssa-ccp.c (n_const_val): New static variable.
5129 (get_value): Return NULL for SSA names we don't have a lattice
5130 entry for.
5131 (ccp_initialize): Initialize n_const_val.
5132 * tree-ssa-copy.c (n_copy_of): New static variable.
5133 (init_copy_prop): Initialize n_copy_of.
5134 (get_value): Return NULL_TREE for SSA names we don't have a
5135 lattice entry for.
5136
3d916479
MJ
51372013-02-20 Martin Jambor <mjambor@suse.cz>
5138
5139 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
5140
71a86758
RB
51412013-02-20 Richard Biener <rguenther@suse.de>
5142
5143 * genpreds.c (write_lookup_constraint): Do not compare first
5144 letter of the constraint again.
5145
79836a12
RB
51462013-02-20 Richard Biener <rguenther@suse.de>
5147
5148 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
5149 and ceil_log2.
5150 (get_use_iv_cost): Terminate hashtable walk when coming across
5151 an empty entry.
5152
bbe4fb2c
IZ
51532013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
5154
5155 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
5156 reassociation for avx2 targets.
5157
a72d8780 51582012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 5159
c77f83d5
EI
5160 * config/microblaze/microblaze.c: microblaze_has_clz = 0
5161 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 5162 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
5163 version and TARGET_PATTERN_COMPARE check
5164 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 5165
a72d8780 51662012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 5167
a72d8780 5168 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
5169 function before branching.
5170
242387fa
AB
51712012-02-19 Andrey Belevantsev <abel@ispras.ru>
5172
5173 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
5174 DUMP_INSN_RTX_UID.
5175 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
5176
b4979ab9
AB
51772012-02-19 Andrey Belevantsev <abel@ispras.ru>
5178
5179 PR middle-end/55889
b4979ab9
AB
5180 * sel-sched.c: Include ira.h.
5181 (implicit_clobber_conflict_p): New function.
5182 (moveup_expr): Use it.
88b97037 5183 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 5184
24d63016
RB
51852013-02-19 Richard Biener <rguenther@suse.de>
5186
5187 PR tree-optimization/56384
5188 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
5189 (vn_hash_type): Split out from ...
5190 (vn_hash_constant_with_type): ... here.
5191 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
5192 (vn_phi_eq): Compare types from vn_phi_s structure.
5193 (vn_phi_lookup): Populate vn_phi_s type.
5194 (vn_phi_insert): Likewise.
5195
a475fd3d
JJ
51962013-02-19 Jakub Jelinek <jakub@redhat.com>
5197
47cc28f5
JJ
5198 PR tree-optimization/56350
5199 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
5200 if haven't found reduction or nested cycle operand, rather than
5201 asserting we must find it.
5202
a475fd3d
JJ
5203 PR tree-optimization/56381
5204 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
5205 to fold_build3.
5206
52072013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
5208 Jakub Jelinek <jakub@redhat.com>
5209
5210 PR target/52555
5211 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
5212 (swap_optab_enable): Same.
5213 (init_all_optabs): Use argument instead of global.
88b97037 5214 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
5215 * expr.h (init_all_optabs): Add argument to prototype.
5216 (TREE_OPTIMIZATION_OPTABS): New.
5217 (save_optabs_if_changed): Protoize.
5218 * optabs.h: Declare this_fn_optabs.
5219 * optabs.c (save_optabs_if_changed): New.
5220 Declare this_fn_optabs.
5221 (init_optabs): Add argument to init_all_optabs() call.
5222 * function.c (invoke_set_current_function_hook): Handle per
5223 function optabs.
5224 * function.h (struct function): New field optabs.
5225 * config/mips/mips.c (mips_set_mips16_mode): Handle when
5226 optimization_current_node has changed.
5227 * target-globals.h (save_target_globals_default_opts): Protoize.
5228 * target-globals.c (save_target_globals_default_opts): New.
5229
3f587ca3
JDA
52302013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5231
5232 PR target/56347
5233 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
5234 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
5235
5236 PR target/56214
5237 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
5238 and HImode, require all displacements to be an integer multiple of
5239 their mode size.
ceaca33e
JDA
5240 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
5241 only allow QImode and HImode when reload is in progress and strict is
5242 true. Likewise for symbolic addresses. Use base14_operand to check
5243 displacements in REG+BASE addresses.
5244
fe0b4796
RB
52452013-02-18 Richard Biener <rguenther@suse.de>
5246
5247 PR tree-optimization/56366
5248 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5249 handle sign-conversion of outer-loop initial induction value.
5250
6aaf596b
RB
52512013-02-18 Richard Biener <rguenther@suse.de>
5252
73db8ff1 5253 PR middle-end/56349
6aaf596b
RB
5254 * cfghooks.c (merge_blocks): If we merge a latch into another
5255 block adjust references to it.
5256 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
5257 (verify_loop_structure): Verify that a recorded latch is in fact
5258 a latch.
5259
5e97dfb6
RB
52602013-02-18 Richard Biener <rguenther@suse.de>
5261
5262 PR tree-optimization/56321
5263 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
5264 order SSA name release and virtual operand unlinking.
5265
825527e8
EI
52662013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5267
5268 * config/microblaze/microblaze.md (save_stack_block): Define.
5269 (restore_stack_block): Likewise.
5270
debd11d9
EI
52712013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5272
5273 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
5274 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
5275 * config/microblaze/microblaze.c (microblaze_option_override):
5276 Bail out early for PIC modes when target does not support PIC.
5277
8ec77be0
EI
52782013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5279
88b97037 5280 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
5281 Replace with a microblaze version.
5282 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 5283 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
5284 microblaze.
5285
b41288b3
JJ
52862013-02-16 Jakub Jelinek <jakub@redhat.com>
5287 Dodji Seketeli <dodji@redhat.com>
5288
5289 PR asan/56330
88b97037 5290 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
5291 (instrument_mem_region_access): Do not forget to always put
5292 instrumentation of the of 'base' and 'base + len' in a "if (len !=
5293 0) statement, even for cases where either 'base' or 'base + len'
5294 are not instrumented -- because they have been previously
5295 instrumented. Simplify the logic by putting all the statements
5296 instrument 'base + len' inside a sequence, and then insert that
5297 sequence right before the current insertion point. Then, to
5298 instrument 'base + len', just get an iterator on that statement.
5299 And do not forget to update the pointer to iterator the function
5300 received as argument.
5301
47918951
VM
53022013-02-15 Vladimir Makarov <vmakarov@redhat.com>
5303
5304 PR rtl-optimization/56348
5305 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
5306
3fb7c699
SB
53072013-02-15 Steven Bosscher <steven@gcc.gnu.org>
5308
5309 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
5310 (clean_graph_dump_file): Pass base to start_graph_dump.
5311
576fe41a
RH
53122013-02-14 Richard Henderson <rth@redhat.com>
5313
5314 PR target/55941
5315 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
5316
bb3accfa
SB
53172013-02-14 Steven Bosscher <steven@gcc.gnu.org>
5318
5319 * collect2-aix.h: Define F_LOADONLY.
5320
03143140
RB
53212013-02-14 Richard Biener <rguenther@suse.de>
5322
5323 PR lto/50494
5324 * varasm.c (output_constant_def_1): Get the decl representing
5325 the constant as argument.
5326 (output_constant_def): Wrap output_constant_def_1.
5327 (make_decl_rtl): Use output_constant_def_1 with the decl
5328 representing the constant.
5329 (build_constant_desc): Optionally re-use a decl already
5330 representing the constant.
5331 (tree_output_constant_def): Adjust.
5332
8fb06726
DS
53332013-02-14 Dodji Seketeli <dodji@redhat.com>
5334
5335 Fix an asan crash
5336 * asan.c (instrument_builtin_call): Really put the length of the
5337 second source argument into src1_len.
5338
c4bfe8bf
JJ
53392013-02-13 Jakub Jelinek <jakub@redhat.com>
5340
5341 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
5342 argument. If it is false, don't create edge from then_bb to
5343 fallthru_bb.
5344 (insert_if_then_before_iter): Pass true to it.
5345 (build_check_stmt): Pass false to it.
5346 (transform_statements): Flush hash table only on extended basic
5347 block boundaries, rather than at the beginning of every bb.
5348 Don't flush hash table on nonfreeing_call_p calls.
5349 * tree-flow.h (nonfreeing_call_p): New prototype.
5350 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
5351
7afe2801
DM
53522013-02-13 David S. Miller <davem@davemloft.net>
5353
5354 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
5355
70cc3288
VM
53562013-02-13 Vladimir Makarov <vmakarov@redhat.com>
5357
5358 PR target/56184
5359 * ira.c (max_regno_before_ira): Move from ...
5360 (ira): ... here.
5361 (fix_reg_equiv_init): Use max_regno_before_ira instead of
5362 vec_safe_length.
5363
6422242b
JJ
53642013-02-13 Jakub Jelinek <jakub@redhat.com>
5365
5366 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
5367
976a81ee
RB
53682013-02-13 Richard Biener <rguenther@suse.de>
5369
5370 PR lto/56295
5371 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
5372 globals in MEM_REFs.
5373
c1874a87
RB
53742013-02-13 Richard Biener <rguenther@suse.de>
5375
5376 * loop-init.c (loop_optimizer_init): Clear loop state when
5377 re-initializing preserved loops.
5378 * loop-unswitch.c (unswitch_single_loop): Return whether
5379 we unswitched the loop. Do not verify loop state here.
88b97037 5380 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 5381
b4ab7d34
KS
53822013-02-13 Kostya Serebryany <kcc@google.com>
5383
88b97037
UB
5384 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
5385 on x86_64 linux.
b4ab7d34
KS
5386 * sanitizer.def: Rename __asan_init to __asan_init_v1.
5387
bdcbe80c
DS
53882013-02-12 Dodji Seketeli <dodji@redhat.com>
5389
5390 Avoid instrumenting duplicated memory access in the same basic block
5391 * Makefile.in (asan.o): Add new dependency on hash-table.h
5392 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
5393 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
5394 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
5395 (free_mem_ref_resources, has_mem_ref_been_instrumented)
5396 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
5397 (get_mem_ref_of_assignment): New functions.
5398 (get_mem_refs_of_builtin_call): Extract from
5399 instrument_builtin_call and tweak a little bit to make it fit with
5400 the new signature.
5401 (instrument_builtin_call): Use the new
5402 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
5403 of is_gimple_builtin_call.
5404 (instrument_derefs, instrument_mem_region_access): Insert the
5405 instrumented memory reference into the hash table.
5406 (maybe_instrument_assignment): Renamed instrument_assignment into
5407 this, and change it to advance the iterator when instrumentation
5408 actually happened and return true in that case. This makes it
5409 homogeneous with maybe_instrument_assignment, and thus give a
5410 chance to callers to be more 'regular'.
5411 (transform_statements): Clear the memory reference hash table
5412 whenever we enter a new BB, when we cross a function call, or when
5413 we are done transforming statements. Use
5414 maybe_instrument_assignment instead of instrumentation. No more
5415 need to special case maybe_instrument_assignment and advance the
5416 iterator after calling it; it's now handled just like
5417 maybe_instrument_call. Update comment.
5418
4861a1f7
RB
54192013-02-13 Richard Biener <rguenther@suse.de>
5420
5421 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5422 Fix loop discovery code.
5423
1c86bd80
VM
54242013-02-12 Vladimir Makarov <vmakarov@redhat.com>
5425
5426 PR inline-asm/56148
5427 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 5428 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
5429 the operand is not reloaded. Prefer to reload conflicting operand
5430 if earlyclobber and matching operands are the same.
5431
7cbda518
RB
54322013-02-12 Richard Biener <rguenther@suse.de>
5433
5434 PR lto/56297
5435 * lto-streamer-out.c (write_symbol): Do not output symbols
5436 for hard register variables.
5437
e68a4ef6
GJL
54382013-02-12 Georg-Johann Lay <avr@gjlay.de>
5439
5440 PR target/54222
5441 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
5442 (umulsidi3_insn, mulsidi3_insn): New insns.
5443
a72d8780 54442013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
5445
5446 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
5447 (struct tune_params): Add vec_costs field.
5448 * config/arm/arm.c (arm_builtin_vectorization_cost)
5449 (arm_add_stmt_cost): New functions.
5450 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
5451 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
5452 (arm_default_vec_cost): New struct of type cpu_vec_costs.
5453 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
5454 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
5455 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
5456 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
5457
43320568
RB
54582013-02-12 Richard Biener <rguenther@suse.de>
5459
5460 PR lto/56295
5461 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
5462 decls again if possible.
5463
a011aa39
RB
54642013-02-12 Richard Biener <rguenther@suse.de>
5465
5466 PR middle-end/56288
5467 * tree-ssa.c (verify_ssa_name): Fix check, move
5468 SSA_NAME_IN_FREE_LIST check up.
5469
6da26889
JJ
54702013-02-12 Jakub Jelinek <jakub@redhat.com>
5471 Steven Bosscher <steven@gcc.gnu.org>
5472
5473 PR rtl-optimization/56151
5474 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
5475 equal to op0 or op1, and last_insn pattern is CODE operation
5476 with MEM dest and one of the operands matches that MEM.
5477
f80e0faf
ST
54782013-02-11 Sriraman Tallam <tmsriramgoogle.com>
5479
5480 * doc/extend.texi: Document Function Multiversioning and "default"
5481 parameter string to target attribute.
5482 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
5483 target attribute parameter is "default".
5484 (ix86_compare_version_priority): Remove checks for target attribute.
5485 (ix86_mangle_function_version_assembler_name): Change error to sorry.
5486 Remove check for target attribute equal to NULL. Add assert.
5487 (ix86_generate_version_dispatcher_body): Change error to sorry.
5488
6c59ffd1
IS
54892013-02-11 Iain Sandoe <iain@codesourcery.com>
5490 Jack Howarth <howarth@bromo.med.uc.edu>
5491 Patrick Marlier <patrick.marlier@gmail.com>
5492
5493 PR libitm/55693
5494 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
5495 define ENDFILE_SPEC as TM_DESTRUCTOR.
5496 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
5497
a72d8780 54982013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
5499 Jack Howarth <howarth@bromo.med.uc.edu>
5500 Jakub Jelinek <jakub@redhat.com>
5501
5502 PR sanitizer/55617
5503 * config/darwin.c (cdtor_record): Rename ctor_record.
5504 (sort_cdtor_records): Rename sort_ctor_records.
5505 (finalize_dtors): New routine to sort destructors by
5506 priority before use in assemble_integer.
5507 (machopic_asm_out_destructor): Use finalize_dtors if needed.
5508
b63fe007
UB
55092013-02-11 Uros Bizjak <ubizjak@gmail.com>
5510
5511 PR rtl-optimization/56275
5512 * simplify-rtx.c (avoid_constant_pool_reference): Check that
5513 offset is non-negative and less than cmode size before
5514 calling simplify_subreg.
5515
8e89b5b5
RB
55162013-02-11 Richard Biener <rguenther@suse.de>
5517
5518 PR tree-optimization/56264
5519 * cfgloop.h (fix_loop_structure): Adjust prototype.
5520 * loop-init.c (fix_loop_structure): Return the number of
5521 newly discovered loops.
5522 * tree-cfgcleanup.c (repair_loop_structures): When new loops
5523 are discovered, do a full loop-closed SSA rewrite.
5524
b4a4b56d
RB
55252013-02-11 Richard Biener <rguenther@suse.de>
5526
5527 PR tree-optimization/56273
5528 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5529 first VRP run.
5530 (check_array_ref): Fix missing newline in dumps.
5531 (search_for_addr_array): Likewise.
5532
0c885229
DE
55332013-02-09 David Edelsohn <dje.gcc@gmail.com>
5534
5535 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5536
59ac9a55
JJ
55372013-02-09 Jakub Jelinek <jakub@redhat.com>
5538
5539 PR target/56256
5540 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5541
25bb0bb5
VM
55422013-02-08 Vladimir Makarov <vmakarov@redhat.com>
5543
5544 PR rtl-optimization/56246
0c885229 5545 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
5546 reload pseudo.
5547 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5548 constraints are satisfied.
5549
a698cc03
JL
55502013-02-08 Jeff Law <law@redhat.com>
5551
5552 PR debug/53948
5553 * emit-rtl.c (reg_is_parm_p): New function.
5554 * regs.h (reg_is_parm_p): New prototype.
5555 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5556 callee-clobbered registers.
5557
e1122ddd
MM
55582013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5559
5560 PR target/56043
5561 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5562 If there is no implicit builtin declaration, just return NULL.
5563
19c5f6e6
UB
55642013-02-08 Uros Bizjak <ubizjak@gmail.com>
5565
5566 * config/i386/sse.md (FMAMODEM): New mode iterator.
5567 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5568 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5569
2480f2ca 55702013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 5571
2480f2ca
UB
5572 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5573 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5574 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5575
55762013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5577
5578 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5579 (microblaze*-*-elf): Likewise.
5580 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5581 LINK_SPEC.
5582 * config/microblaze/microblaze-c.c: Add builtin defines for
5583 _LITTLE_ENDIAN and _BIG_ENDIAN.
5584 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5585 add to TARGET_DEFAULT flags.
76ef61fb 5586 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
5587 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5588 * config/microblaze/microblaze.md: Update extendsidi2 and
5589 movdi_internal instructions to use low-order / high-order reg
5590 print_operands.
5591 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5592 options and inversemask / mask of LITTLE_ENDIAN.
5593 * config/microblaze/t-microblaze: Expand multilib options to
5594 include mlittle-endian (le) and update exceptions patterns.
5595
600a5961
JJ
55962013-02-08 Jakub Jelinek <jakub@redhat.com>
5597
5df81313
JJ
5598 PR rtl-optimization/56195
5599 * lra-constraints.c (get_reload_reg): Don't reuse regs
5600 if they have smaller mode than requested, if they have
5601 wider mode than requested, try to return a SUBREG.
5602
600a5961
JJ
5603 PR tree-optimization/56250
5604 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5605 if type is unsigned and code isn't MULT_EXPR.
5606
ff544649
GJL
56072013-02-08 Georg-Johann Lay <avr@gjlay.de>
5608
5609 PR tree-optimization/56064
5610 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5611 bits according to mode.
5612 * fixed-value.h (fixed_from_double_int)
5613 (const_fixed_from_double_int): Adjust comments.
5614
e45cde98
RB
56152013-02-08 Richard Biener <rguenther@suse.de>
5616
5617 PR lto/56231
5618 * lto-streamer.h (struct data_in): Remove current_file, current_line
5619 and current_col members.
5620 * lto-streamer-out.c (lto_output_location): Stream changed bits
5621 en-block for efficiency.
5622 * lto-streamer-in.c (clear_line_info): Remove.
5623 (lto_input_location): Cache current file, line and column
5624 globally via local statics. Read changed bits en-block.
5625 (input_function): Do not call clear_line_info.
5626 (lto_read_body): Likewise.
5627 (lto_input_toplevel_asms): Likewise.
5628
c1ca73d8
MM
56292013-02-08 Michael Matz <matz@suse.de>
5630
5631 PR tree-optimization/52448
5632 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5633 (nt_call_phase): New static.
5634 (add_or_mark_expr): Only mark accesses with newer phase than any
5635 call seen.
5636 (nonfreeing_call_p): New.
5637 (nt_init_block): Update nt_call_phase, mark blocks as visited.
5638 (nt_fini_block): Keep blocks marked as visited.
5639 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5640
57548aa2
RB
56412013-02-08 Richard Biener <rguenther@suse.de>
5642
5643 * ira.c (ira): Free broken dominator information.
5644
8e10366f
UB
56452013-02-08 Uros Bizjak <ubizjak@gmail.com>
5646
5647 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5648
f64fb0fa
MP
56492013-02-08 Marek Polacek <polacek@redhat.com>
5650
8e10366f 5651 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 5652
0375167b
RB
56532013-02-08 Richard Biener <rguenther@suse.de>
5654
5655 PR middle-end/56181
5656 * cfgloop.h (flow_loops_find): Adjust.
5657 (bb_loop_header_p): Declare.
5658 * cfgloop.c (bb_loop_header_p): New function split out from ...
5659 (flow_loops_find): ... here. Adjust function signature,
5660 support incremental loop structure update.
5661 (verify_loop_structure): Cleanup. Verify a loop is a loop.
5662 * cfgloopmanip.c (fix_loop_structure): Move ...
5663 * loop-init.c (fix_loop_structure): ... here.
5664 (apply_loop_flags): Split out from ...
5665 (loop_optimizer_init): ... here.
5666 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
5667 in incremental mode, only remove dead loops here.
5668
85d768f3
GJL
56692013-02-08 Georg-Johann Lay <avr@gjlay.de>
5670
5671 PR target/54222
5672 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5673 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5674 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5675 (*round<mode>3.libgcc): New insns for fixed-modes.
5676 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5677 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5678 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5679 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5680 implementations. Define to __builtin_avr_absFX,
5681 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5682 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5683 __builtin_avr_countlsFX, respectively.
5684 * config/avr/avr-c.c (target.h): Include it.
5685 (enum avr_builtin_id): New enum.
5686 (avr_resolve_overloaded_builtin): New static function.
5687 (avr_register_target_pragmas): Use it to set
5688 targetm.resolve_overloaded_builtin.
5689 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5690 tree nodes used by DEF_BUILTIN.
5691 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5692 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5693 <AVR_BUILTIN_xxBITS>: Same.
5694
661bc682
RB
56952013-02-08 Richard Biener <rguenther@suse.de>
5696
5697 * cfgloop.c (verify_loop_structure): Properly handle
5698 a loop exiting to another loop header.
5699 * ira-int.h (ira_loops): Remove.
5700 * ira.c (ira_loops): Remove.
5701 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5702 (do_reload): Use loop_optimizer_finalize.
5703 * ira-build.c (create_loop_tree_nodes): Use get_loops and
5704 number_of_loops to access the loop tree.
5705 (more_one_region_p): Likewise.
5706 (finish_loop_tree_nodes): Likewise.
5707 (rebuild_regno_allocno_maps): Likewise.
5708 (mark_loops_for_removal): Likewise.
5709 (mark_all_loops_for_removal): Likewise.
5710 (remove_unnecessary_regions): Likewise.
5711 (ira_build): Likewise.
5712 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5713
0d5049b2
RB
57142013-02-08 Richard Biener <rguenther@suse.de>
5715
5716 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5717 * ipa-pure-const.c (analyze_function): Avoid calling
5718 mark_irreducible_loops twice.
8e10366f 5719 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 5720
499f32e8
DM
57212013-02-07 David S. Miller <davem@davemloft.net>
5722
5723 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5724 on 'reg'.
5725 * var-tracking.c (vt_add_function_parameter): Test the presence of
5726 HAVE_window_save properly and do not remap argument registers when
5727 we have a leaf function.
5728
6edc3e32
UB
57292013-02-07 Uros Bizjak <ubizjak@gmail.com>
5730
5731 PR bootstrap/56227
5732 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5733 instead of "ll".
5734 * config/i386/i386.c (ix86_print_operand): Ditto.
5735
5306401f
VM
57362013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5737
6edc3e32 5738 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 5739
027ece11
VM
57402013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5741
5742 PR rtl-optimization/56225
5743 * lra-constraints.c (process_alt_operands): Check that reload hard
5744 reg can hold value for strict_low_part.
5745
f980dfdb
JJ
57462013-02-07 Jakub Jelinek <jakub@redhat.com>
5747
5748 PR debug/56154
5749 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5750 dwarf2out_end_function.
5751 (in_first_function_p, maybe_at_text_label_p,
5752 first_loclabel_num_not_at_text_label): New variables.
5753 (dwarf2out_var_location): In the first function find out
6edc3e32 5754 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
5755 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5756 functions.
5757
73dd3123
EB
57582013-02-07 Eric Botcazou <ebotcazou@adacore.com>
5759
5760 PR rtl-optimization/56178
5761 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5762 SUBREG of a register. Tidy up related block of code.
5763 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5764 note if the source is a register or a SUBREG of a register.
5765
e3936f47
JJ
57662013-02-07 Jakub Jelinek <jakub@redhat.com>
5767
5768 PR target/56228
5769 * config/rs6000/rs6000.md (ptrm): New mode attr.
5770 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5771 call_value_indirect_aix<pttrsize>,
5772 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5773 m in constraints.
5774
d96d674b
MH
57752013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5776
5777 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5778 if -bnortl. Convert to strcmp and strncmp.
5779
921f2dee
AM
57802013-02-07 Alan Modra <amodra@gmail.com>
5781
5782 PR target/54009
5783 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5784 addresses won't wrap when offsetting.
5785 (rs6000_secondary_reload): Provide secondary reloads needed for
5786 wrapping LO_SUM addresses.
5787
d09c7dba
TS
57882013-02-06 Thomas Schwinge <thomas@codesourcery.com>
5789
5790 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5791 MACH, just __MACH__.
5792
a44bbd48
RB
57932013-02-06 Richard Biener <rguenther@suse.de>
5794
5795 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5796 instead of calling fix_loop_structure.
5797
6d840d99
JJ
57982013-02-06 Jakub Jelinek <jakub@redhat.com>
5799
5800 PR middle-end/56217
5801 * omp-low.c (use_pointer_for_field): Return false if
5802 lower_send_shared_vars doesn't generate any copy-out code.
5803
0f33baa9
TV
58042013-02-06 Tom de Vries <tom@codesourcery.com>
5805
5806 PR rtl-optimization/56131
5807 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5808 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
5809 of the label is NULL. Add comment.
5810
11f1e3ab
JJ
58112013-02-05 Jakub Jelinek <jakub@redhat.com>
5812
31502f9f
JJ
5813 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5814
a74db9bd
JJ
5815 PR sanitizer/55374
5816 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5817 (STATIC_LIBTSAN_LIBS): Likewise.
5818 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5819 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5820 is defined, don't add anything else beyond that.
5821 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5822 (LINK_COMMAND_SPEC): Use them.
5823
11f1e3ab
JJ
5824 PR tree-optimization/56205
5825 * tree-stdarg.c (check_all_va_list_escapes): Return true if
5826 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5827 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5828
14ac6aa2
RB
58292013-02-05 Richard Biener <rguenther@suse.de>
5830
5831 PR tree-optimization/53342
5832 PR tree-optimization/53185
5833 * tree-vectorizer.h (vect_check_strided_load): Remove.
5834 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5835 not disallow peeling for vectorized strided loads.
5836 (vect_check_strided_load): Make static and simplify.
5837 (vect_analyze_data_refs): Adjust.
5838 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5839 correctly when vectorizing strided loads.
5840
6f22445a
RB
58412013-02-05 Richard Biener <rguenther@suse.de>
5842
5843 * doc/install.texi: Refer to ISL, not PPL.
5844
39f9719e
JH
58452013-02-05 Jan Hubicka <jh@suse.cz>
5846
ec4224ac
JH
5847 PR tree-optimization/55789
5848 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5849
58502013-02-05 Jan Hubicka <jh@suse.cz>
5851
5852 PR tree-optimization/55789
39f9719e
JH
5853 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5854 the dead call anyway.
5855
956d3b33
EB
58562013-02-05 Eric Botcazou <ebotcazou@adacore.com>
5857
5858 PR sanitizer/55374
5859 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5860
58612013-02-04 Alexander Potapenko <glider@google.com>
5862 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
5863 Jakub Jelinek <jakub@redhat.com>
5864
5865 PR sanitizer/55617
5866 * config/darwin.c (sort_ctor_records): Stabilized qsort
5867 on constructor priority by using original position.
5868 (finalize_ctors): New routine to sort constructors by
5869 priority before use in assemble_integer.
5870 (machopic_asm_out_constructor): Use finalize_ctors if needed.
5871
7ac3af38
JJ
58722013-02-04 Jakub Jelinek <jakub@redhat.com>
5873
5874 PR libstdc++/54314
5875 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5876 about visibility on artificial decls.
5877 * config/sol2.c (solaris_assemble_visibility): Likewise.
5878
152689dc
KT
58792013-02-04 Kai Tietz <ktietz@redhat.com>
5880
5881 PR target/56186
5882 * config/i386/i386.c (function_value_ms_64): Add additional valtype
5883 argument and improve checking of return-argument types for 16-byte
5884 modes.
5885 (ix86_function_value_1): Add additional valtype argument on call
5886 of function_value_64.
5887 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5888 handling infunction_value_64 function.
5889
2b5987b5
MGD
58902013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5891
7ac3af38 5892 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 5893
14597080
RB
58942013-02-04 Richard Biener <rguenther@suse.de>
5895
5896 PR tree-optimization/56188
5897 * tree-ssa-structalias.c (label_visit): Consider case with
5898 initially non-empty points-to set.
5899 (perform_var_substitution): Dump node mapping and clean up.
5900
ed73881e
RG
59012013-02-04 Richard Guenther <rguenther@suse.de>
5902
5903 PR lto/56168
5904 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5905 node prevail as last resort.
5906 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 5907 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 5908
139a0707
RB
59092013-02-04 Richard Biener <rguenther@suse.de>
5910
5911 PR tree-optimization/56113
5912 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5913 Merge into ...
5914 (equiv_class_lookup_or_add): ... this.
5915 (label_visit): Adjust and fix error in previous patch.
5916 (perform_var_substitution): Adjust.
5917
50fe8924
OE
59182013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
5919
5920 * config/sh/divtab.c: Fix formatting and comments throughout the file.
5921 * config/sh/sh4-300.md: Likewise.
5922 * config/sh/sh4a.md: Likewise.
5923 * config/sh/constraints.md: Likewise.
5924 * config/sh/sh.md: Likewise.
5925 * config/sh/netbsd-elf.h: Likewise.
5926 * config/sh/predicates.md: Likewise.
5927 * config/sh/sh-protos.h: Likewise.
5928 * config/sh/ushmedia.h: Likewise.
5929 * config/sh/linux.h: Likewise.
5930 * config/sh/sh.c: Likewise.
5931 * config/sh/superh.h: Likewise.
5932 * config/sh/elf.h: Likewise.
5933 * config/sh/sh4.md: Likewise.
5934 * config/sh/sh.h: Likewise.
5935
1a04ac2b
JDA
59362013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5937
5938 * config/pa/constraints.md: Adjust unused letters. Change "T"
5939 constraint to match_test floating_point_store_memory_operand().
5940 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5941 (base14_operand): New.
5942 (floating_point_store_memory_operand): New.
5943 (integer_store_memory_operand): Revise to use base14_operand and
5944 reg_plus_base_memory_operand.
5945 (move_dest_operand): Allow symbolic_memory_operands.
5946 (symbolic_memory_operand): Check for LO_SOM.
5947 (symbolic_operand): Change default case to break.
5948 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5949 CONST_DOUBLE values to be reloaded by putting them into memory when
5950 the destination is a floating point register.
5951 (movdf): Remove code to handle CONST_DOUBLE.
5952 (movsf): Likewise.
5953 (reload_indf_r1): New.
5954 (reload_insf_r1): New.
5955 Consistently use "Q" and "T" constraints with integer and floating
5956 point move instructions, respectively.
5957 (movdi): Remove FAIL.
5958 Change predicate for source operand unamed DImode move from
5959 general_operand to move_src_operand.
5960 (umulsidi3): Change predicate for destination operand to
5961 register_operand.
5962 Likewise for similar unamed patterns.
5963 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5964 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5965 (hppa_legitimize_address): Simplify mask calculation.
5966 (pa_emit_move_sequence): Revised handling of secondary reloads from
5967 REG+D addresses for floating point loads and stores. Directly handle
5968 loading CONST0_RTX (mode) to a floating point register.
5969 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5970 to floating point registers. Don't restrict secondary reloads to
5971 floating point registers to integer modes. Revise some comments and
5972 cleanup some code.
5973 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5974 (pa_legitimate_address_p): New.
5975 (pa_legitimize_reload_address): New.
5976 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5977 (STRICT_REG_OK_FOR_BASE_P): New.
5978 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5979 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5980
3bf65591
DE
59812013-02-03 David Edelsohn <dje.gcc@gmail.com>
5982 Andrew Dixie <andrewd@gentrack.com>
5983
5984 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5985 flag set.
5986
c0a8a3e6
RS
59872013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5988
5989 * expmed.c (extract_bit_field_1): Pass the full width of the
5990 structure to get_best_reg_extraction_insn.
5991
99113dff
DE
59922013-02-01 David Edelsohn <dje.gcc@gmail.com>
5993
5994 PR target/54601
5995 * configure.ac (use_cxa_atexit): Add AIX.
5996 * configure: Regenerate.
5997
5998 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5999
ddd84654
JJ
60002013-02-01 Jakub Jelinek <jakub@redhat.com>
6001
6002 PR debug/54793
6003 * final.c (need_profile_function): New variable.
6004 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
6005 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
6006 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
6007 notes, targetm.asm_out.function_prologue doesn't emit anything,
6008 HAVE_prologue and profiler should be emitted before prologue,
6009 set need_profile_function instead of emitting it.
6010 (final_scan_insn): If need_profile_function, emit
6011 profile_function on the first NOTE_INSN_BASIC_BLOCK or
6012 NOTE_INSN_FUNCTION_BEG note.
6013
60142013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
6015
6016 * config/rs6000/rs6000.md (smulditi3): New.
6017 (umulditi3): New.
6018
ff2a9d88
RH
6019 * config/alpha/alpha.md (umulditi3): New.
6020
14d52b90
DE
60212013-02-01 David Edelsohn <dje.gcc@gmail.com>
6022
6023 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
6024 (ASM_OUTPUT_ALIGNED_LOCAL): New.
6025
8c7ca45c
RB
60262013-02-01 Richard Biener <rguenther@suse.de>
6027
6028 PR tree-optimization/56113
6029 * tree-ssa-structalias.c (label_visit): Reduce work for
6030 single-predecessor nodes.
6031
9f419393
EB
60322013-02-01 Eric Botcazou <ebotcazou@adacore.com>
6033
6034 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
6035 range isn't testing for zero.
6036
c5f4be84
SB
60372013-01-31 Steven Bosscher <steven@gcc.gnu.org>
6038
6039 PR middle-end/56113
6040 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
6041
dbdbd982
NC
60422013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
6043 Nick Clifton <nickc@redhat.com>
6044
6045 * config/v850/constraints.md (Q): Define as a memory constraint.
6046 * config/v850/predicates.md (label_ref_operand): New predicate.
6047 (e3v5_shift_operand): New predicate.
6048 (ior_operator): New predicate.
6049 * config/v850/t-v850: Add e3v5 multilib.
6050 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
6051 (v850_gen_movdi): Prototype.
6052 * config/v850/v850.c: Add support for e3v5 architecture.
6053 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
6054 TARGET_V850E_UP.
6055 (construct_save_jarl): Add e3v5 long JARL support.
6056 (v850_adjust_insn_length): New function. Adjust length of call
6057 insns when using e3v5 instructions.
6058 (v850_gen_movdi): New function: Generate instructions to move a
6059 DImode value.
6060 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
6061 (CPP_SPEC): Define __v850e3v5__ as appropriate.
6062 (TARGET_USE_FPU): Enable for e3v5.
6063 (CONST_OK_FOR_W): New macro.
6064 (ADJUST_INSN_LENGTH): Define.
6065 * config/v850/v850.md (UNSPEC_LOOP): Define.
6066 (attr cpu): Add v850e3v5.
6067 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6068 (movdi): New pattern.
6069 (movdi_internal): New pattern.
6070 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6071 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6072 (cstoresf4): Likewise.
6073 (cstoredf4): Likewise.
6074 (insv): New pattern.
6075 (rotlso3_a): New pattern.
6076 (rotlsi3_b): New pattern
6077 (rotlsi3_v850e3v5): New pattern.
6078 (doloop_begin): New pattern.
6079 (fix_loop_counter): New pattern.
6080 (doloop_end): New pattern.
6081 (branch_normal): Add e3v5 long branch support.
6082 (branch_invert): Likewise.
6083 (branch_z_normal): Likewise.
6084 (branch_z_invert): Likewise.
6085 (branch_nz_normal): Likewise.
6086 (branch_nz_invert): Likewise.
6087 (call_internal_short): Add e3v5 register-indirect JARL support.
6088 (call_internal_long): Likewise.
6089 (call_value_internal_short): Likewise.
6090 (call_value_internal_long): Likewise.
6091 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
6092 (mloop): New option.
6093 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 6094 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 6095
73861a41
PK
60962013-01-31 Paul Koning <ni1d@arrl.net>
6097
6098 PR debug/55059
6099 PR debug/54508
6100 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
6101 children if parent is a class.
6102 (prune_unused_types_prune): Don't add DW_AT_declaration.
6103
e44978dc
RB
61042013-01-31 Richard Biener <rguenther@suse.de>
6105
6106 PR tree-optimization/56157
6107 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
6108 match up operand with SLP child.
6109
90b10dec
JM
61102013-01-31 Jason Merrill <jason@redhat.com>
6111
04d2dadd 6112 PR debug/54410
90b10dec
JM
6113 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
6114 parameters the first time.
6115 (gen_scheduled_generic_parms_dies): Check completeness here.
6116
6e616110
RB
61172013-01-31 Richard Biener <rguenther@suse.de>
6118
6119 PR middle-end/53073
6120 * common.opt (faggressive-loop-optimizations): New flag,
6121 enabled by default.
6122 * doc/invoke.texi (faggressive-loop-optimizations): Document.
6123 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
6124 infer_loop_bounds_from_undefined by it.
6125
636f59cf
RB
61262013-01-31 Richard Biener <rguenther@suse.de>
6127
6128 PR tree-optimization/56150
6129 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
6130 visit virtual operands.
6131 (find_uses_to_rename_bb): Likewise.
6132
61332013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
6134
6135 PR tree-optimization/56150
6136 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
6137 mixed store non-store stmts.
6138
32887460
JJ
61392013-01-30 Jakub Jelinek <jakub@redhat.com>
6140
e60e09a0
JJ
6141 PR sanitizer/55374
6142 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
6143 LIBASAN_EARLY_SPEC is defined.
6144 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
6145 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
6146 before %o.
6147 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
6148
32887460
JJ
6149 PR c++/55742
6150 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
6151 invalid args instead of ICEing on it.
6152 (ix86_valid_target_attribute_tree): Return error_mark_node if
6153 ix86_valid_target_attribute_inner_p failed.
6154 (ix86_valid_target_attribute_p): Return false only if
6155 ix86_valid_target_attribute_tree returned error_mark_node. Allow
6156 target("default") attribute.
6157 (sorted_attr_string): Change argument from const char * to tree,
6158 merge in all target attribute arguments rather than just one.
6159 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
6160 instead of free. Avoid using strcat.
6161 (ix86_mangle_function_version_assembler_name): Mangle
6162 target("default") as if no target attribute is present. Adjust
6163 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
6164 instead of xmalloc and XDELETEVEC instead of free.
6165 (ix86_function_versions): Don't return true if one of the decls
6166 doesn't have target attribute. If they don't and one of the decls
6167 is DECL_FUNCTION_VERSIONED, report an error. Adjust
6168 sorted_attr_string caller. Use XDELETEVEC instead of free.
6169 (ix86_supports_function_versions): Remove.
6170 (make_name): Fix up formatting.
6171 (make_dispatcher_decl): Remove resolver_name and its initialization.
6172 Avoid leaking memory.
6173 (is_function_default_version): Return true if there is
6174 target("default") attribute rather than no target attribute at all.
6175 (make_resolver_func): Avoid leaking memory.
6176 (ix86_generate_version_dispatcher_body): Likewise.
6177 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
6178 * target.def (supports_function_versions): Remove.
6179 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
6180 * doc/tm.texi: Regenerated.
6181
73cca0cc
VM
61822013-01-30 Vladimir Makarov <vmakarov@redhat.com>
6183
6184 PR rtl-optimization/56144
6185 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
6186 for values with side effects.
6187
11452e7b
RB
61882013-01-30 Richard Biener <rguenther@suse.de>
6189
6190 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
6191 (sparseset_pop): Likewise.
6192 * cfganal.c (compute_idf): Likewise. Increase work-stack size
6193 to be able to use quick_push in the worker loop.
6194
01cb1ef5
MP
61952013-01-30 Marek Polacek <polacek@redhat.com>
6196
6197 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
6198
e892936e
RB
61992013-01-30 Richard Biener <rguenther@suse.de>
6200
6201 PR lto/56147
6edc3e32 6202 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 6203
cc06c01d
GJL
62042013-01-30 Georg-Johann Lay <avr@gjlay.de>
6205
6206 PR tree-optimization/56064
6207 * fixed-value.c (fixed_from_double_int): New function.
6208 * fixed-value.h (fixed_from_double_int): New prototype.
6209 (const_fixed_from_double_int): New static inline function.
6210 * fold-const.c (native_interpret_fixed): New static function.
6211 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
6212 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
6213 (native_encode_fixed): New static function.
6214 (native_encode_expr) <FIXED_CST>: Use it.
6215 (native_interpret_int): Move double_int worker code to...
6216 * double-int.c (double_int::from_buffer): ...this new static method.
6217 * double-int.h (double_int::from_buffer): Prototype it.
6218
d394a308
RB
62192013-01-30 Richard Biener <rguenther@suse.de>
6220
6221 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
6222 New pointer-map and obstack.
6223 (init_alias_vars): Allocate pointer-map and obstack.
6224 (delete_points_to_sets): Free them.
6225 (find_what_var_points_to): Cache result.
6226 (find_what_p_points_to): Adjust for changed interface of
6227 find_what_var_points_to.
6228 (compute_points_to_sets): Likewise.
6229 (ipa_pta_execute): Likewise.
6230
20804d96
RO
62312013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6232
6233 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
6234 * configure: Regenerate.
6235 * config.in: Regenerate.
6236 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
6237 #nobits/#progbits if supported.
6238
a7ad88a2
OE
62392013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
6240
6241 PR target/56121
6242 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
6243 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
6244 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
6245
7af79f92
GY
62462013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6247
91bfca59
OE
6248 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
6249 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 6250
753bcf7b
GY
62512013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6252
91bfca59
OE
6253 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
6254 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 6255
8cbc2ea8
GY
62562013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6257
91bfca59
OE
6258 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
6259 declaration.
6260 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
6261 * config/arm/cortex-a7.md: New bypasses using
6262 arm_mac_accumulator_is_result.
8cbc2ea8 6263
697a3325
GY
62642013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6265
91bfca59 6266 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 6267 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
6268 (cortex_a7_fpfmad): New reservation.
6269 (cortex_a7_fpmacs): Use ffmas and update required units.
6270 (cortex_a7_fpmuld): Update required units and latency.
6271 (cortex_a7_fpmacd): Likewise.
6272 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
6273 (cortex_a7_neon). Likewise.
6274 (bypass) Update participating units.
697a3325 6275
29637783
GY
62762013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6277
91bfca59
OE
6278 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
6279 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
6280 from fmac to ffma.
6281 * config/arm/vfp11.md (vfp_farith): Use ffmas.
6282 (vfp_fmul): Use ffmad.
6283 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
6284 (cortex_r4_fmacd): Use ffmad.
6285 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
6286 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
6287 (cortex_a9_fmacd): Use ffmad.
6288 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
6289 (cortex_a8_vfp_macd): Use ffmad.
6290 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
6291 (cortex_a5_fpmacd): Use ffmad.
6292 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
6293 (cortex_a15_vfp_macd): Use ffmad.
6294 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 6295
2ee8a2d5
JM
62962013-01-29 Jason Merrill <jason@redhat.com>
6297
6298 PR libstdc++/54314
6299 * varasm.c (default_assemble_visibility): Don't warn about
6300 visibility on artificial decls.
6301
78d087bc
RB
63022013-01-29 Richard Biener <rguenther@suse.de>
6303
6304 PR tree-optimization/56113
6305 * tree-ssa-structalias.c (equiv_class_lookup): Also return
6306 the bitmap leader.
6307 (label_visit): Free duplicate bitmaps and record the leader instead.
6308 (perform_var_substitution): Adjust.
6309
83ba4d6f
RB
63102013-01-29 Richard Biener <rguenther@suse.de>
6311
6312 PR tree-optimization/55270
6313 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
6314 the CFG, schedule loops for fixup.
6315
66dfe13f
NC
63162013-01-29 Nick Clifton <nickc@redhat.com>
6317
6318 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
6319 SP_REG.
6320
5a579c3b
LE
63212013-01-28 Leif Ekblad <leif@rdos.net>
6322
6323 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
6324 * config/i386/i386.h (TARGET_RDOS): New macro.
6325 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
6326 * config/i386/i386.c (ix86_option_override_internal): For 64bit
6327 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
6328 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
6329 DEFAULT_LARGE_SECTION_THRESHOLD.
6330 * config/i386/i386.md (R14_REG, R15_REG): New constants.
6331 * config/i386/rdos.h: New file.
6332 * config/i386/rdos64.h: New file.
6333
51e44392
BS
63342013-01-28 Bernd Schmidt <bernds@codesourcery.com>
6335
6336 PR other/54814
6337 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
6338 TEST_HARD_REG_BIT.
6339
db1fb332
JJ
63402013-01-28 Jakub Jelinek <jakub@redhat.com>
6341
6342 PR rtl-optimization/56117
6343 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
6344 call cselib_lookup_from_insn on the MEM before calling
6345 add_insn_mem_dependence.
6346
16917761
RB
63472013-01-28 Richard Biener <rguenther@suse.de>
6348
6349 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
6350 to a stmt that didn't have one.
6351 (copy_phis_for_bb): Likewise for PHI arguments.
6352 (copy_debug_stmt): Likewise for debug stmts.
6353
b9fc0497
RB
63542013-01-28 Richard Biener <rguenther@suse.de>
6355
6356 PR tree-optimization/56034
6edc3e32 6357 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
6358 (partition_builtin_p): Adjust.
6359 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
6360 it is the last partition.
6361 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
6362 up the vertex for the definition.
6363 (classify_partition): Classify whether a partition is a
6364 PKIND_REDUCTION, thus has uses outside of the loop.
6365 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
6366 Merge all PKIND_REDUCTION partitions into the last partition.
6367 (tree_loop_distribution): Seed partitions from reductions as well.
6368
aa710d25
JJ
63692013-01-28 Jakub Jelinek <jakub@redhat.com>
6370
0bfbca58
JJ
6371 PR tree-optimization/56125
6372 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
6373 pow(x,c) into sqrt(x) * powi(x, n/2) or
6374 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
6375 optimizing for size.
6376 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
6377 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
6378 integer.
6379
aa710d25
JJ
6380 PR tree-optimization/56094
6381 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
6382 to UNKNOWN_LOCATION while gimplifying expr.
6383
77dc5297
UB
63842013-01-27 Uros Bizjak <ubizjak@gmail.com>
6385
6386 PR target/56114
6387 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
6388 operand 0 in movabs insn template for -masm=intel asm alternative.
6389 (*movabs<mode>_2): Ditto for operand 1.
6390
0bfbca58 63912013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
6392
6393 PR target/54663
6394 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
6395 of microblaze-c.o
6396
0bfbca58 63972013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
6398
6399 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
6400 tm_file.
6401
0bfbca58 64022013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
6403
6404 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
6405 Undef to avoid warning.
6406
478f60f9
MH
64072013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6408
6409 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
6410 * configure: Regenerate.
6411
d7fa6ee2
JJ
64122013-01-25 Jakub Jelinek <jakub@redhat.com>
6413
6414 PR tree-optimization/56098
6415 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
6416 for stmts with volatile ops.
6417 (cond_store_replacement): Don't optimize if assign has volatile ops.
6418 (cond_if_else_store_replacement_1): Don't optimize if either
6419 then_assign or else_assign have volatile ops.
6420 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
6421 volatile ops.
6422
f8fe87bd
GJL
64232013-01-25 Georg-Johann Lay <avr@gjlay.de>
6424
6425 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
6426
28398d0d
GJL
64272013-01-25 Georg-Johann Lay <avr@gjlay.de>
6428
6429 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
6430 missing ':' in asm example.
6431
b7d7d917
TB
64322013-01-25 Tejas Belagod <tejas.belagod@arm.com>
6433
6434 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
6435 entries into lane and laneq entries.
77dc5297
UB
6436 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
6437 Remove AdvSIMD scalar modes.
b7d7d917
TB
6438 (aarch64_sq<r>dmulh_laneq<mode>): New.
6439 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
6440 modes.
6441 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
6442 builtin implementations to relfect changes in RTL in aarch64-simd.md.
6443 * config/aarch64/iterators.md (VCOND): New.
6444 (VCONQ): New.
6445
556f9906
GJL
64462013-01-25 Georg-Johann Lay <avr@gjlay.de>
6447
6448 PR target/54222
6449 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
6450 Add NULL LIBNAME argument to existing definitions.
6451 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
6452 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
6453 * config/avr/avr.c (DEF_BUILTIN): Same.
6454 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
6455 (avr_expand_builtin): Expand to a vanilla call if a libgcc
6456 implementation is available (DECL_ASSEMBLER_NAME is set).
6457 (avr_fold_absfx): New static function.
6458 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
6459 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
6460 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
6461 AVR_BUILTIN_ABSLLK.
6462 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
6463 (abshk, absk, abslk, absllk): Provide as static inline functions.
6464
1f546bbb
MP
64652013-01-25 Marek Polacek <polacek@redhat.com>
6466
6467 PR tree-optimization/56035
6468 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
6469
7e184bd7
UB
64702012-01-24 Uros Bizjak <ubizjak@gmail.com>
6471
6472 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
6473 (*movtf_internal_rex64): Add (!o,C) alternative
6474 (*movxf_internal_rex64): Ditto.
6475 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
6476
f5ba49ac
SM
64772013-01-24 Shenghou Ma <minux.ma@gmail.com>
6478
6479 * doc/invoke.texi: fix typo.
6480 * doc/objc.texi: fix typo.
6481
a6343728
RS
64822013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6483
6484 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
6485 for the first two alternatives.
6486
cd030c07
DN
64872013-01-24 Diego Novillo <dnovillo@google.com>
6488
77dc5297 6489 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
6490 (ggc-zone.o): Remove.
6491 * configure.ac: Remove option --with-gc.
6492 * configure: Re-generate.
6493 * doc/install.texi: Remove documentation for --with-gc.
6494 * gengtype.c (write_enum_defn): Remove. Update all users.
6495 (write_Types_process_field): Remove generation of gt_e_* argument.
6496 (output_type_enum): Remove. Update all users.
6497 (write_enum_defn): Remove. Update all users.
6498 (enum alloc_zone): Remove. Update all users.
77dc5297 6499 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
6500 * ggc-common.c (ggc_splay_alloc): Remove first argument.
6501 Update all callers.
6502 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 6503 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
6504 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
6505 Update all users.
aaf1e810 6506 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
6507 (struct alloc_zone): Remove.
6508 (ggc_internal_alloc_zone_stat): Remove.
6509 (ggc_internal_cleared_alloc_zone_stat): Remove.
6510 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
6511 (ggc_pch_count_object): Remove last argument. Update all users.
6512 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
6513 (struct alloc_zone): Remove.
6514 * ggc-zone.c: Remove.
77dc5297 6515 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
6516 (struct alloc_zone): Remove.
6517 (ggc_alloc_typed_stat): Remove.
6518 (ggc_alloc_typed): Remove.
6519 (ggc_splay_alloc): Remove first argument.
6520 (rtl_zone): Remove. Update all users.
6521 (tree_zone): Remove. Update all users.
6522 (tree_id_zone): Remove. Update all users.
6523 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 6524 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 6525 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 6526 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 6527
a861ffa4
GJL
65282013-01-24 Georg-Johann Lay <avr@gjlay.de>
6529
6530 * config/avr/avr.c (avr_out_fract): Make register numbers that
6531 might be outside of source operand signed.
6532
593c0ddd
UB
65332013-01-24 Uros Bizjak <ubizjak@gmail.com>
6534
6535 * config/i386/constraints.md (Yf): New constraint.
6536 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6537 of f constraint to conditionaly disable x87 register preferences.
6538 (*movdf_internal): Ditto.
6539 (*movsf_internal): Ditto.
6540
e86c0101
SB
65412013-01-24 Steven Bosscher <steven@gcc.gnu.org>
6542
6543 PR inline-asm/55934
6544 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6545 that have operands with impossible constraints.
6546 Add a FIXME for a speed-up opportunity.
6547 * lra-constraints.c (process_alt_operands): Verify that a class
6548 selected from constraints on asms is valid for the operand mode.
6549 (curr_insn_transform): Remove incorrect comment.
6550
f6fee35f
DE
65512013-01-23 David Edelsohn <dje.gcc@gmail.com>
6552
6553 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6554 TOC operand is a valid symbol ref in the constant pool.
6555
65562013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 6557
aaf1e810 6558 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 6559
dc62d7d1
GJL
65602013-01-23 Georg-Johann Lay <avr@gjlay.de>
6561
6562 PR target/54222
6563 * config/avr/stdfix.h: New file.
6564 * t-avr (stdfix-gcc.h): New rule to build it.
6565 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6566
2660d12d
KS
65672013-01-23 Kostya Serebryany <kcc@google.com>
6568
77dc5297
UB
6569 * config/darwin.h: remove dependency on
6570 CoreFoundation (asan on Mac OS).
2660d12d 6571
a70418fc
JJ
65722013-01-23 Jakub Jelinek <jakub@redhat.com>
6573
6574 PR target/49069
6575 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6576 instead of cmpdi_operand for first comparison operand.
6577 Don't assert that comparison operands aren't both constants.
6578
47876a2a
JW
65792013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6580
6581 * doc/install.texi (Downloading the Source): Update references to
6582 downloading separate components.
6583
65842013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
6585
6586 * doc/extend.texi (__int128): Improve grammar.
6587
47876a2a 65882013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
6589
6590 PR target/56028
6591 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6592 alternative to (o,r).
6593 (*movdi_internal_rex64): Remove (!o,n) alternative.
6594 (DImode immediate->memory splitter): Remove.
6595 (DImode immediate->memory peephole2): Remove.
6596 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6597 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6598 alternative to (!o,*r).
6599 (*movtf_internal_sse): New pattern.
6600 (*movxf_internal_rex64): New pattern.
6601 (*movxf_internal): Disable for TARGET_64BIT.
6602 (*movdf_internal_rex64): Remove (!o,F) alternative.
6603
3a984f10
JJ
66042013-01-22 Jakub Jelinek <jakub@redhat.com>
6605
502498d5
JJ
6606 PR middle-end/56074
6607 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6608 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6609 * tree-vect-loop-manip.c (find_loop_location): Also ignore
6610 stmt locations where LOCATION_LOCUS of the stmt location is
6611 UNKNOWN_LOCATION or BUILTINS_LOCATION.
6612
3a984f10
JJ
6613 PR target/55686
6614 * config/i386/i386.md (UNSPEC_STOS): New.
6615 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6616 *strsetqi_1): Add UNSPEC_STOS.
6617
fa817f7f
PC
66182013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
6619
6620 PR c++/56067
6621 * doc/invoke.texi: Remove left over -Wsynth example.
6622
8f498c1b
JJ
66232013-01-21 Jakub Jelinek <jakub@redhat.com>
6624
6625 PR tree-optimization/56051
6626 * fold-const.c (fold_binary_loc): Don't fold
6627 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6628 a narrowing conversion, or widening conversion from signed
6629 to unsigned.
6630
47876a2a 66312013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
6632
6633 PR rtl-optimization/56023
6634 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6635 dependent on debug instruction.
6636
5b9db1bc
MJ
66372013-01-21 Martin Jambor <mjambor@suse.cz>
6638
6639 PR middle-end/56022
6640 * function.c (allocate_struct_function): Call
6641 invoke_set_current_function_hook earlier.
6642
e8bb7d68
JJ
66432013-01-21 Jakub Jelinek <jakub@redhat.com>
6644
6645 * reload1.c (init_reload): Only initialize reload_obstack
6646 during the first call.
6647
616a4e32
MP
66482013-01-21 Marek Polacek <polacek@redhat.com>
6649
6650 * cfgloop.c (verify_loop_structure): Fix up grammar.
6651
4401981b
YHH
66522013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
6653
6654 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6655 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6656
8e87740b
RR
66572013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6658
6659 PR target/56058
6660 * config/arm/marvell-pj4.md: Update copyright year.
6661 Fix up use of alu to alu_reg and simple_alu_imm.
6662
47876a2a 66632013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
6664
6665 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6666
89d56d79
VM
66672013-01-20 Vladimir Makarov <vmakarov@redhat.com>
6668
6669 PR target/55433
6670 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 6671 insn for secondary memory move when memory mode should be different.
89d56d79 6672
fe603553
JDA
66732013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6674
6675 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6676 atomic_storedi_1): New patterns.
6677
01284895
VK
66782013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6679
6680 btver2 pipeline descriptions.
6681 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6682 descriptions.
6683 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 6684 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
6685 type attributes.
6686 * config/i386/btver2.md: New file describing btver2 pipelines.
6687
5630e3e1
JL
66882013-01-19 Andrew Pinski <apinski@cavium.com>
6689
6690 PR tree-optimization/52631
6691 * tree-ssa-sccvn (visit_use): Before looking up the original
6692 statement, try looking up the simplified expression.
6693
650ae806
AG
66942013-01-19 Anthony Green <green@moxielogic.com>
6695
6696 * config/moxie/moxie.c (moxie_expand_prologue): Set
6697 current_function_static_stack_size.
6698
e300ec2d
JJ
66992013-01-18 Jakub Jelinek <jakub@redhat.com>
6700
6701 PR tree-optimization/56029
6702 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6703 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6704
a3d7af04
SS
67052013-01-18 Sharad Singhai <singhai@google.com>
6706
6707 PR tree-optimization/55995
6708 * dumpfile.c (dump_loc): Print location only if available.
6709 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6710
66aa7879
VM
67112013-01-18 Vladimir Makarov <vmakarov@redhat.com>
6712
6713 PR target/55433
6714 * lra-constraints.c (curr_insn_transform): Reuse original insn for
6715 secondary memory move.
6716 (inherit_reload_reg): Use rclass instead of cl for
6717 check_secondary_memory_needed_p.
6718
3f0fee7b
JJ
67192013-01-18 Jakub Jelinek <jakub@redhat.com>
6720
6721 PR middle-end/56015
6722 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 6723 the case where writing real complex part of target modifies op1.
3f0fee7b 6724
70c67693
JG
67252013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
6726
6727 * config/aarch64/aarch64-simd.md
6728 (aarch64_vcond_internal<mode>): Handle unordered cases.
6729 * config/aarch64/iterators.md (v_cmp_result): New.
6730
df8de9b3
YHH
67312013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
6732 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6733
6734 * config/arm/marvell-pj4.md: New file.
6735 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6736 * config/arm/arm.md (generic_sched): Add marvell_pj4.
6737 (generic_vfp): Likewise.
6738 * config/arm/arm-cores.def: Add marvell-pj4.
6739 * config/arm/arm-tune.md: Regenerate.
6740 * config/arm/arm-tables.opt: Regenerate.
6741 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6742 * doc/invoke.texi: Document marvell-pj4.
6743
be30c356
TB
67442013-01-18 Tejas Belagod <tejas.belagod@arm.com>
6745
6746 * config/aarch64/arm_neon.h: Map scalar types to standard types.
6747
0bfbca58 67482013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
6749
6750 PR debug/54114
6751 PR debug/54402
6752 PR debug/49888
6753 * var-tracking.c (negative_power_of_two_p): New.
6754 (global_get_addr_cache, local_get_addr_cache): New.
6755 (get_addr_from_global_cache, get_addr_from_local_cache): New.
6756 (vt_canonicalize_addr): Rewrite using the above. Adjust the
6757 heading comment.
6758 (vt_stack_offset_p): Remove.
6759 (vt_canon_true_dep): Always canonicalize loc's address.
6760 (clobber_overlapping_mems): Make sure we have a MEM.
6761 (local_get_addr_clear_given_value): New.
6762 (val_reset): Clear local cached entries.
6763 (compute_bb_dataflow): Create and release the local cache.
6764 Disable duplicate MEMs clobbering.
6765 (emit_notes_in_bb): Clobber MEMs likewise.
6766 (vt_emit_notes): Create and release the local cache.
6767 (vt_initialize, vt_finalize): Create and release the global
6768 cache, respectively.
1f6bc337 6769 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 6770
0bfbca58 67712013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
6772
6773 PR libmudflap/53359
6774 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6775 not found in the symtab.
6776
0bfbca58 67772013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 6778
c350ba53 6779 PR debug/56006
3aa03517
AO
6780 PR rtl-optimization/55547
6781 PR rtl-optimization/53827
6782 PR debug/53671
6783 PR debug/49888
6784 * alias.c (offset_overlap_p): New, factored out of...
6785 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
6786 the conservative special case for symbolic constants. Don't
6787 adjust zero sizes on alignment.
6788
c664546f
JL
67892013-01-18 Bernd Schmidt <bernds@codesourcery.com>
6790
6791 PR rtl-optimization/52573
6792 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6793 REG_UNUSED for the same register.
6794
1bd3f750
MP
67952013-01-17 Richard Biener <rguenther@suse.de>
6796 Marek Polacek <polacek@redhat.com>
6797
6798 PR rtl-optimization/55833
6799 * loop-unswitch.c (unswitch_loops): Move loop verification...
6800 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
6801 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6802 Set it to true when we're removing a loop from hierarchy tree in
6803 an irreducible region.
6804 (fix_bb_placements): Adjust caller.
6805 (fix_loop_placements): Likewise.
6806
e52a8b71
GJL
68072013-01-17 Georg-Johann Lay <avr@gjlay.de>
6808
6809 * config/avr/builtins.def (DEF_BUILTIN): Factor out
6810 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6811 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6812 Remove ID. Adjust comments.
6813 * config/avr/avr-c.c (avr_builtin_name): Remove.
6814 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6815 * config/avr/avr.c (avr_tolower): New static function.
6816 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
6817 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6818 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6819 default expansion.
6820
8386a7ea
JH
68212013-01-17 Jan Hubicka <jh@suse.cz>
6822
610fb637 6823 PR tree-optimization/55273
8386a7ea
JH
6824 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6825
47876a2a 68262013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
6827
6828 PR target/55981
6829 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6830 store through atomic_store<mode>_1.
6831 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6832
8222c37e
MJ
68332013-01-17 Martin Jambor <mjambor@suse.cz>
6834
6835 PR tree-optimizations/55264
6836 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6837 for virtual methods.
6838 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6839 virtual methods before inlining is over.
6840 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6841 virtual functions.
6842 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6843 non-virtual.
6844
79f01c76
VM
68452013-01-16 Vladimir Makarov <vmakarov@redhat.com>
6846
6847 PR rtl-optimization/56005
6848 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6849 pending reads for prefetch.
6850
d0b6bb1b
IB
68512013-01-16 Ian Bolton <ian.bolton@arm.com>
6852
aaf1e810 6853 * config/aarch64/aarch64.md
d0b6bb1b
IB
6854 (*cstoresi_neg_uxtw): New pattern.
6855 (*cmovsi_insn_uxtw): New pattern.
6856 (*<optab>si3_uxtw): New pattern.
6857 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6858 (*<optab>si3_insn_uxtw): New pattern.
6859 (*bswapsi2_uxtw): New pattern.
6860
cb9cf03b
RB
68612013-01-16 Richard Biener <rguenther@suse.de>
6862
6863 * tree-inline.c (tree_function_versioning): Remove set but
6864 never used variable.
6865
2cfc56b9
RB
68662013-01-16 Richard Biener <rguenther@suse.de>
6867
6868 PR tree-optimization/55964
6869 * tree-flow.h (rename_variables_in_loop): Remove.
6870 (rename_variables_in_bb): Likewise.
6871 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6872 (copy_loop_before): Adjust and delete update-ssa status.
6873 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 6874 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
6875 (rename_variables_in_loop): Remove.
6876 (slpeel_update_phis_for_duplicate_loop): Likewise.
6877 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6878 use available cfg machinery instead of duplicating it.
6879 Update PHI nodes and perform poor-mans SSA update here.
6880 (slpeel_tree_peel_loop_to_edge): Adjust.
6881
c25a0c60
RB
68822013-01-16 Richard Biener <rguenther@suse.de>
6883
6884 PR tree-optimization/54767
6885 PR tree-optimization/53465
6886 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6887 (vrp_visit_phi_node): For PHI arguments coming via backedges
6888 drop all symbolical range information.
6889 (execute_vrp): Compute backedges.
6890
04b535af
RB
68912013-01-16 Richard Biener <rguenther@suse.de>
6892
6893 * doc/install.texi: Update CLooG and ISL requirements to
6894 0.18.0 and 0.11.1.
6895
8b0a1e0b
CB
68962013-01-16 Christian Bruel <christian.bruel@st.com>
6897
6898 PR target/55301
6899 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6900 (broken_move): Handle UNSPECV_SP_SWITCH_B.
6901 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6902
69032013-01-16 DJ Delorie <dj@redhat.com>
6904
6905 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6906 (UNSPECV_SP_SWITCH_E): New.
6907 (sp_switch_1): Change to an unspec.
6908 (sp_switch_2): Change to an unspec. Don't use post-inc when we
6909 replace $r15.
6910
69112013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
6912
6913 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6914 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6915 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6916 (expand_mem_thread_fence): Ditto.
6917 (expand_mem_signal_fence): Ditto.
6918 (expand_atomic_load): Ditto.
6919 (expand_atomic_store): Ditto.
6920
0bfbca58 69212013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
6922
6923 PR rtl-optimization/55547
6924 PR rtl-optimization/53827
6925 PR debug/53671
6926 PR debug/49888
6927 * alias.c (memrefs_conflict_p): Set sizes to negative after
6928 AND adjustments.
6929
305e3ac1
JJ
69302013-01-15 Jakub Jelinek <jakub@redhat.com>
6931
6932 PR target/55940
6933 * function.c (thread_prologue_and_epilogue_insns): Always
6934 add crtl->drap_reg to set_up_by_prologue.set, even if
6935 stack_realign_drap is false.
6936
f78ac4f2
JBG
69372013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6938
6939 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6940 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6941 *call): Fix indention.
6942
a78a8cc4
TV
69432013-01-15 Tom de Vries <tom@codesourcery.com>
6944
6945 PR target/55876
6946 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6947 Update comment.
6948
0e80383f
VM
69492013-01-15 Vladimir Makarov <vmakarov@redhat.com>
6950
305e3ac1 6951 PR rtl-optimization/55153
0e80383f
VM
6952 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6953
207b5956
MJ
69542013-01-15 Martin Jambor <mjambor@suse.cz>
6955
6956 PR tree-optimization/55920
6957 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6958 accesses as grp_to_be_debug_replaced.
6959
a7818b54
JJ
69602013-01-15 Jakub Jelinek <jakub@redhat.com>
6961
6962 PR tree-optimization/55920
6963 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6964 there is non-useless type conversion needed from debug rhs to lhs,
6965 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6966
b0fe107e
JM
69672013-01-15 Joseph Myers <joseph@codesourcery.com>
6968 Mikael Pettersson <mikpe@it.uu.se>
6969
6970 PR target/43961
6971 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6972 Thumb.
6973 (ASM_OUTPUT_CASE_LABEL): Remove.
6974 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6975 * final.c (shorten_branches): Update alignment of labels before
6976 jump tables if CASE_VECTOR_SHORTEN_MODE.
6977
34ab62ee
RB
69782013-01-15 Richard Biener <rguenther@suse.de>
6979
6980 PR bootstrap/55961
6981 * system.h: Do not include gmp.h for building host tools.
6982
783a3a05
RB
69832013-01-15 Richard Biener <rguenther@suse.de>
6984
6985 PR middle-end/55882
6986 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6987 account for bitpos when computing alignment.
6988
3a579e09
VY
69892013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6990
6991 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6992 (ix86_target_macros_internal): Likewise.
6993
6994 * config/i386/i386.c (m_CORE2I7): Removed.
6995 (m_CORE_HASWELL): New macro.
6996 (m_CORE_ALL): Likewise.
6997 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6998 (initial_ix86_arch_features): Likewise.
6999 (processor_target_table): Initializations for Core avx2.
7000 (cpu_names): New names "core-avx2".
7001 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
7002 PROCESSOR_CORE_HASWELL.
7003 (ix86_issue_rate): New case.
7004 (ia32_multipass_dfa_lookahead): Likewise.
7005 (ix86_sched_init_global): Likewise.
7006
7007 * config/i386/i386.h (TARGET_HASWELL): New macro.
7008 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
7009 (processor_type): New PROCESSOR_HASWELL.
7010
955f5a07
JJ
70112013-01-15 Jakub Jelinek <jakub@redhat.com>
7012
ff784829
JJ
7013 PR tree-optimization/55955
7014 * tree-vect-loop.c (vectorizable_reduction): Give up early on
7015 *SHIFT_EXPR and *ROTATE_EXPR codes.
7016
955f5a07
JJ
7017 PR tree-optimization/48766
7018 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
7019 -ftrapv disable -fwrapv.
7020
aeb8b4e9
GJL
70212013-01-14 Georg-Johann Lay <avr@gjlay.de>
7022
7023 PR target/55974
7024 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
7025 etc. to 1 and not to __flash.
7026 Use LL suffix for __INT24_MAX__ with -mint8.
7027 Use ULL suffix for __UINT24_MAX__ with -mint8.
7028
1c494c6a
GJL
70292013-01-14 Georg-Johann Lay <avr@gjlay.de>
7030
7031 * config/avr/avr-arch.h
7032 (struct base_arch_s): Use typedef avr_arch_t instead.
7033 (struct arch_info_s): Use typedef avr_arch_info_t instead.
7034 (struct mcu_type_s): Use typedef avr_mcu_t instead.
7035 * config/avr/avr.c: Same.
7036 * config/avr/avr-devices.c: Same.
7037 * config/avr/driver-avr.c: Same.
7038 * config/avr/gen-avr-mmcu-texi.c: Same.
7039 * config/avr/avr-mcus.def: Adjust comment.
7040
a50344cb
TB
70412013-01-14 Tejas Belagod <tejas.belagod@arm.com>
7042
88e784e6
UB
7043 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
7044 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 7045
47876a2a 70462013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
7047 Andi Kleen <ak@linux.intel.com>
7048
7049 PR target/55948
7050 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
7051 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
7052 memmodel flag.
7053
00892272
GJL
70542013-01-14 Georg-Johann Lay <avr@gjlay.de>
7055
7056 * config/avr/avr-stdint.h: Remove trailing blanks.
7057 * config/avr/avr-log.h: Same.
7058 * config/avr/avr-arch.h: Same.
7059 * config/avr/avr-devices.c: Same.
7060 * config/avr/avr-dimode.md: Same.
7061 * config/avr/predicates.md: Same.
7062 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 7063
00892272
GJL
7064 * config/avr/avr-protos.h: Same. And:
7065 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
7066 (init_cumulative_args): Rename to avr_init_cumulative_args.
7067 (expand_prologue): Rename to avr_expand_prologue.
7068 (expand_epilogue): Rename to avr_expand_epilogue.
7069 (adjust_insn_length): Rename to avr_adjust_insn_length.
7070 (notice_update_cc): Rename to avr_notice_update_cc.
7071 (final_prescan_insn): Rename to avr_final_prescan_insn.
7072 * config/avr/avr.c: Same.
7073 * config/avr/avr.h: Same.
7074 * config/avr/avr.md: Remove trailing blanks.
7075 (prologue): Use avr_expand_prologue.
7076 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
7077
7bb01996
RB
70782013-01-14 Richard Biener <rguenther@suse.de>
7079
7080 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
7081 verify_location, collect_subblocks): New functions.
7082 (verify_gimple_in_cfg): Verify that locations only reference
7083 BLOCKs in the functions BLOCK tree.
7084
2724573f
RB
70852013-01-14 Richard Biener <rguenther@suse.de>
7086
7087 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
7088 PHI argument.
7089 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
7090 unshare reference.
7091 (insert_out_of_ssa_copy_on_edge): Likewise.
7092 (rewrite_close_phi_out_of_ssa): Likewise.
7093 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
7094 debug expressions.
7095 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
7096 propagated constants.
7097 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
7098 can not be shared.
7099
9a0bbab6
GJL
71002013-01-14 Georg-Johann Lay <avr@gjlay.de>
7101
7102 * config/avr/avr-modes.def: Add GPL copyright notice.
7103
45805f17
UB
71042013-01-13 Uros Bizjak <ubizjak@gmail.com>
7105
7106 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
7107 MEMMODEL_MASK to determine memory model.
7108 (atomic_store<mode>): Ditto from operands[2].
7109 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
7110
9d60be38
JJ
71112013-01-13 Jakub Jelinek <jakub@redhat.com>
7112
7113 PR fortran/55935
45805f17 7114 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
7115 (fold_gimple_assign): Don't call unshare_expr here.
7116 (fold_ctor_reference): Call unshare_expr.
7117
e7f49d92
TG
71182013-01-13 Terry Guo <terry.guo@arm.com>
7119
aaf1e810
EB
7120 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
7121 * doc/fragments.texi: Document MULTILIB_REUSE.
7122 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 7123 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 7124 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
7125 (tmpmultilib4): Ditto.
7126 (multilib_reuse): New multilib argument.
7127
fbd03a27
RS
71282013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
7129
7130 * Makefile.in: Update copyright.
7131
b3681f13
TV
71322013-01-12 Tom de Vries <tom@codesourcery.com>
7133
7134 PR middle-end/55890
7135 * calls.c (expand_call): Check if arg_nr is valid.
7136
3f287e4b
MM
71372013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7138
7139 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
7140 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
7141 documentation. Add missing '__' in front of
7142 __builtin_ia32_packssdw256.
3f287e4b 7143
1abcd5eb
AK
71442013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7145
7146 PR target/55719
7147 * config/s390/s390.c (s390_preferred_reload_class): Do not return
7148 NO_REGS for larl operands.
7149 (s390_reload_larl_operand): Use s390_load_address instead of
7150 emit_move_insn.
7151
980d0812
RB
71522013-01-11 Richard Biener <rguenther@suse.de>
7153
7154 * tree-cfg.c (verify_node_sharing_1): Split out from ...
7155 (verify_node_sharing): ... here.
7156 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
7157
7cb9fd07
EB
71582013-01-11 Eric Botcazou <ebotcazou@adacore.com>
7159
7160 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
7161 Substitute TREECHECKING.
7162 * configure: Regenerate.
7163 * Makefile.in (TREECHECKING): New.
7164
47876a2a 71652013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
7166
7167 PR tree-optimization/44061
7168 * tree-vrp.c (extract_range_basic): Compute zero as
7169 value-range for __builtin_constant_p of function parameters.
7170
d1e082c2
RS
71712013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
7172
45805f17 7173 Update copyright years.
d1e082c2 7174
f85021b0
VM
71752013-01-10 Vladimir Makarov <vmakarov@redhat.com>
7176
9d60be38 7177 PR rtl-optimization/55672
0160442c
VM
7178 * lra-eliminations.c (mark_not_eliminable): Permit addition with
7179 const to be eliminable.
f85021b0 7180
7a8b1ec4
DE
71812013-01-10 David Edelsohn <dje.gcc@gmail.com>
7182
7183 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
7184 * configure: Regenerate.
7185
ad2e5b71
RB
71862013-01-10 Richard Biener <rguenther@suse.de>
7187
ddf9322d 7188 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 7189
ffc5b2bb
RB
71902013-01-10 Richard Biener <rguenther@suse.de>
7191
7192 PR bootstrap/55792
7193 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
7194 locations for virtual PHI arguments.
7195 (rewrite_update_phi_arguments): Likewise.
7196
e1f674e4
JS
71972013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
7198
7199 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
7200 on to assembler.
7201
a57fc743
JJ
72022013-01-10 Jakub Jelinek <jakub@redhat.com>
7203
7204 PR tree-optimization/55921
7205 * tree-complex.c (expand_complex_asm): New function.
7206 (expand_complex_operations_1): Call it for GIMPLE_ASM.
7207
0ff4390d
AK
72082013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7209
7210 PR target/55718
7211 * config/s390/s390.c (s390_symref_operand_p)
7212 (s390_loadrelative_operand_p): Merge the two functions.
7213 (s390_check_qrst_address, print_operand_address): Add parameters
7214 to s390_loadrelative_operand_p invokation.
7215 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
7216 (s390_reload_larl_operand, s390_secondary_reload): Use
7217 s390_loadrelative_operand_p instead of s390_symref_operand_p.
7218 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
7219
6f557e0e
MS
72202013-01-09 Mike Stump <mikestump@comcast.net>
7221
7222 * dse.c (record_store): Remove unnecessary assert.
7223
7770c9e9
JH
72242013-01-09 Jan Hubicka <jh@suse.cz>
7225
7226 PR tree-optimization/55569
7227 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
7228 * cfgloop.h (scale_loop_profile): Likewise.
7229
a19b1432
JH
72302013-01-09 Jan Hubicka <jh@suse.cz>
7231
7232 PR lto/45375
ddf9322d
UB
7233 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
7234 functions.
a19b1432
JH
7235 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
7236
9a002da8
RS
72372013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
7238
7239 PR middle-end/55114
7240 * expr.h (maybe_emit_group_store): Declare.
7241 * expr.c (maybe_emit_group_store): New function.
7242 * builtins.c (expand_builtin_int_roundingfn): Call it.
7243 (expand_builtin_int_roundingfn_2): Likewise.
7244
511dcace
VM
72452013-01-09 Vladimir Makarov <vmakarov@redhat.com>
7246
e1f2b729 7247 PR rtl-optimization/55829
511dcace
VM
7248 * lra-constraints.c (match_reload): Add code for absent output.
7249 (curr_insn_transform): Add code for reloads of matched inputs
7250 without output.
7251
7b0fe4f4
UB
72522013-01-09 Uros Bizjak <ubizjak@gmail.com>
7253
7254 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
7255 attribute of movddup insn to DF.
7256 (*vec_interleave_lowv2df): Ditto.
7257 (vec_dupv2df): Ditto.
7258
870ca331
JH
72592013-01-09 Jan Hubicka <jh@suse.cz>
7260
7261 PR tree-optimiation/55875
7262 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
7263 EVERY_ITERATION parameter.
7b0fe4f4 7264 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
7265 (idx_infer_loop_bounds): Similarly here.
7266 (n_of_executions_at_most): Simplify
7267 to only test for cases where statement is dominated by the
7b0fe4f4 7268 particular bound; handle correctly the "postdominance" test.
870ca331
JH
7269 (scev_probably_wraps_p): Use max loop iterations info
7270 as a global bound first.
7271
6f575fe4 72722013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
7273 Nick Clifton <nickc@redhat.com>
7274
7275 * config/v850/v850.md (cbranchsf4): New pattern.
7276 (cstoresf4): New pattern.
7277 (cbranchdf4): New pattern.
7278 (cstoredf4): New pattern.
7279 (movsicc): Disallow floating point comparisons.
7280 (cmpsf_le_insn): Fix order of operators.
7281 (cmpsf_lt_insn): Likewise.
7282 (cmpsf_eq_insn): Likewise.
7283 (cmpdf_le_insn): Likewise.
7284 (cmpdf_lt_insn): Likewise.
7285 (cmpdf_eq_insn): Likewise.
7286 (cmpsf_ge_insn): Use LE comparison.
7287 (cmpdf_ge_insn): Likewise.
7288 (cmpsf_gt_insn): Use LT comparison.
7289 (cmpdf_gt_insn): Likewise.
7290 (cmpsf_ne_insn): Delete pattern.
7291 (cmpdf_ne_insn): Delete pattern.
7292 * config/v850/v850.c (v850_gen_float_compare): Use
7293 gen_cmpdf_eq_insn for NE comparison.
7294 (v850_float_z_comparison_operator)
7295 (v850_float_nz_comparison_operator): Move from here ...
7296 * config/v850/predicates.md: ... to here. Move GT and GE
7297 comparisons into v850_float_z_comparison_operator.
7298 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
7299 Delete prototype.
7300 (v850_float_nz_comparison_operator): Likewise.
7301
f0d54148
JDA
73022013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7303
7304 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
7305 with calls to gen_insvsi/gen_insvdi.
7306
8f01beca
VK
73072013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7308
7309 * config/i386/i386.c (initial_ix86_tune_features): Set up
7310 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
7311
2aa579ad
JJ
73122013-01-09 Steven Bosscher <steven@gcc.gnu.org>
7313 Jakub Jelinek <jakub@redhat.com>
7314
7315 PR tree-optimization/48189
7316 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
7317 If nitercst is 0, don't predict the exit edge.
7318
6edc3e32 73192013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
7320
7321 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
7322 in asm_fprintf with reg_names.
7323 (aarch64_print_operand_address): Likewise.
7324 (aarch64_return_addr): Likewise.
7325 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
7326
f6f94d94
JDA
73272013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7328
7329 * config/pa/pa.h (VAL_U6_BITS_P): Define.
7330 (INT_U6_BITS): Likewise.
7331 * config/pa/predicates.md (uint6_operand): New predicate.
7332 (shift5_operand, shift6_operand): Likewise.
7333 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
7334 arith32_operand.
7335 (lshrdi3): Use shift6_operand.
7336 (shrpsi4, shrpdi4): New insn patterns.
7337 (extzv): Delete expander.
7338 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
7339 predicates in unamed zero extract patterns. Tighten common constraint.
7340 (extv): Delete expander.
7341 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
7342 predicates in unamed sign extract patterns. Tighten common constraint.
7343 (insv): Delete expander.
7344 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
7345 predicates in unamed insert patterns. Tighten common constraint.
7346 Change uint32_operand predicate to uint6_operand predicate in unamed
7347 DImode pattern to insert constant values of type 1...1xxxx.
7348
36b72910
JH
73492013-01-04 Jan Hubicka <jh@suse.cz>
7350
7351 PR tree-optimization/55823
7b0fe4f4
UB
7352 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
7353 issue.
36b72910 7354
47876a2a 73552013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
7356 Uros Bizjak <ubizjak@gmail.com>
7357
7358 PR rtl-optimization/55845
7359 * df-problems.c (can_move_insns_across): Stop scanning at
7360 volatile_insn_p source instruction or give up if
7361 across_from .. across_to range contains any volatile_insn_p
7362 instructions.
7363
4369c11e
TB
73642013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7365
7b0fe4f4
UB
7366 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
7367 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
7368 Declare.
4369c11e 7369 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 7370 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 7371
aeb7e7c1
JJ
73722013-01-08 Jakub Jelinek <jakub@redhat.com>
7373
7374 PR fortran/55341
7375 * asan.c (asan_clear_shadow): New function.
7376 (asan_emit_stack_protection): Use it.
7377
a02ad1aa
TB
73782013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7379
7380 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
7381 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
7382 with tab instead of space.
7383
f90d87f5
NC
73842013-01-08 Nick Clifton <nickc@redhat.com>
7385
7386 * config/rl78/rl78.c (rl78_expand_prologue): Always select
7387 register bank 0 at the start of an interrupt handler.
83ffd964
NC
7388 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
7389 MDBH registers.
f90d87f5 7390
385eb93d
JG
73912013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7392
7393 * config/aarch64/aarch64-simd.md
7394 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
7395 (aarch64_simd_bsl): Likewise.
7396 (aarch64_vcond_internal<mode>): Likewise.
7397 (vcond<mode><mode>): Likewise.
7398 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
7399 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
7400
4dcd1054
JG
74012013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7402
7403 * config/aarch64/aarch64-builtins.c
7404 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
7405
4267a4a6
MJ
74062013-01-08 Martin Jambor <mjambor@suse.cz>
7407
7408 PR debug/55579
7409 * tree-sra.c (analyze_access_subtree): Return true also after
7410 potentially creating a debug-only replacement.
7411
5f4e6de3
JJ
74122013-01-08 Jakub Jelinek <jakub@redhat.com>
7413
3138f224
JJ
7414 PR middle-end/55890
7415 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
7416
5f4e6de3
JJ
7417 PR tree-optimization/54120
7418 * tree-vrp.c (range_fits_type_p): Don't allow
7419 src_precision < precision from signed vr to unsigned_p
7420 if vr->min or vr->max is negative.
7421 (simplify_float_conversion_using_ranges): Test can_float_p
7422 against CODE_FOR_nothing.
7423
f3ef18ff
JJ
74242013-01-08 Jakub Jelinek <jakub@redhat.com>
7425 Richard Biener <rguenther@suse.de>
7426
7427 PR middle-end/55851
7428 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
7429 types instead of just INTEGER_TYPE types.
7430
25c210f9
MK
74312013-01-07 Mark Kettenis <kettenis@openbsd.org>
7432
7433 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
7434 TF_SIZE): Define.
f90d87f5 7435
81826a7b
SE
74362013-01-07 Steve Ellcey <sellcey@mips.com>
7437
7438 PR target/42661
7439 * config/mips/mips.opt: Change mad to mmad to match documentation.
7440
35678514
GJL
74412013-01-07 Georg-Johann Lay <avr@gjlay.de>
7442
7443 PR target/55897
7444 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
7445 .progmemx.data now.
7446
e5669488
GJL
74472013-01-07 Georg-Johann Lay <avr@gjlay.de>
7448
7449 PR target/55897
7450 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
7451 (avr_addrspace_t): Add .section_name field.
7452 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
7453 array size.
7454 (avr_addrspace): Same. Initialize .section_name. Remove last
7455 NULL entry. Put __memx into .progmemx.data.
7456 (progmem_section_prefix): Remove.
7457 (avr_asm_init_sections): No need to initialize progmem_section.
7458 (avr_asm_named_section): Use avr_addrspace[].section_name to get
7459 section name prefix.
7460 (avr_asm_select_section): Ditto. And use get_unnamed_section to
7461 retrieve the progmem section.
7462 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
7463 boundary to run over avr_addrspace[].
7464 (avr_register_target_pragmas): Ditto.
7465
656e6f37
JJ
74662013-01-06 Jakub Jelinek <jakub@redhat.com>
7467
7468 * varasm.c (output_constant_def_contents): For asan_protect_global
7469 protected strings, adjust DECL_ALIGN if needed, before testing for
7470 anchored symbols.
7471 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
7472 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
7473 normal decls.
7474 (output_object_block): For asan protected decls, emit asan padding
7475 after their contents.
7476 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
7477 (asan_finish_file): Test it here instead.
7478
6edc3e32
UB
74792013-01-07 Nick Clifton <nickc@redhat.com>
7480 Matthias Klose <doko@debian.org>
7481 Doug Kwan <dougkwan@google.com>
7482 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
7483
7484 PR driver/55470
7485 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
7486
7487 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
7488
7489 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
7490
7b0fe4f4 7491 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
7492
7493 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
7494
2a095093
GJL
74952013-01-07 Georg-Johann Lay <avr@gjlay.de>
7496
f3b503f4 7497 PR target/54461
2a095093
GJL
7498 * doc/install.texi (Cross-Compiler-Specific Options): Document
7499 --with-avrlibc.
7500
383f9b34
TB
75012013-01-07 Tejas Belagod <tejas.belagod@arm.com>
7502
7503 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
7504 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
7505 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
7506 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
7507 vqmovun_high_s64): Fix source operand number and update copyright.
7508
3626621a
RB
75092013-01-07 Richard Biener <rguenther@suse.de>
7510
7511 PR middle-end/55890
7512 * gimple.h (gimple_call_builtin_p): New overload.
7513 * gimple.c (validate_call): New function.
7514 (gimple_call_builtin_p): Likewise.
7515 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7516 Use gimple_call_builtin_p.
7517 (find_func_clobbers): Likewise.
7518 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
7519 (strlen_optimize_stmt): Likewise.
7520
8b2ea410
JG
75212013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7522
7523 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
7524 (vld1q_dup_*): Likewise.
7525 (vld1_*): Likewise.
7526 (vld1q_*): Likewise.
7527 (vld1_lane_*): Likewise.
7528 (vld1q_lane_*): Likewise.
7529
9713d329
RB
75302013-01-07 Richard Biener <rguenther@suse.de>
7531
7532 * lto-streamer.h (LTO_minor_version): Bump to 2.
7533
3520f7cc
JG
75342013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7535
7536 * config/aarch64/aarch64-protos.h
7537 (aarch64_const_double_zero_rtx_p): Rename to...
7538 (aarch64_float_const_zero_rtx_p): ...this.
7539 (aarch64_float_const_representable_p): New.
7540 (aarch64_output_simd_mov_immediate): Likewise.
7541 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7542 move immediate case.
7543 * config/aarch64/aarch64.c
7544 (aarch64_const_double_zero_rtx_p): Rename to...
7545 (aarch64_float_const_zero_rtx_p): ...this.
7546 (aarch64_print_operand): Allow printing of new constants.
7547 (aarch64_valid_floating_const): New.
7548 (aarch64_legitimate_constant_p): Check for valid floating-point
7549 constants.
7550 (aarch64_simd_valid_immediate): Likewise.
7551 (aarch64_vect_float_const_representable_p): New.
7552 (aarch64_float_const_representable_p): Likewise.
7553 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7554 (aarch64_output_simd_mov_immediate): New.
7555 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7556 (*movdf_aarch64): Likewise.
7557 * config/aarch64/constraints.md (Ufc): New.
7558 (Y): call aarch64_float_const_zero_rtx.
7559 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7560
e167c04d
RB
75612013-01-07 Richard Biener <rguenther@suse.de>
7562
7563 PR tree-optimization/55888
7564 PR tree-optimization/55862
7565 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7566 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7567 not if it is contained therein.
7568
0139aaab
GJL
75692013-01-07 Georg-Johann Lay <avr@gjlay.de>
7570
7571 * config/avr/t-avr: Typo.
7572
4a176b23
GJL
75732013-01-07 Georg-Johann Lay <avr@gjlay.de>
7574
7575 PR55243
7576 * config/avr/t-avr: Don't automatically rebuild
7577 $(srcdir)/config/avr/t-multilib
7578 $(srcdir)/config/avr/avr-tables.opt
7579 $(srcdir)/doc/avr-mmcu.texi
7580 (avr-mcus): New phony target to build them on request.
7581 (s-avr-mlib, s-avr-mmcu-texi): Remove.
7582 * avr/avr-mcus.def: Adjust comments.
7583
c7afdc98
UB
75842013-01-07 Uros Bizjak <ubizjak@gmail.com>
7585
7586 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7587
1ab05c31
RS
75882013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7589
7590 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7591
488e3acc
RS
75922013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7593
7594 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7595
a89599d2
DE
75962013-01-05 David Edelsohn <dje.gcc@gmail.com>
7597
7598 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7599 to generate profiling.
7600 * config/rs6000/aix64.h (LIB_SPEC): Same.
7601
70f09188
AP
76022013-01-04 Andrew Pinski <apinski@cavium.com>
7603
7604 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7605 New function.
7606 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7607
918d445f
UB
76082013-01-04 Uros Bizjak <ubizjak@gmail.com>
7609
7610 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7611 unconditionally.
7612 (ix86_expand_move): Ditto.
7613 (ix86_zero_extend_to_Pmode): Ditto.
7614 (ix86_expand_call): Ditto.
7615 (ix86_expand_special_args_builtin): Ditto.
7616 (ix86_expand_builtin): Ditto.
7617
361618ec
RB
76182013-01-04 Richard Biener <rguenther@suse.de>
7619
7620 PR tree-optimization/55862
7621 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7622 translating them through PHI nodes.
7623
87eab554
MJ
76242013-01-04 Martin Jambor <mjambor@suse.cz>
7625
7626 PR tree-optimization/55755
7627 * tree-sra.c (sra_modify_assign): Do not check that an access has no
7628 children when trying to avoid producing a VIEW_CONVERT_EXPR.
7629
33879b9f
MP
76302013-01-04 Marek Polacek <polacek@redhat.com>
7631
7632 PR middle-end/55859
7633 * opts.c (default_options_optimization): Clarify error message.
7634
3068819a
RB
76352013-01-04 Richard Biener <rguenther@suse.de>
7636
7637 PR middle-end/55863
7638 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7639 reassociation.
7640
0e4ae794
JDA
76412013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7642
7643 PR target/53789
7644 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
7645 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7646 references.
0e4ae794 7647
65c88cef
RH
76482013-01-03 Richard Henderson <rth@redhat.com>
7649
7650 * config/i386/i386.c (ix86_expand_move): Always assign to op1
7651 after eliminating TLS symbols.
7652
8ac16127
MG
76532013-01-03 Marc Glisse <marc.glisse@inria.fr>
7654
7655 PR bootstrap/50167
7656 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7657 * graphite-poly.c (debug_gmp_value): Likewise.
7658
bb664f09
UB
76592013-01-03 Uros Bizjak <ubizjak@gmail.com>
7660
7661 PR target/55712
7662 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7663 selected code model, define __code_mode_small__, __code_model_medium__,
7664 __code_model_large__, __code_model_32__ or __code_model_kernel__.
7665 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7666 xchg temporary register with %k. Declare temporary register as
7667 early clobbered.
7668 [__x86_64__]: For medium and large code models, preserve %rbx register.
7669
bcf1ef00
RB
76702013-01-03 Richard Biener <rguenther@suse.de>
7671
0506634a 7672 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
7673 (dump_subscript): Adjust.
7674 (finalize_ddr_dependent): Do not dump redundant info.
7675 (analyze_siv_subscript): Adjust.
7676 (subscript_dependence_tester): Likewise.
7677 (compute_affine_dependence): Likewise.
7678
59fd17e3
RB
76792013-01-03 Richard Biener <rguenther@suse.de>
7680
7681 Revert
7682 2013-01-03 Richard Biener <rguenther@suse.de>
7683
7684 PR tree-optimization/55857
7685 * tree-vect-stmts.c (vectorizable_load): Do not setup
7686 re-alignment for invariant loads.
7687
7688 2013-01-02 Richard Biener <rguenther@suse.de>
7689
7690 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 7691 invariant load do not generate a vector load from the scalar location.
59fd17e3 7692
595c2679
RB
76932013-01-03 Richard Biener <rguenther@suse.de>
7694
7695 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7696 for not vectorizing.
7697 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7698 not build INDIRECT_REFs, call get_name once only.
7699 (vect_create_data_ref_ptr): Likewise. Dump base object kind
7700 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7701
90bb7d7a
RB
77022013-01-03 Richard Biener <rguenther@suse.de>
7703
7704 PR tree-optimization/55857
7705 * tree-vect-stmts.c (vectorizable_load): Do not setup
7706 re-alignment for invariant loads.
7707
f09b77ca
RB
77082013-01-03 Richard Biener <rguenther@suse.de>
7709
7710 PR lto/55848
7711 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7712 prefer a built-in decl.
7713
3461a16e
JJ
77142013-01-03 Jakub Jelinek <jakub@redhat.com>
7715
df8e2b4f
JJ
7716 * gcc.c (process_command): Update copyright notice dates.
7717 * gcov.c (print_version): Likewise.
7718 * gcov-dump.c (print_version): Likewise.
7719
3461a16e
JJ
7720 PR rtl-optimization/55838
7721 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7722 iv0.step, iv1.step and step.
7723
8b5546d6
JJ
77242013-01-03 Jakub Jelinek <jakub@redhat.com>
7725 Marc Glisse <marc.glisse@inria.fr>
7726
7727 PR tree-optimization/55832
7728 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7729 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7730 integer_{one,zero}_node.
7731
8ab1d2e9
JJ
77322013-01-03 Jakub Jelinek <jakub@redhat.com>
7733
7734 PR debug/54402
7735 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7736 * var-tracking.c (reverse_op): Don't add reverse ops to
7737 VALUEs that have already
0506634a 7738 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 7739
5b9ad1d4
GP
77402013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7741
7742 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7743
e25a6711
TJ
77442013-01-02 Teresa Johnson <tejohnson@google.com>
7745
7746 * dumpfile.c (dump_loc): Print filename with location.
7747 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7748 new location_t parameter to emit complete unroll message with
7749 new dump framework.
7750 (canonicalize_loop_induction_variables): Compute loops location
7751 and pass to try_unroll_loop_completely.
7752 * loop-unroll.c (report_unroll_peel): New function.
7753 (peel_loops_completely): Use new dump format with location
7754 for main dumpfile message, and invoke report_unroll_peel on success.
7755 (decide_unrolling_and_peeling): Ditto.
7756 (decide_peel_once_rolling): Remove old dumpfile message subsumed
7757 by report_unroll_peel.
7758 (decide_peel_completely): Ditto.
7759 (decide_unroll_constant_iterations): Ditto.
7760 (decide_unroll_runtime_iterations): Ditto.
7761 (decide_peel_simple): Ditto.
7762 (decide_unroll_stupid): Ditto.
7763 * cfgloop.c (get_loop_location): New function.
7764 * cfgloop.h (get_loop_location): Declare.
7765
77878621
ST
77662013-01-02 Sriraman Tallam <tmsriram@google.com>
7767
7768 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7769 NULL.
7770
9e65d03e
JDA
77712013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7772
7773 PR middle-end/55198
7774 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7775 BLKmode objects when EXPAND_MEMORY is specified.
7776
6a7da30f
ST
77772013-01-02 Sriraman Tallam <tmsriram@google.com>
7778
7779 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7780 in loop predicate.
7781 (fold_builtin_cpu): Do not share cpu model decls across statements.
7782
e78167f2
JM
77832013-01-02 Jason Merrill <jason@redhat.com>
7784
7785 PR c++/55804
7786 * tree.c (build_array_type_1): Revert earlier change.
7787
8c075fb4
YZ
77882013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
7789
7790 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7791 "cortex-a57".
7792 * config/aarch64/aarch64-tune.md: Re-generate.
7793
0682ed3e
RB
77942013-01-02 Richard Biener <rguenther@suse.de>
7795
7796 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 7797 invariant load do not generate a vector load from the scalar location.
0682ed3e 7798
b8f6a302
RB
77992013-01-02 Richard Biener <rguenther@suse.de>
7800
7801 PR bootstrap/55784
7802 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7803 * configure: Regenerate.
7804
04b80dbb
RS
78052013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7806
7807 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7808 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7809 (expand_builtin_int_roundingfn_2): Keep the original target around
7810 for the fallback case.
7811
635b0b0c
RS
78122013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7813
7814 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7815 to be clear for sign changes.
7816
42d57399
JH
78172013-01-01 Jan Hubicka <jh@suse.cz>
7818
7819 * ipa-inline-analysis.c: Fix formatting.
7820
5bb6669d
JJ
78212013-01-01 Jakub Jelinek <jakub@redhat.com>
7822
7823 PR tree-optimization/55831
7824 * tree-vect-loop.c (get_initial_def_for_induction): Use
7825 gsi_after_labels instead of gsi_start_bb.
ad41bd84 7826\f
86a2db33 7827Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
7828
7829Copying and distribution of this file, with or without modification,
7830are permitted in any medium without royalty provided the copyright
7831notice and this notice are preserved.