]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
compatibility-chrono.cc (steady_clock::now()): If !_GLIBCXX_USE_GETTIMEOFDAY perform...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
36536d79
BI
12013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2
3 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4 array notation built-in reduction functions.
5 * doc/passes.texi (Passes): Added documentation about changes done
6 for Cilk Plus.
7 * doc/invoke.texi (C Dialect Options): Added documentation about
8 the -fcilkplus flag.
9 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
10 (BUILTINS_DEF): Depend on cilkplus.def.
11 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
12 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
13 * cilkplus.def: New file.
14
b49eefa5
JR
152013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
16
17 PR rtl-optimization/57439
18 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
19
9daf6dbb
ER
202013-05-28 Easwaran Raman <eraman@google.com>
21
22 PR tree-optimization/57337
23 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
24 (find_insert_point): Correctly identify the insertion point
25 when two statements with the same UID is compared.
26
fbd7e877
RB
272013-05-28 Richard Biener <rguenther@suse.de>
28
29 PR tree-optimization/56787
30 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
31 from the list of data references.
32 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
33 clobbers.
34 (vect_analyze_loop_operations): Likewise.
35 (vect_transform_loop): Remove clobbers.
36
bbba1117
MJ
372013-05-28 Martin Jambor <mjambor@suse.cz>
38
39 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
40 and REALPART_EXPRs have scalar type.
41
bd388c2a
RB
422013-05-28 Richard Biener <rguenther@suse.de>
43
44 PR tree-optimization/57411
45 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
46 virtual operands.
47 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
48 virtual operand propagation.
49
2f56a311
EB
502013-05-28 Eric Botcazou <ebotcazou@adacore.com>
51
52 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
53 destination register for bmasksi_vis.
54 (vector_init_bshuffle): Likewise.
55 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
56
5c3eacbb
EB
572013-05-28 Eric Botcazou <ebotcazou@adacore.com>
58
59 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
60 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
61 mode if the instruction isn't available in the original mode.
62 * config/sparc/sparc.opt (mfix-ut699): New option.
63 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
64 (divdf3): Turn into expander.
65 (divdf3_nofix): New insn.
66 (divdf3_fix): Likewise.
67 (divsf3): Disable if -mfix-ut699.
68 (sqrtdf2): Turn into expander.
69 (sqrtdf2_nofix): New insn.
70 (sqrtdf2_fix): Likewise.
71 (sqrtsf2): Disable if -mfix-ut699.
72
a1756c0a
RB
732013-05-27 Richard Biener <rguenther@suse.de>
74
75 PR middle-end/57412
76 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
77 block for the new loop.
78
5a892248
RB
792013-05-27 Richard Biener <rguenther@suse.de>
80
81 PR tree-optimization/57343
82 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
83 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
84 (number_of_iterations_cond): Do not build the folded tree.
85
d1de852b
RB
862013-05-27 Richard Biener <rguenther@suse.de>
87
88 Revert
89 PR middle-end/57381
90 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
91 OEP_CONSTANT_ADDRESS_OF retained.
92
93 PR tree-optimization/57417
94 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
95 for unchanged base.
96 (set_ssa_val_to): Compare addresses using
97 get_addr_base_and_unit_offset.
98
7894bc6b
JR
992013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
100
101 PR rtl-optimization/56833
102 * postreload.c (move2add_record_mode): New function.
103 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
104 (move2add_use_add2_insn): Use move2add_record_sym_value.
105 (move2add_use_add3_insn): Likewise.
106 (reload_cse_move2add): Use move2add_valid_value_p and
107 move2add_record_mode. Invalidate call-clobbered and REG_INC
108 affected regs by setting reg_mode to VOIDmode.
109 (move2add_note_store): Don't pretend the inside of a SUBREG is
110 the actual destination. Invalidate single/leading registers by
111 setting reg_mode to VOIDmode.
112 Use move2add_record_sym_value, move2add_valid_value_p and
113 move2add_record_mode.
114
b03be25f
RB
1152013-05-27 Richard Biener <rguenther@suse.de>
116
117 PR tree-optimization/57396
118 * tree-affine.c (double_int_constant_multiple_p): Properly
119 return false for val == 0 and div != 0.
120
44e88db2
RS
1212013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
122
123 * config/mips/mips.h: Use #elif in preprocessor conditions.
124
3b859704
RS
1252013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
126
127 PR target/53916
128 * config/mips/constraints.md (kl): New constraint.
129 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
130 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
131 constraint for operand 0. Split after CSE for MIPS16. Emit a move
132 from LO for MIPS16.
133 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
134
c979d5f5
RS
1352013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
136
137 PR target/55777
138 * config/mips/mips.c (mips_can_inline_p): New function.
139 (TARGET_CAN_INLINE_P): Define.
140
8e90de43
SB
1412013-05-25 Steven Bosscher <steven@gcc.gnu.org>
142
143 * sched-int.h (ds_t, dw_t): Make unsigned int.
144 Fix documentation that describes how all the ds_t bits are used.
145 Reserve the last bit for delayed-branch scheduling.
146 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
147 (BITS_PER_DEP_WEAK): Fix definition and documentation.
148 (gen_dep_weak_1): Remove prototype.
149 * sched-deps.c (get_dep_weak_1): Make static.
150 * target.def (speculate_insn, needs_block_p, gen_spec_check,
151 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
152 * doc/tm.texi: Regenerate.
153 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
154
cb5cb194
SB
1552013-05-24 Steven Bosscher <steven@gcc.gnu.org>
156
157 PR debug/56950
158 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
159
5bd93ff6
NS
1602013-05-24 Nathan Sidwell <nathan@codesourcery.com>
161 Sandra Loosemore <sandra@codesourcery.com>
162
163 * config.gcc (powerpc-*): Allow native for with-cpu.
164
2343af65
JL
1652013-05-24 Jeff Law <law@redhat.com>
166
167 PR tree-optimization/57124
168 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
169 conversion feeding a condition if the range has an overflow
170 if -fstrict-overflow. Add warnings for when we do make the
171 transformation.
172
3ad695b9
DC
1732013-05-24 Dehao Chen <dehao@google.com>
174
175 * gcc/tree-cfg.c (locus_discrim_map): Fix the typo.
176 (locus_discrim_hasher): Likewise.
177 (locus_discrim_hasher::hash): Likewise.
178 (locus_discrim_hasher::equal): Likewise.
179
82338059
MJ
1802013-05-24 Martin Jambor <mjambor@suse.cz>
181
182 PR tree-optimization/57294
183 * cgraph.h (ipa_record_stmt_references): Declare.
184 * cgraphbuild.c (ipa_record_stmt_references): New function.
185 (build_cgraph_edges): Use ipa_record_stmt_references.
186 (rebuild_cgraph_edges): Likewise.
187 (cgraph_rebuild_references): Likewise.
188 * ipa-prop.c (ipa_modify_call_arguments): Discard references
189 associated with the old statement and build references from the
190 newly built statements.
191 * ipa-ref.c (ipa_remove_stmt_references): New function.
192 * ipa-ref.h (ipa_remove_stmt_references): Declare.
193
1ccd4874
VM
1942013-05-24 Vladimir Makarov <vmakarov@redhat.com>
195
196 * lra-constraints.c (emit_spill_move): Use smaller mode for
197 mem-mem moves.
198 (check_and_process_move): Consider mem-reg moves for secondary
199 too.
200 (curr_insn_transform): Don't lose insns emitted before for
201 secondary memory moves.
202 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
203 reg set up in the current insn.
204
25e25c73
DC
2052013-05-24 Dehao Chen <dehao@google.com>
206
207 * gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c: New Testcase.
208 * gcc/tree-cfg.c (locus_descrim_hasher::hash): Change discrminator
209 hash function.
210 (locus_descrim_hasher::equal): Likewise.
211 (build_gimple_cfg): New discrminator assignmnet algorithm
212 (make_edges): Likewise.
213 (next_discriminator_for_locus): Likewise.
214 (same_line_p): Likewise.
215 (assign_discriminators): Likewise.
216 (make_cond_expr_edges): Likewise.
217 (make_gimple_switch_edges): Likewise.
218 (make_goto_expr_edges): Likewise.
219 (make_gimple_asm_edges): Likewise.
220
50d38551
IB
2212013-05-24 Ian Bolton <ian.bolton@arm.com>
222
223 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
224 X format specifier to only display bottom 16 bits.
225 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
226 immediate to match for operand 2, since it will be masked.
227
aea0101d
RB
2282013-05-24 Richard Biener <rguenther@suse.de>
229
230 PR tree-optimization/57287
231 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
232 all SSA names that occur in abnormal PHIs.
233
634e03d3
AI
2342013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
235
236 PR tree-ssa/57385
237 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
238 that index is not negative.
239
b17c024f
EB
2402013-05-24 Eric Botcazou <ebotcazou@adacore.com>
241
242 PR rtl-optimization/55177
243 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
244 (simplify_byte_swapping_operation): New.
245 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
246 (simplify_relational_operation_1): Deal with BSWAP.
247
46aeac1b
RH
2482013-05-23 Richard Henderson <rth@redhat.com>
249
250 PR target/56742
251 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
252 (ix86_reorg): Call it.
253
70cc1536
UB
2542013-05-23 Uros Bizjak <ubizjak@gmail.com>
255
256 PR target/57379
257 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
258 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
259 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
260
b3851501
CB
2612013-05-23 Christian Bruel <christian.bruel@st.com>
262
263 PR debug/57351
264 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
265
4e194912
CSS
2662013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
267 Marcus Shawcroft <marcus.shawcroft@arm.com>
268
269 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
270 * config/aarch64/constraints.md (Usa): Remove.
271 * doc/md.texi (AArch64 Usa): Remove.
272
83f8c414
CSS
2732013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
274 Marcus Shawcroft <marcus.shawcroft@arm.com>
275
276 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
277 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
278 * config/aarch64/predicates.md (aarch64_const_address): Remove.
279 (aarch64_mov_operand): Use aarch64_mov_operand_p.
280
b5574232
VP
2812013-05-23 Vidya Praveen <vidyapraveen@arm.com>
282
283 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
284 instruction (AdvSIMD).
285 * config/aarch64/aarch64-builtins.c
286 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
287 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
288
76c36cb1 2892013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
290
291 PR middle-end/57347
292 * tree.h (contains_bitfld_component_ref_p): Declare.
293 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
294 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
295 caller.
7d2fb524
MJ
296 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
297 not access a bit-field. Assert all final offsets are byte-aligned.
298
ce521ae6
RB
2992013-05-23 Richard Biener <rguenther@suse.de>
300
301 PR tree-optimization/57380
302 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
303 least one invariant or re-used load.
304 * passes.c (init_optimization_passes): Move pass_phiprop before
305 pass_forwprop.
306
75c7257f
JG
3072013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
308
309 * config/aarch64/aarch64-simd.md
310 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
311
af6d44b5
RB
3122013-05-23 Richard Biener <rguenther@suse.de>
313
314 PR middle-end/57381
315 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
316 OEP_CONSTANT_ADDRESS_OF retained.
317
bd3647bf
JJ
3182013-05-23 Jakub Jelinek <jakub@redhat.com>
319
320 PR middle-end/57344
70cc1536
UB
321 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
322 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 323
a55757ea
RB
3242013-05-23 Richard Biener <rguenther@suse.de>
325
326 PR rtl-optimization/57341
327 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
328 instead of true_dependence.
329
cfb00b41
DM
3302013-05-22 David Malcolm <dmalcolm@redhat.com>
331
dd1c676f
DM
332 * bb-reorder.c (branch_threshold): Make const.
333 (exec_threshold): Ditto.
cfb00b41 334
f62511da
MM
3352013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
336 Pat Haugen <pthaugen@us.ibm.com>
337 Peter Bergner <bergner@vnet.ibm.com>
338
339 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
340 documentation for the power8 crypto builtins.
341
342 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
343
344 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
345 macros for defining power8 builtin functions.
346 (BU_P8V_AV_2): Likewise.
347 (BU_P8V_AV_P): Likewise.
348 (BU_P8V_VSX_1): Likewise.
349 (BU_P8V_OVERLOAD_1): Likewise.
350 (BU_P8V_OVERLOAD_2): Likewise.
351 (BU_CRYPTO_1): Likewise.
352 (BU_CRYPTO_2): Likewise.
353 (BU_CRYPTO_3): Likewise.
354 (BU_CRYPTO_OVERLOAD_1): Likewise.
355 (BU_CRYPTO_OVERLOAD_2): Likewise.
356 (XSCVSPDP): Fix typo, point to the correct instruction.
357 (VCIPHER): Add power8 crypto builtins.
358 (VCIPHERLAST): Likewise.
359 (VNCIPHER): Likewise.
360 (VNCIPHERLAST): Likewise.
361 (VPMSUMB): Likewise.
362 (VPMSUMH): Likewise.
363 (VPMSUMW): Likewise.
364 (VPERMXOR_V2DI): Likewise.
365 (VPERMXOR_V4SI: Likewise.
366 (VPERMXOR_V8HI: Likewise.
367 (VPERMXOR_V16QI: Likewise.
368 (VSHASIGMAW): Likewise.
369 (VSHASIGMAD): Likewise.
370 (VPMSUM): Likewise.
371 (VPERMXOR): Likewise.
372 (VSHASIGMA): Likewise.
373
374 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
375 __CRYPTO__ if the crypto instructions are available.
376 (altivec_overloaded_builtins): Add support for overloaded power8
377 builtins.
378
379 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
380 support for power8 crypto builtins.
381 (builtin_function_type): Likewise.
382 (altivec_init_builtins): Add support for builtins that take vector
383 long long (V2DI) arguments.
384
385 * config/rs6000/crypto.md: New file, define power8 crypto
386 instructions.
387
3882013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
389 Pat Haugen <pthaugen@us.ibm.com>
390 Peter Bergner <bergner@vnet.ibm.com>
391
392 * doc/invoke.texi (Option Summary): Add power8 options.
393 (RS/6000 and PowerPC Options): Likewise.
394
395 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
396 constraints.md instead of rs6000.h. Reorder w* constraints. Add
397 wm, wn, wr documentation.
398
399 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
400 registers if direct move instructions are enabled.
401 (wn): New constraint for no registers.
402 (wq): New constraint for quad word even GPR registers.
403 (wr): New constraint if 64-bit instructions are enabled.
404 (wv): New constraint if power8 vector instructions are enabled.
405 (wQ): New constraint for quad word memory locations.
406
407 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
408 constraint for 0..15 for crypto instructions.
409 (gpc_reg_operand): If VSX allow registers in VSX registers as well
410 as GPR and floating point registers.
411 (int_reg_operand): New predicate to match only GPR registers.
412 (base_reg_operand): New predicate to match base registers.
413 (quad_int_reg_operand): New predicate to match even GPR registers
414 for quad memory operations.
415 (vsx_reg_or_cint_operand): New predicate to allow vector logical
416 operations in both GPR and VSX registers.
417 (quad_memory_operand): New predicate for quad memory operations.
418 (reg_or_indexed_operand): New predicate for direct move support.
419
420 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
421 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
422 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
423 (POWERPC_MASKS): Add power8 options.
424 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
425 various options.
426
427 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
428 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
429
430 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
431 (-mpower8-fusion): New power8 options.
432 (-mpower8-fusion-sign): Likewise.
433 (-mpower8-vector): Likewise.
434 (-mcrypto): Likewise.
435 (-mdirect-move): Likewise.
436 (-mquad-memory): Likewise.
437
438 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
439 power8.
440 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
441 registers.
70cc1536 442 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
443 (rs6000_debug_vector_unit): Add p8_vector.
444 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
445 definitions. Also print fusion state.
446 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
447 (rs6000_builtin_mask_calculate): Add power8 builtin support.
448 (rs6000_option_override_internal): Add support for power8.
449 (rs6000_common_init_builtins): Add debugging for skipped builtins
450 if -mdebug=builtin.
451 (rs6000_adjust_cost): Add power8 support.
452 (rs6000_issue_rate): Likewise.
453 (insn_must_be_first_in_group): Likewise.
454 (insn_must_be_last_in_group): Likewise.
455 (force_new_group): Likewise.
456 (rs6000_register_move_cost): Likewise.
457 (rs6000_opt_masks): Likewise.
458
459 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
460 power8 capable assembler, default to power7 options.
461 (TARGET_DIRECT_MOVE): Likewise.
462 (TARGET_CRYPTO): Likewise.
463 (TARGET_P8_VECTOR): Likewise.
464 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
465 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
466 (VECTOR_MEM_P8_VECTOR_P): Likewise.
467 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
468 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
469 (TARGET_XSCVDPSPN): Likewise.
470 (TARGET_XSCVSPDPN): Likewsie.
471 (TARGET_SYNC_HI_QI): Likewise.
472 (TARGET_SYNC_TI): Likewise.
473 (MASK_CRYPTO): Likewise.
474 (MASK_DIRECT_MOVE): Likewise.
475 (MASK_P8_FUSION): Likewise.
476 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
477 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
478 temporary used by some of the direct move instructions to get two FP
479 temporary registers does not force creation of a stack frame.
f62511da
MM
480 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
481 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
482 that any VSX registers are tieable, even if they are also an
483 Altivec vector mode.
484 (r6000_reg_class_enum): Add wm, wr, wv constraints.
485 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
486 (RS6000_BTM_CRYPTO): Likewise.
487 (RS6000_BTM_COMMON): Likewise.
488
489 * config/rs6000/rs6000.md (cpu attribute): Add power8.
490 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
491 (enum rs6000_vector): Add power8 vector support.
492
9daf6dbb 493>>>>>>> .r199383
73a1a707
RR
4942013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
495
496 PR target/19599
497 PR target/57340
498 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
499 (any_sibcall_could_use_r3): this and handle indirect calls.
500 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
501
d28073d4
BS
5022013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
503
504 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
505
bee0b10c
RB
5062013-05-22 Richard Biener <rguenther@suse.de>
507
508 PR middle-end/57349
509 * profile.c (branch_prob): Do not split blocks that are
510 abnormally receiving from ECF_RETURNS_TWICE functions.
511
98409b51
RS
5122013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
513
514 * recog.c (offsettable_address_addr_space_p): Fix calculation of
515 address mode. Move pointer mode initialization to the same place.
516
c0602ab8
MZ
5172013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
518
519 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
520 while it has any effect.
521
4f7a634e
ER
5222013-05-21 Easwaran Raman <eraman@google.com>
523
524 PR tree-optimization/57322
9daf6dbb
ER
525 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
526 UID of the statement added to the BB to be 1.
4f7a634e 527
a4ce1258
JJ
5282013-05-21 Jakub Jelinek <jakub@redhat.com>
529
530 PR tree-optimization/57331
70cc1536
UB
531 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
532 of conversion from pointer type to integral type with integer.
a4ce1258 533
1b14621a
MJ
5342013-05-21 Martin Jambor <mjambor@suse.cz>
535
536 PR lto/57289
537 * ipa-prop.c (ipa_read_node_info): Process param_used and
538 controlled_uses in the same order as when writing.
539
e60661f0
MG
5402013-05-21 Magnus Granberg <baldrick@free.fr>
541
542 PR plugins/56754
ee49aa34 543 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 544
4a61be9a
RB
5452013-05-21 Richard Biener <rguenther@suse.de>
546
547 PR tree-optimization/57318
548 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
549 estimate stmts with side-effects as likely eliminated.
550
c52da5f7
RB
5512013-05-21 Richard Biener <rguenther@suse.de>
552
553 PR tree-optimization/57330
554 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
555 preserve the call stmts fntype.
556
7ec67e2a
RB
5572013-05-21 Richard Biener <rguenther@suse.de>
558
559 PR tree-optimization/57303
560 * tree-ssa-sink.c (statement_sink_location): Improve killing
561 stmt detection and properly handle self-assignments.
562
b112d513
CB
5632013-05-21 Christian Bruel <christian.bruel@st.com>
564
565 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
566 spanning registers. LEAF_REG_REMAP is supported only for contiguous
567 registers. Set register size out of the PARALLEL loop.
568
14c2ec26
OE
5692013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
570
571 PR target/56547
572 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
573 (*fmasf4, *fmasf4_media): New insns.
574
da734fa1
RS
5752013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
576
577 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
578 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
579 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
580 (mips_idiv_insns): Update the comments to say that the returned
581 instruction counts are in units of BASE_INSN_LENGTH.
582 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
583 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
584 using 2 rather than 4 as the length of indirect MIPS16 and
585 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
586 length of a NOP. Don't divide MIPS16 lengths by 2.
587 (mips16_split_long_branches): Assume a branch is long if the
588 length is greater than 4 rather than 8.
589 * config/mips/mips.md (length): Give MIPS16 lengths directly,
590 rather than multiplying them by 2. Multiply instruction counts
591 by BASE_INSN_LENGTH rather than 4.
592 (*jump_mips16, tls_get_tp_mips16_<mode>)
593 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
594
13719e8b
RS
5952013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
596
597 * config/mips/mips.md (extended_mips16): Remove branch case.
598 (length): Remove duplicated extended_mips16 test.
599
c3850d14
RS
6002013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
601
602 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
603
8da2e059
RS
6042013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
605
606 * recog.h (Recog_data): Rename to...
607 (recog_data_d): ...this.
608 (recog_data): Update accordingly.
609 * recog.c (recog_data): Likewise.
610 * reload.c (save_recog_data): Likewise.
611 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
612 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
613
2df013f3
JB
6142013-05-17 Julian Brown <julian@codesourcery.com>
615
616 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
617 found in a REG_EQUAL note, invalidate it.
618
933f507d
ER
6192013-05-17 Easwaran Raman <eraman@google.com>
620
621 * tree-ssa-reassoc.c (find_insert_point): New function.
622 (insert_stmt_after): Likewise.
623 (get_def_stmt): Likewise.
624 (ensure_ops_are_available): Likewise.
625 (not_dominated_by): Likewise.
626 (rewrite_expr_tree): Do not move statements beyond what is
627 necessary. Remove call to swap_ops_for_binary_stmt...
628 (reassociate_bb): ... and move it here.
629 (build_and_add_sum): Assign UIDs for new statements.
630 (linearize_expr): Likewise.
631 (do_reassoc): Renumber gimple statement UIDs.
632
e01c7cca
JH
6332013-05-17 Jan Hubicka <jh@suse.cz>
634
635 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
636 weakrefs.
637 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
638 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
639 weakrefs.
e01c7cca
JH
640 (output_weakrefs): Update.
641
c3272a92
PCC
6422013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
643 Martin Jambor <mjambor@suse.cz>
644
645 PR middle-end/57276
646 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
647 value that corresponds to the given aggval is found in values vector.
648
11c2aa39
UB
6492013-05-17 Uros Bizjak <ubizjak@gmail.com>
650
651 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
652 sse, sse2, sse3, ssse3 and sse4a flags to options.
653
abecc8c6
DM
6542013-05-17 David Malcolm <dmalcolm@redhat.com>
655
656 * gengtype-state.c: (s_expr_writer): New class, to handle
657 prettifying of output layout of s-expressions.
658 (state_writer): New class, to write out gtype.state.
659 (state_written_type_count): Move this variable into member data of
660 state_writer.
661 (s_expr_writer::s_expr_writer): New code: constructor for new class
662 (state_writer::state_writer(): ditto
663 (s_expr_writer::write_new_line): New function
664 (s_expr_writer::write_any_indent): ditto
665 (s_expr_writer::begin_s_expr): ditto
666 (s_expr_writer::end_s_expr): ditto
667 (write_state_fileloc): convert to method of state_writer...
668 (state_writer:: write_state_fileloc): ...and use methods of
669 s_expr_writer to write indentation into the gtype.state output file
670 to visually represent the hierarchical structure of the list
671 structures
672 (write_state_fields): ditto, renaming to...
673 (state_writer::write_state_fields)
674 (write_state_a_string): ditto, renaming to...
675 (state_writer::write_state_a_string)
676 (write_state_string_option): ditto, renaming to...
677 (state_writer::write_state_string_option)
678 (write_state_type_option): ditto, renaming to...
679 (state_writer::write_state_type_option)
680 (write_state_nested_option): ditto, renaming to...
681 (state_writer::write_state_nested_option)
682 (write_state_option): ditto, renaming to...
683 (state_writer::write_state_option)
684 (write_state_options): ditto, renaming to...
685 (state_writer::write_state_options)
686 (write_state_lang_bitmap): ditto, renaming to...
687 (state_writer::write_state_lang_bitmap)
688 (write_state_version): ditto, renaming to...
689 (state_writer::write_state_version)
690 (write_state_scalar_type): ditto, renaming to...
691 (state_writer::write_state_scalar_type)
692 (write_state_string_type): ditto, renaming to...
693 (state_writer::write_state_string_type)
694 (write_state_undefined_type): ditto, renaming to...
695 (state_writer::write_state_undefined_type)
696 (write_state_struct_union_type): ditto, renaming to...
697 (state_writer::write_state_struct_union_type)
698 (write_state_struct_type): ditto, renaming to...
699 (state_writer::write_state_struct_type)
700 (write_state_user_struct_type): ditto, renaming to...
701 (state_writer::write_state_user_struct_type)
702 (write_state_lang_struct_type): ditto, renaming to...
703 (state_writer::write_state_lang_struct_type)
704 (write_state_param_struct_type): ditto, renaming to...
705 (state_writer::write_state_param_struct_type)
706 (write_state_pointer_type): ditto, renaming to...
707 (state_writer::write_state_pointer_type)
708 (write_state_array_type): ditto, renaming to...
709 (state_writer::write_state_array_type)
710 (write_state_gc_used): ditto, renaming to...
711 (state_writer::write_state_gc_used)
712 (write_state_common_type_content): ditto, renaming to...
713 (state_writer::write_state_common_type_content)
714 (write_state_type): ditto, renaming to...
715 (state_writer::write_state_type)
716 (write_state_pair_list): ditto, renaming to...
717 (state_writer::write_state_pair_list)
718 (write_state_pair): ditto, renaming to...
719 (state_writer::write_state_pair)
720 (write_state_typedefs): ditto, renaming to...
721 (state_writer::write_state_typedefs)
722 (write_state_structures): ditto, renaming to...
723 (state_writer::write_state_structures)
724 (write_state_param_structs): ditto, renaming to...
725 (state_writer::write_state_param_structs)
726 (write_state_variables): ditto, renaming to...
727 (state_writer::write_state_variables)
728 (write_state_srcdir): ditto, renaming to...
729 (state_writer::write_state_srcdir)
730 (write_state_files_list): ditto, renaming to...
731 (state_writer::write_state_files_list)
732 (write_state_languages): ditto, renaming to...
733 (state_writer::write_state_languages)
734 (write_state): create a state_writer instance and use it when
735 writing out the state file
736
d6545f29
MS
7372013-05-17 Mike Stump <mikestump@comcast.net>
738
816a3f73 739 PR rtl-optimization/57304
d6545f29
MS
740 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
741 accessing DF_REF_REAL_LOC.
742
38c821cf
JJ
7432013-05-17 Jakub Jelinek <jakub@redhat.com>
744
745 PR rtl-optimization/57281
746 PR rtl-optimization/57300
747 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
748 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
749 what the other splitter did if the registers are dead.
750
2a293391
RB
7512013-05-17 Richard Biener <rguenther@suse.de>
752
753 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
754 MEM_REF offsets.
755
17042d2b
JJ
7562013-05-17 Jakub Jelinek <jakub@redhat.com>
757
758 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
759 linking.
760
5b115c1f
MP
7612013-05-17 Marek Polacek <polacek@redhat.com>
762
11c2aa39
UB
763 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
764 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 765
52d84413
JJ
7662013-05-17 Jakub Jelinek <jakub@redhat.com>
767
68119618
JJ
768 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
769 vect_external_def oprnd1 with loop_vinfo, try to emit
770 optional cast, negation and and stmts on the loop preheader
771 edge instead of into the pattern def seq.
772
52d84413
JJ
773 PR tree-optimization/57051
774 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
775 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
776
17b962bd
NC
7772013-05-16 Nick Clifton <nickc@redhat.com>
778
779 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
780 (rl78_is_naked_func): New function.
781 (rl78_expand_prologue): Skip prologue generation for naked
782 functions.
783 (rl78_expand_epilogue): Skip epilogue generation for naked
784 functions.
785 * doc/extend.texi (naked): Add RL78 to the list of processors
786 that supports this attribute.
787
b1a0f84e
JL
7882013-05-16 Jeff Law <law@redhat.com>
789
790 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
791
af0e415b
UB
7922013-05-16 Uros Bizjak <ubizjak@gmail.com>
793
794 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
795 cache parameters using detect_caches_amd also for CYRIX,
796 NSC and TM2 signatures.
797
19db293a
UB
7982013-05-16 Uros Bizjak <ubizjak@gmail.com>
799 Dzianis Kahanovich <mahatma@eu.by>
800
801 PR target/45359
802 PR target/46396
803 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
804 VIA/Centaur processors and determine their cache parameters
805 using detect_caches_amd.
806
251a41b9
TJ
8072013-05-16 Teresa Johnson <tejohnson@google.com>
808
809 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
810 (rtl_verify_edges): New function.
811 (rtl_verify_bb_insns): Ditto.
812 (rtl_verify_bb_pointers): Ditto.
813 (rtl_verify_bb_insn_chain): Ditto.
814 (rtl_verify_fallthru): Ditto.
815 (rtl_verify_bb_layout): Ditto.
816 (rtl_verify_flow_info_1): Outline checks into new functions.
817 (rtl_verify_flow_info): Ditto.
818
f14540b6
SE
8192013-05-16 Steve Ellcey <sellcey@imgtec.com>
820
821 * cfghooks.c (copy_bbs): Add update_dominance argument.
822 * cfghooks.h (copy_bbs): Update prototype.
823 * tree-cfg.c (gimple_duplicate_sese_region):
824 Add update_dominance argument.
825 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
826 * tree-ssa-loop-ch.c (copy_loop_headers): Update
827 gimple_duplicate_sese_region call.
828 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
829 Update copy_bbs call.
830 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
831 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
832
7e9a3abb
JJ
8332013-05-16 Jakub Jelinek <jakub@redhat.com>
834
835 * tree-vectorizer.h (NUM_PATTERNS): Increment.
836 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
837 vect_recog_rotate_pattern.
838 (vect_recog_rotate_pattern): New function.
839
427b248d
JM
8402013-05-16 Jason Merrill <jason@redhat.com>
841
842 * Makefile.in (LLINKER): New variable.
843 (mostlyclean): Remove link mutex.
844 * configure.ac: Handle --enable-link-mutex.
845 * lock-and-run.sh: New script.
846
b871e3d2
RR
8472013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
848
849 PR target/19599
850 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
851 for NULL decl.
852
ce858126
RO
8532013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
854
855 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
856
798d3d04
GY
8572013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
858
859 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
860 * config/arm/arm.c (next_consecutive_mem): New function.
861 (gen_movmem_ldrd_strd): Likewise.
862 * config/arm/arm.md (movmemqi): Update condition and code.
863 (unaligned_loaddi, unaligned_storedi): New patterns.
864
0baddc45
RO
8652013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
866
867 * config.gcc: Obsolete *-*-solaris2.9*.
868 * doc/install.texi (Specific, *-*-solaris2*): Document it.
869
aa9d5bcf
RB
8702013-05-16 Richard Biener <rguenther@suse.de>
871
872 * passes.c (init_optimization_passes): Move pass_parallelize_loops
873 earlier, after GRAPHITE transforms and IV canonicalization.
874
5a0f4dd3
JJ
8752013-05-16 Jakub Jelinek <jakub@redhat.com>
876
877 * omp-low.c (extract_omp_for_data): For collapsed loops,
878 if at least one of the loops is known at compile time to
879 iterate zero times, set count to 0.
880 (expand_omp_regimplify_p): New function.
881 (expand_omp_for_generic): For collapsed loops, if at least
882 one of the loops isn't known to iterate at least once,
883 add runtime check with setting count to 0.
884 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
885 For unsigned types if it isn't known at compile time that
886 the loop will iterate at least once, add runtime check to bypass
887 the whole loop if initial condition isn't true.
888
e3753785
NS
8892013-05-16 Nathan Sidwell <nathan@codesourcery.com>
890
891 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
892
43bb4dd1
MG
8932013-05-16 Marc Glisse <marc.glisse@inria.fr>
894
895 PR middle-end/57286
896 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
897 transformations to avoid an infinite loop.
898
3571dde6
MP
8992013-05-16 Marek Polacek <polacek@redhat.com>
900
901 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
902
b8b3f0ca
LE
9032013-05-15 Leif Ekblad <leif@rdos.net>
904
905 * config/i386/i386.c (ix86_decompose_address): Use
906 DEFAULT_TLS_SEG_REG to access TLS segment register.
907 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
908 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
909 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
910
e299a383
RS
9112013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
912
913 PR target/57260
914 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
915 sibling calls to functions that would normally be lazily bound,
916 unless $gp is call-clobbered.
917
e7208ea3
UB
9182013-05-15 Uros Bizjak <ubizjak@gmail.com>
919
19db293a 920 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 921 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
922 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
923 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
924 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
925 of TARGET_3DNOW.
926 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
927
e7413f3d
AS
9282013-05-15 Andreas Schwab <schwab@suse.de>
929
930 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
931 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
932 third operand.
933
ad4db775
TJ
9342013-05-15 Teresa Johnson <tejohnson@google.com>
935
936 * loop-unroll.c (report_unroll_peel): Check decision before
937 emitting unroll/peel message.
938
af205f67
TJ
9392013-05-15 Teresa Johnson <tejohnson@google.com>
940
941 * function.h (has_bb_partition): New rtl_data flag.
942 (bb_reorder_complete): Ditto.
943 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
944 instead of flag_reorder_blocks_and_partition.
945 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
946 with some enhancements.
947 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
948 * bb-reorder.c (connect_traces): Check for has_bb_partition
949 instead of flag_reorder_blocks_and_partition.
950 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
951 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
952 verify_hot_cold_block_grouping.
953 (partition_hot_cold_basic_blocks): Set has_bb_partition.
954
9adcfa3c
RR
9552013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
956
957 PR target/19599
958 * config/arm/predicates.md (call_insn_operand): New predicate.
959 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
960 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
961 if insn is not a tail call.
962 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
963 registers.
964 * config/arm/arm.h (enum reg_class): New caller save register class.
965 (REG_CLASS_NAMES): Likewise.
966 (REG_CLASS_CONTENTS): Likewise.
967 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
968 without decls.
969
ccb3ad87
RB
9702013-05-15 Richard Biener <rguenther@suse.de>
971
972 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
973 of MSG_OPTIMIZED_LOCATIONS.
974 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
975 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
976 message.
977 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
978 of MSG_OPTIMIZED_LOCATIONS.
979 (execute_vect_slp): Likewise.
980 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
981 (vect_create_cond_for_alias_checks): Likewise.
982 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
983 (vect_recog_widen_mult_pattern): Likewise.
984 (vect_recog_widen_sum_pattern): Likewise.
985 (vect_recog_over_widening_pattern): Likewise.
986 (vect_recog_widen_shift_pattern): Likewise.
987 (vect_recog_vector_vector_shift_pattern): Likewise.
988 (vect_recog_divmod_pattern): Likewise.
989 (vect_recog_mixed_size_cond_pattern): Likewise.
990 (vect_recog_bool_pattern): Likewise.
991 (vect_pattern_recog_1): Likewise.
992
48b1474e
MJ
9932013-05-15 Martin Jambor <mjambor@suse.cz>
994
995 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
996 non-functions to builtin_unreachable.
997 * ipa-inline-transform.c (inline_call): Do not assert estimates were
998 correct when new direct edges were discovered.
999
9de04252
MJ
10002013-05-15 Martin Jambor <mjambor@suse.cz>
1001
1002 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1003 header, print symbol order instead of node uid, print more information
1004 about indirect edge targets.
1005 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1006 uids.
1007 (ipa_make_edge_direct_to_target): Likewise.
1008 (remove_described_reference): Likewise.
1009 (propagate_controlled_uses): Likewise.
1010 (ipa_print_node_params): Also print symbol order.
1011 (ipcp_transform_function): Print symbol order instead of node uids.
1012 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1013 (cgraph_get_create_real_symbol_node): Likewise.
1014 * ipa-cp.c (print_lattice): Likewise.
1015 (print_all_lattices): Likewise.
1016 (determine_versionability): Likewise.
1017 (initialize_node_lattices): Likewise.
1018 (estimate_local_effects): Likewise.
1019 (update_profiling_info): Likewise.
1020 (create_specialized_node): Likewise.
1021 (perhaps_add_new_callers): Likewise.
1022 (decide_about_value): Likewise.
1023 (decide_whether_version_node): Likewise.
1024 (identify_dead_nodes): Likewise.
1025 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1026 (dump_inline_summary): Likewise.
1027 (estimate_node_size_and_time): Likewise.
1028 (inline_analyze_function): Likewise.
1029 * ipa-inline.c (report_inline_failed_reason): Likewise.
1030 (want_early_inline_function_p): Likewise.
1031 (edge_badness): Likewise.
1032 (update_edge_key): Likewise.
1033 (inline_small_functions): Likewise. Add dumping of order to two other
1034 dumps.
1035 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1036 instead of node uids.
1037 (propagate_pure_const): Likewise.
1038 (propagate_pure_const): Likewise.
1039 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1040 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1041 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1042 of node uids.
1043 * tree-pretty-print.c (dump_function_header): Likewise.
1044 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1045 Print symbol order instead of node uids.
1046
1dd03b91
AK
10472013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1048
1049 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1050 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1051
fdf6a7b9
RB
10522013-05-15 Richard Biener <rguenther@suse.de>
1053
1054 PR tree-optimization/57275
1055 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1056 return value for fail to do runtime alias checks for gather loads.
1057
2d6e4603
JH
10582013-05-15 Jan Hubicka <jh@suse.cz>
1059
1060 PR lto/57038
1061 PR lto/47375
e7208ea3
UB
1062 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1063 weakrefs are not external.
1064 (lto_symtab_merge_decls): Fix thinko when dealing with
1065 non-lto_symtab decls.
2d6e4603
JH
1066 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1067 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1068 * varpool.c (dump_varpool_node): Dump more flags.
1069
83f44b39
GG
10702013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1071
1072 * config/i386/i386.c (processor_alias_table): Add instruction
1073 FSGSBASE for AMD bdver3 architecture.
1074
2e55d062
JJ
10752013-05-14 Jakub Jelinek <jakub@redhat.com>
1076
1077 * tree.c (warn_deprecated_use): Print file:line using locus color.
1078 * diagnostic.c (diagnostic_report_current_module): Print file:line
1079 and file:line:column using locus color.
1080
0bfdb81e
MS
10812013-05-14 Mike Stump <mikestump@comcast.net>
1082
1083 * gdbinit.in: Add __null.
1084
a508ef22
MS
10852013-05-14 Mike Stump <mikestump@comcast.net>
1086
1087 * recog.h: Rename struct recog_data to Recog_data.
1088 * recog.c: Likewise.
1089 * reload.c (can_reload_into): Likewise.
1090 * config/picochip/picochip.c: Likewise.
1091
e7180acb
MS
10922013-05-14 Mike Stump <mikestump@comcast.net>
1093
1094 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1095
61216c26
SB
10962013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1097
fd6beed4
SB
1098 * resource.h (struct resources): Remove unch_memory member.
1099 (CLEAR_RESOURCE): Don't clear unch_memory.
1100 * resource.c (mark_referenced_resources): Don't set it.
1101 (mark_set_resources): Likewise.
1102 (mark_target_live_regs): Don't clear it.
1103 (init_resource_info): Likewise.
1104 * reorg.c (resource_conflicts_p): Don't compare it.
1105 (redundant_insn): Don't set it.
1106
61216c26
SB
1107 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1108 Remove prototypes.
1109 * emit-rtl.c (next_label): Remove unused function.
1110 (skip_consecutive_labels, link_cc0_insns): Move to ...
1111 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1112 only place where these functions are used, and make them static.
1113
418d1b87
MG
11142013-05-14 Marc Glisse <marc.glisse@inria.fr>
1115
1116 * fold-const.c (fold_negate_expr): Handle vectors.
1117 (fold_truth_not_expr): Make it static.
1118 (fold_invert_truthvalue): New static function.
1119 (invert_truthvalue_loc): Handle vectors. Do not call
1120 fold_truth_not_expr directly.
1121 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1122 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1123 (fold_comparison): Handle vector constants.
1124 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1125 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1126 * tree.h (fold_truth_not_expr): Remove declaration.
1127
fc21784d
JG
11282013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1129
1130 * config/aarch64/aarch64-simd.md
1131 (aarch64_vcond_internal<mode>): Rename to...
1132 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1133 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1134 float modes. Clarify all iterator modes.
1135 (vcond<mode><mode>): Use new name for vcond expanders.
1136 (vcond<v_cmp_result><mode>): Likewise.
1137 (vcondu<mode><mode>: Likewise.
1138 * config/aarch64/iterators.md (VDQF_COND): New.
1139
d4c52634
MG
11402013-05-14 Marc Glisse <marc.glisse@inria.fr>
1141
1142 PR bootstrap/57266
1143 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1144 variable for the shift amount. Check that we shift by non-negative
1145 amounts.
1146
2b261262
CLT
11472013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1148
1149 PR target/42017
1150 * config/arm/arm.h (EPILOGUE_USES): Only return true
1151 for LR_REGNUM after epilogue_completed.
1152
6e022d7b
JR
11532013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1154
1155 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1156 is error_mark_node.
6e022d7b 1157
56cf7859
RO
11582013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1159
1160 PR target/57261
1161 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1162 and Solaris 11+/x86 with gld.
1163 * configure: Regenerate.
1164
75776c6d
JJ
11652013-05-14 Jakub Jelinek <jakub@redhat.com>
1166
1167 * expmed.c (expand_shift_1): Canonicalize rotates by
1168 constant bitsize / 2 to bitsize - 1.
1169 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
1170 case ROTATERT>: Likewise.
1171
1172 Revert:
1173 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1174
1175 * config/i386/i386.md (rotateinv): New code attr.
1176 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1177 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1178 roll $31, %eax, etc.
1179
df35498a
RB
11802013-05-14 Richard Biener <rguenther@suse.de>
1181
1182 PR middle-end/57235
1183 * tree-eh.c (sink_clobbers): Give up for successors with
1184 multiple predecessors and no virtual uses.
1185
cc6e7ece
EB
11862013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1187
1188 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1189 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1190
f778dd4d
JJ
11912013-05-14 Jakub Jelinek <jakub@redhat.com>
1192
1193 PR middle-end/57251
1194 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1195 the case when both op0 and op1 have VOIDmode.
1196
bad4df9b
KP
11972013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1198
1199 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1200 in multiply-accumulate mode.
1201
56f3e9ac
GW
12022013-05-13 Guozhi Wei <carrot@google.com>
1203
1204 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1205
a3d7ab92
KT
12062013-05-13 Kai Tietz <ktietz@redhat.com>
1207
1208 PR target/56975
1209 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1210 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1211 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1212 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1213 (ix86_expand_prologue): Likewise.
1214 (ix86_expand_split_stack_prologue): Likewise.
1215 (legitimate_pic_address_disp_p): Likewise.
1216 (legitimize_pic_address): Likewise.
1217 (legitimize_tls_address): Likewise.
1218 (legitimize_pe_coff_symbol): Likewise.
1219 (output_pic_addr_const): Likewise.
1220 (construct_plt_address): Likewise.
1221 (ix86_expand_call): Likewise.
1222 (x86_output_mi_thunk): Likewise.
1223 (x86_function_profiler): Likewise.
1224
c59b7e28
SN
12252013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1226
1227 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1228 similar switch cases.
1229 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1230 (aarch64_simd_mov_to_<mode>low): Delete.
1231 (aarch64_simd_mov_to_<mode>high): Delete.
1232 (move_lo_quad_<mode>): Add w<-r alternative.
1233 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1234 (aarch64_simd_mov_from_*): Update type attribute.
1235 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1236 statement.
1237
5f28524a
JH
12382013-05-13 Jan Hubicka <jh@suse.cz>
1239
1240 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1241 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1242 ix86_expand_epilogue, emit_i387_cw_initialization,
1243 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1244 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1245
ae6fa899
JJ
12462013-05-13 Jakub Jelinek <jakub@redhat.com>
1247
1248 PR tree-optimization/45216
1249 PR tree-optimization/57157
1250 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1251 the (-Y) & (B - 1) variant if OP is |.
1252 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1253 return shifted. Use (-op1) & (prec - 1) as other_amount
1254 instead of prec - op1.
1255
4502fe8d
MJ
12562013-05-13 Martin Jambor <mjambor@suse.cz>
1257
1258 PR middle-end/42371
1259 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1260 (ipa_constant_data): New type.
1261 (ipa_jump_func): Use ipa_constant_data to hold information about
1262 constant jump functions.
1263 (ipa_get_jf_constant): Adjust to jump function type changes.
1264 (ipa_get_jf_constant_rdesc): New function.
1265 (ipa_param_descriptor): New field controlled_uses.
1266 (ipa_get_controlled_uses): New function.
1267 (ipa_set_controlled_uses): Likewise.
1268 * ipa-ref.h (ipa_find_reference): Declare.
1269 * ipa-prop.c (ipa_cst_ref_desc): New type.
1270 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1271 changes.
1272 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1273 New parameter cs. Adjust all callers.
1274 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1275 (remove_described_reference): New function.
1276 (jfunc_rdesc_usable): Likewise.
1277 (try_make_edge_direct_simple_call): Decrement controlled use count,
1278 attempt to remove reference if it hits zero.
1279 (combine_controlled_uses_counters): New function.
1280 (propagate_controlled_uses): Likewise.
1281 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1282 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1283 (ipa_print_node_params): Print described use counter.
1284 (ipa_write_jump_function): Adjust to jump function type changes.
1285 (ipa_read_jump_function): New parameter CS, pass it to
1286 ipa_set_jf_constant. Adjust caller.
1287 (ipa_write_node_info): Stream controlled use count
1288 (ipa_read_node_info): Likewise.
1289 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1290 asserting.
1291 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1292 count. Remove cloning-added reference if it reaches zero.
1293 * ipa-ref.c (ipa_find_reference): New function.
1294
0864bfc2
GG
12952013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1296
e7208ea3 1297 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
1298 alignment values for AMD BD and BT architectures.
1299
640bfeb2
MG
13002013-05-13 Marc Glisse <marc.glisse@inria.fr>
1301
1302 * tree-vect-generic.c (uniform_vector_p): Move ...
1303 * tree.c (uniform_vector_p): ... here.
1304 * tree.h (uniform_vector_p): Declare it.
1305 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1306 into a scalar.
1307
3a60f32b
JJ
13082013-05-13 Jakub Jelinek <jakub@redhat.com>
1309
198fe1bf
JJ
1310 PR tree-optimization/57230
1311 * tree-ssa-strlen.c (handle_char_store): Record length for
1312 array store from STRING_CST.
1313
3a60f32b
JJ
1314 PR tree-optimization/57230
1315 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1316 check.
1317
566be57c
JR
13182013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1319
1320 * config/epiphany/epiphany.c (epiphany_init): Check size of
1321 NUM_MODES_FOR_MODE_SWITCHING.
1322 (epiphany_expand_prologue):
1323 Remove CONFIG_REGNUM initial value handling code.
1324 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1325 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 1326 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
1327 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1328 Don't return 1 for FP_MODE_NONE.
1329 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1330 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1331 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1332 * config/epiphany/epiphany.md (save_config): New pattern.
1333
0f2c2331
UB
13342013-05-12 Uros Bizjak <ubizjak@gmail.com>
1335
1336 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1337
5b3f93c7
UB
13382013-05-10 Uros Bizjak <ubizjak@gmail.com>
1339
1340 * config/i386/i386.md (memory): Handle sseishft1.
1341 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1342 (*vec_extractv2di_1): Ditto.
1343
1f873f0e
VM
13442013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1345
1346 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1347 saved registers.
1348
341427fa 13492013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
1350
1351 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1352 Add mthumb/march=armv7-a multilib.
1353 Add mthumb/march=armv7-r multilib.
1354 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1355
9e69bdde
RC
13562013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1357
1358 * config/v850/t-rtems: Add more multilibs.
1359
9ff09a22
RB
13602013-05-10 Richard Biener <rguenther@suse.de>
1361
1362 PR tree-optimization/57214
1363 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1364 not propagate from SSA names that occur in abnormal PHI nodes.
1365
a5e0cd1d
MG
13662013-05-10 Marc Glisse <marc.glisse@inria.fr>
1367
1368 * stor-layout.c (element_precision): New function.
1369 * machmode.h (element_precision): Declare it.
1370 * tree.c (build_minus_one_cst): New function.
1371 (element_precision): Likewise.
1372 * tree.h (build_minus_one_cst): Declare new function.
1373 (element_precision): Likewise.
1374 * fold-const.c (operand_equal_p): Use element_precision.
1375 (fold_binary_loc): Handle vector types.
1376 * convert.c (convert_to_integer): Use element_precision.
1377 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1378 separately.
1379
cb2558bc
RS
13802013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1381
1382 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1383 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1384 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1385 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1386 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1387 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1388 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1389 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1390 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1391 (Uuw8): New constraints.
1392 (Usb4): Move into alphabetical order.
1393 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1394 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1395 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1396 previously unnamed patterns.
1397 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1398 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1399 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1400 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1401 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1402 of specific lengths.
1403
cb3b8d33
JJ
14042013-05-10 Jakub Jelinek <jakub@redhat.com>
1405
6f93c008
JJ
1406 * config/i386/i386.md (rotateinv): New code attr.
1407 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1408 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1409 roll $31, %eax, etc.
1410
cb3b8d33
JJ
1411 PR tree-optimization/45216
1412 PR tree-optimization/57157
1413 * tree-ssa-forwprop.c (simplify_rotate): New function.
1414 (ssa_forward_propagate_and_combine): Call it.
1415
afb119be
RB
14162013-05-10 Richard Biener <rguenther@suse.de>
1417
1418 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1419 disable peeling when we version for aliasing.
1420 (vector_alignment_reachable_p): Honor explicit user alignment.
1421 (vect_supportable_dr_alignment): Likewise.
1422 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1423 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1424 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1425 then peeling to arrange for the cost-model check to come first.
1426
01ae4861
AM
14272013-05-10 Alan Modra <amodra@gmail.com>
1428
1429 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1430 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1431 * configure: Regenerate.
1432
ebc9a431
AM
14332013-05-10 Alan Modra <amodra@gmail.com>
1434
1435 PR target/55033
1436 * varasm.c (default_elf_select_section): Move !DECL_P check..
1437 (get_named_section): ..to here before calling get_section_name.
1438 Adjust assertion.
1439 (default_section_type_flags): Add DECL_P check.
1440 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1441 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1442
d4bca93c
JR
14432013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1444
1445 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1446 When using gen_stack_adjust_str with a register offset, add a
1447 REG_FRAME_RELATED_EXPR note.
1448
60ca9a65
UB
14492013-05-09 Uros Bizjak <ubizjak@gmail.com>
1450
1451 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1452 (*vec_extractv4si_zext_mem): Ditto.
1453 (*vec_extractv2di): Add 0->x and x->x alternatives.
1454 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1455 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1456
a3409c02
JM
14572013-05-09 Jason Merrill <jason@redhat.com>
1458
0138d6b2
JM
1459 N3639 C++1y VLA support
1460 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1461 DECL_VALUE_EXPR.
1462
a3409c02
JM
1463 * tree.c (build_constructor_va): New.
1464 * tree.h: Declare it.
1465
66e6b990
MJ
14662013-05-09 Martin Jambor <mjambor@suse.cz>
1467
1468 PR lto/57084
1469 * gimple-fold.c (canonicalize_constructor_val): Call
1470 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1471
64cfa6c0
JH
14722013-05-09 Jan Hubicka <jh@suse.cz>
1473 Richard Biener <rguenther@suse.de>
1474
1475 PR lto/54095
1476 * symtab.c (symtab_make_decl_local): Do not add private names.
1477
c3167b00
JH
14782013-05-09 Jan Hubicka <jh@suse.cz>
1479
1480 PR lto/54095
1481 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1482 (unlink_from_assembler_name_hash): Likewise.
1483 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1484 symtab_unregister_node, symtab_initialize_asm_name_hash,
1485 change_decl_assembler_name): Update.
1486
12dc6974
SN
14872013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1488
1489 * config/aarch64/aarch64.md: New movtf split.
1490 (*movtf_aarch64): Update.
1491 (aarch64_movdi_tilow): Handle TF modes and rename to
1492 aarch64_movdi_<mode>low.
1493 (aarch64_movdi_tihigh): Handle TF modes and rename to
1494 aarch64_movdi_<mode>high
1495 (aarch64_movtihigh_di): Handle TF modes and rename to
1496 aarch64_mov<mode>high_di
1497 (aarch64_movtilow_di): Handle TF modes and rename to
1498 aarch64_mov<mode>low_di
1499 (aarch64_movtilow_tilow): Remove spurious whitespace.
1500 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1501 splits.
1502 (aarch64_print_operand): Update.
1503
227eb343
AM
15042013-05-09 Alan Modra <amodra@gmail.com>
1505
1506 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1507 powerpc64le.
1508 * configure: Regenerate.
1509
0b013847
UB
15102013-05-08 Uros Bizjak <ubizjak@gmail.com>
1511
1512 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1513 splitter preparation statements.
1514 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1515 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1516 adjust_address_nv.
1517
1dc3d6e9
BS
15182013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1519
1520 * gimple-ssa-strength-reduction.c (count_candidates): Change
1521 return value to int.
1522 (analyze_candidates_and_replace): Change type of length to int.
1523
e61e7d28
UB
15242013-05-08 Uros Bizjak <ubizjak@gmail.com>
1525
1526 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1527 (*vec_extract<mode>): Use VI12_128 mode iterator.
1528 (*vec_extract<mode>_mem): Ditto.
1529 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1530 attribute.
1531
4fbfcf44
DN
15322013-05-08 Diego Novillo <dnovillo@google.com>
1533
1534 PR bootstrap/54659
1535
1536 Revert:
4fbfcf44
DN
1537 2012-08-17 Diego Novillo <dnovillo@google.com>
1538
e61e7d28
UB
1539 PR bootstrap/54281
1540 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1541 * config.in: Regenerate.
1542 * configure: Regenerate.
1543 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 1544
702d8703
JH
15452013-05-08 Jan Hubicka <jh@suse.cz>
1546
1547 PR lto/54095
1548 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1549 * cgraph.h (symtab_node_base): Add unique_name.
1550 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1551 input_overwrite_node, input_varpool_node): Stream unique_name.
1552 * cgraphclones.c (cgraph_create_virtual_clone,
1553 cgraph_function_versioning): Set unique_name.
1554 * ipa.c (function_and_variable_visibility): Set unique_name.
1555
8b28cf47
BS
15562013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1557
1558 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1559 (alloc_cand_and_find_basis): Restrict conditional candidate
1560 processing to CAND_MULTs.
1561
e86074fd
JH
15622013-05-08 Jan Hubicka <jh@suse.cz>
1563
1564 PR lto/54095
1565 lto-symtab.c (lto_symtab_symbol_p): New function.
1566 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1567 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1568 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1569 Skip static symbols.
1570
44398cbe
PC
15712013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1572
1573 PR tree-optimization/57200
1574 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1575 Only call inform if the preceding warning_at returns true.
1576
f6bc1c4a
HS
15772013-05-07 Han Shen <shenhan@google.com>
1578
1579 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1580 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1581 * common.opt (fstack-protector-strong): New option.
1582 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1583 * doc/invoke.texi (Optimization Options): Document
1584 "-fstack-protector-strong".
1585 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1586
4ffecb1f
SB
15872013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1588
1589 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1590
5a107a0f
VM
15912013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1592
1593 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1594 it is not lhs of the insn.
1595 (setup_reg_equiv): Remove insn having equiv memory which it is not
1596 lhs of the insn.
1597 * lra-constraints.c (process_address): Try to improve generation
1598 code for address base + disp.
1599 (lra_constraints): Make correct the code for checking insn setting
1600 up backward equivalence. Remove insn only if it is in the init
1601 insn list.
1602 * lra-eliminations.c (update_reg_eliminate): Change return value.
1603 (lra_eliminate): Use the result.
1604
3f5783ea
UB
16052013-05-07 Uros Bizjak <ubizjak@gmail.com>
1606
1607 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1608 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1609 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1610 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1611 register target operands.
1612 (*vec_extractv8hi_sse2): New pattern.
1613 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1614 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1615 (*vec_extract<mode>_mem): New insn and split pattern.
1616
8a5800b8
CL
16172013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1618
1619 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1620 (TARGET_ASAN_SHADOW_OFFSET): Define.
1621 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1622 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1623
7bf55a70
BS
16242013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1625
1626 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1627 (incr_vec_index): Return -1 if increment not found.
1628 (create_add_on_incoming_edge): Assert if increment not found.
1629 (record_increment): Limit number of increments recorded.
1630 (all_phi_incrs_profitable): Return false if an increment not found.
1631 (replace_profitable_candidates): Don't process increments that were
1632 not recorded.
1633 (analyze_candidates_and_replace): Limit size of incr_vec.
1634
3f8825c0
RB
16352013-05-07 Richard Biener <rguenther@suse.de>
1636
1637 * calls.c (special_function_p): setjmp-like functions are leaf.
1638 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1639 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1640
fd4842cd
SN
16412013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1642
1643 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1644 (aarch64_simd_mov<mode>): New expander.
1645 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1646 (aarch64_simd_mov_to_<mode>high): Likewise.
1647 (aarch64_simd_mov_from_<mode>low): Likewise.
1648 (aarch64_simd_mov_from_<mode>high): Likewise.
1649 (aarch64_dup_lane<mode>): Update.
1650 (aarch64_dup_lanedi): New instruction pattern.
1651 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1652 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1653
a7a7d10e
BS
16542013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1655
1656 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1657 (replace_mult_candidate): Remove unnecessary argument; remove
1658 unnecessary parameter from call to introduce_cast_before_cand.
1659 (replace_unconditional_candidate): Remove unnecessary parameter
1660 from call to replace_mult_candidate.
1661 (replace_conditional_candidate): Likewise.
1662 (insert_initializers): Use make_temp_ssa_name.
1663 (introduce_cast_before_cand): Remove unnecessary argument; use
1664 make_temp_ssa_name.
1665 (replace_one_candidate): Remove unnecessary argument; remove
1666 unnecessary parameter from calls to introduce_cast_before_cand.
1667 (replace_profitable_candidates): Remove unnecessary parameters
1668 from calls to replace_one_candidate.
1669
29105868
BS
16702013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1671
1672 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1673 phi def as possibly hiding a basis for a CAND_ADD whose operands
1674 have been commuted in the analysis.
1675 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1676
4095f9fa
N
16772013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1678
1679 * config/aarch64/aarch64.md
1680 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1681 shift value between 0-4.
1682
39e843e8
RB
16832013-05-07 Richard Biener <rguenther@suse.de>
1684
1685 * double-int.h (rshift): New overload.
1686 * double-int.c (rshift): New function.
1687 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1688 (create_reference_ops_from_ref): Remove.
1689 (vn_reference_insert): Use shared ops for constructing the
1690 reference and copy it.
1691
0a1a83cb
RB
16922013-05-07 Richard Biener <rguenther@suse.de>
1693
1694 PR middle-end/57190
1695 * tree-eh.c (sink_clobbers): Properly propagate
1696 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1697
43303d6f
JJ
16982013-05-07 Jakub Jelinek <jakub@redhat.com>
1699
ba7e83f8
JJ
1700 PR tree-optimization/57149
1701 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1702 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1703 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1704 uninit_undefined_value_p instead of ssa_undefined_value_p.
1705
43303d6f
JJ
1706 PR debug/57184
1707 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1708 for modifier == EXPAND_INITIALIZER.
1709
14523c25
AB
17102013-05-07 Anton Blanchard <anton@samba.org>
1711
1712 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1713 for powerpc64 little endian.
1714 * configure: Regenerate.
1715
cb7c8be9
GS
17162013-05-06 Graham Stott <grahams@btinternet.com>
1717
1718 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1719 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1720 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1721 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1722
17232013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
1724
1725 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1726 codes which allow non-lvalues.
1727
9a0ee7b0
MG
17282013-05-06 Marc Glisse <marc.glisse@inria.fr>
1729
1730 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1731 components are all 1s.
1732 (integer_minus_onep): New function.
1733 * tree.h (integer_minus_onep): Declare it.
1734 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1735 integer_minus_onep instead of integer_all_onesp.
1736
f2c17ea9
OE
17372013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1738
1739 PR target/52933
1740 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1741 variations of these patterns.
1742
f75e6a51
UB
17432013-05-06 Uros Bizjak <ubizjak@gmail.com>
1744
1745 * config/i386/i386.md (isa): Add x64_sse4 member.
1746 (enabled): Handle x64_sse4.
1747 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1748 instruction for 64bit SSE4_1 targets. Update insn attributes.
1749 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1750 instruction for SSE4_1 targets. Update insn attributes.
1751 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1752 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1753 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1754 const_1 selector.
1755 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1756 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1757 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1758
a986d468
OE
17592013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1760
1761 PR target/57108
1762 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1763
382522cb
MK
17642013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1765
1766 * final.c (do_assembler_dialects): Don't handle curly braces and
1767 vertical bar escaped by % as dialect delimiters.
1768 (output_asm_insn): Print curly braces and vertical bar if escaped
1769 by % and ASSEMBLER_DIALECT defined.
1770 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1771 * doc/tm.texi: Regenerated.
1772
fb0d5c60
SB
17732013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1774
fb0d5c60
SB
1775 * config/mips/mips.c: Include tree-pass.h.
1776 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1777 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1778 (pass_mips_machine_reorg2): New machine specific pass.
1779 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1780 (mips_option_override): Register the new pass.
1781 * rtl.h (cleanup_barriers): Remove prototype.
1782 (dbr_schedule): Likewise.
1783 * jump.c (cleanup_barriers): Make static.
1784 * reorg.c (dbr_schedule): Likewise.
1785
aa06a978
RB
17862013-05-06 Richard Biener <rguenther@suse.de>
1787
1788 PR tree-optimization/57185
1789 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1790 SSA names properly.
1791
0b953bec
UB
17922013-05-06 Uros Bizjak <ubizjak@gmail.com>
1793
1794 PR target/57106
1795 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1796 between "first_arg" and "insn", not "last" and "insn".
1797
28708525
WS
17982013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1799
1800 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1801 (find_candidates_in_block): Re-enable slsr_process_phi.
1802 (create_phi_basis): Fix double counting of candidate adjustment.
1803
0107dca2
RB
18042013-05-06 Richard Biener <rguenther@suse.de>
1805
1806 PR middle-end/57147
1807 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1808 the edge is also fallthru, preserve it and just clear the
1809 abnormal flag.
1810 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1811 also complex, preserve that and just clear the fallthru flag.
1812 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1813 update virtual operands.
1814
470d4d13
AM
18152013-05-06 Alan Modra <amodra@gmail.com>
1816
1817 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1818 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1819 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1820 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1821 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1822 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1823
8f1dbf8d
AM
18242013-05-06 Alan Modra <amodra@gmail.com>
1825
1826 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1827 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1828 (DEFAULT_ASM_ENDIAN): Define.
1829 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1830 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1831 Update -K PIC clause from sysv4.h.
1832 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1833 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1834
54890767
AM
18352013-05-06 Alan Modra <amodra@gmail.com>
1836
1837 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1838 twice for little-endian.
1839 (ashrdi3_no_power, ashrdi3): Support little-endian.
1840
2353515d
OE
18412013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1842
1843 PR target/55303
1844 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1845 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1846 related expanders.
1847 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1848 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1849 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1850 New predicates.
1851
33e67557
SB
18522013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1853 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1854
1855 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1856 * config/pa/pa.opt: Make mbig-switch a no-op.
1857 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1858 (CASE_VECTOR_MODE): Always return SImode.
1859 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1860 for the !TARGET_BIG_SWITCH case.
1861 * config/pa/pa-linux.h: Likewise.
1862 * config/pa/pa-openbsd.h: Likewise.
1863 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1864 * config/pa/pa.md (short_jump): Remove define_insn.
1865 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1866 (casesi0): Remove define_insn.
1867 (type): Remove btable_branch.
1868 (pa_combine_type): Likewise.
1869 (in_nullified_branch_delay): Likewise.
1870 (in_call_delay): Likewise.
1871 (define_delay): Likewise.
1872 (define_insn_reservation "Z3"): Likewise.
1873 (define_insn_reservation "Z4"): Likewise.
1874 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1875 (pa_adjust_insn_length): Remove adjustment for btable branches.
1876 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1877 and mno-big-switch
1878
3095685e
UB
18792013-05-05 Uros Bizjak <ubizjak@gmail.com>
1880
1881 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1882 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1883 Add m->r,x alternatives.
1884 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1885 splitters using SWI48x mode iterator.
1886 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1887 TARGET_64BIT. Add m->x alternative.
1888 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1889 Add o->x alternative. Enable for TARGET_SSE.
1890 (sse_storeq): Remove expander.
1891 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1892 with memory input operand.
1893 (*vec_extractv2di_1 splitter): New.
1894 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1895 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1896
4b36ae28
SB
18972013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1898
1899 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1900 (INT_LOWPART): Delete.
1901 (extract_MB): Adjust.
1902 (extract_ME): Adjust.
1903 (print_operand): Adjust.
1904
da226db2
SB
19052013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1906
1907 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1908 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1909 (reg_or_logical_cint_operand, easy_fp_constant,
1910 logical_const_operand): Delete "CONST_DOUBLE" case.
1911 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1912 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 1913 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
1914 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1915 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1916 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1917 test.
1918 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1919 CONST_DOUBLE DImode/VOIDmode case.
1920 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1921 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1922 CONST_DOUBLE VOIDmode case.
1923 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1924 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1925 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1926 Delete CONST_DOUBLE case.
1927 (splitters for mov FMOVE64 const_double): Delete
1928 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1929 "HOST_BITS_PER_WIDE_INT >= 64" test.
1930 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1931 case.
1932 (mov DI const_double): Delete.
1933
40de22d6
JJ
19342013-05-04 Jakub Jelinek <jakub@redhat.com>
1935
1936 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1937 on op shows all bits zero in mode of a lowpart subreg, return zero.
1938
5ec6aff2
MM
19392013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1940
1941 PR target/57150
1942 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1943 to save TFmode registers and DImode to save TImode registers for
1944 caller save operations.
1945 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1946 mark being partially clobbered since they only use the first
1947 double word.
1948
1949 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1950 and TDmode only use the upper 64-bits of each VSX register.
1951
2cefad90
BS
19522013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1953
1954 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1955 (find_candidates_in_block): Disable slsr_process_phi.
1956
d6d7eee1
GW
19572013-05-03 Guozhi Wei <carrot@google.com>
1958
1959 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
1960 constructor to ...
1961 (build_init_ctor): ... here.
d6d7eee1 1962
9b92d12b
BS
19632013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1964
1965 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1966 (slsr_cand_d): Redefine def_phi.
1967 (stride_status, phi_adjust_status, count_phis_status): New enums.
1968 (find_phi_def): New.
1969 (find_basis_for_base_expr): New.
1970 (find_basis_for_candidate): Handle hidden bases.
1971 (alloc_cand_and_find_basis): Handle phi candidates.
1972 (slsr_process_phi): New.
1973 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1974 (create_mul_imm_cand): Likewise.
1975 (create_add_ssa_cand): Exclude phi base candidates.
1976 (create_add_imm_cand): Likewise.
1977 (slsr_process_cast): Likewise.
1978 (slsr_process_copy): Likewise.
1979 (find_candidates_in_block): Handle phi candidates.
1980 (dump_candidate): Likewise.
1981 (unconditional_cands): Delete.
1982 (unconditional_cands_with_known_stride_p): Delete.
1983 (phi_dependent_cand_p): New.
1984 (cand_increment): Handle phi-dependent candidates.
1985 (replace_dependent): Delete.
1986 (replace_mult_candidate): New.
1987 (replace_unconditional_candidate): New.
1988 (incr_vec_index): Move to avoid forward reference.
1989 (create_add_on_incoming_edge): New.
1990 (create_phi_basis): New.
1991 (replace_dependents): Delete.
1992 (replace_conditional_candidate): New.
1993 (phi_add_costs): New.
1994 (replace_uncond_cands_and_profitable_phis): New.
1995 (record_increment): Handle phi adjustments.
1996 (record_phi_increments): New.
1997 (record_increments): Handle phi adjustments.
1998 (phi_incr_cost): New.
1999 (lowest_cost_path): Handle phis.
2000 (total_savings): Likewise.
2001 (analyze_increments): Likewise.
2002 (ncd_with_phi): New.
2003 (ncd_of_cand_and_phis): New.
2004 (nearest_common_dominator_for_cands): Handle phi increments.
2005 (all_phi_incrs_profitable): New.
2006 (replace_profitable_candidates): Handle phi-dependent candidates.
2007 (analyze_candidates_and_replace): Likewise.
2008
68f073d4
TJ
20092013-05-03 Teresa Johnson <tejohnson@google.com>
2010
2011 PR bootstrap/57154
2012 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2013 do not exceed REG_BR_PROB_BASE.
2014
a4ee7cb9
JL
20152013-05-03 Jeff Law <law@redhat.com>
2016
ade67f70 2017 PR tree-optimization/57144
a4ee7cb9
JL
2018 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2019 operand of the condition will bit into the new type when eliminating
2020 a cast feeding a condition.
2021
47954c4e
JJ
20222013-05-03 Jakub Jelinek <jakub@redhat.com>
2023
2024 PR rtl-optimization/57130
3095685e
UB
2025 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2026 of COMPARE as in_code to the recursive call if needed.
47954c4e 2027
3c21604f
UB
20282013-05-03 Uros Bizjak <ubizjak@gmail.com>
2029
2030 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2031 (enabled): Handle new members.
2032 * config/i386/sse.md (*vec_concatv2si): Merge from
2033 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2034 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2035
95c03b36
JR
20362013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2037
2038 PR tree-optimization/57027
2039 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2040 for fnms opportunity, check we got the prerequisite kind
2041 of tree / gimple before using accessor functions.
2042
07bfc9ec
RB
20432013-05-03 Richard Biener <rguenther@suse.de>
2044
2045 * double-int.h (lshift): New overload without precision
2046 and arith argument.
2047 (operator *=, operator +=, operator -=): Move ...
2048 * double-int.c (operator *=, operator +=, operator -=): ... here
2049 and implement more efficiently.
2050 (mul_double_with_sign): Remove.
2051 (lshift_double): Adjust to take unsinged shift argument, push
2052 dispatching code to callers.
2053 (mul_double_wide_with_sign): Add early out for callers that
2054 are not interested in high parts or overflow.
2055 (lshift): New function.
2056 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2057 dispatch code here.
2058 (lrotate, rrotate): Use logical shifts.
2059 * expr.c (get_inner_reference): Use lshift.
2060 * fixed-value.c (do_fixed_divide): Likewise.
2061 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2062 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2063 (indirect_refs_may_alias_p): Likewise.
2064 (stmt_kills_ref_p_1): Likewise.
2065
7769bb64
VP
20662013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2067
2068 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2069
1d0c8e5c
VP
20702013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2071
2072 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2073 scalar form of FABD instruction.
2074
f15feaf9
VM
20752013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2076
2077 * lra-constraints.c (process_alt_operands): Add checking alt
2078 number to choose the best alternative.
2079
d90e76d4
RB
20802013-05-02 Richard Biener <rguenther@suse.de>
2081
2082 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2083 bitmap and its handling.
2084 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2085
9f8e7a96
RB
20862013-05-02 Richard Biener <rguenther@suse.de>
2087
2088 PR middle-end/57140
2089 * tree-inline.c (copy_loops): Properly handle removed loops.
2090 (copy_cfg_body): Mark destination loops for fixup if source
2091 loops needed fixup.
2092
f3a81b39
GY
20932013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2094
2095 PR target/56732
2096 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2097 generating simple_return for naked functions.
2098
7b920a9a
MJ
20992013-05-02 Martin Jambor <mjambor@suse.cz>
2100
2101 PR middle-end/56988
2102 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2103 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2104 flags match.
2105 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2106 ipa_agg_replacement_value structures.
2107 (known_aggs_to_agg_replacement_list): Likewise.
2108 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2109 (read_agg_replacement_chain): Likewise.
2110 (ipcp_transform_function): Also check that by_ref flags match.
2111
2c41c19d
RB
21122013-05-02 Richard Biener <rguenther@suse.de>
2113
2114 * graphds.h (struct graph): Add obstack member.
2115 * graphds.c (new_graph): Initialize obstack and allocate
2116 vertices from it.
2117 (add_edge): Allocate edge from the obstack.
3c21604f 2118 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2119
8b47039c
TJ
21202013-05-02 Teresa Johnson <tejohnson@google.com>
2121
2122 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2123 divides.
2124 * cfg.c (update_bb_profile_for_threading): Ditto.
2125 * tree-inline.c (copy_bb): Ditto.
2126 (copy_edges_for_bb): Ditto.
2127 (initialize_cfun): Ditto.
2128 (copy_cfg_body): Ditto.
2129 (expand_call_inline): Ditto.
2130 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2131 (estimate_node_size_and_time): Ditto.
2132 (inline_merge_summary): Ditto.
2133 * cgraphclones.c (cgraph_clone_edge): Ditto.
2134 (cgraph_clone_node): Ditto.
2135 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2136 (compute_trg_info): Ditto.
2137
da65928c
IB
21382013-05-02 Ian Bolton <ian.bolton@arm.com>
2139
2140 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2141 S reg when fp attribute set.
2142 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2143
add3c965
IB
21442013-05-02 Ian Bolton <ian.bolton@arm.com>
2145
2146 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2147 New pattern.
2148 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2149 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2150 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2151
fdd43ac4
RB
21522013-05-02 Richard Biener <rguenther@suse.de>
2153
2154 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2155 (struct instantiate_cache_entry): New type.
2156 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2157 (struct instantiate_cache_type): New type.
2158 (set_instantiated_value, get_instantiated_value): Remove.
2159 (get_instantiated_value_entry): New function.
2160 (instantiate_scev_name): Use the new cache and adjust.
2161 (instantiate_scev_poly): Adjust.
2162 (instantiate_scev_binary): Likewise.
2163 (instantiate_array_ref): Likewise.
2164 (instantiate_scev_convert): Likewise.
2165 (instantiate_scev_not): Likewise.
2166 (instantiate_scev_3): Likewise.
2167 (instantiate_scev_2): Likewise.
2168 (instantiate_scev_r): Likewise.
2169 (instantiate_scev): Likewise.
2170 (resolve_mixers): Likewise.
2171
36ff9dfb
VM
21722013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2173
2174 PR target/57091
2175 * lra-constraints.c (best_small_class_operands_num): Remove.
2176 (process_alt_operands): Remove small_class_operands_num. Take
2177 small classes operands into losers and only if the operand is not
2178 matched. Modify debugging output.
2179 (curr_insn_transform): Remove best_small_class_operands_num.
2180 Print insn name.
2181
36054fab
JG
21822013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2183
2184 * config/aarch64/aarch64-builtins.c
2185 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2186 * config/aarch64/aarch64-simd-builtins.def
2187 (reduc_splus_): Add new modes.
2188 (reduc_uplus_): New.
2189 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2190 (reduc_uplus_v4sf): Likewise.
2191 (reduc_splus_v4sf): Likewise.
2192 (aarch64_addv<mode>): Likewise.
2193 (reduc_uplus_<mode>): Likewise.
2194 (reduc_splus_<mode>): Likewise.
2195 (aarch64_addvv2di): Likewise.
2196 (reduc_uplus_v2di): Likewise.
2197 (reduc_splus_v2di): Likewise.
2198 (aarch64_addvv2si): Likewise.
2199 (reduc_uplus_v2si): Likewise.
2200 (reduc_splus_v2si): Likewise.
2201 (reduc_<sur>plus_<mode>): New.
2202 (reduc_<sur>plus_v2di): Likewise.
2203 (reduc_<sur>plus_v2si): Likewise.
2204 (reduc_<sur>plus_v4sf): Likewise.
2205 (aarch64_addpv4sf): Likewise.
2206 * config/aarch64/arm_neon.h
2207 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2208 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2209 add UNSPEC_SADDV, UNSPEC_UADDV.
2210 (SUADDV): New.
2211 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2212
6dce23a8
JG
22132013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2214
2215 * config/aarch64/arm_neon.h
2216 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2217
1598945b
JG
22182013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2219
2220 * config/aarch64/aarch64-builtins
2221 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2222
998eaf97
JG
22232013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2224
2225 * config/aarch64/aarch64-simd-builtins.def
2226 (reduc_smax_): New.
2227 (reduc_smin_): Likewise.
2228 (reduc_umax_): Likewise.
2229 (reduc_umin_): Likewise.
2230 (reduc_smax_nan_): Likewise.
2231 (reduc_smin_nan_): Likewise.
2232 (fmax): Remove.
2233 (fmin): Likewise.
2234 (smax): Update for V2SF, V4SF and V2DF modes.
2235 (smin): Likewise.
2236 (smax_nan): New.
2237 (smin_nan): Likewise.
2238 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2239 (<su><maxmin><mode>3): ...This, refactor.
2240 (s<maxmin><mode>3): New.
2241 (<maxmin_uns><mode>3): Likewise.
2242 (reduc_<maxmin_uns>_<mode>): Refactor.
2243 (reduc_<maxmin_uns>_v4sf): Likewise.
2244 (reduc_<maxmin_uns>_v2si): Likewise.
2245 (aarch64_<fmaxmin><mode>: Remove.
2246 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2247 new builtin names.
2248 (vmin<q>_f<32,64>): Likewise.
2249 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2250 (FMAXMIN): New.
2251 (su): Add mappings for smax, smin, umax, umin.
2252 (maxmin): New.
2253 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2254 (FMAXMIN): Rename as...
2255 (FMAXMIN_UNS): ...This.
2256 (maxminv): Remove.
2257 (fmaxminv): Likewise.
2258 (fmaxmin): Likewise.
2259 (maxmin_uns): New.
2260 (maxmin_uns_op): Likewise.
2261
bd11644e
JG
22622013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2263
2264 * config/aarch64/arm_neon.h
2265 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2266 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2267 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2268
75dd5ace
JG
22692013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2270
2271 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2272 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2273
7c19979f
JG
22742013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2275
2276 * config/aarch64/aarch64-simd.md
2277 (vcond<mode>_internal): Handle special cases for constant masks.
2278 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2279 (vcondu<mode><mode>): Likewise.
2280 (vcond<v_cmp_result><mode>): New.
2281
bb60efd9
JG
22822013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2283
2284 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2285 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2286 * config/aarch64/aarch64-simd-builtins.def
2287 (cmeq): Update to BUILTIN_VALLDI.
2288 (cmgt): Likewise.
2289 (cmge): Likewise.
2290 (cmle): Likewise.
2291 (cmlt): Likewise.
2292 * config/aarch64/arm_neon.h
2293 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2294 to builtins or C as appropriate.
2295
889b9412
JG
22962013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2297
2298 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2299 (cmgeu): ...This.
2300 (cmhi): Rename to...
2301 (cmgtu): ...This.
2302 * config/aarch64/aarch64-simd.md
2303 (simd_mode): Add SF.
2304 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2305 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2306 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2307 (cstore<mode>_neg): ...This.
2308 * config/aarch64/iterators.md
2309 (VALLF): new.
2310 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2311 (COMPARISONS): New.
2312 (UCOMPARISONS): Likewise.
2313 (optab): Add missing comparisons.
2314 (n_optab): New.
2315 (cmp_1): Likewise.
2316 (cmp_2): Likewise.
2317 (CMP): Likewise.
2318 (cmp): Remove.
2319 (VCMP_S): Likewise.
2320 (VCMP_U): Likewise.
2321 (V_cmp_result): Add DF, SF modes.
2322 (v_cmp_result): Likewise.
2323 (v): Likewise.
2324 (vmtype): Likewise.
2325 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2326
0a7dbb76
GY
23272013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2328
2329 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2330 define_insn to define_insn_and_split.
2331 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2332 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2333 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2334 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2335 (thumb2_negscc): Likewise.
2336
fb614ca6
GY
23372013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2338
2339 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2340
9e64a0bf
GY
23412013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2342
2343 * config/arm/thumb2.md: Remove trailing whitespaces.
2344
d6b28156
RS
23452013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2346
2347 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2348 Use gen_int_mode rather than GEN_INT.
2349
f91674c3
L
23502013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2351
b0dec607 2352 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
2353 debug_gimple_stmt.
2354
3551257c
RB
23552013-04-30 Richard Biener <rguenther@suse.de>
2356
2357 PR middle-end/57122
3c21604f 2358 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 2359
4c1aff1c
RB
23602013-04-30 Richard Biener <rguenther@suse.de>
2361
2362 PR middle-end/57107
2363 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2364
54b8379a
AB
23652013-04-30 Andrey Belevantsev <abel@ispras.ru>
2366
2367 PR rtl-optimization/56957
2368 PR rtl-optimization/57105
54b8379a
AB
2369 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2370 variable. Use just INSN_UID for determining whether an insn
2371 should be only disconnected from the insn stream.
2372 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2373
abc27962
JJ
23742013-04-30 Jakub Jelinek <jakub@redhat.com>
2375
2376 PR tree-optimization/57104
2377 * tsan.c (instrument_expr): Don't instrument accesses to
2378 DECL_HARD_REGISTER VAR_DECLs.
2379
0fc822d0
RB
23802013-04-30 Richard Biener <rguenther@suse.de>
2381
2382 * function.h (loops_for_fn): New inline function.
2383 (set_loops_for_fn): Likewise.
2384 * cfgloop.h (place_new_loop): Add struct function parameter.
2385 (get_loop): Likewise.
2386 (get_loops): Likewise.
2387 (number_of_loops): Likewise.
2388 (fel_next): Adjust.
2389 (fel_init): Likewise.
2390 * cfg.c (get_loop_copy): Adjust.
2391 * cfgloop.c (flow_loops_dump): Likewise.
2392 (record_loop_exits): Likewise.
2393 (verify_loop_structure): Likewise.
2394 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2395 (estimate_reg_pressure_cost): Likewise.
2396 (mark_loop_exit_edges): Likewise.
2397 * cfgloopmanip.c (place_new_loop): Likewise.
2398 (add_loop): Likewise.
2399 (duplicate_loop): Likewise.
2400 * graph.c (draw_cfg_nodes): Likewise.
2401 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2402 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2403 (extract_affine_chrec): Likewise.
2404 (build_scop_iteration_domain): Likewise.
2405 * graphite.c (graphite_initialize): Likewise.
2406 * ira-build.c (create_loop_tree_nodes): Likewise.
2407 (more_one_region_p): Likewise.
2408 (rebuild_regno_allocno_maps): Likewise.
2409 (mark_loops_for_removal): Likewise.
2410 (mark_all_loops_for_removal): Likewise.
2411 (remove_unnecessary_regions): Likewise.
2412 (ira_build): Likewise.
2413 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2414 * loop-init.c (fix_loop_structure): Likewise.
2415 (gate_rtl_move_loop_invariants): Likewise.
2416 (gate_rtl_unswitch): Likewise.
2417 (gate_rtl_unroll_and_peel_loops): Likewise.
2418 (rtl_doloop): Likewise.
2419 * lto-streamer-in.c (input_cfg): Likewise.
2420 * lto-streamer-out.c (output_cfg): Likewise.
2421 * modulo-sched.c (sms_schedule): Likewise.
2422 * predict.c (tree_estimate_probability): Likewise.
2423 (tree_estimate_probability_driver): Likewise.
2424 (estimate_loops): Likewise.
2425 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2426 (move_sese_region_to_fn): Likewise.
2427 (debug_loop_num): Likewise.
2428 * tree-chrec.c (chrec_evaluate): Likewise.
2429 (hide_evolution_in_other_loops_than_loop): Likewise.
2430 (chrec_component_in_loop_num): Likewise.
2431 (reset_evolution_in_loop): Likewise.
2432 (evolution_function_is_invariant_rec_p): Likewise.
2433 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2434 * tree-inline.c (copy_loops): Likewise.
2435 (copy_cfg_body): Likewise.
2436 (tree_function_versioning): Likewise.
2437 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2438 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2439 Likewise.
2440 (add_to_evolution_1): Likewise.
2441 (scev_const_prop): Likewise.
2442 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2443 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2444 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2445 (tree_ssa_lim_initialize): Likewise.
2446 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2447 (verify_loop_closed_ssa): Likewise.
2448 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2449 (tree_ssa_loop_im): Likewise.
2450 (tree_ssa_loop_unswitch): Likewise.
2451 (tree_vectorize): Likewise.
2452 (check_data_deps): Likewise.
2453 (tree_ssa_loop_ivcanon): Likewise.
2454 (tree_ssa_loop_bounds): Likewise.
2455 (tree_complete_unroll): Likewise.
2456 (tree_complete_unroll_inner): Likewise.
2457 (tree_parallelize_loops): Likewise.
2458 (tree_ssa_loop_prefetch): Likewise.
2459 (tree_ssa_loop_ivopts): Likewise.
2460 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2461 * tree-vectorizer.c (vectorize_loops): Likewise.
2462
37953bd3
MF
24632013-04-29 Mike Frysinger <vapier@gentoo.org>
2464
2465 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2466 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2467 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2468 with EABI_LINK_SPEC.
2469
f9ed28db
UB
24702013-04-29 Uros Bizjak <ubizjak@gmail.com>
2471
2472 PR target/44578
2473 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2474 alternative.
2475
deca73f5
VM
24762013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2477
2478 PR target/57097
37953bd3 2479 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
2480 using memory for pseudos. Print cost dump for alternatives.
2481 Modify cost values for conflicts with early clobbers.
2482 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2483
fdca7d03
UB
24842013-04-29 Uros Bizjak <ubizjak@gmail.com>
2485
2486 PR target/57098
2487 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2488
0b064172
IB
24892013-04-29 Ian Bolton <ian.bolton@arm.com>
2490
2491 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2492 from/to S register.
2493 (movdi_aarch64): Support LDR/STR from/to D register.
2494
473cec55
IB
24952013-04-29 Ian Bolton <ian.bolton@arm.com>
2496
2497 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2498 or higher by default.
2499
a6f30e66
RB
25002013-04-29 Richard Biener <rguenther@suse.de>
2501
2502 PR middle-end/57075
2503 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2504 even if not adding abnormal edges for calls that can make
2505 abnormal gotos.
2506
0c2b2040
RB
25072013-04-29 Richard Biener <rguenther@suse.de>
2508
2509 PR middle-end/57103
2510 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2511 TREE_BLOCK.
2512 (move_stmt_r): Remove redundant checking.
2513
f41f80f9
TJ
25142013-04-29 Teresa Johnson <tejohnson@google.com>
2515
2516 PR bootstrap/57077
2517 * basic-block.h (apply_scale): New function.
2518 (apply_probability): Use apply_scale.
2519 * gimple-streamer-in.c (input_bb): Ditto.
2520 * lto-streamer-in.c (input_cfg): Ditto.
2521 * lto-cgraph.c (merge_profile_summaries): Ditto.
2522 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 2523 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
2524 (copy_edges_for_bb): Ditto.
2525 (copy_cfg_body): Ditto.
2526
315bbd2e
TV
25272013-04-29 Tom de Vries <tom@codesourcery.com>
2528
2529 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2530 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2531 (tail_merge_optimize): Handle current_loops == NULL.
2532
ebbd90d8
JL
25332013-04-26 Jeff Law <law@redhat.com>
2534
2535 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2536 (simplify_cond_using_ranges): Generalize code to simplify
2537 COND_EXPRs where one argument is a constant and the other
2538 is an SSA_NAME created by an integral type conversion.
2539
8b9b57eb
KT
25402013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2541
2542 * config/arm/arm.md (store_minmaxsi): Use only when
2543 optimize_insn_for_size_p.
2544
9498e5dc
CB
25452013-04-29 Christian Bruel <christian.bruel@st.com>
2546
2547 PR target/57108
2548 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2549
6093bc06
RB
25502013-04-29 Richard Biener <rguenther@suse.de>
2551
2552 PR middle-end/57089
fdca7d03
UB
2553 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2554 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
2555 (expand_omp_for_generic): Properly add loops.
2556 (expand_omp_for_static_nochunk): Likewise.
2557 (expand_omp_for_static_chunk): Likewise.
2558 (expand_omp_for): For the degenerate case fixup loops.
2559 (expand_omp_sections): Fix default bb placement in loops.
2560 (expand_omp_atomic_pipeline): Properly add loops.
2561
84aacbfd
KT
25622013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2563
2564 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2565
8dee4479
TV
25662013-04-29 Tom de Vries <tom@codesourcery.com>
2567
2568 * tree-ssa-tail-merge.c: Update header comment.
2569
47934dc4
JG
25702013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2571
2572 * config/aarch64/arm_neon.h
2573 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2574 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2575 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2576 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2577 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2578 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2579 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2580 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2581
384be29f
JG
25822013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2583
2584 * config/aarch64/aarch64-simd.md
2585 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2586 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2587 fix_trunc, fixuns_trunc.
2588 (ftrunc<VDQF:mode>2): New.
2589 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2590 (fix_trunc_optab): New.
2591
0386b123
JG
25922013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2593
2594 * config/aarch64/aarch64-builtins.c
2595 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2596 iceilf, lround, iroundf.
2597
00fcb892
UB
25982013-04-29 Uros Bizjak <ubizjak@gmail.com>
2599
2600 PR target/54349
2601 * config/i386/i386.h (enum ix86_tune_indices)
2602 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2603 New, split from X86_TUNE_INTER_UNIT_MOVES.
2604 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2605 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2606 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2607 (TARGET_INTER_UNIT_MOVES): Remove.
2608 * config/i386/i386.c (initial_ix86_tune_features): Update.
2609 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2610 (ix86_expand_convert_uns_didf_sse): Use
2611 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2612 (ix86_expand_vector_init_one_nonzero): Ditto.
2613 (ix86_expand_vector_init_interleave): Ditto.
2614 (inline_secondary_memory_needed): Return true for moves from SSE class
2615 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2616 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2617 * config/i386/constraints.md (Yi, Ym): Depend on
2618 TARGET_INTER_UNIT_MOVES_TO_VEC.
2619 (Yj, Yn): New constraints.
2620 * config/i386/i386.md (*movdi_internal): Change constraints of
2621 operand 1 from Yi to Yj and from Ym to Yn.
2622 (*movsi_internal): Ditto.
2623 (*movdf_internal): Ditto.
2624 (*movsf_internal): Ditto.
2625 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2626 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2627 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2628 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2629 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2630 * config/i386/sse.md (movdi_to_sse): Ditto.
2631 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2632 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2633 TARGET_INTER_UNIT_MOVES.
2634 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2635 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2636 instead of TARGET_INTER_UNIT_MOVES.
2637 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2638 operand 1 from Yi to Yj and from Ym to Yn.
2639
4c871069
JG
26402013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2641
2642 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2643 (float_truncate_hi_): Likewise.
2644 (float_extend_lo_): Likewise.
2645 (float_truncate_lo_): Likewise.
2646 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2647 (aarch64_float_extend_lo_v2df): Likewise.
2648 (vec_unpacks_hi_v4sf): Likewise.
2649 (aarch64_float_truncate_lo_v2sf): Likewise.
2650 (aarch64_float_truncate_hi_v4sf): Likewise.
2651 (vec_pack_trunc_v2df): Likewise.
2652 (vec_pack_trunc_df): Likewise.
2653
1709ff9b
JG
26542013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2655
2656 * config/aarch64/aarch64-builtins.c
2657 (aarch64_fold_builtin): Fold float conversions.
2658 * config/aarch64/aarch64-simd-builtins.def
2659 (floatv2si, floatv4si, floatv2di): New.
2660 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2661 * config/aarch64/aarch64-simd.md
2662 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2663 * config/aarch64/iterators.md (FLOATUORS): New.
2664 (optab): Add float, floatuns.
2665 (su_optab): Likewise.
2666
ce966824
JG
26672013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2668
2669 * config/aarch64/aarch64-builtins.c
2670 (aarch64_builtin_vectorized_function): Use new names for
2671 fcvt builtins.
2672 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2673 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2674 (fcvtzu): Split as...
2675 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2676 (fcvtas): Split as...
2677 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2678 (fcvtau): Split as...
2679 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2680 (fcvtps): Split as...
2681 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2682 (fcvtpu): Split as...
2683 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2684 (fcvtms): Split as...
2685 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2686 (fcvtmu): Split as...
2687 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2688 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2689 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2690 (lfrintnusf, lfrintnudf): Likewise.
2691 * config/aarch64/aarch64-simd.md
2692 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2693 define_insn.
2694 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2695 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2696 (fcvt_pattern): Likewise.
2697
b9de24fe
JG
26982013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2699
2700 * config/aarch64/aarch64-simd.md
2701 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2702 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2703
77a205be
JG
27042013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2705
2706 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2707 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2708 (vrnd<a,m,n,p>_f32): Implement using builtins.
2709 (vrnd<i,x><q>_f<32, 64>): New.
2710
0659ce6f
JG
27112013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2712
2713 * config/aarch64/aarch64-builtins.c
2714 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2715 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2716 (frintz): Rename to...
2717 (btrunc): ...this.
2718 (frintp): Rename to...
2719 (ceil): ...this.
2720 (frintm): Rename to...
2721 (floor): ...this.
2722 (frinti): Rename to...
2723 (nearbyint): ...this.
2724 (frintx): Rename to...
2725 (rint): ...this.
2726 (frinta): Rename to...
2727 (round): ...this.
2728 * config/aarch64/aarch64-simd.md
2729 (aarch64_frint<frint_suffix><mode>): Delete.
2730 (<frint_pattern><mode>2): Convert to insn.
2731 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2732 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2733 (frint_pattern): Likewise.
2734 (frint_suffix): Likewise.
2735
ea78906a
RB
27362013-04-29 Richard Biener <rguenther@suse.de>
2737
2738 PR tree-optimization/57081
2739 * loop-init.c: Include tree-flow.h.
2740 (loop_optimizer_finalize): Free number of iteration estimates.
2741 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2742
baee1763
JJ
27432013-04-29 Jakub Jelinek <jakub@redhat.com>
2744
94dc5332
JJ
2745 PR tree-optimization/57083
2746 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2747 non-singleton shift count range, zero extend low_bound for uns case.
2748
baee1763
JJ
2749 * config/i386/predicates.md (general_vector_operand): New predicate.
2750 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2751 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2752 if they aren't nonimmediate operands. If their original values
2753 satisfy const_vector_equal_evenodd_p, don't shift them.
2754 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2755 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2756 if not nonimmediate_operand.
2757 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2758 instead of register_operand.
2759 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2760
a9073727 27612013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
2762
2763 * stor-layout.c (finalize_size_functions): Allocate a structure and
2764 reset cfun before dumping the functions.
2765
ba8011e6
JJ
27662013-04-27 Jakub Jelinek <jakub@redhat.com>
2767
d6fde69e
JJ
2768 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2769
ba8011e6
JJ
2770 PR target/56866
2771 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2772 use xop_pmacsdqh if uns_p.
2773 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2774 the immediate rotate count.
2775
2c62cbaa
VM
27762013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2777
2778 * rtl.h (struct rtx_def): Add comment for field jump.
2779 (LRA_SUBREG_P): New macro.
2780 * recog.c (register_operand): Check LRA_SUBREG_P.
2781 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2782 stack frame.
2783 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2784 (lra_final_code_change): Skip subreg change for operators.
2785 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2786 if there are no operand changes.
2787 * lra-constraints.c (curr_insn_set): New.
2788 (match_reload): Set LRA_SUBREG_P.
2789 (emit_spill_move): Ditto.
2790 (check_and_process_move): Use curr_insn_set. Process only single
2791 set insns. Don't initialize sec_mem_p and change_p.
2792 (simplify_operand_subreg): Use LRA_SUBREG_P.
2793 (reg_in_class_p): New function.
2794 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2795 of #ifdef. Add code to remove cycling.
2796 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2797 non-null disp. Reload inner instead of disp when base and index
2798 are null. Try to put lo_sum into register.
2799 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2800 (check_and_process_move): Move code for move cost check to
2801 simple_move_p. Remove equiv_substitution.
2802 (simple_move_p): New function.
2803 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2804 curr_insn_set. Call check_and_process_move only for single set
2805 insns. Use the new function. Move call of check_and_process_move
2806 after operand equiv substitution and address process.
2807
e7d764f3
JJ
28082013-04-26 Jakub Jelinek <jakub@redhat.com>
2809
2810 PR go/57045
2811 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2812 with nonlocal goto receivers or returns twice calls, ignore
2813 unininitialized values from abnormal edges to nl goto receiver
2814 or returns twice call.
2815
41e10689
JJ
28162013-04-26 Jakub Jelinek <jakub@redhat.com>
2817
2818 PR tree-optimization/57051
2819 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2820 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2821 bitsize.
2822
d7ed20db
RB
28232013-04-26 Richard Biener <rguenther@suse.de>
2824
2825 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2826 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2827 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2828 (fixup_loop_arrays_after_move): New function.
2829 (move_sese_region_to_fn): Properly outline the loop tree parts
2830 of the SESE region.
2831
df93505e
UB
28322013-04-26 Uros Bizjak <ubizjak@gmail.com>
2833
2834 * config/i386/i386.md (type, unit): Fix long lines.
2835
dd366ec3
RB
28362013-04-26 Richard Biener <rguenther@suse.de>
2837
2838 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2839 (lto-streamer-out.o): Likewise.
2840 * cfgloop.c (init_loops_structure): Export, add struct function
2841 argument and adjust.
2842 (flow_loops_find): Adjust.
2843 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2844 (init_loops_structure): Declare.
2845 * lto-streamer-in.c: Include cfgloop.h.
2846 (input_cfg): Input the loop tree.
2847 * lto-streamer-out.c: Include cfgloop.h.
2848 (output_cfg): Output the loop tree.
2849 (output_struct_function_base): Do not drop PROP_loops.
2850
a9e0d843
RB
28512013-03-26 Richard Biener <rguenther@suse.de>
2852
2853 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2854 (pass_build_cfg): Provide PROP_loops.
2855 (move_sese_region_to_fn): Remove loops that are outlined into fn
2856 for now.
2857 * tree-inline.c: Include cfgloop.h.
2858 (initialize_cfun): Do not drop PROP_loops.
2859 (copy_loops): New function.
2860 (copy_cfg_body): Copy loop structure.
2861 (tree_function_versioning): Initialize destination loop tree.
2862 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2863 (pass_parallelize_loops): Do IL verification.
2864 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2865 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2866 the CFG make sure we fixup loops as well.
2867 * tree-ssa-tail-merge.c: Include cfgloop.h.
2868 (replace_block_by): When merging loop latches mark loops for fixup.
2869 * lto-streamer-out.c (output_struct_function_base): Drop
2870 PROP_loops for now.
2871 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2872 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2873 * ipa-split.c: Include cfgloop.h.
2874 (split_function): Add the new return block to the loop tree root.
2875 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2876 whether we have removed the forwarder block.
2877 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2878 * cfgloop.h (place_new_loop): Declare.
2879 * cfgloopmanip.c (place_new_loop): Export.
2880 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2881 (tree-switch-conversion.o): Likewise.
2882 (tree-complex.o): Likewise.
2883 (tree-inline.o): Likewise.
2884 (tree-ssa-tailmerge.o): Likewise.
2885 (ipa-split.o): Likewise.
2886 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2887 (tree-ssa-copy.o): Likewise.
2888 * tree-switch-conversion.c: Include cfgloop.h
2889 (process_switch): If we emit a bit-test cascade, schedule loops
2890 for fixup.
2891 * tree-complex.c: Include cfgloop.h.
2892 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2893 * asan.c: Include cfgloop.h.
2894 (create_cond_insert_point): Properly add new basic-blocks to
2895 loops, schedule loop fixup.
2896 * cfgloop.c (verify_loop_structure): Check that looks are not
2897 marked for fixup.
2898 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2899 to loops.
2900 (expand_omp_for_generic): Likewise.
2901 (expand_omp_sections): Likewise.
2902 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2903 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2904 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2905 is initialized, not when loops are present.
2906 * tree-parloops.c (parallelize_loops): Remove checking here.
2907 * passes.c (init_optimization_passes): Schedule a copy-propagation
2908 pass before complete unrolling of inner loops.
2909
e78e8a0b
JJ
29102013-04-26 Jakub Jelinek <jakub@redhat.com>
2911
a2e836b2
JJ
2912 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2913 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2914 (colorize_init): Add argument to _WIN32 version.
2915 * toplev.c: Include diagnostic-color.h.
2916 (process_options): Default to -fdiagnostics-color=auto if
2917 GCC_COLORS env var is in the environment.
2918 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
2919 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2920 env var is in the environment, the default is auto rather than never.
a2e836b2 2921
e78e8a0b
JJ
2922 * diagnostic.h (file_name_as_prefix): Add context argument.
2923 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2924 the string as locus.
2925 * langhooks.c (lhd_print_error_function): Adjust caller.
2926
013e5ef9
LC
29272013-04-25 Lawrence Crowl <crowl@google.com>
2928
2929 * var-tracking.c (shared_hash_def::htab):
2930 Change type to hash_table. Update dependent calls and types.
2931
4a8fb1a1
LC
29322013-04-25 Lawrence Crowl <crowl@google.com>
2933
2934 * Makefile.in: Update as needed below.
2935
2936 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2937 Move declaration to after the type's method definitons.
2938
2939 * attribs.c (htab_t scoped_attributes::attribute_hash):
2940 Change type to hash_table. Update dependent calls and types.
2941
2942 * bitmap.c (htab_t bitmap_desc_hash):
2943 Change type to hash_table. Update dependent calls and types.
2944
2945 * cselib.c (htab_t cselib_hash_table):
2946 Change type to hash_table. Update dependent calls and types.
2947
2948 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2949 (hash_string_slot_node): Move implementation into lto-streamer.h
2950 struct string_slot_hasher.
2951 (eq_string_slot_node): Likewise.
2952
2953 * data-streamer-out.c: Update output_block::string_hash_table
2954 dependent calls and types.
2955
2956 * dwarf2cfi.c (htab_t trace_index):
2957 Change type to hash_table. Update dependent calls and types.
2958
2959 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2960 Change type to hash_table. Update dependent calls and types.
2961 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2962 (htab_t optimize_external_refs::map): Likewise.
2963 (htab_t output_comp_unit::extern_map): Likewise.
2964 (htab_t output_comdat_type_unit::extern_map): Likewise.
2965 (htab_t output_macinfo::macinfo_htab): Likewise.
2966 (htab_t optimize_location_lists::htab): Likewise.
2967 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2968
2969 * except.c (htab_t ehspec_hash_type):
2970 Change type to hash_table. Update dependent calls and types.
2971 (assign_filter_values::ttypes): Likewise.
2972 (assign_filter_values::ehspec): Likewise.
2973 (sjlj_assign_call_site_values::ar_hash): Likewise.
2974 (convert_to_eh_region_ranges::ar_hash): Likewise.
2975
2976 * gcse.c (htab_t pre_ldst_table):
2977 Change type to hash_table. Update dependent calls and types.
2978
2979 * ggc-common.c (htab_t saving_htab):
2980 Change type to hash_table. Update dependent calls and types.
2981 (htab_t loc_hash): Likewise.
2982 (htab_t ptr_hash): Likewise.
2983 (call_count): Rename ggc_call_count.
2984 (call_alloc): Rename ggc_call_alloc.
2985 (loc_descriptor): Rename make_loc_descriptor.
2986 (add_statistics): Rename ggc_add_statistics.
2987
2988 * ggc-common.c (saving_htab):
2989 Change type to hash_table. Update dependent calls and types.
2990
2991 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2992 (push_gimplify_context): Likewise.
2993 (pop_gimplify_context): Likewise.
2994 (struct gimple_temp_hash_elt): Added.
2995 (struct gimplify_hasher): Likewise.
2996 (struct gimplify_ctx.temp_htab):
2997 Change type to hash_table. Update dependent calls and types.
2998
2999 * gimple-fold.c: Include gimplify-ctx.h.
3000
3001 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3002 Change type to hash_table. Update dependent calls and types.
3003 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3004 avoid potential global name collision.
3005
3006 * gimplify.c: Include gimplify-ctx.h.
3007 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3008 (htab_t gimplify_ctx::temp_htab):
3009 Update dependent calls and types for new type hash_table.
3010 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3011 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3012
3013 * gimplify-ctx.h: New.
3014 (struct gimple_temp_hash_elt): Move from gimplify.c.
3015 (class gimplify_hasher): New.
3016 (struct gimplify_ctx): Move from gimple.h.
3017 (htab_t gimplify_ctx::temp_htab):
3018 Change type to hash_table. Update dependent calls and types.
3019
3020 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3021 (htab_t ivs_params::newivs_index):
3022 Change type to hash_table. Update dependent calls and types.
3023 (htab_t ivs_params::params_index): Likewise.
3024 (htab_t print_generated_program::params_index): Likewise.
3025 (htab_t gloog::newivs_index): Likewise.
3026 (htab_t gloog::params_index): Likewise.
3027
3028 * graphite.c: Include graphite-htab.h.
3029 4htab_t graphite_transform_loops::bb_pbb_mapping):
3030 Change type to hash_table. Update dependent calls and types.
3031
3032 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3033 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3034 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3035
3036 * graphite-dependences.c: Include graphite-htab.h.
3037 (loop_is_parallel_p): Change hash table type of parameter.
3038
3039 * graphite-htab.h: New.
3040 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3041 (extern find_pbb_via_hash): Move from graphite-poly.h.
3042 (extern loop_is_parallel_p): Move from graphite-poly.h.
3043 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3044
3045 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3046 (extern loop_is_parallel_p): Move to graphite-htab.h.
3047 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3048
3049 * haifa-sched.c (htab_t delay_htab):
3050 Change type to hash_table. Update dependent calls and types.
3051 (htab_t delay_htab_i2): Likewise.
3052
3053 * ira-color.c (htab_t allocno_hard_regs_htab):
3054 Change type to hash_table. Update dependent calls and types.
3055
3056 * ira-costs.c (htab_t cost_classes_htab):
3057 Change type to hash_table. Update dependent calls and types.
3058
3059 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3060 Change type to hash_table. Update dependent calls and types.
3061
3062 * loop-iv.c (htab_t bivs):
3063 Change type to hash_table. Update dependent calls and types.
3064
3065 * loop-unroll.c (htab_t opt_info::insns_to_split):
3066 Change type to hash_table. Update dependent calls and types.
3067 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3068
3069 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3070 (struct string_slot_hasher): New.
3071 (htab_t output_block::string_hash_table):
3072 Change type to hash_table. Update dependent calls and types.
3073
3074 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3075 (htab_t file_name_hash_table):
3076 Change type to hash_table. Update dependent calls and types.
3077
3078 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3079 calls and types.
3080
3081 * lto-streamer.c (htab_t tree_htab):
3082 Change type to hash_table. Update dependent calls and types.
3083
3084 * omp-low.c: Include gimplify-ctx.h.
3085
3086 * passes.c (htab_t name_to_pass_map):
3087 Change type to hash_table. Update dependent calls and types.
3088 (pass_traverse): Rename to passes_pass_traverse.
3089
3090 * plugin.c (htab_t event_tab):
3091 Change type to hash_table. Update dependent calls and types.
3092
3093 * postreload-gcse.c (htab_t expr_table):
3094 Change type to hash_table. Update dependent calls and types.
3095 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3096
3097 * sese.c (debug_rename_map_1): Make extern.
3098 (htab_t copy_bb_and_scalar_dependences::rename_map):
3099 Change type to hash_table. Update dependent calls and types.
3100
3101 * sese.h (extern debug_rename_map): Move to .c file.
3102
3103 * store-motion.c (htab_t store_motion_mems_table):
3104 Change type to hash_table. Update dependent calls and types.
3105
3106 * trans-mem.c (htab_t tm_new_mem_hash):
3107 Change type to hash_table. Update dependent calls and types.
3108
3109 * tree-browser.c (htab_t TB_up_ht):
3110 Change type to hash_table. Update dependent calls and types.
3111
3112 * tree-cfg.c (htab_t discriminator_per_locus):
3113 Change type to hash_table. Update dependent calls and types.
3114
3115 * tree-complex.c: Include tree-hasher.h
3116 (htab_t complex_variable_components):
3117 Change type to hash_table. Update dependent calls and types.
3118
3119 * tree-eh.c (htab_t finally_tree):
3120 Change type to hash_table. Update dependent calls and types.
3121
3122 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3123 struct int_tree_hasher.
3124 (extern int_tree_map_eq): Likewise.
3125 (uid_decl_map_hash): Removed.
3126 (extern decl_tree_map_eq): Likewise.
3127
3128 * tree-hasher.h: New.
3129 (struct int_tree_hasher): New.
3130 (typedef int_tree_htab_type): New.
3131
3132 * tree-inline.c: Include gimplify-ctx.h.
3133
3134 * tree-mudflap.c: Include gimplify-ctx.h.
3135
3136 * tree-parloops.c: Include tree-hasher.h.
3137 (htab_t eliminate_local_variables_stmt::decl_address):
3138 Change type to hash_table. Update dependent calls and types.
3139 (htab_t separate_decls_in_region::decl_copies): Likewise.
3140
3141 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3142 Change type to hash_table. Update dependent calls and types.
3143
3144 * tree-sra.c (candidates):
3145 Change type to hash_table. Update dependent calls and types.
3146
3147 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3148 in tree-flow.h.
3149 (int_tree_map_hash): Likewise.
3150
3151 * tree-ssa-dom.c (htab_t avail_exprs):
3152 Change type to hash_table. Update dependent calls and types.
3153
3154 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3155 Change type to hash_table. Update dependent calls and types.
3156
3157 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3158 Change type to hash_table. Update dependent calls and types.
3159
3160 * tree-ssa-phiopt.c (seen_ssa_names):
3161 Change type to hash_table. Update dependent calls and types.
3162
3163 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3164 Change type to hash_table. Update dependent calls and types.
3165
3166 * tree-ssa-uncprop.c (equiv):
3167 Change type to hash_table. Update dependent calls and types.
3168
c5a44004
JJ
31692013-04-25 Jakub Jelinek <jakub@redhat.com>
3170
3171 PR rtl-optimization/57003
3172 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3173 call note_stores with kill_clobbered_value callback again after
3174 killing regs_invalidated_by_call.
3175
09962a4a
JG
31762013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3177
3178 * config/aarch64/aarch64-simd.md
3179 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3180 (aarch64_simd_bsl<mode>): Likewise.
3181 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3182
ea28bb0b
MP
31832013-04-25 Marek Polacek <polacek@redhat.com>
3184
3185 PR tree-optimization/57066
3c21604f 3186 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3187
96659611
JG
31882013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3189
3190 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3191
9697e620
JG
31922013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3193
3194 * config/aarch64/aarch64-builtins.c
3195 (aarch64_fold_builtin): New.
3196 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3197 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3198 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3199 * config/aarch64/arm_neon.h
3200 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3201
0ac198d3
JG
32022013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3203 Tejas Belagod <tejas.belagod@arm.com>
3204
3205 * config/aarch64/aarch64-builtins.c
3206 (aarch64_gimple_fold_builtin): New.
3207 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3208 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3209 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3210 (addvv4sf): Update.
3211 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3212
58cff58c
N
32132013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3214
df93505e 3215 * config/aarch64/aarch64.md
58cff58c
N
3216 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3217
7e0228bf
N
32182013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3219
3220 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3221 (*ngcsi_uxtw): New pattern.
3222
5819f96f 32232013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3224 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3225
3226 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3227 (TB_DREG): Add T_V4HF.
3228 (v4hf_UP): New macro.
3229 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3230 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3231 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3232 built-ins.
df93505e 3233 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3234 (arm_vector_mode_supported_p): Handle V4HF.
3235 (arm_mangle_map): Handle V4HFmode.
3236 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3237 * config/arm/arm_neon_builtins.def: Add entries for
3238 vcvtv4hfv4sf, vcvtv4sfv4hf.
3239 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3240 (neon_vcvtv4hfv4sf): Likewise.
3241 * config/arm/neon-gen.ml: Handle half-precision floating point
3242 features.
3243 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3244 * config/arm/arm_neon.h: Regenerate.
3245 * config/arm/neon.ml (type elts): Add F16.
3246 (type vectype): Add T_float16x4, T_floatHF.
3247 (type vecmode): Add V4HF.
3248 (type features): Add Requires_FP_bit feature.
3249 (elt_width): Handle F16.
3250 (elt_class): Likewise.
3251 (elt_of_class_width): Likewise.
3252 (mode_of_elt): Refactor.
3253 (type_for_elt): Handle F16, fix error messages.
3254 (vectype_size): Handle T_float16x4.
3255 (vcvt_sh): New function.
3256 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3257 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3258 (string_of_mode): Handle V4HF.
3259 * doc/arm-neon-intrinsics.texi: Regenerate.
3260
1ef395e4
JG
32612013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3262
3263 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3264 format specifier in 'X' case.
3265
41c34e94
AM
32662013-04-25 Alan Modra <amodra@gmail.com>
3267
3268 PR target/57052
3269 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3270 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3271 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3272 Repeat for many other rotate/shift and mask patterns using subregs.
3273 Name lshiftrt insns.
3274 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3275 on WORDS_BIG_ENDIAN.
3276
b9a7eb5d
AM
32772013-04-25 Alan Modra <amodra@gmail.com>
3278
3279 * config.gcc: Support little-endian powerpc-linux targets.
3280 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3281 (LINK_OS_LINUX_SPEC): Define.
3282 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3283 Preserve MASK_LITTLE_ENDIAN.
3284 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3285 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3286 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3287 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3288 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3289 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3290 Correct fp word order for little-endian. Don't shift toc entries
3291 smaller than a word for little-endian.
3292 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3293 (bswapdi2 splits): Correct low-part subreg for little-endian.
3294 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3295 low/high where such is correct only for be.
3296 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3297 little-endian for -mcall-aixdesc.
3298
87f73374
AM
32992013-04-25 Alan Modra <amodra@gmail.com>
3300
3301 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3302 replace_equiv_address_nv.
3303
cabf91cd
AM
33042013-04-25 Alan Modra <amodra@gmail.com>
3305
3306 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3307
0ae24cc8
VM
33082013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3309
3310 Revert:
3311 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3312 * rtl.h (struct rtx_def): ...
cabf91cd 3313
77bce07c
VM
33142013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3315
3316 PR rtl-optimizations/57046
3317 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3318 for multi-reg splits.
3319
0db63e7f
L
33202013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3321
3322 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3323
3362b6b6
SA
33242013-04-24 Sterling Augustine <saugustine@google.com>
3325
3326 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3327 (comp_dir_string, debug_str_dwo_section): New.
3328 (DEBUG_STR_DWO_SECTION): Rename to ...
3329 (DEBUG_DWO_STR_SECTION): ... this.
3330 (DEBUG_NORM_STR_SECTION): Delete.
3331 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3332 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3333 (find_AT_string): Move most logic to ...
3334 (find_AT_string_in_table): ... here. New.
3335 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3336 add_skeleton_AT_string. Delete logic.
3337 (output_skeleton_debug_sections): Remove call to
3338 add_top_level_skeleton_die_attrs.
3339 (add_comp_dir_attribute): Move logic to comp_dir_string.
3340 (dwarf2out_init): Initialize debug_str_dwo_section.
3341 (output_indirect_string): Call find_string_form.
3342 (output_indirect_strings): Rewrite.
3343 (prune_unused_types): Empty skeleton_debug_str_hash.
3344 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3345 (dwarf2out_finish): Call output_indirect_strings.
3346
e93e18e9
PC
33472013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3348
3349 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3350
f6ce35ac
VM
33512013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3352
cabf91cd 3353 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
3354 (LRA_SUBREG_P): New macro.
3355 * recog.c (register_operand): Check LRA_SUBREG_P.
3356 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3357 stack frame.
3358 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3359 (lra_final_code_change): Skip subreg change for operators.
3360 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3361 if there are no operand changes.
3362 * lra-constraints.c (curr_insn_set): New.
3363 (match_reload): Set LRA_SUBREG_P.
3364 (emit_spill_move): Ditto.
3365 (check_and_process_move): Use curr_insn_set. Process only single
3366 set insns. Don't initialize sec_mem_p and change_p.
3367 (simplify_operand_subreg): Use LRA_SUBREG_P.
3368 (reg_in_class_p): New function.
3369 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3370 of #ifdef. Add code to remove cycling.
3371 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3372 non-null disp. Reload inner instead of disp when base and index
3373 are null. Try to put lo_sum into register.
3374 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 3375 (check_and_process_move): Move code for move cost check to
f6ce35ac 3376 simple_move_p. Remove equiv_substitution.
cabf91cd 3377 (simple_move_p): New function.
f6ce35ac
VM
3378 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3379 curr_insn_set. Call check_and_process_move only for single set
3380 insns. Use the new function. Move call of check_and_process_move
3381 after operand equiv substitution and address process.
3382
38047d90
JG
33832013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3384
3385 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3386 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3387 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3388
13f39b2e
PC
33892013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3390
3391 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3392
97c116dc
MP
33932013-04-24 Marek Polacek <polacek@redhat.com>
3394
3395 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3396 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3397 (select_loops_exit_conditions): Likewise.
3398 (number_of_iterations_for_all_loops): Likewise.
3399 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3400 (scev_analysis): Likewise.
3401
83082391
CM
34022013-04-02 Catherine Moore <clm@codesourcery.com>
3403 Chao-ying Fu <fu@mips.com>
3404
cabf91cd
AM
3405 * config/mips/micromips.md (jraddiusp): New pattern.
3406 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3407 instruction if possible.
83082391 3408
19e34aa2
AM
34092013-04-24 Alan Modra <amodra@gmail.com>
3410
3411 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3412
fdb6603c
JB
34132013-04-24 Julian Brown <julian@codesourcery.com>
3414 Chung-Lin Tang <cltang@codesourcery.com>
3415
3416 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
3417 dependency behavior in enumeration type DIE generation. Add TODO note
3418 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 3419
bf190e8d
LC
34202013-04-23 Lawrence Crowl <crowl@google.com>
3421
3422 * Makefile.in: Update as needed below.
3423
3424 * hash-table.h (class hash_table):
3425 Correct many methods with parameter types compare_type to the correct
3426 value_type. (Correct code was unlikely to notice the change.)
3427 (hash_table::elements_with_deleted) New.
3428 (class hashtable::iterator): New.
3429 (hashtable::begin()): New.
3430 (hashtable::end()): New.
3431 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3432
3433 * statistics.c (statistics_hashes):
3434 Change type to hash_table. Update dependent calls and types.
3435
3436 * tree-into-ssa.c (var_infos):
3437 Change type to hash_table. Update dependent calls and types.
3438
3439 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3440 Change type to hash_table. Update dependent calls and types.
3441
3442 * tree-ssa-loop-im.c (struct mem_ref.refs):
3443 Change type to hash_table. Update dependent calls and types.
3444
3445 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3446 Change type to hash_table. Update dependent calls and types.
3447
3448 * tree-ssa-sccvn.c (vn_tables_s::nary):
3449 Change type to hash_table. Update dependent calls and types.
3450 (vn_tables_s::phis): Likewise.
3451 (vn_tables_s::references): Likewise.
3452
3453 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3454 (vn_reference_eq): Update parameter and return types.
3455
3456 * tree-ssa-structalias.c (pointer_equiv_class_table):
3457 Change type to hash_table. Update dependent calls and types.
3458 (location_equiv_class_table): Likewise.
3459
3460 * tree-vect-data-refs.c: Consequential changes for making
3461 peeling a hash_table.
3462
3463 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3464 (destroy_loop_vec_info): Dependent hash_table update.
3465
3466 * tree-vectorizer.h (peeling_htab):
3467 Change type to hash_table. Update dependent calls and types.
3468
d70a81dd
SC
34692013-04-23 Shiva Chen <shiva0217@gmail.com>
3470
cabf91cd
AM
3471 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3472 to check the register content is equal or not.
3473 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3474 to assign register content record.
3475 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 3476 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
3477 * lra-int.h (struct lra_reg): Add offset member.
3478 (lra_reg_val_equal_p): New static inline function.
3479 (lra_update_reg_val_offset): New static inline function.
3480 (lra_assign_reg_val): New static inline function.
3481 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3482 to assign register content record.
3483 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 3484
b894a1f3
CM
34852013-04-23 Catherine Moore <clm@codesourcery.com>
3486
3487 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3488 operands. Record compression.
3489
ecd14de9
XDL
34902013-04-23 Xinliang David Li <davidxl@google.com>
3491
3492 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3493
92e776e9
RB
34942013-04-23 Richard Biener <rguenther@suse.de>
3495
3496 PR middle-end/57036
3497 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3498 parameter, only add abnormal goto edges from the copied body
3499 if the call could perform abnormal gotos.
3500 (copy_cfg_body): Adjust.
3501
a15ee567
SN
35022013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3503
3504 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3505
08c52234
AS
35062013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3507
3508 * coretypes.h (gimple_stmt_iterator): Add struct to make
3509 compatible with C.
3510
999c1171
RB
35112013-04-23 Richard Biener <rguenther@suse.de>
3512
3513 PR tree-optimization/57026
3514 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3515 from SSA names occuring in abnormal PHI nodes.
3516
53669259
AK
35172013-04-22 Andi Kleen <ak@linux.intel.com>
3518
3519 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3520
1a0ad150
AK
35212013-04-22 Andi Kleen <ak@linux.intel.com>
3522
3523 * lto/lto.c (print_lto_report_1): Declare early.
3524 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3525
057f8f20
AK
35262013-04-22 Andi Kleen <ak@linux.intel.com>
3527
3528 * common.opt (-flto-report-wpa): Add.
3529 * doc/invoke.texi (-flto-report-wpa): Add.
3530 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3531 (lto_main): dito.
3532
473b1e05
XDL
35332013-04-22 Xinliang David Li <davidxl@google.com>
3534
3535 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3536 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3537 * Makefile.in: New dependency
3538
cabf91cd 3539 David Daney <ddaney.cavm@gmail.com>
b1485a33 3540
cabf91cd
AM
3541 * configure.ac (gcc_cv_as_micromips_support): Use the
3542 --fatal-warnings option.
3543 * configure: Regenerate.
b1485a33 3544
829d0168
MP
35452013-04-22 Marek Polacek <polacek@redhat.com>
3546
3547 PR sanitizer/56990
3548 * tsan.c (instrument_expr): Don't instrument expression
3549 in case its size is zero.
3550
6d9b7208
UB
35512013-04-22 Uros Bizjak <ubizjak@gmail.com>
3552
3553 PR target/57032
3554 Revert:
3555 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3556
3557 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3558
ea679d55
JG
35592013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3560
3561 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3562 (gimple_stmt_iterator): New typedef.
3563 * gimple.h (gimple_stmt_iterator): Rename to...
3564 (gimple_stmt_iterator_d): ... This.
3565 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3566 trees be valid for GIMPLE and GENERIC.
3567 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3568 * gimple-fold.c (gimple_fold_call): Call target hook
3569 gimple_fold_builtin.
3570 * hooks.c (hook_bool_gsiptr_false): New.
3571 * hooks.h (hook_bool_gsiptr_false): New.
3572 * target.def (fold_stmt): New.
3573 * doc/tm.texi: Regenerate.
3574
88a581da
VM
35752013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3576
3577 PR target/57018
3578 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3579 a set sp if no stack realignment.
3580
92be22dc
NC
35812013-04-22 Nick Clifton <nickc@redhat.com>
3582
3583 * config.gcc (tilegx-linux): Extend extra_objs rather than
3584 overwriting it.
3585 (tilepro-linux): Likewise.
3586
0ddec79f
JG
35872013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3588
3589 * config/aarch64/aarch64-builtins.c
3590 (CF): Remove.
3591 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3592 (VAR<1-12>): Add MAP parameter.
3593 (BUILTIN_*): Likewise.
3594 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3595 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3596 (aarch64_ushl_n<mode>): Likewise.
3597 (aarch64_sshr_n<mode>): Likewise.
3598 (aarch64_ushr_n<mode>): Likewise.
3599 (aarch64_<maxmin><mode>): Likewise.
3600 (aarch64_sqrt<mode>): Likewise.
3601 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3602 (vshr<q>_n_*): Likewise.
3603
0050faf8
JG
36042013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3605
3606 * config/aarch64/aarch64-builtins.c
3607 (aarch64_simd_builtin_type_mode): Handle SF types.
3608 (sf_UP): Define.
3609 (BUILTIN_GPF): Define.
3610 (aarch64_init_simd_builtins): Handle SF types.
3611 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3612 (frecps): Likewise.
3613 (frecpx): Likewise.
3614 * config/aarch64/aarch64-simd.md
3615 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3616 (aarch64_frecpe<mode>): New.
3617 (aarch64_frecps<mode>): Likewise.
3618 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3619 (v8type): Add frecp<esx>.
3620 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3621 (aarch64_frecps<mode>): Likewise.
3622 * config/aarch64/iterators.md (FRECP): New.
3623 (frecp_suffix): Likewise.
3624 * config/aarch64/arm_neon.h
3625 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3626
0fad3dbc 36272013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
3628
3629 PR target/56995
3630 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3631 (REG_CLASS_NAMES): Idem.
3632 (REG_CLASS_CONTENTS): Idem.
3633 (REGCLASS_HAS_FP_REG): Idem.
3634 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3635 (sh_conditional_register_usage): Idem.
3636
3e8a33f9
JL
36372013-04-21 Jeff Law <law@redhat.com>
3638
3639 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3640 (ssa_forward_propagate_and_combine): Use it.
3641
f38e1b0a
VM
36422013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3643
3644 * lra.c: Update the flow chart diagram.
3645
682303da
VM
36462013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3647
3648 PR rtl-optimization/56847
3649 * lra-constraints.c (process_alt_operands): Discourage alternative
3650 with non-matche doffsettable memory constraint fro memory with
3651 known offset.
3652
f6b64c35
RB
36532013-04-19 Richard Biener <rguenther@suse.de>
3654
3655 PR tree-optimization/56982
3656 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3657 function.
3658 * gimplify.c (gimplify_call_expr): Notice special calls.
3659 (gimplify_modify_expr): Likewise.
3660 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3661 abnormal control flow receivers.
3662 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3663 in the same way as cfun->has_nonlocal_labels.
3664 (gimple_purge_dead_abnormal_call_edges): Likewise.
3665 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3666 receivers start a basic-block.
3667
01d8bf07
RB
36682013-04-19 Richard Biener <rguenther@suse.de>
3669
3670 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3671 member ...
3672 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3673 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3674 (SLP_TREE_LOAD_PERMUTATION): Add.
3675 (vect_transform_slp_perm_load): Adjust prototype.
3676 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3677 (vect_free_slp_instance): Likewise.
3678 (vect_create_new_slp_node): Likewise.
3679 (vect_supported_slp_permutation_p): Remove.
3680 (vect_slp_rearrange_stmts): Adjust.
3681 (vect_supported_load_permutation_p): Likewise. Inline
3682 vect_supported_slp_permutation_p here.
3683 (vect_analyze_slp_instance): Compute load permutations per
3684 slp node instead of per instance.
3685 (vect_get_slp_defs): Adjust.
3686 (vect_transform_slp_perm_load): Likewise.
3687 (vect_schedule_slp_instance): Remove redundant code.
3688 (vect_schedule_slp): Remove hack for PR56270, add it ...
3689 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3690 CSE loads for SLP. Adjust.
3691
ede22fc3
GY
36922013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3693
3694 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3695 spelling in two comments.
3696
67bc84fb
GY
36972013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3698
3699 PR target/56797
3700 * config/arm/arm.c (load_multiple_sequence): Require SP
3701 as base register for loads if SP is in the register list.
3702
e248d83f
MJ
37032013-04-19 Martin Jambor <mjambor@suse.cz>
3704
3705 PR tree-optimization/56718
3706 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3707 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3708 and made public. Adjusted all callers.
3709 (ipa_intraprocedural_devirtualization): New function.
3710 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3711 (ipa_intraprocedural_devirtualization): Likewise.
3712 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3713
4891e8f8
RB
37142013-04-19 Richard Biener <rguenther@suse.de>
3715
3716 PR tree-optimization/57000
3717 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3718
dad89f7c
TG
37192013-04-19 Terry Guo <terry.guo@arm.com>
3720
3721 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3722 Replace with ...
3723 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3724 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3725 (cortex_m4_fmacs): Use new reservations.
3726 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3727
72ea0d47
VM
37282013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3729
f1e6512c 3730 PR rtl-optimization/56999
72ea0d47
VM
3731 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3732 related code.
3733 (lra_coalesce): Remove split_origin_bitmap and related code.
3734 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3735 ranges if necessary.
3736
780a5b71
UB
37372013-04-18 Uros Bizjak <ubizjak@gmail.com>
3738
3739 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3740 New array.
3741 (ix86_expand_call): Remove clobbered_registers array and use
3742 x86_64_ms_sysv_extra_clobbered_registers instead.
3743 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3744 Declare here.
3745 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3746 predicate.
3747 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3748 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3749 (*call_value_rex64_ms_sysv): Ditto.
3750
6f5a366a
CC
37512013-04-18 Cary Coutant <ccoutant@google.com>
3752
3753 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3754 parent instead of die_mark.
3755
475b8f37
DN
37562013-04-18 Diego Novillo <dnovillo@google.com>
3757
3758 * gimple.c (create_gimple_tmp): New.
3759 (get_expr_type): New.
3760 (build_assign): New.
3761 (build_type_cast): New.
3762 * gimple.h (enum ssa_mode): Define.
3763 (gimple_seq_set_location): New.
3764 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 3765 to use build_assign and build_type_cast.
475b8f37 3766
08940f33
RB
37672013-04-18 Richard Biener <rguenther@suse.de>
3768
3769 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3770 handle negative step. Remove redundant checks.
3771 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3772 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3773 for negative step and grouped loads fail to vectorize.
3774
0e0f87d4
SB
37752013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3776
3777 * emit-rtl.c (reset_insn_used_flags): New function.
3778 (reset_all_used_flags): Use it.
3779 (verify_insn_sharing): New function.
3780 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3781
4c445590
JJ
37822013-04-18 Jakub Jelinek <jakub@redhat.com>
3783
3784 PR tree-optimization/56984
3785 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3786 and (x >> M) >= N don't register any assertion if N << M is the
3787 minimum value.
3788
6873ecab
SB
37892013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3790
3791 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3792 do not delete_insn insns that have not yet been emitted, only
3793 unlink them with remove_insn.
3794 * df-scan.c (df_insn_delete): Revert r197492.
3795
3ccb989e
SB
37962013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3797
3798 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3799 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3800
38012013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
3802
3803 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3804 define_insn_and_split.
3805 (and_scc,ior_scc,negscc): Likewise.
3806 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3807
3ccb989e 38082013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
3809
3810 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3811 can benefit from using a sequence of LDRD instructions in epilogue
3812 instead of a single LDM instruction.
3813
6d10a203
MLI
38142013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3815
3816 PR 45688
3817 * doc/extend.texi: Fix typo.
3818
6983e6b5
RB
38192013-04-17 Richard Biener <rguenther@suse.de>
3820
3821 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3822 (vect_build_slp_tree): ... here.
3823 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3824 match. Remove special-casing of mismatched complex loads.
3825 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3826 re-try the match with swapped commutative operands.
3827 (vect_supported_load_permutation_p): Remove special-casing of
3828 mismatched complex loads.
3829 (vect_analyze_slp_instance): Adjust.
3830
ef23e6a2
RB
38312013-04-17 Richard Biener <rguenther@suse.de>
3832
3833 PR rtl-optimization/56921
3834 * cfgloop.h (struct loop): Add simple_loop_desc member.
3835 (struct niter_desc): Mark with GTY(()).
3836 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3837 * loop-iv.c (get_simple_loop_desc): Likewise.
3838 (free_simple_loop_desc): Likewise.
3839
3840 Revert
3841 2013-04-16 Richard Biener <rguenther@suse.de>
3842
3843 PR rtl-optimization/56921
3844 * loop-init.c (pass_rtl_move_loop_invariants): Add
3845 TODO_do_not_ggc_collect to todo_flags_finish.
3846 (pass_rtl_unswitch): Same.
3847 (pass_rtl_unroll_and_peel_loops): Same.
3848 (pass_rtl_doloop): Same.
3849
fc6f94f5
EB
38502013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3851
3852 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3853 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3854 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3855 references.
3856 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3857 * tree-streamer.c (record_common_node): Adjust reference in comment.
3858
10a88311
TG
38592013-04-17 Terry Guo <terry.guo@arm.com>
3860
3861 * config/arm/cortex-m4.md: Add a new bypass.
3862
6d9b7208 38632013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
3864
3865 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3866 New pattern.
3867 (*subs_<optab><mode>_multp2): New pattern.
3868 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3869 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3870
6d9b7208 38712013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
3872
3873 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3874 (*subs_mul_imm_<mode>): New pattern.
3875
18a6701e
DE
38762013-04-16 David Edelsohn <dje.gcc@gmail.com>
3877
3878 PR target/56948
3879 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3880 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3881 (vsx_movti_32bit): Change j->wa to O->wa.
3882
07c37b2f
RB
38832013-04-16 Richard Biener <rguenther@suse.de>
3884
3885 PR rtl-optimization/56921
3886 * loop-init.c (pass_rtl_move_loop_invariants): Add
3887 TODO_do_not_ggc_collect to todo_flags_finish.
3888 (pass_rtl_unswitch): Same.
3889 (pass_rtl_unroll_and_peel_loops): Same.
3890 (pass_rtl_doloop): Same.
3891
0e0f87d4 38922013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
3893
3894 * config/arm/arm.c (emit_multi_reg_push): New declaration
3895 for an existing function.
3896 (arm_emit_strd_push): New function.
3897 (arm_expand_prologue): Used here.
3898 (arm_emit_ldrd_pop): New function.
3899 (arm_expand_epilogue): Used here.
3900 (arm_get_frame_offsets): Update condition.
3901 (arm_emit_multi_reg_pop): Add a special case for load of a single
3902 register with writeback.
3903
5e8e2af4
UB
39042013-04-16 Uros Bizjak <ubizjak@gmail.com>
3905
3906 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3907 description.
3908
9fd9ccf7
RB
39092013-04-16 Richard Biener <rguenther@suse.de>
3910
3911 PR tree-optimization/56756
3912 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3913 (first_mem_ref_loc): New.
3914 (execute_sm): Place the load temporarily before a previous
3915 access instead of in the latch edge to ensure its SSA dependencies
3916 are defined at points dominating the load.
3917
96fba521
SB
39182013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3919
4c8af858
SB
3920 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3921 correct fix by moving header and footer insn to the footer of
3922 the merged basic block. Clear BB_END of the merged-away block.
3923
96fba521
SB
3924 PR middle-end/43631
3925 * emit-rtl.c (make_note_raw): New function.
3926 (link_insn_into_chain): New static inline function.
3927 (add_insn): Use it.
3928 (add_insn_before, add_insn_after): Factor insn chain linking code...
3929 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3930 using link_insn_into_chain.
3931 (note_outside_basic_block_p): New helper function for emit_note_after
3932 and emit_note_before.
3933 (emit_note_after): Use nobb variant of add_insn_after if the note
3934 should not be contained in a basic block.
3935 (emit_note_before): Use nobb variant of add_insn_before if the note
3936 should not be contained in a basic block.
3937 (emit_note_copy): Use make_note_raw.
3938 (emit_note): Likewise.
3939 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3940 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3941 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3942 the moved barrier the tail of the basic block it follows.
3943 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3944
7b8265ba
JJ
39452013-04-15 Jakub Jelinek <jakub@redhat.com>
3946
3947 PR tree-optimization/56962
3948 * gimple-ssa-strength-reduction.c (record_increment): Only set
3949 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3950 either rhs1 or rhs2 is equal to c->base_expr.
3951
5185d248
RB
39522013-04-15 Richard Biener <rguenther@suse.de>
3953
3954 PR tree-optimization/56933
3955 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3956 member.
3957 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3958 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3959 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3960 dependence check ...
3961 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3962 ... here.
3963 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3964 GROUP_READ_WRITE_DEPENDENCE.
3965
a24243a0
AK
39662013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3967
3968 * emit-rtl.c (reset_all_used_flags): New function.
3969 (verify_rtl_sharing): Call reset_all_used_flags before and after
3970 performing the checks.
3971
1c50eada
KT
39722013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3973
3974 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3975 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3976 * config/arm/constraints.md (De): New constraint.
3977 * config/arm/neon.md (anddi3_neon): Delete.
3978 (neon_vand<mode>): Expand to standard anddi3 pattern.
3979 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3980 Move earlier in the file.
3981 (neon_inv_logic_op2): Likewise.
3982 (arm_anddi_operand_neon): New predicate.
3983
e927b6ad
RO
39842013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3985
3986 * configure.ac (gcc_cv_ld_as_needed): Set
3987 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3988 Use -z ignore, -z record on *-*-solaris2*.
3989 (HAVE_LD_AS_NEEDED): Update comment.
3990 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3991 * configure: Regenerate.
3992 * config.in: Regenerate.
3993 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3994 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3995 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3996 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3997 equivalents. Fix markup.
3998 * doc/tm.texi: Regenerate.
3999
e0ea8797
AH
40002013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4001
4002 * config/i386/i386.opt: New option mstack-protector-guard=.
4003 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4004 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4005 TARGET_SSP_TLS_GUARD.
4006 * config/i386/i386.c (ix86_option_override_internal): Set
4007 ix86_stack_protector_guard.
4008 * config/i386/i386.md (stack_protect_set): Enable for
4009 TARGET_SSP_TLS_GUARD only.
4010 (stack_protect_set_<mode>): Ditto.
4011 (stack_protect_test): Ditto.
4012 (stack_protect_test_<mode>): Ditto.
4013 * doc/invoke.texi (i386 Option): Document.
4014
811b72f9
EB
40152013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4016
4017 PR target/56890
4018 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4019 (S_MODES): Set H_MODE bit.
4020 (SF_MODES): Set only S_MODE and SF_MODE bits.
4021 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4022 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4023 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4024 <MODE_FLOAT>: Likewise.
4025
5529fdd6
JY
40262013-04-15 Joey Ye <joey.ye@arm.com>
4027
4028 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4029
517b1da2
JY
40302013-04-15 Joey Ye <joey.ye@arm.com>
4031
4032 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4033 for real far jump.
4034 (thumb_far_jump_used_p): Count instruction size and set
4035 far_jump_used.
4036
01007ae0
EB
40372013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4038
4039 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4040 * resource.c (mark_target_live_regs): Reformat conditional block.
4041
c46f6580
SB
40422013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4043
4044 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4045 notes, they are emitted only just before final.
4046 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4047
1f397f45
SB
40482013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4049
4050 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4051 * cfgrtl.c (delete_insn): Call it here instead.
4052 * lra-spills.c (lra_final_code_change): Use delete_insn.
4053 * haifa-sched.c (sched_remove_insn): Likewise.
4054 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4055 returning to the nop pool.
4056 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4057 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4058
58a51369
SB
40592013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4060
4061 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4062 * doc/tm.texi: Regenerated.
4063
33159866
UB
40642013-04-12 Uros Bizjak <ubizjak@gmail.com>
4065
4066 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4067 QImode checks.
4068
226e378f
SB
40692013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4070
4071 * df-core.c (df_find_def): Compare register numbers.
4072 (df_find_use): Likewise.
4073
fafb9b18
VM
40742013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4075
4076 PR target/56903
4077 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4078 lra_in_progress for return.
4079
9a946fd6
GY
40802013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4081
4082 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4083 define_insn into define_insn_and_split and emit movsicc patterns.
4084
41b83758
GY
40852013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4086
4087 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4088
d3afd9aa
RB
40892013-04-12 Richard Biener <rguenther@suse.de>
4090
4091 * tree-pass.h (TODO_do_not_ggc_collect): New.
4092 * passes.c (execute_one_ipa_transform_pass): Honor
4093 TODO_do_not_ggc_collect.
4094 (execute_one_pass): Likewise.
4095
4096 Revert
4097 2013-04-10 Richard Biener <rguenther@suse.de>
4098
4099 * passes.c (init_optimization_passes): Remove reload pass.
4100 * ira.c (do_reload): Merge into ...
4101 (ira): ... this.
4102 (rest_of_handle_reload): Remove.
4103 (pass_reload): Likewise.
4104 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4105 of reload for vzeroupper pass placement.
4106
06f9b387
JJ
41072013-04-12 Jakub Jelinek <jakub@redhat.com>
4108
4109 PR tree-optimization/56918
4110 PR tree-optimization/56920
4111 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4112 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4113 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4114 use wide_mul_with_sign method.
4115
953094d2
RB
41162013-04-12 Richard Biener <rguenther@suse.de>
4117
4118 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4119 not be considered a gimple constant.
4120
bb506982
MG
41212013-04-12 Marc Glisse <marc.glisse@inria.fr>
4122
4123 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4124 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4125 operations.
4126
4b84d650
JJ
41272013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4128 Jakub Jelinek <jakub@redhat.com>
4129
4130 * opts.c: Include diagnostic-color.h.
4131 (common_handle_option): Handle OPT_fdiagnostics_color_.
4132 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4133 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4134 (diagnostic-color.o): New.
4135 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4136 (diagnostic_color_rule): New enum.
4137 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4138 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4139 the location string.
4140 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4141 either NULL, or color kind.
4142 * diagnostic-color.c: New file.
4143 * diagnostic-color.h: New file.
4144 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4145 arguments.
4146 * doc/invoke.texi (-fdiagnostics-color): Document.
4147 * pretty-print.h (pp_show_color): Define.
4148 (struct pretty_print_info): Add show_color field.
4149 * diagnostic.c: Include diagnostic-color.h.
4150 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4151 macros. Colorize error:, warning: etc. strings and also the location
4152 string.
4153 (diagnostic_show_locus): Colorize the caret line.
4154 * pretty-print.c: Include diagnostic-color.h.
4155 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4156 inside of %< %> quotes or quoted through q format modifier.
4157
067a1e71
AK
41582013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4159
33159866 4160 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4161
33159866 41622013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4163
4164 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4165 code in CC_NZ mode.
4166 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4167 pattern.
4168
7b55f98f
MP
41692013-04-11 Marek Polacek <polacek@redhat.com>
4170
4171 PR tree-optimization/48184
33159866 4172 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4173
966b587e
EB
41742013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4175
4176 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4177 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4178 (skip_simple_arithmetic): Tidy up.
4179 * tree.h (skip_simple_constant_arithmetic): Declare.
4180
33159866 41812013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4182
4183 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4184
1d42c1ec
RB
41852013-04-11 Richard Biener <rguenther@suse.de>
4186
4187 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4188 generate vector constants.
4189
4ba5ea11
RB
41902013-04-11 Richard Biener <rguenther@suse.de>
4191
4192 PR tree-optimization/56878
4193 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4194 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4195 New function.
4196 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4197 Prefer to align the DR with the most invariant base address.
4198
f0defe58
SKS
41992013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4200
4201 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4202 comment.
4203
d07458be
JG
42042013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4205
4206 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4207 floating-point vector comparisons against 0.
4208
146b8692
JJ
42092013-04-11 Jakub Jelinek <jakub@redhat.com>
4210
4211 PR tree-optimization/56899
4212 * fold-const.c (extract_muldiv_1): Apply distributive law
4213 only if TYPE_OVERFLOW_WRAPS (ctype).
4214
b8578ff7
BC
42152013-04-11 Bin Cheng <bin.cheng@arm.com>
4216
4217 PR target/56124
4218 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4219 loading has side effect.
4220
0ea8a6f9
SB
42212013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4222
4223 * config/sparc/sparc.c: Include tree-pass.h.
4224 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4225 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4226 head of file. Change return type. Split off gate function.
4227 (sparc_gate_work_around_errata): New function.
4228 (pass_work_around_errata): New pass definition.
4229 (insert_pass_work_around_errata) New pass insert definition to
4230 insert pass_work_around_errata just after delayed-branch scheduling.
4231 (sparc_option_override): Insert the pass.
4232 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4233
42e37616
DM
42342013-04-10 David S. Miller <davem@davemloft.net>
4235
89deeb3b
DM
4236 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4237 or -mcpu=hypersparc.
4238
42e37616
DM
4239 * target.def (cstore_mode): New hook.
4240 * target.h: Include insn-codes.h
4241 * targhooks.c: Likewise.
4242 (default_cstore_mode): New function.
4243 * targhooks.h: Declare it.
4244 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4245 * doc/tm.texi: Rebuild.
4246 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4247 target hook, rather than inspecting the insn_data.
4248 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4249 (TARGET_CSTORE_MODE): Redefine.
4250 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4251 result patterns.
4252 * config/sparc/predicates.md (cstore_result_operand): New special
4253 predicate.
4254 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4255 Use it for operand 0.
4256 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4257 (*snesi_special): Likewise.
4258 (*snesi_zero): Likewise.
4259 (*seqsi_zero): Likewise.
4260 (*sltu_insn): Likewise.
4261 (*sgeu_insn): Likewise.
4262 (*seqdi_special): Make operand 0 and comparison operation be of
4263 DImode.
4264 (*snedi_special): Likewise.
4265 (*snedi_special_vis3): Likewise.
4266 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4267 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4268 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4269 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4270 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4271 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4272 (*sltu_extend_sp64): Likewise.
4273 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4274 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4275 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4276 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4277 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4278
95ca411e
YZ
42792013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4280
4281 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4282 (aarch64_start_file): Use the new function.
4283
6782438d 42842013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 4285 Jason Merrill <jason@redhat.com>
6782438d
SKS
4286
4287 * common.opt: Add -gdwarf.
4288 * opts.c (common_handle_option): Handle it.
4289 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4290
bb313b93
RB
42912013-04-10 Richard Biener <rguenther@suse.de>
4292
4293 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4294 (execute_one_ipa_transform_pass): But unconditionally here.
4295 (execute_one_pass): And here.
4296 (init_optimization_passes): Remove reload pass.
4297 * tree-pass.h (TODO_ggc_collect): Remove.
4298 (pass_reload): Likewise.
4299 * ira.c (do_reload): Merge into ...
4300 (ira): ... this.
4301 (rest_of_handle_reload): Remove.
4302 (pass_reload): Likewise.
4303 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4304 of reload for vzeroupper pass placement.
4305 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4306 and todo_flags_finish of all passes.
4307
793d9a16
RB
43082013-04-10 Richard Biener <rguenther@suse.de>
4309
4310 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4311 first_const_oprnd field, rename first_def_type to first_op_type.
4312 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4313 (vect_get_and_check_slp_defs): Always use the type of the
4314 operand. Allow mixed vect_external_def, vect_constant_def types.
4315 (vect_get_constant_vectors): Handle mixed vect_external_def,
4316 vect_constant_def types.
4317
ee8a9b7b
JR
43182013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4319
4320 PR tree-optimization/55524
4321 * tree-ssa-math-opts.c
4322 (convert_mult_to_fma): Don't use an fms construct
4323 when we don't have an fms operation, but fnma, and it looks
4324 likely that we'll be able to use the latter.
4325
6957a6f6
ZZ
43262013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4327
4328 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4329 function.
4330 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4331 inline fail caused by overwritable functions.
4332
34ab4a5b
CJW
43332013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4334
4335 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4336 unnecessary bits in the constant power of two case.
4337
abf9bfbc
RB
43382013-04-10 Richard Biener <rguenther@suse.de>
4339
4340 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4341 broken code swapping operands.
4342 (vect_build_slp_tree): Do not compute load permutations here.
4343 (vect_analyze_slp_instance): Compute load permutations here,
4344 after building the SLP tree.
4345
f408477e
CB
43462013-04-09 Christian Bruel <christian.bruel@st.com>
4347
4348 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4349 of next/prev_real_insn.
4350
5ac42672
JH
43512013-04-09 Jan Hubicka <jh@suse.cz>
4352
abf9bfbc
RB
4353 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4354 Drop aliased parameter.
5ac42672
JH
4355 (function_and_variable_visibility): Do not handle alias pairs.
4356 * cgraph.c (varpool_externally_visible_p): Update prototype.
4357 * varpool.c (varpool_add_new_variable): Update.
4358
5017f1d2
KT
43592013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4360
4361 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4362
48eecbee
SB
43632013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4364
a949cf1c
SB
4365 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4366
48eecbee
SB
4367 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4368
75ef8e3d
MP
43692013-04-09 Marek Polacek <polacek@redhat.com>
4370
4371 PR tree-optimization/48762
33159866 4372 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 4373
23847df4
RB
43742013-04-09 Richard Biener <rguenther@suse.de>
4375
4376 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4377 dealing with cost.
4378 (vect_build_slp_tree): Likewise.
4379 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4380 calculating the cost of a SLP instance.
4381 (vect_analyze_slp_instance): Use it from here, after building
4382 the SLP tree.
4383
ea3a0fde
JJ
43842013-04-09 Jakub Jelinek <jakub@redhat.com>
4385
4386 PR middle-end/56883
4387 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4388 expand_omp_for_static_chunk): Use simple_p = true in
4389 force_gimple_operand_gsi calls when assigning to addressable decls.
4390
a32dfe9d
JL
43912013-04-09 Jeff Law <law@redhat.com>
4392
4393 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4394 when the boolean was created by converting a wider object which
4395 had a boolean range.
4396
d755c7ef
RB
43972013-04-09 Richard Biener <rguenther@suse.de>
4398
4399 * tree-vectorizer.h (slp_void_p): Remove.
4400 (slp_tree): Typedef before _slp_tree declaration.
4401 (struct _slp_tree): Use a vector of slp_tree as children.
4402 (vect_get_place_in_interleaving_chain): Remove.
4403 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4404 Move ...
4405 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4406 and make static.
4407 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4408 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4409 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4410 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4411 Use slp_node instead of slp_void_p and adjust.
4412
3d741091
RB
44132013-04-09 Richard Biener <rguenther@suse.de>
4414
4415 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4416 work that is not necessary.
4417
39307ba7
JJ
44182013-04-09 Jakub Jelinek <jakub@redhat.com>
4419
4420 PR tree-optimization/56854
4421 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4422 forward into clobber stmts if it would change MEM_REF lhs into
4423 non-MEM_REF.
4424
343881fd
MK
44252013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4426
4427 * tree.c (type_hash_lookup, type_hash_add): Make static.
4428 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4429
3922658a
RB
44302013-04-09 Richard Biener <rguenther@suse.de>
4431
4432 * tree.h (unsave_expr_now): Remove.
4433 * tree-inline.c (mark_local_for_remap_r): Remove.
4434 (unsave_expr_1): Likewise.
4435 (unsave_r): Likewise.
4436 (unsave_expr_now): Likewise.
4437 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4438 (propagate_tree_value): Likewise.
4439
9fb6b620
SB
44402013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4441
4442 * doc/rtl.texi (sequence): Rewrite documentation to match the
4443 current use of SEQUENCE rtl objects.
4444 * rtl.def (SEQUENCE): Likewise.
4445
4446 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4447 Update documentation.
4448 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4449 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4450
4451 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4452
8ddb5a29
TJ
44532013-04-08 Teresa Johnson <tejohnson@google.com>
4454
4455 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4456 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 4457 methods.
8ddb5a29
TJ
4458 (estimate_edge_size_and_time): Add comment to suggest using rounding
4459 methods.
4460 (estimate_node_size_and_time): Ditto.
4461 (remap_edge_change_prob): Use helper rounding divide methods.
4462 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4463 (gimple_mod_pow2_value_transform): Ditto.
4464 (gimple_mod_subtract_transform): Ditto.
4465 (gimple_ic_transform): Ditto.
4466 (gimple_stringops_transform): Ditto.
4467 * stmt.c (conditional_probability): Ditto.
4468 (emit_case_dispatch_table): Ditto.
4469 * lto-cgraph.c (merge_profile_summaries): Ditto.
4470 * tree-optimize.c (execute_fixup_cfg): Ditto.
4471 * cfgcleanup.c (try_forward_edges): Ditto.
4472 * cfgloopmanip.c (scale_loop_profile): Ditto.
4473 (loopify): Ditto.
4474 (duplicate_loop_to_header_edge): Ditto.
4475 (lv_adjust_loop_entry_edge): Ditto.
4476 * tree-vect-loop.c (vect_transform_loop): Ditto.
4477 * profile.c (compute_branch_probabilities): Ditto.
4478 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4479 * lto-streamer-in.c (input_cfg): Ditto.
4480 * gimple-streamer-in.c (input_bb): Ditto.
4481 * ipa-cp.c (update_profiling_info): Ditto.
4482 (update_specialized_profile): Ditto.
4483 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4484 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 4485 rounding methods.
8ddb5a29
TJ
4486 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4487 (compute_trg_info): Ditto.
4488 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4489 (purge_dead_edges): Ditto.
4490 * loop-unswitch.c (unswitch_loop): Ditto.
4491 * cgraphclones.c (cgraph_clone_edge): Ditto.
4492 (cgraph_clone_node): Ditto.
4493 * tree-inline.c (copy_bb): Ditto.
4494 (copy_edges_for_bb): Ditto.
4495 (initialize_cfun): Ditto.
4496 (copy_cfg_body): Ditto.
4497 (expand_call_inline): Ditto.
4498
661e6bd7
KT
44992013-04-08 Kai Tietz <ktietz@redhat.com>
4500
4501 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4502 TARGET_CYGWIN64 by TARGET_64BIT.
4503
105766f3
JR
45042013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4505
4506 * config/epiphany/epiphany.md (GPR_1): New constant.
4507 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4508 * config/epiphany/epiphany.c (gen_compare_reg):
4509 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4510 is already in place.
4511 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4512 Don't require being called during rtl expansion; If y operlaps r0,
4513 return 0.
4514 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4515 (epiphany_expand_epilogue): Likewise.
4516
8afab237
JR
4517 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4518 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 4519 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 4520
fa7707d6
JR
4521 * config/epiphany/constraints.md (CnL): New constraint.
4522 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4523 * config/epiphany/predicates.md (add_operand): Allow 1024.
4524
5138e18d
JR
4525 * config/epiphany/epiphany.md (logical_op): New code iterator.
4526 (op_mnc): New code attribute.
4527 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4528 (mov_f+1, mov_f+2): New peephole2 patterns.
4529
2ccc703d
JR
4530 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4531 (cstoresi4): Also allow re-use of zero result when doing a NE
4532 comparison to a non-zero operand.
aefb0819 4533 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 4534
093ac0a5
JR
4535 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4536 Use gen_addsi3_i / gen_subsi3_i.
4537
f223bb13
JJ
45382013-04-08 Jakub Jelinek <jakub@redhat.com>
4539
4540 PR c++/34949
4541 PR c++/50243
4542 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4543 contain anything but clobbers, at most one __builtin_stack_restore,
4544 optionally debug stmts and final resx, and if it has at least one
4545 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4546 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4547 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4548 which isn't defaut definition, remove them.
4549 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4550 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4551 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4552 with MEM_REF LHS with SSA_NAME address.
4553
4481581f
JL
45542013-04-08 Jeff Law <law@redhat.com>
4555
4556 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 4557
451dabda
RB
45582013-04-08 Richard Biener <rguenther@suse.de>
4559
4560 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4561 extra newline.
4562 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4563 determined vector type.
4564 (vect_analyze_data_refs): Likewise.
4565 (vect_get_new_vect_var): Adjust.
4566 (vect_create_destination_var): Preserve SSA name versions.
4567 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4568 not dump anything here.
4569
3b088b47
JR
45702013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4571
4572 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4573 Add member lr_slot_known.
4574 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4575 if necessary.
4576 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4577 Remove code that sets lr_slot_offset according to what a previous
4578 version of epiphany_emit_save_restore used to do.
4579 (epiphany_emit_save_restore): When doing an lr save or restore,
4580 set/verify lr_slot_known and lr_slot_offset.
4581
d8484d41
XQ
45822013-04-08 Xinyu Qi <xyqi@marvell.com>
4583
33159866
UB
4584 PR target/54338
4585 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
4586 in ALL_REGS.
4587
481be1c4
RB
45882013-04-08 Richard Biener <rguenther@suse.de>
4589
4590 * alias.c (find_base_term): Fix thinko in previous change.
4591
401f3a81
JJ
45922013-04-08 Jakub Jelinek <jakub@redhat.com>
4593
4594 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4595 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4596 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4597 if possible to compute val.
4598 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4599 For QImode integers don't require anything about precision. Use
4600 const_with_all_bytes_same to find out if the constant doesn't have
4601 repeated bytes in it.
4602
03ed99a8
AK
46032013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4604
4605 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4606 within mode size.
4607
781b2e62
MP
46082013-04-08 Marek Polacek <polacek@redhat.com>
4609
4610 PR rtl-optimization/48182
4611 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4612 value to 1.
4613
27e430a2
JDA
46142013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4615
4616 PR target/55487
4617 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4618 nuses, make sure we have a label.
4619
4902aa64
BS
46202013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4621
4622 PR target/56843
4623 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4624 (rs6000_emit_swdiv_low_precision): Remove.
4625 (rs6000_emit_swdiv): Rewrite to handle between one and four
4626 iterations of Newton-Raphson generally; modify required number of
4627 iterations for some cases.
4628 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4629
7bca81dc
SB
46302013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4631
4632 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4633 set-but-unused variable.
4634
4635 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4636 basic blocks of released function bodies garbage-collectable.
4637
4638 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4639 (struct rtl_opt_pass): Add TODO_df_finish.
4640
4641 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4642
4542a38a
GY
46432013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4644
4645 * config/arm/constraints.md (q): New constraint.
4646 * config/arm/ldrdstrd.md: New file.
4647 * config/arm/arm.md (ldrdstrd.md) New include.
4648 (arm_movdi): Use "q" instead of "r" constraint
4649 for double-word memory access.
4650 (movdf_soft_insn): Likewise.
4651 * config/arm/vfp.md (movdi_vfp): Likewise.
4652 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 4653 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
4654 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4655 (mem_ok_for_ldrd_strd): Likewise.
4656 (output_move_double): Update assertion.
4657
2385b218
GY
46582013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4659
4660 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4661
75fe1cb5
GY
46622013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4663
4664 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4665 define_insn_and_split.
4666 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4667
dd660e8e
GY
46682013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4669
4670 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4671 define_insn_and_split.
33159866 4672 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
4673 (shiftsi3_compare): New pattern.
4674 (rrx): New pattern.
4675 * config/arm/unspecs.md (UNSPEC_RRX): New.
4676
045e472c
GY
46772013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4678
4679 * config/arm/arm.md (negdi_extendsidi): New pattern.
4680 (negdi_zero_extendsidi): Likewise.
4681
3f3bf1a8
GY
46822013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4683
4684 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4685 define_insn_and_split.
4686 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4687 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4688
b0b49556
GY
46892013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4690
4691 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4692 define_insn_and_split.
4693 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4694 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4695
d633dd84
GY
46962013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4697
4698 * config/arm/arm.md (subsi3_carryin): New pattern.
4699 (subsi3_carryin_const): Likewise.
4700 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4701 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4702
f4499066
GY
47032013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4704
4705 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4706
ceef6fd9
GY
47072013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4708
4709 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 4710 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 4711
ddbdd8a7
KT
47122013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4713
4714 * config/arm/arm.c (arm_expand_builtin): Change fcode
4715 type to unsigned int.
4716
8456d78a
RR
47172013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4718
4719 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4720
526c230f
ILT
47212013-04-04 Ian Lance Taylor <iant@google.com>
4722
33159866
UB
4723 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4724 language standard.
526c230f 4725
3cfbe04d
SB
47262013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4727
4728 PR middle-end/56729
4729 * df-scan.c (df_insn_delete): Disable failing assert.
4730
dfa3f8d0
KT
47312013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4732
4733 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4734 New function prototype.
4735 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4736 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4737 (arm_builtin_vectorized_function): New function.
4738
f7837758
KT
47392013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4740
4741 * config/arm/arm_neon_builtins.def: New file.
4742 * config/arm/arm.c (neon_builtin_data): Move contents to
4743 arm_neon_builtins.def.
4744 (enum arm_builtins): Include neon builtin definitions.
4745 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 4746 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 4747
39c1b6db
MP
47482013-04-04 Marek Polacek <polacek@redhat.com>
4749
4750 PR tree-optimization/48186
4751 * predict.c (maybe_hot_frequency_p): Return false if
4752 HOT_BB_FREQUENCY_FRACTION is 0.
4753 (cgraph_maybe_hot_edge_p): Likewise.
4754
314f64eb
RB
47552013-04-04 Richard Biener <rguenther@suse.de>
4756
4757 PR tree-optimization/56826
4758 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4759 more accurately.
4760
51a905b2
RB
47612013-04-04 Richard Biener <rguenther@suse.de>
4762
4763 PR tree-optimization/56213
4764 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 4765 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 4766
f1bf4f3a
RB
47672013-04-04 Richard Biener <rguenther@suse.de>
4768
4769 PR tree-optimization/56837
4770 * tree-loop-distribution.c (classify_partition): For non-zero
4771 values require that the value has the same precision as its
4772 mode to be useful as memset value.
4773
0bca7ded
NC
47742013-04-03 Nick Clifton <nickc@redhat.com>
4775
33159866 4776 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
4777 (fmssf4): Use fmsf.s on E3V5 architectures.
4778 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4779 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4780
b4019227
JL
47812013-04-03 Jeff Law <law@redhat.com>
4782
4783 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4784 (lra-eliminations.o): Likewise.
4785
f57ddb5b
TJ
47862013-04-03 Teresa Johnson <tejohnson@google.com>
4787
4788 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 4789 compute_working_sets here from profile.c.
f57ddb5b 4790 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
4791 (gcov_working_set_t): Moved typedef here from basic-block.h
4792 (compute_working_set): Declare.
f57ddb5b
TJ
4793 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4794 (get_working_sets): Renamed from compute_working_set,
33159866 4795 replace most of body with call to new compute_working_sets.
f57ddb5b 4796 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
4797 to get_working_sets.
4798 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 4799 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 4800 to get_working_sets.
f57ddb5b
TJ
4801 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4802 * gcov-dump.c (dump_working_sets): New function.
4803
5e0919f1
KZ
48042013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4805
4806 * hwint.c (sext_hwi, zext_hwi): New functions.
4807 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4808 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4809 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4810 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4811 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4812 (sext_hwi, zext_hwi): New functions.
0bca7ded 4813
be672e08
JL
48142013-04-03 Jeff Law <law@redhat.com>
4815
4816 PR tree-optimization/56799
33159866
UB
4817 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4818 back test for widening conversion erroneously dropped in prior change.
be672e08 4819
9d821fa5
KT
48202013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4821
4822 PR target/56809
4823 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4824 instead of next_real_insn.
4825
71c581e7
MP
48262013-04-03 Marek Polacek <polacek@redhat.com>
4827
4828 PR sanitizer/55702
33159866 4829 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 4830
4a32ef80
KT
48312013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4832
4833 PR target/56809
4834 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4835 next_real_insn.
4836 (thumb1_output_casesi): Likewise.
4837 (thumb2_output_casesi): Likewise.
4838
1b2253d4
RB
48392013-04-03 Richard Biener <rguenther@suse.de>
4840
4841 PR tree-optimization/56817
4842 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4843 Split out ...
4844 (tree_unroll_loops_completely_1): ... new function to manually
4845 walk the loop tree, properly defering outer loops of unrolled
4846 loops to later iterations.
4847
38000232
MG
48482013-04-03 Marc Glisse <marc.glisse@inria.fr>
4849
4850 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4851 (vectorizable_load): Likewise.
4852 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4853 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4854
3fa35298
MG
48552013-04-03 Marc Glisse <marc.glisse@inria.fr>
4856
4857 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4858 BIT_FIELD_REF.
4859
b3d45ff0
UW
48602013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4861
4862 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4863
ec9202a8
BC
48642013-04-03 Bin Cheng <bin.cheng@arm.com>
4865
4866 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4867
6805bd36
MG
48682013-04-03 Marc Glisse <marc.glisse@inria.fr>
4869
4870 PR tree-optimization/56790
33159866
UB
4871 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4872 folding.
6805bd36 4873
da694a77
MG
48742013-04-03 Marc Glisse <marc.glisse@inria.fr>
4875
4876 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4877 Handle VEC_MERGE.
4878 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4879 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4880 equal arguments.
4881
4e7d7b3d
JJ
48822013-04-03 Jakub Jelinek <jakub@redhat.com>
4883
4884 PR c/19449
4885 * tree.h (force_folding_builtin_constant_p): New decl.
4886 * builtins.c (force_folding_builtin_constant_p): New variable.
4887 (fold_builtin_constant_p): Fold immediately also if
4888 force_folding_builtin_constant_p.
4889
e6c9d234
RB
48902013-04-03 Richard Biener <rguenther@suse.de>
4891
4892 PR tree-optimization/56812
4893 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4894 DRs of the same interleaving chain are independent.
4895
984d07dd
JM
48962013-04-02 Jason Merrill <jason@redhat.com>
4897
4898 * gdbinit.in (pbb): Use debug fn.
4899
622849c9
LC
49002013-04-02 Lawrence Crowl <crowl@google.com>
4901
4902 * sese.h (struct ivtype_map_elt_s): Remove unused.
4903 (extern debug_ivtype_map): Remove unused.
4904 (extern eq_ivtype_map_elts): Remove unused.
4905 * sese.c (debug_ivtype_map): Removed unused.
4906 (debug_ivtype_map_1): Removed unused.
4907 (debug_ivtype_elt): Remove unused.
4908 (eq_ivtype_map_elts): Remove unused.
4909
4910
82c0e1a0
KT
49112013-04-02 Kai Tietz <ktietz@redhat.com>
4912
4913 PR target/52790
4914 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4915 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
4916 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4917 function.
82c0e1a0
KT
4918 (legitimize_pe_coff_symbol): Likewise.
4919 (is_imported_p): New helper-function.
4920 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4921 for Windows x64 targets.
4922 (ix86_expand_prologue): Optimize for pe-coff targets.
4923 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4924 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4925 medium/large code-model.
4926 (legitimize_pic_address): Likewise.
4927 (legitimize_tls_address): Likewise.
4928 (ix86_expand_call): Likewise.
4929 (x86_output_mi_thunk): Likewise.
4930 (get_dllimport_decl): Add new beimport argument.
4931 (construct_plt_address): Don't assert for x64 pe-coff targets.
4932 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4933 targets.
4934 (SYMBOL_FLAG_STUBVAR): New macro.
4935 (SYMBOL_REF_STUBVAR_P): Likewise.
4936 * config/i386/winnt.c (stub_list): New structure.
4937 (stub_head): New local variable.
4938 (i386_pe_record_stub): New function.
4939 (i386_pe_file_end): Emit refptr-stubs.
4940
5d751b0c
JJ
49412013-04-02 Jakub Jelinek <jakub@redhat.com>
4942
09bb4c99
JJ
4943 PR rtl-optimization/56745
4944 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4945 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4946
a1d8947a
JJ
4947 PR c++/34949
4948 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4949 and both of them are MEM_REFs, just compare first argument for
4950 equality and attempt to deal even with differing offsets.
4951
5d751b0c
JJ
4952 PR c++/34949
4953 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4954 of gimple_clobber_p to be MEM_REF.
4955 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4956 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4957 after gimplification.
4958 * asan.c (get_mem_ref_of_assignment): Don't instrument
4959 gimple_clobber_p stmts.
4960 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4961 gimple_clobber_p stmt if they have MEM_REF lhs and
4962 are dead because of another gimple_clobber_p stmt.
4963 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4964 gimple_clobber_p stmts like debug stmts.
4965 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4966 that refer to unused VAR_DECLs or uninitialized values.
4967 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4968 gimple_clobber_p stmts if they refer to removed parameters.
4969 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4970 formatting.
4971
e594716a
UB
49722013-04-02 Uros Bizjak <ubizjak@gmail.com>
4973
4974 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4975 using SWI48 mode attribute.
4976
7a80735b
WM
49772013-04-02 Wei Mi <wmi@google.com>
4978
4979 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4980 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4981 *<rotate_insn><mode>3_mask in i386.md.
4982
f423a9e4
AI
49832013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4984
4985 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4986
90eb75f2
RB
49872013-04-02 Richard Biener <rguenther@suse.de>
4988
4989 PR tree-optimization/56778
4990 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4991 Runtime alias tests are not supported for gather loads.
4992 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4993 stmts referenced from SSA operands before updating SSA form.
4994
d8c69a92
IC
49952013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4996 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4997
4998 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
4999 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5000 * config/arm/cortex-a53.md: New file.
5001 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5002 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5003 * config/arm/arm.c (arm_issue_rate): Likewise.
5004 * config/arm/arm-tune.md: Regenerate
5005 * config/arm/arm-tables.opt: Regenerate.
5006 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 5007
239eb04c
ZC
50082013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5009
5010 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5011 non-static link.
5012
c902d3c8
SN
50132013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5014
d8c69a92
IC
5015 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5016 scalar load/store operations using B/H registers.
c902d3c8
SN
5017 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5018
051d0e2f
SN
50192013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5020
5021 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5022 scalar move.
5023 * config/aarch64/aarch64.c
5024 (aarch64_simd_scalar_immediate_valid_for_move): New.
5025 * config/aarch64/aarch64-protos.h
5026 (aarch64_simd_scalar_immediate_valid_for_move): New.
5027 * config/aarch64/constraints.md (Dh, Dq): New.
5028 * config/aarch64/iterators.md (hq): New.
5029
0ee1e3d9
EB
50302013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5031
5032 * reorg.c (get_branch_condition): Deal with conditional returns.
5033 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5034
136fb3f7
WM
50352013-04-01 Wei Mi <wmi@google.com>
5036
5037 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5038 Truncate operand 2 using %b asm operand modifier.
5039 (*<shift_insn><mode>3_mask): Ditto.
5040 (*<rotate_insn><mode>3_mask): Ditto.
5041
6388c738
SB
50422013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5043
5044 PR middle-end/56798
5045 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5046
f7a4d826
KK
50472013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5048
5049 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5050 of next_real_insn.
5051 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5052
4b943a49
LC
50532013-03-30 Lawrence Crowl <crowl@google.com>
5054
5055 * dse.c (clear_alias_sets): Remove never set.
5056 (disqualified_clear_alias_sets): Remove never set.
5057 (clear_alias_mode_pool): Remove never set.
5058 (dse_step0): Remove condition that is never true.
5059 (canon_address): Remove condition that is never true.
5060 (dse_step7): Remove condition that is never true.
5061 (rest_of_handle_dse): Remove condition that is never true.
5062 (rest_of_handle_dse::did_global): Remove never read from above.
5063 (dse_step2_spill): Remove never called from above.
5064 (dse_step5_spill): Remove never called from above.
5065
39718607
SB
50662013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5067
da5c6bde
SB
5068 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5069 JUMP_TABLE_DATA changes.
5070 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5071 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5072 (Insns) <jump_table_data>: New entry.
5073 * doc/tm.texi: Regenerate.
5074
39718607
SB
5075 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5076
5077 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5078 for table jump at the end of a basic block using tablejump_p.
5079 * targhooks.c (default_invalid_within_doloop): Likewise.
5080 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5081 target hook implementation that is identical to the default hook.
5082 (rs6000_invalid_within_doloop): Remove.
5083
5084 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5085 unused variable from tablejump_p call.
5086
5087 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5088 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5089 (INSN_DELETED_P): Likewise.
5090 (emit_jump_table_data): New prototype.
5091 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5092 after 4th as unused.
5093 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5094 * sched-vis.c (print_insn): Likewise.
5095 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5096 insn for compatibility with back ends that use next_active_insn to
5097 identify jump table data.
5098 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5099 (remove_insn): Likewise.
5100 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5101 to be emitted.
5102 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5103 (emit_jump_table_data): New function.
5104
5105 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5106 basic block, a JUMP_TABLE_DATA never is.
5107 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5108 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5109 off from code handling real insns.
5110 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5111 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5112 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5113 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5114 is not a NONDEBUG_INSN_P.
5115 * ira-costs.c (scan_one_insn): Likewise.
5116 * jump.c (mark_all_labels): Likewise.
5117 (mark_jump_label_1): Likewise.
5118 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5119 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5120 a basic block.
5121 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5122 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5123 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5124 JUMP_TABLE_DATA_P insns.
5125 (calculate_elim_costs_all_insns): Likewise.
5126 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5127 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5128 (delete_output_reload): Code style fixups.
5129 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5130 insn flags on this non-insn.
5131 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5132 as scheduling barriers, for pre-change compatibility.
5133 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5134 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5135
5136 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5137 redundant JUMP_TABLE_DATA_P test.
5138 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5139 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5140 (frv_for_each_packet): Likewise.
5141 * config/i386/i386.c (min_insn_size): Likewise.
5142 (ix86_avoid_jump_mispredicts): Likewise.
5143 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5144 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5145 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5146 (mips16_insn_length): Robustify.
5147 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5148 (mips16_split_long_branches): Likewise.
5149 * config/pa/pa.c (pa_combine_instructions): Likewise.
5150 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5151 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5152 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5153 as contributing to pool range lengths.
5154 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5155 Remove redundant JUMP_TABLE_DATA_P test.
5156 (sh_loop_align): Likewise.
5157 (split_branches): Likewise.
5158 (sh_insn_length_adjustment): Likewise.
5159 * config/spu/spu.c (get_branch_target): Likewise.
5160
0208f7da
JH
51612013-03-29 Jan Hubicka <jh@suse.cz>
5162
5163 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5164 gcov streaming; stream hot bb threshold to ltrans.
5165 * predict.c (get_hot_bb_threshold): Break out from ....
5166 (maybe_hot_count_p): ... here.
5167 (set_hot_bb_threshold): New function.
5168 * lto-section-in.c (lto_section_name): Add profile.
5169 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5170 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5171 and data-streamer.h
5172 (histogram_entry): New structure.
5173 (histogram, histogram_pool): New global vars.
5174 (histogram_hash): New structure.
5175 (histogram_hash::hash): New method.
5176 (histogram_hash::equal): Likewise.
5177 (account_time_size): New function.
5178 (cmp_counts): New function.
5179 (dump_histogram): New function.
5180 (ipa_profile_generate_summary): New function.
5181 (ipa_profile_write_summary): New function.
5182 (ipa_profile_read_summary): New function.
5183 (ipa_profile): Decide on threshold.
e594716a
UB
5184 (pass_ipa_profile): Add ipa_profile_write_summary and
5185 ipa_profile_read_summary.
0208f7da
JH
5186 * Makefile.in (ipa.o): Update dependencies.
5187 * lto-streamer.h (LTO_section_ipa_profile): New section.
5188
5a6ccc94
GDR
51892013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5190
5191 * tree.h (VAR_P): New.
5192
39385fa6
PC
51932013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5194
5195 PR lto/56777
5196 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5197
34f0d87a
SB
51982013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5199
5200 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5201 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5202 (control_flow_insn_p): Likewise.
5203 * cfgrtl.c (duplicate_insn_chain): Likewise.
5204 * final.c (get_attr_length_1): Likewise.
5205 (shorten_branches): Likewise.
5206 (final_scan_insn): Likewise.
5207 * function.c (instantiate_virtual_regs): Likewise.
5208 * gcse.c (insert_insn_end_basic_block): Likewise.
5209 * ira-costs.c (scan_one_insn): Likewise.
5210 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5211 * lra.c (check_rtl): Likewise.
5212 * reload1.c (elimination_costs_in_insn): Likewise.
5213 * reorg.c (follow_jumps): Likewise.
5214
5215 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5216 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5217 (thumb_far_jump_used_p): Likewise.
5218 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5219 (workaround_speculation): Likewise.
5220 (add_sched_insns_for_speculation): Likewise.
5221 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5222 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5223 (frv_for_each_packet): Likewise.
5224 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5225 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5226 (final_emit_insn_group_barriers): Likewise.
5227 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5228 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5229 (mips16_insn_length): Likewise.
5230 * config/pa/pa.c (pa_reorg): Likewise.
5231 (pa_combine_instructions): Likewise.
5232 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5233 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5234 (sh_reorg): Likewise.
5235 (split_branches): Likewise.
5236 * config/spu/spu.c (get_branch_target): Likewise.
5237
5238 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5239 JUMP_TABLE_DATA_P.
5240
4ac761b0
KY
52412013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5242
39385fa6 5243 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5244 Fix declaration name.
5245
58a49189
LC
52462013-03-28 Lawrence Crowl <crowl@google.com>
5247
5248 * graphds.h (struct graph.indicies): Remove unused.
5249 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5250 (SCOP_ORIGINAL_PDDRS): Remove unused.
5251 * sese.h (extern insert_loop_close_phis): Removed unused.
5252 (extern insert_guard_phis): Removed unused.
5253 (extern ivtype_map_elt_info): Removed unused.
5254 (new_ivtype_map_elt): Removed unused.
5255 * sese.c (ivtype_map_elt_info): Removed unused.
5256
7b3b6ae4
LC
52572013-03-28 Lawrence Crowl <crowl@google.com>
5258
5259 * Makefile.in: Add several missing include dependences.
5260 (DUMPFILE_H): New.
5261 (test-dump.o): New. This object is not added to any executable,
5262 but is present for ad-hoc testing.
5263 * bitmap.c
5264 (debug (const bitmap_head_def &)): New.
5265 (debug (const bitmap_head_def *)): New.
5266 * bitmap.h
5267 (extern debug (const bitmap_head_def &)): New.
5268 (extern debug (const bitmap_head_def *)): New.
5269 * cfg.c
5270 (debug (edge_def &)): New.
5271 (debug (edge_def *)): New.
5272 * cfghooks.c
5273 (debug (basic_block_def &)): New.
5274 (debug (basic_block_def *)): New.
5275 * dumpfile.h
5276 (dump_node (const_tree, int, FILE *)): Correct source file.
5277 * dwarf2out.c
5278 (debug (die_struct &)): New.
5279 (debug (die_struct *)): New.
5280 * dwarf2out.h
5281 (extern debug (die_struct &)): New.
5282 (extern debug (die_struct *)): New.
5283 * gimple-pretty-print.c
5284 (debug (gimple_statement_d &)): New.
5285 (debug (gimple_statement_d *)): New.
5286 * gimple-pretty-print.h
5287 (extern debug (gimple_statement_d &)): New.
5288 (extern debug (gimple_statement_d *)): New.
5289 * ira-build.c
5290 (debug (ira_allocno_copy &)): New.
5291 (debug (ira_allocno_copy *)): New.
5292 (debug (ira_allocno &)): New.
5293 (debug (ira_allocno *)): New.
5294 * ira-int.h
5295 (extern debug (ira_allocno_copy &)): New.
5296 (extern debug (ira_allocno_copy *)): New.
5297 (extern debug (ira_allocno &)): New.
5298 (extern debug (ira_allocno *)): New.
5299 * ira-lives.c
5300 (debug (live_range &)): New.
5301 (debug (live_range *)): New.
5302 * lra-int.h
5303 (debug (lra_live_range &)): New.
5304 (debug (lra_live_range *)): New.
5305 * lra-lives.c
5306 (debug (lra_live_range &)): New.
5307 (debug (lra_live_range *)): New.
5308 * omega.c
5309 (debug (omega_pb_d &)): New.
5310 (debug (omega_pb_d *)): New.
5311 * omega.h
5312 (extern debug (omega_pb_d &)): New.
5313 (extern debug (omega_pb_d *)): New.
5314 * print-rtl.c
5315 (debug (const rtx_def &)): New.
5316 (debug (const rtx_def *)): New.
5317 * print-tree.c
5318 (debug_tree (tree): Move within file.
5319 (debug_raw (const tree_node &)): New.
5320 (debug_raw (const tree_node *)): New.
5321 (dump_tree_via_hooks (const tree_node *, int)): New.
5322 (debug (const tree_node &)): New.
5323 (debug (const tree_node *)): New.
5324 (debug_verbose (const tree_node &)): New.
5325 (debug_verbose (const tree_node *)): New.
5326 (debug_head (const tree_node &)): New.
5327 (debug_head (const tree_node *)): New.
5328 (debug_body (const tree_node &)): New.
5329 (debug_body (const tree_node *)): New.
5330 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5331 (debug (vec<tree, va_gc> &)): New.
5332 (debug (vec<tree, va_gc> *)): New.
5333 * rtl.h
5334 (extern debug (const rtx_def &)): New.
5335 (extern debug (const rtx_def *)): New.
5336 * sbitmap.c
5337 (debug_raw (simple_bitmap_def &)): New.
5338 (debug_raw (simple_bitmap_def *)): New.
5339 (debug (simple_bitmap_def &)): New.
5340 (debug (simple_bitmap_def *)): New.
5341 * sbitmap.h
5342 (extern debug (simple_bitmap_def &)): New.
5343 (extern debug (simple_bitmap_def *)): New.
5344 (extern debug_raw (simple_bitmap_def &)): New.
5345 (extern debug_raw (simple_bitmap_def *)): New.
5346 * sel-sched-dump.c
5347 (debug (vinsn_def &)): New.
5348 (debug (vinsn_def *)): New.
5349 (debug_verbose (vinsn_def &)): New.
5350 (debug_verbose (vinsn_def *)): New.
5351 (debug (expr_def &)): New.
5352 (debug (expr_def *)): New.
5353 (debug_verbose (expr_def &)): New.
5354 (debug_verbose (expr_def *)): New.
5355 (debug (vec<rtx> &)): New.
5356 (debug (vec<rtx> *)): New.
5357 * sel-sched-dump.h
5358 (extern debug (vinsn_def &)): New.
5359 (extern debug (vinsn_def *)): New.
5360 (extern debug_verbose (vinsn_def &)): New.
5361 (extern debug_verbose (vinsn_def *)): New.
5362 (extern debug (expr_def &)): New.
5363 (extern debug (expr_def *)): New.
5364 (extern debug_verbose (expr_def &)): New.
5365 (extern debug_verbose (expr_def *)): New.
5366 (extern debug (vec<rtx> &)): New.
5367 (extern debug (vec<rtx> *)): New.
5368 * sel-sched-ir.h
5369 (_list_iter_cond_expr): Make inline instead of static.
5370 * sreal.c
5371 (debug (sreal &)): New.
5372 (debug (sreal *)): New.
5373 * sreal.h
5374 (extern debug (sreal &)): New.
5375 (extern debug (sreal *)): New.
5376 * tree.h
5377 (extern debug_raw (const tree_node &)): New.
5378 (extern debug_raw (const tree_node *)): New.
5379 (extern debug (const tree_node &)): New.
5380 (extern debug (const tree_node *)): New.
5381 (extern debug_verbose (const tree_node &)): New.
5382 (extern debug_verbose (const tree_node *)): New.
5383 (extern debug_head (const tree_node &)): New.
5384 (extern debug_head (const tree_node *)): New.
5385 (extern debug_body (const tree_node &)): New.
5386 (extern debug_body (const tree_node *)): New.
5387 (extern debug (vec<tree, va_gc> &)): New.
5388 (extern debug (vec<tree, va_gc> *)): New.
5389 * tree-cfg.c
5390 (debug (struct loop &)): New.
5391 (debug (struct loop *)): New.
5392 (debug_verbose (struct loop &)): New.
5393 (debug_verbose (struct loop *)): New.
5394 * tree-dump.c: Add header dependence.
5395 * tree-flow.h
5396 (extern debug (struct loop &)): New.
5397 (extern debug (struct loop *)): New.
5398 (extern debug_verbose (struct loop &)): New.
5399 (extern debug_verbose (struct loop *)): New.
5400 * tree-data-ref.c
5401 (debug (data_reference &)): New.
5402 (debug (data_reference *)): New.
5403 (debug (vec<data_reference_p> &)): New.
5404 (debug (vec<data_reference_p> *)): New.
5405 (debug (vec<ddr_p> &)): New.
5406 (debug (vec<ddr_p> *)): New.
5407 * tree-data-ref.h
5408 (extern debug (data_reference &)): New.
5409 (extern debug (data_reference *)): New.
5410 (extern debug (vec<data_reference_p> &)): New.
5411 (extern debug (vec<data_reference_p> *)): New.
5412 (extern debug (vec<ddr_p> &)): New.
5413 (extern debug (vec<ddr_p> *)): New.
5414 * tree-ssa-alias.c
5415 (debug (pt_solution &)): New.
5416 (debug (pt_solution *)): New.
5417 * tree-ssa-alias.h
5418 (extern debug (pt_solution &)): New.
5419 (extern debug (pt_solution *)): New.
5420 * tree-ssa-alias.c
5421 (debug (_var_map &)): New.
5422 (debug (_var_map *)): New.
5423 (debug (tree_live_info_d &)): New.
5424 (debug (tree_live_info_d *)): New.
5425 * tree-ssa-alias.h
5426 (extern debug (_var_map &)): New.
5427 (extern debug (_var_map *)): New.
5428 (extern debug (tree_live_info_d &)): New.
5429 (extern debug (tree_live_info_d *)): New.
5430
be77e1e5
JH
54312013-03-28 Jan Hubicka <jh@suse.cz>
5432
5433 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5434
777e6976
IB
54352013-03-28 Ian Bolton <ian.bolton@arm.com>
5436
5437 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5438 record only when desired or required.
5439
9cd347ae
UB
54402013-03-28 Uros Bizjak <ubizjak@gmail.com>
5441
5442 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5443 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5444
33159866 54452013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
5446
5447 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5448 (*andsi3_compare0_uxtw): New pattern.
5449 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5450 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5451
89ab31c1
JH
54522013-03-28 Jan Hubicka <jh@suse.cz>
5453
5454 * data-streamer-in.c (streamer_read_gcov_count): New function.
5455 * gimple-streamer-out.c: Include value-prof.h.
5456 (output_gimple_stmt): Output histogram.
5457 (output_bb): Use streamer_write_gcov_count.
5458 * value-prof.c: Include data-streamer.h
5459 (dump_histogram_value): Add HIST_TYPE_MAX.
5460 (stream_out_histogram_value): New function.
5461 (stream_in_histogram_value): New function.
5462 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5463 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5464 * data-streamer-out.c (streamer_write_gcov_count): New function.
5465 (streamer_write_gcov_count_stream): New function.
5466 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5467 (lto_output_node): Likewise.
5468 (input_node, input_edge): Likewise.
5469 * lto-streamer-out.c (output_cfg): Update streaming.
5470 * lto-streamer-in.c (input_cfg): Likewise.
5471 * data-streamer.h (streamer_write_gcov_count,
5472 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5473 * gimple-streamer-in.c: Include value-prof.h
5474 (input_gimple_stmt): Input histograms.
5475 (input_bb): Update profile streaming.
5476
e594716a 54772013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 5478
33159866 5479 * genmodes.c (emit_max_int): New function.
8697be17 5480 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
5481 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5482 Added doc.
8697be17 5483 * machmode.def: Fixed comment.
89ab31c1 5484
e594716a 54852013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
5486
5487 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
5488 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5489
74946978
MP
54902013-03-28 Marek Polacek <polacek@redhat.com>
5491 Richard Biener <rguenther@suse.de>
5492
5493 PR tree-optimization/56695
5494 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5495 build signed result of a vector comparison.
5496 * tree-cfg.c (verify_gimple_comparison): Check that a result
5497 of a vector comparison has signed type.
5498
a64b9c26
RB
54992013-03-28 Richard Biener <rguenther@suse.de>
5500
5501 PR tree-optimization/37021
5502 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5503 do not restrict gaps between groups.
5504 * tree-vect-stmts.c (vectorizable_load): Properly account for
5505 a gap between groups.
5506
a9dc2a2f
EB
55072013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5508
5509 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5510 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5511 is not enabled.
5512
53cb97f9
GP
55132013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5514
5515 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5516 * doc/extend.texi (Named Address Spaces): Ditto.
5517 (Variable Attributes): Ditto.
5518
b802ae5c
KT
55192013-03-27 Kai Tietz <ktietz@redhat.com>
5520
eddae10a
KT
5521 * config.build: Add support for cygwin x64 target.
5522 * config.gcc: Likewise.
5523 * config.host: Likewise.
5524 * configure.ac: Likewise
5525 * configure: Regenerated.
b802ae5c 5526
8269de54
KT
55272013-03-27 Kai Tietz <ktietz@redhat.com>
5528
5529 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5530 * config/i386/t-cygwin-w64: New file.
5531 * config/i386/cygwin-w64.h: New file.
5532 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5533 and add support for x64-cygwin target.
5534 (CPP_SPEC): Likewise.
5535 (CXX_WRAP_SPEC_LIST): Undefine before define.
5536 (LIBGCJ_SONAME): Use 15 as version.
5537
f49b33cb
RB
55382013-03-27 Richard Biener <rguenther@suse.de>
5539
5540 PR tree-optimization/56716
5541 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5542 dumping for ref nodes.
5543
b37a6ce5
MJ
55442013-03-27 Martin Jambor <mjambor@suse.cz>
5545
5546 PR tree-optimization/55334
5547 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5548 restricted pointers to arrays.
5549
9469b9b2
GDR
55502013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5551
5552 * Makefile.in (.SUFFIXES): Add .cc.
5553 (.c.o): Apply same recipe for implicit rule .cc.o.
5554
7d24f650
RB
55552013-03-27 Richard Biener <rguenther@suse.de>
5556
5557 PR tree-optimization/37021
5558 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5559 REALPART/IMAGPART_EXPRs around the supported refs.
5560 * tree-ssa-structalias.c (find_func_aliases): Assume that
5561 floating-point values are not used to transfer pointers.
5562
2f251a05
AI
55632013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5564
39385fa6
PC
5565 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5566 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5567 * doc/tm.texi: Regenerate.
5568 * targhooks.h (default_has_ifunc_p): New.
5569 * targhooks.c (default_has_ifunc_p): Ditto.
5570 * config/linux-protos.h: New file.
5571 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
5572 this hook for linux which disables support of indirect functions in
5573 android.
39385fa6
PC
5574 * config/linux-android.c: New file.
5575 * config/t-linux-android.c: Ditto.
5576 * config.gcc: Added new object file linux-android.o.
5577 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 5578 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 5579 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
5580 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5581 doesn't support indirect functions.
5582 * configure: Regenerate.
5583
78b4e425
BC
55842013-03-27 Bin Cheng <bin.cheng@arm.com>
5585
5586 PR target/56102
5587 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5588 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5589 mult-word mode.
5590
a5ba7b92
AK
55912013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5592
5593 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5594
be624986
TG
55952013-03-27 Terry Guo <terry.guo@arm.com>
5596
5597 * config/arm/arm-cores.def: Added core cortex-r7.
5598 * config/arm/arm-tune.md: Regenerated.
5599 * config/arm/arm-tables.opt: Regenerated.
5600 * doc/invoke.texi: Added entry for core cortex-r7.
5601
0a514f47
WL
56022013-03-27 Walter Lee <walt@tilera.com>
5603
5604 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5605 double-decrement of next_scratch_regno.
5606
9332b0d2
WL
56072013-03-27 Walter Lee <walt@tilera.com>
5608
801d9b2a 5609 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
5610 input operands.
5611 (insn_v1mulus): Ditto.
5612 (insn_v2muls): Ditto.
5613
f54ea5dd
WL
56142013-03-27 Walter Lee <walt@tilera.com>
5615
e594716a 5616 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
5617 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5618
bf60f4ca
WL
56192013-03-27 Walter Lee <walt@tilera.com>
5620
e594716a 5621 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
5622 (*sibcall_value): Ditto.
5623
e3b51eeb
WL
56242013-03-27 Walter Lee <walt@tilera.com>
5625
5626 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5627 (insn_mnz_v8qi): ... this ...
5628 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5629 vector equivalent.
5630 (insn_v<n>mnz): Replaced by ...
5631 (insn_v1mnz): ... this ...
5632 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5633 equivalent.
5634 (insn_mz_<mode>): Replaced by ...
5635 (insn_mz_v8qi): ... this ...
5636 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5637 vector equivalent.
5638 (insn_v<n>mz): Replaced by ...
5639 (insn_v1mz): ... this ...
5640 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5641 equivalent.
5642
4fc7b145
EB
56432013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5644
5645 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5646
6f33817e
RM
56472013-03-26 Roland McGrath <mcgrathr@google.com>
5648
5649 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5650 than fprintf with a non-constant, non-format string.
5651
93a4145b
UB
56522013-03-26 Uros Bizjak <ubizjak@gmail.com>
5653
5654 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5655 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5656 operand 0 predicate.
5657 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5658 attribute. Use general_x64nomem_operand as operand 1 predicate.
5659 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5660 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5661 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5662 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5663 (mov<mode>_insv_1): Remove expander. Merge insn with
5664 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5665 Use general_x64nomem_operand as operand 1 predicate.
5666 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5667 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5668 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5669 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5670 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5671 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5672 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5673 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5674 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5675 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5676 (general_x64nomem_operand): Ditto.
5677
c6a9ed5a 56782013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
5679
5680 * config/rtems.opt: Add -pthread option.
5681
31b0a960
RB
56822013-03-26 Richard Biener <rguenther@suse.de>
5683
93a4145b
UB
5684 * alias.c (find_base_term): Avoid redundant and not used recursion.
5685 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
5686 (true_dependence_1): Compute and pass base terms to base_alias_check.
5687 (write_dependence_p): Likewise.
5688 (may_alias_p): Likewise.
5689
79517551
SN
56902013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5691
5692 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5693 PC-relative load in SI modes and above only.
5694
a76213b9
XQ
56952013-03-26 Xinyu Qi <xyqi@marvell.com>
5696
5697 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
5698 * config/arm/iwmmxt.md (WCGR0): Update.
5699 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 5700
37ff9355
UB
57012013-03-26 Uros Bizjak <ubizjak@gmail.com>
5702
5703 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5704 Use x64 and nox64 isa attributes.
5705
30b0317c
RB
57062013-03-26 Richard Biener <rguenther@suse.de>
5707
5708 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5709 alignment computations and rely on get_object_alignment_1
5710 for the !TYPE_P case.
5711 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5712
cbcdb140
WL
57132013-03-26 Walter Lee <walt@tilera.com>
5714
5715 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5716 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5717
dd884525 57182013-03-25 Jeff Law <law@redhat.com>
be672e08 5719
33159866
UB
5720 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5721 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
5722 wrong version of prior patch.
5723
0051d3ec
WL
57242013-03-25 Walter Lee <walt@tilera.com>
5725
5726 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5727 TILEGX_INSN_SHUFFLEBYTES1.
5728 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5729 shufflebytes1.
5730 (tilegx_builtins): Ditto.
5731 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5732
065a3605
WL
57332013-03-25 Walter Lee <walt@tilera.com>
5734
5735 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
5736 (floatunssisf2): New pattern.
5737 (floatsidf2): New pattern.
5738 (floatunssidf2): New pattern.
065a3605 5739
5b2a3c82
WL
57402013-03-25 Walter Lee <walt@tilera.com>
5741
5742 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5743 tests for constraint J, K, N, P.
5744
192ea533
WL
57452013-03-25 Walter Lee <walt@tilera.com>
5746
5747 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5748 Use indirect/pcrel encoding.
5749 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5750 Ditto.
5751
855e0d0b
SE
57522013-03-25 Steve Ellcey <sellcey@mips.com>
5753
5754 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5755 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5756 * config/mips/mips.c (mips_option_override): Set IMADD default.
5757 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5758 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5759 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5760 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5761 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5762
39e45653
JL
57632013-03-25 Jeff Law <law@redhat.com>
5764
5765 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5766 slightly to avoid creating and folding useless trees. Simplify
5767 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5768
7482c470
UB
57692013-03-25 Uros Bizjak <ubizjak@gmail.com>
5770
5771 * config/i386/i386.md (*zero_extendsidi2): Merge with
5772 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5773 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5774 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5775 targets. Clarify comment.
5776
4a53743e
MJ
57772013-03-25 Martin Jambor <mjambor@suse.cz>
5778
5779 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5780 pass-through jump functions differently.
5781 (ipa_read_jump_function): Likewise. Also use setter functions to set
5782 up jump functions.
5783
162712de
MJ
57842013-03-25 Martin Jambor <mjambor@suse.cz>
5785
5786 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5787 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5788 process it.
5789 (ipa_get_indirect_edge_target): New function.
5790 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5791 ipa_get_indirect_edge_target. Update all callers.
5792 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5793 ipa_get_indirect_edge_target_1 instead of calling
5794 ipa_get_indirect_edge_target.
5795 (create_specialized_node): Pass aggvlas to
5796 ipcp_discover_new_direct_edges.
5797
a5a4c20a
KT
57982013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5799
5800 * config/arm/arm.md (f_sels, f_seld): New types.
5801 (*cmov<mode>): New pattern.
5802 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5803 predicate.
5804
f992b9fc
KT
58052013-03-25 Kai Tietz <ktietz@redhat.com>
5806
5807 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5808 POSIX-printf for mingw-hosted builds.
5809
c16fd676
RB
58102013-03-25 Richard Biener <rguenther@suse.de>
5811
5812 PR middle-end/56694
5813 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5814 must-not-throw stmt location.
5815
5ad29f12
KT
58162013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5817
5818 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5819 Emit load-acquire versions when acq is true.
5820 (arm_emit_store_exclusive): Add rel parameter.
5821 Emit store-release versions when rel is true.
5822 (arm_split_compare_and_swap): Use acquire-release instructions
5823 instead.
5824 of barriers when appropriate.
5825 (arm_split_atomic_op): Likewise.
5826 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5827 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5828 (VUNSPEC_SLX): Likewise.
5829 (VUNSPEC_LDA): Likewise.
5830 (VUNSPEC_STL): Likewise.
5831 * config/arm/sync.md (atomic_load<mode>): New pattern.
5832 (atomic_store<mode>): Likewise.
5833 (arm_load_acquire_exclusive<mode>): Likewise.
5834 (arm_load_acquire_exclusivesi): Likewise.
5835 (arm_load_acquire_exclusivedi): Likewise.
5836 (arm_store_release_exclusive<mode>): Likewise.
5837
03a7dddb
CM
58382013-03-25 Catherine Moore <clm@codesourcery.com>
5839
5840 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5841 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5842 * config/mip/predicates.md (lwsp_swsp_operand,
5843 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5844 sb16_operand, db4_operand, db7_operand, ib3_operand,
5845 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5846 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5847 andi16_operand): New predicates.
5848 * config/mips/mips.md (compression): New attribute.
5849 (enabled): New attribute.
5850 (length): Consider compression in computing length.
5851 (shift_compression): New code attribute.
5852 (*add<mode>3): New operands. Record compression.
5853 (sub<mode>3): Likewise.
5854 (one_cmpl<mode>2): Likewise.
5855 (*and<mode>3): Likewise.
5856 (*ior<mode>3): Likewise.
5857 (unnamed pattern for xor): Likewise.
5858 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5859 (*<optab><mode>3): Likewise.
5860 (*mov<mode>_internal: Likewise.
5861 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5862 (mips_unsigned_immediate_p): New.
5863 (umips_lwsp_swsp_address_p): New.
5864 (m16_based_address_p): New.
5865 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5866 (mips_unsigned_immediate_p): New prototype.
5867 (lwsp_swsp_address_p): New prototype.
5868 (m16_based_address_p): New prototype.
5869 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5870 (mips_signed_immediate_p): New function.
5871 (m16_based_address_p): New function.
5872 (lwsp_swsp_address_p): New function.
5873 (mips_print_operand_punctuation): Recognize short delay slot insns
5874 for microMIPS.add<mode>3"
5875
f35c297f 58762013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 5877
f35c297f
KT
5878 PR target/56720
5879 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5880 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5881
051b9446
RB
58822013-03-25 Richard Biener <rguenther@suse.de>
5883
5884 PR tree-optimization/56689
5885 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5886 any edge.
5887
374001cb
RB
58882013-03-25 Richard Biener <rguenther@suse.de>
5889
5890 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5891 of bitmap.
5892 (memory_references): Likewise.
5893 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5894 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5895 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5896 (gather_mem_refs_in_loops): Fold into ...
5897 (analyze_memory_references): ... this. Move initialization
5898 to tree_ssa_lim_initialize.
5899 (fill_always_executed_in): Rename to ...
5900 (fill_always_executed_in_1): ... this.
5901 (fill_always_executed_in): Move contains_call computation to
5902 this new function from ...
5903 (tree_ssa_lim_initialize): ... here.
5904 (tree_ssa_lim): Call fill_always_executed_in.
5905
57895947
EB
59062013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5907
5908 * postreload.c (reload_combine): Fix code detecting returns.
5909
1e1b18c1
EB
59102013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5911
5912 * function.c (emit_use_return_register_into_block): On cc0 targets,
5913 do not emit the sequence between cc0 setter and user.
5914
9216baf1
KT
59152013-03-25 Kai Tietz <ktietz@redhat.com>
5916
1e1b18c1
EB
5917 * config/i386/predicates.md (local_symbolic_operand): Interpret
5918 dll-imported symbols as none-local.
9216baf1 5919
76421b44
RB
59202013-03-25 Richard Biener <rguenther@suse.de>
5921
5922 * tree-ssa-loop-im.c (struct depend): Remove.
5923 (struct lim_aux_data): Make depends a vec of gimples.
5924 (free_lim_aux_data): Adjust.
5925 (add_dependency): Likewise.
5926 (set_level): Likewise.
5927
d154bfa2
RB
59282013-03-25 Richard Biener <rguenther@suse.de>
5929
5930 PR middle-end/56434
5931 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5932 the pointer returned by calls with ECF_MALLOC set.
5933
2cd9804e
UB
59342013-03-24 Uros Bizjak <ubizjak@gmail.com>
5935
acef5fe0
UB
5936 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5937
59382013-03-24 Uros Bizjak <ubizjak@gmail.com>
5939
5940 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
5941 using MMXMODE mode iterator.
5942 (*move<mode>_internal): Merge with *movv2sf_internal and
5943 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5944
225ccc68
SB
59452013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5946
85c0f02d
SB
5947 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5948 (record_last_mem_set_info): Likewise.
5949
225ccc68
SB
5950 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5951 of XNEWVEC followed by memset.
5952 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5953
b64925dc
SB
59542013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5955
5956 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5957 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5958 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5959 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5960 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5961 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5962 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5963 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5964 BARRIER_P instead of GET_CODE.
5965
b9aaf52e
EB
59662013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5967
5968 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5969 inaccuracy in the probing code.
5970
5971 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5972 (ctrapdi4): Likewise.
5973
66de4d7c
EB
59742013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5975
5976 * calls.c (expand_call): Add missing guard to code handling return
5977 of non-BLKmode structures in MSB.
5978 * function.c (expand_function_end): Likewise.
5979
4f25c8fb
EB
59802013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5981
5982 * combine.c (try_combine): Adjust comment. Do not add the set of
5983 insn #0 if the destination indirectly is set or dies in insn #2.
5984 Tidy up code to distribute a new note.
5985
23b7850d
UB
59862013-03-22 Uros Bizjak <ubizjak@gmail.com>
5987
5988 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5989 also for alternatives 16 and 17.
5990
bed852cf
UB
59912013-03-22 Uros Bizjak <ubizjak@gmail.com>
5992
5993 * config/i386/sse.md (*mov<mode>_internal): Merge with
5994 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5995 Emit insn template depending on type attribute. Use
5996 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5997 movd instead of movq mnemonic for interunit moves. Rewrite mode
5998 attribute calculation. Remove unit attribute calculation.
5999 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6000 Set prefix_data16 attribute for DImode ssemov types.
6001 Use Ym instead of y for SSE-MMX conversion alternatives.
6002 Reorder operand constraints.
6003
1e8a7937
SB
60042013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6005
6006 * df.h (df_insn_delete): Adjust prototype.
6007 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6008 and let it decide whether mark the basic block dirty.
6009 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6010 * df-scan.c (df_insn_info_delete): New helper function, split
6011 off from df_insn_delete.
6012 (df_scan_free_bb_info): Use it.
6013 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6014 Likewise.
6015 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6016 that the insn is actually an insn and it has a non-NULL basic block.
6017 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6018
e14d094c
RB
60192013-03-22 Richard Biener <rguenther@suse.de>
6020
6021 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6022 dep_ref members.
6023 (mem_ref_alloc): Do not allocate them.
6024 (refs_independent_p): Do not query or maintain a cache.
6025
e9cf7316
RB
60262013-03-22 Richard Biener <rguenther@suse.de>
6027
6028 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6029 (gather_mem_refs_in_loops): Do not compute it.
6030 (analyze_memory_references): Do not allocate it.
6031 (tree_ssa_lim_finalize): Do not free it.
6032 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6033
f046e81b
RB
60342013-03-22 Richard Biener <rguenther@suse.de>
6035
6036 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 6037
a05c0ddf
IB
60382013-03-22 Ian Bolton <ian.bolton@arm.com>
6039
6040 * config/aarch64/aarch64.c (aarch64_print_operand): New
6041 format specifier for printing a constant in hex.
6042 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6043 format specifier for printing second operand.
6044
c00217fc
RB
60452013-03-22 Richard Biener <rguenther@suse.de>
6046
6047 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6048 bitmaps.
6049 (gather_mem_refs_in_loops): Perform store accumulation here.
6050 (create_vop_ref_mapping_loop): Remove.
6051 (create_vop_ref_mapping): Likewise.
6052 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6053 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6054 (record_indep_loop): Remove.
6055 (record_dep_loop): New function.
6056 (ref_indep_loop_p_1): Adjust to only walk over references
6057 in the loop, not its subloops.
6058 (ref_indep_loop_p): Rename to ...
6059 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6060 maintaining a more fine-grained cache.
6061 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6062 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6063
15d19bf8
RB
60642013-03-22 Richard Biener <rguenther@suse.de>
6065
6066 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6067 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6068 aggregate mem_ref_loc.
6069 (free_mem_ref_locs): Inline into ...
6070 (memref_free): ... this and adjust.
6071 (mem_ref_alloc): Adjust.
6072 (mem_ref_locs_alloc): Remove.
6073 (record_mem_ref_loc): Adjust.
6074 (get_all_locs_in_loop): Rewrite into ...
6075 (for_all_locs_in_loop): ... this iterator.
6076 (rewrite_mem_ref_loc): New functor.
6077 (rewrite_mem_refs): Use for_all_locs_in_loop.
6078 (sm_set_flag_if_changed): New functor.
6079 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6080 (ref_always_accessed): New functor.
6081 (ref_always_accessed_p): Use for_all_locs_in_loop.
6082
6f37411d
MG
60832013-03-21 Marc Glisse <marc.glisse@inria.fr>
6084
6085 * tree-pass.h (PROP_gimple_lvec): New.
6086 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6087 (init_optimization_passes): Move pass_lower_vector.
6088 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6089 PROP_gimple_lvec.
6090 (pass_lower_vector): Provide PROP_gimple_lvec.
6091 (pass_lower_vector_ssa): Likewise.
6092 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6093
511ef689
MW
60942013-03-21 Mark Wielaard <mjw@redhat.com>
6095
6096 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6097
cc1df30b
UB
60982013-03-21 Uros Bizjak <ubizjak@gmail.com>
6099
6100 * config/i386/i386.md (*movdi_internal): Disparage slightly
6101 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6102 conversion alternatives.
6103
c845cfe1
JJ
61042013-03-21 Jakub Jelinek <jakub@redhat.com>
6105
37e99116
JJ
6106 PR middle-end/48087
6107 * diagnostic.def (DK_WERROR): New kind.
6108 * diagnostic.h (werrorcount): Define.
6109 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6110 promoted to DK_ERROR, increment DK_WERROR counter instead of
6111 DK_ERROR counter.
6112 * toplev.c (toplev_main): Call print_ignored_options even if
6113 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6114 even if just werrorcount is non-zero.
6115
c845cfe1
JJ
6116 PR debug/55608
6117 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6118 on failure.
6119 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6120 (string_cst_pool_decl): New function.
6121 (optimize_one_addr_into_implicit_ptr): New function.
6122 (resolve_addr_in_expr): Optimize DWARF location expression
6123 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6124 which doesn't live in memory, but has DW_AT_location or
6125 DW_AT_const_value, or refers to a string literal, into
6126 DW_OP_GNU_implicit_pointer.
6127 (optimize_location_into_implicit_ptr): New function.
6128 (resolve_addr): If removing DW_AT_location of a variable because
6129 it was DW_OP_addr of address of the variable, but the variable doesn't
6130 live in memory, try to emit const value attribute for the initializer.
6131
08e0cda6
MG
61322013-03-21 Marc Glisse <marc.glisse@inria.fr>
6133
6134 * tree.h (VECTOR_TYPE_P): New macro.
6135 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6136 TYPE_MODE): Use it.
6137 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6138 VEC_COND_EXPR cannot be lvalues.
6139 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6140
d08633b4
MG
61412013-03-21 Marc Glisse <marc.glisse@inria.fr>
6142
6143 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6144 Restrict the transformation to equal modes.
6145
e6647190
RB
61462013-03-21 Richard Biener <rguenther@suse.de>
6147
6148 PR tree-optimization/39326
6149 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6150 (MEM_ANALYZABLE): Adjust.
6151 (record_mem_ref_loc): Move bitmap ops ...
6152 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6153 unanalyzable refs, do not record locations for it.
6154 (analyze_memory_references): Allocate ref zero as shared
6155 unanalyzable ref.
6156 (refs_independent_p): Do not test for unanalyzed mems here.
6157 (ref_indep_loop_p_1): Special-case disambiguation against
6158 the unanalyzed ref.
cc1df30b 6159 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6160
65074f54
CL
61612013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6162
6163 * config/arm/arm-protos.h (tune_params): Add
6164 prefer_neon_for_64bits field.
6165 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6166 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6167 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6168 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6169 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6170 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6171 (arm_option_override): Handle -mneon-for-64bits new option.
6172 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6173 (prefer_neon_for_64bits): Declare new variable.
6174 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6175 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6176 (arch_enabled): Handle new arch types. Remove support for onlya8
6177 and nota8.
6178 (one_cmpldi2): Use new arch names.
bc5faa5b 6179 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6180 * config/arm/arm.opt (mneon-for-64bits): Add option.
6181 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6182 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6183 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6184 of onlya8.
6185 * doc/invoke.texi (-mneon-for-64bits): Document.
6186
5a2d2a79
RB
61872013-03-21 Richard Biener <rguenther@suse.de>
6188
6189 PR tree-optimization/39326
6190 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6191 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6192 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6193
5abe1e05
RB
61942013-03-21 Richard Biener <rguenther@suse.de>
6195
6196 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6197 (vect_insert_into_interleaving_chain): Likewise.
6198 (vect_drs_dependent_in_basic_block): Inline ...
6199 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6200 split out from ...
6201 (vect_analyze_data_ref_dependence): ... here. Simplify.
6202 (vect_check_interleaving): Simplify.
6203 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6204 (vect_slp_analyze_data_ref_dependences): ... this new function.
6205 (dr_group_sort_cmp): New function.
6206 (vect_analyze_data_ref_accesses): Compute data-reference groups
6207 here instead of in vect_analyze_data_ref_dependence. Use
6208 a more efficient algorithm.
6209 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6210 vect_slp_analyze_data_ref_dependences. Call
6211 vect_analyze_data_ref_accesses earlier.
6212 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6213 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6214 (vect_slp_analyze_data_ref_dependences): New prototype.
6215
cad1735b
RB
62162013-03-21 Richard Biener <rguenther@suse.de>
6217
6218 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6219 ref is stored in the loop.
6220 (find_refs_for_sm): Walk only over all stores.
6221 (store_motion_loop): Allocate from lim_bitmap_obstack.
6222 (store_motion): Likewise.
6223
141310ef
RB
62242013-03-21 Richard Biener <rguenther@suse.de>
6225
6226 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6227 Update virtual SSA form.
6228
5022315a
RO
62292013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6230
6231 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6232 * configure: Regenerate.
6233 * config.in: Regenerate.
6234 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6235 if !HAVE_LD_EH_FRAME_CIEV3.
6236
50d4421c
RB
62372013-03-21 Richard Biener <rguenther@suse.de>
6238
6239 * tree-cfg.c (verify_expr_no_block): New function.
6240 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6241 nor DECL_VALUE_EXPR have locations with associated blocks.
6242 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6243 (clear_unused_block_pointer): Remove code dealing with
6244 blocks in DECL_DEBUG_EXPR locations.
6245
839b422f
RB
62462013-03-21 Richard Biener <rguenther@suse.de>
6247
6248 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6249 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6250 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6251 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6252 instead of DECL_DEBUG_EXPR_IS_FROM.
6253 * gimplify.c (gimplify_modify_expr): Likewise.
6254 * tree-cfg.c (verify_expr_location_1): Likewise.
6255 * tree-complex.c (create_one_component_var): Likewise.
6256 * tree-sra.c (create_access_replacement): Likewise.
6257 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6258 (clear_unused_block_pointer): Likewise.
6259 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6260 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6261 * var-tracking.c (var_debug_decl): Likewise.
6262 (track_expr_p): Likewise.
6263 * tree-inline.c (add_local_variables): Likewise. Set
6264 DECL_HAS_DEBUG_EXPR_P after copying it.
6265 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6266 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6267
fe04878d
UB
62682013-03-21 Uros Bizjak <ubizjak@gmail.com>
6269
6270 PR bootstrap/56656
6271 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6272 * configure: Regenerate.
6273 * config.in: Regenerate.
6274 * config/i386/i386.md (*movdf_internal): Use
6275 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6276 movd instead of movq mnemonic for interunit moves.
6277 (*movdi_internal): Ditto.
6278
bd059b26 62792013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
6280
6281 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6282 (abd<mode>_3): New pattern.
6283 (aba<mode>_3): New pattern.
6284 (fabd<mode>_3): New pattern.
6285
bd059b26 62862013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
6287
6288 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6289 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6290 occurrence of REGISTER_PREFIX as its empty string.
6291
4f1f78b9
JL
62922013-03-20 Jeff Law <law@redhat.com>
6293
6294 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6295 addititional equivalences for equality comparisons between an SSA_NAME
6296 and a constant where the SSA_NAME was set from a widening conversion.
6297
327a1118
WL
62982013-03-20 Walter Lee <walt@tilera.com>
6299
6300 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6301
813e0036
UB
63022013-03-20 Uros Bizjak <ubizjak@gmail.com>
6303
6304 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6305 depending on type attribute.
6306 (*movti_internal): Ditto.
6307 (*movtf_internal): Ditto.
6308 (*movxf_internal): Ditto.
6309 (*movdf_internal): Ditto.
6310 (*movsf_internal): Ditto.
6311
7cf34aae
UB
63122013-03-20 Uros Bizjak <ubizjak@gmail.com>
6313
6314 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6315 maybe_vex for sselog1 and ssemov types.
6316 (*movdi_internal): Reorder operand constraints.
6317 (*movsi_internal): Ditto. Set prefix attribute to
6318 maybe_vex for sselog1 and ssemov types.
6319 (*movtf_internal): Set prefix attribute to maybe_vex
6320 for sselog1 and ssemov types.
6321 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6322 DImode ssemov types. Reorder operand constraints.
6323 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6324 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6325 attribute for SImode ssemov types. Reorder operand constraints.
6326
19321415
MJ
63272013-03-20 Martin Jambor <mjambor@suse.cz>
6328
6329 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6330 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6331
c6d5ff83
MM
63322013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6333
6334 * config/rs6000/predicates.md (indexed_address, update_address_mem
6335 update_indexed_address_mem): New predicates.
6336 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6337 attribute for load/store instructions.
6338 * config/rs6000/dfp.md (movsd_store): Likewise.
6339 (movsd_load): Likewise.
6340 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6341 (unnamed HI->DI extend define_insn): Likewise.
6342 (unnamed SI->DI extend define_insn): Likewise.
6343 (unnamed QI->SI extend define_insn): Likewise.
6344 (unnamed QI->HI extend define_insn): Likewise.
6345 (unnamed HI->SI extend define_insn): Likewise.
6346 (unnamed HI->SI extend define_insn): Likewise.
6347 (extendsfdf2_fpr): Likewise.
6348 (movsi_internal1): Likewise.
6349 (movsi_internal1_single): Likewise.
6350 (movhi_internal): Likewise.
6351 (movqi_internal): Likewise.
6352 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6353 attribute for load/store instructions.
6354 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6355 instructions.
6356 (mov<mode>_softfloat): Likewise.
6357 (mov<mode>_hardfloat32): Likewise.
6358 (mov<mode>_hardfloat64): Likewise.
6359 (mov<mode>_softfloat64): Likewise.
6360 (movdi_internal32): Likewise.
6361 (movdi_internal64): Likewise.
6362 (probe_stack_<mode>): Likewise.
6363
63642013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6365
6366 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6367 floating point, and decimal floating point to reload iterator.
6368
6369 * config/rs6000/constraints.md (wl constraint): New constraints to
6370 return FLOAT_REGS if certain options are used to reduce the number
6371 of separate patterns that exist in the file.
6372 (wx constraint): Likewise.
6373 (wz constraint): Likewise.
6374
6375 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6376 -mdebug=reg, print wg, wl, wx, and wz constraints.
6377 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6378 Initialize the reload functions for 64-bit binary/decimal floating
6379 point types.
6380 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6381 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6382 create the buffer on the stack to overcome not having a 32-bit
6383 load and store.
6384 (rs6000_emit_move): Likewise.
6385 (rs6000_secondary_memory_needed_rtx): Likewise.
6386 (rs6000_alloc_sdmode_stack_slot): Likewise.
6387 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6388 via xxlxor, just like DFmode 0.0.
6389
6390 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6391 define as 1 if we are running on a power7 or newer.
6392 (enum r6000_reg_class_enum): Add new constraints.
6393
6394 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6395 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6396 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 6397 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
6398 (movsd splitter): Likewise.
6399 (movsd_hardfloat): Likewise.
6400 (movsd_softfloat): Likewise.
6401
6402 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6403 binary and decimal floating point moves.
6404 (fmove_ok): New attributes to combine binary and decimal floating
6405 point moves, and to combine power6x (mfpgpr) moves along normal
6406 floating moves.
6407 (real_value_to_target): Likewise.
6408 (f32_lr): Likewise.
6409 (f32_lm): Likewise.
6410 (f32_li): Likewise.
6411 (f32_sr): Likewise.
6412 (f32_sm): Likewise.
6413 (f32_si): Likewise.
6414 (movsf): Combine binary and decimal floating point moves. Combine
6415 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 6416 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
6417 (mov<mode> for SFmode/SDmode); Likewise.
6418 (SFmode/SDmode splitters): Likewise.
6419 (movsf_hardfloat): Likewise.
6420 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6421 (movsf_softfloat): Likewise.
6422 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6423
6424 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6425 wx and wz constraints.
6426
6427 * config/rs6000/constraints.md (wg constraint): New constraint to
6428 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6429
6430 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6431 constraint.
6432
6433 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6434 -mdebug=reg, print wg, wl, wx, and wz constraints.
6435 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6436 Initialize the reload functions for 64-bit binary/decimal floating
6437 point types.
6438 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6439 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6440 create the buffer on the stack to overcome not having a 32-bit
6441 load and store.
6442 (rs6000_emit_move): Likewise.
6443 (rs6000_secondary_memory_needed_rtx): Likewise.
6444 (rs6000_alloc_sdmode_stack_slot): Likewise.
6445 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6446 via xxlxor, just like DFmode 0.0.
6447
c6d5ff83
MM
6448 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6449 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6450 with other moves by using conditional constraits (wg). Use LFIWZX
6451 and STFIWX for loading SDmode on power7.
6452 (movdd splitters): Likewise.
6453 (movdd_hardfloat32): Likewise.
6454 (movdd_softfloat32): Likewise.
6455 (movdd_hardfloat64_mfpgpr): Likewise.
6456 (movdd_hardfloat64): Likewise.
6457 (movdd_softfloat64): Likewise.
6458
6459 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6460 64-bit binary and decimal floating point moves.
6461 (FMOVE64X): Likewise.
6462 (movdf): Combine 64-bit binary and decimal floating point moves.
6463 Combine power6x (mfpgpr) moves with other moves by using
6464 conditional constraits (wg).
6465 (mov<mode> for DFmode/DDmode): Likewise.
6466 (DFmode/DDmode splitters): Likewise.
6467 (movdf_hardfloat32): Likewise.
6468 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6469 (movdf_softfloat32): Likewise.
6470 (movdf_hardfloat64_mfpgpr): Likewise.
6471 (movdf_hardfloat64): Likewise.
6472 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6473 (movdf_softfloat64): Likewise.
6474 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6475 (reload_<mode>_load): Move to later in the file so they aren't in
6476 the middle of the floating point move insns.
6477 (reload_<mode>_store): Likewise.
6478
6479 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6480 constraint.
6481
6482 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6483 constraint if -mdebug=reg.
bd059b26
UB
6484 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6485 Enable using dd reload support if needed.
c6d5ff83
MM
6486
6487 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6488 binary and decimal floating point moves in rs6000.md.
6489 (movtd_internal): Likewise.
6490
6491 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6492 decimal floating point moves.
6493 (movtf): Likewise.
6494 (movtf_internal): Likewise.
6495 (mov<mode>_internal, TDmode/TFmode): Likewise.
6496 (movtf_softfloat): Likewise.
6497 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6498
6499 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6500 movdi_internal64, using wg constraint for move direct operations.
6501 (movdi_internal64): Likewise.
6502
6503 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6504 MODES_TIEABLE_P for selected modes. Print the numerical value of
6505 the various virtual registers. Use GPR/FPR first/last values,
6506 instead of hard coding the register numbers. Print which modes
6507 have reload functions registered.
bd059b26
UB
6508 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6509 settings before/after setting cpu, target and subtarget settings.
6510 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6511 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
6512 (rs6000_secondary_reload_fail): Likewise.
6513 (rs6000_secondary_reload_inner): Likewise.
6514
6515 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6516 macros for first/last GPR and FPR registers.
6517 (LAST_GPR_REGNO): Likewise.
6518 (FIRST_FPR_REGNO): Likewise.
6519 (LAST_FPR_REGNO): Likewise.
6520
6521 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6522 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6523 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6524 (vcond<mode><mode>): Likewise.
6525 (vcondu<mode><mode>): Likewise.
6526 (vector_gtu<mode>): Likewise.
6527 (vector_gte<mode>): Likewise.
6528 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 6529 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
6530 (ior<mode>3): Likewise.
6531 (and<mode>3): Likewise.
6532 (one_cmpl<mode>2): Likewise.
6533 (nor<mode>3): Likewise.
6534 (andc<mode>3): Likewise.
6535
6536 * config/rs6000/constraints.md (wt constraint): New constraint
6537 that returns VSX_REGS if TImode is allowed in VSX registers.
6538
6539 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6540 constant under VSX.
6541
6542 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6543 similar to TImode, but it is restricted to being in the GPRs.
6544
6545 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6546 TImode to occupy a single VSX register.
6547
6548 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6549 -mvsx-timode for power7/power8.
6550 (power7 cpu): Likewise.
6551 (power8 cpu): Likewise.
6552
6553 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6554 sure that TFmode/TDmode take up two registers if they are ever
6555 allowed in the upper VSX registers.
6556 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6557 registers.
6558 (rs6000_init_hard_regno_mode_ok): Likewise.
6559 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6560 constraint. Print if LRA is turned on.
6561 (rs6000_option_override_internal): Give an error if -mvsx-timode
6562 and VSX is not enabled.
6563 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6564 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6565 to reg+offset addressing. Use PTImode when checking offset
6566 addresses for validity.
6567 (reg_offset_addressing_ok_p): Likewise.
6568 (rs6000_legitimate_offset_address_p): Likewise.
6569 (rs6000_legitimize_address): Likewise.
6570 (rs6000_legitimize_reload_address): Likewise.
6571 (rs6000_legitimate_address_p): Likewise.
6572 (rs6000_eliminate_indexed_memrefs): Likewise.
6573 (rs6000_emit_move): Likewise.
6574 (rs6000_secondary_reload): Likewise.
6575 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6576 reloads to fpr registers to continue to use reg+offset addressing,
6577 but 64-bit reloads to altivec registers need reg+reg addressing.
6578 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6579 it. Treat LO_SUM like a PLUS operation.
6580 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 6581 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
6582 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6583 registers to share a register with a smaller sized type, since VSX
6584 puts scalars in the upper 64-bits.
6585 (print_operand): Add support for PTImode.
6586 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6587 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6588 registers, but don't have arithmetic support.
6589 (rs6000_memory_move_cost): Add test for VSX.
6590 (rs6000_opt_masks): Add -mvsx-timode.
6591
6592 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6593 for TImode.
6594 (VSs): Likewise.
6595 (VSr): Use wt constraint for TImode.
6596 (VSv): Drop TImode support.
6597 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6598 (vsx_movti_64bit): Likewise.
6599 (vsx_movti_32bit): Likewise.
6600 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6601 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6602 one '?' on the appropriate output constraint. Do not allow TImode
6603 logical operations on 32-bit systems.
6604 (vsx_ior<mode>3): Likewise.
6605 (vsx_xor<mode>3): Likewise.
6606 (vsx_one_cmpl<mode>2): Likewise.
6607 (vsx_nor<mode>3): Likewise.
6608 (vsx_andc<mode>3): Likewise.
6609 (vsx_concat_<mode>): Likewise.
6610 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6611
6612 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6613 OPTION_MASK_VSX_TIMODE.
6614 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6615 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6616
6617 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6618 (TI2 iterator): New iterator for TImode, PTImode.
6619 (wd mode attribute): Add values for vector types.
bd059b26
UB
6620 (movti_string): Replace TI move operations with operations for TImode
6621 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
6622 (mov<mode>_string, TImode/PTImode): Likewise.
6623 (movti_ppc64): Likewise.
6624 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6625 (TI mode splitters): Likewise.
6626
6627 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6628 constraint.
6629
1fc5eced
MG
66302013-03-20 Marc Glisse <marc.glisse@inria.fr>
6631
6632 PR tree-optimization/56355
6633 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6634 Also handle integers with undefined overflow.
6635
22c4c869
CM
66362013-03-20 Catherine Moore <clm@codesourcery.com>
6637 Maciej W. Rozycki <macro@codesourcery.com>
6638 Tom de Vries <tom@codesourcery.com>
6639 Nathan Sidwell <nathan@codesourcery.com>
6640 Iain Sandoe <iain@codesourcery.com>
6641 Nathan Froyd <froydnj@codesourcery.com>
6642 Chao-ying Fu <fu@mips.com>
6643
6644 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 6645 Document new function attributes.
22c4c869
CM
6646 * doc/invoke.texi (minterlink-compressed, mmicromips,
6647 m14k, m14ke, m14kec): Document new options.
6648 (minterlink-mips16): Update documentation.
6649 * doc/md.texi (ZC, ZD): Document new constraints.
6650 * configure.ac (gcc_cv_as_micromips): Check if linker
6651 supports the .set micromips directive.
6652 * configure: Regenerate.
6653 * config.in: Regenerate.
6654 * config/mips/mips-tables.opt: Regenerate.
6655 * config/mips/micromips.md: New file.
6656 * constraints.md (ZC, ZD): New constraints.
6657 * config/mips/predicates.md (movep_src_register): New predicate.
6658 (movep_src_operand): New predicate.
6659 (non_volatile_mem_operand): New predicate.
6660 * config/mips/mips.md (multimem): New type.
6661 (length): Differentiate between 17-bit and 18-bit branch offsets.
6662 (MOVEP1, MOVEP2): New mode iterator.
33159866 6663 (mov_<load>l): Use ZC constraint.
22c4c869
CM
6664 (mov_<load>r): Likewise.
6665 (mov_<store>l): Likewise.
6666 (mov_<store>r): Likewise.
6667 (*branch_equality<mode>_inverted): Add microMIPS support.
6668 (*branch_equality<mode>): Likewise.
6669 (*jump_absolute): Likewise.
6670 (indirect_jump_<mode>): Likewise.
6671 (tablejump_<mode>): Likewise.
6672 (<optab>_internal): Likewise.
6673 (sibcall_internal): Likewise.
6674 (sibcall_value_internal): Likewise.
6675 (prefetch): Use constraint ZD.
6676 * config/mips/mips.opt (minterlink-compressed): New option.
6677 (minterlink-mips16): Now an alias for minterlink-compressed.
6678 (mmicromips): New option.
6679 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6680 (compare_and_swap_12): Likewise.
6681 (sync_add<mode>): Likewise.
6682 (sync_<optab>_12): Likewise.
6683 (sync_old_<optab>_12): Likewise.
6684 (sync_new_<optab>_12): Likewise.
6685 (sync_nand_12): Likewise.
6686 (sync_old_nand_12): Likewise.
6687 (sync_new_nand_12): Likewise.
6688 (sync_sub<mode>): Likewise.
6689 (sync_old_add<mode>): Likewise.
6690 (sync_old_sub<mode>): Likewise.
6691 (sync_new_add<mode>): Likewise.
6692 (sync_new_sub<mode>): Likewise.
6693 (sync_<optab><mode>): Likewise.
6694 (sync_old_<optab><mode>): Likewise.
6695 (sync_new_<optab><mode>): Likewise.
6696 (sync_nand<mode>): Likewise.
6697 (sync_old_nand<mode>): Likewise.
6698 (sync_new_nand<mode>): Likewise.
6699 (sync_lock_test_and_set<mode>): Likewise.
6700 (test_and_set_12): Likewise.
6701 (atomic_compare_and_swap<mode>): Likewise.
6702 (atomic_exchange<mode>_llsc): Likewise.
6703 (atomic_fetch_add<mode>_llsc): Likewise.
6704 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6705 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6706 (umips_save_restore_pattern_p): Likewise.
6707 (umips_load_store_pair_p): Likewise.
6708 (umips_output_load_store_pair): Likewise.
6709 (umips_movep_target_p): Likewise.
6710 (umips_12bit_offset_address_p): Likewise.
6711 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6712 (mips_base_mips16): Rename this...
6713 (mips_base_compression_flags): ...to this. Update all uses.
6714 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6715 (mips_mips16_decl_p): Delete.
6716 (mips_nomips16_decl_p): Delete.
33159866 6717 (mips_get_compress_on_flags): New function.
22c4c869
CM
6718 (mips_get_compress_off_flags): New function.
6719 (mips_get_compress_mode): New function.
6720 (mips_get_compress_on_name): New function.
6721 (mips_get_compress_off_name): New function.
6722 (mips_insert_attributes): Support multiple compression types.
6723 (mips_merge_decl_attributes): Likewise.
6724 (umips_12bit_offset_address_p): New function.
6725 (mips_start_function_definition): Emit .set micromips directive.
6726 (mips_call_may_need_jalx_p): New function.
6727 (mips_function_ok_for_sibcall): Add microMIPS support.
6728 (mips_print_operand_punctuation): Support short delay slots and
6729 compact jumps.
6730 (umips_swm_mask, umips_swm_encoding): New.
6731 (umips_build_save_restore): New function.
6732 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6733 (was_mips16_p): Remove.
6734 (old_compression_mode): New.
6735 (mips_set_compression_mode): New function.
6736 (mips_set_current_function): Add microMIPS support.
6737 (mips_option_override): Likewise.
6738 (umips_save_restore_pattern_p): New function.
6739 (umips_output_save_restore): New function.
6740 (umips_load_store_pair_p_1): New function.
6741 (umips_load_store_pair_p): New function.
6742 (umips_output_load_store_pair_1): New function.
6743 (umips_output_load_store_pair): New function.
6744 (umips_movep_target_p) New function.
6745 (mips_prepare_pch_save): Add microMIPS support.
6746 * config/mips/mips.h (TARGET_COMPRESSION): New.
6747 (TARGET_CPU_CPP_BUILTINS): Update macro
6748 to use new compression flags and to support microMIPS.
6749 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6750 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6751 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6752 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6753 (ASM_SPEC): Support mmicromips and mno-micromips.
6754 (M16STORE_REG_P): New macro.
6755 (MIPS_CALL): Support TARGET_MICROMIPS.
6756 (MICROMIPS_J): New macro.
6757 (mips_base_mips16): Rename this...
6758 (mips_base_compression_flags): ...to this.
6759 (UMIPS_12BIT_OFFSET_P): New macro.
6760 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6761 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
67622013-03-20 Richard Biener <rguenther@suse.de>
6763
6764 PR tree-optimization/56661
6765 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6766 the result does not have to be distinct.
6767
54714c68
RB
67682013-03-20 Richard Biener <rguenther@suse.de>
6769
6770 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6771 remap_gimple_op_r.
6772
cca1130d
BS
67732013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6774 Steven Bosscher <steven@gcc.gnu.org>
6775
6776 PR rtl-optimization/56605
6777 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6778
2a930377
UB
67792013-03-20 Uros Bizjak <ubizjak@gmail.com>
6780
6781 PR bootstrap/56656
6782 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6783 that require movd instead of movq.
6784
d6d305fe
RB
67852013-03-20 Richard Biener <rguenther@suse.de>
6786
6787 * tree-ssa-structalias.c (struct variable_info): Add pointer
6788 to the first field of an aggregate with sub-vars. Make
6789 this and the pointer to the next subfield its ID.
6790 (vi_next): New function.
6791 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6792 storedanything_id, integer_id): Increment by one.
6793 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6794 get_call_clobber_vi): Adjust.
6795 (solution_set_expand): Simplify and speedup.
6796 (solution_set_add): Inline into ...
6797 (set_union_with_increment): ... this. Adjust accordingly.
6798 (do_sd_constraint): Likewise.
6799 (do_ds_constraint): Likewise.
6800 (do_complex_constraint): Simplify.
6801 (build_pred_graph): Adjust.
6802 (solve_graph): Likewise. Simplify and speedup.
6803 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6804 get_constraint_for_component_ref, get_constraint_for_1,
6805 first_vi_for_offset, first_or_preceding_vi_for_offset,
6806 create_function_info_for, create_variable_info_for_1,
6807 create_variable_info_for, intra_create_variable_infos): Adjust.
6808 (init_base_vars): Push NULL for ID zero.
6809 (compute_points_to_sets): Adjust.
6810
a271b42d
RB
68112013-03-20 Richard Biener <rguenther@suse.de>
6812
6813 * cfgloop.c (verify_loop_structure): Streamline and avoid
6814 ICEing on corrupt loop tree.
6815 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6816 loop tree.
6817
ebd65954
RB
68182013-03-20 Richard Biener <rguenther@suse.de>
6819
6820 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6821 check whether an SSA update is needed.
6822
4547b7ee
RS
68232013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6824
6825 * config/mips/constraints.md (T): Rename to...
6826 (Yf): ...this.
6827 (U): Rename to...
6828 (Yd): ...this.
6829 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6830 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6831
0b8cdc58
IB
68322013-03-19 Ian Bolton <ian.bolton@arm.com>
6833
6834 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6835 (*subsi3_carryin_uxtw): Likewise.
6836
5977a10d
IB
68372013-03-19 Ian Bolton <ian.bolton@arm.com>
6838
6839 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6840 (*rorsi3_insn_uxtw): Likewise.
6841
bd83ff2c
IB
68422013-03-19 Ian Bolton <ian.bolton@arm.com>
6843
6844 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6845 (*extrsi5_insn_uxtw): Likewise.
6846
ba65123c
RB
68472013-03-19 Richard Biener <rguenther@suse.de>
6848
6849 PR tree-optimization/56273
6850 * passes.c (init_optimization_passes): Move second VRP after DOM.
6851
2eac0476
UB
68522013-03-19 Uros Bizjak <ubizjak@gmail.com>
6853
6854 * config/i386/i386.md (*movti_internal): Merge from
6855 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6856 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6857 nox64 isa attributes.
6858
6e55eda7
RB
68592013-03-18 Richard Biener <rguenther@suse.de>
6860
6861 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6862 (unite): Likewise.
6863 (merge_node_constraints): Likewise.
6864 (build_succ_graph): Likewise.
6865 (valid_graph_edge): Inline into single caller.
6866 (unify_nodes): Likewise. Use bitmap_set_bit return value
6867 and cache varinfo.
6868 (scc_visit): Fix formatting and variable use.
6869 (do_sd_constraint): Use gcc_checking_assert.
6870 (do_ds_constraint): Likewise.
6871 (do_complex_constraint): Likewise.
6872 (condense_visit): Likewise. Cleanup.
6873 (dump_pred_graph): New function.
6874 (perform_var_substitution): Dump the pred-graph before
6875 variable substitution.
6876 (find_equivalent_node): Use gcc_checking_assert.
6877 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6878
4bdd44c4
RB
68792013-03-18 Richard Biener <rguenther@suse.de>
6880
6881 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6882 Remove cond_expr_stmt_list argument and do not gimplify the
6883 built expression.
6884 (vect_loop_versioning): Adjust.
6885 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6886 Cleanup to use less temporaries.
6887 (vect_create_data_ref_ptr): Cleanup.
6888
38c56a5b
JJ
68892013-03-18 Jakub Jelinek <jakub@redhat.com>
6890
6891 PR tree-optimization/56635
6892 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6893 require types_compatible_p types.
6894
20b2e6a0
NC
68952013-03-18 Nick Clifton <nickc@redhat.com>
6896
a6178a25
NC
6897 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6898 spurious backslash.
6899
20b2e6a0
NC
6900 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6901 Add missing line to comment describing function.
6902
92608d0e
RB
69032013-03-18 Richard Biener <rguenther@suse.de>
6904
6905 PR tree-optimization/56210
6906 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6907 Handle string / character search functions.
6908 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6909
31348d52
RB
69102013-03-18 Richard Biener <rguenther@suse.de>
6911
6912 PR middle-end/56483
6913 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6914 and implement properly.
6915 * gimple.h (gimple_cond_single_var_p): Remove.
6916
fcac74a1
RB
69172013-03-18 Richard Biener <rguenther@suse.de>
6918
6919 * tree-data-ref.h (find_data_references_in_loop): Declare.
6920 * tree-data-ref.c (get_references_in_stmt): Use a stack
6921 vector pre-allocated in the callers.
6922 (find_data_references_in_stmt): Adjust.
6923 (graphite_find_data_references_in_stmt): Likewise.
6924 (create_rdg_vertices): Likewise.
6925 (find_data_references_in_loop): Export.
6926 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6927 Compute dependences here...
6928 (vect_analyze_data_refs): ...not here. When we encounter
6929 a non-vectorizable data reference in basic-block vectorization
6930 truncate the data reference vector. Do not bother to
6931 fixup data-dependence information for gather loads.
6932 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6933 of data references, as reported.
6934
0d5a1b56
RB
69352013-03-18 Richard Biener <rguenther@suse.de>
6936
6937 PR tree-optimization/3713
6938 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6939 has_constants and expr.
6940 (stmt_has_constants): Properly valueize SSA names when deciding
6941 whether the stmt has constants.
6942
789c34e3
RB
69432013-03-18 Richard Biener <rguenther@suse.de>
6944
6945 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6946 whole function when there is nothing to do.
6947 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6948 * tree-vectorizer.c (vectorize_loops): Update virtual and
6949 loop-closed SSA once.
6950 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6951
076b4605
RB
69522013-03-18 Richard Biener <rguenther@suse.de>
6953
6954 PR middle-end/56113
6955 * domwalk.c (bb_postorder): New global static.
6956 (cmp_bb_postorder): New function.
6957 (walk_dominator_tree): Replace scheme imposing an order for
6958 visiting dominator sons by one sorting them at the time they
6959 are pushed on the stack.
6960
bdb01696
RB
69612013-03-18 Richard Biener <rguenther@suse.de>
6962
6963 PR tree-optimization/39326
6964 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6965 (struct mem_ref): Replace mem member with ao_ref typed member.
6966 (MEM_ANALYZABLE): Adjust.
6967 (memref_eq): Likewise.
6968 (mem_ref_alloc): Likewise.
6969 (gather_mem_refs_stmt): Likewise.
6970 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6971 (execute_sm_if_changed_flag_set): Adjust.
6972 (execute_sm): Likewise.
6973 (ref_always_accessed_p): Likewise.
6974 (refs_independent_p): Likewise.
6975 (can_sm_ref_p): Likewise.
6976
12d2dc5e
JJ
69772013-03-18 Jakub Jelinek <jakub@redhat.com>
6978
6979 PR c/56566
6980 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6981 return 1 even for !unsignedp.
6982
286fb677
UB
69832013-03-17 Uros Bizjak <ubizjak@gmail.com>
6984
6985 * config/i386/i386.md (isa): Add x64 and nox64.
6986 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6987 (*pushtf): Enable *roF alternative for x64 isa only.
6988 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6989 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6990 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6991 (*movtf_internal): Merge from *movtf_internal_rex64 and
6992 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6993 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6994 nox64 isa attributes.
6995 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6996 nox64 isa attributes.
6997 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6998
88b97037
UB
69992013-03-17 Uros Bizjak <ubizjak@gmail.com>
7000
7001 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7002
9f4f1735
JJ
70032013-03-17 Jakub Jelinek <jakub@redhat.com>
7004
7005 PR target/56640
7006 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7007 class names. Remove trailing comma after "ALL_REGS".
7008
48f4a6fa
JH
70092013-03-16 Jan Hubicka <jh@suse.cz>
7010
7011 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7012 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7013 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7014 of cgraph_get_create_node.
7015 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7016
98e81123
JM
70172013-03-16 Jason Merrill <jason@redhat.com>
7018
7019 PR debug/49090
7020 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7021 with DW_AT_default_value.
7022
8a298c04
JJ
70232013-03-16 Jakub Jelinek <jakub@redhat.com>
7024
7025 * BASE-VER: Set to 4.9.0.
7026
4323afa0
AK
70272013-03-14 Andi Kleen <ak@linux.intel.com>
7028
7029 PR target/56619
7030 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7031 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7032 Document _x* TSX intrinsics.
7033
b3c0d469
JJ
70342013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7035 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
7036
7037 * configure.ac: Add MicroBlaze TLS support detection.
7038 * configure: Regenerate.
88b97037
UB
7039 * config/microblaze/microblaze-protos.h
7040 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7041 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7042 * config/microblaze/microblaze.c (microblaze_address_type): Add
7043 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
7044 (microblaze_address_info): Add tls_reloc.
7045 (TARGET_HAVE_TLS): Define.
7046 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7047 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
7048 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7049 load_tls_operand, microblaze_call_tls_get_addr,
7050 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7051 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7052 (get_base_reg): Use microblaze_tls_symbol_p.
7053 (microblaze_classify_address): Handle TLS.
88b97037
UB
7054 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7055 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7056 (microblaze_legitimize_address): Handle TLS.
7057 (microblaze_address_insns): Handle ADDRESS_TLS.
7058 (pic_address_needs_scratch): Handle TLS.
7059 (print_operand_address): Handle TLS.
7060 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7061 (microblaze_expand_move): Handle TLS.
88b97037
UB
7062 (microblaze_legitimate_constant_p): Check
7063 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7064 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7065 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7066 (PIC_OFFSET_TABLE_REGNUM): Set.
7067 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7068 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7069 (addsi3, movsi_internal2, movdf_internal): Update constraints
7070 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7071 (move_operand): Redefine as move_src_operand,
7072 check microblaze_tls_referenced_p.
8cc9a5a5 7073
d803a491
IB
70742013-03-14 Ian Bolton <ian.bolton@arm.com>
7075
7076 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7077 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7078
a8504f22
IB
70792013-03-14 Ian Bolton <ian.bolton@arm.com>
7080
7081 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7082 CC mode for AND.
7083
df2dfaea
JJ
70842013-03-14 Jakub Jelinek <jakub@redhat.com>
7085
fbd28bc3
JJ
7086 PR tree-optimization/53265
7087 * common.opt (Waggressive-loop-optimizations): New option.
7088 * tree-ssa-loop-niter.c: Include tree-pass.h.
7089 (do_warn_aggressive_loop_optimizations): New function.
7090 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7091 if number_of_latch_executions returned constant.
7092 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7093 early. If number_of_latch_executions returned constant, set
7094 nb_iterations_upper_bound back to it.
7095 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7096 field.
7097 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7098 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7099
df2dfaea
JJ
7100 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7101 (MULTILIB_OSDIRNAMES): Set.
7102 * genmultilib: If defaultosdirname doesn't start with :: , set
7103 defaultosdirname2 instead, clear it and emit two . multilib_raw
7104 entries instead of just one.
7105
ee0d2b68
KK
71062013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7107
7108 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7109 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7110 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7111 (SUBTARGET_OVERRIDE_OPTIONS): New.
7112
decc676e
OE
71132013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7114
7115 PR target/49880
7116 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7117 (musermode): Convert to Var(TARGET_USERMODE).
7118 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7119 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7120 * config/sh/sh.c (sh_option_override): Use
7121 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7122 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7123 condition.
7124 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7125 TARGET_SH4.
7126 (udivsi3_i4_single, divsi3_i4_single): Use
7127 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7128
f4b719c7
DK
71292013-03-13 Dave Korn <dave.korn.cygwin@....>
7130
7131 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7132 default setting.
7133
c40eced0
RB
71342013-03-13 Richard Biener <rguenther@suse.de>
7135
7136 PR tree-optimization/56608
7137 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7138 calls when vectorizing basic-blocks.
7139
1bfa5973
JJ
71402013-03-13 Jakub Jelinek <jakub@redhat.com>
7141
7142 PR plugins/45078
7143 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7144 tm_file.
7145
6fcf5434
JJ
71462013-03-12 Jakub Jelinek <jakub@redhat.com>
7147
7148 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7149
4f38fa8c
JH
71502013-03-11 Jan Hubicka <jh@suse.cz>
7151
7152 PR lto/56557
7153 * lto-streamer-out.c (output_symbol_p): Skip references from
7154 constructors of external variables.
7155
c5c5ba89
JH
71562013-03-11 Jan Hubicka <jh@suse.cz>
7157
7158 PR middle-end/56571
7159 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7160 from pseudos.
7161 * emit-rtl.c (verify_rtx_sharing): Likewise.
7162 (copy_insn_1): Likewise.
7163 * rtl.c (copy_rtx): Likewise.
7164
c2a939b1
GJL
71652013-03-11 Georg-Johann Lay <avr@gjlay.de>
7166
7167 PR target/56591
7168 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7169 output_operand_lossage message.
88b97037 7170
3c3279fb
RE
71712013-03-11 Richard Earnshaw <rearnsha@arm.com>
7172
7173 PR target/56470
7174 * arm.c (shift_op): Validate RTL pattern on the fly.
7175 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7176 the RTL.
7177
aef5ef9d
JDA
71782013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7179
7180 PR target/56347
7181 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7182 new call patterns that clobber %fr12.
7183 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7184 split and postreload patterns.
7185 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7186 registers %fr12 and %fr12R as call used.
7187
456610d3
SB
71882013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7189
7190 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7191 (canon_address, record_store, replace_read, check_mem_read_rtx,
7192 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7193 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7194 rest_of_handle_dse): Likewise.
7195
4b1baac8
RS
71962013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7197
7198 PR middle-end/56524
7199 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7200 Add base_optabs.
7201 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7202 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7203 (save_optabs_if_changed): Replace with...
7204 (init_tree_optimization_optabs): ...this.
7205 * optabs.c (save_optabs_if_changed): Rename to...
7206 (init_tree_optimization_optabs): ...this. Take the optimization node
7207 as argument. Do nothing if the base optabs are already correct.
7208 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7209 to recompute optabs.
7210 * function.h (function): Remove optabs field.
7211 * function.c (invoke_set_current_function_hook): Call
7212 init_tree_optimization_optabs. Use the result to initialize
7213 this_fn_optabs.
7214
b7a78683
AH
72152013-02-27 Aldy Hernandez <aldyh@redhat.com>
7216
7217 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7218 if GTMA_HAS_NO_INSTRUMENTATION.
7219 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7220 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7221 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7222 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7223 GTMA_HAS_NO_INSTRUMENTATION.
7224
6384c29b
JJ
72252013-03-08 Jakub Jelinek <jakub@redhat.com>
7226
7227 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7228 libasan_preinit.o.
7229
ecd4f20a
MP
72302013-03-08 Marek Polacek <polacek@redhat.com>
7231 Jakub Jelinek <jakub@redhat.com>
7232
7233 PR tree-optimization/56478
7234 * predict.c (is_comparison_with_loop_invariant_p): Change the
7235 type of loop_step to tree.
7236 (predict_loops): Adjust.
7237 (predict_iv_comparison): Perform the computations on double_ints.
7238
64366d35
RB
72392013-03-08 Richard Biener <rguenther@suse.de>
7240
7241 PR tree-optimization/56570
7242 * tree-cfg.c (verify_expr_location_1): Verify locations for
7243 DECL_DEBUG_EXPR.
7244 * tree-sra.c (create_access_replacement): Strip locations
7245 from DECL_DEBUG_EXPRs.
7246
a9d5a059
RB
72472013-03-08 Richard Biener <rguenther@suse.de>
7248
7249 * tree-inline.c (expand_call_inline): Do not associate
7250 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7251 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7252
b7aa4e9a
RB
72532013-03-08 Richard Biener <rguenther@suse.de>
7254
7255 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7256 or block changes with -Og. Fix for location / block encoding
7257 changes and PHI arguments with locations.
7258
c4c2f9fa
SB
72592013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7260
7261 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7262 for all counters.
7263 (struct output_info): Likewise.
7264 (register_overhead): Remove bad gcc_assert.
7265 (bitmap_find_bit): If there is only a single bitmap element, do not
7266 count a miss as a search.
7267 (print_statistics): Update for counter type changes.
7268 (dump_bitmap_statistics): Likewise. Print headers such that they
7269 are properly lined up with the printed counters.
7270
5bf6606a
JJ
72712013-03-07 Jakub Jelinek <jakub@redhat.com>
7272
7273 PR tree-optimization/56559
7274 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7275 check that it has only a single use.
7276
2c653d46
RB
72772013-03-07 Richard Biener <rguenther@suse.de>
7278
7279 * doc/invoke.texi (fwhole-program): Discourage use in combination
7280 with -flto.
7281
a72d8780
JJ
72822013-03-06 Jakub Jelinek <jakub@redhat.com>
7283
01a454df
JJ
7284 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7285
c1781047
JJ
7286 PR tree-optimization/56539
7287 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7288 instead of GSI_CONTINUE_LINKING as last argument to
7289 force_gimple_operand_gsi. Adjust function comment.
7290
9772c47a
JJ
7291 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7292 aarch64-cores.def.
7293
a72d8780
JJ
7294 PR middle-end/56548
7295 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7296 promoted mode, convert the result back to the original mode.
7297
fa5556de
RB
72982013-03-06 Richard Biener <rguenther@suse.de>
7299
7300 PR middle-end/56294
7301 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7302 (insert_updated_phi_nodes_compare_uids): New function.
7303 (update_ssa): Sort symbols_to_rename after UID before
7304 traversing it to insert PHI nodes.
7305
010403d1
RB
73062013-03-06 Richard Biener <rguenther@suse.de>
7307
7308 PR middle-end/50494
7309 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7310 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7311
7312 Revert
7313 2013-02-13 Richard Biener <rguenther@suse.de>
7314
7315 PR lto/50494
7316 * varasm.c (output_constant_def_1): Get the decl representing
7317 the constant as argument.
7318 (output_constant_def): Wrap output_constant_def_1.
7319 (make_decl_rtl): Use output_constant_def_1 with the decl
7320 representing the constant.
7321 (build_constant_desc): Optionally re-use a decl already
7322 representing the constant.
7323 (tree_output_constant_def): Adjust.
7324
3c27ce4c
JY
73252013-03-06 Joey Ye <joey.ye@arm.com>
7326
7327 PR lto/50293
7328 * gcc.c (convert_white_space): New function.
7329 (main): Handles white space in function name.
7330
8f6d1c86
OE
73312013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7332
7333 PR target/56529
7334 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7335 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7336 to SH_DIV_CALL_TABLE for TARGET_SH2.
7337 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7338 list.
7339 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7340 call-table options.
7341
798a209f
SA
73422013-03-05 Sterling Augustine <saugustine@google.com>
7343 Cary Coutant <ccoutant@google.com>
7344
7345 PR debug/55364
7346 * dwarf2out.c (resolve_addr): Don't call
7347 remove_loc_list_addr_table_entries a second time for the same
7348 expression.
7349
6cfa417f 73502013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 7351
6cfa417f
JJ
7352 PR debug/56510
7353 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7354 (avoid_complex_debug_insns): New function.
7355 (expand_debug_locations): Call it.
7356
7357 PR rtl-optimization/56484
7358 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7359 lifetimes of hard registers on small register class machines.
7360
73612013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7362
7363 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 7364 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 7365 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
7366 fast_interrupt.
7367 (microblaze_fast_interrupt_function_p): New function.
7368 (microblaze_is_interrupt_handler): Rename to
7369 microblaze_is_interrupt_variant and add fast_interrupt check.
7370 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7371 (save_restore_insns): Likewise.
7372 (compute_frame_size): Likewise.
7373 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7374 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
7375 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7376 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
7377 microblaze_is_interrupt_variant.
7378
731aefac
KT
73792013-03-05 Kai Tietz <ktietz@redhat.com>
7380
7381 * sdbout.c (sdbout_one_type): Switch to current function's section
7382 supporting cold/hot.
7383
a72d8780 73842013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
7385
7386 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7387 -mxl-reorder.
7388
334e71e8
JJ
73892013-03-05 Jakub Jelinek <jakub@redhat.com>
7390
0b50e654
JJ
7391 PR middle-end/56461
7392 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7393 if VALGRIND_GET_VBITS is defined, temporarily make object
7394 memory all defined, and restore previous valgrind addressability
7395 and definability afterwards. Free this_object at the end.
7396
4ccf8f43
JJ
7397 PR middle-end/56461
7398 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7399 right before calling lra_create_live_ranges, also call it
7400 when clearing live_p. Only call lra_clear_live_ranges
7401 at the end if live_p.
7402
334e71e8
JJ
7403 PR middle-end/56461
7404 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7405
9ca966ca
RB
74062013-03-05 Richard Biener <rguenther@suse.de>
7407
7408 PR tree-optimization/56521
7409 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7410 value-id.
7411
d273b176
SB
74122013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7413
7414 PR c++/55135
7415 * except.h (remove_unreachable_eh_regions): New prototype.
7416 * except.c (remove_eh_handler_splicer): New function, split out
7417 of remove_eh_handler.
7418 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7419 warning about running it on many EH regions one at a time.
7420 (remove_unreachable_eh_regions_worker): New function, walk the
7421 EH tree in depth-first order and remove non-marked regions.
7422 (remove_unreachable_eh_regions): New function.
7423 * tree-eh.c (mark_reachable_handlers): New function, split out
7424 from remove_unreachable_handlers.
7425 (remove_unreachable_handlers): Use mark_reachable_handlers and
7426 remove_unreachable_eh_regions.
7427 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7428 and remove_unreachable_eh_regions.
7429
5e7f1aef
RB
74302013-03-05 Richard Biener <rguenther@suse.de>
7431
7432 PR middle-end/56525
7433 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7434 not freeing them until the end.
7435
f276b762
AK
74362013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7437
7438 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7439
12a43ab8
RB
74402013-03-05 Richard Biener <rguenther@suse.de>
7441
7442 PR tree-optimization/56270
7443 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7444 of loads after scheduling an SLP instance.
7445
93675444
JJ
74462013-03-05 Jakub Jelinek <jakub@redhat.com>
7447
db4138e3
JJ
7448 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7449 tic6x.exp.
7450 (check_gcc_parallelize): Run guality.exp as a separate job from
7451 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7452 struct-layout-1.exp with stackalign.exp.
7453
dd3d1ec0
JJ
7454 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7455
b8d381a3
JJ
7456 PR middle-end/56461
7457 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7458 load_index sbitmap even if some bit in it isn't set.
7459
b4f9786b
JJ
7460 PR middle-end/56461
7461 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7462 (discover_iteration_bound_by_body_walk): Change queues to
7463 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7464 spelling in comment. Call safe_push on queues[bound_index] directly.
7465 Release queues[queue_index] in every iteration unconditionally.
7466 Release bounds vector.
7467
93675444
JJ
7468 PR middle-end/56461
7469 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7470 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7471 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7472 inner_phis vector.
7473
3e492e9c
RB
74742013-03-05 Richard Biener <rguenther@suse.de>
7475
7476 PR lto/56515
7477 * tree-inline.c (remap_blocks_to_null): New function.
7478 (expand_call_inline): When expanding a call stmt without
7479 an associated block inline remap all callee blocks to NULL.
7480
a5d1569a
JJ
74812013-03-05 Jakub Jelinek <jakub@redhat.com>
7482
86efb5cd
JJ
7483 PR rtl-optimization/56494
7484 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7485 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7486 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7487
85f5dbea
JJ
7488 PR middle-end/56461
7489 * sel-sched-ir.c (free_sched_pools): Release
7490 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7491 if succs_info_pool.max_top isn't -1.
7492
a5d1569a
JJ
7493 PR bootstrap/56509
7494 * opts.c (opts_obstack, opts_concat): Moved to...
7495 * opts-common.c (opts_obstack, opts_concat): ... here.
7496
4432aa6c
JJ
74972013-03-04 Jakub Jelinek <jakub@redhat.com>
7498
7499 PR middle-end/56461
7500 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7501
f3a1fb91
MJ
75022013-03-04 Martin Jambor <mjambor@suse.cz>
7503
7504 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7505 all appropriate places.
7506
22110e6c
EB
75072013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7508
7509 PR tree-optimization/56424
7510 * ipa-split.c (split_function): Do not set the RSO flag if result is
7511 not by reference and its type is a register type.
7512
a72d8780 75132013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 7514
88b97037 7515 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 7516 (microblaze_legitimate_pic_operand): Likewise
88b97037 7517 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
7518 new function microblaze_legitimate_pic_operand
7519 * config/microblaze/microblaze-protos.h
7520 (microblaze_legitimate_pic_operand): Declare.
7521
a72d8780 75222013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 7523
a72d8780 7524 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 7525 New predicate for supported rtx code types.
a72d8780 7526 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
7527 call_insn_simple_operand predicate.
7528
541d9ac8
JJ
75292013-03-04 Jakub Jelinek <jakub@redhat.com>
7530
5eb010bc
JJ
7531 PR middle-end/56461
7532 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7533 partitions.ordered_remove.
7534
30862efc
JJ
7535 PR middle-end/56461
7536 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7537 vec_oprnds0.create (1) for modifier == NONE.
7538
8930f723
JJ
7539 PR middle-end/56461
7540 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7541 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7542 vec_oprnds1 right before pushing anything to it for
7543 scalar_shift_arg.
7544
541d9ac8
JJ
7545 PR middle-end/56461
7546 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7547 set nbbs to 0 instead of having separate code path.
7548 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7549 instead of false as last argument if returning NULL.
7550
7aa7f2e3
SL
75512013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7552
7553 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7554 the attribute is now called "target" instead of "option".
7555 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7556 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7557 attribute/pragma name for TARGET_OPTION_VALID_P and
7558 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7559 * doc/tm.texi: Regenerated.
7560
8930f723 75612013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 7562
8930f723 7563 * config/microblaze/microblaze.c:
cb8a1637 7564 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
7565 * config/microblaze/microblaze.h: Add -mxl-reorder to
7566 DRIVER_SELF_SPECS.
7567 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7568 instructions emitted if TARGET_REORDER.
88b97037
UB
7569 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7570 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 7571 separately.
cb8a1637 7572
4dc1d68c
XDL
75732013-03-01 Xinliang David Li <davidxl@google.com>
7574
7575 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7576 walk length.
7577
689eaba3
JJ
75782013-03-01 Jakub Jelinek <jakub@redhat.com>
7579
9d676bf6
JJ
7580 PR middle-end/56461
7581 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7582 vector even when returning true. Fix up function comment formatting.
7583
caff7edf
JJ
7584 PR middle-end/56461
7585 * ira-build.c (ira_loop_nodes_count): New variable.
7586 (create_loop_tree_nodes): Initialize it.
7587 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7588
b6b9227d
JJ
7589 PR middle-end/56461
7590 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7591 method on dr_chain and result_chain.
7592 * tree-vect-stmts.c (vectorizable_store): Only call
7593 result_chain.create if j == 0.
7594
689eaba3
JJ
7595 PR middle-end/56461
7596 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7597 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7598 before overwriting it.
7599
40bf31ed
TB
76002013-03-01 Tobias Burnus <burnus@net-b.de>
7601
7602 * doc/extended.texi (C Extensions): Change order in @menu
7603 to match @node.
7604 (Other MIPS Built-in Functions): Move last MIPS entry before
7605 "picoChip Built-in Functions".
7606 (SH Built-in Functions): Move after RX Built-in Functions.
7607 * doc/gcc.texi (Introduction): Change order in @menu
7608 to match @node.
7609 * doc/md.texi (Constraints): Ditto.
7610 * gty.texi (Type Information): Ditto.
7611 (User-provided marking routines for template types): Make
7612 subsection.
7613 * doc/invoke.texi (AArch64 Options): Move before
7614 "Adapteva Epiphany Options".
7615
e664c61c
KS
76162013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7617 Jakub Jelinek <jakub@redhat.com>
7618
7619 PR sanitizer/56454
7620 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7621 no_address_safety_analysis attribute.
7622 * doc/extend.texi (no_address_safety_attribute): Rename to
7623 no_sanitize_address attribute, mention no_address_safety_analysis
7624 attribute as deprecated alias.
7625
37b5ec8f
JJ
76262013-02-28 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR middle-end/56461
7629 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7630 type to vec<vec<tree> > *.
7631 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7632 to be vec<tree> instead of vec<tree> *, set vec_defs
7633 to vNULL and call vec_defs.create (number_of_vects), adjust other
7634 uses of vec_defs.
7635 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7636 vectorizable_condition): Adjust vect_get_slp_defs callers.
7637
ba96cdfb
JG
76382013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7639
7640 * config/aarch64/aarch64.c
7641 (aarch64_float_const_representable): Remove unused variable.
7642
6f549691
JG
76432013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7644
7645 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7646
af55e82d
JG
76472013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7648
7649 * config/aarch64/aarch64-builtins.c
7650 (aarch64_init_simd_builtins): Make static.
7651
1df3f464
JG
76522013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7653
7654 * config/aarch64/aarch64.c
7655 (aarch64_simd_make_constant): Make static.
7656
f8f42513
MJ
76572013-02-28 Martin Jambor <mjambor@suse.cz>
7658
7659 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7660 with no initialization to the RHS of debug statements.
7661
b48b3fc4
MJ
76622013-02-28 Martin Jambor <mjambor@suse.cz>
7663
7664 PR tree-optimization/56294
7665 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7666 Adjust dumping.
7667 (get_access_replacement): Do not call create_access_replacement.
7668 Assert a replacement exists.
7669 (get_repl_default_def_ssa_name): Create the replacement declaration
7670 itself.
7671
c3ae224c
RR
76722013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7673
7674 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7675 final_end_function.
7676
45fa0eef
MP
76772013-02-28 Marek Polacek <polacek@redhat.com>
7678
7679 PR rtl-optimization/56466
7680 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7681 if we're changing a loop.
7682 (peel_loops_completely): Likewise.
7683
502c067d
PC
76842013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7685
7686 PR c++/55813
7687 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7688
ff24afc8
GJL
76892013-02-28 Georg-Johann Lay <avr@gjlay.de>
7690
7691 PR target/56445
7692 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7693 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7694 INTX_FTYPE_FX, FX_FTYPE_INTX.
7695 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7696
c7b1fc1b
GJL
76972013-02-28 Georg-Johann Lay <avr@gjlay.de>
7698
7699 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7700 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7701 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7702 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7703 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7704 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7705 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7706 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7707 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7708 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7709 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7710 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7711 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7712 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7713 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7714 (avrxmega6): Increase max flash segments from 5 to 6.
7715 * config/avr/t-multilib: Regenerate.
7716 * config/avr/avr-tables.opt: Regenerate.
7717 * doc/avr-mmcu.texi: Regenerate.
7718
4a0e3cfe
GJL
77192013-02-28 Georg-Johann Lay <avr@gjlay.de>
7720
7721 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7722 (avr_device_to_arch): Rename to avr_device_to_ld.
7723 (avr_device_to_as): New prototype.
7724 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7725 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7726 * config/avr/driver-avr.c (avr_device_to_as): New.
7727 (avr_device_to_arch): Rename to avr_device_to_ld.
7728
97785e52
JJ
77292013-02-27 Jakub Jelinek <jakub@redhat.com>
7730
3f292312
JJ
7731 PR middle-end/56461
7732 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7733 method on dr_chain and result_chain.
7734
a344216b
JJ
7735 PR middle-end/56461
7736 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7737 pointer_set_destroy on not_executed_last_iteration.
7738
f121ad02 7739 PR middle-end/56461
88b97037 7740 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 7741
307f83a3
JJ
7742 PR middle-end/56461
7743 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7744 FOR_EACH_DEFINED_FUNCTION when freeing state.
7745
e19624ee
JJ
7746 PR middle-end/56461
7747 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7748 pool_free.
7749 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7750 overwriting it.
7751
90e709fd
JJ
7752 PR middle-end/56461
7753 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7754 known_aggs[i].items and release known_aggs vector.
7755
97785e52
JJ
7756 PR middle-end/56461
7757 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7758
77592013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 7760
97785e52
JJ
7761 * config/microblaze/microblaze.c (microblaze_emit_compare):
7762 Use xor for EQ/NE comparisions.
7763 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7764 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 7765
6fa5e0ed
JJ
77662013-02-27 Jakub Jelinek <jakub@redhat.com>
7767
7768 PR middle-end/56461
7769 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7770 vector.
7771 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7772 vec_safe_push, always update *slot.
7773 (redirect_edge_var_map_clear): Use vec_free.
7774 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7775 (free_var_map_entry): Use vec_free.
7776 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7777 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7778
436a956a
AB
77792013-02-27 Andrey Belevantsev <abel@ispras.ru>
7780
7781 PR middle-end/45472
436a956a
AB
7782 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7783 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
7784 Reorder tests for speculativeness in the logical and operator.
7785
f5c2caca
JJ
77862013-02-27 Jakub Jelinek <jakub@redhat.com>
7787
0fcb564b
JJ
7788 * incpath.c (add_standard_paths): Use reconcat instead of concat
7789 where appropriate and avoid leaking memory.
7790
dc357798
JJ
7791 * opts.h: Include obstack.h.
7792 (opts_concat): New prototype.
7793 (opts_obstack): New declaration.
7794 * opts.c (opts_concat): New function.
7795 (opts_obstack): New variable.
7796 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7797 (finish_options): Use opts_concat instead of concat
7798 and XOBNEWVEC instead of XNEWVEC.
7799 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7800 generate_option): Likewise.
7801 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7802 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7803
f5c2caca
JJ
7804 PR target/56455
7805 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7806 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7807
d0163673
JJ
78082013-02-26 Jakub Jelinek <jakub@redhat.com>
7809
7810 PR middle-end/56461
7811 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7812
b5ad2b8e
JR
78132013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7814
7815 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7816 (arm_block_move_unaligned_straight): Likewise.
7817 (arm_adjust_block_mem): Likewise.
7818
9b639e2c
JR
78192013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7820
7821 PR target/48901
7822 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7823 temp, cond and label.
7824 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7825
e13a0ccb
JR
7826 PR target/52500
7827 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7828 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7829
fbe4f171
JR
7830 PR target/52501
7831 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7832 of prologue/epilogue functions.
7833
ae006543
JR
7834 PR target/52550
7835 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7836 Remove unused variable cfa_offset.
7837 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7838
c81369fa
JR
7839 PR target/54639
7840 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7841 type promotion to unsigned.
7842
f8a8fea7
JR
7843 PR target/54640
7844 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7845 for HOST_WIDE_INT of 32 bit / same size as int.
7846 (arm_block_move_unaligned_straight): Likewise.
7847 (arm_adjust_block_mem): Likewise.
7848
f8be5169
JR
7849 PR target/54662
7850 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7851 ALL_CFLAGS.
7852
f1ad3354
MP
78532013-02-26 Marek Polacek <polacek@redhat.com>
7854
7855 PR tree-optimization/56426
88b97037 7856 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 7857
a6af0f42
RB
78582013-02-26 Richard Biener <rguenther@suse.de>
7859
7860 PR target/56444
7861 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7862 unused variable loops.
7863
aca43c6c
JJ
78642013-02-26 Jakub Jelinek <jakub@redhat.com>
7865
cecbe5d9
JJ
7866 PR tree-optimization/56448
7867 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7868 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7869 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7870 later operands of the references, or even first operand for
7871 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7872
aca43c6c
JJ
7873 PR tree-optimization/56443
7874 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7875 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7876 to type_for_mode langhook.
7877
53e2e141
MT
78782013-02-25 Matt Turner <mattst88@gmail.com>
7879
7880 * doc/invoke.texi: Document r4700.
7881
259ee451
RB
78822013-02-25 Richard Biener <rguenther@suse.de>
7883
7884 PR tree-optimization/56175
7885 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7886 split out from ...
7887 (simplify_bitwise_binary): ... here. Also guard the conversion
7888 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7889
6d65e8f1
CM
78902013-02-25 Catherine Moore <clm@codesourcery.com>
7891
7892 Revert:
7893 2013-02-24 Catherine Moore <clm@codesourcery.com>
7894 Maciej W. Rozycki <macro@codesourcery.com>
7895 Tom de Vries <tom@codesourcery.com>
a72d8780 7896 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
7897 Iain Sandoe <iain@codesourcery.com>
7898 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7899 Chao-ying Fu <fu@mips.com>
88b97037 7900
6d65e8f1 7901 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7902 Document new function attributes.
6d65e8f1
CM
7903 * doc/invoke.texi (minterlink-compressed, mmicromips,
7904 m14k, m14ke, m14kec): Document new options.
7905 (minterlink-mips16): Update documentation.
7906 * doc/md.texi (ZC, ZD): Document new constraints.
7907 * configure.ac (gcc_cv_as_micromips): Check if linker
7908 supports the .set micromips directive.
7909 * configure: Regenerate.
7910 * config.in: Regenerate.
7911 * config/mips/mips-tables.opt: Regenerate.
7912 * config/mips/micromips.md: New file.
7913 * constraints.md (ZC, AD): New constraints.
7914 * config/mips/predicates.md (movep_src_register): New predicate.
7915 (movep_src_operand): New predicate.
7916 (non_volatile_mem_operand): New predicate.
7917 * config/mips/mips.md (multimem): New type.
7918 (length): Differentiate between 17-bit and 18-bit branch offsets.
7919 (MOVEP1, MOVEP2): New mode iterator.
7920 (mov_<load>l): Use ZC constraint.
7921 (mov_<load>r): Likewise.
7922 (mov_<store>l): Likewise.
7923 (mov_<store>r): Likewise.
7924 (*branch_equality<mode>_inverted): Add microMIPS support.
7925 (*branch_equality<mode>): Likewise.
7926 (*jump_absolute): Likewise.
7927 (indirect_jump_<mode>): Likewise.
7928 (tablejump_<mode>): Likewise.
7929 (<optab>_internal): Likewise.
7930 (sibcall_internal): Likewise.
7931 (sibcall_value_internal): Likewise.
7932 (prefetch): Use constraint ZD.
7933 * config/mips/mips.opt (minterlink-compressed): New option.
7934 (minterlink-mips16): Now an alias for minterlink-compressed.
7935 (mmicromips): New option.
7936 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7937 (compare_and_swap_12): Likewise.
7938 (sync_add<mode>): Likewise.
7939 (sync_<optab>_12): Likewise.
7940 (sync_old_<optab>_12): Likewise.
7941 (sync_new_<optab>_12): Likewise.
7942 (sync_nand_12): Likewise.
7943 (sync_old_nand_12): Likewise.
7944 (sync_new_nand_12): Likewise.
7945 (sync_sub<mode>): Likewise.
7946 (sync_old_add<mode>): Likewise.
7947 (sync_old_sub<mode>): Likewise.
7948 (sync_new_add<mode>): Likewise.
7949 (sync_new_sub<mode>): Likewise.
7950 (sync_<optab><mode>): Likewise.
7951 (sync_old_<optab><mode>): Likewise.
7952 (sync_new_<optab><mode>): Likewise.
7953 (sync_nand<mode>): Likewise.
7954 (sync_old_nand<mode>): Likewise.
7955 (sync_new_nand<mode>): Likewise.
7956 (sync_lock_test_and_set<mode>): Likewise.
7957 (test_and_set_12): Likewise.
7958 (atomic_compare_and_swap<mode>): Likewise.
7959 (atomic_exchange<mode>_llsc): Likewise.
7960 (atomic_fetch_add<mode>_llsc): Likewise.
7961 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7962 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7963 (umips_save_restore_pattern_p): Likewise.
7964 (umips_load_store_pair_p): Likewise.
7965 (umips_output_load_store_pair): Likewise.
7966 (umips_movep_target_p): Likewise.
7967 (umips_12bit_offset_address_p): Likewise.
7968 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7969 (mips_base_mips16): Rename this...
7970 (mips_base_compression_flags): ...to this. Update all uses.
7971 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7972 (mips_mips16_decl_p): Delete.
7973 (mips_nomips16_decl_p): Delete.
7974 (mips_get_compress_on_flags): New function.
7975 (mips_get_compress_off_flags): New function.
7976 (mips_get_compress_mode): New function.
7977 (mips_get_compress_on_name): New function.
7978 (mips_get_compress_off_name): New function.
7979 (mips_insert_attributes): Support multiple compression types.
7980 (mips_merge_decl_attributes): Likewise.
7981 (umips_12bit_offset_address_p): New function.
7982 (mips_start_function_definition): Emit .set micromips directive.
7983 (mips_call_may_need_jalx_p): New function.
7984 (mips_function_ok_for_sibcall): Add microMIPS support.
7985 (mips_print_operand_punctuation): Support short delay slots and
7986 compact jumps.
7987 (umips_swm_mask, umips_swm_encoding): New.
7988 (umips_build_save_restore): New function.
7989 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7990 (was_mips16_p): Remove.
7991 (old_compression_mode): New.
7992 (mips_set_compression_mode): New function.
7993 (mips_set_current_function): Add microMIPS support.
7994 (mips_option_override): Likewise.
7995 (umips_save_restore_pattern_p): New function.
7996 (umips_output_save_restore): New function.
7997 (umips_load_store_pair_p_1): New function.
7998 (umips_load_store_pair_p): New function.
7999 (umips_output_load_store_pair_1): New function.
8000 (umips_output_load_store_pair): New function.
8001 (umips_movep_target_p) New function.
8002 (mips_prepare_pch_save): Add microMIPS support.
8003 * config/mips/mips.h (TARGET_COMPRESSION): New.
8004 (TARGET_CPU_CPP_BUILTINS): Update macro
8005 to use new compression flags and to support microMIPS.
8006 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8007 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8008 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8009 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8010 (ASM_SPEC): Support mmicromips and mno-micromips.
8011 (M16STORE_REG_P): New macro.
8012 (MIPS_CALL): Support TARGET_MICROMIPS.
8013 (MICROMIPS_J): New macro.
8014 (mips_base_mips16): Rename this...
8015 (mips_base_compression_flags): ...to this.
8016 (UMIPS_12BIT_OFFSET_P): New macro.
8017 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8018 (MULTILIB_DIRNAMES): Likewise.
8019
5e5df392
TV
80202013-02-25 Tom de Vries <tom@codesourcery.com>
8021
8022 PR rtl-optimization/56131
8023 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8024 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8025 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8026
3fdb53c1
TB
80272013-02-25 Tobias Burnus <burnus@net-b.de>
8028
8029 * doc/invoke.texi (-fsanitize=): Move from optimization
8030 to debugging options.
8031
ed358aea
AB
80322013-02-25 Andrey Belevantsev <abel@ispras.ru>
8033
8034 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8035
f45e9053
AB
80362013-02-25 Andrey Belevantsev <abel@ispras.ru>
8037 Alexander Monakov <amonakov@ispras.ru>
8038
8039 PR middle-end/56077
8040 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8041 flush pending lists also on non-jumps. Adjust comment.
8042
6941b508
CM
80432013-02-24 Catherine Moore <clm@codesourcery.com>
8044 Maciej W. Rozycki <macro@codesourcery.com>
8045 Tom de Vries <tom@codesourcery.com>
a72d8780 8046 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
8047 Iain Sandoe <iain@codesourcery.com>
8048 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8049 Chao-ying Fu <fu@mips.com>
6941b508
CM
8050
8051 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8052 Document new function attributes.
6941b508
CM
8053 * doc/invoke.texi (minterlink-compressed, mmicromips,
8054 m14k, m14ke, m14kec): Document new options.
8055 (minterlink-mips16): Update documentation.
8056 * doc/md.texi (ZC, ZD): Document new constraints.
8057 * configure.ac (gcc_cv_as_micromips): Check if linker
8058 supports the .set micromips directive.
8059 * configure: Regenerate.
8060 * config.in: Regenerate.
8061 * config/mips/mips-tables.opt: Regenerate.
8062 * config/mips/micromips.md: New file.
8063 * constraints.md (ZC, AD): New constraints.
8064 * config/mips/predicates.md (movep_src_register): New predicate.
8065 (movep_src_operand): New predicate.
8066 (non_volatile_mem_operand): New predicate.
8067 * config/mips/mips.md (multimem): New type.
8068 (length): Differentiate between 17-bit and 18-bit branch offsets.
8069 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8070 (mov_<load>l): Use ZC constraint.
6941b508
CM
8071 (mov_<load>r): Likewise.
8072 (mov_<store>l): Likewise.
8073 (mov_<store>r): Likewise.
8074 (*branch_equality<mode>_inverted): Add microMIPS support.
8075 (*branch_equality<mode>): Likewise.
8076 (*jump_absolute): Likewise.
8077 (indirect_jump_<mode>): Likewise.
8078 (tablejump_<mode>): Likewise.
8079 (<optab>_internal): Likewise.
8080 (sibcall_internal): Likewise.
8081 (sibcall_value_internal): Likewise.
8082 (prefetch): Use constraint ZD.
8083 * config/mips/mips.opt (minterlink-compressed): New option.
8084 (minterlink-mips16): Now an alias for minterlink-compressed.
8085 (mmicromips): New option.
8086 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8087 (compare_and_swap_12): Likewise.
8088 (sync_add<mode>): Likewise.
8089 (sync_<optab>_12): Likewise.
8090 (sync_old_<optab>_12): Likewise.
8091 (sync_new_<optab>_12): Likewise.
8092 (sync_nand_12): Likewise.
8093 (sync_old_nand_12): Likewise.
8094 (sync_new_nand_12): Likewise.
8095 (sync_sub<mode>): Likewise.
8096 (sync_old_add<mode>): Likewise.
8097 (sync_old_sub<mode>): Likewise.
8098 (sync_new_add<mode>): Likewise.
8099 (sync_new_sub<mode>): Likewise.
8100 (sync_<optab><mode>): Likewise.
8101 (sync_old_<optab><mode>): Likewise.
8102 (sync_new_<optab><mode>): Likewise.
8103 (sync_nand<mode>): Likewise.
8104 (sync_old_nand<mode>): Likewise.
8105 (sync_new_nand<mode>): Likewise.
8106 (sync_lock_test_and_set<mode>): Likewise.
8107 (test_and_set_12): Likewise.
8108 (atomic_compare_and_swap<mode>): Likewise.
8109 (atomic_exchange<mode>_llsc): Likewise.
8110 (atomic_fetch_add<mode>_llsc): Likewise.
8111 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8112 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8113 (umips_save_restore_pattern_p): Likewise.
8114 (umips_load_store_pair_p): Likewise.
8115 (umips_output_load_store_pair): Likewise.
8116 (umips_movep_target_p): Likewise.
8117 (umips_12bit_offset_address_p): Likewise.
8118 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8119 (mips_base_mips16): Rename this...
8120 (mips_base_compression_flags): ...to this. Update all uses.
8121 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8122 (mips_mips16_decl_p): Delete.
8123 (mips_nomips16_decl_p): Delete.
3fdb53c1 8124 (mips_get_compress_on_flags): New function.
6941b508
CM
8125 (mips_get_compress_off_flags): New function.
8126 (mips_get_compress_mode): New function.
8127 (mips_get_compress_on_name): New function.
8128 (mips_get_compress_off_name): New function.
8129 (mips_insert_attributes): Support multiple compression types.
8130 (mips_merge_decl_attributes): Likewise.
8131 (umips_12bit_offset_address_p): New function.
8132 (mips_start_function_definition): Emit .set micromips directive.
8133 (mips_call_may_need_jalx_p): New function.
8134 (mips_function_ok_for_sibcall): Add microMIPS support.
8135 (mips_print_operand_punctuation): Support short delay slots and
8136 compact jumps.
8137 (umips_swm_mask, umips_swm_encoding): New.
8138 (umips_build_save_restore): New function.
8139 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8140 (was_mips16_p): Remove.
8141 (old_compression_mode): New.
8142 (mips_set_compression_mode): New function.
8143 (mips_set_current_function): Add microMIPS support.
8144 (mips_option_override): Likewise.
8145 (umips_save_restore_pattern_p): New function.
8146 (umips_output_save_restore): New function.
8147 (umips_load_store_pair_p_1): New function.
8148 (umips_load_store_pair_p): New function.
8149 (umips_output_load_store_pair_1): New function.
8150 (umips_output_load_store_pair): New function.
8151 (umips_movep_target_p) New function.
8152 (mips_prepare_pch_save): Add microMIPS support.
8153 * config/mips/mips.h (TARGET_COMPRESSION): New.
8154 (TARGET_CPU_CPP_BUILTINS): Update macro
8155 to use new compression flags and to support microMIPS.
8156 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8157 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8158 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8159 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8160 (ASM_SPEC): Support mmicromips and mno-micromips.
8161 (M16STORE_REG_P): New macro.
8162 (MIPS_CALL): Support TARGET_MICROMIPS.
8163 (MICROMIPS_J): New macro.
8164 (mips_base_mips16): Rename this...
8165 (mips_base_compression_flags): ...to this.
8166 (UMIPS_12BIT_OFFSET_P): New macro.
8167 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8168 (MULTILIB_DIRNAMES): Likewise.
8169
cdebbc6d
JJ
81702013-02-24 Jakub Jelinek <jakub@redhat.com>
8171
8172 PR target/52555
8173 * target-globals.c (save_target_globals): For init_reg_sets and
8174 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8175
18c63565
JG
81762013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8177
8178 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8179 * config/aarch64/t-aarch64
8180 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8181
2194f7a2
VM
81822013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8183
8184 PR inline-asm/56148
8185 * lra-constraints.c (process_alt_operands): Reload operand
8186 conflicting with earlier clobber only if no more other conflicting
8187 operands.
8188
7d613735
JJ
81892013-02-22 Jakub Jelinek <jakub@redhat.com>
8190
8191 PR sanitizer/56393
8192 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8193 if not linking a shared library.
8194
ac8d93a7
SL
81952013-02-22 Seth LaForge <sethml@google.com>
8196
8197 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8198
e0237780
GY
81992013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8200
3fdb53c1
TB
8201 * config/arm/arm.md (split for extendsidi): Update condition.
8202 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8203 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8204 (qhs_zextenddi_cstr): Likewise.
e0237780 8205
d7fde18c
JJ
82062013-02-21 Jakub Jelinek <jakub@redhat.com>
8207
be63b77d
JJ
8208 PR middle-end/56420
8209 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8210 avoid signed wrapping.
8211 (expand_mult): Handle properly multiplication by
8212 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8213 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8214 in the compiler if coeff is HOST_WIDE_INT_MIN.
8215 (expand_divmod): Don't make ext_op1 static, change it's type to
8216 uhwi. Avoid undefined behavior in -INTVAL (op1).
8217
d7fde18c
JJ
8218 PR rtl-optimization/50339
8219 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8220 field.
8221 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8222 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8223 into splitting_ashiftrt field.
8224 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8225 ASHIFTRT.
8226 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8227 choices.
8228
6aad4455
AH
82292013-02-20 Aldy Hernandez <aldyh@redhat.com>
8230
8231 PR middle-end/56108
8232 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8233 are sure to go irrevocable.
8234
38fe784d
HPN
82352013-02-21 Hans-Peter Nilsson <hp@axis.com>
8236
8237 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8238 scalars are valid operands.
8239
0fd44da3
MJ
82402013-02-21 Martin Jambor <mjambor@suse.cz>
8241
8242 PR tree-optimization/56310
8243 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8244 only matching indices and non-negative final offsets.
8245 (intersect_aggregates_with_edge): Pass src_idx to
8246 agg_replacements_to_vector. Pass src_idx insstead of index to
8247 intersect_with_agg_replacements.
8248
7a92038b
MJ
82492013-02-21 Martin Jambor <mjambor@suse.cz>
8250
8251 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8252 instead of hard-wired defaults.
8253
c0da9c37
MR
82542013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8255
8256 * doc/invoke.texi (MIPS Options): Update documentation of the
8257 floating-point multiply-accumulate instruction restrictions.
8258
d247ea0c 82592013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
8260
8261 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8262 asan_shadow_offset on x86_64 linux.
8263
22deefcb
RB
82642013-02-21 Richard Biener <rguenther@suse.de>
8265
8266 PR tree-optimization/56415
8267 Revert
8268 2013-02-11 Richard Biener <rguenther@suse.de>
8269
8270 PR tree-optimization/56273
8271 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8272 first VRP run.
8273
7bcc6e75
JJ
82742013-02-21 Jakub Jelinek <jakub@redhat.com>
8275
a0ad148f
JJ
8276 PR bootstrap/56258
8277 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8278 instead of @itemx.
8279
7bcc6e75
JJ
8280 PR inline-asm/56405
8281 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8282 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8283
a0a7b611
JH
82842013-02-20 Jan Hubicka <jh@suse.cz>
8285
8286 PR tree-optimization/56265
88b97037
UB
8287 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8288 when target is referenced for first time.
a0a7b611 8289
c0e50f72
RB
82902013-02-20 Richard Biener <rguenther@suse.de>
8291
8292 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8293 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8294 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8295 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8296 not return anything.
8297 (rename_ssa_copies): Do not remove unused locals.
8298 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 8299 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
8300 * passes.c (execute_function_todo): Do not schedule unused locals
8301 removal if cleanup_tree_cfg did something.
8302 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8303 about the number of removed locals.
8304
a52ca739
RB
83052013-02-20 Richard Biener <rguenther@suse.de>
8306
8307 PR tree-optimization/56398
88b97037 8308 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 8309
ec9c9d1b
MJ
83102013-02-20 Martin Jambor <mjambor@suse.cz>
8311
8312 PR tree-optimization/55334
8313 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8314 restricted pointers to arrays.
8315
e91c8ed6 83162013-02-20 Richard Biener <rguenther@suse.de>
88b97037 8317 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
8318
8319 PR tree-optimization/56396
8320 * tree-ssa-ccp.c (n_const_val): New static variable.
8321 (get_value): Return NULL for SSA names we don't have a lattice
8322 entry for.
8323 (ccp_initialize): Initialize n_const_val.
8324 * tree-ssa-copy.c (n_copy_of): New static variable.
8325 (init_copy_prop): Initialize n_copy_of.
8326 (get_value): Return NULL_TREE for SSA names we don't have a
8327 lattice entry for.
8328
3d916479
MJ
83292013-02-20 Martin Jambor <mjambor@suse.cz>
8330
8331 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8332
71a86758
RB
83332013-02-20 Richard Biener <rguenther@suse.de>
8334
8335 * genpreds.c (write_lookup_constraint): Do not compare first
8336 letter of the constraint again.
8337
79836a12
RB
83382013-02-20 Richard Biener <rguenther@suse.de>
8339
8340 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8341 and ceil_log2.
8342 (get_use_iv_cost): Terminate hashtable walk when coming across
8343 an empty entry.
8344
bbe4fb2c
IZ
83452013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8346
8347 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8348 reassociation for avx2 targets.
8349
a72d8780 83502012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 8351
c77f83d5
EI
8352 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8353 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 8354 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
8355 version and TARGET_PATTERN_COMPARE check
8356 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 8357
a72d8780 83582012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 8359
a72d8780 8360 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
8361 function before branching.
8362
242387fa
AB
83632012-02-19 Andrey Belevantsev <abel@ispras.ru>
8364
8365 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8366 DUMP_INSN_RTX_UID.
8367 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8368
b4979ab9
AB
83692012-02-19 Andrey Belevantsev <abel@ispras.ru>
8370
8371 PR middle-end/55889
b4979ab9
AB
8372 * sel-sched.c: Include ira.h.
8373 (implicit_clobber_conflict_p): New function.
8374 (moveup_expr): Use it.
88b97037 8375 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 8376
24d63016
RB
83772013-02-19 Richard Biener <rguenther@suse.de>
8378
8379 PR tree-optimization/56384
8380 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8381 (vn_hash_type): Split out from ...
8382 (vn_hash_constant_with_type): ... here.
8383 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8384 (vn_phi_eq): Compare types from vn_phi_s structure.
8385 (vn_phi_lookup): Populate vn_phi_s type.
8386 (vn_phi_insert): Likewise.
8387
a475fd3d
JJ
83882013-02-19 Jakub Jelinek <jakub@redhat.com>
8389
47cc28f5
JJ
8390 PR tree-optimization/56350
8391 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8392 if haven't found reduction or nested cycle operand, rather than
8393 asserting we must find it.
8394
a475fd3d
JJ
8395 PR tree-optimization/56381
8396 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8397 to fold_build3.
8398
83992013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8400 Jakub Jelinek <jakub@redhat.com>
8401
8402 PR target/52555
8403 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8404 (swap_optab_enable): Same.
8405 (init_all_optabs): Use argument instead of global.
88b97037 8406 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
8407 * expr.h (init_all_optabs): Add argument to prototype.
8408 (TREE_OPTIMIZATION_OPTABS): New.
8409 (save_optabs_if_changed): Protoize.
8410 * optabs.h: Declare this_fn_optabs.
8411 * optabs.c (save_optabs_if_changed): New.
8412 Declare this_fn_optabs.
8413 (init_optabs): Add argument to init_all_optabs() call.
8414 * function.c (invoke_set_current_function_hook): Handle per
8415 function optabs.
8416 * function.h (struct function): New field optabs.
8417 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8418 optimization_current_node has changed.
8419 * target-globals.h (save_target_globals_default_opts): Protoize.
8420 * target-globals.c (save_target_globals_default_opts): New.
8421
3f587ca3
JDA
84222013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8423
8424 PR target/56347
8425 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8426 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
8427
8428 PR target/56214
8429 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
8430 and HImode, require all displacements to be an integer multiple of
8431 their mode size.
ceaca33e
JDA
8432 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8433 only allow QImode and HImode when reload is in progress and strict is
8434 true. Likewise for symbolic addresses. Use base14_operand to check
8435 displacements in REG+BASE addresses.
8436
fe0b4796
RB
84372013-02-18 Richard Biener <rguenther@suse.de>
8438
8439 PR tree-optimization/56366
8440 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8441 handle sign-conversion of outer-loop initial induction value.
8442
6aaf596b
RB
84432013-02-18 Richard Biener <rguenther@suse.de>
8444
73db8ff1 8445 PR middle-end/56349
6aaf596b
RB
8446 * cfghooks.c (merge_blocks): If we merge a latch into another
8447 block adjust references to it.
8448 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8449 (verify_loop_structure): Verify that a recorded latch is in fact
8450 a latch.
8451
5e97dfb6
RB
84522013-02-18 Richard Biener <rguenther@suse.de>
8453
8454 PR tree-optimization/56321
8455 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8456 order SSA name release and virtual operand unlinking.
8457
825527e8
EI
84582013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8459
8460 * config/microblaze/microblaze.md (save_stack_block): Define.
8461 (restore_stack_block): Likewise.
8462
debd11d9
EI
84632013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8464
8465 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8466 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8467 * config/microblaze/microblaze.c (microblaze_option_override):
8468 Bail out early for PIC modes when target does not support PIC.
8469
8ec77be0
EI
84702013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8471
88b97037 8472 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
8473 Replace with a microblaze version.
8474 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 8475 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
8476 microblaze.
8477
b41288b3
JJ
84782013-02-16 Jakub Jelinek <jakub@redhat.com>
8479 Dodji Seketeli <dodji@redhat.com>
8480
8481 PR asan/56330
88b97037 8482 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
8483 (instrument_mem_region_access): Do not forget to always put
8484 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8485 0) statement, even for cases where either 'base' or 'base + len'
8486 are not instrumented -- because they have been previously
8487 instrumented. Simplify the logic by putting all the statements
8488 instrument 'base + len' inside a sequence, and then insert that
8489 sequence right before the current insertion point. Then, to
8490 instrument 'base + len', just get an iterator on that statement.
8491 And do not forget to update the pointer to iterator the function
8492 received as argument.
8493
47918951
VM
84942013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8495
8496 PR rtl-optimization/56348
8497 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8498
3fb7c699
SB
84992013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8500
8501 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8502 (clean_graph_dump_file): Pass base to start_graph_dump.
8503
576fe41a
RH
85042013-02-14 Richard Henderson <rth@redhat.com>
8505
8506 PR target/55941
8507 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8508
bb3accfa
SB
85092013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8510
8511 * collect2-aix.h: Define F_LOADONLY.
8512
03143140
RB
85132013-02-14 Richard Biener <rguenther@suse.de>
8514
8515 PR lto/50494
8516 * varasm.c (output_constant_def_1): Get the decl representing
8517 the constant as argument.
8518 (output_constant_def): Wrap output_constant_def_1.
8519 (make_decl_rtl): Use output_constant_def_1 with the decl
8520 representing the constant.
8521 (build_constant_desc): Optionally re-use a decl already
8522 representing the constant.
8523 (tree_output_constant_def): Adjust.
8524
8fb06726
DS
85252013-02-14 Dodji Seketeli <dodji@redhat.com>
8526
8527 Fix an asan crash
8528 * asan.c (instrument_builtin_call): Really put the length of the
8529 second source argument into src1_len.
8530
c4bfe8bf
JJ
85312013-02-13 Jakub Jelinek <jakub@redhat.com>
8532
8533 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8534 argument. If it is false, don't create edge from then_bb to
8535 fallthru_bb.
8536 (insert_if_then_before_iter): Pass true to it.
8537 (build_check_stmt): Pass false to it.
8538 (transform_statements): Flush hash table only on extended basic
8539 block boundaries, rather than at the beginning of every bb.
8540 Don't flush hash table on nonfreeing_call_p calls.
8541 * tree-flow.h (nonfreeing_call_p): New prototype.
8542 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8543
7afe2801
DM
85442013-02-13 David S. Miller <davem@davemloft.net>
8545
8546 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8547
70cc3288
VM
85482013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8549
8550 PR target/56184
8551 * ira.c (max_regno_before_ira): Move from ...
8552 (ira): ... here.
8553 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8554 vec_safe_length.
8555
6422242b
JJ
85562013-02-13 Jakub Jelinek <jakub@redhat.com>
8557
8558 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8559
976a81ee
RB
85602013-02-13 Richard Biener <rguenther@suse.de>
8561
8562 PR lto/56295
8563 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8564 globals in MEM_REFs.
8565
c1874a87
RB
85662013-02-13 Richard Biener <rguenther@suse.de>
8567
8568 * loop-init.c (loop_optimizer_init): Clear loop state when
8569 re-initializing preserved loops.
8570 * loop-unswitch.c (unswitch_single_loop): Return whether
8571 we unswitched the loop. Do not verify loop state here.
88b97037 8572 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 8573
b4ab7d34
KS
85742013-02-13 Kostya Serebryany <kcc@google.com>
8575
88b97037
UB
8576 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8577 on x86_64 linux.
b4ab7d34
KS
8578 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8579
bdcbe80c
DS
85802013-02-12 Dodji Seketeli <dodji@redhat.com>
8581
8582 Avoid instrumenting duplicated memory access in the same basic block
8583 * Makefile.in (asan.o): Add new dependency on hash-table.h
8584 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8585 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8586 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8587 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8588 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8589 (get_mem_ref_of_assignment): New functions.
8590 (get_mem_refs_of_builtin_call): Extract from
8591 instrument_builtin_call and tweak a little bit to make it fit with
8592 the new signature.
8593 (instrument_builtin_call): Use the new
8594 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8595 of is_gimple_builtin_call.
8596 (instrument_derefs, instrument_mem_region_access): Insert the
8597 instrumented memory reference into the hash table.
8598 (maybe_instrument_assignment): Renamed instrument_assignment into
8599 this, and change it to advance the iterator when instrumentation
8600 actually happened and return true in that case. This makes it
8601 homogeneous with maybe_instrument_assignment, and thus give a
8602 chance to callers to be more 'regular'.
8603 (transform_statements): Clear the memory reference hash table
8604 whenever we enter a new BB, when we cross a function call, or when
8605 we are done transforming statements. Use
8606 maybe_instrument_assignment instead of instrumentation. No more
8607 need to special case maybe_instrument_assignment and advance the
8608 iterator after calling it; it's now handled just like
8609 maybe_instrument_call. Update comment.
8610
4861a1f7
RB
86112013-02-13 Richard Biener <rguenther@suse.de>
8612
8613 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8614 Fix loop discovery code.
8615
1c86bd80
VM
86162013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8617
8618 PR inline-asm/56148
8619 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 8620 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
8621 the operand is not reloaded. Prefer to reload conflicting operand
8622 if earlyclobber and matching operands are the same.
8623
7cbda518
RB
86242013-02-12 Richard Biener <rguenther@suse.de>
8625
8626 PR lto/56297
8627 * lto-streamer-out.c (write_symbol): Do not output symbols
8628 for hard register variables.
8629
e68a4ef6
GJL
86302013-02-12 Georg-Johann Lay <avr@gjlay.de>
8631
8632 PR target/54222
8633 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8634 (umulsidi3_insn, mulsidi3_insn): New insns.
8635
a72d8780 86362013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
8637
8638 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8639 (struct tune_params): Add vec_costs field.
8640 * config/arm/arm.c (arm_builtin_vectorization_cost)
8641 (arm_add_stmt_cost): New functions.
8642 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8643 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8644 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8645 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8646 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8647 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8648 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8649
43320568
RB
86502013-02-12 Richard Biener <rguenther@suse.de>
8651
8652 PR lto/56295
8653 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8654 decls again if possible.
8655
a011aa39
RB
86562013-02-12 Richard Biener <rguenther@suse.de>
8657
8658 PR middle-end/56288
8659 * tree-ssa.c (verify_ssa_name): Fix check, move
8660 SSA_NAME_IN_FREE_LIST check up.
8661
6da26889
JJ
86622013-02-12 Jakub Jelinek <jakub@redhat.com>
8663 Steven Bosscher <steven@gcc.gnu.org>
8664
8665 PR rtl-optimization/56151
8666 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8667 equal to op0 or op1, and last_insn pattern is CODE operation
8668 with MEM dest and one of the operands matches that MEM.
8669
f80e0faf
ST
86702013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8671
8672 * doc/extend.texi: Document Function Multiversioning and "default"
8673 parameter string to target attribute.
8674 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8675 target attribute parameter is "default".
8676 (ix86_compare_version_priority): Remove checks for target attribute.
8677 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8678 Remove check for target attribute equal to NULL. Add assert.
8679 (ix86_generate_version_dispatcher_body): Change error to sorry.
8680
6c59ffd1
IS
86812013-02-11 Iain Sandoe <iain@codesourcery.com>
8682 Jack Howarth <howarth@bromo.med.uc.edu>
8683 Patrick Marlier <patrick.marlier@gmail.com>
8684
8685 PR libitm/55693
8686 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8687 define ENDFILE_SPEC as TM_DESTRUCTOR.
8688 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8689
a72d8780 86902013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
8691 Jack Howarth <howarth@bromo.med.uc.edu>
8692 Jakub Jelinek <jakub@redhat.com>
8693
8694 PR sanitizer/55617
8695 * config/darwin.c (cdtor_record): Rename ctor_record.
8696 (sort_cdtor_records): Rename sort_ctor_records.
8697 (finalize_dtors): New routine to sort destructors by
8698 priority before use in assemble_integer.
8699 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8700
b63fe007
UB
87012013-02-11 Uros Bizjak <ubizjak@gmail.com>
8702
8703 PR rtl-optimization/56275
8704 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8705 offset is non-negative and less than cmode size before
8706 calling simplify_subreg.
8707
8e89b5b5
RB
87082013-02-11 Richard Biener <rguenther@suse.de>
8709
8710 PR tree-optimization/56264
8711 * cfgloop.h (fix_loop_structure): Adjust prototype.
8712 * loop-init.c (fix_loop_structure): Return the number of
8713 newly discovered loops.
8714 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8715 are discovered, do a full loop-closed SSA rewrite.
8716
b4a4b56d
RB
87172013-02-11 Richard Biener <rguenther@suse.de>
8718
8719 PR tree-optimization/56273
8720 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8721 first VRP run.
8722 (check_array_ref): Fix missing newline in dumps.
8723 (search_for_addr_array): Likewise.
8724
0c885229
DE
87252013-02-09 David Edelsohn <dje.gcc@gmail.com>
8726
8727 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8728
59ac9a55
JJ
87292013-02-09 Jakub Jelinek <jakub@redhat.com>
8730
8731 PR target/56256
8732 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8733
25bb0bb5
VM
87342013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8735
8736 PR rtl-optimization/56246
0c885229 8737 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
8738 reload pseudo.
8739 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8740 constraints are satisfied.
8741
a698cc03
JL
87422013-02-08 Jeff Law <law@redhat.com>
8743
8744 PR debug/53948
8745 * emit-rtl.c (reg_is_parm_p): New function.
8746 * regs.h (reg_is_parm_p): New prototype.
8747 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8748 callee-clobbered registers.
8749
e1122ddd
MM
87502013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8751
8752 PR target/56043
8753 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8754 If there is no implicit builtin declaration, just return NULL.
8755
19c5f6e6
UB
87562013-02-08 Uros Bizjak <ubizjak@gmail.com>
8757
8758 * config/i386/sse.md (FMAMODEM): New mode iterator.
8759 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8760 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8761
2480f2ca 87622013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 8763
2480f2ca
UB
8764 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8765 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8766 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8767
87682013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8769
8770 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8771 (microblaze*-*-elf): Likewise.
8772 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8773 LINK_SPEC.
8774 * config/microblaze/microblaze-c.c: Add builtin defines for
8775 _LITTLE_ENDIAN and _BIG_ENDIAN.
8776 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8777 add to TARGET_DEFAULT flags.
76ef61fb 8778 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
8779 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8780 * config/microblaze/microblaze.md: Update extendsidi2 and
8781 movdi_internal instructions to use low-order / high-order reg
8782 print_operands.
8783 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8784 options and inversemask / mask of LITTLE_ENDIAN.
8785 * config/microblaze/t-microblaze: Expand multilib options to
8786 include mlittle-endian (le) and update exceptions patterns.
8787
600a5961
JJ
87882013-02-08 Jakub Jelinek <jakub@redhat.com>
8789
5df81313
JJ
8790 PR rtl-optimization/56195
8791 * lra-constraints.c (get_reload_reg): Don't reuse regs
8792 if they have smaller mode than requested, if they have
8793 wider mode than requested, try to return a SUBREG.
8794
600a5961
JJ
8795 PR tree-optimization/56250
8796 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8797 if type is unsigned and code isn't MULT_EXPR.
8798
ff544649
GJL
87992013-02-08 Georg-Johann Lay <avr@gjlay.de>
8800
8801 PR tree-optimization/56064
8802 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8803 bits according to mode.
8804 * fixed-value.h (fixed_from_double_int)
8805 (const_fixed_from_double_int): Adjust comments.
8806
e45cde98
RB
88072013-02-08 Richard Biener <rguenther@suse.de>
8808
8809 PR lto/56231
8810 * lto-streamer.h (struct data_in): Remove current_file, current_line
8811 and current_col members.
8812 * lto-streamer-out.c (lto_output_location): Stream changed bits
8813 en-block for efficiency.
8814 * lto-streamer-in.c (clear_line_info): Remove.
8815 (lto_input_location): Cache current file, line and column
8816 globally via local statics. Read changed bits en-block.
8817 (input_function): Do not call clear_line_info.
8818 (lto_read_body): Likewise.
8819 (lto_input_toplevel_asms): Likewise.
8820
c1ca73d8
MM
88212013-02-08 Michael Matz <matz@suse.de>
8822
8823 PR tree-optimization/52448
8824 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8825 (nt_call_phase): New static.
8826 (add_or_mark_expr): Only mark accesses with newer phase than any
8827 call seen.
8828 (nonfreeing_call_p): New.
8829 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8830 (nt_fini_block): Keep blocks marked as visited.
8831 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8832
57548aa2
RB
88332013-02-08 Richard Biener <rguenther@suse.de>
8834
8835 * ira.c (ira): Free broken dominator information.
8836
8e10366f
UB
88372013-02-08 Uros Bizjak <ubizjak@gmail.com>
8838
8839 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8840
f64fb0fa
MP
88412013-02-08 Marek Polacek <polacek@redhat.com>
8842
8e10366f 8843 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 8844
0375167b
RB
88452013-02-08 Richard Biener <rguenther@suse.de>
8846
8847 PR middle-end/56181
8848 * cfgloop.h (flow_loops_find): Adjust.
8849 (bb_loop_header_p): Declare.
8850 * cfgloop.c (bb_loop_header_p): New function split out from ...
8851 (flow_loops_find): ... here. Adjust function signature,
8852 support incremental loop structure update.
8853 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8854 * cfgloopmanip.c (fix_loop_structure): Move ...
8855 * loop-init.c (fix_loop_structure): ... here.
8856 (apply_loop_flags): Split out from ...
8857 (loop_optimizer_init): ... here.
8858 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8859 in incremental mode, only remove dead loops here.
8860
85d768f3
GJL
88612013-02-08 Georg-Johann Lay <avr@gjlay.de>
8862
8863 PR target/54222
8864 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8865 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8866 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8867 (*round<mode>3.libgcc): New insns for fixed-modes.
8868 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8869 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8870 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8871 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8872 implementations. Define to __builtin_avr_absFX,
8873 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8874 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8875 __builtin_avr_countlsFX, respectively.
8876 * config/avr/avr-c.c (target.h): Include it.
8877 (enum avr_builtin_id): New enum.
8878 (avr_resolve_overloaded_builtin): New static function.
8879 (avr_register_target_pragmas): Use it to set
8880 targetm.resolve_overloaded_builtin.
8881 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8882 tree nodes used by DEF_BUILTIN.
8883 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8884 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8885 <AVR_BUILTIN_xxBITS>: Same.
8886
661bc682
RB
88872013-02-08 Richard Biener <rguenther@suse.de>
8888
8889 * cfgloop.c (verify_loop_structure): Properly handle
8890 a loop exiting to another loop header.
8891 * ira-int.h (ira_loops): Remove.
8892 * ira.c (ira_loops): Remove.
8893 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8894 (do_reload): Use loop_optimizer_finalize.
8895 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8896 number_of_loops to access the loop tree.
8897 (more_one_region_p): Likewise.
8898 (finish_loop_tree_nodes): Likewise.
8899 (rebuild_regno_allocno_maps): Likewise.
8900 (mark_loops_for_removal): Likewise.
8901 (mark_all_loops_for_removal): Likewise.
8902 (remove_unnecessary_regions): Likewise.
8903 (ira_build): Likewise.
8904 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8905
0d5049b2
RB
89062013-02-08 Richard Biener <rguenther@suse.de>
8907
8908 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8909 * ipa-pure-const.c (analyze_function): Avoid calling
8910 mark_irreducible_loops twice.
8e10366f 8911 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 8912
499f32e8
DM
89132013-02-07 David S. Miller <davem@davemloft.net>
8914
8915 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8916 on 'reg'.
8917 * var-tracking.c (vt_add_function_parameter): Test the presence of
8918 HAVE_window_save properly and do not remap argument registers when
8919 we have a leaf function.
8920
6edc3e32
UB
89212013-02-07 Uros Bizjak <ubizjak@gmail.com>
8922
8923 PR bootstrap/56227
8924 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8925 instead of "ll".
8926 * config/i386/i386.c (ix86_print_operand): Ditto.
8927
5306401f
VM
89282013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8929
6edc3e32 8930 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 8931
027ece11
VM
89322013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8933
8934 PR rtl-optimization/56225
8935 * lra-constraints.c (process_alt_operands): Check that reload hard
8936 reg can hold value for strict_low_part.
8937
f980dfdb
JJ
89382013-02-07 Jakub Jelinek <jakub@redhat.com>
8939
8940 PR debug/56154
8941 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8942 dwarf2out_end_function.
8943 (in_first_function_p, maybe_at_text_label_p,
8944 first_loclabel_num_not_at_text_label): New variables.
8945 (dwarf2out_var_location): In the first function find out
6edc3e32 8946 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
8947 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8948 functions.
8949
73dd3123
EB
89502013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8951
8952 PR rtl-optimization/56178
8953 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8954 SUBREG of a register. Tidy up related block of code.
8955 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8956 note if the source is a register or a SUBREG of a register.
8957
e3936f47
JJ
89582013-02-07 Jakub Jelinek <jakub@redhat.com>
8959
8960 PR target/56228
8961 * config/rs6000/rs6000.md (ptrm): New mode attr.
8962 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8963 call_value_indirect_aix<pttrsize>,
8964 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8965 m in constraints.
8966
d96d674b
MH
89672013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8968
8969 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8970 if -bnortl. Convert to strcmp and strncmp.
8971
921f2dee
AM
89722013-02-07 Alan Modra <amodra@gmail.com>
8973
8974 PR target/54009
8975 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8976 addresses won't wrap when offsetting.
8977 (rs6000_secondary_reload): Provide secondary reloads needed for
8978 wrapping LO_SUM addresses.
8979
d09c7dba
TS
89802013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8981
8982 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8983 MACH, just __MACH__.
8984
a44bbd48
RB
89852013-02-06 Richard Biener <rguenther@suse.de>
8986
8987 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8988 instead of calling fix_loop_structure.
8989
6d840d99
JJ
89902013-02-06 Jakub Jelinek <jakub@redhat.com>
8991
8992 PR middle-end/56217
8993 * omp-low.c (use_pointer_for_field): Return false if
8994 lower_send_shared_vars doesn't generate any copy-out code.
8995
0f33baa9
TV
89962013-02-06 Tom de Vries <tom@codesourcery.com>
8997
8998 PR rtl-optimization/56131
8999 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9000 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9001 of the label is NULL. Add comment.
9002
11f1e3ab
JJ
90032013-02-05 Jakub Jelinek <jakub@redhat.com>
9004
31502f9f
JJ
9005 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9006
a74db9bd
JJ
9007 PR sanitizer/55374
9008 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9009 (STATIC_LIBTSAN_LIBS): Likewise.
9010 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9011 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9012 is defined, don't add anything else beyond that.
9013 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9014 (LINK_COMMAND_SPEC): Use them.
9015
11f1e3ab
JJ
9016 PR tree-optimization/56205
9017 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9018 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9019 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9020
14ac6aa2
RB
90212013-02-05 Richard Biener <rguenther@suse.de>
9022
9023 PR tree-optimization/53342
9024 PR tree-optimization/53185
9025 * tree-vectorizer.h (vect_check_strided_load): Remove.
9026 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9027 not disallow peeling for vectorized strided loads.
9028 (vect_check_strided_load): Make static and simplify.
9029 (vect_analyze_data_refs): Adjust.
9030 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9031 correctly when vectorizing strided loads.
9032
6f22445a
RB
90332013-02-05 Richard Biener <rguenther@suse.de>
9034
9035 * doc/install.texi: Refer to ISL, not PPL.
9036
39f9719e
JH
90372013-02-05 Jan Hubicka <jh@suse.cz>
9038
ec4224ac
JH
9039 PR tree-optimization/55789
9040 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9041
90422013-02-05 Jan Hubicka <jh@suse.cz>
9043
9044 PR tree-optimization/55789
39f9719e
JH
9045 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9046 the dead call anyway.
9047
956d3b33
EB
90482013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9049
9050 PR sanitizer/55374
9051 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9052
90532013-02-04 Alexander Potapenko <glider@google.com>
9054 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9055 Jakub Jelinek <jakub@redhat.com>
9056
9057 PR sanitizer/55617
9058 * config/darwin.c (sort_ctor_records): Stabilized qsort
9059 on constructor priority by using original position.
9060 (finalize_ctors): New routine to sort constructors by
9061 priority before use in assemble_integer.
9062 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9063
7ac3af38
JJ
90642013-02-04 Jakub Jelinek <jakub@redhat.com>
9065
9066 PR libstdc++/54314
9067 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9068 about visibility on artificial decls.
9069 * config/sol2.c (solaris_assemble_visibility): Likewise.
9070
152689dc
KT
90712013-02-04 Kai Tietz <ktietz@redhat.com>
9072
9073 PR target/56186
9074 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9075 argument and improve checking of return-argument types for 16-byte
9076 modes.
9077 (ix86_function_value_1): Add additional valtype argument on call
9078 of function_value_64.
9079 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9080 handling infunction_value_64 function.
9081
2b5987b5
MGD
90822013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9083
7ac3af38 9084 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9085
14597080
RB
90862013-02-04 Richard Biener <rguenther@suse.de>
9087
9088 PR tree-optimization/56188
9089 * tree-ssa-structalias.c (label_visit): Consider case with
9090 initially non-empty points-to set.
9091 (perform_var_substitution): Dump node mapping and clean up.
9092
ed73881e
RG
90932013-02-04 Richard Guenther <rguenther@suse.de>
9094
9095 PR lto/56168
9096 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9097 node prevail as last resort.
9098 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9099 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9100
139a0707
RB
91012013-02-04 Richard Biener <rguenther@suse.de>
9102
9103 PR tree-optimization/56113
9104 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9105 Merge into ...
9106 (equiv_class_lookup_or_add): ... this.
9107 (label_visit): Adjust and fix error in previous patch.
9108 (perform_var_substitution): Adjust.
9109
50fe8924
OE
91102013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9111
9112 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9113 * config/sh/sh4-300.md: Likewise.
9114 * config/sh/sh4a.md: Likewise.
9115 * config/sh/constraints.md: Likewise.
9116 * config/sh/sh.md: Likewise.
9117 * config/sh/netbsd-elf.h: Likewise.
9118 * config/sh/predicates.md: Likewise.
9119 * config/sh/sh-protos.h: Likewise.
9120 * config/sh/ushmedia.h: Likewise.
9121 * config/sh/linux.h: Likewise.
9122 * config/sh/sh.c: Likewise.
9123 * config/sh/superh.h: Likewise.
9124 * config/sh/elf.h: Likewise.
9125 * config/sh/sh4.md: Likewise.
9126 * config/sh/sh.h: Likewise.
9127
1a04ac2b
JDA
91282013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9129
9130 * config/pa/constraints.md: Adjust unused letters. Change "T"
9131 constraint to match_test floating_point_store_memory_operand().
9132 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9133 (base14_operand): New.
9134 (floating_point_store_memory_operand): New.
9135 (integer_store_memory_operand): Revise to use base14_operand and
9136 reg_plus_base_memory_operand.
9137 (move_dest_operand): Allow symbolic_memory_operands.
9138 (symbolic_memory_operand): Check for LO_SOM.
9139 (symbolic_operand): Change default case to break.
9140 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9141 CONST_DOUBLE values to be reloaded by putting them into memory when
9142 the destination is a floating point register.
9143 (movdf): Remove code to handle CONST_DOUBLE.
9144 (movsf): Likewise.
9145 (reload_indf_r1): New.
9146 (reload_insf_r1): New.
9147 Consistently use "Q" and "T" constraints with integer and floating
9148 point move instructions, respectively.
9149 (movdi): Remove FAIL.
9150 Change predicate for source operand unamed DImode move from
9151 general_operand to move_src_operand.
9152 (umulsidi3): Change predicate for destination operand to
9153 register_operand.
9154 Likewise for similar unamed patterns.
9155 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9156 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9157 (hppa_legitimize_address): Simplify mask calculation.
9158 (pa_emit_move_sequence): Revised handling of secondary reloads from
9159 REG+D addresses for floating point loads and stores. Directly handle
9160 loading CONST0_RTX (mode) to a floating point register.
9161 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9162 to floating point registers. Don't restrict secondary reloads to
9163 floating point registers to integer modes. Revise some comments and
9164 cleanup some code.
9165 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9166 (pa_legitimate_address_p): New.
9167 (pa_legitimize_reload_address): New.
9168 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9169 (STRICT_REG_OK_FOR_BASE_P): New.
9170 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9171 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9172
3bf65591
DE
91732013-02-03 David Edelsohn <dje.gcc@gmail.com>
9174 Andrew Dixie <andrewd@gentrack.com>
9175
9176 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9177 flag set.
9178
c0a8a3e6
RS
91792013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9180
9181 * expmed.c (extract_bit_field_1): Pass the full width of the
9182 structure to get_best_reg_extraction_insn.
9183
99113dff
DE
91842013-02-01 David Edelsohn <dje.gcc@gmail.com>
9185
9186 PR target/54601
9187 * configure.ac (use_cxa_atexit): Add AIX.
9188 * configure: Regenerate.
9189
9190 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9191
ddd84654
JJ
91922013-02-01 Jakub Jelinek <jakub@redhat.com>
9193
9194 PR debug/54793
9195 * final.c (need_profile_function): New variable.
9196 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9197 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9198 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9199 notes, targetm.asm_out.function_prologue doesn't emit anything,
9200 HAVE_prologue and profiler should be emitted before prologue,
9201 set need_profile_function instead of emitting it.
9202 (final_scan_insn): If need_profile_function, emit
9203 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9204 NOTE_INSN_FUNCTION_BEG note.
9205
92062013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9207
9208 * config/rs6000/rs6000.md (smulditi3): New.
9209 (umulditi3): New.
9210
ff2a9d88
RH
9211 * config/alpha/alpha.md (umulditi3): New.
9212
14d52b90
DE
92132013-02-01 David Edelsohn <dje.gcc@gmail.com>
9214
9215 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9216 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9217
8c7ca45c
RB
92182013-02-01 Richard Biener <rguenther@suse.de>
9219
9220 PR tree-optimization/56113
9221 * tree-ssa-structalias.c (label_visit): Reduce work for
9222 single-predecessor nodes.
9223
9f419393
EB
92242013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9225
9226 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9227 range isn't testing for zero.
9228
c5f4be84
SB
92292013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9230
9231 PR middle-end/56113
9232 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9233
dbdbd982
NC
92342013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9235 Nick Clifton <nickc@redhat.com>
9236
9237 * config/v850/constraints.md (Q): Define as a memory constraint.
9238 * config/v850/predicates.md (label_ref_operand): New predicate.
9239 (e3v5_shift_operand): New predicate.
9240 (ior_operator): New predicate.
9241 * config/v850/t-v850: Add e3v5 multilib.
9242 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9243 (v850_gen_movdi): Prototype.
9244 * config/v850/v850.c: Add support for e3v5 architecture.
9245 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9246 TARGET_V850E_UP.
9247 (construct_save_jarl): Add e3v5 long JARL support.
9248 (v850_adjust_insn_length): New function. Adjust length of call
9249 insns when using e3v5 instructions.
9250 (v850_gen_movdi): New function: Generate instructions to move a
9251 DImode value.
9252 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9253 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9254 (TARGET_USE_FPU): Enable for e3v5.
9255 (CONST_OK_FOR_W): New macro.
9256 (ADJUST_INSN_LENGTH): Define.
9257 * config/v850/v850.md (UNSPEC_LOOP): Define.
9258 (attr cpu): Add v850e3v5.
9259 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9260 (movdi): New pattern.
9261 (movdi_internal): New pattern.
9262 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9263 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9264 (cstoresf4): Likewise.
9265 (cstoredf4): Likewise.
9266 (insv): New pattern.
9267 (rotlso3_a): New pattern.
9268 (rotlsi3_b): New pattern
9269 (rotlsi3_v850e3v5): New pattern.
9270 (doloop_begin): New pattern.
9271 (fix_loop_counter): New pattern.
9272 (doloop_end): New pattern.
9273 (branch_normal): Add e3v5 long branch support.
9274 (branch_invert): Likewise.
9275 (branch_z_normal): Likewise.
9276 (branch_z_invert): Likewise.
9277 (branch_nz_normal): Likewise.
9278 (branch_nz_invert): Likewise.
9279 (call_internal_short): Add e3v5 register-indirect JARL support.
9280 (call_internal_long): Likewise.
9281 (call_value_internal_short): Likewise.
9282 (call_value_internal_long): Likewise.
9283 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9284 (mloop): New option.
9285 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 9286 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 9287
73861a41
PK
92882013-01-31 Paul Koning <ni1d@arrl.net>
9289
9290 PR debug/55059
9291 PR debug/54508
9292 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9293 children if parent is a class.
9294 (prune_unused_types_prune): Don't add DW_AT_declaration.
9295
e44978dc
RB
92962013-01-31 Richard Biener <rguenther@suse.de>
9297
9298 PR tree-optimization/56157
9299 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9300 match up operand with SLP child.
9301
90b10dec
JM
93022013-01-31 Jason Merrill <jason@redhat.com>
9303
04d2dadd 9304 PR debug/54410
90b10dec
JM
9305 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9306 parameters the first time.
9307 (gen_scheduled_generic_parms_dies): Check completeness here.
9308
6e616110
RB
93092013-01-31 Richard Biener <rguenther@suse.de>
9310
9311 PR middle-end/53073
9312 * common.opt (faggressive-loop-optimizations): New flag,
9313 enabled by default.
9314 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9315 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9316 infer_loop_bounds_from_undefined by it.
9317
636f59cf
RB
93182013-01-31 Richard Biener <rguenther@suse.de>
9319
9320 PR tree-optimization/56150
9321 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9322 visit virtual operands.
9323 (find_uses_to_rename_bb): Likewise.
9324
93252013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
9326
9327 PR tree-optimization/56150
9328 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9329 mixed store non-store stmts.
9330
32887460
JJ
93312013-01-30 Jakub Jelinek <jakub@redhat.com>
9332
e60e09a0
JJ
9333 PR sanitizer/55374
9334 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9335 LIBASAN_EARLY_SPEC is defined.
9336 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9337 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9338 before %o.
9339 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9340
32887460
JJ
9341 PR c++/55742
9342 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9343 invalid args instead of ICEing on it.
9344 (ix86_valid_target_attribute_tree): Return error_mark_node if
9345 ix86_valid_target_attribute_inner_p failed.
9346 (ix86_valid_target_attribute_p): Return false only if
9347 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9348 target("default") attribute.
9349 (sorted_attr_string): Change argument from const char * to tree,
9350 merge in all target attribute arguments rather than just one.
9351 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9352 instead of free. Avoid using strcat.
9353 (ix86_mangle_function_version_assembler_name): Mangle
9354 target("default") as if no target attribute is present. Adjust
9355 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9356 instead of xmalloc and XDELETEVEC instead of free.
9357 (ix86_function_versions): Don't return true if one of the decls
9358 doesn't have target attribute. If they don't and one of the decls
9359 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9360 sorted_attr_string caller. Use XDELETEVEC instead of free.
9361 (ix86_supports_function_versions): Remove.
9362 (make_name): Fix up formatting.
9363 (make_dispatcher_decl): Remove resolver_name and its initialization.
9364 Avoid leaking memory.
9365 (is_function_default_version): Return true if there is
9366 target("default") attribute rather than no target attribute at all.
9367 (make_resolver_func): Avoid leaking memory.
9368 (ix86_generate_version_dispatcher_body): Likewise.
9369 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9370 * target.def (supports_function_versions): Remove.
9371 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9372 * doc/tm.texi: Regenerated.
9373
73cca0cc
VM
93742013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9375
9376 PR rtl-optimization/56144
9377 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9378 for values with side effects.
9379
11452e7b
RB
93802013-01-30 Richard Biener <rguenther@suse.de>
9381
9382 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9383 (sparseset_pop): Likewise.
9384 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9385 to be able to use quick_push in the worker loop.
9386
01cb1ef5
MP
93872013-01-30 Marek Polacek <polacek@redhat.com>
9388
9389 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9390
e892936e
RB
93912013-01-30 Richard Biener <rguenther@suse.de>
9392
9393 PR lto/56147
6edc3e32 9394 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 9395
cc06c01d
GJL
93962013-01-30 Georg-Johann Lay <avr@gjlay.de>
9397
9398 PR tree-optimization/56064
9399 * fixed-value.c (fixed_from_double_int): New function.
9400 * fixed-value.h (fixed_from_double_int): New prototype.
9401 (const_fixed_from_double_int): New static inline function.
9402 * fold-const.c (native_interpret_fixed): New static function.
9403 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9404 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9405 (native_encode_fixed): New static function.
9406 (native_encode_expr) <FIXED_CST>: Use it.
9407 (native_interpret_int): Move double_int worker code to...
9408 * double-int.c (double_int::from_buffer): ...this new static method.
9409 * double-int.h (double_int::from_buffer): Prototype it.
9410
d394a308
RB
94112013-01-30 Richard Biener <rguenther@suse.de>
9412
9413 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9414 New pointer-map and obstack.
9415 (init_alias_vars): Allocate pointer-map and obstack.
9416 (delete_points_to_sets): Free them.
9417 (find_what_var_points_to): Cache result.
9418 (find_what_p_points_to): Adjust for changed interface of
9419 find_what_var_points_to.
9420 (compute_points_to_sets): Likewise.
9421 (ipa_pta_execute): Likewise.
9422
20804d96
RO
94232013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9424
9425 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9426 * configure: Regenerate.
9427 * config.in: Regenerate.
9428 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9429 #nobits/#progbits if supported.
9430
a7ad88a2
OE
94312013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9432
9433 PR target/56121
9434 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9435 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9436 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9437
7af79f92
GY
94382013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9439
91bfca59
OE
9440 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9441 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 9442
753bcf7b
GY
94432013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9444
91bfca59
OE
9445 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9446 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 9447
8cbc2ea8
GY
94482013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9449
91bfca59
OE
9450 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9451 declaration.
9452 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9453 * config/arm/cortex-a7.md: New bypasses using
9454 arm_mac_accumulator_is_result.
8cbc2ea8 9455
697a3325
GY
94562013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9457
91bfca59 9458 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 9459 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
9460 (cortex_a7_fpfmad): New reservation.
9461 (cortex_a7_fpmacs): Use ffmas and update required units.
9462 (cortex_a7_fpmuld): Update required units and latency.
9463 (cortex_a7_fpmacd): Likewise.
9464 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9465 (cortex_a7_neon). Likewise.
9466 (bypass) Update participating units.
697a3325 9467
29637783
GY
94682013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9469
91bfca59
OE
9470 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9471 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9472 from fmac to ffma.
9473 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9474 (vfp_fmul): Use ffmad.
9475 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9476 (cortex_r4_fmacd): Use ffmad.
9477 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9478 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9479 (cortex_a9_fmacd): Use ffmad.
9480 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9481 (cortex_a8_vfp_macd): Use ffmad.
9482 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9483 (cortex_a5_fpmacd): Use ffmad.
9484 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9485 (cortex_a15_vfp_macd): Use ffmad.
9486 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 9487
2ee8a2d5
JM
94882013-01-29 Jason Merrill <jason@redhat.com>
9489
9490 PR libstdc++/54314
9491 * varasm.c (default_assemble_visibility): Don't warn about
9492 visibility on artificial decls.
9493
78d087bc
RB
94942013-01-29 Richard Biener <rguenther@suse.de>
9495
9496 PR tree-optimization/56113
9497 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9498 the bitmap leader.
9499 (label_visit): Free duplicate bitmaps and record the leader instead.
9500 (perform_var_substitution): Adjust.
9501
83ba4d6f
RB
95022013-01-29 Richard Biener <rguenther@suse.de>
9503
9504 PR tree-optimization/55270
9505 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9506 the CFG, schedule loops for fixup.
9507
66dfe13f
NC
95082013-01-29 Nick Clifton <nickc@redhat.com>
9509
9510 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9511 SP_REG.
9512
5a579c3b
LE
95132013-01-28 Leif Ekblad <leif@rdos.net>
9514
9515 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9516 * config/i386/i386.h (TARGET_RDOS): New macro.
9517 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9518 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9519 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9520 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9521 DEFAULT_LARGE_SECTION_THRESHOLD.
9522 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9523 * config/i386/rdos.h: New file.
9524 * config/i386/rdos64.h: New file.
9525
51e44392
BS
95262013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9527
9528 PR other/54814
9529 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9530 TEST_HARD_REG_BIT.
9531
db1fb332
JJ
95322013-01-28 Jakub Jelinek <jakub@redhat.com>
9533
9534 PR rtl-optimization/56117
9535 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9536 call cselib_lookup_from_insn on the MEM before calling
9537 add_insn_mem_dependence.
9538
16917761
RB
95392013-01-28 Richard Biener <rguenther@suse.de>
9540
9541 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9542 to a stmt that didn't have one.
9543 (copy_phis_for_bb): Likewise for PHI arguments.
9544 (copy_debug_stmt): Likewise for debug stmts.
9545
b9fc0497
RB
95462013-01-28 Richard Biener <rguenther@suse.de>
9547
9548 PR tree-optimization/56034
6edc3e32 9549 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
9550 (partition_builtin_p): Adjust.
9551 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9552 it is the last partition.
9553 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9554 up the vertex for the definition.
9555 (classify_partition): Classify whether a partition is a
9556 PKIND_REDUCTION, thus has uses outside of the loop.
9557 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9558 Merge all PKIND_REDUCTION partitions into the last partition.
9559 (tree_loop_distribution): Seed partitions from reductions as well.
9560
aa710d25
JJ
95612013-01-28 Jakub Jelinek <jakub@redhat.com>
9562
0bfbca58
JJ
9563 PR tree-optimization/56125
9564 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9565 pow(x,c) into sqrt(x) * powi(x, n/2) or
9566 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9567 optimizing for size.
9568 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9569 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9570 integer.
9571
aa710d25
JJ
9572 PR tree-optimization/56094
9573 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9574 to UNKNOWN_LOCATION while gimplifying expr.
9575
77dc5297
UB
95762013-01-27 Uros Bizjak <ubizjak@gmail.com>
9577
9578 PR target/56114
9579 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9580 operand 0 in movabs insn template for -masm=intel asm alternative.
9581 (*movabs<mode>_2): Ditto for operand 1.
9582
0bfbca58 95832013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
9584
9585 PR target/54663
9586 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9587 of microblaze-c.o
9588
0bfbca58 95892013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
9590
9591 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9592 tm_file.
9593
0bfbca58 95942013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
9595
9596 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9597 Undef to avoid warning.
9598
478f60f9
MH
95992013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9600
9601 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9602 * configure: Regenerate.
9603
d7fa6ee2
JJ
96042013-01-25 Jakub Jelinek <jakub@redhat.com>
9605
9606 PR tree-optimization/56098
9607 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9608 for stmts with volatile ops.
9609 (cond_store_replacement): Don't optimize if assign has volatile ops.
9610 (cond_if_else_store_replacement_1): Don't optimize if either
9611 then_assign or else_assign have volatile ops.
9612 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9613 volatile ops.
9614
f8fe87bd
GJL
96152013-01-25 Georg-Johann Lay <avr@gjlay.de>
9616
9617 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9618
28398d0d
GJL
96192013-01-25 Georg-Johann Lay <avr@gjlay.de>
9620
9621 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9622 missing ':' in asm example.
9623
b7d7d917
TB
96242013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9625
9626 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9627 entries into lane and laneq entries.
77dc5297
UB
9628 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9629 Remove AdvSIMD scalar modes.
b7d7d917
TB
9630 (aarch64_sq<r>dmulh_laneq<mode>): New.
9631 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9632 modes.
9633 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9634 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9635 * config/aarch64/iterators.md (VCOND): New.
9636 (VCONQ): New.
9637
556f9906
GJL
96382013-01-25 Georg-Johann Lay <avr@gjlay.de>
9639
9640 PR target/54222
9641 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9642 Add NULL LIBNAME argument to existing definitions.
9643 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9644 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9645 * config/avr/avr.c (DEF_BUILTIN): Same.
9646 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9647 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9648 implementation is available (DECL_ASSEMBLER_NAME is set).
9649 (avr_fold_absfx): New static function.
9650 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9651 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9652 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9653 AVR_BUILTIN_ABSLLK.
9654 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9655 (abshk, absk, abslk, absllk): Provide as static inline functions.
9656
1f546bbb
MP
96572013-01-25 Marek Polacek <polacek@redhat.com>
9658
9659 PR tree-optimization/56035
9660 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9661
7e184bd7
UB
96622012-01-24 Uros Bizjak <ubizjak@gmail.com>
9663
9664 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9665 (*movtf_internal_rex64): Add (!o,C) alternative
9666 (*movxf_internal_rex64): Ditto.
9667 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9668
f5ba49ac
SM
96692013-01-24 Shenghou Ma <minux.ma@gmail.com>
9670
9671 * doc/invoke.texi: fix typo.
9672 * doc/objc.texi: fix typo.
9673
a6343728
RS
96742013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9675
9676 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9677 for the first two alternatives.
9678
cd030c07
DN
96792013-01-24 Diego Novillo <dnovillo@google.com>
9680
77dc5297 9681 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
9682 (ggc-zone.o): Remove.
9683 * configure.ac: Remove option --with-gc.
9684 * configure: Re-generate.
9685 * doc/install.texi: Remove documentation for --with-gc.
9686 * gengtype.c (write_enum_defn): Remove. Update all users.
9687 (write_Types_process_field): Remove generation of gt_e_* argument.
9688 (output_type_enum): Remove. Update all users.
9689 (write_enum_defn): Remove. Update all users.
9690 (enum alloc_zone): Remove. Update all users.
77dc5297 9691 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
9692 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9693 Update all callers.
9694 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 9695 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
9696 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9697 Update all users.
aaf1e810 9698 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
9699 (struct alloc_zone): Remove.
9700 (ggc_internal_alloc_zone_stat): Remove.
9701 (ggc_internal_cleared_alloc_zone_stat): Remove.
9702 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
9703 (ggc_pch_count_object): Remove last argument. Update all users.
9704 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
9705 (struct alloc_zone): Remove.
9706 * ggc-zone.c: Remove.
77dc5297 9707 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
9708 (struct alloc_zone): Remove.
9709 (ggc_alloc_typed_stat): Remove.
9710 (ggc_alloc_typed): Remove.
9711 (ggc_splay_alloc): Remove first argument.
9712 (rtl_zone): Remove. Update all users.
9713 (tree_zone): Remove. Update all users.
9714 (tree_id_zone): Remove. Update all users.
9715 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 9716 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 9717 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 9718 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 9719
a861ffa4
GJL
97202013-01-24 Georg-Johann Lay <avr@gjlay.de>
9721
9722 * config/avr/avr.c (avr_out_fract): Make register numbers that
9723 might be outside of source operand signed.
9724
593c0ddd
UB
97252013-01-24 Uros Bizjak <ubizjak@gmail.com>
9726
9727 * config/i386/constraints.md (Yf): New constraint.
9728 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9729 of f constraint to conditionaly disable x87 register preferences.
9730 (*movdf_internal): Ditto.
9731 (*movsf_internal): Ditto.
9732
e86c0101
SB
97332013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9734
9735 PR inline-asm/55934
9736 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9737 that have operands with impossible constraints.
9738 Add a FIXME for a speed-up opportunity.
9739 * lra-constraints.c (process_alt_operands): Verify that a class
9740 selected from constraints on asms is valid for the operand mode.
9741 (curr_insn_transform): Remove incorrect comment.
9742
f6fee35f
DE
97432013-01-23 David Edelsohn <dje.gcc@gmail.com>
9744
9745 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9746 TOC operand is a valid symbol ref in the constant pool.
9747
97482013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 9749
aaf1e810 9750 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 9751
dc62d7d1
GJL
97522013-01-23 Georg-Johann Lay <avr@gjlay.de>
9753
9754 PR target/54222
9755 * config/avr/stdfix.h: New file.
9756 * t-avr (stdfix-gcc.h): New rule to build it.
9757 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9758
2660d12d
KS
97592013-01-23 Kostya Serebryany <kcc@google.com>
9760
77dc5297
UB
9761 * config/darwin.h: remove dependency on
9762 CoreFoundation (asan on Mac OS).
2660d12d 9763
a70418fc
JJ
97642013-01-23 Jakub Jelinek <jakub@redhat.com>
9765
9766 PR target/49069
9767 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9768 instead of cmpdi_operand for first comparison operand.
9769 Don't assert that comparison operands aren't both constants.
9770
47876a2a
JW
97712013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9772
9773 * doc/install.texi (Downloading the Source): Update references to
9774 downloading separate components.
9775
97762013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
9777
9778 * doc/extend.texi (__int128): Improve grammar.
9779
47876a2a 97802013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
9781
9782 PR target/56028
9783 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9784 alternative to (o,r).
9785 (*movdi_internal_rex64): Remove (!o,n) alternative.
9786 (DImode immediate->memory splitter): Remove.
9787 (DImode immediate->memory peephole2): Remove.
9788 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9789 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9790 alternative to (!o,*r).
9791 (*movtf_internal_sse): New pattern.
9792 (*movxf_internal_rex64): New pattern.
9793 (*movxf_internal): Disable for TARGET_64BIT.
9794 (*movdf_internal_rex64): Remove (!o,F) alternative.
9795
3a984f10
JJ
97962013-01-22 Jakub Jelinek <jakub@redhat.com>
9797
502498d5
JJ
9798 PR middle-end/56074
9799 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9800 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9801 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9802 stmt locations where LOCATION_LOCUS of the stmt location is
9803 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9804
3a984f10
JJ
9805 PR target/55686
9806 * config/i386/i386.md (UNSPEC_STOS): New.
9807 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9808 *strsetqi_1): Add UNSPEC_STOS.
9809
fa817f7f
PC
98102013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9811
9812 PR c++/56067
9813 * doc/invoke.texi: Remove left over -Wsynth example.
9814
8f498c1b
JJ
98152013-01-21 Jakub Jelinek <jakub@redhat.com>
9816
9817 PR tree-optimization/56051
9818 * fold-const.c (fold_binary_loc): Don't fold
9819 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9820 a narrowing conversion, or widening conversion from signed
9821 to unsigned.
9822
47876a2a 98232013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
9824
9825 PR rtl-optimization/56023
9826 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9827 dependent on debug instruction.
9828
5b9db1bc
MJ
98292013-01-21 Martin Jambor <mjambor@suse.cz>
9830
9831 PR middle-end/56022
9832 * function.c (allocate_struct_function): Call
9833 invoke_set_current_function_hook earlier.
9834
e8bb7d68
JJ
98352013-01-21 Jakub Jelinek <jakub@redhat.com>
9836
9837 * reload1.c (init_reload): Only initialize reload_obstack
9838 during the first call.
9839
616a4e32
MP
98402013-01-21 Marek Polacek <polacek@redhat.com>
9841
9842 * cfgloop.c (verify_loop_structure): Fix up grammar.
9843
4401981b
YHH
98442013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9845
9846 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9847 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9848
8e87740b
RR
98492013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9850
9851 PR target/56058
9852 * config/arm/marvell-pj4.md: Update copyright year.
9853 Fix up use of alu to alu_reg and simple_alu_imm.
9854
47876a2a 98552013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
9856
9857 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9858
89d56d79
VM
98592013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9860
9861 PR target/55433
9862 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 9863 insn for secondary memory move when memory mode should be different.
89d56d79 9864
fe603553
JDA
98652013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9866
9867 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9868 atomic_storedi_1): New patterns.
9869
01284895
VK
98702013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9871
9872 btver2 pipeline descriptions.
9873 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9874 descriptions.
9875 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 9876 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
9877 type attributes.
9878 * config/i386/btver2.md: New file describing btver2 pipelines.
9879
5630e3e1
JL
98802013-01-19 Andrew Pinski <apinski@cavium.com>
9881
9882 PR tree-optimization/52631
9883 * tree-ssa-sccvn (visit_use): Before looking up the original
9884 statement, try looking up the simplified expression.
9885
650ae806
AG
98862013-01-19 Anthony Green <green@moxielogic.com>
9887
9888 * config/moxie/moxie.c (moxie_expand_prologue): Set
9889 current_function_static_stack_size.
9890
e300ec2d
JJ
98912013-01-18 Jakub Jelinek <jakub@redhat.com>
9892
9893 PR tree-optimization/56029
9894 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9895 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9896
a3d7af04
SS
98972013-01-18 Sharad Singhai <singhai@google.com>
9898
9899 PR tree-optimization/55995
9900 * dumpfile.c (dump_loc): Print location only if available.
9901 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9902
66aa7879
VM
99032013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9904
9905 PR target/55433
9906 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9907 secondary memory move.
9908 (inherit_reload_reg): Use rclass instead of cl for
9909 check_secondary_memory_needed_p.
9910
3f0fee7b
JJ
99112013-01-18 Jakub Jelinek <jakub@redhat.com>
9912
9913 PR middle-end/56015
9914 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 9915 the case where writing real complex part of target modifies op1.
3f0fee7b 9916
70c67693
JG
99172013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9918
9919 * config/aarch64/aarch64-simd.md
9920 (aarch64_vcond_internal<mode>): Handle unordered cases.
9921 * config/aarch64/iterators.md (v_cmp_result): New.
9922
df8de9b3
YHH
99232013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9924 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9925
9926 * config/arm/marvell-pj4.md: New file.
9927 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9928 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9929 (generic_vfp): Likewise.
9930 * config/arm/arm-cores.def: Add marvell-pj4.
9931 * config/arm/arm-tune.md: Regenerate.
9932 * config/arm/arm-tables.opt: Regenerate.
9933 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9934 * doc/invoke.texi: Document marvell-pj4.
9935
be30c356
TB
99362013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9937
9938 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9939
0bfbca58 99402013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
9941
9942 PR debug/54114
9943 PR debug/54402
9944 PR debug/49888
9945 * var-tracking.c (negative_power_of_two_p): New.
9946 (global_get_addr_cache, local_get_addr_cache): New.
9947 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9948 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9949 heading comment.
9950 (vt_stack_offset_p): Remove.
9951 (vt_canon_true_dep): Always canonicalize loc's address.
9952 (clobber_overlapping_mems): Make sure we have a MEM.
9953 (local_get_addr_clear_given_value): New.
9954 (val_reset): Clear local cached entries.
9955 (compute_bb_dataflow): Create and release the local cache.
9956 Disable duplicate MEMs clobbering.
9957 (emit_notes_in_bb): Clobber MEMs likewise.
9958 (vt_emit_notes): Create and release the local cache.
9959 (vt_initialize, vt_finalize): Create and release the global
9960 cache, respectively.
1f6bc337 9961 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 9962
0bfbca58 99632013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
9964
9965 PR libmudflap/53359
9966 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9967 not found in the symtab.
9968
0bfbca58 99692013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 9970
c350ba53 9971 PR debug/56006
3aa03517
AO
9972 PR rtl-optimization/55547
9973 PR rtl-optimization/53827
9974 PR debug/53671
9975 PR debug/49888
9976 * alias.c (offset_overlap_p): New, factored out of...
9977 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9978 the conservative special case for symbolic constants. Don't
9979 adjust zero sizes on alignment.
9980
c664546f
JL
99812013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9982
9983 PR rtl-optimization/52573
9984 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9985 REG_UNUSED for the same register.
9986
1bd3f750
MP
99872013-01-17 Richard Biener <rguenther@suse.de>
9988 Marek Polacek <polacek@redhat.com>
9989
9990 PR rtl-optimization/55833
9991 * loop-unswitch.c (unswitch_loops): Move loop verification...
9992 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9993 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9994 Set it to true when we're removing a loop from hierarchy tree in
9995 an irreducible region.
9996 (fix_bb_placements): Adjust caller.
9997 (fix_loop_placements): Likewise.
9998
e52a8b71
GJL
99992013-01-17 Georg-Johann Lay <avr@gjlay.de>
10000
10001 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10002 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10003 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10004 Remove ID. Adjust comments.
10005 * config/avr/avr-c.c (avr_builtin_name): Remove.
10006 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10007 * config/avr/avr.c (avr_tolower): New static function.
10008 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10009 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10010 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10011 default expansion.
10012
8386a7ea
JH
100132013-01-17 Jan Hubicka <jh@suse.cz>
10014
610fb637 10015 PR tree-optimization/55273
8386a7ea
JH
10016 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10017
47876a2a 100182013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
10019
10020 PR target/55981
10021 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10022 store through atomic_store<mode>_1.
10023 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10024
8222c37e
MJ
100252013-01-17 Martin Jambor <mjambor@suse.cz>
10026
10027 PR tree-optimizations/55264
10028 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10029 for virtual methods.
10030 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10031 virtual methods before inlining is over.
10032 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10033 virtual functions.
10034 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10035 non-virtual.
10036
79f01c76
VM
100372013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10038
10039 PR rtl-optimization/56005
10040 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10041 pending reads for prefetch.
10042
d0b6bb1b
IB
100432013-01-16 Ian Bolton <ian.bolton@arm.com>
10044
aaf1e810 10045 * config/aarch64/aarch64.md
d0b6bb1b
IB
10046 (*cstoresi_neg_uxtw): New pattern.
10047 (*cmovsi_insn_uxtw): New pattern.
10048 (*<optab>si3_uxtw): New pattern.
10049 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10050 (*<optab>si3_insn_uxtw): New pattern.
10051 (*bswapsi2_uxtw): New pattern.
10052
cb9cf03b
RB
100532013-01-16 Richard Biener <rguenther@suse.de>
10054
10055 * tree-inline.c (tree_function_versioning): Remove set but
10056 never used variable.
10057
2cfc56b9
RB
100582013-01-16 Richard Biener <rguenther@suse.de>
10059
10060 PR tree-optimization/55964
10061 * tree-flow.h (rename_variables_in_loop): Remove.
10062 (rename_variables_in_bb): Likewise.
10063 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10064 (copy_loop_before): Adjust and delete update-ssa status.
10065 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10066 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10067 (rename_variables_in_loop): Remove.
10068 (slpeel_update_phis_for_duplicate_loop): Likewise.
10069 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10070 use available cfg machinery instead of duplicating it.
10071 Update PHI nodes and perform poor-mans SSA update here.
10072 (slpeel_tree_peel_loop_to_edge): Adjust.
10073
c25a0c60
RB
100742013-01-16 Richard Biener <rguenther@suse.de>
10075
10076 PR tree-optimization/54767
10077 PR tree-optimization/53465
10078 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10079 (vrp_visit_phi_node): For PHI arguments coming via backedges
10080 drop all symbolical range information.
10081 (execute_vrp): Compute backedges.
10082
04b535af
RB
100832013-01-16 Richard Biener <rguenther@suse.de>
10084
10085 * doc/install.texi: Update CLooG and ISL requirements to
10086 0.18.0 and 0.11.1.
10087
8b0a1e0b
CB
100882013-01-16 Christian Bruel <christian.bruel@st.com>
10089
10090 PR target/55301
10091 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10092 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10093 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10094
100952013-01-16 DJ Delorie <dj@redhat.com>
10096
10097 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10098 (UNSPECV_SP_SWITCH_E): New.
10099 (sp_switch_1): Change to an unspec.
10100 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10101 replace $r15.
10102
101032013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10104
10105 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10106 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10107 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10108 (expand_mem_thread_fence): Ditto.
10109 (expand_mem_signal_fence): Ditto.
10110 (expand_atomic_load): Ditto.
10111 (expand_atomic_store): Ditto.
10112
0bfbca58 101132013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10114
10115 PR rtl-optimization/55547
10116 PR rtl-optimization/53827
10117 PR debug/53671
10118 PR debug/49888
10119 * alias.c (memrefs_conflict_p): Set sizes to negative after
10120 AND adjustments.
10121
305e3ac1
JJ
101222013-01-15 Jakub Jelinek <jakub@redhat.com>
10123
10124 PR target/55940
10125 * function.c (thread_prologue_and_epilogue_insns): Always
10126 add crtl->drap_reg to set_up_by_prologue.set, even if
10127 stack_realign_drap is false.
10128
f78ac4f2
JBG
101292013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10130
10131 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10132 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10133 *call): Fix indention.
10134
a78a8cc4
TV
101352013-01-15 Tom de Vries <tom@codesourcery.com>
10136
10137 PR target/55876
10138 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10139 Update comment.
10140
0e80383f
VM
101412013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10142
305e3ac1 10143 PR rtl-optimization/55153
0e80383f
VM
10144 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10145
207b5956
MJ
101462013-01-15 Martin Jambor <mjambor@suse.cz>
10147
10148 PR tree-optimization/55920
10149 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10150 accesses as grp_to_be_debug_replaced.
10151
a7818b54
JJ
101522013-01-15 Jakub Jelinek <jakub@redhat.com>
10153
10154 PR tree-optimization/55920
10155 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10156 there is non-useless type conversion needed from debug rhs to lhs,
10157 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10158
b0fe107e
JM
101592013-01-15 Joseph Myers <joseph@codesourcery.com>
10160 Mikael Pettersson <mikpe@it.uu.se>
10161
10162 PR target/43961
10163 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10164 Thumb.
10165 (ASM_OUTPUT_CASE_LABEL): Remove.
10166 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10167 * final.c (shorten_branches): Update alignment of labels before
10168 jump tables if CASE_VECTOR_SHORTEN_MODE.
10169
34ab62ee
RB
101702013-01-15 Richard Biener <rguenther@suse.de>
10171
10172 PR bootstrap/55961
10173 * system.h: Do not include gmp.h for building host tools.
10174
783a3a05
RB
101752013-01-15 Richard Biener <rguenther@suse.de>
10176
10177 PR middle-end/55882
10178 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10179 account for bitpos when computing alignment.
10180
3a579e09
VY
101812013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10182
10183 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10184 (ix86_target_macros_internal): Likewise.
10185
10186 * config/i386/i386.c (m_CORE2I7): Removed.
10187 (m_CORE_HASWELL): New macro.
10188 (m_CORE_ALL): Likewise.
10189 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10190 (initial_ix86_arch_features): Likewise.
10191 (processor_target_table): Initializations for Core avx2.
10192 (cpu_names): New names "core-avx2".
10193 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10194 PROCESSOR_CORE_HASWELL.
10195 (ix86_issue_rate): New case.
10196 (ia32_multipass_dfa_lookahead): Likewise.
10197 (ix86_sched_init_global): Likewise.
10198
10199 * config/i386/i386.h (TARGET_HASWELL): New macro.
10200 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10201 (processor_type): New PROCESSOR_HASWELL.
10202
955f5a07
JJ
102032013-01-15 Jakub Jelinek <jakub@redhat.com>
10204
ff784829
JJ
10205 PR tree-optimization/55955
10206 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10207 *SHIFT_EXPR and *ROTATE_EXPR codes.
10208
955f5a07
JJ
10209 PR tree-optimization/48766
10210 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10211 -ftrapv disable -fwrapv.
10212
aeb8b4e9
GJL
102132013-01-14 Georg-Johann Lay <avr@gjlay.de>
10214
10215 PR target/55974
10216 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10217 etc. to 1 and not to __flash.
10218 Use LL suffix for __INT24_MAX__ with -mint8.
10219 Use ULL suffix for __UINT24_MAX__ with -mint8.
10220
1c494c6a
GJL
102212013-01-14 Georg-Johann Lay <avr@gjlay.de>
10222
10223 * config/avr/avr-arch.h
10224 (struct base_arch_s): Use typedef avr_arch_t instead.
10225 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10226 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10227 * config/avr/avr.c: Same.
10228 * config/avr/avr-devices.c: Same.
10229 * config/avr/driver-avr.c: Same.
10230 * config/avr/gen-avr-mmcu-texi.c: Same.
10231 * config/avr/avr-mcus.def: Adjust comment.
10232
a50344cb
TB
102332013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10234
88e784e6
UB
10235 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10236 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10237
47876a2a 102382013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10239 Andi Kleen <ak@linux.intel.com>
10240
10241 PR target/55948
10242 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10243 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10244 memmodel flag.
10245
00892272
GJL
102462013-01-14 Georg-Johann Lay <avr@gjlay.de>
10247
10248 * config/avr/avr-stdint.h: Remove trailing blanks.
10249 * config/avr/avr-log.h: Same.
10250 * config/avr/avr-arch.h: Same.
10251 * config/avr/avr-devices.c: Same.
10252 * config/avr/avr-dimode.md: Same.
10253 * config/avr/predicates.md: Same.
10254 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10255
00892272
GJL
10256 * config/avr/avr-protos.h: Same. And:
10257 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10258 (init_cumulative_args): Rename to avr_init_cumulative_args.
10259 (expand_prologue): Rename to avr_expand_prologue.
10260 (expand_epilogue): Rename to avr_expand_epilogue.
10261 (adjust_insn_length): Rename to avr_adjust_insn_length.
10262 (notice_update_cc): Rename to avr_notice_update_cc.
10263 (final_prescan_insn): Rename to avr_final_prescan_insn.
10264 * config/avr/avr.c: Same.
10265 * config/avr/avr.h: Same.
10266 * config/avr/avr.md: Remove trailing blanks.
10267 (prologue): Use avr_expand_prologue.
10268 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10269
7bb01996
RB
102702013-01-14 Richard Biener <rguenther@suse.de>
10271
10272 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10273 verify_location, collect_subblocks): New functions.
10274 (verify_gimple_in_cfg): Verify that locations only reference
10275 BLOCKs in the functions BLOCK tree.
10276
2724573f
RB
102772013-01-14 Richard Biener <rguenther@suse.de>
10278
10279 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10280 PHI argument.
10281 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10282 unshare reference.
10283 (insert_out_of_ssa_copy_on_edge): Likewise.
10284 (rewrite_close_phi_out_of_ssa): Likewise.
10285 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10286 debug expressions.
10287 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10288 propagated constants.
10289 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10290 can not be shared.
10291
9a0bbab6
GJL
102922013-01-14 Georg-Johann Lay <avr@gjlay.de>
10293
10294 * config/avr/avr-modes.def: Add GPL copyright notice.
10295
45805f17
UB
102962013-01-13 Uros Bizjak <ubizjak@gmail.com>
10297
10298 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10299 MEMMODEL_MASK to determine memory model.
10300 (atomic_store<mode>): Ditto from operands[2].
10301 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10302
9d60be38
JJ
103032013-01-13 Jakub Jelinek <jakub@redhat.com>
10304
10305 PR fortran/55935
45805f17 10306 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
10307 (fold_gimple_assign): Don't call unshare_expr here.
10308 (fold_ctor_reference): Call unshare_expr.
10309
e7f49d92
TG
103102013-01-13 Terry Guo <terry.guo@arm.com>
10311
aaf1e810
EB
10312 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10313 * doc/fragments.texi: Document MULTILIB_REUSE.
10314 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 10315 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 10316 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
10317 (tmpmultilib4): Ditto.
10318 (multilib_reuse): New multilib argument.
10319
fbd03a27
RS
103202013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10321
10322 * Makefile.in: Update copyright.
10323
b3681f13
TV
103242013-01-12 Tom de Vries <tom@codesourcery.com>
10325
10326 PR middle-end/55890
10327 * calls.c (expand_call): Check if arg_nr is valid.
10328
3f287e4b
MM
103292013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10330
10331 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10332 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
10333 documentation. Add missing '__' in front of
10334 __builtin_ia32_packssdw256.
3f287e4b 10335
1abcd5eb
AK
103362013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10337
10338 PR target/55719
10339 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10340 NO_REGS for larl operands.
10341 (s390_reload_larl_operand): Use s390_load_address instead of
10342 emit_move_insn.
10343
980d0812
RB
103442013-01-11 Richard Biener <rguenther@suse.de>
10345
10346 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10347 (verify_node_sharing): ... here.
10348 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10349
7cb9fd07
EB
103502013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10351
10352 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10353 Substitute TREECHECKING.
10354 * configure: Regenerate.
10355 * Makefile.in (TREECHECKING): New.
10356
47876a2a 103572013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
10358
10359 PR tree-optimization/44061
10360 * tree-vrp.c (extract_range_basic): Compute zero as
10361 value-range for __builtin_constant_p of function parameters.
10362
d1e082c2
RS
103632013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10364
45805f17 10365 Update copyright years.
d1e082c2 10366
f85021b0
VM
103672013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10368
9d60be38 10369 PR rtl-optimization/55672
0160442c
VM
10370 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10371 const to be eliminable.
f85021b0 10372
7a8b1ec4
DE
103732013-01-10 David Edelsohn <dje.gcc@gmail.com>
10374
10375 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10376 * configure: Regenerate.
10377
ad2e5b71
RB
103782013-01-10 Richard Biener <rguenther@suse.de>
10379
ddf9322d 10380 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 10381
ffc5b2bb
RB
103822013-01-10 Richard Biener <rguenther@suse.de>
10383
10384 PR bootstrap/55792
10385 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10386 locations for virtual PHI arguments.
10387 (rewrite_update_phi_arguments): Likewise.
10388
e1f674e4
JS
103892013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10390
10391 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10392 on to assembler.
10393
a57fc743
JJ
103942013-01-10 Jakub Jelinek <jakub@redhat.com>
10395
10396 PR tree-optimization/55921
10397 * tree-complex.c (expand_complex_asm): New function.
10398 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10399
0ff4390d
AK
104002013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10401
10402 PR target/55718
10403 * config/s390/s390.c (s390_symref_operand_p)
10404 (s390_loadrelative_operand_p): Merge the two functions.
10405 (s390_check_qrst_address, print_operand_address): Add parameters
10406 to s390_loadrelative_operand_p invokation.
10407 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10408 (s390_reload_larl_operand, s390_secondary_reload): Use
10409 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10410 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10411
6f557e0e
MS
104122013-01-09 Mike Stump <mikestump@comcast.net>
10413
10414 * dse.c (record_store): Remove unnecessary assert.
10415
7770c9e9
JH
104162013-01-09 Jan Hubicka <jh@suse.cz>
10417
10418 PR tree-optimization/55569
10419 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10420 * cfgloop.h (scale_loop_profile): Likewise.
10421
a19b1432
JH
104222013-01-09 Jan Hubicka <jh@suse.cz>
10423
10424 PR lto/45375
ddf9322d
UB
10425 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10426 functions.
a19b1432
JH
10427 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10428
9a002da8
RS
104292013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10430
10431 PR middle-end/55114
10432 * expr.h (maybe_emit_group_store): Declare.
10433 * expr.c (maybe_emit_group_store): New function.
10434 * builtins.c (expand_builtin_int_roundingfn): Call it.
10435 (expand_builtin_int_roundingfn_2): Likewise.
10436
511dcace
VM
104372013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10438
e1f2b729 10439 PR rtl-optimization/55829
511dcace
VM
10440 * lra-constraints.c (match_reload): Add code for absent output.
10441 (curr_insn_transform): Add code for reloads of matched inputs
10442 without output.
10443
7b0fe4f4
UB
104442013-01-09 Uros Bizjak <ubizjak@gmail.com>
10445
10446 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10447 attribute of movddup insn to DF.
10448 (*vec_interleave_lowv2df): Ditto.
10449 (vec_dupv2df): Ditto.
10450
870ca331
JH
104512013-01-09 Jan Hubicka <jh@suse.cz>
10452
10453 PR tree-optimiation/55875
10454 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10455 EVERY_ITERATION parameter.
7b0fe4f4 10456 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
10457 (idx_infer_loop_bounds): Similarly here.
10458 (n_of_executions_at_most): Simplify
10459 to only test for cases where statement is dominated by the
7b0fe4f4 10460 particular bound; handle correctly the "postdominance" test.
870ca331
JH
10461 (scev_probably_wraps_p): Use max loop iterations info
10462 as a global bound first.
10463
6f575fe4 104642013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
10465 Nick Clifton <nickc@redhat.com>
10466
10467 * config/v850/v850.md (cbranchsf4): New pattern.
10468 (cstoresf4): New pattern.
10469 (cbranchdf4): New pattern.
10470 (cstoredf4): New pattern.
10471 (movsicc): Disallow floating point comparisons.
10472 (cmpsf_le_insn): Fix order of operators.
10473 (cmpsf_lt_insn): Likewise.
10474 (cmpsf_eq_insn): Likewise.
10475 (cmpdf_le_insn): Likewise.
10476 (cmpdf_lt_insn): Likewise.
10477 (cmpdf_eq_insn): Likewise.
10478 (cmpsf_ge_insn): Use LE comparison.
10479 (cmpdf_ge_insn): Likewise.
10480 (cmpsf_gt_insn): Use LT comparison.
10481 (cmpdf_gt_insn): Likewise.
10482 (cmpsf_ne_insn): Delete pattern.
10483 (cmpdf_ne_insn): Delete pattern.
10484 * config/v850/v850.c (v850_gen_float_compare): Use
10485 gen_cmpdf_eq_insn for NE comparison.
10486 (v850_float_z_comparison_operator)
10487 (v850_float_nz_comparison_operator): Move from here ...
10488 * config/v850/predicates.md: ... to here. Move GT and GE
10489 comparisons into v850_float_z_comparison_operator.
10490 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10491 Delete prototype.
10492 (v850_float_nz_comparison_operator): Likewise.
10493
f0d54148
JDA
104942013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10495
10496 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10497 with calls to gen_insvsi/gen_insvdi.
10498
8f01beca
VK
104992013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10500
10501 * config/i386/i386.c (initial_ix86_tune_features): Set up
10502 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10503
2aa579ad
JJ
105042013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10505 Jakub Jelinek <jakub@redhat.com>
10506
10507 PR tree-optimization/48189
10508 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10509 If nitercst is 0, don't predict the exit edge.
10510
6edc3e32 105112013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
10512
10513 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10514 in asm_fprintf with reg_names.
10515 (aarch64_print_operand_address): Likewise.
10516 (aarch64_return_addr): Likewise.
10517 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10518
f6f94d94
JDA
105192013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10520
10521 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10522 (INT_U6_BITS): Likewise.
10523 * config/pa/predicates.md (uint6_operand): New predicate.
10524 (shift5_operand, shift6_operand): Likewise.
10525 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10526 arith32_operand.
10527 (lshrdi3): Use shift6_operand.
10528 (shrpsi4, shrpdi4): New insn patterns.
10529 (extzv): Delete expander.
10530 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10531 predicates in unamed zero extract patterns. Tighten common constraint.
10532 (extv): Delete expander.
10533 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10534 predicates in unamed sign extract patterns. Tighten common constraint.
10535 (insv): Delete expander.
10536 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10537 predicates in unamed insert patterns. Tighten common constraint.
10538 Change uint32_operand predicate to uint6_operand predicate in unamed
10539 DImode pattern to insert constant values of type 1...1xxxx.
10540
36b72910
JH
105412013-01-04 Jan Hubicka <jh@suse.cz>
10542
10543 PR tree-optimization/55823
7b0fe4f4
UB
10544 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10545 issue.
36b72910 10546
47876a2a 105472013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
10548 Uros Bizjak <ubizjak@gmail.com>
10549
10550 PR rtl-optimization/55845
10551 * df-problems.c (can_move_insns_across): Stop scanning at
10552 volatile_insn_p source instruction or give up if
10553 across_from .. across_to range contains any volatile_insn_p
10554 instructions.
10555
4369c11e
TB
105562013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10557
7b0fe4f4
UB
10558 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10559 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10560 Declare.
4369c11e 10561 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 10562 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 10563
aeb7e7c1
JJ
105642013-01-08 Jakub Jelinek <jakub@redhat.com>
10565
10566 PR fortran/55341
10567 * asan.c (asan_clear_shadow): New function.
10568 (asan_emit_stack_protection): Use it.
10569
a02ad1aa
TB
105702013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10571
10572 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10573 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10574 with tab instead of space.
10575
f90d87f5
NC
105762013-01-08 Nick Clifton <nickc@redhat.com>
10577
10578 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10579 register bank 0 at the start of an interrupt handler.
83ffd964
NC
10580 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10581 MDBH registers.
f90d87f5 10582
385eb93d
JG
105832013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10584
10585 * config/aarch64/aarch64-simd.md
10586 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10587 (aarch64_simd_bsl): Likewise.
10588 (aarch64_vcond_internal<mode>): Likewise.
10589 (vcond<mode><mode>): Likewise.
10590 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10591 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10592
4dcd1054
JG
105932013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10594
10595 * config/aarch64/aarch64-builtins.c
10596 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10597
4267a4a6
MJ
105982013-01-08 Martin Jambor <mjambor@suse.cz>
10599
10600 PR debug/55579
10601 * tree-sra.c (analyze_access_subtree): Return true also after
10602 potentially creating a debug-only replacement.
10603
5f4e6de3
JJ
106042013-01-08 Jakub Jelinek <jakub@redhat.com>
10605
3138f224
JJ
10606 PR middle-end/55890
10607 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10608
5f4e6de3
JJ
10609 PR tree-optimization/54120
10610 * tree-vrp.c (range_fits_type_p): Don't allow
10611 src_precision < precision from signed vr to unsigned_p
10612 if vr->min or vr->max is negative.
10613 (simplify_float_conversion_using_ranges): Test can_float_p
10614 against CODE_FOR_nothing.
10615
f3ef18ff
JJ
106162013-01-08 Jakub Jelinek <jakub@redhat.com>
10617 Richard Biener <rguenther@suse.de>
10618
10619 PR middle-end/55851
10620 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10621 types instead of just INTEGER_TYPE types.
10622
25c210f9
MK
106232013-01-07 Mark Kettenis <kettenis@openbsd.org>
10624
10625 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10626 TF_SIZE): Define.
f90d87f5 10627
81826a7b
SE
106282013-01-07 Steve Ellcey <sellcey@mips.com>
10629
10630 PR target/42661
10631 * config/mips/mips.opt: Change mad to mmad to match documentation.
10632
35678514
GJL
106332013-01-07 Georg-Johann Lay <avr@gjlay.de>
10634
10635 PR target/55897
10636 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10637 .progmemx.data now.
10638
e5669488
GJL
106392013-01-07 Georg-Johann Lay <avr@gjlay.de>
10640
10641 PR target/55897
10642 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10643 (avr_addrspace_t): Add .section_name field.
10644 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10645 array size.
10646 (avr_addrspace): Same. Initialize .section_name. Remove last
10647 NULL entry. Put __memx into .progmemx.data.
10648 (progmem_section_prefix): Remove.
10649 (avr_asm_init_sections): No need to initialize progmem_section.
10650 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10651 section name prefix.
10652 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10653 retrieve the progmem section.
10654 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10655 boundary to run over avr_addrspace[].
10656 (avr_register_target_pragmas): Ditto.
10657
656e6f37
JJ
106582013-01-06 Jakub Jelinek <jakub@redhat.com>
10659
10660 * varasm.c (output_constant_def_contents): For asan_protect_global
10661 protected strings, adjust DECL_ALIGN if needed, before testing for
10662 anchored symbols.
10663 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10664 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10665 normal decls.
10666 (output_object_block): For asan protected decls, emit asan padding
10667 after their contents.
10668 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10669 (asan_finish_file): Test it here instead.
10670
6edc3e32
UB
106712013-01-07 Nick Clifton <nickc@redhat.com>
10672 Matthias Klose <doko@debian.org>
10673 Doug Kwan <dougkwan@google.com>
10674 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
10675
10676 PR driver/55470
10677 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10678
10679 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10680
10681 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10682
7b0fe4f4 10683 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
10684
10685 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10686
2a095093
GJL
106872013-01-07 Georg-Johann Lay <avr@gjlay.de>
10688
f3b503f4 10689 PR target/54461
2a095093
GJL
10690 * doc/install.texi (Cross-Compiler-Specific Options): Document
10691 --with-avrlibc.
10692
383f9b34
TB
106932013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10694
10695 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10696 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10697 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10698 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10699 vqmovun_high_s64): Fix source operand number and update copyright.
10700
3626621a
RB
107012013-01-07 Richard Biener <rguenther@suse.de>
10702
10703 PR middle-end/55890
10704 * gimple.h (gimple_call_builtin_p): New overload.
10705 * gimple.c (validate_call): New function.
10706 (gimple_call_builtin_p): Likewise.
10707 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10708 Use gimple_call_builtin_p.
10709 (find_func_clobbers): Likewise.
10710 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10711 (strlen_optimize_stmt): Likewise.
10712
8b2ea410
JG
107132013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10714
10715 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10716 (vld1q_dup_*): Likewise.
10717 (vld1_*): Likewise.
10718 (vld1q_*): Likewise.
10719 (vld1_lane_*): Likewise.
10720 (vld1q_lane_*): Likewise.
10721
9713d329
RB
107222013-01-07 Richard Biener <rguenther@suse.de>
10723
10724 * lto-streamer.h (LTO_minor_version): Bump to 2.
10725
3520f7cc
JG
107262013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10727
10728 * config/aarch64/aarch64-protos.h
10729 (aarch64_const_double_zero_rtx_p): Rename to...
10730 (aarch64_float_const_zero_rtx_p): ...this.
10731 (aarch64_float_const_representable_p): New.
10732 (aarch64_output_simd_mov_immediate): Likewise.
10733 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10734 move immediate case.
10735 * config/aarch64/aarch64.c
10736 (aarch64_const_double_zero_rtx_p): Rename to...
10737 (aarch64_float_const_zero_rtx_p): ...this.
10738 (aarch64_print_operand): Allow printing of new constants.
10739 (aarch64_valid_floating_const): New.
10740 (aarch64_legitimate_constant_p): Check for valid floating-point
10741 constants.
10742 (aarch64_simd_valid_immediate): Likewise.
10743 (aarch64_vect_float_const_representable_p): New.
10744 (aarch64_float_const_representable_p): Likewise.
10745 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10746 (aarch64_output_simd_mov_immediate): New.
10747 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10748 (*movdf_aarch64): Likewise.
10749 * config/aarch64/constraints.md (Ufc): New.
10750 (Y): call aarch64_float_const_zero_rtx.
10751 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10752
e167c04d
RB
107532013-01-07 Richard Biener <rguenther@suse.de>
10754
10755 PR tree-optimization/55888
10756 PR tree-optimization/55862
10757 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10758 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10759 not if it is contained therein.
10760
0139aaab
GJL
107612013-01-07 Georg-Johann Lay <avr@gjlay.de>
10762
10763 * config/avr/t-avr: Typo.
10764
4a176b23
GJL
107652013-01-07 Georg-Johann Lay <avr@gjlay.de>
10766
10767 PR55243
10768 * config/avr/t-avr: Don't automatically rebuild
10769 $(srcdir)/config/avr/t-multilib
10770 $(srcdir)/config/avr/avr-tables.opt
10771 $(srcdir)/doc/avr-mmcu.texi
10772 (avr-mcus): New phony target to build them on request.
10773 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10774 * avr/avr-mcus.def: Adjust comments.
10775
c7afdc98
UB
107762013-01-07 Uros Bizjak <ubizjak@gmail.com>
10777
10778 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10779
1ab05c31
RS
107802013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10781
10782 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10783
488e3acc
RS
107842013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10785
10786 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10787
a89599d2
DE
107882013-01-05 David Edelsohn <dje.gcc@gmail.com>
10789
10790 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10791 to generate profiling.
10792 * config/rs6000/aix64.h (LIB_SPEC): Same.
10793
70f09188
AP
107942013-01-04 Andrew Pinski <apinski@cavium.com>
10795
10796 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10797 New function.
10798 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10799
918d445f
UB
108002013-01-04 Uros Bizjak <ubizjak@gmail.com>
10801
10802 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10803 unconditionally.
10804 (ix86_expand_move): Ditto.
10805 (ix86_zero_extend_to_Pmode): Ditto.
10806 (ix86_expand_call): Ditto.
10807 (ix86_expand_special_args_builtin): Ditto.
10808 (ix86_expand_builtin): Ditto.
10809
361618ec
RB
108102013-01-04 Richard Biener <rguenther@suse.de>
10811
10812 PR tree-optimization/55862
10813 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10814 translating them through PHI nodes.
10815
87eab554
MJ
108162013-01-04 Martin Jambor <mjambor@suse.cz>
10817
10818 PR tree-optimization/55755
10819 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10820 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10821
33879b9f
MP
108222013-01-04 Marek Polacek <polacek@redhat.com>
10823
10824 PR middle-end/55859
10825 * opts.c (default_options_optimization): Clarify error message.
10826
3068819a
RB
108272013-01-04 Richard Biener <rguenther@suse.de>
10828
10829 PR middle-end/55863
10830 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10831 reassociation.
10832
0e4ae794
JDA
108332013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10834
10835 PR target/53789
10836 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
10837 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10838 references.
0e4ae794 10839
65c88cef
RH
108402013-01-03 Richard Henderson <rth@redhat.com>
10841
10842 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10843 after eliminating TLS symbols.
10844
8ac16127
MG
108452013-01-03 Marc Glisse <marc.glisse@inria.fr>
10846
10847 PR bootstrap/50167
10848 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10849 * graphite-poly.c (debug_gmp_value): Likewise.
10850
bb664f09
UB
108512013-01-03 Uros Bizjak <ubizjak@gmail.com>
10852
10853 PR target/55712
10854 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10855 selected code model, define __code_mode_small__, __code_model_medium__,
10856 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10857 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10858 xchg temporary register with %k. Declare temporary register as
10859 early clobbered.
10860 [__x86_64__]: For medium and large code models, preserve %rbx register.
10861
bcf1ef00
RB
108622013-01-03 Richard Biener <rguenther@suse.de>
10863
0506634a 10864 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
10865 (dump_subscript): Adjust.
10866 (finalize_ddr_dependent): Do not dump redundant info.
10867 (analyze_siv_subscript): Adjust.
10868 (subscript_dependence_tester): Likewise.
10869 (compute_affine_dependence): Likewise.
10870
59fd17e3
RB
108712013-01-03 Richard Biener <rguenther@suse.de>
10872
10873 Revert
10874 2013-01-03 Richard Biener <rguenther@suse.de>
10875
10876 PR tree-optimization/55857
10877 * tree-vect-stmts.c (vectorizable_load): Do not setup
10878 re-alignment for invariant loads.
10879
10880 2013-01-02 Richard Biener <rguenther@suse.de>
10881
10882 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10883 invariant load do not generate a vector load from the scalar location.
59fd17e3 10884
595c2679
RB
108852013-01-03 Richard Biener <rguenther@suse.de>
10886
10887 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10888 for not vectorizing.
10889 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10890 not build INDIRECT_REFs, call get_name once only.
10891 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10892 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10893
90bb7d7a
RB
108942013-01-03 Richard Biener <rguenther@suse.de>
10895
10896 PR tree-optimization/55857
10897 * tree-vect-stmts.c (vectorizable_load): Do not setup
10898 re-alignment for invariant loads.
10899
f09b77ca
RB
109002013-01-03 Richard Biener <rguenther@suse.de>
10901
10902 PR lto/55848
10903 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10904 prefer a built-in decl.
10905
3461a16e
JJ
109062013-01-03 Jakub Jelinek <jakub@redhat.com>
10907
df8e2b4f
JJ
10908 * gcc.c (process_command): Update copyright notice dates.
10909 * gcov.c (print_version): Likewise.
10910 * gcov-dump.c (print_version): Likewise.
10911
3461a16e
JJ
10912 PR rtl-optimization/55838
10913 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10914 iv0.step, iv1.step and step.
10915
8b5546d6
JJ
109162013-01-03 Jakub Jelinek <jakub@redhat.com>
10917 Marc Glisse <marc.glisse@inria.fr>
10918
10919 PR tree-optimization/55832
10920 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10921 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10922 integer_{one,zero}_node.
10923
8ab1d2e9
JJ
109242013-01-03 Jakub Jelinek <jakub@redhat.com>
10925
10926 PR debug/54402
10927 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10928 * var-tracking.c (reverse_op): Don't add reverse ops to
10929 VALUEs that have already
0506634a 10930 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 10931
5b9ad1d4
GP
109322013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10933
10934 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10935
e25a6711
TJ
109362013-01-02 Teresa Johnson <tejohnson@google.com>
10937
10938 * dumpfile.c (dump_loc): Print filename with location.
10939 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10940 new location_t parameter to emit complete unroll message with
10941 new dump framework.
10942 (canonicalize_loop_induction_variables): Compute loops location
10943 and pass to try_unroll_loop_completely.
10944 * loop-unroll.c (report_unroll_peel): New function.
10945 (peel_loops_completely): Use new dump format with location
10946 for main dumpfile message, and invoke report_unroll_peel on success.
10947 (decide_unrolling_and_peeling): Ditto.
10948 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10949 by report_unroll_peel.
10950 (decide_peel_completely): Ditto.
10951 (decide_unroll_constant_iterations): Ditto.
10952 (decide_unroll_runtime_iterations): Ditto.
10953 (decide_peel_simple): Ditto.
10954 (decide_unroll_stupid): Ditto.
10955 * cfgloop.c (get_loop_location): New function.
10956 * cfgloop.h (get_loop_location): Declare.
10957
77878621
ST
109582013-01-02 Sriraman Tallam <tmsriram@google.com>
10959
10960 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10961 NULL.
10962
9e65d03e
JDA
109632013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10964
10965 PR middle-end/55198
10966 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10967 BLKmode objects when EXPAND_MEMORY is specified.
10968
6a7da30f
ST
109692013-01-02 Sriraman Tallam <tmsriram@google.com>
10970
10971 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10972 in loop predicate.
10973 (fold_builtin_cpu): Do not share cpu model decls across statements.
10974
e78167f2
JM
109752013-01-02 Jason Merrill <jason@redhat.com>
10976
10977 PR c++/55804
10978 * tree.c (build_array_type_1): Revert earlier change.
10979
8c075fb4
YZ
109802013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10981
10982 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10983 "cortex-a57".
10984 * config/aarch64/aarch64-tune.md: Re-generate.
10985
0682ed3e
RB
109862013-01-02 Richard Biener <rguenther@suse.de>
10987
10988 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10989 invariant load do not generate a vector load from the scalar location.
0682ed3e 10990
b8f6a302
RB
109912013-01-02 Richard Biener <rguenther@suse.de>
10992
10993 PR bootstrap/55784
10994 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10995 * configure: Regenerate.
10996
04b80dbb
RS
109972013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10998
10999 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11000 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11001 (expand_builtin_int_roundingfn_2): Keep the original target around
11002 for the fallback case.
11003
635b0b0c
RS
110042013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11005
11006 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11007 to be clear for sign changes.
11008
42d57399
JH
110092013-01-01 Jan Hubicka <jh@suse.cz>
11010
11011 * ipa-inline-analysis.c: Fix formatting.
11012
5bb6669d
JJ
110132013-01-01 Jakub Jelinek <jakub@redhat.com>
11014
11015 PR tree-optimization/55831
11016 * tree-vect-loop.c (get_initial_def_for_induction): Use
11017 gsi_after_labels instead of gsi_start_bb.
ad41bd84 11018\f
86a2db33 11019Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
11020
11021Copying and distribution of this file, with or without modification,
11022are permitted in any medium without royalty provided the copyright
11023notice and this notice are preserved.