]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
builtin-bswap-8.c: Compile at -O2.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
2f56a311
EB
12013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2
3 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4 destination register for bmasksi_vis.
5 (vector_init_bshuffle): Likewise.
6 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
7
5c3eacbb
EB
82013-05-28 Eric Botcazou <ebotcazou@adacore.com>
9
10 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
11 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
12 mode if the instruction isn't available in the original mode.
13 * config/sparc/sparc.opt (mfix-ut699): New option.
14 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
15 (divdf3): Turn into expander.
16 (divdf3_nofix): New insn.
17 (divdf3_fix): Likewise.
18 (divsf3): Disable if -mfix-ut699.
19 (sqrtdf2): Turn into expander.
20 (sqrtdf2_nofix): New insn.
21 (sqrtdf2_fix): Likewise.
22 (sqrtsf2): Disable if -mfix-ut699.
23
a1756c0a
RB
242013-05-27 Richard Biener <rguenther@suse.de>
25
26 PR middle-end/57412
27 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28 block for the new loop.
29
5a892248
RB
302013-05-27 Richard Biener <rguenther@suse.de>
31
32 PR tree-optimization/57343
33 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
34 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
35 (number_of_iterations_cond): Do not build the folded tree.
36
d1de852b
RB
372013-05-27 Richard Biener <rguenther@suse.de>
38
39 Revert
40 PR middle-end/57381
41 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
42 OEP_CONSTANT_ADDRESS_OF retained.
43
44 PR tree-optimization/57417
45 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
46 for unchanged base.
47 (set_ssa_val_to): Compare addresses using
48 get_addr_base_and_unit_offset.
49
7894bc6b
JR
502013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
51
52 PR rtl-optimization/56833
53 * postreload.c (move2add_record_mode): New function.
54 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
55 (move2add_use_add2_insn): Use move2add_record_sym_value.
56 (move2add_use_add3_insn): Likewise.
57 (reload_cse_move2add): Use move2add_valid_value_p and
58 move2add_record_mode. Invalidate call-clobbered and REG_INC
59 affected regs by setting reg_mode to VOIDmode.
60 (move2add_note_store): Don't pretend the inside of a SUBREG is
61 the actual destination. Invalidate single/leading registers by
62 setting reg_mode to VOIDmode.
63 Use move2add_record_sym_value, move2add_valid_value_p and
64 move2add_record_mode.
65
b03be25f
RB
662013-05-27 Richard Biener <rguenther@suse.de>
67
68 PR tree-optimization/57396
69 * tree-affine.c (double_int_constant_multiple_p): Properly
70 return false for val == 0 and div != 0.
71
44e88db2
RS
722013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
73
74 * config/mips/mips.h: Use #elif in preprocessor conditions.
75
3b859704
RS
762013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
77
78 PR target/53916
79 * config/mips/constraints.md (kl): New constraint.
80 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
81 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
82 constraint for operand 0. Split after CSE for MIPS16. Emit a move
83 from LO for MIPS16.
84 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
85
c979d5f5
RS
862013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
87
88 PR target/55777
89 * config/mips/mips.c (mips_can_inline_p): New function.
90 (TARGET_CAN_INLINE_P): Define.
91
8e90de43
SB
922013-05-25 Steven Bosscher <steven@gcc.gnu.org>
93
94 * sched-int.h (ds_t, dw_t): Make unsigned int.
95 Fix documentation that describes how all the ds_t bits are used.
96 Reserve the last bit for delayed-branch scheduling.
97 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
98 (BITS_PER_DEP_WEAK): Fix definition and documentation.
99 (gen_dep_weak_1): Remove prototype.
100 * sched-deps.c (get_dep_weak_1): Make static.
101 * target.def (speculate_insn, needs_block_p, gen_spec_check,
102 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
103 * doc/tm.texi: Regenerate.
104 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
105
cb5cb194
SB
1062013-05-24 Steven Bosscher <steven@gcc.gnu.org>
107
108 PR debug/56950
109 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
110
5bd93ff6
NS
1112013-05-24 Nathan Sidwell <nathan@codesourcery.com>
112 Sandra Loosemore <sandra@codesourcery.com>
113
114 * config.gcc (powerpc-*): Allow native for with-cpu.
115
2343af65
JL
1162013-05-24 Jeff Law <law@redhat.com>
117
118 PR tree-optimization/57124
119 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
120 conversion feeding a condition if the range has an overflow
121 if -fstrict-overflow. Add warnings for when we do make the
122 transformation.
123
3ad695b9
DC
1242013-05-24 Dehao Chen <dehao@google.com>
125
126 * gcc/tree-cfg.c (locus_discrim_map): Fix the typo.
127 (locus_discrim_hasher): Likewise.
128 (locus_discrim_hasher::hash): Likewise.
129 (locus_discrim_hasher::equal): Likewise.
130
82338059
MJ
1312013-05-24 Martin Jambor <mjambor@suse.cz>
132
133 PR tree-optimization/57294
134 * cgraph.h (ipa_record_stmt_references): Declare.
135 * cgraphbuild.c (ipa_record_stmt_references): New function.
136 (build_cgraph_edges): Use ipa_record_stmt_references.
137 (rebuild_cgraph_edges): Likewise.
138 (cgraph_rebuild_references): Likewise.
139 * ipa-prop.c (ipa_modify_call_arguments): Discard references
140 associated with the old statement and build references from the
141 newly built statements.
142 * ipa-ref.c (ipa_remove_stmt_references): New function.
143 * ipa-ref.h (ipa_remove_stmt_references): Declare.
144
1ccd4874
VM
1452013-05-24 Vladimir Makarov <vmakarov@redhat.com>
146
147 * lra-constraints.c (emit_spill_move): Use smaller mode for
148 mem-mem moves.
149 (check_and_process_move): Consider mem-reg moves for secondary
150 too.
151 (curr_insn_transform): Don't lose insns emitted before for
152 secondary memory moves.
153 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
154 reg set up in the current insn.
155
25e25c73
DC
1562013-05-24 Dehao Chen <dehao@google.com>
157
158 * gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c: New Testcase.
159 * gcc/tree-cfg.c (locus_descrim_hasher::hash): Change discrminator
160 hash function.
161 (locus_descrim_hasher::equal): Likewise.
162 (build_gimple_cfg): New discrminator assignmnet algorithm
163 (make_edges): Likewise.
164 (next_discriminator_for_locus): Likewise.
165 (same_line_p): Likewise.
166 (assign_discriminators): Likewise.
167 (make_cond_expr_edges): Likewise.
168 (make_gimple_switch_edges): Likewise.
169 (make_goto_expr_edges): Likewise.
170 (make_gimple_asm_edges): Likewise.
171
50d38551
IB
1722013-05-24 Ian Bolton <ian.bolton@arm.com>
173
174 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
175 X format specifier to only display bottom 16 bits.
176 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
177 immediate to match for operand 2, since it will be masked.
178
aea0101d
RB
1792013-05-24 Richard Biener <rguenther@suse.de>
180
181 PR tree-optimization/57287
182 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
183 all SSA names that occur in abnormal PHIs.
184
634e03d3
AI
1852013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
186
187 PR tree-ssa/57385
188 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
189 that index is not negative.
190
b17c024f
EB
1912013-05-24 Eric Botcazou <ebotcazou@adacore.com>
192
193 PR rtl-optimization/55177
194 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
195 (simplify_byte_swapping_operation): New.
196 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
197 (simplify_relational_operation_1): Deal with BSWAP.
198
46aeac1b
RH
1992013-05-23 Richard Henderson <rth@redhat.com>
200
201 PR target/56742
202 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
203 (ix86_reorg): Call it.
204
70cc1536
UB
2052013-05-23 Uros Bizjak <ubizjak@gmail.com>
206
207 PR target/57379
208 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
209 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
210 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
211
b3851501
CB
2122013-05-23 Christian Bruel <christian.bruel@st.com>
213
214 PR debug/57351
215 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
216
4e194912
CSS
2172013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
218 Marcus Shawcroft <marcus.shawcroft@arm.com>
219
220 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
221 * config/aarch64/constraints.md (Usa): Remove.
222 * doc/md.texi (AArch64 Usa): Remove.
223
83f8c414
CSS
2242013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
225 Marcus Shawcroft <marcus.shawcroft@arm.com>
226
227 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
228 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
229 * config/aarch64/predicates.md (aarch64_const_address): Remove.
230 (aarch64_mov_operand): Use aarch64_mov_operand_p.
231
b5574232
VP
2322013-05-23 Vidya Praveen <vidyapraveen@arm.com>
233
234 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
235 instruction (AdvSIMD).
236 * config/aarch64/aarch64-builtins.c
237 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
238 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
239
76c36cb1 2402013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
241
242 PR middle-end/57347
243 * tree.h (contains_bitfld_component_ref_p): Declare.
244 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
245 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
246 caller.
7d2fb524
MJ
247 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
248 not access a bit-field. Assert all final offsets are byte-aligned.
249
ce521ae6
RB
2502013-05-23 Richard Biener <rguenther@suse.de>
251
252 PR tree-optimization/57380
253 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
254 least one invariant or re-used load.
255 * passes.c (init_optimization_passes): Move pass_phiprop before
256 pass_forwprop.
257
75c7257f
JG
2582013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
259
260 * config/aarch64/aarch64-simd.md
261 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
262
af6d44b5
RB
2632013-05-23 Richard Biener <rguenther@suse.de>
264
265 PR middle-end/57381
266 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
267 OEP_CONSTANT_ADDRESS_OF retained.
268
bd3647bf
JJ
2692013-05-23 Jakub Jelinek <jakub@redhat.com>
270
271 PR middle-end/57344
70cc1536
UB
272 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
273 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 274
a55757ea
RB
2752013-05-23 Richard Biener <rguenther@suse.de>
276
277 PR rtl-optimization/57341
278 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
279 instead of true_dependence.
280
cfb00b41
DM
2812013-05-22 David Malcolm <dmalcolm@redhat.com>
282
dd1c676f
DM
283 * bb-reorder.c (branch_threshold): Make const.
284 (exec_threshold): Ditto.
cfb00b41 285
f62511da
MM
2862013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
287 Pat Haugen <pthaugen@us.ibm.com>
288 Peter Bergner <bergner@vnet.ibm.com>
289
290 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
291 documentation for the power8 crypto builtins.
292
293 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
294
295 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
296 macros for defining power8 builtin functions.
297 (BU_P8V_AV_2): Likewise.
298 (BU_P8V_AV_P): Likewise.
299 (BU_P8V_VSX_1): Likewise.
300 (BU_P8V_OVERLOAD_1): Likewise.
301 (BU_P8V_OVERLOAD_2): Likewise.
302 (BU_CRYPTO_1): Likewise.
303 (BU_CRYPTO_2): Likewise.
304 (BU_CRYPTO_3): Likewise.
305 (BU_CRYPTO_OVERLOAD_1): Likewise.
306 (BU_CRYPTO_OVERLOAD_2): Likewise.
307 (XSCVSPDP): Fix typo, point to the correct instruction.
308 (VCIPHER): Add power8 crypto builtins.
309 (VCIPHERLAST): Likewise.
310 (VNCIPHER): Likewise.
311 (VNCIPHERLAST): Likewise.
312 (VPMSUMB): Likewise.
313 (VPMSUMH): Likewise.
314 (VPMSUMW): Likewise.
315 (VPERMXOR_V2DI): Likewise.
316 (VPERMXOR_V4SI: Likewise.
317 (VPERMXOR_V8HI: Likewise.
318 (VPERMXOR_V16QI: Likewise.
319 (VSHASIGMAW): Likewise.
320 (VSHASIGMAD): Likewise.
321 (VPMSUM): Likewise.
322 (VPERMXOR): Likewise.
323 (VSHASIGMA): Likewise.
324
325 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
326 __CRYPTO__ if the crypto instructions are available.
327 (altivec_overloaded_builtins): Add support for overloaded power8
328 builtins.
329
330 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
331 support for power8 crypto builtins.
332 (builtin_function_type): Likewise.
333 (altivec_init_builtins): Add support for builtins that take vector
334 long long (V2DI) arguments.
335
336 * config/rs6000/crypto.md: New file, define power8 crypto
337 instructions.
338
3392013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
340 Pat Haugen <pthaugen@us.ibm.com>
341 Peter Bergner <bergner@vnet.ibm.com>
342
343 * doc/invoke.texi (Option Summary): Add power8 options.
344 (RS/6000 and PowerPC Options): Likewise.
345
346 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
347 constraints.md instead of rs6000.h. Reorder w* constraints. Add
348 wm, wn, wr documentation.
349
350 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
351 registers if direct move instructions are enabled.
352 (wn): New constraint for no registers.
353 (wq): New constraint for quad word even GPR registers.
354 (wr): New constraint if 64-bit instructions are enabled.
355 (wv): New constraint if power8 vector instructions are enabled.
356 (wQ): New constraint for quad word memory locations.
357
358 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
359 constraint for 0..15 for crypto instructions.
360 (gpc_reg_operand): If VSX allow registers in VSX registers as well
361 as GPR and floating point registers.
362 (int_reg_operand): New predicate to match only GPR registers.
363 (base_reg_operand): New predicate to match base registers.
364 (quad_int_reg_operand): New predicate to match even GPR registers
365 for quad memory operations.
366 (vsx_reg_or_cint_operand): New predicate to allow vector logical
367 operations in both GPR and VSX registers.
368 (quad_memory_operand): New predicate for quad memory operations.
369 (reg_or_indexed_operand): New predicate for direct move support.
370
371 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
372 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
373 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
374 (POWERPC_MASKS): Add power8 options.
375 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
376 various options.
377
378 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
379 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
380
381 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
382 (-mpower8-fusion): New power8 options.
383 (-mpower8-fusion-sign): Likewise.
384 (-mpower8-vector): Likewise.
385 (-mcrypto): Likewise.
386 (-mdirect-move): Likewise.
387 (-mquad-memory): Likewise.
388
389 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
390 power8.
391 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
392 registers.
70cc1536 393 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
394 (rs6000_debug_vector_unit): Add p8_vector.
395 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
396 definitions. Also print fusion state.
397 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
398 (rs6000_builtin_mask_calculate): Add power8 builtin support.
399 (rs6000_option_override_internal): Add support for power8.
400 (rs6000_common_init_builtins): Add debugging for skipped builtins
401 if -mdebug=builtin.
402 (rs6000_adjust_cost): Add power8 support.
403 (rs6000_issue_rate): Likewise.
404 (insn_must_be_first_in_group): Likewise.
405 (insn_must_be_last_in_group): Likewise.
406 (force_new_group): Likewise.
407 (rs6000_register_move_cost): Likewise.
408 (rs6000_opt_masks): Likewise.
409
410 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
411 power8 capable assembler, default to power7 options.
412 (TARGET_DIRECT_MOVE): Likewise.
413 (TARGET_CRYPTO): Likewise.
414 (TARGET_P8_VECTOR): Likewise.
415 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
416 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
417 (VECTOR_MEM_P8_VECTOR_P): Likewise.
418 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
419 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
420 (TARGET_XSCVDPSPN): Likewise.
421 (TARGET_XSCVSPDPN): Likewsie.
422 (TARGET_SYNC_HI_QI): Likewise.
423 (TARGET_SYNC_TI): Likewise.
424 (MASK_CRYPTO): Likewise.
425 (MASK_DIRECT_MOVE): Likewise.
426 (MASK_P8_FUSION): Likewise.
427 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
428 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
429 temporary used by some of the direct move instructions to get two FP
430 temporary registers does not force creation of a stack frame.
f62511da
MM
431 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
432 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
433 that any VSX registers are tieable, even if they are also an
434 Altivec vector mode.
435 (r6000_reg_class_enum): Add wm, wr, wv constraints.
436 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
437 (RS6000_BTM_CRYPTO): Likewise.
438 (RS6000_BTM_COMMON): Likewise.
439
440 * config/rs6000/rs6000.md (cpu attribute): Add power8.
441 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
442 (enum rs6000_vector): Add power8 vector support.
443
73a1a707
RR
4442013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
445
446 PR target/19599
447 PR target/57340
448 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
449 (any_sibcall_could_use_r3): this and handle indirect calls.
450 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
451
d28073d4
BS
4522013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
453
454 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
455
bee0b10c
RB
4562013-05-22 Richard Biener <rguenther@suse.de>
457
458 PR middle-end/57349
459 * profile.c (branch_prob): Do not split blocks that are
460 abnormally receiving from ECF_RETURNS_TWICE functions.
461
98409b51
RS
4622013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
463
464 * recog.c (offsettable_address_addr_space_p): Fix calculation of
465 address mode. Move pointer mode initialization to the same place.
466
c0602ab8
MZ
4672013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
468
469 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
470 while it has any effect.
471
4f7a634e
ER
4722013-05-21 Easwaran Raman <eraman@google.com>
473
474 PR tree-optimization/57322
475 * (build_and_add_sum): If a BB is empty, set the UID of the statement
476 added to the BB to be 1.
477
a4ce1258
JJ
4782013-05-21 Jakub Jelinek <jakub@redhat.com>
479
480 PR tree-optimization/57331
70cc1536
UB
481 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
482 of conversion from pointer type to integral type with integer.
a4ce1258 483
1b14621a
MJ
4842013-05-21 Martin Jambor <mjambor@suse.cz>
485
486 PR lto/57289
487 * ipa-prop.c (ipa_read_node_info): Process param_used and
488 controlled_uses in the same order as when writing.
489
e60661f0
MG
4902013-05-21 Magnus Granberg <baldrick@free.fr>
491
492 PR plugins/56754
ee49aa34 493 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 494
4a61be9a
RB
4952013-05-21 Richard Biener <rguenther@suse.de>
496
497 PR tree-optimization/57318
498 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
499 estimate stmts with side-effects as likely eliminated.
500
c52da5f7
RB
5012013-05-21 Richard Biener <rguenther@suse.de>
502
503 PR tree-optimization/57330
504 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
505 preserve the call stmts fntype.
506
7ec67e2a
RB
5072013-05-21 Richard Biener <rguenther@suse.de>
508
509 PR tree-optimization/57303
510 * tree-ssa-sink.c (statement_sink_location): Improve killing
511 stmt detection and properly handle self-assignments.
512
b112d513
CB
5132013-05-21 Christian Bruel <christian.bruel@st.com>
514
515 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
516 spanning registers. LEAF_REG_REMAP is supported only for contiguous
517 registers. Set register size out of the PARALLEL loop.
518
14c2ec26
OE
5192013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
520
521 PR target/56547
522 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
523 (*fmasf4, *fmasf4_media): New insns.
524
da734fa1
RS
5252013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
526
527 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
528 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
529 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
530 (mips_idiv_insns): Update the comments to say that the returned
531 instruction counts are in units of BASE_INSN_LENGTH.
532 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
533 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
534 using 2 rather than 4 as the length of indirect MIPS16 and
535 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
536 length of a NOP. Don't divide MIPS16 lengths by 2.
537 (mips16_split_long_branches): Assume a branch is long if the
538 length is greater than 4 rather than 8.
539 * config/mips/mips.md (length): Give MIPS16 lengths directly,
540 rather than multiplying them by 2. Multiply instruction counts
541 by BASE_INSN_LENGTH rather than 4.
542 (*jump_mips16, tls_get_tp_mips16_<mode>)
543 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
544
13719e8b
RS
5452013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
546
547 * config/mips/mips.md (extended_mips16): Remove branch case.
548 (length): Remove duplicated extended_mips16 test.
549
c3850d14
RS
5502013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
551
552 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
553
8da2e059
RS
5542013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
555
556 * recog.h (Recog_data): Rename to...
557 (recog_data_d): ...this.
558 (recog_data): Update accordingly.
559 * recog.c (recog_data): Likewise.
560 * reload.c (save_recog_data): Likewise.
561 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
562 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
563
2df013f3
JB
5642013-05-17 Julian Brown <julian@codesourcery.com>
565
566 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
567 found in a REG_EQUAL note, invalidate it.
568
933f507d
ER
5692013-05-17 Easwaran Raman <eraman@google.com>
570
571 * tree-ssa-reassoc.c (find_insert_point): New function.
572 (insert_stmt_after): Likewise.
573 (get_def_stmt): Likewise.
574 (ensure_ops_are_available): Likewise.
575 (not_dominated_by): Likewise.
576 (rewrite_expr_tree): Do not move statements beyond what is
577 necessary. Remove call to swap_ops_for_binary_stmt...
578 (reassociate_bb): ... and move it here.
579 (build_and_add_sum): Assign UIDs for new statements.
580 (linearize_expr): Likewise.
581 (do_reassoc): Renumber gimple statement UIDs.
582
e01c7cca
JH
5832013-05-17 Jan Hubicka <jh@suse.cz>
584
585 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
586 weakrefs.
587 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
588 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
589 weakrefs.
e01c7cca
JH
590 (output_weakrefs): Update.
591
c3272a92
PCC
5922013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
593 Martin Jambor <mjambor@suse.cz>
594
595 PR middle-end/57276
596 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
597 value that corresponds to the given aggval is found in values vector.
598
11c2aa39
UB
5992013-05-17 Uros Bizjak <ubizjak@gmail.com>
600
601 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
602 sse, sse2, sse3, ssse3 and sse4a flags to options.
603
abecc8c6
DM
6042013-05-17 David Malcolm <dmalcolm@redhat.com>
605
606 * gengtype-state.c: (s_expr_writer): New class, to handle
607 prettifying of output layout of s-expressions.
608 (state_writer): New class, to write out gtype.state.
609 (state_written_type_count): Move this variable into member data of
610 state_writer.
611 (s_expr_writer::s_expr_writer): New code: constructor for new class
612 (state_writer::state_writer(): ditto
613 (s_expr_writer::write_new_line): New function
614 (s_expr_writer::write_any_indent): ditto
615 (s_expr_writer::begin_s_expr): ditto
616 (s_expr_writer::end_s_expr): ditto
617 (write_state_fileloc): convert to method of state_writer...
618 (state_writer:: write_state_fileloc): ...and use methods of
619 s_expr_writer to write indentation into the gtype.state output file
620 to visually represent the hierarchical structure of the list
621 structures
622 (write_state_fields): ditto, renaming to...
623 (state_writer::write_state_fields)
624 (write_state_a_string): ditto, renaming to...
625 (state_writer::write_state_a_string)
626 (write_state_string_option): ditto, renaming to...
627 (state_writer::write_state_string_option)
628 (write_state_type_option): ditto, renaming to...
629 (state_writer::write_state_type_option)
630 (write_state_nested_option): ditto, renaming to...
631 (state_writer::write_state_nested_option)
632 (write_state_option): ditto, renaming to...
633 (state_writer::write_state_option)
634 (write_state_options): ditto, renaming to...
635 (state_writer::write_state_options)
636 (write_state_lang_bitmap): ditto, renaming to...
637 (state_writer::write_state_lang_bitmap)
638 (write_state_version): ditto, renaming to...
639 (state_writer::write_state_version)
640 (write_state_scalar_type): ditto, renaming to...
641 (state_writer::write_state_scalar_type)
642 (write_state_string_type): ditto, renaming to...
643 (state_writer::write_state_string_type)
644 (write_state_undefined_type): ditto, renaming to...
645 (state_writer::write_state_undefined_type)
646 (write_state_struct_union_type): ditto, renaming to...
647 (state_writer::write_state_struct_union_type)
648 (write_state_struct_type): ditto, renaming to...
649 (state_writer::write_state_struct_type)
650 (write_state_user_struct_type): ditto, renaming to...
651 (state_writer::write_state_user_struct_type)
652 (write_state_lang_struct_type): ditto, renaming to...
653 (state_writer::write_state_lang_struct_type)
654 (write_state_param_struct_type): ditto, renaming to...
655 (state_writer::write_state_param_struct_type)
656 (write_state_pointer_type): ditto, renaming to...
657 (state_writer::write_state_pointer_type)
658 (write_state_array_type): ditto, renaming to...
659 (state_writer::write_state_array_type)
660 (write_state_gc_used): ditto, renaming to...
661 (state_writer::write_state_gc_used)
662 (write_state_common_type_content): ditto, renaming to...
663 (state_writer::write_state_common_type_content)
664 (write_state_type): ditto, renaming to...
665 (state_writer::write_state_type)
666 (write_state_pair_list): ditto, renaming to...
667 (state_writer::write_state_pair_list)
668 (write_state_pair): ditto, renaming to...
669 (state_writer::write_state_pair)
670 (write_state_typedefs): ditto, renaming to...
671 (state_writer::write_state_typedefs)
672 (write_state_structures): ditto, renaming to...
673 (state_writer::write_state_structures)
674 (write_state_param_structs): ditto, renaming to...
675 (state_writer::write_state_param_structs)
676 (write_state_variables): ditto, renaming to...
677 (state_writer::write_state_variables)
678 (write_state_srcdir): ditto, renaming to...
679 (state_writer::write_state_srcdir)
680 (write_state_files_list): ditto, renaming to...
681 (state_writer::write_state_files_list)
682 (write_state_languages): ditto, renaming to...
683 (state_writer::write_state_languages)
684 (write_state): create a state_writer instance and use it when
685 writing out the state file
686
d6545f29
MS
6872013-05-17 Mike Stump <mikestump@comcast.net>
688
816a3f73 689 PR rtl-optimization/57304
d6545f29
MS
690 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
691 accessing DF_REF_REAL_LOC.
692
38c821cf
JJ
6932013-05-17 Jakub Jelinek <jakub@redhat.com>
694
695 PR rtl-optimization/57281
696 PR rtl-optimization/57300
697 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
698 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
699 what the other splitter did if the registers are dead.
700
2a293391
RB
7012013-05-17 Richard Biener <rguenther@suse.de>
702
703 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
704 MEM_REF offsets.
705
17042d2b
JJ
7062013-05-17 Jakub Jelinek <jakub@redhat.com>
707
708 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
709 linking.
710
5b115c1f
MP
7112013-05-17 Marek Polacek <polacek@redhat.com>
712
11c2aa39
UB
713 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
714 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 715
52d84413
JJ
7162013-05-17 Jakub Jelinek <jakub@redhat.com>
717
68119618
JJ
718 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
719 vect_external_def oprnd1 with loop_vinfo, try to emit
720 optional cast, negation and and stmts on the loop preheader
721 edge instead of into the pattern def seq.
722
52d84413
JJ
723 PR tree-optimization/57051
724 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
725 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
726
17b962bd
NC
7272013-05-16 Nick Clifton <nickc@redhat.com>
728
729 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
730 (rl78_is_naked_func): New function.
731 (rl78_expand_prologue): Skip prologue generation for naked
732 functions.
733 (rl78_expand_epilogue): Skip epilogue generation for naked
734 functions.
735 * doc/extend.texi (naked): Add RL78 to the list of processors
736 that supports this attribute.
737
b1a0f84e
JL
7382013-05-16 Jeff Law <law@redhat.com>
739
740 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
741
af0e415b
UB
7422013-05-16 Uros Bizjak <ubizjak@gmail.com>
743
744 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
745 cache parameters using detect_caches_amd also for CYRIX,
746 NSC and TM2 signatures.
747
19db293a
UB
7482013-05-16 Uros Bizjak <ubizjak@gmail.com>
749 Dzianis Kahanovich <mahatma@eu.by>
750
751 PR target/45359
752 PR target/46396
753 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
754 VIA/Centaur processors and determine their cache parameters
755 using detect_caches_amd.
756
251a41b9
TJ
7572013-05-16 Teresa Johnson <tejohnson@google.com>
758
759 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
760 (rtl_verify_edges): New function.
761 (rtl_verify_bb_insns): Ditto.
762 (rtl_verify_bb_pointers): Ditto.
763 (rtl_verify_bb_insn_chain): Ditto.
764 (rtl_verify_fallthru): Ditto.
765 (rtl_verify_bb_layout): Ditto.
766 (rtl_verify_flow_info_1): Outline checks into new functions.
767 (rtl_verify_flow_info): Ditto.
768
f14540b6
SE
7692013-05-16 Steve Ellcey <sellcey@imgtec.com>
770
771 * cfghooks.c (copy_bbs): Add update_dominance argument.
772 * cfghooks.h (copy_bbs): Update prototype.
773 * tree-cfg.c (gimple_duplicate_sese_region):
774 Add update_dominance argument.
775 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
776 * tree-ssa-loop-ch.c (copy_loop_headers): Update
777 gimple_duplicate_sese_region call.
778 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
779 Update copy_bbs call.
780 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
781 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
782
7e9a3abb
JJ
7832013-05-16 Jakub Jelinek <jakub@redhat.com>
784
785 * tree-vectorizer.h (NUM_PATTERNS): Increment.
786 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
787 vect_recog_rotate_pattern.
788 (vect_recog_rotate_pattern): New function.
789
427b248d
JM
7902013-05-16 Jason Merrill <jason@redhat.com>
791
792 * Makefile.in (LLINKER): New variable.
793 (mostlyclean): Remove link mutex.
794 * configure.ac: Handle --enable-link-mutex.
795 * lock-and-run.sh: New script.
796
b871e3d2
RR
7972013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
798
799 PR target/19599
800 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
801 for NULL decl.
802
ce858126
RO
8032013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
804
805 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
806
798d3d04
GY
8072013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
808
809 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
810 * config/arm/arm.c (next_consecutive_mem): New function.
811 (gen_movmem_ldrd_strd): Likewise.
812 * config/arm/arm.md (movmemqi): Update condition and code.
813 (unaligned_loaddi, unaligned_storedi): New patterns.
814
0baddc45
RO
8152013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
816
817 * config.gcc: Obsolete *-*-solaris2.9*.
818 * doc/install.texi (Specific, *-*-solaris2*): Document it.
819
aa9d5bcf
RB
8202013-05-16 Richard Biener <rguenther@suse.de>
821
822 * passes.c (init_optimization_passes): Move pass_parallelize_loops
823 earlier, after GRAPHITE transforms and IV canonicalization.
824
5a0f4dd3
JJ
8252013-05-16 Jakub Jelinek <jakub@redhat.com>
826
827 * omp-low.c (extract_omp_for_data): For collapsed loops,
828 if at least one of the loops is known at compile time to
829 iterate zero times, set count to 0.
830 (expand_omp_regimplify_p): New function.
831 (expand_omp_for_generic): For collapsed loops, if at least
832 one of the loops isn't known to iterate at least once,
833 add runtime check with setting count to 0.
834 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
835 For unsigned types if it isn't known at compile time that
836 the loop will iterate at least once, add runtime check to bypass
837 the whole loop if initial condition isn't true.
838
e3753785
NS
8392013-05-16 Nathan Sidwell <nathan@codesourcery.com>
840
841 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
842
43bb4dd1
MG
8432013-05-16 Marc Glisse <marc.glisse@inria.fr>
844
845 PR middle-end/57286
846 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
847 transformations to avoid an infinite loop.
848
3571dde6
MP
8492013-05-16 Marek Polacek <polacek@redhat.com>
850
851 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
852
b8b3f0ca
LE
8532013-05-15 Leif Ekblad <leif@rdos.net>
854
855 * config/i386/i386.c (ix86_decompose_address): Use
856 DEFAULT_TLS_SEG_REG to access TLS segment register.
857 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
858 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
859 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
860
e299a383
RS
8612013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
862
863 PR target/57260
864 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
865 sibling calls to functions that would normally be lazily bound,
866 unless $gp is call-clobbered.
867
e7208ea3
UB
8682013-05-15 Uros Bizjak <ubizjak@gmail.com>
869
19db293a 870 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 871 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
872 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
873 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
874 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
875 of TARGET_3DNOW.
876 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
877
e7413f3d
AS
8782013-05-15 Andreas Schwab <schwab@suse.de>
879
880 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
881 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
882 third operand.
883
ad4db775
TJ
8842013-05-15 Teresa Johnson <tejohnson@google.com>
885
886 * loop-unroll.c (report_unroll_peel): Check decision before
887 emitting unroll/peel message.
888
af205f67
TJ
8892013-05-15 Teresa Johnson <tejohnson@google.com>
890
891 * function.h (has_bb_partition): New rtl_data flag.
892 (bb_reorder_complete): Ditto.
893 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
894 instead of flag_reorder_blocks_and_partition.
895 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
896 with some enhancements.
897 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
898 * bb-reorder.c (connect_traces): Check for has_bb_partition
899 instead of flag_reorder_blocks_and_partition.
900 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
901 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
902 verify_hot_cold_block_grouping.
903 (partition_hot_cold_basic_blocks): Set has_bb_partition.
904
9adcfa3c
RR
9052013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
906
907 PR target/19599
908 * config/arm/predicates.md (call_insn_operand): New predicate.
909 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
910 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
911 if insn is not a tail call.
912 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
913 registers.
914 * config/arm/arm.h (enum reg_class): New caller save register class.
915 (REG_CLASS_NAMES): Likewise.
916 (REG_CLASS_CONTENTS): Likewise.
917 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
918 without decls.
919
ccb3ad87
RB
9202013-05-15 Richard Biener <rguenther@suse.de>
921
922 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
923 of MSG_OPTIMIZED_LOCATIONS.
924 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
925 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
926 message.
927 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
928 of MSG_OPTIMIZED_LOCATIONS.
929 (execute_vect_slp): Likewise.
930 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
931 (vect_create_cond_for_alias_checks): Likewise.
932 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
933 (vect_recog_widen_mult_pattern): Likewise.
934 (vect_recog_widen_sum_pattern): Likewise.
935 (vect_recog_over_widening_pattern): Likewise.
936 (vect_recog_widen_shift_pattern): Likewise.
937 (vect_recog_vector_vector_shift_pattern): Likewise.
938 (vect_recog_divmod_pattern): Likewise.
939 (vect_recog_mixed_size_cond_pattern): Likewise.
940 (vect_recog_bool_pattern): Likewise.
941 (vect_pattern_recog_1): Likewise.
942
48b1474e
MJ
9432013-05-15 Martin Jambor <mjambor@suse.cz>
944
945 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
946 non-functions to builtin_unreachable.
947 * ipa-inline-transform.c (inline_call): Do not assert estimates were
948 correct when new direct edges were discovered.
949
9de04252
MJ
9502013-05-15 Martin Jambor <mjambor@suse.cz>
951
952 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
953 header, print symbol order instead of node uid, print more information
954 about indirect edge targets.
955 (ipa_make_edge_direct_to_target): Print symbol order instead of node
956 uids.
957 (ipa_make_edge_direct_to_target): Likewise.
958 (remove_described_reference): Likewise.
959 (propagate_controlled_uses): Likewise.
960 (ipa_print_node_params): Also print symbol order.
961 (ipcp_transform_function): Print symbol order instead of node uids.
962 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
963 (cgraph_get_create_real_symbol_node): Likewise.
964 * ipa-cp.c (print_lattice): Likewise.
965 (print_all_lattices): Likewise.
966 (determine_versionability): Likewise.
967 (initialize_node_lattices): Likewise.
968 (estimate_local_effects): Likewise.
969 (update_profiling_info): Likewise.
970 (create_specialized_node): Likewise.
971 (perhaps_add_new_callers): Likewise.
972 (decide_about_value): Likewise.
973 (decide_whether_version_node): Likewise.
974 (identify_dead_nodes): Likewise.
975 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
976 (dump_inline_summary): Likewise.
977 (estimate_node_size_and_time): Likewise.
978 (inline_analyze_function): Likewise.
979 * ipa-inline.c (report_inline_failed_reason): Likewise.
980 (want_early_inline_function_p): Likewise.
981 (edge_badness): Likewise.
982 (update_edge_key): Likewise.
983 (inline_small_functions): Likewise. Add dumping of order to two other
984 dumps.
985 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
986 instead of node uids.
987 (propagate_pure_const): Likewise.
988 (propagate_pure_const): Likewise.
989 * ipa-utils.c (dump_cgraph_node_set): Likewise.
990 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
991 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
992 of node uids.
993 * tree-pretty-print.c (dump_function_header): Likewise.
994 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
995 Print symbol order instead of node uids.
996
1dd03b91
AK
9972013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
998
999 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1000 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1001
fdf6a7b9
RB
10022013-05-15 Richard Biener <rguenther@suse.de>
1003
1004 PR tree-optimization/57275
1005 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1006 return value for fail to do runtime alias checks for gather loads.
1007
2d6e4603
JH
10082013-05-15 Jan Hubicka <jh@suse.cz>
1009
1010 PR lto/57038
1011 PR lto/47375
e7208ea3
UB
1012 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1013 weakrefs are not external.
1014 (lto_symtab_merge_decls): Fix thinko when dealing with
1015 non-lto_symtab decls.
2d6e4603
JH
1016 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1017 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1018 * varpool.c (dump_varpool_node): Dump more flags.
1019
83f44b39
GG
10202013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1021
1022 * config/i386/i386.c (processor_alias_table): Add instruction
1023 FSGSBASE for AMD bdver3 architecture.
1024
2e55d062
JJ
10252013-05-14 Jakub Jelinek <jakub@redhat.com>
1026
1027 * tree.c (warn_deprecated_use): Print file:line using locus color.
1028 * diagnostic.c (diagnostic_report_current_module): Print file:line
1029 and file:line:column using locus color.
1030
0bfdb81e
MS
10312013-05-14 Mike Stump <mikestump@comcast.net>
1032
1033 * gdbinit.in: Add __null.
1034
a508ef22
MS
10352013-05-14 Mike Stump <mikestump@comcast.net>
1036
1037 * recog.h: Rename struct recog_data to Recog_data.
1038 * recog.c: Likewise.
1039 * reload.c (can_reload_into): Likewise.
1040 * config/picochip/picochip.c: Likewise.
1041
e7180acb
MS
10422013-05-14 Mike Stump <mikestump@comcast.net>
1043
1044 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1045
61216c26
SB
10462013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1047
fd6beed4
SB
1048 * resource.h (struct resources): Remove unch_memory member.
1049 (CLEAR_RESOURCE): Don't clear unch_memory.
1050 * resource.c (mark_referenced_resources): Don't set it.
1051 (mark_set_resources): Likewise.
1052 (mark_target_live_regs): Don't clear it.
1053 (init_resource_info): Likewise.
1054 * reorg.c (resource_conflicts_p): Don't compare it.
1055 (redundant_insn): Don't set it.
1056
61216c26
SB
1057 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1058 Remove prototypes.
1059 * emit-rtl.c (next_label): Remove unused function.
1060 (skip_consecutive_labels, link_cc0_insns): Move to ...
1061 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1062 only place where these functions are used, and make them static.
1063
418d1b87
MG
10642013-05-14 Marc Glisse <marc.glisse@inria.fr>
1065
1066 * fold-const.c (fold_negate_expr): Handle vectors.
1067 (fold_truth_not_expr): Make it static.
1068 (fold_invert_truthvalue): New static function.
1069 (invert_truthvalue_loc): Handle vectors. Do not call
1070 fold_truth_not_expr directly.
1071 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1072 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1073 (fold_comparison): Handle vector constants.
1074 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1075 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1076 * tree.h (fold_truth_not_expr): Remove declaration.
1077
fc21784d
JG
10782013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1079
1080 * config/aarch64/aarch64-simd.md
1081 (aarch64_vcond_internal<mode>): Rename to...
1082 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1083 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1084 float modes. Clarify all iterator modes.
1085 (vcond<mode><mode>): Use new name for vcond expanders.
1086 (vcond<v_cmp_result><mode>): Likewise.
1087 (vcondu<mode><mode>: Likewise.
1088 * config/aarch64/iterators.md (VDQF_COND): New.
1089
d4c52634
MG
10902013-05-14 Marc Glisse <marc.glisse@inria.fr>
1091
1092 PR bootstrap/57266
1093 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1094 variable for the shift amount. Check that we shift by non-negative
1095 amounts.
1096
2b261262
CLT
10972013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1098
1099 PR target/42017
1100 * config/arm/arm.h (EPILOGUE_USES): Only return true
1101 for LR_REGNUM after epilogue_completed.
1102
6e022d7b
JR
11032013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1104
1105 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1106 is error_mark_node.
6e022d7b 1107
56cf7859
RO
11082013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1109
1110 PR target/57261
1111 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1112 and Solaris 11+/x86 with gld.
1113 * configure: Regenerate.
1114
75776c6d
JJ
11152013-05-14 Jakub Jelinek <jakub@redhat.com>
1116
1117 * expmed.c (expand_shift_1): Canonicalize rotates by
1118 constant bitsize / 2 to bitsize - 1.
1119 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
1120 case ROTATERT>: Likewise.
1121
1122 Revert:
1123 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1124
1125 * config/i386/i386.md (rotateinv): New code attr.
1126 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1127 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1128 roll $31, %eax, etc.
1129
df35498a
RB
11302013-05-14 Richard Biener <rguenther@suse.de>
1131
1132 PR middle-end/57235
1133 * tree-eh.c (sink_clobbers): Give up for successors with
1134 multiple predecessors and no virtual uses.
1135
cc6e7ece
EB
11362013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1137
1138 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1139 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1140
f778dd4d
JJ
11412013-05-14 Jakub Jelinek <jakub@redhat.com>
1142
1143 PR middle-end/57251
1144 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1145 the case when both op0 and op1 have VOIDmode.
1146
bad4df9b
KP
11472013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1148
1149 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1150 in multiply-accumulate mode.
1151
56f3e9ac
GW
11522013-05-13 Guozhi Wei <carrot@google.com>
1153
1154 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1155
a3d7ab92
KT
11562013-05-13 Kai Tietz <ktietz@redhat.com>
1157
1158 PR target/56975
1159 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1160 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1161 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1162 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1163 (ix86_expand_prologue): Likewise.
1164 (ix86_expand_split_stack_prologue): Likewise.
1165 (legitimate_pic_address_disp_p): Likewise.
1166 (legitimize_pic_address): Likewise.
1167 (legitimize_tls_address): Likewise.
1168 (legitimize_pe_coff_symbol): Likewise.
1169 (output_pic_addr_const): Likewise.
1170 (construct_plt_address): Likewise.
1171 (ix86_expand_call): Likewise.
1172 (x86_output_mi_thunk): Likewise.
1173 (x86_function_profiler): Likewise.
1174
c59b7e28
SN
11752013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1176
1177 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1178 similar switch cases.
1179 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1180 (aarch64_simd_mov_to_<mode>low): Delete.
1181 (aarch64_simd_mov_to_<mode>high): Delete.
1182 (move_lo_quad_<mode>): Add w<-r alternative.
1183 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1184 (aarch64_simd_mov_from_*): Update type attribute.
1185 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1186 statement.
1187
5f28524a
JH
11882013-05-13 Jan Hubicka <jh@suse.cz>
1189
1190 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1191 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1192 ix86_expand_epilogue, emit_i387_cw_initialization,
1193 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1194 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1195
ae6fa899
JJ
11962013-05-13 Jakub Jelinek <jakub@redhat.com>
1197
1198 PR tree-optimization/45216
1199 PR tree-optimization/57157
1200 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1201 the (-Y) & (B - 1) variant if OP is |.
1202 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1203 return shifted. Use (-op1) & (prec - 1) as other_amount
1204 instead of prec - op1.
1205
4502fe8d
MJ
12062013-05-13 Martin Jambor <mjambor@suse.cz>
1207
1208 PR middle-end/42371
1209 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1210 (ipa_constant_data): New type.
1211 (ipa_jump_func): Use ipa_constant_data to hold information about
1212 constant jump functions.
1213 (ipa_get_jf_constant): Adjust to jump function type changes.
1214 (ipa_get_jf_constant_rdesc): New function.
1215 (ipa_param_descriptor): New field controlled_uses.
1216 (ipa_get_controlled_uses): New function.
1217 (ipa_set_controlled_uses): Likewise.
1218 * ipa-ref.h (ipa_find_reference): Declare.
1219 * ipa-prop.c (ipa_cst_ref_desc): New type.
1220 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1221 changes.
1222 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1223 New parameter cs. Adjust all callers.
1224 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1225 (remove_described_reference): New function.
1226 (jfunc_rdesc_usable): Likewise.
1227 (try_make_edge_direct_simple_call): Decrement controlled use count,
1228 attempt to remove reference if it hits zero.
1229 (combine_controlled_uses_counters): New function.
1230 (propagate_controlled_uses): Likewise.
1231 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1232 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1233 (ipa_print_node_params): Print described use counter.
1234 (ipa_write_jump_function): Adjust to jump function type changes.
1235 (ipa_read_jump_function): New parameter CS, pass it to
1236 ipa_set_jf_constant. Adjust caller.
1237 (ipa_write_node_info): Stream controlled use count
1238 (ipa_read_node_info): Likewise.
1239 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1240 asserting.
1241 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1242 count. Remove cloning-added reference if it reaches zero.
1243 * ipa-ref.c (ipa_find_reference): New function.
1244
0864bfc2
GG
12452013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1246
e7208ea3 1247 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
1248 alignment values for AMD BD and BT architectures.
1249
640bfeb2
MG
12502013-05-13 Marc Glisse <marc.glisse@inria.fr>
1251
1252 * tree-vect-generic.c (uniform_vector_p): Move ...
1253 * tree.c (uniform_vector_p): ... here.
1254 * tree.h (uniform_vector_p): Declare it.
1255 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1256 into a scalar.
1257
3a60f32b
JJ
12582013-05-13 Jakub Jelinek <jakub@redhat.com>
1259
198fe1bf
JJ
1260 PR tree-optimization/57230
1261 * tree-ssa-strlen.c (handle_char_store): Record length for
1262 array store from STRING_CST.
1263
3a60f32b
JJ
1264 PR tree-optimization/57230
1265 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1266 check.
1267
566be57c
JR
12682013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1269
1270 * config/epiphany/epiphany.c (epiphany_init): Check size of
1271 NUM_MODES_FOR_MODE_SWITCHING.
1272 (epiphany_expand_prologue):
1273 Remove CONFIG_REGNUM initial value handling code.
1274 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1275 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 1276 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
1277 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1278 Don't return 1 for FP_MODE_NONE.
1279 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1280 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1281 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1282 * config/epiphany/epiphany.md (save_config): New pattern.
1283
0f2c2331
UB
12842013-05-12 Uros Bizjak <ubizjak@gmail.com>
1285
1286 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1287
5b3f93c7
UB
12882013-05-10 Uros Bizjak <ubizjak@gmail.com>
1289
1290 * config/i386/i386.md (memory): Handle sseishft1.
1291 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1292 (*vec_extractv2di_1): Ditto.
1293
1f873f0e
VM
12942013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1295
1296 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1297 saved registers.
1298
341427fa 12992013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
1300
1301 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1302 Add mthumb/march=armv7-a multilib.
1303 Add mthumb/march=armv7-r multilib.
1304 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1305
9e69bdde
RC
13062013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1307
1308 * config/v850/t-rtems: Add more multilibs.
1309
9ff09a22
RB
13102013-05-10 Richard Biener <rguenther@suse.de>
1311
1312 PR tree-optimization/57214
1313 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1314 not propagate from SSA names that occur in abnormal PHI nodes.
1315
a5e0cd1d
MG
13162013-05-10 Marc Glisse <marc.glisse@inria.fr>
1317
1318 * stor-layout.c (element_precision): New function.
1319 * machmode.h (element_precision): Declare it.
1320 * tree.c (build_minus_one_cst): New function.
1321 (element_precision): Likewise.
1322 * tree.h (build_minus_one_cst): Declare new function.
1323 (element_precision): Likewise.
1324 * fold-const.c (operand_equal_p): Use element_precision.
1325 (fold_binary_loc): Handle vector types.
1326 * convert.c (convert_to_integer): Use element_precision.
1327 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1328 separately.
1329
cb2558bc
RS
13302013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1331
1332 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1333 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1334 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1335 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1336 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1337 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1338 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1339 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1340 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1341 (Uuw8): New constraints.
1342 (Usb4): Move into alphabetical order.
1343 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1344 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1345 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1346 previously unnamed patterns.
1347 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1348 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1349 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1350 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1351 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1352 of specific lengths.
1353
cb3b8d33
JJ
13542013-05-10 Jakub Jelinek <jakub@redhat.com>
1355
6f93c008
JJ
1356 * config/i386/i386.md (rotateinv): New code attr.
1357 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1358 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1359 roll $31, %eax, etc.
1360
cb3b8d33
JJ
1361 PR tree-optimization/45216
1362 PR tree-optimization/57157
1363 * tree-ssa-forwprop.c (simplify_rotate): New function.
1364 (ssa_forward_propagate_and_combine): Call it.
1365
afb119be
RB
13662013-05-10 Richard Biener <rguenther@suse.de>
1367
1368 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1369 disable peeling when we version for aliasing.
1370 (vector_alignment_reachable_p): Honor explicit user alignment.
1371 (vect_supportable_dr_alignment): Likewise.
1372 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1373 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1374 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1375 then peeling to arrange for the cost-model check to come first.
1376
01ae4861
AM
13772013-05-10 Alan Modra <amodra@gmail.com>
1378
1379 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1380 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1381 * configure: Regenerate.
1382
ebc9a431
AM
13832013-05-10 Alan Modra <amodra@gmail.com>
1384
1385 PR target/55033
1386 * varasm.c (default_elf_select_section): Move !DECL_P check..
1387 (get_named_section): ..to here before calling get_section_name.
1388 Adjust assertion.
1389 (default_section_type_flags): Add DECL_P check.
1390 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1391 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1392
d4bca93c
JR
13932013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1394
1395 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1396 When using gen_stack_adjust_str with a register offset, add a
1397 REG_FRAME_RELATED_EXPR note.
1398
60ca9a65
UB
13992013-05-09 Uros Bizjak <ubizjak@gmail.com>
1400
1401 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1402 (*vec_extractv4si_zext_mem): Ditto.
1403 (*vec_extractv2di): Add 0->x and x->x alternatives.
1404 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1405 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1406
a3409c02
JM
14072013-05-09 Jason Merrill <jason@redhat.com>
1408
0138d6b2
JM
1409 N3639 C++1y VLA support
1410 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1411 DECL_VALUE_EXPR.
1412
a3409c02
JM
1413 * tree.c (build_constructor_va): New.
1414 * tree.h: Declare it.
1415
66e6b990
MJ
14162013-05-09 Martin Jambor <mjambor@suse.cz>
1417
1418 PR lto/57084
1419 * gimple-fold.c (canonicalize_constructor_val): Call
1420 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1421
64cfa6c0
JH
14222013-05-09 Jan Hubicka <jh@suse.cz>
1423 Richard Biener <rguenther@suse.de>
1424
1425 PR lto/54095
1426 * symtab.c (symtab_make_decl_local): Do not add private names.
1427
c3167b00
JH
14282013-05-09 Jan Hubicka <jh@suse.cz>
1429
1430 PR lto/54095
1431 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1432 (unlink_from_assembler_name_hash): Likewise.
1433 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1434 symtab_unregister_node, symtab_initialize_asm_name_hash,
1435 change_decl_assembler_name): Update.
1436
12dc6974
SN
14372013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1438
1439 * config/aarch64/aarch64.md: New movtf split.
1440 (*movtf_aarch64): Update.
1441 (aarch64_movdi_tilow): Handle TF modes and rename to
1442 aarch64_movdi_<mode>low.
1443 (aarch64_movdi_tihigh): Handle TF modes and rename to
1444 aarch64_movdi_<mode>high
1445 (aarch64_movtihigh_di): Handle TF modes and rename to
1446 aarch64_mov<mode>high_di
1447 (aarch64_movtilow_di): Handle TF modes and rename to
1448 aarch64_mov<mode>low_di
1449 (aarch64_movtilow_tilow): Remove spurious whitespace.
1450 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1451 splits.
1452 (aarch64_print_operand): Update.
1453
227eb343
AM
14542013-05-09 Alan Modra <amodra@gmail.com>
1455
1456 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1457 powerpc64le.
1458 * configure: Regenerate.
1459
0b013847
UB
14602013-05-08 Uros Bizjak <ubizjak@gmail.com>
1461
1462 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1463 splitter preparation statements.
1464 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1465 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1466 adjust_address_nv.
1467
1dc3d6e9
BS
14682013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1469
1470 * gimple-ssa-strength-reduction.c (count_candidates): Change
1471 return value to int.
1472 (analyze_candidates_and_replace): Change type of length to int.
1473
e61e7d28
UB
14742013-05-08 Uros Bizjak <ubizjak@gmail.com>
1475
1476 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1477 (*vec_extract<mode>): Use VI12_128 mode iterator.
1478 (*vec_extract<mode>_mem): Ditto.
1479 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1480 attribute.
1481
4fbfcf44
DN
14822013-05-08 Diego Novillo <dnovillo@google.com>
1483
1484 PR bootstrap/54659
1485
1486 Revert:
4fbfcf44
DN
1487 2012-08-17 Diego Novillo <dnovillo@google.com>
1488
e61e7d28
UB
1489 PR bootstrap/54281
1490 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1491 * config.in: Regenerate.
1492 * configure: Regenerate.
1493 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 1494
702d8703
JH
14952013-05-08 Jan Hubicka <jh@suse.cz>
1496
1497 PR lto/54095
1498 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1499 * cgraph.h (symtab_node_base): Add unique_name.
1500 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1501 input_overwrite_node, input_varpool_node): Stream unique_name.
1502 * cgraphclones.c (cgraph_create_virtual_clone,
1503 cgraph_function_versioning): Set unique_name.
1504 * ipa.c (function_and_variable_visibility): Set unique_name.
1505
8b28cf47
BS
15062013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1507
1508 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1509 (alloc_cand_and_find_basis): Restrict conditional candidate
1510 processing to CAND_MULTs.
1511
e86074fd
JH
15122013-05-08 Jan Hubicka <jh@suse.cz>
1513
1514 PR lto/54095
1515 lto-symtab.c (lto_symtab_symbol_p): New function.
1516 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1517 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1518 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1519 Skip static symbols.
1520
44398cbe
PC
15212013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1522
1523 PR tree-optimization/57200
1524 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1525 Only call inform if the preceding warning_at returns true.
1526
f6bc1c4a
HS
15272013-05-07 Han Shen <shenhan@google.com>
1528
1529 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1530 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1531 * common.opt (fstack-protector-strong): New option.
1532 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1533 * doc/invoke.texi (Optimization Options): Document
1534 "-fstack-protector-strong".
1535 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1536
4ffecb1f
SB
15372013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1538
1539 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1540
5a107a0f
VM
15412013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1542
1543 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1544 it is not lhs of the insn.
1545 (setup_reg_equiv): Remove insn having equiv memory which it is not
1546 lhs of the insn.
1547 * lra-constraints.c (process_address): Try to improve generation
1548 code for address base + disp.
1549 (lra_constraints): Make correct the code for checking insn setting
1550 up backward equivalence. Remove insn only if it is in the init
1551 insn list.
1552 * lra-eliminations.c (update_reg_eliminate): Change return value.
1553 (lra_eliminate): Use the result.
1554
3f5783ea
UB
15552013-05-07 Uros Bizjak <ubizjak@gmail.com>
1556
1557 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1558 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1559 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1560 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1561 register target operands.
1562 (*vec_extractv8hi_sse2): New pattern.
1563 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1564 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1565 (*vec_extract<mode>_mem): New insn and split pattern.
1566
8a5800b8
CL
15672013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1568
1569 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1570 (TARGET_ASAN_SHADOW_OFFSET): Define.
1571 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1572 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1573
7bf55a70
BS
15742013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1575
1576 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1577 (incr_vec_index): Return -1 if increment not found.
1578 (create_add_on_incoming_edge): Assert if increment not found.
1579 (record_increment): Limit number of increments recorded.
1580 (all_phi_incrs_profitable): Return false if an increment not found.
1581 (replace_profitable_candidates): Don't process increments that were
1582 not recorded.
1583 (analyze_candidates_and_replace): Limit size of incr_vec.
1584
3f8825c0
RB
15852013-05-07 Richard Biener <rguenther@suse.de>
1586
1587 * calls.c (special_function_p): setjmp-like functions are leaf.
1588 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1589 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1590
fd4842cd
SN
15912013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1592
1593 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1594 (aarch64_simd_mov<mode>): New expander.
1595 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1596 (aarch64_simd_mov_to_<mode>high): Likewise.
1597 (aarch64_simd_mov_from_<mode>low): Likewise.
1598 (aarch64_simd_mov_from_<mode>high): Likewise.
1599 (aarch64_dup_lane<mode>): Update.
1600 (aarch64_dup_lanedi): New instruction pattern.
1601 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1602 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1603
a7a7d10e
BS
16042013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1605
1606 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1607 (replace_mult_candidate): Remove unnecessary argument; remove
1608 unnecessary parameter from call to introduce_cast_before_cand.
1609 (replace_unconditional_candidate): Remove unnecessary parameter
1610 from call to replace_mult_candidate.
1611 (replace_conditional_candidate): Likewise.
1612 (insert_initializers): Use make_temp_ssa_name.
1613 (introduce_cast_before_cand): Remove unnecessary argument; use
1614 make_temp_ssa_name.
1615 (replace_one_candidate): Remove unnecessary argument; remove
1616 unnecessary parameter from calls to introduce_cast_before_cand.
1617 (replace_profitable_candidates): Remove unnecessary parameters
1618 from calls to replace_one_candidate.
1619
29105868
BS
16202013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1621
1622 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1623 phi def as possibly hiding a basis for a CAND_ADD whose operands
1624 have been commuted in the analysis.
1625 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1626
4095f9fa
N
16272013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1628
1629 * config/aarch64/aarch64.md
1630 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1631 shift value between 0-4.
1632
39e843e8
RB
16332013-05-07 Richard Biener <rguenther@suse.de>
1634
1635 * double-int.h (rshift): New overload.
1636 * double-int.c (rshift): New function.
1637 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1638 (create_reference_ops_from_ref): Remove.
1639 (vn_reference_insert): Use shared ops for constructing the
1640 reference and copy it.
1641
0a1a83cb
RB
16422013-05-07 Richard Biener <rguenther@suse.de>
1643
1644 PR middle-end/57190
1645 * tree-eh.c (sink_clobbers): Properly propagate
1646 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1647
43303d6f
JJ
16482013-05-07 Jakub Jelinek <jakub@redhat.com>
1649
ba7e83f8
JJ
1650 PR tree-optimization/57149
1651 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1652 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1653 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1654 uninit_undefined_value_p instead of ssa_undefined_value_p.
1655
43303d6f
JJ
1656 PR debug/57184
1657 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1658 for modifier == EXPAND_INITIALIZER.
1659
14523c25
AB
16602013-05-07 Anton Blanchard <anton@samba.org>
1661
1662 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1663 for powerpc64 little endian.
1664 * configure: Regenerate.
1665
cb7c8be9
GS
16662013-05-06 Graham Stott <grahams@btinternet.com>
1667
1668 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1669 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1670 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1671 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1672
16732013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
1674
1675 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1676 codes which allow non-lvalues.
1677
9a0ee7b0
MG
16782013-05-06 Marc Glisse <marc.glisse@inria.fr>
1679
1680 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1681 components are all 1s.
1682 (integer_minus_onep): New function.
1683 * tree.h (integer_minus_onep): Declare it.
1684 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1685 integer_minus_onep instead of integer_all_onesp.
1686
f2c17ea9
OE
16872013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1688
1689 PR target/52933
1690 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1691 variations of these patterns.
1692
f75e6a51
UB
16932013-05-06 Uros Bizjak <ubizjak@gmail.com>
1694
1695 * config/i386/i386.md (isa): Add x64_sse4 member.
1696 (enabled): Handle x64_sse4.
1697 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1698 instruction for 64bit SSE4_1 targets. Update insn attributes.
1699 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1700 instruction for SSE4_1 targets. Update insn attributes.
1701 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1702 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1703 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1704 const_1 selector.
1705 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1706 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1707 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1708
a986d468
OE
17092013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1710
1711 PR target/57108
1712 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1713
382522cb
MK
17142013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1715
1716 * final.c (do_assembler_dialects): Don't handle curly braces and
1717 vertical bar escaped by % as dialect delimiters.
1718 (output_asm_insn): Print curly braces and vertical bar if escaped
1719 by % and ASSEMBLER_DIALECT defined.
1720 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1721 * doc/tm.texi: Regenerated.
1722
fb0d5c60
SB
17232013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1724
fb0d5c60
SB
1725 * config/mips/mips.c: Include tree-pass.h.
1726 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1727 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1728 (pass_mips_machine_reorg2): New machine specific pass.
1729 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1730 (mips_option_override): Register the new pass.
1731 * rtl.h (cleanup_barriers): Remove prototype.
1732 (dbr_schedule): Likewise.
1733 * jump.c (cleanup_barriers): Make static.
1734 * reorg.c (dbr_schedule): Likewise.
1735
aa06a978
RB
17362013-05-06 Richard Biener <rguenther@suse.de>
1737
1738 PR tree-optimization/57185
1739 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1740 SSA names properly.
1741
0b953bec
UB
17422013-05-06 Uros Bizjak <ubizjak@gmail.com>
1743
1744 PR target/57106
1745 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1746 between "first_arg" and "insn", not "last" and "insn".
1747
28708525
WS
17482013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1749
1750 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1751 (find_candidates_in_block): Re-enable slsr_process_phi.
1752 (create_phi_basis): Fix double counting of candidate adjustment.
1753
0107dca2
RB
17542013-05-06 Richard Biener <rguenther@suse.de>
1755
1756 PR middle-end/57147
1757 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1758 the edge is also fallthru, preserve it and just clear the
1759 abnormal flag.
1760 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1761 also complex, preserve that and just clear the fallthru flag.
1762 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1763 update virtual operands.
1764
470d4d13
AM
17652013-05-06 Alan Modra <amodra@gmail.com>
1766
1767 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1768 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1769 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1770 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1771 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1772 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1773
8f1dbf8d
AM
17742013-05-06 Alan Modra <amodra@gmail.com>
1775
1776 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1777 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1778 (DEFAULT_ASM_ENDIAN): Define.
1779 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1780 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1781 Update -K PIC clause from sysv4.h.
1782 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1783 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1784
54890767
AM
17852013-05-06 Alan Modra <amodra@gmail.com>
1786
1787 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1788 twice for little-endian.
1789 (ashrdi3_no_power, ashrdi3): Support little-endian.
1790
2353515d
OE
17912013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1792
1793 PR target/55303
1794 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1795 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1796 related expanders.
1797 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1798 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1799 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1800 New predicates.
1801
33e67557
SB
18022013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1803 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1804
1805 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1806 * config/pa/pa.opt: Make mbig-switch a no-op.
1807 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1808 (CASE_VECTOR_MODE): Always return SImode.
1809 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1810 for the !TARGET_BIG_SWITCH case.
1811 * config/pa/pa-linux.h: Likewise.
1812 * config/pa/pa-openbsd.h: Likewise.
1813 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1814 * config/pa/pa.md (short_jump): Remove define_insn.
1815 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1816 (casesi0): Remove define_insn.
1817 (type): Remove btable_branch.
1818 (pa_combine_type): Likewise.
1819 (in_nullified_branch_delay): Likewise.
1820 (in_call_delay): Likewise.
1821 (define_delay): Likewise.
1822 (define_insn_reservation "Z3"): Likewise.
1823 (define_insn_reservation "Z4"): Likewise.
1824 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1825 (pa_adjust_insn_length): Remove adjustment for btable branches.
1826 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1827 and mno-big-switch
1828
3095685e
UB
18292013-05-05 Uros Bizjak <ubizjak@gmail.com>
1830
1831 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1832 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1833 Add m->r,x alternatives.
1834 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1835 splitters using SWI48x mode iterator.
1836 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1837 TARGET_64BIT. Add m->x alternative.
1838 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1839 Add o->x alternative. Enable for TARGET_SSE.
1840 (sse_storeq): Remove expander.
1841 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1842 with memory input operand.
1843 (*vec_extractv2di_1 splitter): New.
1844 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1845 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1846
4b36ae28
SB
18472013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1848
1849 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1850 (INT_LOWPART): Delete.
1851 (extract_MB): Adjust.
1852 (extract_ME): Adjust.
1853 (print_operand): Adjust.
1854
da226db2
SB
18552013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1856
1857 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1858 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1859 (reg_or_logical_cint_operand, easy_fp_constant,
1860 logical_const_operand): Delete "CONST_DOUBLE" case.
1861 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1862 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 1863 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
1864 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1865 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1866 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1867 test.
1868 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1869 CONST_DOUBLE DImode/VOIDmode case.
1870 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1871 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1872 CONST_DOUBLE VOIDmode case.
1873 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1874 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1875 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1876 Delete CONST_DOUBLE case.
1877 (splitters for mov FMOVE64 const_double): Delete
1878 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1879 "HOST_BITS_PER_WIDE_INT >= 64" test.
1880 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1881 case.
1882 (mov DI const_double): Delete.
1883
40de22d6
JJ
18842013-05-04 Jakub Jelinek <jakub@redhat.com>
1885
1886 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1887 on op shows all bits zero in mode of a lowpart subreg, return zero.
1888
5ec6aff2
MM
18892013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1890
1891 PR target/57150
1892 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1893 to save TFmode registers and DImode to save TImode registers for
1894 caller save operations.
1895 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1896 mark being partially clobbered since they only use the first
1897 double word.
1898
1899 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1900 and TDmode only use the upper 64-bits of each VSX register.
1901
2cefad90
BS
19022013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1903
1904 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1905 (find_candidates_in_block): Disable slsr_process_phi.
1906
d6d7eee1
GW
19072013-05-03 Guozhi Wei <carrot@google.com>
1908
1909 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
1910 constructor to ...
1911 (build_init_ctor): ... here.
d6d7eee1 1912
9b92d12b
BS
19132013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1914
1915 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1916 (slsr_cand_d): Redefine def_phi.
1917 (stride_status, phi_adjust_status, count_phis_status): New enums.
1918 (find_phi_def): New.
1919 (find_basis_for_base_expr): New.
1920 (find_basis_for_candidate): Handle hidden bases.
1921 (alloc_cand_and_find_basis): Handle phi candidates.
1922 (slsr_process_phi): New.
1923 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1924 (create_mul_imm_cand): Likewise.
1925 (create_add_ssa_cand): Exclude phi base candidates.
1926 (create_add_imm_cand): Likewise.
1927 (slsr_process_cast): Likewise.
1928 (slsr_process_copy): Likewise.
1929 (find_candidates_in_block): Handle phi candidates.
1930 (dump_candidate): Likewise.
1931 (unconditional_cands): Delete.
1932 (unconditional_cands_with_known_stride_p): Delete.
1933 (phi_dependent_cand_p): New.
1934 (cand_increment): Handle phi-dependent candidates.
1935 (replace_dependent): Delete.
1936 (replace_mult_candidate): New.
1937 (replace_unconditional_candidate): New.
1938 (incr_vec_index): Move to avoid forward reference.
1939 (create_add_on_incoming_edge): New.
1940 (create_phi_basis): New.
1941 (replace_dependents): Delete.
1942 (replace_conditional_candidate): New.
1943 (phi_add_costs): New.
1944 (replace_uncond_cands_and_profitable_phis): New.
1945 (record_increment): Handle phi adjustments.
1946 (record_phi_increments): New.
1947 (record_increments): Handle phi adjustments.
1948 (phi_incr_cost): New.
1949 (lowest_cost_path): Handle phis.
1950 (total_savings): Likewise.
1951 (analyze_increments): Likewise.
1952 (ncd_with_phi): New.
1953 (ncd_of_cand_and_phis): New.
1954 (nearest_common_dominator_for_cands): Handle phi increments.
1955 (all_phi_incrs_profitable): New.
1956 (replace_profitable_candidates): Handle phi-dependent candidates.
1957 (analyze_candidates_and_replace): Likewise.
1958
68f073d4
TJ
19592013-05-03 Teresa Johnson <tejohnson@google.com>
1960
1961 PR bootstrap/57154
1962 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1963 do not exceed REG_BR_PROB_BASE.
1964
a4ee7cb9
JL
19652013-05-03 Jeff Law <law@redhat.com>
1966
ade67f70 1967 PR tree-optimization/57144
a4ee7cb9
JL
1968 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1969 operand of the condition will bit into the new type when eliminating
1970 a cast feeding a condition.
1971
47954c4e
JJ
19722013-05-03 Jakub Jelinek <jakub@redhat.com>
1973
1974 PR rtl-optimization/57130
3095685e
UB
1975 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1976 of COMPARE as in_code to the recursive call if needed.
47954c4e 1977
3c21604f
UB
19782013-05-03 Uros Bizjak <ubizjak@gmail.com>
1979
1980 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1981 (enabled): Handle new members.
1982 * config/i386/sse.md (*vec_concatv2si): Merge from
1983 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1984 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1985
95c03b36
JR
19862013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1987
1988 PR tree-optimization/57027
1989 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1990 for fnms opportunity, check we got the prerequisite kind
1991 of tree / gimple before using accessor functions.
1992
07bfc9ec
RB
19932013-05-03 Richard Biener <rguenther@suse.de>
1994
1995 * double-int.h (lshift): New overload without precision
1996 and arith argument.
1997 (operator *=, operator +=, operator -=): Move ...
1998 * double-int.c (operator *=, operator +=, operator -=): ... here
1999 and implement more efficiently.
2000 (mul_double_with_sign): Remove.
2001 (lshift_double): Adjust to take unsinged shift argument, push
2002 dispatching code to callers.
2003 (mul_double_wide_with_sign): Add early out for callers that
2004 are not interested in high parts or overflow.
2005 (lshift): New function.
2006 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2007 dispatch code here.
2008 (lrotate, rrotate): Use logical shifts.
2009 * expr.c (get_inner_reference): Use lshift.
2010 * fixed-value.c (do_fixed_divide): Likewise.
2011 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2012 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2013 (indirect_refs_may_alias_p): Likewise.
2014 (stmt_kills_ref_p_1): Likewise.
2015
7769bb64
VP
20162013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2017
2018 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2019
1d0c8e5c
VP
20202013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2021
2022 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2023 scalar form of FABD instruction.
2024
f15feaf9
VM
20252013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2026
2027 * lra-constraints.c (process_alt_operands): Add checking alt
2028 number to choose the best alternative.
2029
d90e76d4
RB
20302013-05-02 Richard Biener <rguenther@suse.de>
2031
2032 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2033 bitmap and its handling.
2034 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2035
9f8e7a96
RB
20362013-05-02 Richard Biener <rguenther@suse.de>
2037
2038 PR middle-end/57140
2039 * tree-inline.c (copy_loops): Properly handle removed loops.
2040 (copy_cfg_body): Mark destination loops for fixup if source
2041 loops needed fixup.
2042
f3a81b39
GY
20432013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2044
2045 PR target/56732
2046 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2047 generating simple_return for naked functions.
2048
7b920a9a
MJ
20492013-05-02 Martin Jambor <mjambor@suse.cz>
2050
2051 PR middle-end/56988
2052 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2053 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2054 flags match.
2055 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2056 ipa_agg_replacement_value structures.
2057 (known_aggs_to_agg_replacement_list): Likewise.
2058 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2059 (read_agg_replacement_chain): Likewise.
2060 (ipcp_transform_function): Also check that by_ref flags match.
2061
2c41c19d
RB
20622013-05-02 Richard Biener <rguenther@suse.de>
2063
2064 * graphds.h (struct graph): Add obstack member.
2065 * graphds.c (new_graph): Initialize obstack and allocate
2066 vertices from it.
2067 (add_edge): Allocate edge from the obstack.
3c21604f 2068 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2069
8b47039c
TJ
20702013-05-02 Teresa Johnson <tejohnson@google.com>
2071
2072 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2073 divides.
2074 * cfg.c (update_bb_profile_for_threading): Ditto.
2075 * tree-inline.c (copy_bb): Ditto.
2076 (copy_edges_for_bb): Ditto.
2077 (initialize_cfun): Ditto.
2078 (copy_cfg_body): Ditto.
2079 (expand_call_inline): Ditto.
2080 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2081 (estimate_node_size_and_time): Ditto.
2082 (inline_merge_summary): Ditto.
2083 * cgraphclones.c (cgraph_clone_edge): Ditto.
2084 (cgraph_clone_node): Ditto.
2085 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2086 (compute_trg_info): Ditto.
2087
da65928c
IB
20882013-05-02 Ian Bolton <ian.bolton@arm.com>
2089
2090 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2091 S reg when fp attribute set.
2092 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2093
add3c965
IB
20942013-05-02 Ian Bolton <ian.bolton@arm.com>
2095
2096 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2097 New pattern.
2098 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2099 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2100 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2101
fdd43ac4
RB
21022013-05-02 Richard Biener <rguenther@suse.de>
2103
2104 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2105 (struct instantiate_cache_entry): New type.
2106 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2107 (struct instantiate_cache_type): New type.
2108 (set_instantiated_value, get_instantiated_value): Remove.
2109 (get_instantiated_value_entry): New function.
2110 (instantiate_scev_name): Use the new cache and adjust.
2111 (instantiate_scev_poly): Adjust.
2112 (instantiate_scev_binary): Likewise.
2113 (instantiate_array_ref): Likewise.
2114 (instantiate_scev_convert): Likewise.
2115 (instantiate_scev_not): Likewise.
2116 (instantiate_scev_3): Likewise.
2117 (instantiate_scev_2): Likewise.
2118 (instantiate_scev_r): Likewise.
2119 (instantiate_scev): Likewise.
2120 (resolve_mixers): Likewise.
2121
36ff9dfb
VM
21222013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2123
2124 PR target/57091
2125 * lra-constraints.c (best_small_class_operands_num): Remove.
2126 (process_alt_operands): Remove small_class_operands_num. Take
2127 small classes operands into losers and only if the operand is not
2128 matched. Modify debugging output.
2129 (curr_insn_transform): Remove best_small_class_operands_num.
2130 Print insn name.
2131
36054fab
JG
21322013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2133
2134 * config/aarch64/aarch64-builtins.c
2135 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2136 * config/aarch64/aarch64-simd-builtins.def
2137 (reduc_splus_): Add new modes.
2138 (reduc_uplus_): New.
2139 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2140 (reduc_uplus_v4sf): Likewise.
2141 (reduc_splus_v4sf): Likewise.
2142 (aarch64_addv<mode>): Likewise.
2143 (reduc_uplus_<mode>): Likewise.
2144 (reduc_splus_<mode>): Likewise.
2145 (aarch64_addvv2di): Likewise.
2146 (reduc_uplus_v2di): Likewise.
2147 (reduc_splus_v2di): Likewise.
2148 (aarch64_addvv2si): Likewise.
2149 (reduc_uplus_v2si): Likewise.
2150 (reduc_splus_v2si): Likewise.
2151 (reduc_<sur>plus_<mode>): New.
2152 (reduc_<sur>plus_v2di): Likewise.
2153 (reduc_<sur>plus_v2si): Likewise.
2154 (reduc_<sur>plus_v4sf): Likewise.
2155 (aarch64_addpv4sf): Likewise.
2156 * config/aarch64/arm_neon.h
2157 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2158 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2159 add UNSPEC_SADDV, UNSPEC_UADDV.
2160 (SUADDV): New.
2161 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2162
6dce23a8
JG
21632013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2164
2165 * config/aarch64/arm_neon.h
2166 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2167
1598945b
JG
21682013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2169
2170 * config/aarch64/aarch64-builtins
2171 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2172
998eaf97
JG
21732013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2174
2175 * config/aarch64/aarch64-simd-builtins.def
2176 (reduc_smax_): New.
2177 (reduc_smin_): Likewise.
2178 (reduc_umax_): Likewise.
2179 (reduc_umin_): Likewise.
2180 (reduc_smax_nan_): Likewise.
2181 (reduc_smin_nan_): Likewise.
2182 (fmax): Remove.
2183 (fmin): Likewise.
2184 (smax): Update for V2SF, V4SF and V2DF modes.
2185 (smin): Likewise.
2186 (smax_nan): New.
2187 (smin_nan): Likewise.
2188 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2189 (<su><maxmin><mode>3): ...This, refactor.
2190 (s<maxmin><mode>3): New.
2191 (<maxmin_uns><mode>3): Likewise.
2192 (reduc_<maxmin_uns>_<mode>): Refactor.
2193 (reduc_<maxmin_uns>_v4sf): Likewise.
2194 (reduc_<maxmin_uns>_v2si): Likewise.
2195 (aarch64_<fmaxmin><mode>: Remove.
2196 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2197 new builtin names.
2198 (vmin<q>_f<32,64>): Likewise.
2199 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2200 (FMAXMIN): New.
2201 (su): Add mappings for smax, smin, umax, umin.
2202 (maxmin): New.
2203 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2204 (FMAXMIN): Rename as...
2205 (FMAXMIN_UNS): ...This.
2206 (maxminv): Remove.
2207 (fmaxminv): Likewise.
2208 (fmaxmin): Likewise.
2209 (maxmin_uns): New.
2210 (maxmin_uns_op): Likewise.
2211
bd11644e
JG
22122013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2213
2214 * config/aarch64/arm_neon.h
2215 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2216 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2217 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2218
75dd5ace
JG
22192013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2220
2221 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2222 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2223
7c19979f
JG
22242013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2225
2226 * config/aarch64/aarch64-simd.md
2227 (vcond<mode>_internal): Handle special cases for constant masks.
2228 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2229 (vcondu<mode><mode>): Likewise.
2230 (vcond<v_cmp_result><mode>): New.
2231
bb60efd9
JG
22322013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2233
2234 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2235 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2236 * config/aarch64/aarch64-simd-builtins.def
2237 (cmeq): Update to BUILTIN_VALLDI.
2238 (cmgt): Likewise.
2239 (cmge): Likewise.
2240 (cmle): Likewise.
2241 (cmlt): Likewise.
2242 * config/aarch64/arm_neon.h
2243 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2244 to builtins or C as appropriate.
2245
889b9412
JG
22462013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2247
2248 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2249 (cmgeu): ...This.
2250 (cmhi): Rename to...
2251 (cmgtu): ...This.
2252 * config/aarch64/aarch64-simd.md
2253 (simd_mode): Add SF.
2254 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2255 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2256 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2257 (cstore<mode>_neg): ...This.
2258 * config/aarch64/iterators.md
2259 (VALLF): new.
2260 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2261 (COMPARISONS): New.
2262 (UCOMPARISONS): Likewise.
2263 (optab): Add missing comparisons.
2264 (n_optab): New.
2265 (cmp_1): Likewise.
2266 (cmp_2): Likewise.
2267 (CMP): Likewise.
2268 (cmp): Remove.
2269 (VCMP_S): Likewise.
2270 (VCMP_U): Likewise.
2271 (V_cmp_result): Add DF, SF modes.
2272 (v_cmp_result): Likewise.
2273 (v): Likewise.
2274 (vmtype): Likewise.
2275 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2276
0a7dbb76
GY
22772013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2278
2279 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2280 define_insn to define_insn_and_split.
2281 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2282 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2283 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2284 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2285 (thumb2_negscc): Likewise.
2286
fb614ca6
GY
22872013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2288
2289 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2290
9e64a0bf
GY
22912013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2292
2293 * config/arm/thumb2.md: Remove trailing whitespaces.
2294
d6b28156
RS
22952013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2296
2297 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2298 Use gen_int_mode rather than GEN_INT.
2299
f91674c3
L
23002013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2301
b0dec607 2302 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
2303 debug_gimple_stmt.
2304
3551257c
RB
23052013-04-30 Richard Biener <rguenther@suse.de>
2306
2307 PR middle-end/57122
3c21604f 2308 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 2309
4c1aff1c
RB
23102013-04-30 Richard Biener <rguenther@suse.de>
2311
2312 PR middle-end/57107
2313 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2314
54b8379a
AB
23152013-04-30 Andrey Belevantsev <abel@ispras.ru>
2316
2317 PR rtl-optimization/56957
2318 PR rtl-optimization/57105
54b8379a
AB
2319 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2320 variable. Use just INSN_UID for determining whether an insn
2321 should be only disconnected from the insn stream.
2322 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2323
abc27962
JJ
23242013-04-30 Jakub Jelinek <jakub@redhat.com>
2325
2326 PR tree-optimization/57104
2327 * tsan.c (instrument_expr): Don't instrument accesses to
2328 DECL_HARD_REGISTER VAR_DECLs.
2329
0fc822d0
RB
23302013-04-30 Richard Biener <rguenther@suse.de>
2331
2332 * function.h (loops_for_fn): New inline function.
2333 (set_loops_for_fn): Likewise.
2334 * cfgloop.h (place_new_loop): Add struct function parameter.
2335 (get_loop): Likewise.
2336 (get_loops): Likewise.
2337 (number_of_loops): Likewise.
2338 (fel_next): Adjust.
2339 (fel_init): Likewise.
2340 * cfg.c (get_loop_copy): Adjust.
2341 * cfgloop.c (flow_loops_dump): Likewise.
2342 (record_loop_exits): Likewise.
2343 (verify_loop_structure): Likewise.
2344 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2345 (estimate_reg_pressure_cost): Likewise.
2346 (mark_loop_exit_edges): Likewise.
2347 * cfgloopmanip.c (place_new_loop): Likewise.
2348 (add_loop): Likewise.
2349 (duplicate_loop): Likewise.
2350 * graph.c (draw_cfg_nodes): Likewise.
2351 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2352 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2353 (extract_affine_chrec): Likewise.
2354 (build_scop_iteration_domain): Likewise.
2355 * graphite.c (graphite_initialize): Likewise.
2356 * ira-build.c (create_loop_tree_nodes): Likewise.
2357 (more_one_region_p): Likewise.
2358 (rebuild_regno_allocno_maps): Likewise.
2359 (mark_loops_for_removal): Likewise.
2360 (mark_all_loops_for_removal): Likewise.
2361 (remove_unnecessary_regions): Likewise.
2362 (ira_build): Likewise.
2363 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2364 * loop-init.c (fix_loop_structure): Likewise.
2365 (gate_rtl_move_loop_invariants): Likewise.
2366 (gate_rtl_unswitch): Likewise.
2367 (gate_rtl_unroll_and_peel_loops): Likewise.
2368 (rtl_doloop): Likewise.
2369 * lto-streamer-in.c (input_cfg): Likewise.
2370 * lto-streamer-out.c (output_cfg): Likewise.
2371 * modulo-sched.c (sms_schedule): Likewise.
2372 * predict.c (tree_estimate_probability): Likewise.
2373 (tree_estimate_probability_driver): Likewise.
2374 (estimate_loops): Likewise.
2375 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2376 (move_sese_region_to_fn): Likewise.
2377 (debug_loop_num): Likewise.
2378 * tree-chrec.c (chrec_evaluate): Likewise.
2379 (hide_evolution_in_other_loops_than_loop): Likewise.
2380 (chrec_component_in_loop_num): Likewise.
2381 (reset_evolution_in_loop): Likewise.
2382 (evolution_function_is_invariant_rec_p): Likewise.
2383 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2384 * tree-inline.c (copy_loops): Likewise.
2385 (copy_cfg_body): Likewise.
2386 (tree_function_versioning): Likewise.
2387 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2388 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2389 Likewise.
2390 (add_to_evolution_1): Likewise.
2391 (scev_const_prop): Likewise.
2392 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2393 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2394 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2395 (tree_ssa_lim_initialize): Likewise.
2396 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2397 (verify_loop_closed_ssa): Likewise.
2398 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2399 (tree_ssa_loop_im): Likewise.
2400 (tree_ssa_loop_unswitch): Likewise.
2401 (tree_vectorize): Likewise.
2402 (check_data_deps): Likewise.
2403 (tree_ssa_loop_ivcanon): Likewise.
2404 (tree_ssa_loop_bounds): Likewise.
2405 (tree_complete_unroll): Likewise.
2406 (tree_complete_unroll_inner): Likewise.
2407 (tree_parallelize_loops): Likewise.
2408 (tree_ssa_loop_prefetch): Likewise.
2409 (tree_ssa_loop_ivopts): Likewise.
2410 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2411 * tree-vectorizer.c (vectorize_loops): Likewise.
2412
37953bd3
MF
24132013-04-29 Mike Frysinger <vapier@gentoo.org>
2414
2415 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2416 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2417 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2418 with EABI_LINK_SPEC.
2419
f9ed28db
UB
24202013-04-29 Uros Bizjak <ubizjak@gmail.com>
2421
2422 PR target/44578
2423 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2424 alternative.
2425
deca73f5
VM
24262013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2427
2428 PR target/57097
37953bd3 2429 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
2430 using memory for pseudos. Print cost dump for alternatives.
2431 Modify cost values for conflicts with early clobbers.
2432 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2433
fdca7d03
UB
24342013-04-29 Uros Bizjak <ubizjak@gmail.com>
2435
2436 PR target/57098
2437 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2438
0b064172
IB
24392013-04-29 Ian Bolton <ian.bolton@arm.com>
2440
2441 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2442 from/to S register.
2443 (movdi_aarch64): Support LDR/STR from/to D register.
2444
473cec55
IB
24452013-04-29 Ian Bolton <ian.bolton@arm.com>
2446
2447 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2448 or higher by default.
2449
a6f30e66
RB
24502013-04-29 Richard Biener <rguenther@suse.de>
2451
2452 PR middle-end/57075
2453 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2454 even if not adding abnormal edges for calls that can make
2455 abnormal gotos.
2456
0c2b2040
RB
24572013-04-29 Richard Biener <rguenther@suse.de>
2458
2459 PR middle-end/57103
2460 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2461 TREE_BLOCK.
2462 (move_stmt_r): Remove redundant checking.
2463
f41f80f9
TJ
24642013-04-29 Teresa Johnson <tejohnson@google.com>
2465
2466 PR bootstrap/57077
2467 * basic-block.h (apply_scale): New function.
2468 (apply_probability): Use apply_scale.
2469 * gimple-streamer-in.c (input_bb): Ditto.
2470 * lto-streamer-in.c (input_cfg): Ditto.
2471 * lto-cgraph.c (merge_profile_summaries): Ditto.
2472 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 2473 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
2474 (copy_edges_for_bb): Ditto.
2475 (copy_cfg_body): Ditto.
2476
315bbd2e
TV
24772013-04-29 Tom de Vries <tom@codesourcery.com>
2478
2479 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2480 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2481 (tail_merge_optimize): Handle current_loops == NULL.
2482
ebbd90d8
JL
24832013-04-26 Jeff Law <law@redhat.com>
2484
2485 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2486 (simplify_cond_using_ranges): Generalize code to simplify
2487 COND_EXPRs where one argument is a constant and the other
2488 is an SSA_NAME created by an integral type conversion.
2489
8b9b57eb
KT
24902013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2491
2492 * config/arm/arm.md (store_minmaxsi): Use only when
2493 optimize_insn_for_size_p.
2494
9498e5dc
CB
24952013-04-29 Christian Bruel <christian.bruel@st.com>
2496
2497 PR target/57108
2498 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2499
6093bc06
RB
25002013-04-29 Richard Biener <rguenther@suse.de>
2501
2502 PR middle-end/57089
fdca7d03
UB
2503 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2504 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
2505 (expand_omp_for_generic): Properly add loops.
2506 (expand_omp_for_static_nochunk): Likewise.
2507 (expand_omp_for_static_chunk): Likewise.
2508 (expand_omp_for): For the degenerate case fixup loops.
2509 (expand_omp_sections): Fix default bb placement in loops.
2510 (expand_omp_atomic_pipeline): Properly add loops.
2511
84aacbfd
KT
25122013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2513
2514 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2515
8dee4479
TV
25162013-04-29 Tom de Vries <tom@codesourcery.com>
2517
2518 * tree-ssa-tail-merge.c: Update header comment.
2519
47934dc4
JG
25202013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2521
2522 * config/aarch64/arm_neon.h
2523 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2524 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2525 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2526 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2527 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2528 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2529 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2530 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2531
384be29f
JG
25322013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2533
2534 * config/aarch64/aarch64-simd.md
2535 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2536 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2537 fix_trunc, fixuns_trunc.
2538 (ftrunc<VDQF:mode>2): New.
2539 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2540 (fix_trunc_optab): New.
2541
0386b123
JG
25422013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2543
2544 * config/aarch64/aarch64-builtins.c
2545 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2546 iceilf, lround, iroundf.
2547
00fcb892
UB
25482013-04-29 Uros Bizjak <ubizjak@gmail.com>
2549
2550 PR target/54349
2551 * config/i386/i386.h (enum ix86_tune_indices)
2552 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2553 New, split from X86_TUNE_INTER_UNIT_MOVES.
2554 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2555 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2556 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2557 (TARGET_INTER_UNIT_MOVES): Remove.
2558 * config/i386/i386.c (initial_ix86_tune_features): Update.
2559 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2560 (ix86_expand_convert_uns_didf_sse): Use
2561 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2562 (ix86_expand_vector_init_one_nonzero): Ditto.
2563 (ix86_expand_vector_init_interleave): Ditto.
2564 (inline_secondary_memory_needed): Return true for moves from SSE class
2565 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2566 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2567 * config/i386/constraints.md (Yi, Ym): Depend on
2568 TARGET_INTER_UNIT_MOVES_TO_VEC.
2569 (Yj, Yn): New constraints.
2570 * config/i386/i386.md (*movdi_internal): Change constraints of
2571 operand 1 from Yi to Yj and from Ym to Yn.
2572 (*movsi_internal): Ditto.
2573 (*movdf_internal): Ditto.
2574 (*movsf_internal): Ditto.
2575 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2576 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2577 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2578 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2579 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2580 * config/i386/sse.md (movdi_to_sse): Ditto.
2581 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2582 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2583 TARGET_INTER_UNIT_MOVES.
2584 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2585 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2586 instead of TARGET_INTER_UNIT_MOVES.
2587 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2588 operand 1 from Yi to Yj and from Ym to Yn.
2589
4c871069
JG
25902013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2591
2592 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2593 (float_truncate_hi_): Likewise.
2594 (float_extend_lo_): Likewise.
2595 (float_truncate_lo_): Likewise.
2596 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2597 (aarch64_float_extend_lo_v2df): Likewise.
2598 (vec_unpacks_hi_v4sf): Likewise.
2599 (aarch64_float_truncate_lo_v2sf): Likewise.
2600 (aarch64_float_truncate_hi_v4sf): Likewise.
2601 (vec_pack_trunc_v2df): Likewise.
2602 (vec_pack_trunc_df): Likewise.
2603
1709ff9b
JG
26042013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2605
2606 * config/aarch64/aarch64-builtins.c
2607 (aarch64_fold_builtin): Fold float conversions.
2608 * config/aarch64/aarch64-simd-builtins.def
2609 (floatv2si, floatv4si, floatv2di): New.
2610 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2611 * config/aarch64/aarch64-simd.md
2612 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2613 * config/aarch64/iterators.md (FLOATUORS): New.
2614 (optab): Add float, floatuns.
2615 (su_optab): Likewise.
2616
ce966824
JG
26172013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2618
2619 * config/aarch64/aarch64-builtins.c
2620 (aarch64_builtin_vectorized_function): Use new names for
2621 fcvt builtins.
2622 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2623 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2624 (fcvtzu): Split as...
2625 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2626 (fcvtas): Split as...
2627 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2628 (fcvtau): Split as...
2629 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2630 (fcvtps): Split as...
2631 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2632 (fcvtpu): Split as...
2633 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2634 (fcvtms): Split as...
2635 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2636 (fcvtmu): Split as...
2637 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2638 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2639 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2640 (lfrintnusf, lfrintnudf): Likewise.
2641 * config/aarch64/aarch64-simd.md
2642 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2643 define_insn.
2644 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2645 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2646 (fcvt_pattern): Likewise.
2647
b9de24fe
JG
26482013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2649
2650 * config/aarch64/aarch64-simd.md
2651 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2652 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2653
77a205be
JG
26542013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2655
2656 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2657 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2658 (vrnd<a,m,n,p>_f32): Implement using builtins.
2659 (vrnd<i,x><q>_f<32, 64>): New.
2660
0659ce6f
JG
26612013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2662
2663 * config/aarch64/aarch64-builtins.c
2664 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2665 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2666 (frintz): Rename to...
2667 (btrunc): ...this.
2668 (frintp): Rename to...
2669 (ceil): ...this.
2670 (frintm): Rename to...
2671 (floor): ...this.
2672 (frinti): Rename to...
2673 (nearbyint): ...this.
2674 (frintx): Rename to...
2675 (rint): ...this.
2676 (frinta): Rename to...
2677 (round): ...this.
2678 * config/aarch64/aarch64-simd.md
2679 (aarch64_frint<frint_suffix><mode>): Delete.
2680 (<frint_pattern><mode>2): Convert to insn.
2681 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2682 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2683 (frint_pattern): Likewise.
2684 (frint_suffix): Likewise.
2685
ea78906a
RB
26862013-04-29 Richard Biener <rguenther@suse.de>
2687
2688 PR tree-optimization/57081
2689 * loop-init.c: Include tree-flow.h.
2690 (loop_optimizer_finalize): Free number of iteration estimates.
2691 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2692
baee1763
JJ
26932013-04-29 Jakub Jelinek <jakub@redhat.com>
2694
94dc5332
JJ
2695 PR tree-optimization/57083
2696 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2697 non-singleton shift count range, zero extend low_bound for uns case.
2698
baee1763
JJ
2699 * config/i386/predicates.md (general_vector_operand): New predicate.
2700 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2701 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2702 if they aren't nonimmediate operands. If their original values
2703 satisfy const_vector_equal_evenodd_p, don't shift them.
2704 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2705 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2706 if not nonimmediate_operand.
2707 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2708 instead of register_operand.
2709 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2710
a9073727 27112013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
2712
2713 * stor-layout.c (finalize_size_functions): Allocate a structure and
2714 reset cfun before dumping the functions.
2715
ba8011e6
JJ
27162013-04-27 Jakub Jelinek <jakub@redhat.com>
2717
d6fde69e
JJ
2718 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2719
ba8011e6
JJ
2720 PR target/56866
2721 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2722 use xop_pmacsdqh if uns_p.
2723 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2724 the immediate rotate count.
2725
2c62cbaa
VM
27262013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2727
2728 * rtl.h (struct rtx_def): Add comment for field jump.
2729 (LRA_SUBREG_P): New macro.
2730 * recog.c (register_operand): Check LRA_SUBREG_P.
2731 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2732 stack frame.
2733 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2734 (lra_final_code_change): Skip subreg change for operators.
2735 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2736 if there are no operand changes.
2737 * lra-constraints.c (curr_insn_set): New.
2738 (match_reload): Set LRA_SUBREG_P.
2739 (emit_spill_move): Ditto.
2740 (check_and_process_move): Use curr_insn_set. Process only single
2741 set insns. Don't initialize sec_mem_p and change_p.
2742 (simplify_operand_subreg): Use LRA_SUBREG_P.
2743 (reg_in_class_p): New function.
2744 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2745 of #ifdef. Add code to remove cycling.
2746 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2747 non-null disp. Reload inner instead of disp when base and index
2748 are null. Try to put lo_sum into register.
2749 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2750 (check_and_process_move): Move code for move cost check to
2751 simple_move_p. Remove equiv_substitution.
2752 (simple_move_p): New function.
2753 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2754 curr_insn_set. Call check_and_process_move only for single set
2755 insns. Use the new function. Move call of check_and_process_move
2756 after operand equiv substitution and address process.
2757
e7d764f3
JJ
27582013-04-26 Jakub Jelinek <jakub@redhat.com>
2759
2760 PR go/57045
2761 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2762 with nonlocal goto receivers or returns twice calls, ignore
2763 unininitialized values from abnormal edges to nl goto receiver
2764 or returns twice call.
2765
41e10689
JJ
27662013-04-26 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR tree-optimization/57051
2769 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2770 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2771 bitsize.
2772
d7ed20db
RB
27732013-04-26 Richard Biener <rguenther@suse.de>
2774
2775 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2776 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2777 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2778 (fixup_loop_arrays_after_move): New function.
2779 (move_sese_region_to_fn): Properly outline the loop tree parts
2780 of the SESE region.
2781
df93505e
UB
27822013-04-26 Uros Bizjak <ubizjak@gmail.com>
2783
2784 * config/i386/i386.md (type, unit): Fix long lines.
2785
dd366ec3
RB
27862013-04-26 Richard Biener <rguenther@suse.de>
2787
2788 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2789 (lto-streamer-out.o): Likewise.
2790 * cfgloop.c (init_loops_structure): Export, add struct function
2791 argument and adjust.
2792 (flow_loops_find): Adjust.
2793 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2794 (init_loops_structure): Declare.
2795 * lto-streamer-in.c: Include cfgloop.h.
2796 (input_cfg): Input the loop tree.
2797 * lto-streamer-out.c: Include cfgloop.h.
2798 (output_cfg): Output the loop tree.
2799 (output_struct_function_base): Do not drop PROP_loops.
2800
a9e0d843
RB
28012013-03-26 Richard Biener <rguenther@suse.de>
2802
2803 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2804 (pass_build_cfg): Provide PROP_loops.
2805 (move_sese_region_to_fn): Remove loops that are outlined into fn
2806 for now.
2807 * tree-inline.c: Include cfgloop.h.
2808 (initialize_cfun): Do not drop PROP_loops.
2809 (copy_loops): New function.
2810 (copy_cfg_body): Copy loop structure.
2811 (tree_function_versioning): Initialize destination loop tree.
2812 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2813 (pass_parallelize_loops): Do IL verification.
2814 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2815 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2816 the CFG make sure we fixup loops as well.
2817 * tree-ssa-tail-merge.c: Include cfgloop.h.
2818 (replace_block_by): When merging loop latches mark loops for fixup.
2819 * lto-streamer-out.c (output_struct_function_base): Drop
2820 PROP_loops for now.
2821 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2822 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2823 * ipa-split.c: Include cfgloop.h.
2824 (split_function): Add the new return block to the loop tree root.
2825 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2826 whether we have removed the forwarder block.
2827 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2828 * cfgloop.h (place_new_loop): Declare.
2829 * cfgloopmanip.c (place_new_loop): Export.
2830 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2831 (tree-switch-conversion.o): Likewise.
2832 (tree-complex.o): Likewise.
2833 (tree-inline.o): Likewise.
2834 (tree-ssa-tailmerge.o): Likewise.
2835 (ipa-split.o): Likewise.
2836 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2837 (tree-ssa-copy.o): Likewise.
2838 * tree-switch-conversion.c: Include cfgloop.h
2839 (process_switch): If we emit a bit-test cascade, schedule loops
2840 for fixup.
2841 * tree-complex.c: Include cfgloop.h.
2842 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2843 * asan.c: Include cfgloop.h.
2844 (create_cond_insert_point): Properly add new basic-blocks to
2845 loops, schedule loop fixup.
2846 * cfgloop.c (verify_loop_structure): Check that looks are not
2847 marked for fixup.
2848 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2849 to loops.
2850 (expand_omp_for_generic): Likewise.
2851 (expand_omp_sections): Likewise.
2852 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2853 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2854 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2855 is initialized, not when loops are present.
2856 * tree-parloops.c (parallelize_loops): Remove checking here.
2857 * passes.c (init_optimization_passes): Schedule a copy-propagation
2858 pass before complete unrolling of inner loops.
2859
e78e8a0b
JJ
28602013-04-26 Jakub Jelinek <jakub@redhat.com>
2861
a2e836b2
JJ
2862 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2863 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2864 (colorize_init): Add argument to _WIN32 version.
2865 * toplev.c: Include diagnostic-color.h.
2866 (process_options): Default to -fdiagnostics-color=auto if
2867 GCC_COLORS env var is in the environment.
2868 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
2869 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2870 env var is in the environment, the default is auto rather than never.
a2e836b2 2871
e78e8a0b
JJ
2872 * diagnostic.h (file_name_as_prefix): Add context argument.
2873 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2874 the string as locus.
2875 * langhooks.c (lhd_print_error_function): Adjust caller.
2876
013e5ef9
LC
28772013-04-25 Lawrence Crowl <crowl@google.com>
2878
2879 * var-tracking.c (shared_hash_def::htab):
2880 Change type to hash_table. Update dependent calls and types.
2881
4a8fb1a1
LC
28822013-04-25 Lawrence Crowl <crowl@google.com>
2883
2884 * Makefile.in: Update as needed below.
2885
2886 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2887 Move declaration to after the type's method definitons.
2888
2889 * attribs.c (htab_t scoped_attributes::attribute_hash):
2890 Change type to hash_table. Update dependent calls and types.
2891
2892 * bitmap.c (htab_t bitmap_desc_hash):
2893 Change type to hash_table. Update dependent calls and types.
2894
2895 * cselib.c (htab_t cselib_hash_table):
2896 Change type to hash_table. Update dependent calls and types.
2897
2898 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2899 (hash_string_slot_node): Move implementation into lto-streamer.h
2900 struct string_slot_hasher.
2901 (eq_string_slot_node): Likewise.
2902
2903 * data-streamer-out.c: Update output_block::string_hash_table
2904 dependent calls and types.
2905
2906 * dwarf2cfi.c (htab_t trace_index):
2907 Change type to hash_table. Update dependent calls and types.
2908
2909 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2910 Change type to hash_table. Update dependent calls and types.
2911 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2912 (htab_t optimize_external_refs::map): Likewise.
2913 (htab_t output_comp_unit::extern_map): Likewise.
2914 (htab_t output_comdat_type_unit::extern_map): Likewise.
2915 (htab_t output_macinfo::macinfo_htab): Likewise.
2916 (htab_t optimize_location_lists::htab): Likewise.
2917 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2918
2919 * except.c (htab_t ehspec_hash_type):
2920 Change type to hash_table. Update dependent calls and types.
2921 (assign_filter_values::ttypes): Likewise.
2922 (assign_filter_values::ehspec): Likewise.
2923 (sjlj_assign_call_site_values::ar_hash): Likewise.
2924 (convert_to_eh_region_ranges::ar_hash): Likewise.
2925
2926 * gcse.c (htab_t pre_ldst_table):
2927 Change type to hash_table. Update dependent calls and types.
2928
2929 * ggc-common.c (htab_t saving_htab):
2930 Change type to hash_table. Update dependent calls and types.
2931 (htab_t loc_hash): Likewise.
2932 (htab_t ptr_hash): Likewise.
2933 (call_count): Rename ggc_call_count.
2934 (call_alloc): Rename ggc_call_alloc.
2935 (loc_descriptor): Rename make_loc_descriptor.
2936 (add_statistics): Rename ggc_add_statistics.
2937
2938 * ggc-common.c (saving_htab):
2939 Change type to hash_table. Update dependent calls and types.
2940
2941 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2942 (push_gimplify_context): Likewise.
2943 (pop_gimplify_context): Likewise.
2944 (struct gimple_temp_hash_elt): Added.
2945 (struct gimplify_hasher): Likewise.
2946 (struct gimplify_ctx.temp_htab):
2947 Change type to hash_table. Update dependent calls and types.
2948
2949 * gimple-fold.c: Include gimplify-ctx.h.
2950
2951 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2952 Change type to hash_table. Update dependent calls and types.
2953 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2954 avoid potential global name collision.
2955
2956 * gimplify.c: Include gimplify-ctx.h.
2957 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2958 (htab_t gimplify_ctx::temp_htab):
2959 Update dependent calls and types for new type hash_table.
2960 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2961 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2962
2963 * gimplify-ctx.h: New.
2964 (struct gimple_temp_hash_elt): Move from gimplify.c.
2965 (class gimplify_hasher): New.
2966 (struct gimplify_ctx): Move from gimple.h.
2967 (htab_t gimplify_ctx::temp_htab):
2968 Change type to hash_table. Update dependent calls and types.
2969
2970 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2971 (htab_t ivs_params::newivs_index):
2972 Change type to hash_table. Update dependent calls and types.
2973 (htab_t ivs_params::params_index): Likewise.
2974 (htab_t print_generated_program::params_index): Likewise.
2975 (htab_t gloog::newivs_index): Likewise.
2976 (htab_t gloog::params_index): Likewise.
2977
2978 * graphite.c: Include graphite-htab.h.
2979 4htab_t graphite_transform_loops::bb_pbb_mapping):
2980 Change type to hash_table. Update dependent calls and types.
2981
2982 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2983 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2984 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2985
2986 * graphite-dependences.c: Include graphite-htab.h.
2987 (loop_is_parallel_p): Change hash table type of parameter.
2988
2989 * graphite-htab.h: New.
2990 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2991 (extern find_pbb_via_hash): Move from graphite-poly.h.
2992 (extern loop_is_parallel_p): Move from graphite-poly.h.
2993 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2994
2995 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2996 (extern loop_is_parallel_p): Move to graphite-htab.h.
2997 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2998
2999 * haifa-sched.c (htab_t delay_htab):
3000 Change type to hash_table. Update dependent calls and types.
3001 (htab_t delay_htab_i2): Likewise.
3002
3003 * ira-color.c (htab_t allocno_hard_regs_htab):
3004 Change type to hash_table. Update dependent calls and types.
3005
3006 * ira-costs.c (htab_t cost_classes_htab):
3007 Change type to hash_table. Update dependent calls and types.
3008
3009 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3010 Change type to hash_table. Update dependent calls and types.
3011
3012 * loop-iv.c (htab_t bivs):
3013 Change type to hash_table. Update dependent calls and types.
3014
3015 * loop-unroll.c (htab_t opt_info::insns_to_split):
3016 Change type to hash_table. Update dependent calls and types.
3017 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3018
3019 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3020 (struct string_slot_hasher): New.
3021 (htab_t output_block::string_hash_table):
3022 Change type to hash_table. Update dependent calls and types.
3023
3024 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3025 (htab_t file_name_hash_table):
3026 Change type to hash_table. Update dependent calls and types.
3027
3028 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3029 calls and types.
3030
3031 * lto-streamer.c (htab_t tree_htab):
3032 Change type to hash_table. Update dependent calls and types.
3033
3034 * omp-low.c: Include gimplify-ctx.h.
3035
3036 * passes.c (htab_t name_to_pass_map):
3037 Change type to hash_table. Update dependent calls and types.
3038 (pass_traverse): Rename to passes_pass_traverse.
3039
3040 * plugin.c (htab_t event_tab):
3041 Change type to hash_table. Update dependent calls and types.
3042
3043 * postreload-gcse.c (htab_t expr_table):
3044 Change type to hash_table. Update dependent calls and types.
3045 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3046
3047 * sese.c (debug_rename_map_1): Make extern.
3048 (htab_t copy_bb_and_scalar_dependences::rename_map):
3049 Change type to hash_table. Update dependent calls and types.
3050
3051 * sese.h (extern debug_rename_map): Move to .c file.
3052
3053 * store-motion.c (htab_t store_motion_mems_table):
3054 Change type to hash_table. Update dependent calls and types.
3055
3056 * trans-mem.c (htab_t tm_new_mem_hash):
3057 Change type to hash_table. Update dependent calls and types.
3058
3059 * tree-browser.c (htab_t TB_up_ht):
3060 Change type to hash_table. Update dependent calls and types.
3061
3062 * tree-cfg.c (htab_t discriminator_per_locus):
3063 Change type to hash_table. Update dependent calls and types.
3064
3065 * tree-complex.c: Include tree-hasher.h
3066 (htab_t complex_variable_components):
3067 Change type to hash_table. Update dependent calls and types.
3068
3069 * tree-eh.c (htab_t finally_tree):
3070 Change type to hash_table. Update dependent calls and types.
3071
3072 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3073 struct int_tree_hasher.
3074 (extern int_tree_map_eq): Likewise.
3075 (uid_decl_map_hash): Removed.
3076 (extern decl_tree_map_eq): Likewise.
3077
3078 * tree-hasher.h: New.
3079 (struct int_tree_hasher): New.
3080 (typedef int_tree_htab_type): New.
3081
3082 * tree-inline.c: Include gimplify-ctx.h.
3083
3084 * tree-mudflap.c: Include gimplify-ctx.h.
3085
3086 * tree-parloops.c: Include tree-hasher.h.
3087 (htab_t eliminate_local_variables_stmt::decl_address):
3088 Change type to hash_table. Update dependent calls and types.
3089 (htab_t separate_decls_in_region::decl_copies): Likewise.
3090
3091 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3092 Change type to hash_table. Update dependent calls and types.
3093
3094 * tree-sra.c (candidates):
3095 Change type to hash_table. Update dependent calls and types.
3096
3097 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3098 in tree-flow.h.
3099 (int_tree_map_hash): Likewise.
3100
3101 * tree-ssa-dom.c (htab_t avail_exprs):
3102 Change type to hash_table. Update dependent calls and types.
3103
3104 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3105 Change type to hash_table. Update dependent calls and types.
3106
3107 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3108 Change type to hash_table. Update dependent calls and types.
3109
3110 * tree-ssa-phiopt.c (seen_ssa_names):
3111 Change type to hash_table. Update dependent calls and types.
3112
3113 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3114 Change type to hash_table. Update dependent calls and types.
3115
3116 * tree-ssa-uncprop.c (equiv):
3117 Change type to hash_table. Update dependent calls and types.
3118
c5a44004
JJ
31192013-04-25 Jakub Jelinek <jakub@redhat.com>
3120
3121 PR rtl-optimization/57003
3122 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3123 call note_stores with kill_clobbered_value callback again after
3124 killing regs_invalidated_by_call.
3125
09962a4a
JG
31262013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3127
3128 * config/aarch64/aarch64-simd.md
3129 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3130 (aarch64_simd_bsl<mode>): Likewise.
3131 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3132
ea28bb0b
MP
31332013-04-25 Marek Polacek <polacek@redhat.com>
3134
3135 PR tree-optimization/57066
3c21604f 3136 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3137
96659611
JG
31382013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3139
3140 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3141
9697e620
JG
31422013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3143
3144 * config/aarch64/aarch64-builtins.c
3145 (aarch64_fold_builtin): New.
3146 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3147 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3148 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3149 * config/aarch64/arm_neon.h
3150 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3151
0ac198d3
JG
31522013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3153 Tejas Belagod <tejas.belagod@arm.com>
3154
3155 * config/aarch64/aarch64-builtins.c
3156 (aarch64_gimple_fold_builtin): New.
3157 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3158 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3159 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3160 (addvv4sf): Update.
3161 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3162
58cff58c
N
31632013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3164
df93505e 3165 * config/aarch64/aarch64.md
58cff58c
N
3166 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3167
7e0228bf
N
31682013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3169
3170 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3171 (*ngcsi_uxtw): New pattern.
3172
5819f96f 31732013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3174 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3175
3176 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3177 (TB_DREG): Add T_V4HF.
3178 (v4hf_UP): New macro.
3179 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3180 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3181 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3182 built-ins.
df93505e 3183 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3184 (arm_vector_mode_supported_p): Handle V4HF.
3185 (arm_mangle_map): Handle V4HFmode.
3186 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3187 * config/arm/arm_neon_builtins.def: Add entries for
3188 vcvtv4hfv4sf, vcvtv4sfv4hf.
3189 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3190 (neon_vcvtv4hfv4sf): Likewise.
3191 * config/arm/neon-gen.ml: Handle half-precision floating point
3192 features.
3193 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3194 * config/arm/arm_neon.h: Regenerate.
3195 * config/arm/neon.ml (type elts): Add F16.
3196 (type vectype): Add T_float16x4, T_floatHF.
3197 (type vecmode): Add V4HF.
3198 (type features): Add Requires_FP_bit feature.
3199 (elt_width): Handle F16.
3200 (elt_class): Likewise.
3201 (elt_of_class_width): Likewise.
3202 (mode_of_elt): Refactor.
3203 (type_for_elt): Handle F16, fix error messages.
3204 (vectype_size): Handle T_float16x4.
3205 (vcvt_sh): New function.
3206 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3207 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3208 (string_of_mode): Handle V4HF.
3209 * doc/arm-neon-intrinsics.texi: Regenerate.
3210
1ef395e4
JG
32112013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3212
3213 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3214 format specifier in 'X' case.
3215
41c34e94
AM
32162013-04-25 Alan Modra <amodra@gmail.com>
3217
3218 PR target/57052
3219 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3220 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3221 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3222 Repeat for many other rotate/shift and mask patterns using subregs.
3223 Name lshiftrt insns.
3224 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3225 on WORDS_BIG_ENDIAN.
3226
b9a7eb5d
AM
32272013-04-25 Alan Modra <amodra@gmail.com>
3228
3229 * config.gcc: Support little-endian powerpc-linux targets.
3230 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3231 (LINK_OS_LINUX_SPEC): Define.
3232 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3233 Preserve MASK_LITTLE_ENDIAN.
3234 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3235 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3236 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3237 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3238 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3239 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3240 Correct fp word order for little-endian. Don't shift toc entries
3241 smaller than a word for little-endian.
3242 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3243 (bswapdi2 splits): Correct low-part subreg for little-endian.
3244 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3245 low/high where such is correct only for be.
3246 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3247 little-endian for -mcall-aixdesc.
3248
87f73374
AM
32492013-04-25 Alan Modra <amodra@gmail.com>
3250
3251 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3252 replace_equiv_address_nv.
3253
cabf91cd
AM
32542013-04-25 Alan Modra <amodra@gmail.com>
3255
3256 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3257
0ae24cc8
VM
32582013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3259
3260 Revert:
3261 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3262 * rtl.h (struct rtx_def): ...
cabf91cd 3263
77bce07c
VM
32642013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3265
3266 PR rtl-optimizations/57046
3267 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3268 for multi-reg splits.
3269
0db63e7f
L
32702013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3271
3272 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3273
3362b6b6
SA
32742013-04-24 Sterling Augustine <saugustine@google.com>
3275
3276 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3277 (comp_dir_string, debug_str_dwo_section): New.
3278 (DEBUG_STR_DWO_SECTION): Rename to ...
3279 (DEBUG_DWO_STR_SECTION): ... this.
3280 (DEBUG_NORM_STR_SECTION): Delete.
3281 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3282 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3283 (find_AT_string): Move most logic to ...
3284 (find_AT_string_in_table): ... here. New.
3285 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3286 add_skeleton_AT_string. Delete logic.
3287 (output_skeleton_debug_sections): Remove call to
3288 add_top_level_skeleton_die_attrs.
3289 (add_comp_dir_attribute): Move logic to comp_dir_string.
3290 (dwarf2out_init): Initialize debug_str_dwo_section.
3291 (output_indirect_string): Call find_string_form.
3292 (output_indirect_strings): Rewrite.
3293 (prune_unused_types): Empty skeleton_debug_str_hash.
3294 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3295 (dwarf2out_finish): Call output_indirect_strings.
3296
e93e18e9
PC
32972013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3298
3299 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3300
f6ce35ac
VM
33012013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3302
cabf91cd 3303 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
3304 (LRA_SUBREG_P): New macro.
3305 * recog.c (register_operand): Check LRA_SUBREG_P.
3306 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3307 stack frame.
3308 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3309 (lra_final_code_change): Skip subreg change for operators.
3310 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3311 if there are no operand changes.
3312 * lra-constraints.c (curr_insn_set): New.
3313 (match_reload): Set LRA_SUBREG_P.
3314 (emit_spill_move): Ditto.
3315 (check_and_process_move): Use curr_insn_set. Process only single
3316 set insns. Don't initialize sec_mem_p and change_p.
3317 (simplify_operand_subreg): Use LRA_SUBREG_P.
3318 (reg_in_class_p): New function.
3319 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3320 of #ifdef. Add code to remove cycling.
3321 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3322 non-null disp. Reload inner instead of disp when base and index
3323 are null. Try to put lo_sum into register.
3324 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 3325 (check_and_process_move): Move code for move cost check to
f6ce35ac 3326 simple_move_p. Remove equiv_substitution.
cabf91cd 3327 (simple_move_p): New function.
f6ce35ac
VM
3328 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3329 curr_insn_set. Call check_and_process_move only for single set
3330 insns. Use the new function. Move call of check_and_process_move
3331 after operand equiv substitution and address process.
3332
38047d90
JG
33332013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3334
3335 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3336 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3337 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3338
13f39b2e
PC
33392013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3340
3341 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3342
97c116dc
MP
33432013-04-24 Marek Polacek <polacek@redhat.com>
3344
3345 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3346 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3347 (select_loops_exit_conditions): Likewise.
3348 (number_of_iterations_for_all_loops): Likewise.
3349 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3350 (scev_analysis): Likewise.
3351
83082391
CM
33522013-04-02 Catherine Moore <clm@codesourcery.com>
3353 Chao-ying Fu <fu@mips.com>
3354
cabf91cd
AM
3355 * config/mips/micromips.md (jraddiusp): New pattern.
3356 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3357 instruction if possible.
83082391 3358
19e34aa2
AM
33592013-04-24 Alan Modra <amodra@gmail.com>
3360
3361 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3362
fdb6603c
JB
33632013-04-24 Julian Brown <julian@codesourcery.com>
3364 Chung-Lin Tang <cltang@codesourcery.com>
3365
3366 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
3367 dependency behavior in enumeration type DIE generation. Add TODO note
3368 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 3369
bf190e8d
LC
33702013-04-23 Lawrence Crowl <crowl@google.com>
3371
3372 * Makefile.in: Update as needed below.
3373
3374 * hash-table.h (class hash_table):
3375 Correct many methods with parameter types compare_type to the correct
3376 value_type. (Correct code was unlikely to notice the change.)
3377 (hash_table::elements_with_deleted) New.
3378 (class hashtable::iterator): New.
3379 (hashtable::begin()): New.
3380 (hashtable::end()): New.
3381 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3382
3383 * statistics.c (statistics_hashes):
3384 Change type to hash_table. Update dependent calls and types.
3385
3386 * tree-into-ssa.c (var_infos):
3387 Change type to hash_table. Update dependent calls and types.
3388
3389 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3390 Change type to hash_table. Update dependent calls and types.
3391
3392 * tree-ssa-loop-im.c (struct mem_ref.refs):
3393 Change type to hash_table. Update dependent calls and types.
3394
3395 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3396 Change type to hash_table. Update dependent calls and types.
3397
3398 * tree-ssa-sccvn.c (vn_tables_s::nary):
3399 Change type to hash_table. Update dependent calls and types.
3400 (vn_tables_s::phis): Likewise.
3401 (vn_tables_s::references): Likewise.
3402
3403 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3404 (vn_reference_eq): Update parameter and return types.
3405
3406 * tree-ssa-structalias.c (pointer_equiv_class_table):
3407 Change type to hash_table. Update dependent calls and types.
3408 (location_equiv_class_table): Likewise.
3409
3410 * tree-vect-data-refs.c: Consequential changes for making
3411 peeling a hash_table.
3412
3413 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3414 (destroy_loop_vec_info): Dependent hash_table update.
3415
3416 * tree-vectorizer.h (peeling_htab):
3417 Change type to hash_table. Update dependent calls and types.
3418
d70a81dd
SC
34192013-04-23 Shiva Chen <shiva0217@gmail.com>
3420
cabf91cd
AM
3421 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3422 to check the register content is equal or not.
3423 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3424 to assign register content record.
3425 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 3426 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
3427 * lra-int.h (struct lra_reg): Add offset member.
3428 (lra_reg_val_equal_p): New static inline function.
3429 (lra_update_reg_val_offset): New static inline function.
3430 (lra_assign_reg_val): New static inline function.
3431 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3432 to assign register content record.
3433 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 3434
b894a1f3
CM
34352013-04-23 Catherine Moore <clm@codesourcery.com>
3436
3437 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3438 operands. Record compression.
3439
ecd14de9
XDL
34402013-04-23 Xinliang David Li <davidxl@google.com>
3441
3442 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3443
92e776e9
RB
34442013-04-23 Richard Biener <rguenther@suse.de>
3445
3446 PR middle-end/57036
3447 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3448 parameter, only add abnormal goto edges from the copied body
3449 if the call could perform abnormal gotos.
3450 (copy_cfg_body): Adjust.
3451
a15ee567
SN
34522013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3453
3454 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3455
08c52234
AS
34562013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3457
3458 * coretypes.h (gimple_stmt_iterator): Add struct to make
3459 compatible with C.
3460
999c1171
RB
34612013-04-23 Richard Biener <rguenther@suse.de>
3462
3463 PR tree-optimization/57026
3464 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3465 from SSA names occuring in abnormal PHI nodes.
3466
53669259
AK
34672013-04-22 Andi Kleen <ak@linux.intel.com>
3468
3469 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3470
1a0ad150
AK
34712013-04-22 Andi Kleen <ak@linux.intel.com>
3472
3473 * lto/lto.c (print_lto_report_1): Declare early.
3474 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3475
057f8f20
AK
34762013-04-22 Andi Kleen <ak@linux.intel.com>
3477
3478 * common.opt (-flto-report-wpa): Add.
3479 * doc/invoke.texi (-flto-report-wpa): Add.
3480 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3481 (lto_main): dito.
3482
473b1e05
XDL
34832013-04-22 Xinliang David Li <davidxl@google.com>
3484
3485 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3486 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3487 * Makefile.in: New dependency
3488
cabf91cd 3489 David Daney <ddaney.cavm@gmail.com>
b1485a33 3490
cabf91cd
AM
3491 * configure.ac (gcc_cv_as_micromips_support): Use the
3492 --fatal-warnings option.
3493 * configure: Regenerate.
b1485a33 3494
829d0168
MP
34952013-04-22 Marek Polacek <polacek@redhat.com>
3496
3497 PR sanitizer/56990
3498 * tsan.c (instrument_expr): Don't instrument expression
3499 in case its size is zero.
3500
6d9b7208
UB
35012013-04-22 Uros Bizjak <ubizjak@gmail.com>
3502
3503 PR target/57032
3504 Revert:
3505 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3506
3507 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3508
ea679d55
JG
35092013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3510
3511 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3512 (gimple_stmt_iterator): New typedef.
3513 * gimple.h (gimple_stmt_iterator): Rename to...
3514 (gimple_stmt_iterator_d): ... This.
3515 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3516 trees be valid for GIMPLE and GENERIC.
3517 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3518 * gimple-fold.c (gimple_fold_call): Call target hook
3519 gimple_fold_builtin.
3520 * hooks.c (hook_bool_gsiptr_false): New.
3521 * hooks.h (hook_bool_gsiptr_false): New.
3522 * target.def (fold_stmt): New.
3523 * doc/tm.texi: Regenerate.
3524
88a581da
VM
35252013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3526
3527 PR target/57018
3528 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3529 a set sp if no stack realignment.
3530
92be22dc
NC
35312013-04-22 Nick Clifton <nickc@redhat.com>
3532
3533 * config.gcc (tilegx-linux): Extend extra_objs rather than
3534 overwriting it.
3535 (tilepro-linux): Likewise.
3536
0ddec79f
JG
35372013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3538
3539 * config/aarch64/aarch64-builtins.c
3540 (CF): Remove.
3541 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3542 (VAR<1-12>): Add MAP parameter.
3543 (BUILTIN_*): Likewise.
3544 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3545 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3546 (aarch64_ushl_n<mode>): Likewise.
3547 (aarch64_sshr_n<mode>): Likewise.
3548 (aarch64_ushr_n<mode>): Likewise.
3549 (aarch64_<maxmin><mode>): Likewise.
3550 (aarch64_sqrt<mode>): Likewise.
3551 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3552 (vshr<q>_n_*): Likewise.
3553
0050faf8
JG
35542013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3555
3556 * config/aarch64/aarch64-builtins.c
3557 (aarch64_simd_builtin_type_mode): Handle SF types.
3558 (sf_UP): Define.
3559 (BUILTIN_GPF): Define.
3560 (aarch64_init_simd_builtins): Handle SF types.
3561 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3562 (frecps): Likewise.
3563 (frecpx): Likewise.
3564 * config/aarch64/aarch64-simd.md
3565 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3566 (aarch64_frecpe<mode>): New.
3567 (aarch64_frecps<mode>): Likewise.
3568 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3569 (v8type): Add frecp<esx>.
3570 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3571 (aarch64_frecps<mode>): Likewise.
3572 * config/aarch64/iterators.md (FRECP): New.
3573 (frecp_suffix): Likewise.
3574 * config/aarch64/arm_neon.h
3575 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3576
0fad3dbc 35772013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
3578
3579 PR target/56995
3580 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3581 (REG_CLASS_NAMES): Idem.
3582 (REG_CLASS_CONTENTS): Idem.
3583 (REGCLASS_HAS_FP_REG): Idem.
3584 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3585 (sh_conditional_register_usage): Idem.
3586
3e8a33f9
JL
35872013-04-21 Jeff Law <law@redhat.com>
3588
3589 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3590 (ssa_forward_propagate_and_combine): Use it.
3591
f38e1b0a
VM
35922013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3593
3594 * lra.c: Update the flow chart diagram.
3595
682303da
VM
35962013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3597
3598 PR rtl-optimization/56847
3599 * lra-constraints.c (process_alt_operands): Discourage alternative
3600 with non-matche doffsettable memory constraint fro memory with
3601 known offset.
3602
f6b64c35
RB
36032013-04-19 Richard Biener <rguenther@suse.de>
3604
3605 PR tree-optimization/56982
3606 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3607 function.
3608 * gimplify.c (gimplify_call_expr): Notice special calls.
3609 (gimplify_modify_expr): Likewise.
3610 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3611 abnormal control flow receivers.
3612 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3613 in the same way as cfun->has_nonlocal_labels.
3614 (gimple_purge_dead_abnormal_call_edges): Likewise.
3615 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3616 receivers start a basic-block.
3617
01d8bf07
RB
36182013-04-19 Richard Biener <rguenther@suse.de>
3619
3620 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3621 member ...
3622 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3623 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3624 (SLP_TREE_LOAD_PERMUTATION): Add.
3625 (vect_transform_slp_perm_load): Adjust prototype.
3626 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3627 (vect_free_slp_instance): Likewise.
3628 (vect_create_new_slp_node): Likewise.
3629 (vect_supported_slp_permutation_p): Remove.
3630 (vect_slp_rearrange_stmts): Adjust.
3631 (vect_supported_load_permutation_p): Likewise. Inline
3632 vect_supported_slp_permutation_p here.
3633 (vect_analyze_slp_instance): Compute load permutations per
3634 slp node instead of per instance.
3635 (vect_get_slp_defs): Adjust.
3636 (vect_transform_slp_perm_load): Likewise.
3637 (vect_schedule_slp_instance): Remove redundant code.
3638 (vect_schedule_slp): Remove hack for PR56270, add it ...
3639 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3640 CSE loads for SLP. Adjust.
3641
ede22fc3
GY
36422013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3643
3644 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3645 spelling in two comments.
3646
67bc84fb
GY
36472013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3648
3649 PR target/56797
3650 * config/arm/arm.c (load_multiple_sequence): Require SP
3651 as base register for loads if SP is in the register list.
3652
e248d83f
MJ
36532013-04-19 Martin Jambor <mjambor@suse.cz>
3654
3655 PR tree-optimization/56718
3656 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3657 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3658 and made public. Adjusted all callers.
3659 (ipa_intraprocedural_devirtualization): New function.
3660 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3661 (ipa_intraprocedural_devirtualization): Likewise.
3662 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3663
4891e8f8
RB
36642013-04-19 Richard Biener <rguenther@suse.de>
3665
3666 PR tree-optimization/57000
3667 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3668
dad89f7c
TG
36692013-04-19 Terry Guo <terry.guo@arm.com>
3670
3671 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3672 Replace with ...
3673 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3674 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3675 (cortex_m4_fmacs): Use new reservations.
3676 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3677
72ea0d47
VM
36782013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3679
f1e6512c 3680 PR rtl-optimization/56999
72ea0d47
VM
3681 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3682 related code.
3683 (lra_coalesce): Remove split_origin_bitmap and related code.
3684 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3685 ranges if necessary.
3686
780a5b71
UB
36872013-04-18 Uros Bizjak <ubizjak@gmail.com>
3688
3689 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3690 New array.
3691 (ix86_expand_call): Remove clobbered_registers array and use
3692 x86_64_ms_sysv_extra_clobbered_registers instead.
3693 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3694 Declare here.
3695 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3696 predicate.
3697 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3698 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3699 (*call_value_rex64_ms_sysv): Ditto.
3700
6f5a366a
CC
37012013-04-18 Cary Coutant <ccoutant@google.com>
3702
3703 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3704 parent instead of die_mark.
3705
475b8f37
DN
37062013-04-18 Diego Novillo <dnovillo@google.com>
3707
3708 * gimple.c (create_gimple_tmp): New.
3709 (get_expr_type): New.
3710 (build_assign): New.
3711 (build_type_cast): New.
3712 * gimple.h (enum ssa_mode): Define.
3713 (gimple_seq_set_location): New.
3714 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 3715 to use build_assign and build_type_cast.
475b8f37 3716
08940f33
RB
37172013-04-18 Richard Biener <rguenther@suse.de>
3718
3719 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3720 handle negative step. Remove redundant checks.
3721 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3722 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3723 for negative step and grouped loads fail to vectorize.
3724
0e0f87d4
SB
37252013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3726
3727 * emit-rtl.c (reset_insn_used_flags): New function.
3728 (reset_all_used_flags): Use it.
3729 (verify_insn_sharing): New function.
3730 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3731
4c445590
JJ
37322013-04-18 Jakub Jelinek <jakub@redhat.com>
3733
3734 PR tree-optimization/56984
3735 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3736 and (x >> M) >= N don't register any assertion if N << M is the
3737 minimum value.
3738
6873ecab
SB
37392013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3740
3741 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3742 do not delete_insn insns that have not yet been emitted, only
3743 unlink them with remove_insn.
3744 * df-scan.c (df_insn_delete): Revert r197492.
3745
3ccb989e
SB
37462013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3747
3748 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3749 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3750
37512013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
3752
3753 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3754 define_insn_and_split.
3755 (and_scc,ior_scc,negscc): Likewise.
3756 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3757
3ccb989e 37582013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
3759
3760 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3761 can benefit from using a sequence of LDRD instructions in epilogue
3762 instead of a single LDM instruction.
3763
6d10a203
MLI
37642013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3765
3766 PR 45688
3767 * doc/extend.texi: Fix typo.
3768
6983e6b5
RB
37692013-04-17 Richard Biener <rguenther@suse.de>
3770
3771 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3772 (vect_build_slp_tree): ... here.
3773 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3774 match. Remove special-casing of mismatched complex loads.
3775 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3776 re-try the match with swapped commutative operands.
3777 (vect_supported_load_permutation_p): Remove special-casing of
3778 mismatched complex loads.
3779 (vect_analyze_slp_instance): Adjust.
3780
ef23e6a2
RB
37812013-04-17 Richard Biener <rguenther@suse.de>
3782
3783 PR rtl-optimization/56921
3784 * cfgloop.h (struct loop): Add simple_loop_desc member.
3785 (struct niter_desc): Mark with GTY(()).
3786 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3787 * loop-iv.c (get_simple_loop_desc): Likewise.
3788 (free_simple_loop_desc): Likewise.
3789
3790 Revert
3791 2013-04-16 Richard Biener <rguenther@suse.de>
3792
3793 PR rtl-optimization/56921
3794 * loop-init.c (pass_rtl_move_loop_invariants): Add
3795 TODO_do_not_ggc_collect to todo_flags_finish.
3796 (pass_rtl_unswitch): Same.
3797 (pass_rtl_unroll_and_peel_loops): Same.
3798 (pass_rtl_doloop): Same.
3799
fc6f94f5
EB
38002013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3801
3802 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3803 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3804 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3805 references.
3806 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3807 * tree-streamer.c (record_common_node): Adjust reference in comment.
3808
10a88311
TG
38092013-04-17 Terry Guo <terry.guo@arm.com>
3810
3811 * config/arm/cortex-m4.md: Add a new bypass.
3812
6d9b7208 38132013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
3814
3815 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3816 New pattern.
3817 (*subs_<optab><mode>_multp2): New pattern.
3818 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3819 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3820
6d9b7208 38212013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
3822
3823 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3824 (*subs_mul_imm_<mode>): New pattern.
3825
18a6701e
DE
38262013-04-16 David Edelsohn <dje.gcc@gmail.com>
3827
3828 PR target/56948
3829 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3830 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3831 (vsx_movti_32bit): Change j->wa to O->wa.
3832
07c37b2f
RB
38332013-04-16 Richard Biener <rguenther@suse.de>
3834
3835 PR rtl-optimization/56921
3836 * loop-init.c (pass_rtl_move_loop_invariants): Add
3837 TODO_do_not_ggc_collect to todo_flags_finish.
3838 (pass_rtl_unswitch): Same.
3839 (pass_rtl_unroll_and_peel_loops): Same.
3840 (pass_rtl_doloop): Same.
3841
0e0f87d4 38422013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
3843
3844 * config/arm/arm.c (emit_multi_reg_push): New declaration
3845 for an existing function.
3846 (arm_emit_strd_push): New function.
3847 (arm_expand_prologue): Used here.
3848 (arm_emit_ldrd_pop): New function.
3849 (arm_expand_epilogue): Used here.
3850 (arm_get_frame_offsets): Update condition.
3851 (arm_emit_multi_reg_pop): Add a special case for load of a single
3852 register with writeback.
3853
5e8e2af4
UB
38542013-04-16 Uros Bizjak <ubizjak@gmail.com>
3855
3856 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3857 description.
3858
9fd9ccf7
RB
38592013-04-16 Richard Biener <rguenther@suse.de>
3860
3861 PR tree-optimization/56756
3862 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3863 (first_mem_ref_loc): New.
3864 (execute_sm): Place the load temporarily before a previous
3865 access instead of in the latch edge to ensure its SSA dependencies
3866 are defined at points dominating the load.
3867
96fba521
SB
38682013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3869
4c8af858
SB
3870 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3871 correct fix by moving header and footer insn to the footer of
3872 the merged basic block. Clear BB_END of the merged-away block.
3873
96fba521
SB
3874 PR middle-end/43631
3875 * emit-rtl.c (make_note_raw): New function.
3876 (link_insn_into_chain): New static inline function.
3877 (add_insn): Use it.
3878 (add_insn_before, add_insn_after): Factor insn chain linking code...
3879 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3880 using link_insn_into_chain.
3881 (note_outside_basic_block_p): New helper function for emit_note_after
3882 and emit_note_before.
3883 (emit_note_after): Use nobb variant of add_insn_after if the note
3884 should not be contained in a basic block.
3885 (emit_note_before): Use nobb variant of add_insn_before if the note
3886 should not be contained in a basic block.
3887 (emit_note_copy): Use make_note_raw.
3888 (emit_note): Likewise.
3889 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3890 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3891 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3892 the moved barrier the tail of the basic block it follows.
3893 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3894
7b8265ba
JJ
38952013-04-15 Jakub Jelinek <jakub@redhat.com>
3896
3897 PR tree-optimization/56962
3898 * gimple-ssa-strength-reduction.c (record_increment): Only set
3899 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3900 either rhs1 or rhs2 is equal to c->base_expr.
3901
5185d248
RB
39022013-04-15 Richard Biener <rguenther@suse.de>
3903
3904 PR tree-optimization/56933
3905 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3906 member.
3907 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3908 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3909 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3910 dependence check ...
3911 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3912 ... here.
3913 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3914 GROUP_READ_WRITE_DEPENDENCE.
3915
a24243a0
AK
39162013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3917
3918 * emit-rtl.c (reset_all_used_flags): New function.
3919 (verify_rtl_sharing): Call reset_all_used_flags before and after
3920 performing the checks.
3921
1c50eada
KT
39222013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3923
3924 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3925 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3926 * config/arm/constraints.md (De): New constraint.
3927 * config/arm/neon.md (anddi3_neon): Delete.
3928 (neon_vand<mode>): Expand to standard anddi3 pattern.
3929 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3930 Move earlier in the file.
3931 (neon_inv_logic_op2): Likewise.
3932 (arm_anddi_operand_neon): New predicate.
3933
e927b6ad
RO
39342013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3935
3936 * configure.ac (gcc_cv_ld_as_needed): Set
3937 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3938 Use -z ignore, -z record on *-*-solaris2*.
3939 (HAVE_LD_AS_NEEDED): Update comment.
3940 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3941 * configure: Regenerate.
3942 * config.in: Regenerate.
3943 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3944 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3945 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3946 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3947 equivalents. Fix markup.
3948 * doc/tm.texi: Regenerate.
3949
e0ea8797
AH
39502013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3951
3952 * config/i386/i386.opt: New option mstack-protector-guard=.
3953 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3954 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3955 TARGET_SSP_TLS_GUARD.
3956 * config/i386/i386.c (ix86_option_override_internal): Set
3957 ix86_stack_protector_guard.
3958 * config/i386/i386.md (stack_protect_set): Enable for
3959 TARGET_SSP_TLS_GUARD only.
3960 (stack_protect_set_<mode>): Ditto.
3961 (stack_protect_test): Ditto.
3962 (stack_protect_test_<mode>): Ditto.
3963 * doc/invoke.texi (i386 Option): Document.
3964
811b72f9
EB
39652013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3966
3967 PR target/56890
3968 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3969 (S_MODES): Set H_MODE bit.
3970 (SF_MODES): Set only S_MODE and SF_MODE bits.
3971 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3972 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3973 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3974 <MODE_FLOAT>: Likewise.
3975
5529fdd6
JY
39762013-04-15 Joey Ye <joey.ye@arm.com>
3977
3978 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3979
517b1da2
JY
39802013-04-15 Joey Ye <joey.ye@arm.com>
3981
3982 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3983 for real far jump.
3984 (thumb_far_jump_used_p): Count instruction size and set
3985 far_jump_used.
3986
01007ae0
EB
39872013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3988
3989 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3990 * resource.c (mark_target_live_regs): Reformat conditional block.
3991
c46f6580
SB
39922013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3993
3994 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3995 notes, they are emitted only just before final.
3996 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3997
1f397f45
SB
39982013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3999
4000 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4001 * cfgrtl.c (delete_insn): Call it here instead.
4002 * lra-spills.c (lra_final_code_change): Use delete_insn.
4003 * haifa-sched.c (sched_remove_insn): Likewise.
4004 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4005 returning to the nop pool.
4006 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4007 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4008
58a51369
SB
40092013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4010
4011 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4012 * doc/tm.texi: Regenerated.
4013
33159866
UB
40142013-04-12 Uros Bizjak <ubizjak@gmail.com>
4015
4016 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4017 QImode checks.
4018
226e378f
SB
40192013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4020
4021 * df-core.c (df_find_def): Compare register numbers.
4022 (df_find_use): Likewise.
4023
fafb9b18
VM
40242013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4025
4026 PR target/56903
4027 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4028 lra_in_progress for return.
4029
9a946fd6
GY
40302013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4031
4032 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4033 define_insn into define_insn_and_split and emit movsicc patterns.
4034
41b83758
GY
40352013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4036
4037 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4038
d3afd9aa
RB
40392013-04-12 Richard Biener <rguenther@suse.de>
4040
4041 * tree-pass.h (TODO_do_not_ggc_collect): New.
4042 * passes.c (execute_one_ipa_transform_pass): Honor
4043 TODO_do_not_ggc_collect.
4044 (execute_one_pass): Likewise.
4045
4046 Revert
4047 2013-04-10 Richard Biener <rguenther@suse.de>
4048
4049 * passes.c (init_optimization_passes): Remove reload pass.
4050 * ira.c (do_reload): Merge into ...
4051 (ira): ... this.
4052 (rest_of_handle_reload): Remove.
4053 (pass_reload): Likewise.
4054 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4055 of reload for vzeroupper pass placement.
4056
06f9b387
JJ
40572013-04-12 Jakub Jelinek <jakub@redhat.com>
4058
4059 PR tree-optimization/56918
4060 PR tree-optimization/56920
4061 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4062 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4063 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4064 use wide_mul_with_sign method.
4065
953094d2
RB
40662013-04-12 Richard Biener <rguenther@suse.de>
4067
4068 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4069 not be considered a gimple constant.
4070
bb506982
MG
40712013-04-12 Marc Glisse <marc.glisse@inria.fr>
4072
4073 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4074 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4075 operations.
4076
4b84d650
JJ
40772013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4078 Jakub Jelinek <jakub@redhat.com>
4079
4080 * opts.c: Include diagnostic-color.h.
4081 (common_handle_option): Handle OPT_fdiagnostics_color_.
4082 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4083 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4084 (diagnostic-color.o): New.
4085 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4086 (diagnostic_color_rule): New enum.
4087 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4088 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4089 the location string.
4090 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4091 either NULL, or color kind.
4092 * diagnostic-color.c: New file.
4093 * diagnostic-color.h: New file.
4094 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4095 arguments.
4096 * doc/invoke.texi (-fdiagnostics-color): Document.
4097 * pretty-print.h (pp_show_color): Define.
4098 (struct pretty_print_info): Add show_color field.
4099 * diagnostic.c: Include diagnostic-color.h.
4100 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4101 macros. Colorize error:, warning: etc. strings and also the location
4102 string.
4103 (diagnostic_show_locus): Colorize the caret line.
4104 * pretty-print.c: Include diagnostic-color.h.
4105 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4106 inside of %< %> quotes or quoted through q format modifier.
4107
067a1e71
AK
41082013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4109
33159866 4110 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4111
33159866 41122013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4113
4114 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4115 code in CC_NZ mode.
4116 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4117 pattern.
4118
7b55f98f
MP
41192013-04-11 Marek Polacek <polacek@redhat.com>
4120
4121 PR tree-optimization/48184
33159866 4122 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4123
966b587e
EB
41242013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4125
4126 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4127 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4128 (skip_simple_arithmetic): Tidy up.
4129 * tree.h (skip_simple_constant_arithmetic): Declare.
4130
33159866 41312013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4132
4133 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4134
1d42c1ec
RB
41352013-04-11 Richard Biener <rguenther@suse.de>
4136
4137 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4138 generate vector constants.
4139
4ba5ea11
RB
41402013-04-11 Richard Biener <rguenther@suse.de>
4141
4142 PR tree-optimization/56878
4143 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4144 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4145 New function.
4146 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4147 Prefer to align the DR with the most invariant base address.
4148
f0defe58
SKS
41492013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4150
4151 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4152 comment.
4153
d07458be
JG
41542013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4155
4156 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4157 floating-point vector comparisons against 0.
4158
146b8692
JJ
41592013-04-11 Jakub Jelinek <jakub@redhat.com>
4160
4161 PR tree-optimization/56899
4162 * fold-const.c (extract_muldiv_1): Apply distributive law
4163 only if TYPE_OVERFLOW_WRAPS (ctype).
4164
b8578ff7
BC
41652013-04-11 Bin Cheng <bin.cheng@arm.com>
4166
4167 PR target/56124
4168 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4169 loading has side effect.
4170
0ea8a6f9
SB
41712013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4172
4173 * config/sparc/sparc.c: Include tree-pass.h.
4174 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4175 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4176 head of file. Change return type. Split off gate function.
4177 (sparc_gate_work_around_errata): New function.
4178 (pass_work_around_errata): New pass definition.
4179 (insert_pass_work_around_errata) New pass insert definition to
4180 insert pass_work_around_errata just after delayed-branch scheduling.
4181 (sparc_option_override): Insert the pass.
4182 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4183
42e37616
DM
41842013-04-10 David S. Miller <davem@davemloft.net>
4185
89deeb3b
DM
4186 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4187 or -mcpu=hypersparc.
4188
42e37616
DM
4189 * target.def (cstore_mode): New hook.
4190 * target.h: Include insn-codes.h
4191 * targhooks.c: Likewise.
4192 (default_cstore_mode): New function.
4193 * targhooks.h: Declare it.
4194 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4195 * doc/tm.texi: Rebuild.
4196 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4197 target hook, rather than inspecting the insn_data.
4198 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4199 (TARGET_CSTORE_MODE): Redefine.
4200 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4201 result patterns.
4202 * config/sparc/predicates.md (cstore_result_operand): New special
4203 predicate.
4204 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4205 Use it for operand 0.
4206 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4207 (*snesi_special): Likewise.
4208 (*snesi_zero): Likewise.
4209 (*seqsi_zero): Likewise.
4210 (*sltu_insn): Likewise.
4211 (*sgeu_insn): Likewise.
4212 (*seqdi_special): Make operand 0 and comparison operation be of
4213 DImode.
4214 (*snedi_special): Likewise.
4215 (*snedi_special_vis3): Likewise.
4216 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4217 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4218 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4219 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4220 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4221 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4222 (*sltu_extend_sp64): Likewise.
4223 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4224 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4225 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4226 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4227 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4228
95ca411e
YZ
42292013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4230
4231 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4232 (aarch64_start_file): Use the new function.
4233
6782438d 42342013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 4235 Jason Merrill <jason@redhat.com>
6782438d
SKS
4236
4237 * common.opt: Add -gdwarf.
4238 * opts.c (common_handle_option): Handle it.
4239 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4240
bb313b93
RB
42412013-04-10 Richard Biener <rguenther@suse.de>
4242
4243 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4244 (execute_one_ipa_transform_pass): But unconditionally here.
4245 (execute_one_pass): And here.
4246 (init_optimization_passes): Remove reload pass.
4247 * tree-pass.h (TODO_ggc_collect): Remove.
4248 (pass_reload): Likewise.
4249 * ira.c (do_reload): Merge into ...
4250 (ira): ... this.
4251 (rest_of_handle_reload): Remove.
4252 (pass_reload): Likewise.
4253 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4254 of reload for vzeroupper pass placement.
4255 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4256 and todo_flags_finish of all passes.
4257
793d9a16
RB
42582013-04-10 Richard Biener <rguenther@suse.de>
4259
4260 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4261 first_const_oprnd field, rename first_def_type to first_op_type.
4262 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4263 (vect_get_and_check_slp_defs): Always use the type of the
4264 operand. Allow mixed vect_external_def, vect_constant_def types.
4265 (vect_get_constant_vectors): Handle mixed vect_external_def,
4266 vect_constant_def types.
4267
ee8a9b7b
JR
42682013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4269
4270 PR tree-optimization/55524
4271 * tree-ssa-math-opts.c
4272 (convert_mult_to_fma): Don't use an fms construct
4273 when we don't have an fms operation, but fnma, and it looks
4274 likely that we'll be able to use the latter.
4275
6957a6f6
ZZ
42762013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4277
4278 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4279 function.
4280 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4281 inline fail caused by overwritable functions.
4282
34ab4a5b
CJW
42832013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4284
4285 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4286 unnecessary bits in the constant power of two case.
4287
abf9bfbc
RB
42882013-04-10 Richard Biener <rguenther@suse.de>
4289
4290 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4291 broken code swapping operands.
4292 (vect_build_slp_tree): Do not compute load permutations here.
4293 (vect_analyze_slp_instance): Compute load permutations here,
4294 after building the SLP tree.
4295
f408477e
CB
42962013-04-09 Christian Bruel <christian.bruel@st.com>
4297
4298 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4299 of next/prev_real_insn.
4300
5ac42672
JH
43012013-04-09 Jan Hubicka <jh@suse.cz>
4302
abf9bfbc
RB
4303 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4304 Drop aliased parameter.
5ac42672
JH
4305 (function_and_variable_visibility): Do not handle alias pairs.
4306 * cgraph.c (varpool_externally_visible_p): Update prototype.
4307 * varpool.c (varpool_add_new_variable): Update.
4308
5017f1d2
KT
43092013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4310
4311 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4312
48eecbee
SB
43132013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4314
a949cf1c
SB
4315 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4316
48eecbee
SB
4317 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4318
75ef8e3d
MP
43192013-04-09 Marek Polacek <polacek@redhat.com>
4320
4321 PR tree-optimization/48762
33159866 4322 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 4323
23847df4
RB
43242013-04-09 Richard Biener <rguenther@suse.de>
4325
4326 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4327 dealing with cost.
4328 (vect_build_slp_tree): Likewise.
4329 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4330 calculating the cost of a SLP instance.
4331 (vect_analyze_slp_instance): Use it from here, after building
4332 the SLP tree.
4333
ea3a0fde
JJ
43342013-04-09 Jakub Jelinek <jakub@redhat.com>
4335
4336 PR middle-end/56883
4337 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4338 expand_omp_for_static_chunk): Use simple_p = true in
4339 force_gimple_operand_gsi calls when assigning to addressable decls.
4340
a32dfe9d
JL
43412013-04-09 Jeff Law <law@redhat.com>
4342
4343 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4344 when the boolean was created by converting a wider object which
4345 had a boolean range.
4346
d755c7ef
RB
43472013-04-09 Richard Biener <rguenther@suse.de>
4348
4349 * tree-vectorizer.h (slp_void_p): Remove.
4350 (slp_tree): Typedef before _slp_tree declaration.
4351 (struct _slp_tree): Use a vector of slp_tree as children.
4352 (vect_get_place_in_interleaving_chain): Remove.
4353 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4354 Move ...
4355 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4356 and make static.
4357 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4358 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4359 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4360 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4361 Use slp_node instead of slp_void_p and adjust.
4362
3d741091
RB
43632013-04-09 Richard Biener <rguenther@suse.de>
4364
4365 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4366 work that is not necessary.
4367
39307ba7
JJ
43682013-04-09 Jakub Jelinek <jakub@redhat.com>
4369
4370 PR tree-optimization/56854
4371 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4372 forward into clobber stmts if it would change MEM_REF lhs into
4373 non-MEM_REF.
4374
343881fd
MK
43752013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4376
4377 * tree.c (type_hash_lookup, type_hash_add): Make static.
4378 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4379
3922658a
RB
43802013-04-09 Richard Biener <rguenther@suse.de>
4381
4382 * tree.h (unsave_expr_now): Remove.
4383 * tree-inline.c (mark_local_for_remap_r): Remove.
4384 (unsave_expr_1): Likewise.
4385 (unsave_r): Likewise.
4386 (unsave_expr_now): Likewise.
4387 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4388 (propagate_tree_value): Likewise.
4389
9fb6b620
SB
43902013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4391
4392 * doc/rtl.texi (sequence): Rewrite documentation to match the
4393 current use of SEQUENCE rtl objects.
4394 * rtl.def (SEQUENCE): Likewise.
4395
4396 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4397 Update documentation.
4398 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4399 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4400
4401 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4402
8ddb5a29
TJ
44032013-04-08 Teresa Johnson <tejohnson@google.com>
4404
4405 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4406 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 4407 methods.
8ddb5a29
TJ
4408 (estimate_edge_size_and_time): Add comment to suggest using rounding
4409 methods.
4410 (estimate_node_size_and_time): Ditto.
4411 (remap_edge_change_prob): Use helper rounding divide methods.
4412 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4413 (gimple_mod_pow2_value_transform): Ditto.
4414 (gimple_mod_subtract_transform): Ditto.
4415 (gimple_ic_transform): Ditto.
4416 (gimple_stringops_transform): Ditto.
4417 * stmt.c (conditional_probability): Ditto.
4418 (emit_case_dispatch_table): Ditto.
4419 * lto-cgraph.c (merge_profile_summaries): Ditto.
4420 * tree-optimize.c (execute_fixup_cfg): Ditto.
4421 * cfgcleanup.c (try_forward_edges): Ditto.
4422 * cfgloopmanip.c (scale_loop_profile): Ditto.
4423 (loopify): Ditto.
4424 (duplicate_loop_to_header_edge): Ditto.
4425 (lv_adjust_loop_entry_edge): Ditto.
4426 * tree-vect-loop.c (vect_transform_loop): Ditto.
4427 * profile.c (compute_branch_probabilities): Ditto.
4428 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4429 * lto-streamer-in.c (input_cfg): Ditto.
4430 * gimple-streamer-in.c (input_bb): Ditto.
4431 * ipa-cp.c (update_profiling_info): Ditto.
4432 (update_specialized_profile): Ditto.
4433 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4434 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 4435 rounding methods.
8ddb5a29
TJ
4436 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4437 (compute_trg_info): Ditto.
4438 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4439 (purge_dead_edges): Ditto.
4440 * loop-unswitch.c (unswitch_loop): Ditto.
4441 * cgraphclones.c (cgraph_clone_edge): Ditto.
4442 (cgraph_clone_node): Ditto.
4443 * tree-inline.c (copy_bb): Ditto.
4444 (copy_edges_for_bb): Ditto.
4445 (initialize_cfun): Ditto.
4446 (copy_cfg_body): Ditto.
4447 (expand_call_inline): Ditto.
4448
661e6bd7
KT
44492013-04-08 Kai Tietz <ktietz@redhat.com>
4450
4451 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4452 TARGET_CYGWIN64 by TARGET_64BIT.
4453
105766f3
JR
44542013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4455
4456 * config/epiphany/epiphany.md (GPR_1): New constant.
4457 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4458 * config/epiphany/epiphany.c (gen_compare_reg):
4459 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4460 is already in place.
4461 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4462 Don't require being called during rtl expansion; If y operlaps r0,
4463 return 0.
4464 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4465 (epiphany_expand_epilogue): Likewise.
4466
8afab237
JR
4467 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4468 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 4469 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 4470
fa7707d6
JR
4471 * config/epiphany/constraints.md (CnL): New constraint.
4472 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4473 * config/epiphany/predicates.md (add_operand): Allow 1024.
4474
5138e18d
JR
4475 * config/epiphany/epiphany.md (logical_op): New code iterator.
4476 (op_mnc): New code attribute.
4477 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4478 (mov_f+1, mov_f+2): New peephole2 patterns.
4479
2ccc703d
JR
4480 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4481 (cstoresi4): Also allow re-use of zero result when doing a NE
4482 comparison to a non-zero operand.
aefb0819 4483 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 4484
093ac0a5
JR
4485 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4486 Use gen_addsi3_i / gen_subsi3_i.
4487
f223bb13
JJ
44882013-04-08 Jakub Jelinek <jakub@redhat.com>
4489
4490 PR c++/34949
4491 PR c++/50243
4492 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4493 contain anything but clobbers, at most one __builtin_stack_restore,
4494 optionally debug stmts and final resx, and if it has at least one
4495 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4496 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4497 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4498 which isn't defaut definition, remove them.
4499 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4500 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4501 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4502 with MEM_REF LHS with SSA_NAME address.
4503
4481581f
JL
45042013-04-08 Jeff Law <law@redhat.com>
4505
4506 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 4507
451dabda
RB
45082013-04-08 Richard Biener <rguenther@suse.de>
4509
4510 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4511 extra newline.
4512 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4513 determined vector type.
4514 (vect_analyze_data_refs): Likewise.
4515 (vect_get_new_vect_var): Adjust.
4516 (vect_create_destination_var): Preserve SSA name versions.
4517 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4518 not dump anything here.
4519
3b088b47
JR
45202013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4521
4522 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4523 Add member lr_slot_known.
4524 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4525 if necessary.
4526 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4527 Remove code that sets lr_slot_offset according to what a previous
4528 version of epiphany_emit_save_restore used to do.
4529 (epiphany_emit_save_restore): When doing an lr save or restore,
4530 set/verify lr_slot_known and lr_slot_offset.
4531
d8484d41
XQ
45322013-04-08 Xinyu Qi <xyqi@marvell.com>
4533
33159866
UB
4534 PR target/54338
4535 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
4536 in ALL_REGS.
4537
481be1c4
RB
45382013-04-08 Richard Biener <rguenther@suse.de>
4539
4540 * alias.c (find_base_term): Fix thinko in previous change.
4541
401f3a81
JJ
45422013-04-08 Jakub Jelinek <jakub@redhat.com>
4543
4544 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4545 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4546 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4547 if possible to compute val.
4548 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4549 For QImode integers don't require anything about precision. Use
4550 const_with_all_bytes_same to find out if the constant doesn't have
4551 repeated bytes in it.
4552
03ed99a8
AK
45532013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4554
4555 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4556 within mode size.
4557
781b2e62
MP
45582013-04-08 Marek Polacek <polacek@redhat.com>
4559
4560 PR rtl-optimization/48182
4561 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4562 value to 1.
4563
27e430a2
JDA
45642013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4565
4566 PR target/55487
4567 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4568 nuses, make sure we have a label.
4569
4902aa64
BS
45702013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4571
4572 PR target/56843
4573 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4574 (rs6000_emit_swdiv_low_precision): Remove.
4575 (rs6000_emit_swdiv): Rewrite to handle between one and four
4576 iterations of Newton-Raphson generally; modify required number of
4577 iterations for some cases.
4578 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4579
7bca81dc
SB
45802013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4581
4582 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4583 set-but-unused variable.
4584
4585 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4586 basic blocks of released function bodies garbage-collectable.
4587
4588 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4589 (struct rtl_opt_pass): Add TODO_df_finish.
4590
4591 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4592
4542a38a
GY
45932013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4594
4595 * config/arm/constraints.md (q): New constraint.
4596 * config/arm/ldrdstrd.md: New file.
4597 * config/arm/arm.md (ldrdstrd.md) New include.
4598 (arm_movdi): Use "q" instead of "r" constraint
4599 for double-word memory access.
4600 (movdf_soft_insn): Likewise.
4601 * config/arm/vfp.md (movdi_vfp): Likewise.
4602 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 4603 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
4604 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4605 (mem_ok_for_ldrd_strd): Likewise.
4606 (output_move_double): Update assertion.
4607
2385b218
GY
46082013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4609
4610 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4611
75fe1cb5
GY
46122013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4613
4614 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4615 define_insn_and_split.
4616 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4617
dd660e8e
GY
46182013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4619
4620 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4621 define_insn_and_split.
33159866 4622 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
4623 (shiftsi3_compare): New pattern.
4624 (rrx): New pattern.
4625 * config/arm/unspecs.md (UNSPEC_RRX): New.
4626
045e472c
GY
46272013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4628
4629 * config/arm/arm.md (negdi_extendsidi): New pattern.
4630 (negdi_zero_extendsidi): Likewise.
4631
3f3bf1a8
GY
46322013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4633
4634 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4635 define_insn_and_split.
4636 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4637 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4638
b0b49556
GY
46392013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4640
4641 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4642 define_insn_and_split.
4643 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4644 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4645
d633dd84
GY
46462013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4647
4648 * config/arm/arm.md (subsi3_carryin): New pattern.
4649 (subsi3_carryin_const): Likewise.
4650 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4651 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4652
f4499066
GY
46532013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4654
4655 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4656
ceef6fd9
GY
46572013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4658
4659 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 4660 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 4661
ddbdd8a7
KT
46622013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4663
4664 * config/arm/arm.c (arm_expand_builtin): Change fcode
4665 type to unsigned int.
4666
8456d78a
RR
46672013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4668
4669 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4670
526c230f
ILT
46712013-04-04 Ian Lance Taylor <iant@google.com>
4672
33159866
UB
4673 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4674 language standard.
526c230f 4675
3cfbe04d
SB
46762013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4677
4678 PR middle-end/56729
4679 * df-scan.c (df_insn_delete): Disable failing assert.
4680
dfa3f8d0
KT
46812013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4682
4683 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4684 New function prototype.
4685 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4686 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4687 (arm_builtin_vectorized_function): New function.
4688
f7837758
KT
46892013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4690
4691 * config/arm/arm_neon_builtins.def: New file.
4692 * config/arm/arm.c (neon_builtin_data): Move contents to
4693 arm_neon_builtins.def.
4694 (enum arm_builtins): Include neon builtin definitions.
4695 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 4696 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 4697
39c1b6db
MP
46982013-04-04 Marek Polacek <polacek@redhat.com>
4699
4700 PR tree-optimization/48186
4701 * predict.c (maybe_hot_frequency_p): Return false if
4702 HOT_BB_FREQUENCY_FRACTION is 0.
4703 (cgraph_maybe_hot_edge_p): Likewise.
4704
314f64eb
RB
47052013-04-04 Richard Biener <rguenther@suse.de>
4706
4707 PR tree-optimization/56826
4708 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4709 more accurately.
4710
51a905b2
RB
47112013-04-04 Richard Biener <rguenther@suse.de>
4712
4713 PR tree-optimization/56213
4714 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 4715 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 4716
f1bf4f3a
RB
47172013-04-04 Richard Biener <rguenther@suse.de>
4718
4719 PR tree-optimization/56837
4720 * tree-loop-distribution.c (classify_partition): For non-zero
4721 values require that the value has the same precision as its
4722 mode to be useful as memset value.
4723
0bca7ded
NC
47242013-04-03 Nick Clifton <nickc@redhat.com>
4725
33159866 4726 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
4727 (fmssf4): Use fmsf.s on E3V5 architectures.
4728 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4729 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4730
b4019227
JL
47312013-04-03 Jeff Law <law@redhat.com>
4732
4733 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4734 (lra-eliminations.o): Likewise.
4735
f57ddb5b
TJ
47362013-04-03 Teresa Johnson <tejohnson@google.com>
4737
4738 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 4739 compute_working_sets here from profile.c.
f57ddb5b 4740 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
4741 (gcov_working_set_t): Moved typedef here from basic-block.h
4742 (compute_working_set): Declare.
f57ddb5b
TJ
4743 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4744 (get_working_sets): Renamed from compute_working_set,
33159866 4745 replace most of body with call to new compute_working_sets.
f57ddb5b 4746 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
4747 to get_working_sets.
4748 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 4749 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 4750 to get_working_sets.
f57ddb5b
TJ
4751 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4752 * gcov-dump.c (dump_working_sets): New function.
4753
5e0919f1
KZ
47542013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4755
4756 * hwint.c (sext_hwi, zext_hwi): New functions.
4757 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4758 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4759 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4760 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4761 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4762 (sext_hwi, zext_hwi): New functions.
0bca7ded 4763
be672e08
JL
47642013-04-03 Jeff Law <law@redhat.com>
4765
4766 PR tree-optimization/56799
33159866
UB
4767 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4768 back test for widening conversion erroneously dropped in prior change.
be672e08 4769
9d821fa5
KT
47702013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4771
4772 PR target/56809
4773 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4774 instead of next_real_insn.
4775
71c581e7
MP
47762013-04-03 Marek Polacek <polacek@redhat.com>
4777
4778 PR sanitizer/55702
33159866 4779 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 4780
4a32ef80
KT
47812013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4782
4783 PR target/56809
4784 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4785 next_real_insn.
4786 (thumb1_output_casesi): Likewise.
4787 (thumb2_output_casesi): Likewise.
4788
1b2253d4
RB
47892013-04-03 Richard Biener <rguenther@suse.de>
4790
4791 PR tree-optimization/56817
4792 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4793 Split out ...
4794 (tree_unroll_loops_completely_1): ... new function to manually
4795 walk the loop tree, properly defering outer loops of unrolled
4796 loops to later iterations.
4797
38000232
MG
47982013-04-03 Marc Glisse <marc.glisse@inria.fr>
4799
4800 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4801 (vectorizable_load): Likewise.
4802 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4803 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4804
3fa35298
MG
48052013-04-03 Marc Glisse <marc.glisse@inria.fr>
4806
4807 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4808 BIT_FIELD_REF.
4809
b3d45ff0
UW
48102013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4811
4812 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4813
ec9202a8
BC
48142013-04-03 Bin Cheng <bin.cheng@arm.com>
4815
4816 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4817
6805bd36
MG
48182013-04-03 Marc Glisse <marc.glisse@inria.fr>
4819
4820 PR tree-optimization/56790
33159866
UB
4821 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4822 folding.
6805bd36 4823
da694a77
MG
48242013-04-03 Marc Glisse <marc.glisse@inria.fr>
4825
4826 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4827 Handle VEC_MERGE.
4828 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4829 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4830 equal arguments.
4831
4e7d7b3d
JJ
48322013-04-03 Jakub Jelinek <jakub@redhat.com>
4833
4834 PR c/19449
4835 * tree.h (force_folding_builtin_constant_p): New decl.
4836 * builtins.c (force_folding_builtin_constant_p): New variable.
4837 (fold_builtin_constant_p): Fold immediately also if
4838 force_folding_builtin_constant_p.
4839
e6c9d234
RB
48402013-04-03 Richard Biener <rguenther@suse.de>
4841
4842 PR tree-optimization/56812
4843 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4844 DRs of the same interleaving chain are independent.
4845
984d07dd
JM
48462013-04-02 Jason Merrill <jason@redhat.com>
4847
4848 * gdbinit.in (pbb): Use debug fn.
4849
622849c9
LC
48502013-04-02 Lawrence Crowl <crowl@google.com>
4851
4852 * sese.h (struct ivtype_map_elt_s): Remove unused.
4853 (extern debug_ivtype_map): Remove unused.
4854 (extern eq_ivtype_map_elts): Remove unused.
4855 * sese.c (debug_ivtype_map): Removed unused.
4856 (debug_ivtype_map_1): Removed unused.
4857 (debug_ivtype_elt): Remove unused.
4858 (eq_ivtype_map_elts): Remove unused.
4859
4860
82c0e1a0
KT
48612013-04-02 Kai Tietz <ktietz@redhat.com>
4862
4863 PR target/52790
4864 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4865 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
4866 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4867 function.
82c0e1a0
KT
4868 (legitimize_pe_coff_symbol): Likewise.
4869 (is_imported_p): New helper-function.
4870 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4871 for Windows x64 targets.
4872 (ix86_expand_prologue): Optimize for pe-coff targets.
4873 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4874 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4875 medium/large code-model.
4876 (legitimize_pic_address): Likewise.
4877 (legitimize_tls_address): Likewise.
4878 (ix86_expand_call): Likewise.
4879 (x86_output_mi_thunk): Likewise.
4880 (get_dllimport_decl): Add new beimport argument.
4881 (construct_plt_address): Don't assert for x64 pe-coff targets.
4882 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4883 targets.
4884 (SYMBOL_FLAG_STUBVAR): New macro.
4885 (SYMBOL_REF_STUBVAR_P): Likewise.
4886 * config/i386/winnt.c (stub_list): New structure.
4887 (stub_head): New local variable.
4888 (i386_pe_record_stub): New function.
4889 (i386_pe_file_end): Emit refptr-stubs.
4890
5d751b0c
JJ
48912013-04-02 Jakub Jelinek <jakub@redhat.com>
4892
09bb4c99
JJ
4893 PR rtl-optimization/56745
4894 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4895 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4896
a1d8947a
JJ
4897 PR c++/34949
4898 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4899 and both of them are MEM_REFs, just compare first argument for
4900 equality and attempt to deal even with differing offsets.
4901
5d751b0c
JJ
4902 PR c++/34949
4903 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4904 of gimple_clobber_p to be MEM_REF.
4905 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4906 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4907 after gimplification.
4908 * asan.c (get_mem_ref_of_assignment): Don't instrument
4909 gimple_clobber_p stmts.
4910 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4911 gimple_clobber_p stmt if they have MEM_REF lhs and
4912 are dead because of another gimple_clobber_p stmt.
4913 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4914 gimple_clobber_p stmts like debug stmts.
4915 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4916 that refer to unused VAR_DECLs or uninitialized values.
4917 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4918 gimple_clobber_p stmts if they refer to removed parameters.
4919 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4920 formatting.
4921
e594716a
UB
49222013-04-02 Uros Bizjak <ubizjak@gmail.com>
4923
4924 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4925 using SWI48 mode attribute.
4926
7a80735b
WM
49272013-04-02 Wei Mi <wmi@google.com>
4928
4929 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4930 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4931 *<rotate_insn><mode>3_mask in i386.md.
4932
f423a9e4
AI
49332013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4934
4935 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4936
90eb75f2
RB
49372013-04-02 Richard Biener <rguenther@suse.de>
4938
4939 PR tree-optimization/56778
4940 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4941 Runtime alias tests are not supported for gather loads.
4942 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4943 stmts referenced from SSA operands before updating SSA form.
4944
d8c69a92
IC
49452013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4946 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4947
4948 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
4949 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4950 * config/arm/cortex-a53.md: New file.
4951 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4952 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4953 * config/arm/arm.c (arm_issue_rate): Likewise.
4954 * config/arm/arm-tune.md: Regenerate
4955 * config/arm/arm-tables.opt: Regenerate.
4956 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 4957
239eb04c
ZC
49582013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4959
4960 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4961 non-static link.
4962
c902d3c8
SN
49632013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4964
d8c69a92
IC
4965 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4966 scalar load/store operations using B/H registers.
c902d3c8
SN
4967 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4968
051d0e2f
SN
49692013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4970
4971 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4972 scalar move.
4973 * config/aarch64/aarch64.c
4974 (aarch64_simd_scalar_immediate_valid_for_move): New.
4975 * config/aarch64/aarch64-protos.h
4976 (aarch64_simd_scalar_immediate_valid_for_move): New.
4977 * config/aarch64/constraints.md (Dh, Dq): New.
4978 * config/aarch64/iterators.md (hq): New.
4979
0ee1e3d9
EB
49802013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4981
4982 * reorg.c (get_branch_condition): Deal with conditional returns.
4983 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4984
136fb3f7
WM
49852013-04-01 Wei Mi <wmi@google.com>
4986
4987 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4988 Truncate operand 2 using %b asm operand modifier.
4989 (*<shift_insn><mode>3_mask): Ditto.
4990 (*<rotate_insn><mode>3_mask): Ditto.
4991
6388c738
SB
49922013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4993
4994 PR middle-end/56798
4995 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4996
f7a4d826
KK
49972013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4998
4999 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5000 of next_real_insn.
5001 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5002
4b943a49
LC
50032013-03-30 Lawrence Crowl <crowl@google.com>
5004
5005 * dse.c (clear_alias_sets): Remove never set.
5006 (disqualified_clear_alias_sets): Remove never set.
5007 (clear_alias_mode_pool): Remove never set.
5008 (dse_step0): Remove condition that is never true.
5009 (canon_address): Remove condition that is never true.
5010 (dse_step7): Remove condition that is never true.
5011 (rest_of_handle_dse): Remove condition that is never true.
5012 (rest_of_handle_dse::did_global): Remove never read from above.
5013 (dse_step2_spill): Remove never called from above.
5014 (dse_step5_spill): Remove never called from above.
5015
39718607
SB
50162013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5017
da5c6bde
SB
5018 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5019 JUMP_TABLE_DATA changes.
5020 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5021 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5022 (Insns) <jump_table_data>: New entry.
5023 * doc/tm.texi: Regenerate.
5024
39718607
SB
5025 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5026
5027 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5028 for table jump at the end of a basic block using tablejump_p.
5029 * targhooks.c (default_invalid_within_doloop): Likewise.
5030 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5031 target hook implementation that is identical to the default hook.
5032 (rs6000_invalid_within_doloop): Remove.
5033
5034 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5035 unused variable from tablejump_p call.
5036
5037 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5038 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5039 (INSN_DELETED_P): Likewise.
5040 (emit_jump_table_data): New prototype.
5041 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5042 after 4th as unused.
5043 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5044 * sched-vis.c (print_insn): Likewise.
5045 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5046 insn for compatibility with back ends that use next_active_insn to
5047 identify jump table data.
5048 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5049 (remove_insn): Likewise.
5050 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5051 to be emitted.
5052 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5053 (emit_jump_table_data): New function.
5054
5055 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5056 basic block, a JUMP_TABLE_DATA never is.
5057 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5058 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5059 off from code handling real insns.
5060 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5061 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5062 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5063 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5064 is not a NONDEBUG_INSN_P.
5065 * ira-costs.c (scan_one_insn): Likewise.
5066 * jump.c (mark_all_labels): Likewise.
5067 (mark_jump_label_1): Likewise.
5068 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5069 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5070 a basic block.
5071 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5072 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5073 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5074 JUMP_TABLE_DATA_P insns.
5075 (calculate_elim_costs_all_insns): Likewise.
5076 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5077 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5078 (delete_output_reload): Code style fixups.
5079 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5080 insn flags on this non-insn.
5081 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5082 as scheduling barriers, for pre-change compatibility.
5083 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5084 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5085
5086 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5087 redundant JUMP_TABLE_DATA_P test.
5088 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5089 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5090 (frv_for_each_packet): Likewise.
5091 * config/i386/i386.c (min_insn_size): Likewise.
5092 (ix86_avoid_jump_mispredicts): Likewise.
5093 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5094 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5095 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5096 (mips16_insn_length): Robustify.
5097 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5098 (mips16_split_long_branches): Likewise.
5099 * config/pa/pa.c (pa_combine_instructions): Likewise.
5100 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5101 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5102 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5103 as contributing to pool range lengths.
5104 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5105 Remove redundant JUMP_TABLE_DATA_P test.
5106 (sh_loop_align): Likewise.
5107 (split_branches): Likewise.
5108 (sh_insn_length_adjustment): Likewise.
5109 * config/spu/spu.c (get_branch_target): Likewise.
5110
0208f7da
JH
51112013-03-29 Jan Hubicka <jh@suse.cz>
5112
5113 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5114 gcov streaming; stream hot bb threshold to ltrans.
5115 * predict.c (get_hot_bb_threshold): Break out from ....
5116 (maybe_hot_count_p): ... here.
5117 (set_hot_bb_threshold): New function.
5118 * lto-section-in.c (lto_section_name): Add profile.
5119 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5120 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5121 and data-streamer.h
5122 (histogram_entry): New structure.
5123 (histogram, histogram_pool): New global vars.
5124 (histogram_hash): New structure.
5125 (histogram_hash::hash): New method.
5126 (histogram_hash::equal): Likewise.
5127 (account_time_size): New function.
5128 (cmp_counts): New function.
5129 (dump_histogram): New function.
5130 (ipa_profile_generate_summary): New function.
5131 (ipa_profile_write_summary): New function.
5132 (ipa_profile_read_summary): New function.
5133 (ipa_profile): Decide on threshold.
e594716a
UB
5134 (pass_ipa_profile): Add ipa_profile_write_summary and
5135 ipa_profile_read_summary.
0208f7da
JH
5136 * Makefile.in (ipa.o): Update dependencies.
5137 * lto-streamer.h (LTO_section_ipa_profile): New section.
5138
5a6ccc94
GDR
51392013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5140
5141 * tree.h (VAR_P): New.
5142
39385fa6
PC
51432013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5144
5145 PR lto/56777
5146 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5147
34f0d87a
SB
51482013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5149
5150 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5151 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5152 (control_flow_insn_p): Likewise.
5153 * cfgrtl.c (duplicate_insn_chain): Likewise.
5154 * final.c (get_attr_length_1): Likewise.
5155 (shorten_branches): Likewise.
5156 (final_scan_insn): Likewise.
5157 * function.c (instantiate_virtual_regs): Likewise.
5158 * gcse.c (insert_insn_end_basic_block): Likewise.
5159 * ira-costs.c (scan_one_insn): Likewise.
5160 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5161 * lra.c (check_rtl): Likewise.
5162 * reload1.c (elimination_costs_in_insn): Likewise.
5163 * reorg.c (follow_jumps): Likewise.
5164
5165 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5166 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5167 (thumb_far_jump_used_p): Likewise.
5168 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5169 (workaround_speculation): Likewise.
5170 (add_sched_insns_for_speculation): Likewise.
5171 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5172 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5173 (frv_for_each_packet): Likewise.
5174 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5175 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5176 (final_emit_insn_group_barriers): Likewise.
5177 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5178 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5179 (mips16_insn_length): Likewise.
5180 * config/pa/pa.c (pa_reorg): Likewise.
5181 (pa_combine_instructions): Likewise.
5182 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5183 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5184 (sh_reorg): Likewise.
5185 (split_branches): Likewise.
5186 * config/spu/spu.c (get_branch_target): Likewise.
5187
5188 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5189 JUMP_TABLE_DATA_P.
5190
4ac761b0
KY
51912013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5192
39385fa6 5193 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5194 Fix declaration name.
5195
58a49189
LC
51962013-03-28 Lawrence Crowl <crowl@google.com>
5197
5198 * graphds.h (struct graph.indicies): Remove unused.
5199 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5200 (SCOP_ORIGINAL_PDDRS): Remove unused.
5201 * sese.h (extern insert_loop_close_phis): Removed unused.
5202 (extern insert_guard_phis): Removed unused.
5203 (extern ivtype_map_elt_info): Removed unused.
5204 (new_ivtype_map_elt): Removed unused.
5205 * sese.c (ivtype_map_elt_info): Removed unused.
5206
7b3b6ae4
LC
52072013-03-28 Lawrence Crowl <crowl@google.com>
5208
5209 * Makefile.in: Add several missing include dependences.
5210 (DUMPFILE_H): New.
5211 (test-dump.o): New. This object is not added to any executable,
5212 but is present for ad-hoc testing.
5213 * bitmap.c
5214 (debug (const bitmap_head_def &)): New.
5215 (debug (const bitmap_head_def *)): New.
5216 * bitmap.h
5217 (extern debug (const bitmap_head_def &)): New.
5218 (extern debug (const bitmap_head_def *)): New.
5219 * cfg.c
5220 (debug (edge_def &)): New.
5221 (debug (edge_def *)): New.
5222 * cfghooks.c
5223 (debug (basic_block_def &)): New.
5224 (debug (basic_block_def *)): New.
5225 * dumpfile.h
5226 (dump_node (const_tree, int, FILE *)): Correct source file.
5227 * dwarf2out.c
5228 (debug (die_struct &)): New.
5229 (debug (die_struct *)): New.
5230 * dwarf2out.h
5231 (extern debug (die_struct &)): New.
5232 (extern debug (die_struct *)): New.
5233 * gimple-pretty-print.c
5234 (debug (gimple_statement_d &)): New.
5235 (debug (gimple_statement_d *)): New.
5236 * gimple-pretty-print.h
5237 (extern debug (gimple_statement_d &)): New.
5238 (extern debug (gimple_statement_d *)): New.
5239 * ira-build.c
5240 (debug (ira_allocno_copy &)): New.
5241 (debug (ira_allocno_copy *)): New.
5242 (debug (ira_allocno &)): New.
5243 (debug (ira_allocno *)): New.
5244 * ira-int.h
5245 (extern debug (ira_allocno_copy &)): New.
5246 (extern debug (ira_allocno_copy *)): New.
5247 (extern debug (ira_allocno &)): New.
5248 (extern debug (ira_allocno *)): New.
5249 * ira-lives.c
5250 (debug (live_range &)): New.
5251 (debug (live_range *)): New.
5252 * lra-int.h
5253 (debug (lra_live_range &)): New.
5254 (debug (lra_live_range *)): New.
5255 * lra-lives.c
5256 (debug (lra_live_range &)): New.
5257 (debug (lra_live_range *)): New.
5258 * omega.c
5259 (debug (omega_pb_d &)): New.
5260 (debug (omega_pb_d *)): New.
5261 * omega.h
5262 (extern debug (omega_pb_d &)): New.
5263 (extern debug (omega_pb_d *)): New.
5264 * print-rtl.c
5265 (debug (const rtx_def &)): New.
5266 (debug (const rtx_def *)): New.
5267 * print-tree.c
5268 (debug_tree (tree): Move within file.
5269 (debug_raw (const tree_node &)): New.
5270 (debug_raw (const tree_node *)): New.
5271 (dump_tree_via_hooks (const tree_node *, int)): New.
5272 (debug (const tree_node &)): New.
5273 (debug (const tree_node *)): New.
5274 (debug_verbose (const tree_node &)): New.
5275 (debug_verbose (const tree_node *)): New.
5276 (debug_head (const tree_node &)): New.
5277 (debug_head (const tree_node *)): New.
5278 (debug_body (const tree_node &)): New.
5279 (debug_body (const tree_node *)): New.
5280 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5281 (debug (vec<tree, va_gc> &)): New.
5282 (debug (vec<tree, va_gc> *)): New.
5283 * rtl.h
5284 (extern debug (const rtx_def &)): New.
5285 (extern debug (const rtx_def *)): New.
5286 * sbitmap.c
5287 (debug_raw (simple_bitmap_def &)): New.
5288 (debug_raw (simple_bitmap_def *)): New.
5289 (debug (simple_bitmap_def &)): New.
5290 (debug (simple_bitmap_def *)): New.
5291 * sbitmap.h
5292 (extern debug (simple_bitmap_def &)): New.
5293 (extern debug (simple_bitmap_def *)): New.
5294 (extern debug_raw (simple_bitmap_def &)): New.
5295 (extern debug_raw (simple_bitmap_def *)): New.
5296 * sel-sched-dump.c
5297 (debug (vinsn_def &)): New.
5298 (debug (vinsn_def *)): New.
5299 (debug_verbose (vinsn_def &)): New.
5300 (debug_verbose (vinsn_def *)): New.
5301 (debug (expr_def &)): New.
5302 (debug (expr_def *)): New.
5303 (debug_verbose (expr_def &)): New.
5304 (debug_verbose (expr_def *)): New.
5305 (debug (vec<rtx> &)): New.
5306 (debug (vec<rtx> *)): New.
5307 * sel-sched-dump.h
5308 (extern debug (vinsn_def &)): New.
5309 (extern debug (vinsn_def *)): New.
5310 (extern debug_verbose (vinsn_def &)): New.
5311 (extern debug_verbose (vinsn_def *)): New.
5312 (extern debug (expr_def &)): New.
5313 (extern debug (expr_def *)): New.
5314 (extern debug_verbose (expr_def &)): New.
5315 (extern debug_verbose (expr_def *)): New.
5316 (extern debug (vec<rtx> &)): New.
5317 (extern debug (vec<rtx> *)): New.
5318 * sel-sched-ir.h
5319 (_list_iter_cond_expr): Make inline instead of static.
5320 * sreal.c
5321 (debug (sreal &)): New.
5322 (debug (sreal *)): New.
5323 * sreal.h
5324 (extern debug (sreal &)): New.
5325 (extern debug (sreal *)): New.
5326 * tree.h
5327 (extern debug_raw (const tree_node &)): New.
5328 (extern debug_raw (const tree_node *)): New.
5329 (extern debug (const tree_node &)): New.
5330 (extern debug (const tree_node *)): New.
5331 (extern debug_verbose (const tree_node &)): New.
5332 (extern debug_verbose (const tree_node *)): New.
5333 (extern debug_head (const tree_node &)): New.
5334 (extern debug_head (const tree_node *)): New.
5335 (extern debug_body (const tree_node &)): New.
5336 (extern debug_body (const tree_node *)): New.
5337 (extern debug (vec<tree, va_gc> &)): New.
5338 (extern debug (vec<tree, va_gc> *)): New.
5339 * tree-cfg.c
5340 (debug (struct loop &)): New.
5341 (debug (struct loop *)): New.
5342 (debug_verbose (struct loop &)): New.
5343 (debug_verbose (struct loop *)): New.
5344 * tree-dump.c: Add header dependence.
5345 * tree-flow.h
5346 (extern debug (struct loop &)): New.
5347 (extern debug (struct loop *)): New.
5348 (extern debug_verbose (struct loop &)): New.
5349 (extern debug_verbose (struct loop *)): New.
5350 * tree-data-ref.c
5351 (debug (data_reference &)): New.
5352 (debug (data_reference *)): New.
5353 (debug (vec<data_reference_p> &)): New.
5354 (debug (vec<data_reference_p> *)): New.
5355 (debug (vec<ddr_p> &)): New.
5356 (debug (vec<ddr_p> *)): New.
5357 * tree-data-ref.h
5358 (extern debug (data_reference &)): New.
5359 (extern debug (data_reference *)): New.
5360 (extern debug (vec<data_reference_p> &)): New.
5361 (extern debug (vec<data_reference_p> *)): New.
5362 (extern debug (vec<ddr_p> &)): New.
5363 (extern debug (vec<ddr_p> *)): New.
5364 * tree-ssa-alias.c
5365 (debug (pt_solution &)): New.
5366 (debug (pt_solution *)): New.
5367 * tree-ssa-alias.h
5368 (extern debug (pt_solution &)): New.
5369 (extern debug (pt_solution *)): New.
5370 * tree-ssa-alias.c
5371 (debug (_var_map &)): New.
5372 (debug (_var_map *)): New.
5373 (debug (tree_live_info_d &)): New.
5374 (debug (tree_live_info_d *)): New.
5375 * tree-ssa-alias.h
5376 (extern debug (_var_map &)): New.
5377 (extern debug (_var_map *)): New.
5378 (extern debug (tree_live_info_d &)): New.
5379 (extern debug (tree_live_info_d *)): New.
5380
be77e1e5
JH
53812013-03-28 Jan Hubicka <jh@suse.cz>
5382
5383 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5384
777e6976
IB
53852013-03-28 Ian Bolton <ian.bolton@arm.com>
5386
5387 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5388 record only when desired or required.
5389
9cd347ae
UB
53902013-03-28 Uros Bizjak <ubizjak@gmail.com>
5391
5392 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5393 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5394
33159866 53952013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
5396
5397 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5398 (*andsi3_compare0_uxtw): New pattern.
5399 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5400 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5401
89ab31c1
JH
54022013-03-28 Jan Hubicka <jh@suse.cz>
5403
5404 * data-streamer-in.c (streamer_read_gcov_count): New function.
5405 * gimple-streamer-out.c: Include value-prof.h.
5406 (output_gimple_stmt): Output histogram.
5407 (output_bb): Use streamer_write_gcov_count.
5408 * value-prof.c: Include data-streamer.h
5409 (dump_histogram_value): Add HIST_TYPE_MAX.
5410 (stream_out_histogram_value): New function.
5411 (stream_in_histogram_value): New function.
5412 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5413 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5414 * data-streamer-out.c (streamer_write_gcov_count): New function.
5415 (streamer_write_gcov_count_stream): New function.
5416 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5417 (lto_output_node): Likewise.
5418 (input_node, input_edge): Likewise.
5419 * lto-streamer-out.c (output_cfg): Update streaming.
5420 * lto-streamer-in.c (input_cfg): Likewise.
5421 * data-streamer.h (streamer_write_gcov_count,
5422 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5423 * gimple-streamer-in.c: Include value-prof.h
5424 (input_gimple_stmt): Input histograms.
5425 (input_bb): Update profile streaming.
5426
e594716a 54272013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 5428
33159866 5429 * genmodes.c (emit_max_int): New function.
8697be17 5430 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
5431 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5432 Added doc.
8697be17 5433 * machmode.def: Fixed comment.
89ab31c1 5434
e594716a 54352013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
5436
5437 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
5438 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5439
74946978
MP
54402013-03-28 Marek Polacek <polacek@redhat.com>
5441 Richard Biener <rguenther@suse.de>
5442
5443 PR tree-optimization/56695
5444 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5445 build signed result of a vector comparison.
5446 * tree-cfg.c (verify_gimple_comparison): Check that a result
5447 of a vector comparison has signed type.
5448
a64b9c26
RB
54492013-03-28 Richard Biener <rguenther@suse.de>
5450
5451 PR tree-optimization/37021
5452 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5453 do not restrict gaps between groups.
5454 * tree-vect-stmts.c (vectorizable_load): Properly account for
5455 a gap between groups.
5456
a9dc2a2f
EB
54572013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5458
5459 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5460 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5461 is not enabled.
5462
53cb97f9
GP
54632013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5464
5465 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5466 * doc/extend.texi (Named Address Spaces): Ditto.
5467 (Variable Attributes): Ditto.
5468
b802ae5c
KT
54692013-03-27 Kai Tietz <ktietz@redhat.com>
5470
eddae10a
KT
5471 * config.build: Add support for cygwin x64 target.
5472 * config.gcc: Likewise.
5473 * config.host: Likewise.
5474 * configure.ac: Likewise
5475 * configure: Regenerated.
b802ae5c 5476
8269de54
KT
54772013-03-27 Kai Tietz <ktietz@redhat.com>
5478
5479 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5480 * config/i386/t-cygwin-w64: New file.
5481 * config/i386/cygwin-w64.h: New file.
5482 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5483 and add support for x64-cygwin target.
5484 (CPP_SPEC): Likewise.
5485 (CXX_WRAP_SPEC_LIST): Undefine before define.
5486 (LIBGCJ_SONAME): Use 15 as version.
5487
f49b33cb
RB
54882013-03-27 Richard Biener <rguenther@suse.de>
5489
5490 PR tree-optimization/56716
5491 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5492 dumping for ref nodes.
5493
b37a6ce5
MJ
54942013-03-27 Martin Jambor <mjambor@suse.cz>
5495
5496 PR tree-optimization/55334
5497 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5498 restricted pointers to arrays.
5499
9469b9b2
GDR
55002013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5501
5502 * Makefile.in (.SUFFIXES): Add .cc.
5503 (.c.o): Apply same recipe for implicit rule .cc.o.
5504
7d24f650
RB
55052013-03-27 Richard Biener <rguenther@suse.de>
5506
5507 PR tree-optimization/37021
5508 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5509 REALPART/IMAGPART_EXPRs around the supported refs.
5510 * tree-ssa-structalias.c (find_func_aliases): Assume that
5511 floating-point values are not used to transfer pointers.
5512
2f251a05
AI
55132013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5514
39385fa6
PC
5515 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5516 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5517 * doc/tm.texi: Regenerate.
5518 * targhooks.h (default_has_ifunc_p): New.
5519 * targhooks.c (default_has_ifunc_p): Ditto.
5520 * config/linux-protos.h: New file.
5521 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
5522 this hook for linux which disables support of indirect functions in
5523 android.
39385fa6
PC
5524 * config/linux-android.c: New file.
5525 * config/t-linux-android.c: Ditto.
5526 * config.gcc: Added new object file linux-android.o.
5527 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 5528 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 5529 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
5530 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5531 doesn't support indirect functions.
5532 * configure: Regenerate.
5533
78b4e425
BC
55342013-03-27 Bin Cheng <bin.cheng@arm.com>
5535
5536 PR target/56102
5537 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5538 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5539 mult-word mode.
5540
a5ba7b92
AK
55412013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5542
5543 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5544
be624986
TG
55452013-03-27 Terry Guo <terry.guo@arm.com>
5546
5547 * config/arm/arm-cores.def: Added core cortex-r7.
5548 * config/arm/arm-tune.md: Regenerated.
5549 * config/arm/arm-tables.opt: Regenerated.
5550 * doc/invoke.texi: Added entry for core cortex-r7.
5551
0a514f47
WL
55522013-03-27 Walter Lee <walt@tilera.com>
5553
5554 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5555 double-decrement of next_scratch_regno.
5556
9332b0d2
WL
55572013-03-27 Walter Lee <walt@tilera.com>
5558
801d9b2a 5559 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
5560 input operands.
5561 (insn_v1mulus): Ditto.
5562 (insn_v2muls): Ditto.
5563
f54ea5dd
WL
55642013-03-27 Walter Lee <walt@tilera.com>
5565
e594716a 5566 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
5567 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5568
bf60f4ca
WL
55692013-03-27 Walter Lee <walt@tilera.com>
5570
e594716a 5571 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
5572 (*sibcall_value): Ditto.
5573
e3b51eeb
WL
55742013-03-27 Walter Lee <walt@tilera.com>
5575
5576 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5577 (insn_mnz_v8qi): ... this ...
5578 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5579 vector equivalent.
5580 (insn_v<n>mnz): Replaced by ...
5581 (insn_v1mnz): ... this ...
5582 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5583 equivalent.
5584 (insn_mz_<mode>): Replaced by ...
5585 (insn_mz_v8qi): ... this ...
5586 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5587 vector equivalent.
5588 (insn_v<n>mz): Replaced by ...
5589 (insn_v1mz): ... this ...
5590 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5591 equivalent.
5592
4fc7b145
EB
55932013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5594
5595 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5596
6f33817e
RM
55972013-03-26 Roland McGrath <mcgrathr@google.com>
5598
5599 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5600 than fprintf with a non-constant, non-format string.
5601
93a4145b
UB
56022013-03-26 Uros Bizjak <ubizjak@gmail.com>
5603
5604 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5605 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5606 operand 0 predicate.
5607 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5608 attribute. Use general_x64nomem_operand as operand 1 predicate.
5609 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5610 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5611 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5612 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5613 (mov<mode>_insv_1): Remove expander. Merge insn with
5614 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5615 Use general_x64nomem_operand as operand 1 predicate.
5616 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5617 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5618 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5619 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5620 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5621 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5622 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5623 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5624 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5625 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5626 (general_x64nomem_operand): Ditto.
5627
c6a9ed5a 56282013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
5629
5630 * config/rtems.opt: Add -pthread option.
5631
31b0a960
RB
56322013-03-26 Richard Biener <rguenther@suse.de>
5633
93a4145b
UB
5634 * alias.c (find_base_term): Avoid redundant and not used recursion.
5635 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
5636 (true_dependence_1): Compute and pass base terms to base_alias_check.
5637 (write_dependence_p): Likewise.
5638 (may_alias_p): Likewise.
5639
79517551
SN
56402013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5641
5642 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5643 PC-relative load in SI modes and above only.
5644
a76213b9
XQ
56452013-03-26 Xinyu Qi <xyqi@marvell.com>
5646
5647 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
5648 * config/arm/iwmmxt.md (WCGR0): Update.
5649 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 5650
37ff9355
UB
56512013-03-26 Uros Bizjak <ubizjak@gmail.com>
5652
5653 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5654 Use x64 and nox64 isa attributes.
5655
30b0317c
RB
56562013-03-26 Richard Biener <rguenther@suse.de>
5657
5658 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5659 alignment computations and rely on get_object_alignment_1
5660 for the !TYPE_P case.
5661 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5662
cbcdb140
WL
56632013-03-26 Walter Lee <walt@tilera.com>
5664
5665 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5666 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5667
dd884525 56682013-03-25 Jeff Law <law@redhat.com>
be672e08 5669
33159866
UB
5670 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5671 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
5672 wrong version of prior patch.
5673
0051d3ec
WL
56742013-03-25 Walter Lee <walt@tilera.com>
5675
5676 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5677 TILEGX_INSN_SHUFFLEBYTES1.
5678 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5679 shufflebytes1.
5680 (tilegx_builtins): Ditto.
5681 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5682
065a3605
WL
56832013-03-25 Walter Lee <walt@tilera.com>
5684
5685 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
5686 (floatunssisf2): New pattern.
5687 (floatsidf2): New pattern.
5688 (floatunssidf2): New pattern.
065a3605 5689
5b2a3c82
WL
56902013-03-25 Walter Lee <walt@tilera.com>
5691
5692 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5693 tests for constraint J, K, N, P.
5694
192ea533
WL
56952013-03-25 Walter Lee <walt@tilera.com>
5696
5697 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5698 Use indirect/pcrel encoding.
5699 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5700 Ditto.
5701
855e0d0b
SE
57022013-03-25 Steve Ellcey <sellcey@mips.com>
5703
5704 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5705 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5706 * config/mips/mips.c (mips_option_override): Set IMADD default.
5707 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5708 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5709 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5710 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5711 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5712
39e45653
JL
57132013-03-25 Jeff Law <law@redhat.com>
5714
5715 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5716 slightly to avoid creating and folding useless trees. Simplify
5717 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5718
7482c470
UB
57192013-03-25 Uros Bizjak <ubizjak@gmail.com>
5720
5721 * config/i386/i386.md (*zero_extendsidi2): Merge with
5722 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5723 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5724 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5725 targets. Clarify comment.
5726
4a53743e
MJ
57272013-03-25 Martin Jambor <mjambor@suse.cz>
5728
5729 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5730 pass-through jump functions differently.
5731 (ipa_read_jump_function): Likewise. Also use setter functions to set
5732 up jump functions.
5733
162712de
MJ
57342013-03-25 Martin Jambor <mjambor@suse.cz>
5735
5736 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5737 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5738 process it.
5739 (ipa_get_indirect_edge_target): New function.
5740 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5741 ipa_get_indirect_edge_target. Update all callers.
5742 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5743 ipa_get_indirect_edge_target_1 instead of calling
5744 ipa_get_indirect_edge_target.
5745 (create_specialized_node): Pass aggvlas to
5746 ipcp_discover_new_direct_edges.
5747
a5a4c20a
KT
57482013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5749
5750 * config/arm/arm.md (f_sels, f_seld): New types.
5751 (*cmov<mode>): New pattern.
5752 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5753 predicate.
5754
f992b9fc
KT
57552013-03-25 Kai Tietz <ktietz@redhat.com>
5756
5757 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5758 POSIX-printf for mingw-hosted builds.
5759
c16fd676
RB
57602013-03-25 Richard Biener <rguenther@suse.de>
5761
5762 PR middle-end/56694
5763 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5764 must-not-throw stmt location.
5765
5ad29f12
KT
57662013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5767
5768 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5769 Emit load-acquire versions when acq is true.
5770 (arm_emit_store_exclusive): Add rel parameter.
5771 Emit store-release versions when rel is true.
5772 (arm_split_compare_and_swap): Use acquire-release instructions
5773 instead.
5774 of barriers when appropriate.
5775 (arm_split_atomic_op): Likewise.
5776 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5777 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5778 (VUNSPEC_SLX): Likewise.
5779 (VUNSPEC_LDA): Likewise.
5780 (VUNSPEC_STL): Likewise.
5781 * config/arm/sync.md (atomic_load<mode>): New pattern.
5782 (atomic_store<mode>): Likewise.
5783 (arm_load_acquire_exclusive<mode>): Likewise.
5784 (arm_load_acquire_exclusivesi): Likewise.
5785 (arm_load_acquire_exclusivedi): Likewise.
5786 (arm_store_release_exclusive<mode>): Likewise.
5787
03a7dddb
CM
57882013-03-25 Catherine Moore <clm@codesourcery.com>
5789
5790 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5791 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5792 * config/mip/predicates.md (lwsp_swsp_operand,
5793 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5794 sb16_operand, db4_operand, db7_operand, ib3_operand,
5795 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5796 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5797 andi16_operand): New predicates.
5798 * config/mips/mips.md (compression): New attribute.
5799 (enabled): New attribute.
5800 (length): Consider compression in computing length.
5801 (shift_compression): New code attribute.
5802 (*add<mode>3): New operands. Record compression.
5803 (sub<mode>3): Likewise.
5804 (one_cmpl<mode>2): Likewise.
5805 (*and<mode>3): Likewise.
5806 (*ior<mode>3): Likewise.
5807 (unnamed pattern for xor): Likewise.
5808 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5809 (*<optab><mode>3): Likewise.
5810 (*mov<mode>_internal: Likewise.
5811 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5812 (mips_unsigned_immediate_p): New.
5813 (umips_lwsp_swsp_address_p): New.
5814 (m16_based_address_p): New.
5815 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5816 (mips_unsigned_immediate_p): New prototype.
5817 (lwsp_swsp_address_p): New prototype.
5818 (m16_based_address_p): New prototype.
5819 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5820 (mips_signed_immediate_p): New function.
5821 (m16_based_address_p): New function.
5822 (lwsp_swsp_address_p): New function.
5823 (mips_print_operand_punctuation): Recognize short delay slot insns
5824 for microMIPS.add<mode>3"
5825
f35c297f 58262013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 5827
f35c297f
KT
5828 PR target/56720
5829 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5830 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5831
051b9446
RB
58322013-03-25 Richard Biener <rguenther@suse.de>
5833
5834 PR tree-optimization/56689
5835 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5836 any edge.
5837
374001cb
RB
58382013-03-25 Richard Biener <rguenther@suse.de>
5839
5840 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5841 of bitmap.
5842 (memory_references): Likewise.
5843 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5844 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5845 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5846 (gather_mem_refs_in_loops): Fold into ...
5847 (analyze_memory_references): ... this. Move initialization
5848 to tree_ssa_lim_initialize.
5849 (fill_always_executed_in): Rename to ...
5850 (fill_always_executed_in_1): ... this.
5851 (fill_always_executed_in): Move contains_call computation to
5852 this new function from ...
5853 (tree_ssa_lim_initialize): ... here.
5854 (tree_ssa_lim): Call fill_always_executed_in.
5855
57895947
EB
58562013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5857
5858 * postreload.c (reload_combine): Fix code detecting returns.
5859
1e1b18c1
EB
58602013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5861
5862 * function.c (emit_use_return_register_into_block): On cc0 targets,
5863 do not emit the sequence between cc0 setter and user.
5864
9216baf1
KT
58652013-03-25 Kai Tietz <ktietz@redhat.com>
5866
1e1b18c1
EB
5867 * config/i386/predicates.md (local_symbolic_operand): Interpret
5868 dll-imported symbols as none-local.
9216baf1 5869
76421b44
RB
58702013-03-25 Richard Biener <rguenther@suse.de>
5871
5872 * tree-ssa-loop-im.c (struct depend): Remove.
5873 (struct lim_aux_data): Make depends a vec of gimples.
5874 (free_lim_aux_data): Adjust.
5875 (add_dependency): Likewise.
5876 (set_level): Likewise.
5877
d154bfa2
RB
58782013-03-25 Richard Biener <rguenther@suse.de>
5879
5880 PR middle-end/56434
5881 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5882 the pointer returned by calls with ECF_MALLOC set.
5883
2cd9804e
UB
58842013-03-24 Uros Bizjak <ubizjak@gmail.com>
5885
acef5fe0
UB
5886 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5887
58882013-03-24 Uros Bizjak <ubizjak@gmail.com>
5889
5890 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
5891 using MMXMODE mode iterator.
5892 (*move<mode>_internal): Merge with *movv2sf_internal and
5893 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5894
225ccc68
SB
58952013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5896
85c0f02d
SB
5897 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5898 (record_last_mem_set_info): Likewise.
5899
225ccc68
SB
5900 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5901 of XNEWVEC followed by memset.
5902 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5903
b64925dc
SB
59042013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5905
5906 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5907 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5908 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5909 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5910 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5911 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5912 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5913 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5914 BARRIER_P instead of GET_CODE.
5915
b9aaf52e
EB
59162013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5917
5918 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5919 inaccuracy in the probing code.
5920
5921 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5922 (ctrapdi4): Likewise.
5923
66de4d7c
EB
59242013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5925
5926 * calls.c (expand_call): Add missing guard to code handling return
5927 of non-BLKmode structures in MSB.
5928 * function.c (expand_function_end): Likewise.
5929
4f25c8fb
EB
59302013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5931
5932 * combine.c (try_combine): Adjust comment. Do not add the set of
5933 insn #0 if the destination indirectly is set or dies in insn #2.
5934 Tidy up code to distribute a new note.
5935
23b7850d
UB
59362013-03-22 Uros Bizjak <ubizjak@gmail.com>
5937
5938 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5939 also for alternatives 16 and 17.
5940
bed852cf
UB
59412013-03-22 Uros Bizjak <ubizjak@gmail.com>
5942
5943 * config/i386/sse.md (*mov<mode>_internal): Merge with
5944 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5945 Emit insn template depending on type attribute. Use
5946 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5947 movd instead of movq mnemonic for interunit moves. Rewrite mode
5948 attribute calculation. Remove unit attribute calculation.
5949 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5950 Set prefix_data16 attribute for DImode ssemov types.
5951 Use Ym instead of y for SSE-MMX conversion alternatives.
5952 Reorder operand constraints.
5953
1e8a7937
SB
59542013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5955
5956 * df.h (df_insn_delete): Adjust prototype.
5957 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5958 and let it decide whether mark the basic block dirty.
5959 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5960 * df-scan.c (df_insn_info_delete): New helper function, split
5961 off from df_insn_delete.
5962 (df_scan_free_bb_info): Use it.
5963 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5964 Likewise.
5965 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5966 that the insn is actually an insn and it has a non-NULL basic block.
5967 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5968
e14d094c
RB
59692013-03-22 Richard Biener <rguenther@suse.de>
5970
5971 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5972 dep_ref members.
5973 (mem_ref_alloc): Do not allocate them.
5974 (refs_independent_p): Do not query or maintain a cache.
5975
e9cf7316
RB
59762013-03-22 Richard Biener <rguenther@suse.de>
5977
5978 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5979 (gather_mem_refs_in_loops): Do not compute it.
5980 (analyze_memory_references): Do not allocate it.
5981 (tree_ssa_lim_finalize): Do not free it.
5982 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5983
f046e81b
RB
59842013-03-22 Richard Biener <rguenther@suse.de>
5985
5986 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 5987
a05c0ddf
IB
59882013-03-22 Ian Bolton <ian.bolton@arm.com>
5989
5990 * config/aarch64/aarch64.c (aarch64_print_operand): New
5991 format specifier for printing a constant in hex.
5992 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5993 format specifier for printing second operand.
5994
c00217fc
RB
59952013-03-22 Richard Biener <rguenther@suse.de>
5996
5997 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5998 bitmaps.
5999 (gather_mem_refs_in_loops): Perform store accumulation here.
6000 (create_vop_ref_mapping_loop): Remove.
6001 (create_vop_ref_mapping): Likewise.
6002 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6003 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6004 (record_indep_loop): Remove.
6005 (record_dep_loop): New function.
6006 (ref_indep_loop_p_1): Adjust to only walk over references
6007 in the loop, not its subloops.
6008 (ref_indep_loop_p): Rename to ...
6009 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6010 maintaining a more fine-grained cache.
6011 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6012 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6013
15d19bf8
RB
60142013-03-22 Richard Biener <rguenther@suse.de>
6015
6016 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6017 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6018 aggregate mem_ref_loc.
6019 (free_mem_ref_locs): Inline into ...
6020 (memref_free): ... this and adjust.
6021 (mem_ref_alloc): Adjust.
6022 (mem_ref_locs_alloc): Remove.
6023 (record_mem_ref_loc): Adjust.
6024 (get_all_locs_in_loop): Rewrite into ...
6025 (for_all_locs_in_loop): ... this iterator.
6026 (rewrite_mem_ref_loc): New functor.
6027 (rewrite_mem_refs): Use for_all_locs_in_loop.
6028 (sm_set_flag_if_changed): New functor.
6029 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6030 (ref_always_accessed): New functor.
6031 (ref_always_accessed_p): Use for_all_locs_in_loop.
6032
6f37411d
MG
60332013-03-21 Marc Glisse <marc.glisse@inria.fr>
6034
6035 * tree-pass.h (PROP_gimple_lvec): New.
6036 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6037 (init_optimization_passes): Move pass_lower_vector.
6038 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6039 PROP_gimple_lvec.
6040 (pass_lower_vector): Provide PROP_gimple_lvec.
6041 (pass_lower_vector_ssa): Likewise.
6042 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6043
511ef689
MW
60442013-03-21 Mark Wielaard <mjw@redhat.com>
6045
6046 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6047
cc1df30b
UB
60482013-03-21 Uros Bizjak <ubizjak@gmail.com>
6049
6050 * config/i386/i386.md (*movdi_internal): Disparage slightly
6051 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6052 conversion alternatives.
6053
c845cfe1
JJ
60542013-03-21 Jakub Jelinek <jakub@redhat.com>
6055
37e99116
JJ
6056 PR middle-end/48087
6057 * diagnostic.def (DK_WERROR): New kind.
6058 * diagnostic.h (werrorcount): Define.
6059 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6060 promoted to DK_ERROR, increment DK_WERROR counter instead of
6061 DK_ERROR counter.
6062 * toplev.c (toplev_main): Call print_ignored_options even if
6063 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6064 even if just werrorcount is non-zero.
6065
c845cfe1
JJ
6066 PR debug/55608
6067 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6068 on failure.
6069 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6070 (string_cst_pool_decl): New function.
6071 (optimize_one_addr_into_implicit_ptr): New function.
6072 (resolve_addr_in_expr): Optimize DWARF location expression
6073 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6074 which doesn't live in memory, but has DW_AT_location or
6075 DW_AT_const_value, or refers to a string literal, into
6076 DW_OP_GNU_implicit_pointer.
6077 (optimize_location_into_implicit_ptr): New function.
6078 (resolve_addr): If removing DW_AT_location of a variable because
6079 it was DW_OP_addr of address of the variable, but the variable doesn't
6080 live in memory, try to emit const value attribute for the initializer.
6081
08e0cda6
MG
60822013-03-21 Marc Glisse <marc.glisse@inria.fr>
6083
6084 * tree.h (VECTOR_TYPE_P): New macro.
6085 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6086 TYPE_MODE): Use it.
6087 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6088 VEC_COND_EXPR cannot be lvalues.
6089 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6090
d08633b4
MG
60912013-03-21 Marc Glisse <marc.glisse@inria.fr>
6092
6093 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6094 Restrict the transformation to equal modes.
6095
e6647190
RB
60962013-03-21 Richard Biener <rguenther@suse.de>
6097
6098 PR tree-optimization/39326
6099 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6100 (MEM_ANALYZABLE): Adjust.
6101 (record_mem_ref_loc): Move bitmap ops ...
6102 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6103 unanalyzable refs, do not record locations for it.
6104 (analyze_memory_references): Allocate ref zero as shared
6105 unanalyzable ref.
6106 (refs_independent_p): Do not test for unanalyzed mems here.
6107 (ref_indep_loop_p_1): Special-case disambiguation against
6108 the unanalyzed ref.
cc1df30b 6109 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6110
65074f54
CL
61112013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6112
6113 * config/arm/arm-protos.h (tune_params): Add
6114 prefer_neon_for_64bits field.
6115 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6116 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6117 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6118 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6119 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6120 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6121 (arm_option_override): Handle -mneon-for-64bits new option.
6122 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6123 (prefer_neon_for_64bits): Declare new variable.
6124 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6125 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6126 (arch_enabled): Handle new arch types. Remove support for onlya8
6127 and nota8.
6128 (one_cmpldi2): Use new arch names.
bc5faa5b 6129 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6130 * config/arm/arm.opt (mneon-for-64bits): Add option.
6131 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6132 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6133 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6134 of onlya8.
6135 * doc/invoke.texi (-mneon-for-64bits): Document.
6136
5a2d2a79
RB
61372013-03-21 Richard Biener <rguenther@suse.de>
6138
6139 PR tree-optimization/39326
6140 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6141 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6142 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6143
5abe1e05
RB
61442013-03-21 Richard Biener <rguenther@suse.de>
6145
6146 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6147 (vect_insert_into_interleaving_chain): Likewise.
6148 (vect_drs_dependent_in_basic_block): Inline ...
6149 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6150 split out from ...
6151 (vect_analyze_data_ref_dependence): ... here. Simplify.
6152 (vect_check_interleaving): Simplify.
6153 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6154 (vect_slp_analyze_data_ref_dependences): ... this new function.
6155 (dr_group_sort_cmp): New function.
6156 (vect_analyze_data_ref_accesses): Compute data-reference groups
6157 here instead of in vect_analyze_data_ref_dependence. Use
6158 a more efficient algorithm.
6159 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6160 vect_slp_analyze_data_ref_dependences. Call
6161 vect_analyze_data_ref_accesses earlier.
6162 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6163 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6164 (vect_slp_analyze_data_ref_dependences): New prototype.
6165
cad1735b
RB
61662013-03-21 Richard Biener <rguenther@suse.de>
6167
6168 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6169 ref is stored in the loop.
6170 (find_refs_for_sm): Walk only over all stores.
6171 (store_motion_loop): Allocate from lim_bitmap_obstack.
6172 (store_motion): Likewise.
6173
141310ef
RB
61742013-03-21 Richard Biener <rguenther@suse.de>
6175
6176 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6177 Update virtual SSA form.
6178
5022315a
RO
61792013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6180
6181 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6182 * configure: Regenerate.
6183 * config.in: Regenerate.
6184 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6185 if !HAVE_LD_EH_FRAME_CIEV3.
6186
50d4421c
RB
61872013-03-21 Richard Biener <rguenther@suse.de>
6188
6189 * tree-cfg.c (verify_expr_no_block): New function.
6190 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6191 nor DECL_VALUE_EXPR have locations with associated blocks.
6192 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6193 (clear_unused_block_pointer): Remove code dealing with
6194 blocks in DECL_DEBUG_EXPR locations.
6195
839b422f
RB
61962013-03-21 Richard Biener <rguenther@suse.de>
6197
6198 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6199 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6200 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6201 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6202 instead of DECL_DEBUG_EXPR_IS_FROM.
6203 * gimplify.c (gimplify_modify_expr): Likewise.
6204 * tree-cfg.c (verify_expr_location_1): Likewise.
6205 * tree-complex.c (create_one_component_var): Likewise.
6206 * tree-sra.c (create_access_replacement): Likewise.
6207 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6208 (clear_unused_block_pointer): Likewise.
6209 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6210 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6211 * var-tracking.c (var_debug_decl): Likewise.
6212 (track_expr_p): Likewise.
6213 * tree-inline.c (add_local_variables): Likewise. Set
6214 DECL_HAS_DEBUG_EXPR_P after copying it.
6215 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6216 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6217
fe04878d
UB
62182013-03-21 Uros Bizjak <ubizjak@gmail.com>
6219
6220 PR bootstrap/56656
6221 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6222 * configure: Regenerate.
6223 * config.in: Regenerate.
6224 * config/i386/i386.md (*movdf_internal): Use
6225 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6226 movd instead of movq mnemonic for interunit moves.
6227 (*movdi_internal): Ditto.
6228
bd059b26 62292013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
6230
6231 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6232 (abd<mode>_3): New pattern.
6233 (aba<mode>_3): New pattern.
6234 (fabd<mode>_3): New pattern.
6235
bd059b26 62362013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
6237
6238 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6239 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6240 occurrence of REGISTER_PREFIX as its empty string.
6241
4f1f78b9
JL
62422013-03-20 Jeff Law <law@redhat.com>
6243
6244 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6245 addititional equivalences for equality comparisons between an SSA_NAME
6246 and a constant where the SSA_NAME was set from a widening conversion.
6247
327a1118
WL
62482013-03-20 Walter Lee <walt@tilera.com>
6249
6250 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6251
813e0036
UB
62522013-03-20 Uros Bizjak <ubizjak@gmail.com>
6253
6254 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6255 depending on type attribute.
6256 (*movti_internal): Ditto.
6257 (*movtf_internal): Ditto.
6258 (*movxf_internal): Ditto.
6259 (*movdf_internal): Ditto.
6260 (*movsf_internal): Ditto.
6261
7cf34aae
UB
62622013-03-20 Uros Bizjak <ubizjak@gmail.com>
6263
6264 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6265 maybe_vex for sselog1 and ssemov types.
6266 (*movdi_internal): Reorder operand constraints.
6267 (*movsi_internal): Ditto. Set prefix attribute to
6268 maybe_vex for sselog1 and ssemov types.
6269 (*movtf_internal): Set prefix attribute to maybe_vex
6270 for sselog1 and ssemov types.
6271 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6272 DImode ssemov types. Reorder operand constraints.
6273 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6274 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6275 attribute for SImode ssemov types. Reorder operand constraints.
6276
19321415
MJ
62772013-03-20 Martin Jambor <mjambor@suse.cz>
6278
6279 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6280 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6281
c6d5ff83
MM
62822013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6283
6284 * config/rs6000/predicates.md (indexed_address, update_address_mem
6285 update_indexed_address_mem): New predicates.
6286 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6287 attribute for load/store instructions.
6288 * config/rs6000/dfp.md (movsd_store): Likewise.
6289 (movsd_load): Likewise.
6290 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6291 (unnamed HI->DI extend define_insn): Likewise.
6292 (unnamed SI->DI extend define_insn): Likewise.
6293 (unnamed QI->SI extend define_insn): Likewise.
6294 (unnamed QI->HI extend define_insn): Likewise.
6295 (unnamed HI->SI extend define_insn): Likewise.
6296 (unnamed HI->SI extend define_insn): Likewise.
6297 (extendsfdf2_fpr): Likewise.
6298 (movsi_internal1): Likewise.
6299 (movsi_internal1_single): Likewise.
6300 (movhi_internal): Likewise.
6301 (movqi_internal): Likewise.
6302 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6303 attribute for load/store instructions.
6304 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6305 instructions.
6306 (mov<mode>_softfloat): Likewise.
6307 (mov<mode>_hardfloat32): Likewise.
6308 (mov<mode>_hardfloat64): Likewise.
6309 (mov<mode>_softfloat64): Likewise.
6310 (movdi_internal32): Likewise.
6311 (movdi_internal64): Likewise.
6312 (probe_stack_<mode>): Likewise.
6313
63142013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6315
6316 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6317 floating point, and decimal floating point to reload iterator.
6318
6319 * config/rs6000/constraints.md (wl constraint): New constraints to
6320 return FLOAT_REGS if certain options are used to reduce the number
6321 of separate patterns that exist in the file.
6322 (wx constraint): Likewise.
6323 (wz constraint): Likewise.
6324
6325 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6326 -mdebug=reg, print wg, wl, wx, and wz constraints.
6327 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6328 Initialize the reload functions for 64-bit binary/decimal floating
6329 point types.
6330 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6331 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6332 create the buffer on the stack to overcome not having a 32-bit
6333 load and store.
6334 (rs6000_emit_move): Likewise.
6335 (rs6000_secondary_memory_needed_rtx): Likewise.
6336 (rs6000_alloc_sdmode_stack_slot): Likewise.
6337 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6338 via xxlxor, just like DFmode 0.0.
6339
6340 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6341 define as 1 if we are running on a power7 or newer.
6342 (enum r6000_reg_class_enum): Add new constraints.
6343
6344 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6345 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6346 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 6347 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
6348 (movsd splitter): Likewise.
6349 (movsd_hardfloat): Likewise.
6350 (movsd_softfloat): Likewise.
6351
6352 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6353 binary and decimal floating point moves.
6354 (fmove_ok): New attributes to combine binary and decimal floating
6355 point moves, and to combine power6x (mfpgpr) moves along normal
6356 floating moves.
6357 (real_value_to_target): Likewise.
6358 (f32_lr): Likewise.
6359 (f32_lm): Likewise.
6360 (f32_li): Likewise.
6361 (f32_sr): Likewise.
6362 (f32_sm): Likewise.
6363 (f32_si): Likewise.
6364 (movsf): Combine binary and decimal floating point moves. Combine
6365 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 6366 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
6367 (mov<mode> for SFmode/SDmode); Likewise.
6368 (SFmode/SDmode splitters): Likewise.
6369 (movsf_hardfloat): Likewise.
6370 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6371 (movsf_softfloat): Likewise.
6372 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6373
6374 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6375 wx and wz constraints.
6376
6377 * config/rs6000/constraints.md (wg constraint): New constraint to
6378 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6379
6380 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6381 constraint.
6382
6383 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6384 -mdebug=reg, print wg, wl, wx, and wz constraints.
6385 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6386 Initialize the reload functions for 64-bit binary/decimal floating
6387 point types.
6388 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6389 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6390 create the buffer on the stack to overcome not having a 32-bit
6391 load and store.
6392 (rs6000_emit_move): Likewise.
6393 (rs6000_secondary_memory_needed_rtx): Likewise.
6394 (rs6000_alloc_sdmode_stack_slot): Likewise.
6395 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6396 via xxlxor, just like DFmode 0.0.
6397
c6d5ff83
MM
6398 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6399 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6400 with other moves by using conditional constraits (wg). Use LFIWZX
6401 and STFIWX for loading SDmode on power7.
6402 (movdd splitters): Likewise.
6403 (movdd_hardfloat32): Likewise.
6404 (movdd_softfloat32): Likewise.
6405 (movdd_hardfloat64_mfpgpr): Likewise.
6406 (movdd_hardfloat64): Likewise.
6407 (movdd_softfloat64): Likewise.
6408
6409 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6410 64-bit binary and decimal floating point moves.
6411 (FMOVE64X): Likewise.
6412 (movdf): Combine 64-bit binary and decimal floating point moves.
6413 Combine power6x (mfpgpr) moves with other moves by using
6414 conditional constraits (wg).
6415 (mov<mode> for DFmode/DDmode): Likewise.
6416 (DFmode/DDmode splitters): Likewise.
6417 (movdf_hardfloat32): Likewise.
6418 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6419 (movdf_softfloat32): Likewise.
6420 (movdf_hardfloat64_mfpgpr): Likewise.
6421 (movdf_hardfloat64): Likewise.
6422 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6423 (movdf_softfloat64): Likewise.
6424 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6425 (reload_<mode>_load): Move to later in the file so they aren't in
6426 the middle of the floating point move insns.
6427 (reload_<mode>_store): Likewise.
6428
6429 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6430 constraint.
6431
6432 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6433 constraint if -mdebug=reg.
bd059b26
UB
6434 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6435 Enable using dd reload support if needed.
c6d5ff83
MM
6436
6437 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6438 binary and decimal floating point moves in rs6000.md.
6439 (movtd_internal): Likewise.
6440
6441 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6442 decimal floating point moves.
6443 (movtf): Likewise.
6444 (movtf_internal): Likewise.
6445 (mov<mode>_internal, TDmode/TFmode): Likewise.
6446 (movtf_softfloat): Likewise.
6447 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6448
6449 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6450 movdi_internal64, using wg constraint for move direct operations.
6451 (movdi_internal64): Likewise.
6452
6453 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6454 MODES_TIEABLE_P for selected modes. Print the numerical value of
6455 the various virtual registers. Use GPR/FPR first/last values,
6456 instead of hard coding the register numbers. Print which modes
6457 have reload functions registered.
bd059b26
UB
6458 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6459 settings before/after setting cpu, target and subtarget settings.
6460 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6461 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
6462 (rs6000_secondary_reload_fail): Likewise.
6463 (rs6000_secondary_reload_inner): Likewise.
6464
6465 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6466 macros for first/last GPR and FPR registers.
6467 (LAST_GPR_REGNO): Likewise.
6468 (FIRST_FPR_REGNO): Likewise.
6469 (LAST_FPR_REGNO): Likewise.
6470
6471 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6472 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6473 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6474 (vcond<mode><mode>): Likewise.
6475 (vcondu<mode><mode>): Likewise.
6476 (vector_gtu<mode>): Likewise.
6477 (vector_gte<mode>): Likewise.
6478 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 6479 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
6480 (ior<mode>3): Likewise.
6481 (and<mode>3): Likewise.
6482 (one_cmpl<mode>2): Likewise.
6483 (nor<mode>3): Likewise.
6484 (andc<mode>3): Likewise.
6485
6486 * config/rs6000/constraints.md (wt constraint): New constraint
6487 that returns VSX_REGS if TImode is allowed in VSX registers.
6488
6489 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6490 constant under VSX.
6491
6492 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6493 similar to TImode, but it is restricted to being in the GPRs.
6494
6495 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6496 TImode to occupy a single VSX register.
6497
6498 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6499 -mvsx-timode for power7/power8.
6500 (power7 cpu): Likewise.
6501 (power8 cpu): Likewise.
6502
6503 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6504 sure that TFmode/TDmode take up two registers if they are ever
6505 allowed in the upper VSX registers.
6506 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6507 registers.
6508 (rs6000_init_hard_regno_mode_ok): Likewise.
6509 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6510 constraint. Print if LRA is turned on.
6511 (rs6000_option_override_internal): Give an error if -mvsx-timode
6512 and VSX is not enabled.
6513 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6514 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6515 to reg+offset addressing. Use PTImode when checking offset
6516 addresses for validity.
6517 (reg_offset_addressing_ok_p): Likewise.
6518 (rs6000_legitimate_offset_address_p): Likewise.
6519 (rs6000_legitimize_address): Likewise.
6520 (rs6000_legitimize_reload_address): Likewise.
6521 (rs6000_legitimate_address_p): Likewise.
6522 (rs6000_eliminate_indexed_memrefs): Likewise.
6523 (rs6000_emit_move): Likewise.
6524 (rs6000_secondary_reload): Likewise.
6525 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6526 reloads to fpr registers to continue to use reg+offset addressing,
6527 but 64-bit reloads to altivec registers need reg+reg addressing.
6528 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6529 it. Treat LO_SUM like a PLUS operation.
6530 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 6531 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
6532 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6533 registers to share a register with a smaller sized type, since VSX
6534 puts scalars in the upper 64-bits.
6535 (print_operand): Add support for PTImode.
6536 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6537 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6538 registers, but don't have arithmetic support.
6539 (rs6000_memory_move_cost): Add test for VSX.
6540 (rs6000_opt_masks): Add -mvsx-timode.
6541
6542 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6543 for TImode.
6544 (VSs): Likewise.
6545 (VSr): Use wt constraint for TImode.
6546 (VSv): Drop TImode support.
6547 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6548 (vsx_movti_64bit): Likewise.
6549 (vsx_movti_32bit): Likewise.
6550 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6551 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6552 one '?' on the appropriate output constraint. Do not allow TImode
6553 logical operations on 32-bit systems.
6554 (vsx_ior<mode>3): Likewise.
6555 (vsx_xor<mode>3): Likewise.
6556 (vsx_one_cmpl<mode>2): Likewise.
6557 (vsx_nor<mode>3): Likewise.
6558 (vsx_andc<mode>3): Likewise.
6559 (vsx_concat_<mode>): Likewise.
6560 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6561
6562 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6563 OPTION_MASK_VSX_TIMODE.
6564 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6565 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6566
6567 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6568 (TI2 iterator): New iterator for TImode, PTImode.
6569 (wd mode attribute): Add values for vector types.
bd059b26
UB
6570 (movti_string): Replace TI move operations with operations for TImode
6571 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
6572 (mov<mode>_string, TImode/PTImode): Likewise.
6573 (movti_ppc64): Likewise.
6574 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6575 (TI mode splitters): Likewise.
6576
6577 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6578 constraint.
6579
1fc5eced
MG
65802013-03-20 Marc Glisse <marc.glisse@inria.fr>
6581
6582 PR tree-optimization/56355
6583 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6584 Also handle integers with undefined overflow.
6585
22c4c869
CM
65862013-03-20 Catherine Moore <clm@codesourcery.com>
6587 Maciej W. Rozycki <macro@codesourcery.com>
6588 Tom de Vries <tom@codesourcery.com>
6589 Nathan Sidwell <nathan@codesourcery.com>
6590 Iain Sandoe <iain@codesourcery.com>
6591 Nathan Froyd <froydnj@codesourcery.com>
6592 Chao-ying Fu <fu@mips.com>
6593
6594 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 6595 Document new function attributes.
22c4c869
CM
6596 * doc/invoke.texi (minterlink-compressed, mmicromips,
6597 m14k, m14ke, m14kec): Document new options.
6598 (minterlink-mips16): Update documentation.
6599 * doc/md.texi (ZC, ZD): Document new constraints.
6600 * configure.ac (gcc_cv_as_micromips): Check if linker
6601 supports the .set micromips directive.
6602 * configure: Regenerate.
6603 * config.in: Regenerate.
6604 * config/mips/mips-tables.opt: Regenerate.
6605 * config/mips/micromips.md: New file.
6606 * constraints.md (ZC, ZD): New constraints.
6607 * config/mips/predicates.md (movep_src_register): New predicate.
6608 (movep_src_operand): New predicate.
6609 (non_volatile_mem_operand): New predicate.
6610 * config/mips/mips.md (multimem): New type.
6611 (length): Differentiate between 17-bit and 18-bit branch offsets.
6612 (MOVEP1, MOVEP2): New mode iterator.
33159866 6613 (mov_<load>l): Use ZC constraint.
22c4c869
CM
6614 (mov_<load>r): Likewise.
6615 (mov_<store>l): Likewise.
6616 (mov_<store>r): Likewise.
6617 (*branch_equality<mode>_inverted): Add microMIPS support.
6618 (*branch_equality<mode>): Likewise.
6619 (*jump_absolute): Likewise.
6620 (indirect_jump_<mode>): Likewise.
6621 (tablejump_<mode>): Likewise.
6622 (<optab>_internal): Likewise.
6623 (sibcall_internal): Likewise.
6624 (sibcall_value_internal): Likewise.
6625 (prefetch): Use constraint ZD.
6626 * config/mips/mips.opt (minterlink-compressed): New option.
6627 (minterlink-mips16): Now an alias for minterlink-compressed.
6628 (mmicromips): New option.
6629 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6630 (compare_and_swap_12): Likewise.
6631 (sync_add<mode>): Likewise.
6632 (sync_<optab>_12): Likewise.
6633 (sync_old_<optab>_12): Likewise.
6634 (sync_new_<optab>_12): Likewise.
6635 (sync_nand_12): Likewise.
6636 (sync_old_nand_12): Likewise.
6637 (sync_new_nand_12): Likewise.
6638 (sync_sub<mode>): Likewise.
6639 (sync_old_add<mode>): Likewise.
6640 (sync_old_sub<mode>): Likewise.
6641 (sync_new_add<mode>): Likewise.
6642 (sync_new_sub<mode>): Likewise.
6643 (sync_<optab><mode>): Likewise.
6644 (sync_old_<optab><mode>): Likewise.
6645 (sync_new_<optab><mode>): Likewise.
6646 (sync_nand<mode>): Likewise.
6647 (sync_old_nand<mode>): Likewise.
6648 (sync_new_nand<mode>): Likewise.
6649 (sync_lock_test_and_set<mode>): Likewise.
6650 (test_and_set_12): Likewise.
6651 (atomic_compare_and_swap<mode>): Likewise.
6652 (atomic_exchange<mode>_llsc): Likewise.
6653 (atomic_fetch_add<mode>_llsc): Likewise.
6654 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6655 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6656 (umips_save_restore_pattern_p): Likewise.
6657 (umips_load_store_pair_p): Likewise.
6658 (umips_output_load_store_pair): Likewise.
6659 (umips_movep_target_p): Likewise.
6660 (umips_12bit_offset_address_p): Likewise.
6661 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6662 (mips_base_mips16): Rename this...
6663 (mips_base_compression_flags): ...to this. Update all uses.
6664 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6665 (mips_mips16_decl_p): Delete.
6666 (mips_nomips16_decl_p): Delete.
33159866 6667 (mips_get_compress_on_flags): New function.
22c4c869
CM
6668 (mips_get_compress_off_flags): New function.
6669 (mips_get_compress_mode): New function.
6670 (mips_get_compress_on_name): New function.
6671 (mips_get_compress_off_name): New function.
6672 (mips_insert_attributes): Support multiple compression types.
6673 (mips_merge_decl_attributes): Likewise.
6674 (umips_12bit_offset_address_p): New function.
6675 (mips_start_function_definition): Emit .set micromips directive.
6676 (mips_call_may_need_jalx_p): New function.
6677 (mips_function_ok_for_sibcall): Add microMIPS support.
6678 (mips_print_operand_punctuation): Support short delay slots and
6679 compact jumps.
6680 (umips_swm_mask, umips_swm_encoding): New.
6681 (umips_build_save_restore): New function.
6682 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6683 (was_mips16_p): Remove.
6684 (old_compression_mode): New.
6685 (mips_set_compression_mode): New function.
6686 (mips_set_current_function): Add microMIPS support.
6687 (mips_option_override): Likewise.
6688 (umips_save_restore_pattern_p): New function.
6689 (umips_output_save_restore): New function.
6690 (umips_load_store_pair_p_1): New function.
6691 (umips_load_store_pair_p): New function.
6692 (umips_output_load_store_pair_1): New function.
6693 (umips_output_load_store_pair): New function.
6694 (umips_movep_target_p) New function.
6695 (mips_prepare_pch_save): Add microMIPS support.
6696 * config/mips/mips.h (TARGET_COMPRESSION): New.
6697 (TARGET_CPU_CPP_BUILTINS): Update macro
6698 to use new compression flags and to support microMIPS.
6699 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6700 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6701 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6702 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6703 (ASM_SPEC): Support mmicromips and mno-micromips.
6704 (M16STORE_REG_P): New macro.
6705 (MIPS_CALL): Support TARGET_MICROMIPS.
6706 (MICROMIPS_J): New macro.
6707 (mips_base_mips16): Rename this...
6708 (mips_base_compression_flags): ...to this.
6709 (UMIPS_12BIT_OFFSET_P): New macro.
6710 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6711 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
67122013-03-20 Richard Biener <rguenther@suse.de>
6713
6714 PR tree-optimization/56661
6715 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6716 the result does not have to be distinct.
6717
54714c68
RB
67182013-03-20 Richard Biener <rguenther@suse.de>
6719
6720 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6721 remap_gimple_op_r.
6722
cca1130d
BS
67232013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6724 Steven Bosscher <steven@gcc.gnu.org>
6725
6726 PR rtl-optimization/56605
6727 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6728
2a930377
UB
67292013-03-20 Uros Bizjak <ubizjak@gmail.com>
6730
6731 PR bootstrap/56656
6732 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6733 that require movd instead of movq.
6734
d6d305fe
RB
67352013-03-20 Richard Biener <rguenther@suse.de>
6736
6737 * tree-ssa-structalias.c (struct variable_info): Add pointer
6738 to the first field of an aggregate with sub-vars. Make
6739 this and the pointer to the next subfield its ID.
6740 (vi_next): New function.
6741 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6742 storedanything_id, integer_id): Increment by one.
6743 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6744 get_call_clobber_vi): Adjust.
6745 (solution_set_expand): Simplify and speedup.
6746 (solution_set_add): Inline into ...
6747 (set_union_with_increment): ... this. Adjust accordingly.
6748 (do_sd_constraint): Likewise.
6749 (do_ds_constraint): Likewise.
6750 (do_complex_constraint): Simplify.
6751 (build_pred_graph): Adjust.
6752 (solve_graph): Likewise. Simplify and speedup.
6753 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6754 get_constraint_for_component_ref, get_constraint_for_1,
6755 first_vi_for_offset, first_or_preceding_vi_for_offset,
6756 create_function_info_for, create_variable_info_for_1,
6757 create_variable_info_for, intra_create_variable_infos): Adjust.
6758 (init_base_vars): Push NULL for ID zero.
6759 (compute_points_to_sets): Adjust.
6760
a271b42d
RB
67612013-03-20 Richard Biener <rguenther@suse.de>
6762
6763 * cfgloop.c (verify_loop_structure): Streamline and avoid
6764 ICEing on corrupt loop tree.
6765 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6766 loop tree.
6767
ebd65954
RB
67682013-03-20 Richard Biener <rguenther@suse.de>
6769
6770 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6771 check whether an SSA update is needed.
6772
4547b7ee
RS
67732013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6774
6775 * config/mips/constraints.md (T): Rename to...
6776 (Yf): ...this.
6777 (U): Rename to...
6778 (Yd): ...this.
6779 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6780 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6781
0b8cdc58
IB
67822013-03-19 Ian Bolton <ian.bolton@arm.com>
6783
6784 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6785 (*subsi3_carryin_uxtw): Likewise.
6786
5977a10d
IB
67872013-03-19 Ian Bolton <ian.bolton@arm.com>
6788
6789 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6790 (*rorsi3_insn_uxtw): Likewise.
6791
bd83ff2c
IB
67922013-03-19 Ian Bolton <ian.bolton@arm.com>
6793
6794 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6795 (*extrsi5_insn_uxtw): Likewise.
6796
ba65123c
RB
67972013-03-19 Richard Biener <rguenther@suse.de>
6798
6799 PR tree-optimization/56273
6800 * passes.c (init_optimization_passes): Move second VRP after DOM.
6801
2eac0476
UB
68022013-03-19 Uros Bizjak <ubizjak@gmail.com>
6803
6804 * config/i386/i386.md (*movti_internal): Merge from
6805 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6806 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6807 nox64 isa attributes.
6808
6e55eda7
RB
68092013-03-18 Richard Biener <rguenther@suse.de>
6810
6811 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6812 (unite): Likewise.
6813 (merge_node_constraints): Likewise.
6814 (build_succ_graph): Likewise.
6815 (valid_graph_edge): Inline into single caller.
6816 (unify_nodes): Likewise. Use bitmap_set_bit return value
6817 and cache varinfo.
6818 (scc_visit): Fix formatting and variable use.
6819 (do_sd_constraint): Use gcc_checking_assert.
6820 (do_ds_constraint): Likewise.
6821 (do_complex_constraint): Likewise.
6822 (condense_visit): Likewise. Cleanup.
6823 (dump_pred_graph): New function.
6824 (perform_var_substitution): Dump the pred-graph before
6825 variable substitution.
6826 (find_equivalent_node): Use gcc_checking_assert.
6827 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6828
4bdd44c4
RB
68292013-03-18 Richard Biener <rguenther@suse.de>
6830
6831 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6832 Remove cond_expr_stmt_list argument and do not gimplify the
6833 built expression.
6834 (vect_loop_versioning): Adjust.
6835 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6836 Cleanup to use less temporaries.
6837 (vect_create_data_ref_ptr): Cleanup.
6838
38c56a5b
JJ
68392013-03-18 Jakub Jelinek <jakub@redhat.com>
6840
6841 PR tree-optimization/56635
6842 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6843 require types_compatible_p types.
6844
20b2e6a0
NC
68452013-03-18 Nick Clifton <nickc@redhat.com>
6846
a6178a25
NC
6847 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6848 spurious backslash.
6849
20b2e6a0
NC
6850 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6851 Add missing line to comment describing function.
6852
92608d0e
RB
68532013-03-18 Richard Biener <rguenther@suse.de>
6854
6855 PR tree-optimization/56210
6856 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6857 Handle string / character search functions.
6858 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6859
31348d52
RB
68602013-03-18 Richard Biener <rguenther@suse.de>
6861
6862 PR middle-end/56483
6863 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6864 and implement properly.
6865 * gimple.h (gimple_cond_single_var_p): Remove.
6866
fcac74a1
RB
68672013-03-18 Richard Biener <rguenther@suse.de>
6868
6869 * tree-data-ref.h (find_data_references_in_loop): Declare.
6870 * tree-data-ref.c (get_references_in_stmt): Use a stack
6871 vector pre-allocated in the callers.
6872 (find_data_references_in_stmt): Adjust.
6873 (graphite_find_data_references_in_stmt): Likewise.
6874 (create_rdg_vertices): Likewise.
6875 (find_data_references_in_loop): Export.
6876 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6877 Compute dependences here...
6878 (vect_analyze_data_refs): ...not here. When we encounter
6879 a non-vectorizable data reference in basic-block vectorization
6880 truncate the data reference vector. Do not bother to
6881 fixup data-dependence information for gather loads.
6882 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6883 of data references, as reported.
6884
0d5a1b56
RB
68852013-03-18 Richard Biener <rguenther@suse.de>
6886
6887 PR tree-optimization/3713
6888 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6889 has_constants and expr.
6890 (stmt_has_constants): Properly valueize SSA names when deciding
6891 whether the stmt has constants.
6892
789c34e3
RB
68932013-03-18 Richard Biener <rguenther@suse.de>
6894
6895 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6896 whole function when there is nothing to do.
6897 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6898 * tree-vectorizer.c (vectorize_loops): Update virtual and
6899 loop-closed SSA once.
6900 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6901
076b4605
RB
69022013-03-18 Richard Biener <rguenther@suse.de>
6903
6904 PR middle-end/56113
6905 * domwalk.c (bb_postorder): New global static.
6906 (cmp_bb_postorder): New function.
6907 (walk_dominator_tree): Replace scheme imposing an order for
6908 visiting dominator sons by one sorting them at the time they
6909 are pushed on the stack.
6910
bdb01696
RB
69112013-03-18 Richard Biener <rguenther@suse.de>
6912
6913 PR tree-optimization/39326
6914 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6915 (struct mem_ref): Replace mem member with ao_ref typed member.
6916 (MEM_ANALYZABLE): Adjust.
6917 (memref_eq): Likewise.
6918 (mem_ref_alloc): Likewise.
6919 (gather_mem_refs_stmt): Likewise.
6920 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6921 (execute_sm_if_changed_flag_set): Adjust.
6922 (execute_sm): Likewise.
6923 (ref_always_accessed_p): Likewise.
6924 (refs_independent_p): Likewise.
6925 (can_sm_ref_p): Likewise.
6926
12d2dc5e
JJ
69272013-03-18 Jakub Jelinek <jakub@redhat.com>
6928
6929 PR c/56566
6930 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6931 return 1 even for !unsignedp.
6932
286fb677
UB
69332013-03-17 Uros Bizjak <ubizjak@gmail.com>
6934
6935 * config/i386/i386.md (isa): Add x64 and nox64.
6936 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6937 (*pushtf): Enable *roF alternative for x64 isa only.
6938 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6939 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6940 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6941 (*movtf_internal): Merge from *movtf_internal_rex64 and
6942 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6943 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6944 nox64 isa attributes.
6945 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6946 nox64 isa attributes.
6947 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6948
88b97037
UB
69492013-03-17 Uros Bizjak <ubizjak@gmail.com>
6950
6951 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6952
9f4f1735
JJ
69532013-03-17 Jakub Jelinek <jakub@redhat.com>
6954
6955 PR target/56640
6956 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6957 class names. Remove trailing comma after "ALL_REGS".
6958
48f4a6fa
JH
69592013-03-16 Jan Hubicka <jh@suse.cz>
6960
6961 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6962 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6963 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6964 of cgraph_get_create_node.
6965 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6966
98e81123
JM
69672013-03-16 Jason Merrill <jason@redhat.com>
6968
6969 PR debug/49090
6970 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6971 with DW_AT_default_value.
6972
8a298c04
JJ
69732013-03-16 Jakub Jelinek <jakub@redhat.com>
6974
6975 * BASE-VER: Set to 4.9.0.
6976
4323afa0
AK
69772013-03-14 Andi Kleen <ak@linux.intel.com>
6978
6979 PR target/56619
6980 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6981 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6982 Document _x* TSX intrinsics.
6983
b3c0d469
JJ
69842013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6985 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
6986
6987 * configure.ac: Add MicroBlaze TLS support detection.
6988 * configure: Regenerate.
88b97037
UB
6989 * config/microblaze/microblaze-protos.h
6990 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6991 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6992 * config/microblaze/microblaze.c (microblaze_address_type): Add
6993 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
6994 (microblaze_address_info): Add tls_reloc.
6995 (TARGET_HAVE_TLS): Define.
6996 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6997 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
6998 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6999 load_tls_operand, microblaze_call_tls_get_addr,
7000 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7001 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7002 (get_base_reg): Use microblaze_tls_symbol_p.
7003 (microblaze_classify_address): Handle TLS.
88b97037
UB
7004 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7005 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7006 (microblaze_legitimize_address): Handle TLS.
7007 (microblaze_address_insns): Handle ADDRESS_TLS.
7008 (pic_address_needs_scratch): Handle TLS.
7009 (print_operand_address): Handle TLS.
7010 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7011 (microblaze_expand_move): Handle TLS.
88b97037
UB
7012 (microblaze_legitimate_constant_p): Check
7013 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7014 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7015 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7016 (PIC_OFFSET_TABLE_REGNUM): Set.
7017 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7018 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7019 (addsi3, movsi_internal2, movdf_internal): Update constraints
7020 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7021 (move_operand): Redefine as move_src_operand,
7022 check microblaze_tls_referenced_p.
8cc9a5a5 7023
d803a491
IB
70242013-03-14 Ian Bolton <ian.bolton@arm.com>
7025
7026 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7027 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7028
a8504f22
IB
70292013-03-14 Ian Bolton <ian.bolton@arm.com>
7030
7031 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7032 CC mode for AND.
7033
df2dfaea
JJ
70342013-03-14 Jakub Jelinek <jakub@redhat.com>
7035
fbd28bc3
JJ
7036 PR tree-optimization/53265
7037 * common.opt (Waggressive-loop-optimizations): New option.
7038 * tree-ssa-loop-niter.c: Include tree-pass.h.
7039 (do_warn_aggressive_loop_optimizations): New function.
7040 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7041 if number_of_latch_executions returned constant.
7042 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7043 early. If number_of_latch_executions returned constant, set
7044 nb_iterations_upper_bound back to it.
7045 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7046 field.
7047 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7048 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7049
df2dfaea
JJ
7050 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7051 (MULTILIB_OSDIRNAMES): Set.
7052 * genmultilib: If defaultosdirname doesn't start with :: , set
7053 defaultosdirname2 instead, clear it and emit two . multilib_raw
7054 entries instead of just one.
7055
ee0d2b68
KK
70562013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7057
7058 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7059 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7060 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7061 (SUBTARGET_OVERRIDE_OPTIONS): New.
7062
decc676e
OE
70632013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7064
7065 PR target/49880
7066 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7067 (musermode): Convert to Var(TARGET_USERMODE).
7068 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7069 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7070 * config/sh/sh.c (sh_option_override): Use
7071 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7072 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7073 condition.
7074 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7075 TARGET_SH4.
7076 (udivsi3_i4_single, divsi3_i4_single): Use
7077 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7078
f4b719c7
DK
70792013-03-13 Dave Korn <dave.korn.cygwin@....>
7080
7081 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7082 default setting.
7083
c40eced0
RB
70842013-03-13 Richard Biener <rguenther@suse.de>
7085
7086 PR tree-optimization/56608
7087 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7088 calls when vectorizing basic-blocks.
7089
1bfa5973
JJ
70902013-03-13 Jakub Jelinek <jakub@redhat.com>
7091
7092 PR plugins/45078
7093 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7094 tm_file.
7095
6fcf5434
JJ
70962013-03-12 Jakub Jelinek <jakub@redhat.com>
7097
7098 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7099
4f38fa8c
JH
71002013-03-11 Jan Hubicka <jh@suse.cz>
7101
7102 PR lto/56557
7103 * lto-streamer-out.c (output_symbol_p): Skip references from
7104 constructors of external variables.
7105
c5c5ba89
JH
71062013-03-11 Jan Hubicka <jh@suse.cz>
7107
7108 PR middle-end/56571
7109 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7110 from pseudos.
7111 * emit-rtl.c (verify_rtx_sharing): Likewise.
7112 (copy_insn_1): Likewise.
7113 * rtl.c (copy_rtx): Likewise.
7114
c2a939b1
GJL
71152013-03-11 Georg-Johann Lay <avr@gjlay.de>
7116
7117 PR target/56591
7118 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7119 output_operand_lossage message.
88b97037 7120
3c3279fb
RE
71212013-03-11 Richard Earnshaw <rearnsha@arm.com>
7122
7123 PR target/56470
7124 * arm.c (shift_op): Validate RTL pattern on the fly.
7125 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7126 the RTL.
7127
aef5ef9d
JDA
71282013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7129
7130 PR target/56347
7131 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7132 new call patterns that clobber %fr12.
7133 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7134 split and postreload patterns.
7135 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7136 registers %fr12 and %fr12R as call used.
7137
456610d3
SB
71382013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7139
7140 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7141 (canon_address, record_store, replace_read, check_mem_read_rtx,
7142 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7143 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7144 rest_of_handle_dse): Likewise.
7145
4b1baac8
RS
71462013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7147
7148 PR middle-end/56524
7149 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7150 Add base_optabs.
7151 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7152 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7153 (save_optabs_if_changed): Replace with...
7154 (init_tree_optimization_optabs): ...this.
7155 * optabs.c (save_optabs_if_changed): Rename to...
7156 (init_tree_optimization_optabs): ...this. Take the optimization node
7157 as argument. Do nothing if the base optabs are already correct.
7158 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7159 to recompute optabs.
7160 * function.h (function): Remove optabs field.
7161 * function.c (invoke_set_current_function_hook): Call
7162 init_tree_optimization_optabs. Use the result to initialize
7163 this_fn_optabs.
7164
b7a78683
AH
71652013-02-27 Aldy Hernandez <aldyh@redhat.com>
7166
7167 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7168 if GTMA_HAS_NO_INSTRUMENTATION.
7169 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7170 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7171 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7172 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7173 GTMA_HAS_NO_INSTRUMENTATION.
7174
6384c29b
JJ
71752013-03-08 Jakub Jelinek <jakub@redhat.com>
7176
7177 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7178 libasan_preinit.o.
7179
ecd4f20a
MP
71802013-03-08 Marek Polacek <polacek@redhat.com>
7181 Jakub Jelinek <jakub@redhat.com>
7182
7183 PR tree-optimization/56478
7184 * predict.c (is_comparison_with_loop_invariant_p): Change the
7185 type of loop_step to tree.
7186 (predict_loops): Adjust.
7187 (predict_iv_comparison): Perform the computations on double_ints.
7188
64366d35
RB
71892013-03-08 Richard Biener <rguenther@suse.de>
7190
7191 PR tree-optimization/56570
7192 * tree-cfg.c (verify_expr_location_1): Verify locations for
7193 DECL_DEBUG_EXPR.
7194 * tree-sra.c (create_access_replacement): Strip locations
7195 from DECL_DEBUG_EXPRs.
7196
a9d5a059
RB
71972013-03-08 Richard Biener <rguenther@suse.de>
7198
7199 * tree-inline.c (expand_call_inline): Do not associate
7200 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7201 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7202
b7aa4e9a
RB
72032013-03-08 Richard Biener <rguenther@suse.de>
7204
7205 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7206 or block changes with -Og. Fix for location / block encoding
7207 changes and PHI arguments with locations.
7208
c4c2f9fa
SB
72092013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7210
7211 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7212 for all counters.
7213 (struct output_info): Likewise.
7214 (register_overhead): Remove bad gcc_assert.
7215 (bitmap_find_bit): If there is only a single bitmap element, do not
7216 count a miss as a search.
7217 (print_statistics): Update for counter type changes.
7218 (dump_bitmap_statistics): Likewise. Print headers such that they
7219 are properly lined up with the printed counters.
7220
5bf6606a
JJ
72212013-03-07 Jakub Jelinek <jakub@redhat.com>
7222
7223 PR tree-optimization/56559
7224 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7225 check that it has only a single use.
7226
2c653d46
RB
72272013-03-07 Richard Biener <rguenther@suse.de>
7228
7229 * doc/invoke.texi (fwhole-program): Discourage use in combination
7230 with -flto.
7231
a72d8780
JJ
72322013-03-06 Jakub Jelinek <jakub@redhat.com>
7233
01a454df
JJ
7234 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7235
c1781047
JJ
7236 PR tree-optimization/56539
7237 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7238 instead of GSI_CONTINUE_LINKING as last argument to
7239 force_gimple_operand_gsi. Adjust function comment.
7240
9772c47a
JJ
7241 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7242 aarch64-cores.def.
7243
a72d8780
JJ
7244 PR middle-end/56548
7245 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7246 promoted mode, convert the result back to the original mode.
7247
fa5556de
RB
72482013-03-06 Richard Biener <rguenther@suse.de>
7249
7250 PR middle-end/56294
7251 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7252 (insert_updated_phi_nodes_compare_uids): New function.
7253 (update_ssa): Sort symbols_to_rename after UID before
7254 traversing it to insert PHI nodes.
7255
010403d1
RB
72562013-03-06 Richard Biener <rguenther@suse.de>
7257
7258 PR middle-end/50494
7259 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7260 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7261
7262 Revert
7263 2013-02-13 Richard Biener <rguenther@suse.de>
7264
7265 PR lto/50494
7266 * varasm.c (output_constant_def_1): Get the decl representing
7267 the constant as argument.
7268 (output_constant_def): Wrap output_constant_def_1.
7269 (make_decl_rtl): Use output_constant_def_1 with the decl
7270 representing the constant.
7271 (build_constant_desc): Optionally re-use a decl already
7272 representing the constant.
7273 (tree_output_constant_def): Adjust.
7274
3c27ce4c
JY
72752013-03-06 Joey Ye <joey.ye@arm.com>
7276
7277 PR lto/50293
7278 * gcc.c (convert_white_space): New function.
7279 (main): Handles white space in function name.
7280
8f6d1c86
OE
72812013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7282
7283 PR target/56529
7284 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7285 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7286 to SH_DIV_CALL_TABLE for TARGET_SH2.
7287 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7288 list.
7289 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7290 call-table options.
7291
798a209f
SA
72922013-03-05 Sterling Augustine <saugustine@google.com>
7293 Cary Coutant <ccoutant@google.com>
7294
7295 PR debug/55364
7296 * dwarf2out.c (resolve_addr): Don't call
7297 remove_loc_list_addr_table_entries a second time for the same
7298 expression.
7299
6cfa417f 73002013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 7301
6cfa417f
JJ
7302 PR debug/56510
7303 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7304 (avoid_complex_debug_insns): New function.
7305 (expand_debug_locations): Call it.
7306
7307 PR rtl-optimization/56484
7308 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7309 lifetimes of hard registers on small register class machines.
7310
73112013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7312
7313 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 7314 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 7315 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
7316 fast_interrupt.
7317 (microblaze_fast_interrupt_function_p): New function.
7318 (microblaze_is_interrupt_handler): Rename to
7319 microblaze_is_interrupt_variant and add fast_interrupt check.
7320 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7321 (save_restore_insns): Likewise.
7322 (compute_frame_size): Likewise.
7323 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7324 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
7325 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7326 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
7327 microblaze_is_interrupt_variant.
7328
731aefac
KT
73292013-03-05 Kai Tietz <ktietz@redhat.com>
7330
7331 * sdbout.c (sdbout_one_type): Switch to current function's section
7332 supporting cold/hot.
7333
a72d8780 73342013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
7335
7336 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7337 -mxl-reorder.
7338
334e71e8
JJ
73392013-03-05 Jakub Jelinek <jakub@redhat.com>
7340
0b50e654
JJ
7341 PR middle-end/56461
7342 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7343 if VALGRIND_GET_VBITS is defined, temporarily make object
7344 memory all defined, and restore previous valgrind addressability
7345 and definability afterwards. Free this_object at the end.
7346
4ccf8f43
JJ
7347 PR middle-end/56461
7348 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7349 right before calling lra_create_live_ranges, also call it
7350 when clearing live_p. Only call lra_clear_live_ranges
7351 at the end if live_p.
7352
334e71e8
JJ
7353 PR middle-end/56461
7354 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7355
9ca966ca
RB
73562013-03-05 Richard Biener <rguenther@suse.de>
7357
7358 PR tree-optimization/56521
7359 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7360 value-id.
7361
d273b176
SB
73622013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7363
7364 PR c++/55135
7365 * except.h (remove_unreachable_eh_regions): New prototype.
7366 * except.c (remove_eh_handler_splicer): New function, split out
7367 of remove_eh_handler.
7368 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7369 warning about running it on many EH regions one at a time.
7370 (remove_unreachable_eh_regions_worker): New function, walk the
7371 EH tree in depth-first order and remove non-marked regions.
7372 (remove_unreachable_eh_regions): New function.
7373 * tree-eh.c (mark_reachable_handlers): New function, split out
7374 from remove_unreachable_handlers.
7375 (remove_unreachable_handlers): Use mark_reachable_handlers and
7376 remove_unreachable_eh_regions.
7377 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7378 and remove_unreachable_eh_regions.
7379
5e7f1aef
RB
73802013-03-05 Richard Biener <rguenther@suse.de>
7381
7382 PR middle-end/56525
7383 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7384 not freeing them until the end.
7385
f276b762
AK
73862013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7387
7388 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7389
12a43ab8
RB
73902013-03-05 Richard Biener <rguenther@suse.de>
7391
7392 PR tree-optimization/56270
7393 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7394 of loads after scheduling an SLP instance.
7395
93675444
JJ
73962013-03-05 Jakub Jelinek <jakub@redhat.com>
7397
db4138e3
JJ
7398 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7399 tic6x.exp.
7400 (check_gcc_parallelize): Run guality.exp as a separate job from
7401 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7402 struct-layout-1.exp with stackalign.exp.
7403
dd3d1ec0
JJ
7404 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7405
b8d381a3
JJ
7406 PR middle-end/56461
7407 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7408 load_index sbitmap even if some bit in it isn't set.
7409
b4f9786b
JJ
7410 PR middle-end/56461
7411 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7412 (discover_iteration_bound_by_body_walk): Change queues to
7413 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7414 spelling in comment. Call safe_push on queues[bound_index] directly.
7415 Release queues[queue_index] in every iteration unconditionally.
7416 Release bounds vector.
7417
93675444
JJ
7418 PR middle-end/56461
7419 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7420 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7421 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7422 inner_phis vector.
7423
3e492e9c
RB
74242013-03-05 Richard Biener <rguenther@suse.de>
7425
7426 PR lto/56515
7427 * tree-inline.c (remap_blocks_to_null): New function.
7428 (expand_call_inline): When expanding a call stmt without
7429 an associated block inline remap all callee blocks to NULL.
7430
a5d1569a
JJ
74312013-03-05 Jakub Jelinek <jakub@redhat.com>
7432
86efb5cd
JJ
7433 PR rtl-optimization/56494
7434 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7435 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7436 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7437
85f5dbea
JJ
7438 PR middle-end/56461
7439 * sel-sched-ir.c (free_sched_pools): Release
7440 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7441 if succs_info_pool.max_top isn't -1.
7442
a5d1569a
JJ
7443 PR bootstrap/56509
7444 * opts.c (opts_obstack, opts_concat): Moved to...
7445 * opts-common.c (opts_obstack, opts_concat): ... here.
7446
4432aa6c
JJ
74472013-03-04 Jakub Jelinek <jakub@redhat.com>
7448
7449 PR middle-end/56461
7450 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7451
f3a1fb91
MJ
74522013-03-04 Martin Jambor <mjambor@suse.cz>
7453
7454 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7455 all appropriate places.
7456
22110e6c
EB
74572013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7458
7459 PR tree-optimization/56424
7460 * ipa-split.c (split_function): Do not set the RSO flag if result is
7461 not by reference and its type is a register type.
7462
a72d8780 74632013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 7464
88b97037 7465 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 7466 (microblaze_legitimate_pic_operand): Likewise
88b97037 7467 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
7468 new function microblaze_legitimate_pic_operand
7469 * config/microblaze/microblaze-protos.h
7470 (microblaze_legitimate_pic_operand): Declare.
7471
a72d8780 74722013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 7473
a72d8780 7474 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 7475 New predicate for supported rtx code types.
a72d8780 7476 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
7477 call_insn_simple_operand predicate.
7478
541d9ac8
JJ
74792013-03-04 Jakub Jelinek <jakub@redhat.com>
7480
5eb010bc
JJ
7481 PR middle-end/56461
7482 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7483 partitions.ordered_remove.
7484
30862efc
JJ
7485 PR middle-end/56461
7486 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7487 vec_oprnds0.create (1) for modifier == NONE.
7488
8930f723
JJ
7489 PR middle-end/56461
7490 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7491 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7492 vec_oprnds1 right before pushing anything to it for
7493 scalar_shift_arg.
7494
541d9ac8
JJ
7495 PR middle-end/56461
7496 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7497 set nbbs to 0 instead of having separate code path.
7498 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7499 instead of false as last argument if returning NULL.
7500
7aa7f2e3
SL
75012013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7502
7503 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7504 the attribute is now called "target" instead of "option".
7505 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7506 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7507 attribute/pragma name for TARGET_OPTION_VALID_P and
7508 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7509 * doc/tm.texi: Regenerated.
7510
8930f723 75112013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 7512
8930f723 7513 * config/microblaze/microblaze.c:
cb8a1637 7514 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
7515 * config/microblaze/microblaze.h: Add -mxl-reorder to
7516 DRIVER_SELF_SPECS.
7517 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7518 instructions emitted if TARGET_REORDER.
88b97037
UB
7519 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7520 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 7521 separately.
cb8a1637 7522
4dc1d68c
XDL
75232013-03-01 Xinliang David Li <davidxl@google.com>
7524
7525 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7526 walk length.
7527
689eaba3
JJ
75282013-03-01 Jakub Jelinek <jakub@redhat.com>
7529
9d676bf6
JJ
7530 PR middle-end/56461
7531 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7532 vector even when returning true. Fix up function comment formatting.
7533
caff7edf
JJ
7534 PR middle-end/56461
7535 * ira-build.c (ira_loop_nodes_count): New variable.
7536 (create_loop_tree_nodes): Initialize it.
7537 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7538
b6b9227d
JJ
7539 PR middle-end/56461
7540 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7541 method on dr_chain and result_chain.
7542 * tree-vect-stmts.c (vectorizable_store): Only call
7543 result_chain.create if j == 0.
7544
689eaba3
JJ
7545 PR middle-end/56461
7546 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7547 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7548 before overwriting it.
7549
40bf31ed
TB
75502013-03-01 Tobias Burnus <burnus@net-b.de>
7551
7552 * doc/extended.texi (C Extensions): Change order in @menu
7553 to match @node.
7554 (Other MIPS Built-in Functions): Move last MIPS entry before
7555 "picoChip Built-in Functions".
7556 (SH Built-in Functions): Move after RX Built-in Functions.
7557 * doc/gcc.texi (Introduction): Change order in @menu
7558 to match @node.
7559 * doc/md.texi (Constraints): Ditto.
7560 * gty.texi (Type Information): Ditto.
7561 (User-provided marking routines for template types): Make
7562 subsection.
7563 * doc/invoke.texi (AArch64 Options): Move before
7564 "Adapteva Epiphany Options".
7565
e664c61c
KS
75662013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7567 Jakub Jelinek <jakub@redhat.com>
7568
7569 PR sanitizer/56454
7570 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7571 no_address_safety_analysis attribute.
7572 * doc/extend.texi (no_address_safety_attribute): Rename to
7573 no_sanitize_address attribute, mention no_address_safety_analysis
7574 attribute as deprecated alias.
7575
37b5ec8f
JJ
75762013-02-28 Jakub Jelinek <jakub@redhat.com>
7577
7578 PR middle-end/56461
7579 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7580 type to vec<vec<tree> > *.
7581 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7582 to be vec<tree> instead of vec<tree> *, set vec_defs
7583 to vNULL and call vec_defs.create (number_of_vects), adjust other
7584 uses of vec_defs.
7585 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7586 vectorizable_condition): Adjust vect_get_slp_defs callers.
7587
ba96cdfb
JG
75882013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7589
7590 * config/aarch64/aarch64.c
7591 (aarch64_float_const_representable): Remove unused variable.
7592
6f549691
JG
75932013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7594
7595 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7596
af55e82d
JG
75972013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7598
7599 * config/aarch64/aarch64-builtins.c
7600 (aarch64_init_simd_builtins): Make static.
7601
1df3f464
JG
76022013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7603
7604 * config/aarch64/aarch64.c
7605 (aarch64_simd_make_constant): Make static.
7606
f8f42513
MJ
76072013-02-28 Martin Jambor <mjambor@suse.cz>
7608
7609 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7610 with no initialization to the RHS of debug statements.
7611
b48b3fc4
MJ
76122013-02-28 Martin Jambor <mjambor@suse.cz>
7613
7614 PR tree-optimization/56294
7615 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7616 Adjust dumping.
7617 (get_access_replacement): Do not call create_access_replacement.
7618 Assert a replacement exists.
7619 (get_repl_default_def_ssa_name): Create the replacement declaration
7620 itself.
7621
c3ae224c
RR
76222013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7623
7624 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7625 final_end_function.
7626
45fa0eef
MP
76272013-02-28 Marek Polacek <polacek@redhat.com>
7628
7629 PR rtl-optimization/56466
7630 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7631 if we're changing a loop.
7632 (peel_loops_completely): Likewise.
7633
502c067d
PC
76342013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7635
7636 PR c++/55813
7637 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7638
ff24afc8
GJL
76392013-02-28 Georg-Johann Lay <avr@gjlay.de>
7640
7641 PR target/56445
7642 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7643 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7644 INTX_FTYPE_FX, FX_FTYPE_INTX.
7645 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7646
c7b1fc1b
GJL
76472013-02-28 Georg-Johann Lay <avr@gjlay.de>
7648
7649 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7650 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7651 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7652 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7653 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7654 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7655 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7656 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7657 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7658 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7659 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7660 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7661 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7662 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7663 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7664 (avrxmega6): Increase max flash segments from 5 to 6.
7665 * config/avr/t-multilib: Regenerate.
7666 * config/avr/avr-tables.opt: Regenerate.
7667 * doc/avr-mmcu.texi: Regenerate.
7668
4a0e3cfe
GJL
76692013-02-28 Georg-Johann Lay <avr@gjlay.de>
7670
7671 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7672 (avr_device_to_arch): Rename to avr_device_to_ld.
7673 (avr_device_to_as): New prototype.
7674 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7675 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7676 * config/avr/driver-avr.c (avr_device_to_as): New.
7677 (avr_device_to_arch): Rename to avr_device_to_ld.
7678
97785e52
JJ
76792013-02-27 Jakub Jelinek <jakub@redhat.com>
7680
3f292312
JJ
7681 PR middle-end/56461
7682 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7683 method on dr_chain and result_chain.
7684
a344216b
JJ
7685 PR middle-end/56461
7686 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7687 pointer_set_destroy on not_executed_last_iteration.
7688
f121ad02 7689 PR middle-end/56461
88b97037 7690 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 7691
307f83a3
JJ
7692 PR middle-end/56461
7693 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7694 FOR_EACH_DEFINED_FUNCTION when freeing state.
7695
e19624ee
JJ
7696 PR middle-end/56461
7697 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7698 pool_free.
7699 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7700 overwriting it.
7701
90e709fd
JJ
7702 PR middle-end/56461
7703 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7704 known_aggs[i].items and release known_aggs vector.
7705
97785e52
JJ
7706 PR middle-end/56461
7707 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7708
77092013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 7710
97785e52
JJ
7711 * config/microblaze/microblaze.c (microblaze_emit_compare):
7712 Use xor for EQ/NE comparisions.
7713 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7714 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 7715
6fa5e0ed
JJ
77162013-02-27 Jakub Jelinek <jakub@redhat.com>
7717
7718 PR middle-end/56461
7719 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7720 vector.
7721 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7722 vec_safe_push, always update *slot.
7723 (redirect_edge_var_map_clear): Use vec_free.
7724 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7725 (free_var_map_entry): Use vec_free.
7726 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7727 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7728
436a956a
AB
77292013-02-27 Andrey Belevantsev <abel@ispras.ru>
7730
7731 PR middle-end/45472
436a956a
AB
7732 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7733 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
7734 Reorder tests for speculativeness in the logical and operator.
7735
f5c2caca
JJ
77362013-02-27 Jakub Jelinek <jakub@redhat.com>
7737
0fcb564b
JJ
7738 * incpath.c (add_standard_paths): Use reconcat instead of concat
7739 where appropriate and avoid leaking memory.
7740
dc357798
JJ
7741 * opts.h: Include obstack.h.
7742 (opts_concat): New prototype.
7743 (opts_obstack): New declaration.
7744 * opts.c (opts_concat): New function.
7745 (opts_obstack): New variable.
7746 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7747 (finish_options): Use opts_concat instead of concat
7748 and XOBNEWVEC instead of XNEWVEC.
7749 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7750 generate_option): Likewise.
7751 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7752 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7753
f5c2caca
JJ
7754 PR target/56455
7755 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7756 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7757
d0163673
JJ
77582013-02-26 Jakub Jelinek <jakub@redhat.com>
7759
7760 PR middle-end/56461
7761 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7762
b5ad2b8e
JR
77632013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7764
7765 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7766 (arm_block_move_unaligned_straight): Likewise.
7767 (arm_adjust_block_mem): Likewise.
7768
9b639e2c
JR
77692013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7770
7771 PR target/48901
7772 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7773 temp, cond and label.
7774 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7775
e13a0ccb
JR
7776 PR target/52500
7777 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7778 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7779
fbe4f171
JR
7780 PR target/52501
7781 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7782 of prologue/epilogue functions.
7783
ae006543
JR
7784 PR target/52550
7785 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7786 Remove unused variable cfa_offset.
7787 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7788
c81369fa
JR
7789 PR target/54639
7790 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7791 type promotion to unsigned.
7792
f8a8fea7
JR
7793 PR target/54640
7794 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7795 for HOST_WIDE_INT of 32 bit / same size as int.
7796 (arm_block_move_unaligned_straight): Likewise.
7797 (arm_adjust_block_mem): Likewise.
7798
f8be5169
JR
7799 PR target/54662
7800 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7801 ALL_CFLAGS.
7802
f1ad3354
MP
78032013-02-26 Marek Polacek <polacek@redhat.com>
7804
7805 PR tree-optimization/56426
88b97037 7806 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 7807
a6af0f42
RB
78082013-02-26 Richard Biener <rguenther@suse.de>
7809
7810 PR target/56444
7811 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7812 unused variable loops.
7813
aca43c6c
JJ
78142013-02-26 Jakub Jelinek <jakub@redhat.com>
7815
cecbe5d9
JJ
7816 PR tree-optimization/56448
7817 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7818 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7819 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7820 later operands of the references, or even first operand for
7821 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7822
aca43c6c
JJ
7823 PR tree-optimization/56443
7824 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7825 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7826 to type_for_mode langhook.
7827
53e2e141
MT
78282013-02-25 Matt Turner <mattst88@gmail.com>
7829
7830 * doc/invoke.texi: Document r4700.
7831
259ee451
RB
78322013-02-25 Richard Biener <rguenther@suse.de>
7833
7834 PR tree-optimization/56175
7835 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7836 split out from ...
7837 (simplify_bitwise_binary): ... here. Also guard the conversion
7838 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7839
6d65e8f1
CM
78402013-02-25 Catherine Moore <clm@codesourcery.com>
7841
7842 Revert:
7843 2013-02-24 Catherine Moore <clm@codesourcery.com>
7844 Maciej W. Rozycki <macro@codesourcery.com>
7845 Tom de Vries <tom@codesourcery.com>
a72d8780 7846 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
7847 Iain Sandoe <iain@codesourcery.com>
7848 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7849 Chao-ying Fu <fu@mips.com>
88b97037 7850
6d65e8f1 7851 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7852 Document new function attributes.
6d65e8f1
CM
7853 * doc/invoke.texi (minterlink-compressed, mmicromips,
7854 m14k, m14ke, m14kec): Document new options.
7855 (minterlink-mips16): Update documentation.
7856 * doc/md.texi (ZC, ZD): Document new constraints.
7857 * configure.ac (gcc_cv_as_micromips): Check if linker
7858 supports the .set micromips directive.
7859 * configure: Regenerate.
7860 * config.in: Regenerate.
7861 * config/mips/mips-tables.opt: Regenerate.
7862 * config/mips/micromips.md: New file.
7863 * constraints.md (ZC, AD): New constraints.
7864 * config/mips/predicates.md (movep_src_register): New predicate.
7865 (movep_src_operand): New predicate.
7866 (non_volatile_mem_operand): New predicate.
7867 * config/mips/mips.md (multimem): New type.
7868 (length): Differentiate between 17-bit and 18-bit branch offsets.
7869 (MOVEP1, MOVEP2): New mode iterator.
7870 (mov_<load>l): Use ZC constraint.
7871 (mov_<load>r): Likewise.
7872 (mov_<store>l): Likewise.
7873 (mov_<store>r): Likewise.
7874 (*branch_equality<mode>_inverted): Add microMIPS support.
7875 (*branch_equality<mode>): Likewise.
7876 (*jump_absolute): Likewise.
7877 (indirect_jump_<mode>): Likewise.
7878 (tablejump_<mode>): Likewise.
7879 (<optab>_internal): Likewise.
7880 (sibcall_internal): Likewise.
7881 (sibcall_value_internal): Likewise.
7882 (prefetch): Use constraint ZD.
7883 * config/mips/mips.opt (minterlink-compressed): New option.
7884 (minterlink-mips16): Now an alias for minterlink-compressed.
7885 (mmicromips): New option.
7886 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7887 (compare_and_swap_12): Likewise.
7888 (sync_add<mode>): Likewise.
7889 (sync_<optab>_12): Likewise.
7890 (sync_old_<optab>_12): Likewise.
7891 (sync_new_<optab>_12): Likewise.
7892 (sync_nand_12): Likewise.
7893 (sync_old_nand_12): Likewise.
7894 (sync_new_nand_12): Likewise.
7895 (sync_sub<mode>): Likewise.
7896 (sync_old_add<mode>): Likewise.
7897 (sync_old_sub<mode>): Likewise.
7898 (sync_new_add<mode>): Likewise.
7899 (sync_new_sub<mode>): Likewise.
7900 (sync_<optab><mode>): Likewise.
7901 (sync_old_<optab><mode>): Likewise.
7902 (sync_new_<optab><mode>): Likewise.
7903 (sync_nand<mode>): Likewise.
7904 (sync_old_nand<mode>): Likewise.
7905 (sync_new_nand<mode>): Likewise.
7906 (sync_lock_test_and_set<mode>): Likewise.
7907 (test_and_set_12): Likewise.
7908 (atomic_compare_and_swap<mode>): Likewise.
7909 (atomic_exchange<mode>_llsc): Likewise.
7910 (atomic_fetch_add<mode>_llsc): Likewise.
7911 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7912 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7913 (umips_save_restore_pattern_p): Likewise.
7914 (umips_load_store_pair_p): Likewise.
7915 (umips_output_load_store_pair): Likewise.
7916 (umips_movep_target_p): Likewise.
7917 (umips_12bit_offset_address_p): Likewise.
7918 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7919 (mips_base_mips16): Rename this...
7920 (mips_base_compression_flags): ...to this. Update all uses.
7921 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7922 (mips_mips16_decl_p): Delete.
7923 (mips_nomips16_decl_p): Delete.
7924 (mips_get_compress_on_flags): New function.
7925 (mips_get_compress_off_flags): New function.
7926 (mips_get_compress_mode): New function.
7927 (mips_get_compress_on_name): New function.
7928 (mips_get_compress_off_name): New function.
7929 (mips_insert_attributes): Support multiple compression types.
7930 (mips_merge_decl_attributes): Likewise.
7931 (umips_12bit_offset_address_p): New function.
7932 (mips_start_function_definition): Emit .set micromips directive.
7933 (mips_call_may_need_jalx_p): New function.
7934 (mips_function_ok_for_sibcall): Add microMIPS support.
7935 (mips_print_operand_punctuation): Support short delay slots and
7936 compact jumps.
7937 (umips_swm_mask, umips_swm_encoding): New.
7938 (umips_build_save_restore): New function.
7939 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7940 (was_mips16_p): Remove.
7941 (old_compression_mode): New.
7942 (mips_set_compression_mode): New function.
7943 (mips_set_current_function): Add microMIPS support.
7944 (mips_option_override): Likewise.
7945 (umips_save_restore_pattern_p): New function.
7946 (umips_output_save_restore): New function.
7947 (umips_load_store_pair_p_1): New function.
7948 (umips_load_store_pair_p): New function.
7949 (umips_output_load_store_pair_1): New function.
7950 (umips_output_load_store_pair): New function.
7951 (umips_movep_target_p) New function.
7952 (mips_prepare_pch_save): Add microMIPS support.
7953 * config/mips/mips.h (TARGET_COMPRESSION): New.
7954 (TARGET_CPU_CPP_BUILTINS): Update macro
7955 to use new compression flags and to support microMIPS.
7956 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7957 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7958 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7959 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7960 (ASM_SPEC): Support mmicromips and mno-micromips.
7961 (M16STORE_REG_P): New macro.
7962 (MIPS_CALL): Support TARGET_MICROMIPS.
7963 (MICROMIPS_J): New macro.
7964 (mips_base_mips16): Rename this...
7965 (mips_base_compression_flags): ...to this.
7966 (UMIPS_12BIT_OFFSET_P): New macro.
7967 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7968 (MULTILIB_DIRNAMES): Likewise.
7969
5e5df392
TV
79702013-02-25 Tom de Vries <tom@codesourcery.com>
7971
7972 PR rtl-optimization/56131
7973 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7974 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7975 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7976
3fdb53c1
TB
79772013-02-25 Tobias Burnus <burnus@net-b.de>
7978
7979 * doc/invoke.texi (-fsanitize=): Move from optimization
7980 to debugging options.
7981
ed358aea
AB
79822013-02-25 Andrey Belevantsev <abel@ispras.ru>
7983
7984 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7985
f45e9053
AB
79862013-02-25 Andrey Belevantsev <abel@ispras.ru>
7987 Alexander Monakov <amonakov@ispras.ru>
7988
7989 PR middle-end/56077
7990 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7991 flush pending lists also on non-jumps. Adjust comment.
7992
6941b508
CM
79932013-02-24 Catherine Moore <clm@codesourcery.com>
7994 Maciej W. Rozycki <macro@codesourcery.com>
7995 Tom de Vries <tom@codesourcery.com>
a72d8780 7996 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
7997 Iain Sandoe <iain@codesourcery.com>
7998 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7999 Chao-ying Fu <fu@mips.com>
6941b508
CM
8000
8001 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8002 Document new function attributes.
6941b508
CM
8003 * doc/invoke.texi (minterlink-compressed, mmicromips,
8004 m14k, m14ke, m14kec): Document new options.
8005 (minterlink-mips16): Update documentation.
8006 * doc/md.texi (ZC, ZD): Document new constraints.
8007 * configure.ac (gcc_cv_as_micromips): Check if linker
8008 supports the .set micromips directive.
8009 * configure: Regenerate.
8010 * config.in: Regenerate.
8011 * config/mips/mips-tables.opt: Regenerate.
8012 * config/mips/micromips.md: New file.
8013 * constraints.md (ZC, AD): New constraints.
8014 * config/mips/predicates.md (movep_src_register): New predicate.
8015 (movep_src_operand): New predicate.
8016 (non_volatile_mem_operand): New predicate.
8017 * config/mips/mips.md (multimem): New type.
8018 (length): Differentiate between 17-bit and 18-bit branch offsets.
8019 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8020 (mov_<load>l): Use ZC constraint.
6941b508
CM
8021 (mov_<load>r): Likewise.
8022 (mov_<store>l): Likewise.
8023 (mov_<store>r): Likewise.
8024 (*branch_equality<mode>_inverted): Add microMIPS support.
8025 (*branch_equality<mode>): Likewise.
8026 (*jump_absolute): Likewise.
8027 (indirect_jump_<mode>): Likewise.
8028 (tablejump_<mode>): Likewise.
8029 (<optab>_internal): Likewise.
8030 (sibcall_internal): Likewise.
8031 (sibcall_value_internal): Likewise.
8032 (prefetch): Use constraint ZD.
8033 * config/mips/mips.opt (minterlink-compressed): New option.
8034 (minterlink-mips16): Now an alias for minterlink-compressed.
8035 (mmicromips): New option.
8036 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8037 (compare_and_swap_12): Likewise.
8038 (sync_add<mode>): Likewise.
8039 (sync_<optab>_12): Likewise.
8040 (sync_old_<optab>_12): Likewise.
8041 (sync_new_<optab>_12): Likewise.
8042 (sync_nand_12): Likewise.
8043 (sync_old_nand_12): Likewise.
8044 (sync_new_nand_12): Likewise.
8045 (sync_sub<mode>): Likewise.
8046 (sync_old_add<mode>): Likewise.
8047 (sync_old_sub<mode>): Likewise.
8048 (sync_new_add<mode>): Likewise.
8049 (sync_new_sub<mode>): Likewise.
8050 (sync_<optab><mode>): Likewise.
8051 (sync_old_<optab><mode>): Likewise.
8052 (sync_new_<optab><mode>): Likewise.
8053 (sync_nand<mode>): Likewise.
8054 (sync_old_nand<mode>): Likewise.
8055 (sync_new_nand<mode>): Likewise.
8056 (sync_lock_test_and_set<mode>): Likewise.
8057 (test_and_set_12): Likewise.
8058 (atomic_compare_and_swap<mode>): Likewise.
8059 (atomic_exchange<mode>_llsc): Likewise.
8060 (atomic_fetch_add<mode>_llsc): Likewise.
8061 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8062 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8063 (umips_save_restore_pattern_p): Likewise.
8064 (umips_load_store_pair_p): Likewise.
8065 (umips_output_load_store_pair): Likewise.
8066 (umips_movep_target_p): Likewise.
8067 (umips_12bit_offset_address_p): Likewise.
8068 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8069 (mips_base_mips16): Rename this...
8070 (mips_base_compression_flags): ...to this. Update all uses.
8071 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8072 (mips_mips16_decl_p): Delete.
8073 (mips_nomips16_decl_p): Delete.
3fdb53c1 8074 (mips_get_compress_on_flags): New function.
6941b508
CM
8075 (mips_get_compress_off_flags): New function.
8076 (mips_get_compress_mode): New function.
8077 (mips_get_compress_on_name): New function.
8078 (mips_get_compress_off_name): New function.
8079 (mips_insert_attributes): Support multiple compression types.
8080 (mips_merge_decl_attributes): Likewise.
8081 (umips_12bit_offset_address_p): New function.
8082 (mips_start_function_definition): Emit .set micromips directive.
8083 (mips_call_may_need_jalx_p): New function.
8084 (mips_function_ok_for_sibcall): Add microMIPS support.
8085 (mips_print_operand_punctuation): Support short delay slots and
8086 compact jumps.
8087 (umips_swm_mask, umips_swm_encoding): New.
8088 (umips_build_save_restore): New function.
8089 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8090 (was_mips16_p): Remove.
8091 (old_compression_mode): New.
8092 (mips_set_compression_mode): New function.
8093 (mips_set_current_function): Add microMIPS support.
8094 (mips_option_override): Likewise.
8095 (umips_save_restore_pattern_p): New function.
8096 (umips_output_save_restore): New function.
8097 (umips_load_store_pair_p_1): New function.
8098 (umips_load_store_pair_p): New function.
8099 (umips_output_load_store_pair_1): New function.
8100 (umips_output_load_store_pair): New function.
8101 (umips_movep_target_p) New function.
8102 (mips_prepare_pch_save): Add microMIPS support.
8103 * config/mips/mips.h (TARGET_COMPRESSION): New.
8104 (TARGET_CPU_CPP_BUILTINS): Update macro
8105 to use new compression flags and to support microMIPS.
8106 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8107 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8108 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8109 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8110 (ASM_SPEC): Support mmicromips and mno-micromips.
8111 (M16STORE_REG_P): New macro.
8112 (MIPS_CALL): Support TARGET_MICROMIPS.
8113 (MICROMIPS_J): New macro.
8114 (mips_base_mips16): Rename this...
8115 (mips_base_compression_flags): ...to this.
8116 (UMIPS_12BIT_OFFSET_P): New macro.
8117 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8118 (MULTILIB_DIRNAMES): Likewise.
8119
cdebbc6d
JJ
81202013-02-24 Jakub Jelinek <jakub@redhat.com>
8121
8122 PR target/52555
8123 * target-globals.c (save_target_globals): For init_reg_sets and
8124 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8125
18c63565
JG
81262013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8127
8128 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8129 * config/aarch64/t-aarch64
8130 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8131
2194f7a2
VM
81322013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8133
8134 PR inline-asm/56148
8135 * lra-constraints.c (process_alt_operands): Reload operand
8136 conflicting with earlier clobber only if no more other conflicting
8137 operands.
8138
7d613735
JJ
81392013-02-22 Jakub Jelinek <jakub@redhat.com>
8140
8141 PR sanitizer/56393
8142 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8143 if not linking a shared library.
8144
ac8d93a7
SL
81452013-02-22 Seth LaForge <sethml@google.com>
8146
8147 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8148
e0237780
GY
81492013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8150
3fdb53c1
TB
8151 * config/arm/arm.md (split for extendsidi): Update condition.
8152 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8153 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8154 (qhs_zextenddi_cstr): Likewise.
e0237780 8155
d7fde18c
JJ
81562013-02-21 Jakub Jelinek <jakub@redhat.com>
8157
be63b77d
JJ
8158 PR middle-end/56420
8159 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8160 avoid signed wrapping.
8161 (expand_mult): Handle properly multiplication by
8162 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8163 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8164 in the compiler if coeff is HOST_WIDE_INT_MIN.
8165 (expand_divmod): Don't make ext_op1 static, change it's type to
8166 uhwi. Avoid undefined behavior in -INTVAL (op1).
8167
d7fde18c
JJ
8168 PR rtl-optimization/50339
8169 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8170 field.
8171 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8172 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8173 into splitting_ashiftrt field.
8174 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8175 ASHIFTRT.
8176 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8177 choices.
8178
6aad4455
AH
81792013-02-20 Aldy Hernandez <aldyh@redhat.com>
8180
8181 PR middle-end/56108
8182 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8183 are sure to go irrevocable.
8184
38fe784d
HPN
81852013-02-21 Hans-Peter Nilsson <hp@axis.com>
8186
8187 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8188 scalars are valid operands.
8189
0fd44da3
MJ
81902013-02-21 Martin Jambor <mjambor@suse.cz>
8191
8192 PR tree-optimization/56310
8193 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8194 only matching indices and non-negative final offsets.
8195 (intersect_aggregates_with_edge): Pass src_idx to
8196 agg_replacements_to_vector. Pass src_idx insstead of index to
8197 intersect_with_agg_replacements.
8198
7a92038b
MJ
81992013-02-21 Martin Jambor <mjambor@suse.cz>
8200
8201 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8202 instead of hard-wired defaults.
8203
c0da9c37
MR
82042013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8205
8206 * doc/invoke.texi (MIPS Options): Update documentation of the
8207 floating-point multiply-accumulate instruction restrictions.
8208
d247ea0c 82092013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
8210
8211 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8212 asan_shadow_offset on x86_64 linux.
8213
22deefcb
RB
82142013-02-21 Richard Biener <rguenther@suse.de>
8215
8216 PR tree-optimization/56415
8217 Revert
8218 2013-02-11 Richard Biener <rguenther@suse.de>
8219
8220 PR tree-optimization/56273
8221 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8222 first VRP run.
8223
7bcc6e75
JJ
82242013-02-21 Jakub Jelinek <jakub@redhat.com>
8225
a0ad148f
JJ
8226 PR bootstrap/56258
8227 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8228 instead of @itemx.
8229
7bcc6e75
JJ
8230 PR inline-asm/56405
8231 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8232 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8233
a0a7b611
JH
82342013-02-20 Jan Hubicka <jh@suse.cz>
8235
8236 PR tree-optimization/56265
88b97037
UB
8237 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8238 when target is referenced for first time.
a0a7b611 8239
c0e50f72
RB
82402013-02-20 Richard Biener <rguenther@suse.de>
8241
8242 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8243 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8244 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8245 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8246 not return anything.
8247 (rename_ssa_copies): Do not remove unused locals.
8248 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 8249 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
8250 * passes.c (execute_function_todo): Do not schedule unused locals
8251 removal if cleanup_tree_cfg did something.
8252 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8253 about the number of removed locals.
8254
a52ca739
RB
82552013-02-20 Richard Biener <rguenther@suse.de>
8256
8257 PR tree-optimization/56398
88b97037 8258 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 8259
ec9c9d1b
MJ
82602013-02-20 Martin Jambor <mjambor@suse.cz>
8261
8262 PR tree-optimization/55334
8263 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8264 restricted pointers to arrays.
8265
e91c8ed6 82662013-02-20 Richard Biener <rguenther@suse.de>
88b97037 8267 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
8268
8269 PR tree-optimization/56396
8270 * tree-ssa-ccp.c (n_const_val): New static variable.
8271 (get_value): Return NULL for SSA names we don't have a lattice
8272 entry for.
8273 (ccp_initialize): Initialize n_const_val.
8274 * tree-ssa-copy.c (n_copy_of): New static variable.
8275 (init_copy_prop): Initialize n_copy_of.
8276 (get_value): Return NULL_TREE for SSA names we don't have a
8277 lattice entry for.
8278
3d916479
MJ
82792013-02-20 Martin Jambor <mjambor@suse.cz>
8280
8281 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8282
71a86758
RB
82832013-02-20 Richard Biener <rguenther@suse.de>
8284
8285 * genpreds.c (write_lookup_constraint): Do not compare first
8286 letter of the constraint again.
8287
79836a12
RB
82882013-02-20 Richard Biener <rguenther@suse.de>
8289
8290 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8291 and ceil_log2.
8292 (get_use_iv_cost): Terminate hashtable walk when coming across
8293 an empty entry.
8294
bbe4fb2c
IZ
82952013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8296
8297 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8298 reassociation for avx2 targets.
8299
a72d8780 83002012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 8301
c77f83d5
EI
8302 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8303 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 8304 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
8305 version and TARGET_PATTERN_COMPARE check
8306 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 8307
a72d8780 83082012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 8309
a72d8780 8310 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
8311 function before branching.
8312
242387fa
AB
83132012-02-19 Andrey Belevantsev <abel@ispras.ru>
8314
8315 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8316 DUMP_INSN_RTX_UID.
8317 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8318
b4979ab9
AB
83192012-02-19 Andrey Belevantsev <abel@ispras.ru>
8320
8321 PR middle-end/55889
b4979ab9
AB
8322 * sel-sched.c: Include ira.h.
8323 (implicit_clobber_conflict_p): New function.
8324 (moveup_expr): Use it.
88b97037 8325 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 8326
24d63016
RB
83272013-02-19 Richard Biener <rguenther@suse.de>
8328
8329 PR tree-optimization/56384
8330 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8331 (vn_hash_type): Split out from ...
8332 (vn_hash_constant_with_type): ... here.
8333 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8334 (vn_phi_eq): Compare types from vn_phi_s structure.
8335 (vn_phi_lookup): Populate vn_phi_s type.
8336 (vn_phi_insert): Likewise.
8337
a475fd3d
JJ
83382013-02-19 Jakub Jelinek <jakub@redhat.com>
8339
47cc28f5
JJ
8340 PR tree-optimization/56350
8341 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8342 if haven't found reduction or nested cycle operand, rather than
8343 asserting we must find it.
8344
a475fd3d
JJ
8345 PR tree-optimization/56381
8346 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8347 to fold_build3.
8348
83492013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8350 Jakub Jelinek <jakub@redhat.com>
8351
8352 PR target/52555
8353 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8354 (swap_optab_enable): Same.
8355 (init_all_optabs): Use argument instead of global.
88b97037 8356 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
8357 * expr.h (init_all_optabs): Add argument to prototype.
8358 (TREE_OPTIMIZATION_OPTABS): New.
8359 (save_optabs_if_changed): Protoize.
8360 * optabs.h: Declare this_fn_optabs.
8361 * optabs.c (save_optabs_if_changed): New.
8362 Declare this_fn_optabs.
8363 (init_optabs): Add argument to init_all_optabs() call.
8364 * function.c (invoke_set_current_function_hook): Handle per
8365 function optabs.
8366 * function.h (struct function): New field optabs.
8367 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8368 optimization_current_node has changed.
8369 * target-globals.h (save_target_globals_default_opts): Protoize.
8370 * target-globals.c (save_target_globals_default_opts): New.
8371
3f587ca3
JDA
83722013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8373
8374 PR target/56347
8375 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8376 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
8377
8378 PR target/56214
8379 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
8380 and HImode, require all displacements to be an integer multiple of
8381 their mode size.
ceaca33e
JDA
8382 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8383 only allow QImode and HImode when reload is in progress and strict is
8384 true. Likewise for symbolic addresses. Use base14_operand to check
8385 displacements in REG+BASE addresses.
8386
fe0b4796
RB
83872013-02-18 Richard Biener <rguenther@suse.de>
8388
8389 PR tree-optimization/56366
8390 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8391 handle sign-conversion of outer-loop initial induction value.
8392
6aaf596b
RB
83932013-02-18 Richard Biener <rguenther@suse.de>
8394
73db8ff1 8395 PR middle-end/56349
6aaf596b
RB
8396 * cfghooks.c (merge_blocks): If we merge a latch into another
8397 block adjust references to it.
8398 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8399 (verify_loop_structure): Verify that a recorded latch is in fact
8400 a latch.
8401
5e97dfb6
RB
84022013-02-18 Richard Biener <rguenther@suse.de>
8403
8404 PR tree-optimization/56321
8405 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8406 order SSA name release and virtual operand unlinking.
8407
825527e8
EI
84082013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8409
8410 * config/microblaze/microblaze.md (save_stack_block): Define.
8411 (restore_stack_block): Likewise.
8412
debd11d9
EI
84132013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8414
8415 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8416 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8417 * config/microblaze/microblaze.c (microblaze_option_override):
8418 Bail out early for PIC modes when target does not support PIC.
8419
8ec77be0
EI
84202013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8421
88b97037 8422 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
8423 Replace with a microblaze version.
8424 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 8425 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
8426 microblaze.
8427
b41288b3
JJ
84282013-02-16 Jakub Jelinek <jakub@redhat.com>
8429 Dodji Seketeli <dodji@redhat.com>
8430
8431 PR asan/56330
88b97037 8432 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
8433 (instrument_mem_region_access): Do not forget to always put
8434 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8435 0) statement, even for cases where either 'base' or 'base + len'
8436 are not instrumented -- because they have been previously
8437 instrumented. Simplify the logic by putting all the statements
8438 instrument 'base + len' inside a sequence, and then insert that
8439 sequence right before the current insertion point. Then, to
8440 instrument 'base + len', just get an iterator on that statement.
8441 And do not forget to update the pointer to iterator the function
8442 received as argument.
8443
47918951
VM
84442013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8445
8446 PR rtl-optimization/56348
8447 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8448
3fb7c699
SB
84492013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8450
8451 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8452 (clean_graph_dump_file): Pass base to start_graph_dump.
8453
576fe41a
RH
84542013-02-14 Richard Henderson <rth@redhat.com>
8455
8456 PR target/55941
8457 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8458
bb3accfa
SB
84592013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8460
8461 * collect2-aix.h: Define F_LOADONLY.
8462
03143140
RB
84632013-02-14 Richard Biener <rguenther@suse.de>
8464
8465 PR lto/50494
8466 * varasm.c (output_constant_def_1): Get the decl representing
8467 the constant as argument.
8468 (output_constant_def): Wrap output_constant_def_1.
8469 (make_decl_rtl): Use output_constant_def_1 with the decl
8470 representing the constant.
8471 (build_constant_desc): Optionally re-use a decl already
8472 representing the constant.
8473 (tree_output_constant_def): Adjust.
8474
8fb06726
DS
84752013-02-14 Dodji Seketeli <dodji@redhat.com>
8476
8477 Fix an asan crash
8478 * asan.c (instrument_builtin_call): Really put the length of the
8479 second source argument into src1_len.
8480
c4bfe8bf
JJ
84812013-02-13 Jakub Jelinek <jakub@redhat.com>
8482
8483 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8484 argument. If it is false, don't create edge from then_bb to
8485 fallthru_bb.
8486 (insert_if_then_before_iter): Pass true to it.
8487 (build_check_stmt): Pass false to it.
8488 (transform_statements): Flush hash table only on extended basic
8489 block boundaries, rather than at the beginning of every bb.
8490 Don't flush hash table on nonfreeing_call_p calls.
8491 * tree-flow.h (nonfreeing_call_p): New prototype.
8492 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8493
7afe2801
DM
84942013-02-13 David S. Miller <davem@davemloft.net>
8495
8496 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8497
70cc3288
VM
84982013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8499
8500 PR target/56184
8501 * ira.c (max_regno_before_ira): Move from ...
8502 (ira): ... here.
8503 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8504 vec_safe_length.
8505
6422242b
JJ
85062013-02-13 Jakub Jelinek <jakub@redhat.com>
8507
8508 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8509
976a81ee
RB
85102013-02-13 Richard Biener <rguenther@suse.de>
8511
8512 PR lto/56295
8513 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8514 globals in MEM_REFs.
8515
c1874a87
RB
85162013-02-13 Richard Biener <rguenther@suse.de>
8517
8518 * loop-init.c (loop_optimizer_init): Clear loop state when
8519 re-initializing preserved loops.
8520 * loop-unswitch.c (unswitch_single_loop): Return whether
8521 we unswitched the loop. Do not verify loop state here.
88b97037 8522 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 8523
b4ab7d34
KS
85242013-02-13 Kostya Serebryany <kcc@google.com>
8525
88b97037
UB
8526 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8527 on x86_64 linux.
b4ab7d34
KS
8528 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8529
bdcbe80c
DS
85302013-02-12 Dodji Seketeli <dodji@redhat.com>
8531
8532 Avoid instrumenting duplicated memory access in the same basic block
8533 * Makefile.in (asan.o): Add new dependency on hash-table.h
8534 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8535 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8536 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8537 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8538 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8539 (get_mem_ref_of_assignment): New functions.
8540 (get_mem_refs_of_builtin_call): Extract from
8541 instrument_builtin_call and tweak a little bit to make it fit with
8542 the new signature.
8543 (instrument_builtin_call): Use the new
8544 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8545 of is_gimple_builtin_call.
8546 (instrument_derefs, instrument_mem_region_access): Insert the
8547 instrumented memory reference into the hash table.
8548 (maybe_instrument_assignment): Renamed instrument_assignment into
8549 this, and change it to advance the iterator when instrumentation
8550 actually happened and return true in that case. This makes it
8551 homogeneous with maybe_instrument_assignment, and thus give a
8552 chance to callers to be more 'regular'.
8553 (transform_statements): Clear the memory reference hash table
8554 whenever we enter a new BB, when we cross a function call, or when
8555 we are done transforming statements. Use
8556 maybe_instrument_assignment instead of instrumentation. No more
8557 need to special case maybe_instrument_assignment and advance the
8558 iterator after calling it; it's now handled just like
8559 maybe_instrument_call. Update comment.
8560
4861a1f7
RB
85612013-02-13 Richard Biener <rguenther@suse.de>
8562
8563 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8564 Fix loop discovery code.
8565
1c86bd80
VM
85662013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8567
8568 PR inline-asm/56148
8569 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 8570 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
8571 the operand is not reloaded. Prefer to reload conflicting operand
8572 if earlyclobber and matching operands are the same.
8573
7cbda518
RB
85742013-02-12 Richard Biener <rguenther@suse.de>
8575
8576 PR lto/56297
8577 * lto-streamer-out.c (write_symbol): Do not output symbols
8578 for hard register variables.
8579
e68a4ef6
GJL
85802013-02-12 Georg-Johann Lay <avr@gjlay.de>
8581
8582 PR target/54222
8583 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8584 (umulsidi3_insn, mulsidi3_insn): New insns.
8585
a72d8780 85862013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
8587
8588 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8589 (struct tune_params): Add vec_costs field.
8590 * config/arm/arm.c (arm_builtin_vectorization_cost)
8591 (arm_add_stmt_cost): New functions.
8592 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8593 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8594 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8595 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8596 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8597 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8598 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8599
43320568
RB
86002013-02-12 Richard Biener <rguenther@suse.de>
8601
8602 PR lto/56295
8603 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8604 decls again if possible.
8605
a011aa39
RB
86062013-02-12 Richard Biener <rguenther@suse.de>
8607
8608 PR middle-end/56288
8609 * tree-ssa.c (verify_ssa_name): Fix check, move
8610 SSA_NAME_IN_FREE_LIST check up.
8611
6da26889
JJ
86122013-02-12 Jakub Jelinek <jakub@redhat.com>
8613 Steven Bosscher <steven@gcc.gnu.org>
8614
8615 PR rtl-optimization/56151
8616 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8617 equal to op0 or op1, and last_insn pattern is CODE operation
8618 with MEM dest and one of the operands matches that MEM.
8619
f80e0faf
ST
86202013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8621
8622 * doc/extend.texi: Document Function Multiversioning and "default"
8623 parameter string to target attribute.
8624 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8625 target attribute parameter is "default".
8626 (ix86_compare_version_priority): Remove checks for target attribute.
8627 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8628 Remove check for target attribute equal to NULL. Add assert.
8629 (ix86_generate_version_dispatcher_body): Change error to sorry.
8630
6c59ffd1
IS
86312013-02-11 Iain Sandoe <iain@codesourcery.com>
8632 Jack Howarth <howarth@bromo.med.uc.edu>
8633 Patrick Marlier <patrick.marlier@gmail.com>
8634
8635 PR libitm/55693
8636 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8637 define ENDFILE_SPEC as TM_DESTRUCTOR.
8638 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8639
a72d8780 86402013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
8641 Jack Howarth <howarth@bromo.med.uc.edu>
8642 Jakub Jelinek <jakub@redhat.com>
8643
8644 PR sanitizer/55617
8645 * config/darwin.c (cdtor_record): Rename ctor_record.
8646 (sort_cdtor_records): Rename sort_ctor_records.
8647 (finalize_dtors): New routine to sort destructors by
8648 priority before use in assemble_integer.
8649 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8650
b63fe007
UB
86512013-02-11 Uros Bizjak <ubizjak@gmail.com>
8652
8653 PR rtl-optimization/56275
8654 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8655 offset is non-negative and less than cmode size before
8656 calling simplify_subreg.
8657
8e89b5b5
RB
86582013-02-11 Richard Biener <rguenther@suse.de>
8659
8660 PR tree-optimization/56264
8661 * cfgloop.h (fix_loop_structure): Adjust prototype.
8662 * loop-init.c (fix_loop_structure): Return the number of
8663 newly discovered loops.
8664 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8665 are discovered, do a full loop-closed SSA rewrite.
8666
b4a4b56d
RB
86672013-02-11 Richard Biener <rguenther@suse.de>
8668
8669 PR tree-optimization/56273
8670 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8671 first VRP run.
8672 (check_array_ref): Fix missing newline in dumps.
8673 (search_for_addr_array): Likewise.
8674
0c885229
DE
86752013-02-09 David Edelsohn <dje.gcc@gmail.com>
8676
8677 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8678
59ac9a55
JJ
86792013-02-09 Jakub Jelinek <jakub@redhat.com>
8680
8681 PR target/56256
8682 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8683
25bb0bb5
VM
86842013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8685
8686 PR rtl-optimization/56246
0c885229 8687 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
8688 reload pseudo.
8689 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8690 constraints are satisfied.
8691
a698cc03
JL
86922013-02-08 Jeff Law <law@redhat.com>
8693
8694 PR debug/53948
8695 * emit-rtl.c (reg_is_parm_p): New function.
8696 * regs.h (reg_is_parm_p): New prototype.
8697 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8698 callee-clobbered registers.
8699
e1122ddd
MM
87002013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8701
8702 PR target/56043
8703 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8704 If there is no implicit builtin declaration, just return NULL.
8705
19c5f6e6
UB
87062013-02-08 Uros Bizjak <ubizjak@gmail.com>
8707
8708 * config/i386/sse.md (FMAMODEM): New mode iterator.
8709 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8710 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8711
2480f2ca 87122013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 8713
2480f2ca
UB
8714 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8715 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8716 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8717
87182013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8719
8720 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8721 (microblaze*-*-elf): Likewise.
8722 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8723 LINK_SPEC.
8724 * config/microblaze/microblaze-c.c: Add builtin defines for
8725 _LITTLE_ENDIAN and _BIG_ENDIAN.
8726 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8727 add to TARGET_DEFAULT flags.
76ef61fb 8728 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
8729 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8730 * config/microblaze/microblaze.md: Update extendsidi2 and
8731 movdi_internal instructions to use low-order / high-order reg
8732 print_operands.
8733 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8734 options and inversemask / mask of LITTLE_ENDIAN.
8735 * config/microblaze/t-microblaze: Expand multilib options to
8736 include mlittle-endian (le) and update exceptions patterns.
8737
600a5961
JJ
87382013-02-08 Jakub Jelinek <jakub@redhat.com>
8739
5df81313
JJ
8740 PR rtl-optimization/56195
8741 * lra-constraints.c (get_reload_reg): Don't reuse regs
8742 if they have smaller mode than requested, if they have
8743 wider mode than requested, try to return a SUBREG.
8744
600a5961
JJ
8745 PR tree-optimization/56250
8746 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8747 if type is unsigned and code isn't MULT_EXPR.
8748
ff544649
GJL
87492013-02-08 Georg-Johann Lay <avr@gjlay.de>
8750
8751 PR tree-optimization/56064
8752 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8753 bits according to mode.
8754 * fixed-value.h (fixed_from_double_int)
8755 (const_fixed_from_double_int): Adjust comments.
8756
e45cde98
RB
87572013-02-08 Richard Biener <rguenther@suse.de>
8758
8759 PR lto/56231
8760 * lto-streamer.h (struct data_in): Remove current_file, current_line
8761 and current_col members.
8762 * lto-streamer-out.c (lto_output_location): Stream changed bits
8763 en-block for efficiency.
8764 * lto-streamer-in.c (clear_line_info): Remove.
8765 (lto_input_location): Cache current file, line and column
8766 globally via local statics. Read changed bits en-block.
8767 (input_function): Do not call clear_line_info.
8768 (lto_read_body): Likewise.
8769 (lto_input_toplevel_asms): Likewise.
8770
c1ca73d8
MM
87712013-02-08 Michael Matz <matz@suse.de>
8772
8773 PR tree-optimization/52448
8774 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8775 (nt_call_phase): New static.
8776 (add_or_mark_expr): Only mark accesses with newer phase than any
8777 call seen.
8778 (nonfreeing_call_p): New.
8779 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8780 (nt_fini_block): Keep blocks marked as visited.
8781 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8782
57548aa2
RB
87832013-02-08 Richard Biener <rguenther@suse.de>
8784
8785 * ira.c (ira): Free broken dominator information.
8786
8e10366f
UB
87872013-02-08 Uros Bizjak <ubizjak@gmail.com>
8788
8789 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8790
f64fb0fa
MP
87912013-02-08 Marek Polacek <polacek@redhat.com>
8792
8e10366f 8793 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 8794
0375167b
RB
87952013-02-08 Richard Biener <rguenther@suse.de>
8796
8797 PR middle-end/56181
8798 * cfgloop.h (flow_loops_find): Adjust.
8799 (bb_loop_header_p): Declare.
8800 * cfgloop.c (bb_loop_header_p): New function split out from ...
8801 (flow_loops_find): ... here. Adjust function signature,
8802 support incremental loop structure update.
8803 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8804 * cfgloopmanip.c (fix_loop_structure): Move ...
8805 * loop-init.c (fix_loop_structure): ... here.
8806 (apply_loop_flags): Split out from ...
8807 (loop_optimizer_init): ... here.
8808 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8809 in incremental mode, only remove dead loops here.
8810
85d768f3
GJL
88112013-02-08 Georg-Johann Lay <avr@gjlay.de>
8812
8813 PR target/54222
8814 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8815 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8816 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8817 (*round<mode>3.libgcc): New insns for fixed-modes.
8818 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8819 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8820 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8821 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8822 implementations. Define to __builtin_avr_absFX,
8823 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8824 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8825 __builtin_avr_countlsFX, respectively.
8826 * config/avr/avr-c.c (target.h): Include it.
8827 (enum avr_builtin_id): New enum.
8828 (avr_resolve_overloaded_builtin): New static function.
8829 (avr_register_target_pragmas): Use it to set
8830 targetm.resolve_overloaded_builtin.
8831 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8832 tree nodes used by DEF_BUILTIN.
8833 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8834 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8835 <AVR_BUILTIN_xxBITS>: Same.
8836
661bc682
RB
88372013-02-08 Richard Biener <rguenther@suse.de>
8838
8839 * cfgloop.c (verify_loop_structure): Properly handle
8840 a loop exiting to another loop header.
8841 * ira-int.h (ira_loops): Remove.
8842 * ira.c (ira_loops): Remove.
8843 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8844 (do_reload): Use loop_optimizer_finalize.
8845 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8846 number_of_loops to access the loop tree.
8847 (more_one_region_p): Likewise.
8848 (finish_loop_tree_nodes): Likewise.
8849 (rebuild_regno_allocno_maps): Likewise.
8850 (mark_loops_for_removal): Likewise.
8851 (mark_all_loops_for_removal): Likewise.
8852 (remove_unnecessary_regions): Likewise.
8853 (ira_build): Likewise.
8854 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8855
0d5049b2
RB
88562013-02-08 Richard Biener <rguenther@suse.de>
8857
8858 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8859 * ipa-pure-const.c (analyze_function): Avoid calling
8860 mark_irreducible_loops twice.
8e10366f 8861 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 8862
499f32e8
DM
88632013-02-07 David S. Miller <davem@davemloft.net>
8864
8865 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8866 on 'reg'.
8867 * var-tracking.c (vt_add_function_parameter): Test the presence of
8868 HAVE_window_save properly and do not remap argument registers when
8869 we have a leaf function.
8870
6edc3e32
UB
88712013-02-07 Uros Bizjak <ubizjak@gmail.com>
8872
8873 PR bootstrap/56227
8874 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8875 instead of "ll".
8876 * config/i386/i386.c (ix86_print_operand): Ditto.
8877
5306401f
VM
88782013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8879
6edc3e32 8880 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 8881
027ece11
VM
88822013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8883
8884 PR rtl-optimization/56225
8885 * lra-constraints.c (process_alt_operands): Check that reload hard
8886 reg can hold value for strict_low_part.
8887
f980dfdb
JJ
88882013-02-07 Jakub Jelinek <jakub@redhat.com>
8889
8890 PR debug/56154
8891 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8892 dwarf2out_end_function.
8893 (in_first_function_p, maybe_at_text_label_p,
8894 first_loclabel_num_not_at_text_label): New variables.
8895 (dwarf2out_var_location): In the first function find out
6edc3e32 8896 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
8897 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8898 functions.
8899
73dd3123
EB
89002013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8901
8902 PR rtl-optimization/56178
8903 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8904 SUBREG of a register. Tidy up related block of code.
8905 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8906 note if the source is a register or a SUBREG of a register.
8907
e3936f47
JJ
89082013-02-07 Jakub Jelinek <jakub@redhat.com>
8909
8910 PR target/56228
8911 * config/rs6000/rs6000.md (ptrm): New mode attr.
8912 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8913 call_value_indirect_aix<pttrsize>,
8914 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8915 m in constraints.
8916
d96d674b
MH
89172013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8918
8919 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8920 if -bnortl. Convert to strcmp and strncmp.
8921
921f2dee
AM
89222013-02-07 Alan Modra <amodra@gmail.com>
8923
8924 PR target/54009
8925 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8926 addresses won't wrap when offsetting.
8927 (rs6000_secondary_reload): Provide secondary reloads needed for
8928 wrapping LO_SUM addresses.
8929
d09c7dba
TS
89302013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8931
8932 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8933 MACH, just __MACH__.
8934
a44bbd48
RB
89352013-02-06 Richard Biener <rguenther@suse.de>
8936
8937 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8938 instead of calling fix_loop_structure.
8939
6d840d99
JJ
89402013-02-06 Jakub Jelinek <jakub@redhat.com>
8941
8942 PR middle-end/56217
8943 * omp-low.c (use_pointer_for_field): Return false if
8944 lower_send_shared_vars doesn't generate any copy-out code.
8945
0f33baa9
TV
89462013-02-06 Tom de Vries <tom@codesourcery.com>
8947
8948 PR rtl-optimization/56131
8949 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8950 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8951 of the label is NULL. Add comment.
8952
11f1e3ab
JJ
89532013-02-05 Jakub Jelinek <jakub@redhat.com>
8954
31502f9f
JJ
8955 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8956
a74db9bd
JJ
8957 PR sanitizer/55374
8958 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8959 (STATIC_LIBTSAN_LIBS): Likewise.
8960 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8961 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8962 is defined, don't add anything else beyond that.
8963 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8964 (LINK_COMMAND_SPEC): Use them.
8965
11f1e3ab
JJ
8966 PR tree-optimization/56205
8967 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8968 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8969 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8970
14ac6aa2
RB
89712013-02-05 Richard Biener <rguenther@suse.de>
8972
8973 PR tree-optimization/53342
8974 PR tree-optimization/53185
8975 * tree-vectorizer.h (vect_check_strided_load): Remove.
8976 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8977 not disallow peeling for vectorized strided loads.
8978 (vect_check_strided_load): Make static and simplify.
8979 (vect_analyze_data_refs): Adjust.
8980 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8981 correctly when vectorizing strided loads.
8982
6f22445a
RB
89832013-02-05 Richard Biener <rguenther@suse.de>
8984
8985 * doc/install.texi: Refer to ISL, not PPL.
8986
39f9719e
JH
89872013-02-05 Jan Hubicka <jh@suse.cz>
8988
ec4224ac
JH
8989 PR tree-optimization/55789
8990 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8991
89922013-02-05 Jan Hubicka <jh@suse.cz>
8993
8994 PR tree-optimization/55789
39f9719e
JH
8995 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8996 the dead call anyway.
8997
956d3b33
EB
89982013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8999
9000 PR sanitizer/55374
9001 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9002
90032013-02-04 Alexander Potapenko <glider@google.com>
9004 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9005 Jakub Jelinek <jakub@redhat.com>
9006
9007 PR sanitizer/55617
9008 * config/darwin.c (sort_ctor_records): Stabilized qsort
9009 on constructor priority by using original position.
9010 (finalize_ctors): New routine to sort constructors by
9011 priority before use in assemble_integer.
9012 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9013
7ac3af38
JJ
90142013-02-04 Jakub Jelinek <jakub@redhat.com>
9015
9016 PR libstdc++/54314
9017 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9018 about visibility on artificial decls.
9019 * config/sol2.c (solaris_assemble_visibility): Likewise.
9020
152689dc
KT
90212013-02-04 Kai Tietz <ktietz@redhat.com>
9022
9023 PR target/56186
9024 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9025 argument and improve checking of return-argument types for 16-byte
9026 modes.
9027 (ix86_function_value_1): Add additional valtype argument on call
9028 of function_value_64.
9029 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9030 handling infunction_value_64 function.
9031
2b5987b5
MGD
90322013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9033
7ac3af38 9034 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9035
14597080
RB
90362013-02-04 Richard Biener <rguenther@suse.de>
9037
9038 PR tree-optimization/56188
9039 * tree-ssa-structalias.c (label_visit): Consider case with
9040 initially non-empty points-to set.
9041 (perform_var_substitution): Dump node mapping and clean up.
9042
ed73881e
RG
90432013-02-04 Richard Guenther <rguenther@suse.de>
9044
9045 PR lto/56168
9046 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9047 node prevail as last resort.
9048 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9049 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9050
139a0707
RB
90512013-02-04 Richard Biener <rguenther@suse.de>
9052
9053 PR tree-optimization/56113
9054 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9055 Merge into ...
9056 (equiv_class_lookup_or_add): ... this.
9057 (label_visit): Adjust and fix error in previous patch.
9058 (perform_var_substitution): Adjust.
9059
50fe8924
OE
90602013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9061
9062 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9063 * config/sh/sh4-300.md: Likewise.
9064 * config/sh/sh4a.md: Likewise.
9065 * config/sh/constraints.md: Likewise.
9066 * config/sh/sh.md: Likewise.
9067 * config/sh/netbsd-elf.h: Likewise.
9068 * config/sh/predicates.md: Likewise.
9069 * config/sh/sh-protos.h: Likewise.
9070 * config/sh/ushmedia.h: Likewise.
9071 * config/sh/linux.h: Likewise.
9072 * config/sh/sh.c: Likewise.
9073 * config/sh/superh.h: Likewise.
9074 * config/sh/elf.h: Likewise.
9075 * config/sh/sh4.md: Likewise.
9076 * config/sh/sh.h: Likewise.
9077
1a04ac2b
JDA
90782013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9079
9080 * config/pa/constraints.md: Adjust unused letters. Change "T"
9081 constraint to match_test floating_point_store_memory_operand().
9082 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9083 (base14_operand): New.
9084 (floating_point_store_memory_operand): New.
9085 (integer_store_memory_operand): Revise to use base14_operand and
9086 reg_plus_base_memory_operand.
9087 (move_dest_operand): Allow symbolic_memory_operands.
9088 (symbolic_memory_operand): Check for LO_SOM.
9089 (symbolic_operand): Change default case to break.
9090 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9091 CONST_DOUBLE values to be reloaded by putting them into memory when
9092 the destination is a floating point register.
9093 (movdf): Remove code to handle CONST_DOUBLE.
9094 (movsf): Likewise.
9095 (reload_indf_r1): New.
9096 (reload_insf_r1): New.
9097 Consistently use "Q" and "T" constraints with integer and floating
9098 point move instructions, respectively.
9099 (movdi): Remove FAIL.
9100 Change predicate for source operand unamed DImode move from
9101 general_operand to move_src_operand.
9102 (umulsidi3): Change predicate for destination operand to
9103 register_operand.
9104 Likewise for similar unamed patterns.
9105 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9106 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9107 (hppa_legitimize_address): Simplify mask calculation.
9108 (pa_emit_move_sequence): Revised handling of secondary reloads from
9109 REG+D addresses for floating point loads and stores. Directly handle
9110 loading CONST0_RTX (mode) to a floating point register.
9111 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9112 to floating point registers. Don't restrict secondary reloads to
9113 floating point registers to integer modes. Revise some comments and
9114 cleanup some code.
9115 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9116 (pa_legitimate_address_p): New.
9117 (pa_legitimize_reload_address): New.
9118 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9119 (STRICT_REG_OK_FOR_BASE_P): New.
9120 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9121 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9122
3bf65591
DE
91232013-02-03 David Edelsohn <dje.gcc@gmail.com>
9124 Andrew Dixie <andrewd@gentrack.com>
9125
9126 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9127 flag set.
9128
c0a8a3e6
RS
91292013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9130
9131 * expmed.c (extract_bit_field_1): Pass the full width of the
9132 structure to get_best_reg_extraction_insn.
9133
99113dff
DE
91342013-02-01 David Edelsohn <dje.gcc@gmail.com>
9135
9136 PR target/54601
9137 * configure.ac (use_cxa_atexit): Add AIX.
9138 * configure: Regenerate.
9139
9140 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9141
ddd84654
JJ
91422013-02-01 Jakub Jelinek <jakub@redhat.com>
9143
9144 PR debug/54793
9145 * final.c (need_profile_function): New variable.
9146 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9147 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9148 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9149 notes, targetm.asm_out.function_prologue doesn't emit anything,
9150 HAVE_prologue and profiler should be emitted before prologue,
9151 set need_profile_function instead of emitting it.
9152 (final_scan_insn): If need_profile_function, emit
9153 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9154 NOTE_INSN_FUNCTION_BEG note.
9155
91562013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9157
9158 * config/rs6000/rs6000.md (smulditi3): New.
9159 (umulditi3): New.
9160
ff2a9d88
RH
9161 * config/alpha/alpha.md (umulditi3): New.
9162
14d52b90
DE
91632013-02-01 David Edelsohn <dje.gcc@gmail.com>
9164
9165 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9166 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9167
8c7ca45c
RB
91682013-02-01 Richard Biener <rguenther@suse.de>
9169
9170 PR tree-optimization/56113
9171 * tree-ssa-structalias.c (label_visit): Reduce work for
9172 single-predecessor nodes.
9173
9f419393
EB
91742013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9175
9176 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9177 range isn't testing for zero.
9178
c5f4be84
SB
91792013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9180
9181 PR middle-end/56113
9182 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9183
dbdbd982
NC
91842013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9185 Nick Clifton <nickc@redhat.com>
9186
9187 * config/v850/constraints.md (Q): Define as a memory constraint.
9188 * config/v850/predicates.md (label_ref_operand): New predicate.
9189 (e3v5_shift_operand): New predicate.
9190 (ior_operator): New predicate.
9191 * config/v850/t-v850: Add e3v5 multilib.
9192 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9193 (v850_gen_movdi): Prototype.
9194 * config/v850/v850.c: Add support for e3v5 architecture.
9195 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9196 TARGET_V850E_UP.
9197 (construct_save_jarl): Add e3v5 long JARL support.
9198 (v850_adjust_insn_length): New function. Adjust length of call
9199 insns when using e3v5 instructions.
9200 (v850_gen_movdi): New function: Generate instructions to move a
9201 DImode value.
9202 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9203 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9204 (TARGET_USE_FPU): Enable for e3v5.
9205 (CONST_OK_FOR_W): New macro.
9206 (ADJUST_INSN_LENGTH): Define.
9207 * config/v850/v850.md (UNSPEC_LOOP): Define.
9208 (attr cpu): Add v850e3v5.
9209 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9210 (movdi): New pattern.
9211 (movdi_internal): New pattern.
9212 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9213 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9214 (cstoresf4): Likewise.
9215 (cstoredf4): Likewise.
9216 (insv): New pattern.
9217 (rotlso3_a): New pattern.
9218 (rotlsi3_b): New pattern
9219 (rotlsi3_v850e3v5): New pattern.
9220 (doloop_begin): New pattern.
9221 (fix_loop_counter): New pattern.
9222 (doloop_end): New pattern.
9223 (branch_normal): Add e3v5 long branch support.
9224 (branch_invert): Likewise.
9225 (branch_z_normal): Likewise.
9226 (branch_z_invert): Likewise.
9227 (branch_nz_normal): Likewise.
9228 (branch_nz_invert): Likewise.
9229 (call_internal_short): Add e3v5 register-indirect JARL support.
9230 (call_internal_long): Likewise.
9231 (call_value_internal_short): Likewise.
9232 (call_value_internal_long): Likewise.
9233 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9234 (mloop): New option.
9235 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 9236 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 9237
73861a41
PK
92382013-01-31 Paul Koning <ni1d@arrl.net>
9239
9240 PR debug/55059
9241 PR debug/54508
9242 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9243 children if parent is a class.
9244 (prune_unused_types_prune): Don't add DW_AT_declaration.
9245
e44978dc
RB
92462013-01-31 Richard Biener <rguenther@suse.de>
9247
9248 PR tree-optimization/56157
9249 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9250 match up operand with SLP child.
9251
90b10dec
JM
92522013-01-31 Jason Merrill <jason@redhat.com>
9253
04d2dadd 9254 PR debug/54410
90b10dec
JM
9255 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9256 parameters the first time.
9257 (gen_scheduled_generic_parms_dies): Check completeness here.
9258
6e616110
RB
92592013-01-31 Richard Biener <rguenther@suse.de>
9260
9261 PR middle-end/53073
9262 * common.opt (faggressive-loop-optimizations): New flag,
9263 enabled by default.
9264 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9265 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9266 infer_loop_bounds_from_undefined by it.
9267
636f59cf
RB
92682013-01-31 Richard Biener <rguenther@suse.de>
9269
9270 PR tree-optimization/56150
9271 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9272 visit virtual operands.
9273 (find_uses_to_rename_bb): Likewise.
9274
92752013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
9276
9277 PR tree-optimization/56150
9278 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9279 mixed store non-store stmts.
9280
32887460
JJ
92812013-01-30 Jakub Jelinek <jakub@redhat.com>
9282
e60e09a0
JJ
9283 PR sanitizer/55374
9284 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9285 LIBASAN_EARLY_SPEC is defined.
9286 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9287 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9288 before %o.
9289 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9290
32887460
JJ
9291 PR c++/55742
9292 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9293 invalid args instead of ICEing on it.
9294 (ix86_valid_target_attribute_tree): Return error_mark_node if
9295 ix86_valid_target_attribute_inner_p failed.
9296 (ix86_valid_target_attribute_p): Return false only if
9297 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9298 target("default") attribute.
9299 (sorted_attr_string): Change argument from const char * to tree,
9300 merge in all target attribute arguments rather than just one.
9301 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9302 instead of free. Avoid using strcat.
9303 (ix86_mangle_function_version_assembler_name): Mangle
9304 target("default") as if no target attribute is present. Adjust
9305 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9306 instead of xmalloc and XDELETEVEC instead of free.
9307 (ix86_function_versions): Don't return true if one of the decls
9308 doesn't have target attribute. If they don't and one of the decls
9309 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9310 sorted_attr_string caller. Use XDELETEVEC instead of free.
9311 (ix86_supports_function_versions): Remove.
9312 (make_name): Fix up formatting.
9313 (make_dispatcher_decl): Remove resolver_name and its initialization.
9314 Avoid leaking memory.
9315 (is_function_default_version): Return true if there is
9316 target("default") attribute rather than no target attribute at all.
9317 (make_resolver_func): Avoid leaking memory.
9318 (ix86_generate_version_dispatcher_body): Likewise.
9319 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9320 * target.def (supports_function_versions): Remove.
9321 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9322 * doc/tm.texi: Regenerated.
9323
73cca0cc
VM
93242013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9325
9326 PR rtl-optimization/56144
9327 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9328 for values with side effects.
9329
11452e7b
RB
93302013-01-30 Richard Biener <rguenther@suse.de>
9331
9332 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9333 (sparseset_pop): Likewise.
9334 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9335 to be able to use quick_push in the worker loop.
9336
01cb1ef5
MP
93372013-01-30 Marek Polacek <polacek@redhat.com>
9338
9339 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9340
e892936e
RB
93412013-01-30 Richard Biener <rguenther@suse.de>
9342
9343 PR lto/56147
6edc3e32 9344 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 9345
cc06c01d
GJL
93462013-01-30 Georg-Johann Lay <avr@gjlay.de>
9347
9348 PR tree-optimization/56064
9349 * fixed-value.c (fixed_from_double_int): New function.
9350 * fixed-value.h (fixed_from_double_int): New prototype.
9351 (const_fixed_from_double_int): New static inline function.
9352 * fold-const.c (native_interpret_fixed): New static function.
9353 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9354 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9355 (native_encode_fixed): New static function.
9356 (native_encode_expr) <FIXED_CST>: Use it.
9357 (native_interpret_int): Move double_int worker code to...
9358 * double-int.c (double_int::from_buffer): ...this new static method.
9359 * double-int.h (double_int::from_buffer): Prototype it.
9360
d394a308
RB
93612013-01-30 Richard Biener <rguenther@suse.de>
9362
9363 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9364 New pointer-map and obstack.
9365 (init_alias_vars): Allocate pointer-map and obstack.
9366 (delete_points_to_sets): Free them.
9367 (find_what_var_points_to): Cache result.
9368 (find_what_p_points_to): Adjust for changed interface of
9369 find_what_var_points_to.
9370 (compute_points_to_sets): Likewise.
9371 (ipa_pta_execute): Likewise.
9372
20804d96
RO
93732013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9374
9375 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9376 * configure: Regenerate.
9377 * config.in: Regenerate.
9378 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9379 #nobits/#progbits if supported.
9380
a7ad88a2
OE
93812013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9382
9383 PR target/56121
9384 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9385 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9386 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9387
7af79f92
GY
93882013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9389
91bfca59
OE
9390 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9391 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 9392
753bcf7b
GY
93932013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9394
91bfca59
OE
9395 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9396 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 9397
8cbc2ea8
GY
93982013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9399
91bfca59
OE
9400 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9401 declaration.
9402 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9403 * config/arm/cortex-a7.md: New bypasses using
9404 arm_mac_accumulator_is_result.
8cbc2ea8 9405
697a3325
GY
94062013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9407
91bfca59 9408 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 9409 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
9410 (cortex_a7_fpfmad): New reservation.
9411 (cortex_a7_fpmacs): Use ffmas and update required units.
9412 (cortex_a7_fpmuld): Update required units and latency.
9413 (cortex_a7_fpmacd): Likewise.
9414 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9415 (cortex_a7_neon). Likewise.
9416 (bypass) Update participating units.
697a3325 9417
29637783
GY
94182013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9419
91bfca59
OE
9420 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9421 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9422 from fmac to ffma.
9423 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9424 (vfp_fmul): Use ffmad.
9425 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9426 (cortex_r4_fmacd): Use ffmad.
9427 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9428 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9429 (cortex_a9_fmacd): Use ffmad.
9430 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9431 (cortex_a8_vfp_macd): Use ffmad.
9432 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9433 (cortex_a5_fpmacd): Use ffmad.
9434 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9435 (cortex_a15_vfp_macd): Use ffmad.
9436 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 9437
2ee8a2d5
JM
94382013-01-29 Jason Merrill <jason@redhat.com>
9439
9440 PR libstdc++/54314
9441 * varasm.c (default_assemble_visibility): Don't warn about
9442 visibility on artificial decls.
9443
78d087bc
RB
94442013-01-29 Richard Biener <rguenther@suse.de>
9445
9446 PR tree-optimization/56113
9447 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9448 the bitmap leader.
9449 (label_visit): Free duplicate bitmaps and record the leader instead.
9450 (perform_var_substitution): Adjust.
9451
83ba4d6f
RB
94522013-01-29 Richard Biener <rguenther@suse.de>
9453
9454 PR tree-optimization/55270
9455 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9456 the CFG, schedule loops for fixup.
9457
66dfe13f
NC
94582013-01-29 Nick Clifton <nickc@redhat.com>
9459
9460 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9461 SP_REG.
9462
5a579c3b
LE
94632013-01-28 Leif Ekblad <leif@rdos.net>
9464
9465 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9466 * config/i386/i386.h (TARGET_RDOS): New macro.
9467 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9468 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9469 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9470 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9471 DEFAULT_LARGE_SECTION_THRESHOLD.
9472 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9473 * config/i386/rdos.h: New file.
9474 * config/i386/rdos64.h: New file.
9475
51e44392
BS
94762013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9477
9478 PR other/54814
9479 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9480 TEST_HARD_REG_BIT.
9481
db1fb332
JJ
94822013-01-28 Jakub Jelinek <jakub@redhat.com>
9483
9484 PR rtl-optimization/56117
9485 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9486 call cselib_lookup_from_insn on the MEM before calling
9487 add_insn_mem_dependence.
9488
16917761
RB
94892013-01-28 Richard Biener <rguenther@suse.de>
9490
9491 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9492 to a stmt that didn't have one.
9493 (copy_phis_for_bb): Likewise for PHI arguments.
9494 (copy_debug_stmt): Likewise for debug stmts.
9495
b9fc0497
RB
94962013-01-28 Richard Biener <rguenther@suse.de>
9497
9498 PR tree-optimization/56034
6edc3e32 9499 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
9500 (partition_builtin_p): Adjust.
9501 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9502 it is the last partition.
9503 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9504 up the vertex for the definition.
9505 (classify_partition): Classify whether a partition is a
9506 PKIND_REDUCTION, thus has uses outside of the loop.
9507 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9508 Merge all PKIND_REDUCTION partitions into the last partition.
9509 (tree_loop_distribution): Seed partitions from reductions as well.
9510
aa710d25
JJ
95112013-01-28 Jakub Jelinek <jakub@redhat.com>
9512
0bfbca58
JJ
9513 PR tree-optimization/56125
9514 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9515 pow(x,c) into sqrt(x) * powi(x, n/2) or
9516 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9517 optimizing for size.
9518 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9519 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9520 integer.
9521
aa710d25
JJ
9522 PR tree-optimization/56094
9523 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9524 to UNKNOWN_LOCATION while gimplifying expr.
9525
77dc5297
UB
95262013-01-27 Uros Bizjak <ubizjak@gmail.com>
9527
9528 PR target/56114
9529 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9530 operand 0 in movabs insn template for -masm=intel asm alternative.
9531 (*movabs<mode>_2): Ditto for operand 1.
9532
0bfbca58 95332013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
9534
9535 PR target/54663
9536 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9537 of microblaze-c.o
9538
0bfbca58 95392013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
9540
9541 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9542 tm_file.
9543
0bfbca58 95442013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
9545
9546 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9547 Undef to avoid warning.
9548
478f60f9
MH
95492013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9550
9551 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9552 * configure: Regenerate.
9553
d7fa6ee2
JJ
95542013-01-25 Jakub Jelinek <jakub@redhat.com>
9555
9556 PR tree-optimization/56098
9557 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9558 for stmts with volatile ops.
9559 (cond_store_replacement): Don't optimize if assign has volatile ops.
9560 (cond_if_else_store_replacement_1): Don't optimize if either
9561 then_assign or else_assign have volatile ops.
9562 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9563 volatile ops.
9564
f8fe87bd
GJL
95652013-01-25 Georg-Johann Lay <avr@gjlay.de>
9566
9567 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9568
28398d0d
GJL
95692013-01-25 Georg-Johann Lay <avr@gjlay.de>
9570
9571 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9572 missing ':' in asm example.
9573
b7d7d917
TB
95742013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9575
9576 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9577 entries into lane and laneq entries.
77dc5297
UB
9578 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9579 Remove AdvSIMD scalar modes.
b7d7d917
TB
9580 (aarch64_sq<r>dmulh_laneq<mode>): New.
9581 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9582 modes.
9583 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9584 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9585 * config/aarch64/iterators.md (VCOND): New.
9586 (VCONQ): New.
9587
556f9906
GJL
95882013-01-25 Georg-Johann Lay <avr@gjlay.de>
9589
9590 PR target/54222
9591 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9592 Add NULL LIBNAME argument to existing definitions.
9593 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9594 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9595 * config/avr/avr.c (DEF_BUILTIN): Same.
9596 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9597 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9598 implementation is available (DECL_ASSEMBLER_NAME is set).
9599 (avr_fold_absfx): New static function.
9600 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9601 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9602 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9603 AVR_BUILTIN_ABSLLK.
9604 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9605 (abshk, absk, abslk, absllk): Provide as static inline functions.
9606
1f546bbb
MP
96072013-01-25 Marek Polacek <polacek@redhat.com>
9608
9609 PR tree-optimization/56035
9610 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9611
7e184bd7
UB
96122012-01-24 Uros Bizjak <ubizjak@gmail.com>
9613
9614 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9615 (*movtf_internal_rex64): Add (!o,C) alternative
9616 (*movxf_internal_rex64): Ditto.
9617 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9618
f5ba49ac
SM
96192013-01-24 Shenghou Ma <minux.ma@gmail.com>
9620
9621 * doc/invoke.texi: fix typo.
9622 * doc/objc.texi: fix typo.
9623
a6343728
RS
96242013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9625
9626 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9627 for the first two alternatives.
9628
cd030c07
DN
96292013-01-24 Diego Novillo <dnovillo@google.com>
9630
77dc5297 9631 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
9632 (ggc-zone.o): Remove.
9633 * configure.ac: Remove option --with-gc.
9634 * configure: Re-generate.
9635 * doc/install.texi: Remove documentation for --with-gc.
9636 * gengtype.c (write_enum_defn): Remove. Update all users.
9637 (write_Types_process_field): Remove generation of gt_e_* argument.
9638 (output_type_enum): Remove. Update all users.
9639 (write_enum_defn): Remove. Update all users.
9640 (enum alloc_zone): Remove. Update all users.
77dc5297 9641 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
9642 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9643 Update all callers.
9644 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 9645 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
9646 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9647 Update all users.
aaf1e810 9648 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
9649 (struct alloc_zone): Remove.
9650 (ggc_internal_alloc_zone_stat): Remove.
9651 (ggc_internal_cleared_alloc_zone_stat): Remove.
9652 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
9653 (ggc_pch_count_object): Remove last argument. Update all users.
9654 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
9655 (struct alloc_zone): Remove.
9656 * ggc-zone.c: Remove.
77dc5297 9657 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
9658 (struct alloc_zone): Remove.
9659 (ggc_alloc_typed_stat): Remove.
9660 (ggc_alloc_typed): Remove.
9661 (ggc_splay_alloc): Remove first argument.
9662 (rtl_zone): Remove. Update all users.
9663 (tree_zone): Remove. Update all users.
9664 (tree_id_zone): Remove. Update all users.
9665 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 9666 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 9667 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 9668 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 9669
a861ffa4
GJL
96702013-01-24 Georg-Johann Lay <avr@gjlay.de>
9671
9672 * config/avr/avr.c (avr_out_fract): Make register numbers that
9673 might be outside of source operand signed.
9674
593c0ddd
UB
96752013-01-24 Uros Bizjak <ubizjak@gmail.com>
9676
9677 * config/i386/constraints.md (Yf): New constraint.
9678 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9679 of f constraint to conditionaly disable x87 register preferences.
9680 (*movdf_internal): Ditto.
9681 (*movsf_internal): Ditto.
9682
e86c0101
SB
96832013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9684
9685 PR inline-asm/55934
9686 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9687 that have operands with impossible constraints.
9688 Add a FIXME for a speed-up opportunity.
9689 * lra-constraints.c (process_alt_operands): Verify that a class
9690 selected from constraints on asms is valid for the operand mode.
9691 (curr_insn_transform): Remove incorrect comment.
9692
f6fee35f
DE
96932013-01-23 David Edelsohn <dje.gcc@gmail.com>
9694
9695 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9696 TOC operand is a valid symbol ref in the constant pool.
9697
96982013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 9699
aaf1e810 9700 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 9701
dc62d7d1
GJL
97022013-01-23 Georg-Johann Lay <avr@gjlay.de>
9703
9704 PR target/54222
9705 * config/avr/stdfix.h: New file.
9706 * t-avr (stdfix-gcc.h): New rule to build it.
9707 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9708
2660d12d
KS
97092013-01-23 Kostya Serebryany <kcc@google.com>
9710
77dc5297
UB
9711 * config/darwin.h: remove dependency on
9712 CoreFoundation (asan on Mac OS).
2660d12d 9713
a70418fc
JJ
97142013-01-23 Jakub Jelinek <jakub@redhat.com>
9715
9716 PR target/49069
9717 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9718 instead of cmpdi_operand for first comparison operand.
9719 Don't assert that comparison operands aren't both constants.
9720
47876a2a
JW
97212013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9722
9723 * doc/install.texi (Downloading the Source): Update references to
9724 downloading separate components.
9725
97262013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
9727
9728 * doc/extend.texi (__int128): Improve grammar.
9729
47876a2a 97302013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
9731
9732 PR target/56028
9733 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9734 alternative to (o,r).
9735 (*movdi_internal_rex64): Remove (!o,n) alternative.
9736 (DImode immediate->memory splitter): Remove.
9737 (DImode immediate->memory peephole2): Remove.
9738 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9739 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9740 alternative to (!o,*r).
9741 (*movtf_internal_sse): New pattern.
9742 (*movxf_internal_rex64): New pattern.
9743 (*movxf_internal): Disable for TARGET_64BIT.
9744 (*movdf_internal_rex64): Remove (!o,F) alternative.
9745
3a984f10
JJ
97462013-01-22 Jakub Jelinek <jakub@redhat.com>
9747
502498d5
JJ
9748 PR middle-end/56074
9749 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9750 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9751 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9752 stmt locations where LOCATION_LOCUS of the stmt location is
9753 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9754
3a984f10
JJ
9755 PR target/55686
9756 * config/i386/i386.md (UNSPEC_STOS): New.
9757 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9758 *strsetqi_1): Add UNSPEC_STOS.
9759
fa817f7f
PC
97602013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9761
9762 PR c++/56067
9763 * doc/invoke.texi: Remove left over -Wsynth example.
9764
8f498c1b
JJ
97652013-01-21 Jakub Jelinek <jakub@redhat.com>
9766
9767 PR tree-optimization/56051
9768 * fold-const.c (fold_binary_loc): Don't fold
9769 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9770 a narrowing conversion, or widening conversion from signed
9771 to unsigned.
9772
47876a2a 97732013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
9774
9775 PR rtl-optimization/56023
9776 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9777 dependent on debug instruction.
9778
5b9db1bc
MJ
97792013-01-21 Martin Jambor <mjambor@suse.cz>
9780
9781 PR middle-end/56022
9782 * function.c (allocate_struct_function): Call
9783 invoke_set_current_function_hook earlier.
9784
e8bb7d68
JJ
97852013-01-21 Jakub Jelinek <jakub@redhat.com>
9786
9787 * reload1.c (init_reload): Only initialize reload_obstack
9788 during the first call.
9789
616a4e32
MP
97902013-01-21 Marek Polacek <polacek@redhat.com>
9791
9792 * cfgloop.c (verify_loop_structure): Fix up grammar.
9793
4401981b
YHH
97942013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9795
9796 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9797 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9798
8e87740b
RR
97992013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9800
9801 PR target/56058
9802 * config/arm/marvell-pj4.md: Update copyright year.
9803 Fix up use of alu to alu_reg and simple_alu_imm.
9804
47876a2a 98052013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
9806
9807 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9808
89d56d79
VM
98092013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9810
9811 PR target/55433
9812 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 9813 insn for secondary memory move when memory mode should be different.
89d56d79 9814
fe603553
JDA
98152013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9816
9817 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9818 atomic_storedi_1): New patterns.
9819
01284895
VK
98202013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9821
9822 btver2 pipeline descriptions.
9823 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9824 descriptions.
9825 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 9826 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
9827 type attributes.
9828 * config/i386/btver2.md: New file describing btver2 pipelines.
9829
5630e3e1
JL
98302013-01-19 Andrew Pinski <apinski@cavium.com>
9831
9832 PR tree-optimization/52631
9833 * tree-ssa-sccvn (visit_use): Before looking up the original
9834 statement, try looking up the simplified expression.
9835
650ae806
AG
98362013-01-19 Anthony Green <green@moxielogic.com>
9837
9838 * config/moxie/moxie.c (moxie_expand_prologue): Set
9839 current_function_static_stack_size.
9840
e300ec2d
JJ
98412013-01-18 Jakub Jelinek <jakub@redhat.com>
9842
9843 PR tree-optimization/56029
9844 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9845 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9846
a3d7af04
SS
98472013-01-18 Sharad Singhai <singhai@google.com>
9848
9849 PR tree-optimization/55995
9850 * dumpfile.c (dump_loc): Print location only if available.
9851 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9852
66aa7879
VM
98532013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9854
9855 PR target/55433
9856 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9857 secondary memory move.
9858 (inherit_reload_reg): Use rclass instead of cl for
9859 check_secondary_memory_needed_p.
9860
3f0fee7b
JJ
98612013-01-18 Jakub Jelinek <jakub@redhat.com>
9862
9863 PR middle-end/56015
9864 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 9865 the case where writing real complex part of target modifies op1.
3f0fee7b 9866
70c67693
JG
98672013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9868
9869 * config/aarch64/aarch64-simd.md
9870 (aarch64_vcond_internal<mode>): Handle unordered cases.
9871 * config/aarch64/iterators.md (v_cmp_result): New.
9872
df8de9b3
YHH
98732013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9874 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9875
9876 * config/arm/marvell-pj4.md: New file.
9877 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9878 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9879 (generic_vfp): Likewise.
9880 * config/arm/arm-cores.def: Add marvell-pj4.
9881 * config/arm/arm-tune.md: Regenerate.
9882 * config/arm/arm-tables.opt: Regenerate.
9883 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9884 * doc/invoke.texi: Document marvell-pj4.
9885
be30c356
TB
98862013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9887
9888 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9889
0bfbca58 98902013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
9891
9892 PR debug/54114
9893 PR debug/54402
9894 PR debug/49888
9895 * var-tracking.c (negative_power_of_two_p): New.
9896 (global_get_addr_cache, local_get_addr_cache): New.
9897 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9898 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9899 heading comment.
9900 (vt_stack_offset_p): Remove.
9901 (vt_canon_true_dep): Always canonicalize loc's address.
9902 (clobber_overlapping_mems): Make sure we have a MEM.
9903 (local_get_addr_clear_given_value): New.
9904 (val_reset): Clear local cached entries.
9905 (compute_bb_dataflow): Create and release the local cache.
9906 Disable duplicate MEMs clobbering.
9907 (emit_notes_in_bb): Clobber MEMs likewise.
9908 (vt_emit_notes): Create and release the local cache.
9909 (vt_initialize, vt_finalize): Create and release the global
9910 cache, respectively.
1f6bc337 9911 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 9912
0bfbca58 99132013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
9914
9915 PR libmudflap/53359
9916 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9917 not found in the symtab.
9918
0bfbca58 99192013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 9920
c350ba53 9921 PR debug/56006
3aa03517
AO
9922 PR rtl-optimization/55547
9923 PR rtl-optimization/53827
9924 PR debug/53671
9925 PR debug/49888
9926 * alias.c (offset_overlap_p): New, factored out of...
9927 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9928 the conservative special case for symbolic constants. Don't
9929 adjust zero sizes on alignment.
9930
c664546f
JL
99312013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9932
9933 PR rtl-optimization/52573
9934 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9935 REG_UNUSED for the same register.
9936
1bd3f750
MP
99372013-01-17 Richard Biener <rguenther@suse.de>
9938 Marek Polacek <polacek@redhat.com>
9939
9940 PR rtl-optimization/55833
9941 * loop-unswitch.c (unswitch_loops): Move loop verification...
9942 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9943 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9944 Set it to true when we're removing a loop from hierarchy tree in
9945 an irreducible region.
9946 (fix_bb_placements): Adjust caller.
9947 (fix_loop_placements): Likewise.
9948
e52a8b71
GJL
99492013-01-17 Georg-Johann Lay <avr@gjlay.de>
9950
9951 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9952 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9953 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9954 Remove ID. Adjust comments.
9955 * config/avr/avr-c.c (avr_builtin_name): Remove.
9956 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9957 * config/avr/avr.c (avr_tolower): New static function.
9958 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9959 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9960 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9961 default expansion.
9962
8386a7ea
JH
99632013-01-17 Jan Hubicka <jh@suse.cz>
9964
610fb637 9965 PR tree-optimization/55273
8386a7ea
JH
9966 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9967
47876a2a 99682013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
9969
9970 PR target/55981
9971 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9972 store through atomic_store<mode>_1.
9973 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9974
8222c37e
MJ
99752013-01-17 Martin Jambor <mjambor@suse.cz>
9976
9977 PR tree-optimizations/55264
9978 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9979 for virtual methods.
9980 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9981 virtual methods before inlining is over.
9982 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9983 virtual functions.
9984 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9985 non-virtual.
9986
79f01c76
VM
99872013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9988
9989 PR rtl-optimization/56005
9990 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9991 pending reads for prefetch.
9992
d0b6bb1b
IB
99932013-01-16 Ian Bolton <ian.bolton@arm.com>
9994
aaf1e810 9995 * config/aarch64/aarch64.md
d0b6bb1b
IB
9996 (*cstoresi_neg_uxtw): New pattern.
9997 (*cmovsi_insn_uxtw): New pattern.
9998 (*<optab>si3_uxtw): New pattern.
9999 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10000 (*<optab>si3_insn_uxtw): New pattern.
10001 (*bswapsi2_uxtw): New pattern.
10002
cb9cf03b
RB
100032013-01-16 Richard Biener <rguenther@suse.de>
10004
10005 * tree-inline.c (tree_function_versioning): Remove set but
10006 never used variable.
10007
2cfc56b9
RB
100082013-01-16 Richard Biener <rguenther@suse.de>
10009
10010 PR tree-optimization/55964
10011 * tree-flow.h (rename_variables_in_loop): Remove.
10012 (rename_variables_in_bb): Likewise.
10013 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10014 (copy_loop_before): Adjust and delete update-ssa status.
10015 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10016 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10017 (rename_variables_in_loop): Remove.
10018 (slpeel_update_phis_for_duplicate_loop): Likewise.
10019 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10020 use available cfg machinery instead of duplicating it.
10021 Update PHI nodes and perform poor-mans SSA update here.
10022 (slpeel_tree_peel_loop_to_edge): Adjust.
10023
c25a0c60
RB
100242013-01-16 Richard Biener <rguenther@suse.de>
10025
10026 PR tree-optimization/54767
10027 PR tree-optimization/53465
10028 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10029 (vrp_visit_phi_node): For PHI arguments coming via backedges
10030 drop all symbolical range information.
10031 (execute_vrp): Compute backedges.
10032
04b535af
RB
100332013-01-16 Richard Biener <rguenther@suse.de>
10034
10035 * doc/install.texi: Update CLooG and ISL requirements to
10036 0.18.0 and 0.11.1.
10037
8b0a1e0b
CB
100382013-01-16 Christian Bruel <christian.bruel@st.com>
10039
10040 PR target/55301
10041 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10042 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10043 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10044
100452013-01-16 DJ Delorie <dj@redhat.com>
10046
10047 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10048 (UNSPECV_SP_SWITCH_E): New.
10049 (sp_switch_1): Change to an unspec.
10050 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10051 replace $r15.
10052
100532013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10054
10055 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10056 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10057 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10058 (expand_mem_thread_fence): Ditto.
10059 (expand_mem_signal_fence): Ditto.
10060 (expand_atomic_load): Ditto.
10061 (expand_atomic_store): Ditto.
10062
0bfbca58 100632013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10064
10065 PR rtl-optimization/55547
10066 PR rtl-optimization/53827
10067 PR debug/53671
10068 PR debug/49888
10069 * alias.c (memrefs_conflict_p): Set sizes to negative after
10070 AND adjustments.
10071
305e3ac1
JJ
100722013-01-15 Jakub Jelinek <jakub@redhat.com>
10073
10074 PR target/55940
10075 * function.c (thread_prologue_and_epilogue_insns): Always
10076 add crtl->drap_reg to set_up_by_prologue.set, even if
10077 stack_realign_drap is false.
10078
f78ac4f2
JBG
100792013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10080
10081 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10082 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10083 *call): Fix indention.
10084
a78a8cc4
TV
100852013-01-15 Tom de Vries <tom@codesourcery.com>
10086
10087 PR target/55876
10088 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10089 Update comment.
10090
0e80383f
VM
100912013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10092
305e3ac1 10093 PR rtl-optimization/55153
0e80383f
VM
10094 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10095
207b5956
MJ
100962013-01-15 Martin Jambor <mjambor@suse.cz>
10097
10098 PR tree-optimization/55920
10099 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10100 accesses as grp_to_be_debug_replaced.
10101
a7818b54
JJ
101022013-01-15 Jakub Jelinek <jakub@redhat.com>
10103
10104 PR tree-optimization/55920
10105 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10106 there is non-useless type conversion needed from debug rhs to lhs,
10107 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10108
b0fe107e
JM
101092013-01-15 Joseph Myers <joseph@codesourcery.com>
10110 Mikael Pettersson <mikpe@it.uu.se>
10111
10112 PR target/43961
10113 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10114 Thumb.
10115 (ASM_OUTPUT_CASE_LABEL): Remove.
10116 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10117 * final.c (shorten_branches): Update alignment of labels before
10118 jump tables if CASE_VECTOR_SHORTEN_MODE.
10119
34ab62ee
RB
101202013-01-15 Richard Biener <rguenther@suse.de>
10121
10122 PR bootstrap/55961
10123 * system.h: Do not include gmp.h for building host tools.
10124
783a3a05
RB
101252013-01-15 Richard Biener <rguenther@suse.de>
10126
10127 PR middle-end/55882
10128 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10129 account for bitpos when computing alignment.
10130
3a579e09
VY
101312013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10132
10133 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10134 (ix86_target_macros_internal): Likewise.
10135
10136 * config/i386/i386.c (m_CORE2I7): Removed.
10137 (m_CORE_HASWELL): New macro.
10138 (m_CORE_ALL): Likewise.
10139 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10140 (initial_ix86_arch_features): Likewise.
10141 (processor_target_table): Initializations for Core avx2.
10142 (cpu_names): New names "core-avx2".
10143 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10144 PROCESSOR_CORE_HASWELL.
10145 (ix86_issue_rate): New case.
10146 (ia32_multipass_dfa_lookahead): Likewise.
10147 (ix86_sched_init_global): Likewise.
10148
10149 * config/i386/i386.h (TARGET_HASWELL): New macro.
10150 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10151 (processor_type): New PROCESSOR_HASWELL.
10152
955f5a07
JJ
101532013-01-15 Jakub Jelinek <jakub@redhat.com>
10154
ff784829
JJ
10155 PR tree-optimization/55955
10156 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10157 *SHIFT_EXPR and *ROTATE_EXPR codes.
10158
955f5a07
JJ
10159 PR tree-optimization/48766
10160 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10161 -ftrapv disable -fwrapv.
10162
aeb8b4e9
GJL
101632013-01-14 Georg-Johann Lay <avr@gjlay.de>
10164
10165 PR target/55974
10166 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10167 etc. to 1 and not to __flash.
10168 Use LL suffix for __INT24_MAX__ with -mint8.
10169 Use ULL suffix for __UINT24_MAX__ with -mint8.
10170
1c494c6a
GJL
101712013-01-14 Georg-Johann Lay <avr@gjlay.de>
10172
10173 * config/avr/avr-arch.h
10174 (struct base_arch_s): Use typedef avr_arch_t instead.
10175 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10176 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10177 * config/avr/avr.c: Same.
10178 * config/avr/avr-devices.c: Same.
10179 * config/avr/driver-avr.c: Same.
10180 * config/avr/gen-avr-mmcu-texi.c: Same.
10181 * config/avr/avr-mcus.def: Adjust comment.
10182
a50344cb
TB
101832013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10184
88e784e6
UB
10185 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10186 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10187
47876a2a 101882013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10189 Andi Kleen <ak@linux.intel.com>
10190
10191 PR target/55948
10192 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10193 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10194 memmodel flag.
10195
00892272
GJL
101962013-01-14 Georg-Johann Lay <avr@gjlay.de>
10197
10198 * config/avr/avr-stdint.h: Remove trailing blanks.
10199 * config/avr/avr-log.h: Same.
10200 * config/avr/avr-arch.h: Same.
10201 * config/avr/avr-devices.c: Same.
10202 * config/avr/avr-dimode.md: Same.
10203 * config/avr/predicates.md: Same.
10204 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10205
00892272
GJL
10206 * config/avr/avr-protos.h: Same. And:
10207 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10208 (init_cumulative_args): Rename to avr_init_cumulative_args.
10209 (expand_prologue): Rename to avr_expand_prologue.
10210 (expand_epilogue): Rename to avr_expand_epilogue.
10211 (adjust_insn_length): Rename to avr_adjust_insn_length.
10212 (notice_update_cc): Rename to avr_notice_update_cc.
10213 (final_prescan_insn): Rename to avr_final_prescan_insn.
10214 * config/avr/avr.c: Same.
10215 * config/avr/avr.h: Same.
10216 * config/avr/avr.md: Remove trailing blanks.
10217 (prologue): Use avr_expand_prologue.
10218 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10219
7bb01996
RB
102202013-01-14 Richard Biener <rguenther@suse.de>
10221
10222 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10223 verify_location, collect_subblocks): New functions.
10224 (verify_gimple_in_cfg): Verify that locations only reference
10225 BLOCKs in the functions BLOCK tree.
10226
2724573f
RB
102272013-01-14 Richard Biener <rguenther@suse.de>
10228
10229 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10230 PHI argument.
10231 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10232 unshare reference.
10233 (insert_out_of_ssa_copy_on_edge): Likewise.
10234 (rewrite_close_phi_out_of_ssa): Likewise.
10235 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10236 debug expressions.
10237 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10238 propagated constants.
10239 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10240 can not be shared.
10241
9a0bbab6
GJL
102422013-01-14 Georg-Johann Lay <avr@gjlay.de>
10243
10244 * config/avr/avr-modes.def: Add GPL copyright notice.
10245
45805f17
UB
102462013-01-13 Uros Bizjak <ubizjak@gmail.com>
10247
10248 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10249 MEMMODEL_MASK to determine memory model.
10250 (atomic_store<mode>): Ditto from operands[2].
10251 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10252
9d60be38
JJ
102532013-01-13 Jakub Jelinek <jakub@redhat.com>
10254
10255 PR fortran/55935
45805f17 10256 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
10257 (fold_gimple_assign): Don't call unshare_expr here.
10258 (fold_ctor_reference): Call unshare_expr.
10259
e7f49d92
TG
102602013-01-13 Terry Guo <terry.guo@arm.com>
10261
aaf1e810
EB
10262 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10263 * doc/fragments.texi: Document MULTILIB_REUSE.
10264 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 10265 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 10266 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
10267 (tmpmultilib4): Ditto.
10268 (multilib_reuse): New multilib argument.
10269
fbd03a27
RS
102702013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10271
10272 * Makefile.in: Update copyright.
10273
b3681f13
TV
102742013-01-12 Tom de Vries <tom@codesourcery.com>
10275
10276 PR middle-end/55890
10277 * calls.c (expand_call): Check if arg_nr is valid.
10278
3f287e4b
MM
102792013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10280
10281 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10282 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
10283 documentation. Add missing '__' in front of
10284 __builtin_ia32_packssdw256.
3f287e4b 10285
1abcd5eb
AK
102862013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10287
10288 PR target/55719
10289 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10290 NO_REGS for larl operands.
10291 (s390_reload_larl_operand): Use s390_load_address instead of
10292 emit_move_insn.
10293
980d0812
RB
102942013-01-11 Richard Biener <rguenther@suse.de>
10295
10296 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10297 (verify_node_sharing): ... here.
10298 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10299
7cb9fd07
EB
103002013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10301
10302 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10303 Substitute TREECHECKING.
10304 * configure: Regenerate.
10305 * Makefile.in (TREECHECKING): New.
10306
47876a2a 103072013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
10308
10309 PR tree-optimization/44061
10310 * tree-vrp.c (extract_range_basic): Compute zero as
10311 value-range for __builtin_constant_p of function parameters.
10312
d1e082c2
RS
103132013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10314
45805f17 10315 Update copyright years.
d1e082c2 10316
f85021b0
VM
103172013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10318
9d60be38 10319 PR rtl-optimization/55672
0160442c
VM
10320 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10321 const to be eliminable.
f85021b0 10322
7a8b1ec4
DE
103232013-01-10 David Edelsohn <dje.gcc@gmail.com>
10324
10325 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10326 * configure: Regenerate.
10327
ad2e5b71
RB
103282013-01-10 Richard Biener <rguenther@suse.de>
10329
ddf9322d 10330 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 10331
ffc5b2bb
RB
103322013-01-10 Richard Biener <rguenther@suse.de>
10333
10334 PR bootstrap/55792
10335 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10336 locations for virtual PHI arguments.
10337 (rewrite_update_phi_arguments): Likewise.
10338
e1f674e4
JS
103392013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10340
10341 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10342 on to assembler.
10343
a57fc743
JJ
103442013-01-10 Jakub Jelinek <jakub@redhat.com>
10345
10346 PR tree-optimization/55921
10347 * tree-complex.c (expand_complex_asm): New function.
10348 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10349
0ff4390d
AK
103502013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10351
10352 PR target/55718
10353 * config/s390/s390.c (s390_symref_operand_p)
10354 (s390_loadrelative_operand_p): Merge the two functions.
10355 (s390_check_qrst_address, print_operand_address): Add parameters
10356 to s390_loadrelative_operand_p invokation.
10357 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10358 (s390_reload_larl_operand, s390_secondary_reload): Use
10359 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10360 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10361
6f557e0e
MS
103622013-01-09 Mike Stump <mikestump@comcast.net>
10363
10364 * dse.c (record_store): Remove unnecessary assert.
10365
7770c9e9
JH
103662013-01-09 Jan Hubicka <jh@suse.cz>
10367
10368 PR tree-optimization/55569
10369 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10370 * cfgloop.h (scale_loop_profile): Likewise.
10371
a19b1432
JH
103722013-01-09 Jan Hubicka <jh@suse.cz>
10373
10374 PR lto/45375
ddf9322d
UB
10375 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10376 functions.
a19b1432
JH
10377 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10378
9a002da8
RS
103792013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10380
10381 PR middle-end/55114
10382 * expr.h (maybe_emit_group_store): Declare.
10383 * expr.c (maybe_emit_group_store): New function.
10384 * builtins.c (expand_builtin_int_roundingfn): Call it.
10385 (expand_builtin_int_roundingfn_2): Likewise.
10386
511dcace
VM
103872013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10388
e1f2b729 10389 PR rtl-optimization/55829
511dcace
VM
10390 * lra-constraints.c (match_reload): Add code for absent output.
10391 (curr_insn_transform): Add code for reloads of matched inputs
10392 without output.
10393
7b0fe4f4
UB
103942013-01-09 Uros Bizjak <ubizjak@gmail.com>
10395
10396 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10397 attribute of movddup insn to DF.
10398 (*vec_interleave_lowv2df): Ditto.
10399 (vec_dupv2df): Ditto.
10400
870ca331
JH
104012013-01-09 Jan Hubicka <jh@suse.cz>
10402
10403 PR tree-optimiation/55875
10404 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10405 EVERY_ITERATION parameter.
7b0fe4f4 10406 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
10407 (idx_infer_loop_bounds): Similarly here.
10408 (n_of_executions_at_most): Simplify
10409 to only test for cases where statement is dominated by the
7b0fe4f4 10410 particular bound; handle correctly the "postdominance" test.
870ca331
JH
10411 (scev_probably_wraps_p): Use max loop iterations info
10412 as a global bound first.
10413
6f575fe4 104142013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
10415 Nick Clifton <nickc@redhat.com>
10416
10417 * config/v850/v850.md (cbranchsf4): New pattern.
10418 (cstoresf4): New pattern.
10419 (cbranchdf4): New pattern.
10420 (cstoredf4): New pattern.
10421 (movsicc): Disallow floating point comparisons.
10422 (cmpsf_le_insn): Fix order of operators.
10423 (cmpsf_lt_insn): Likewise.
10424 (cmpsf_eq_insn): Likewise.
10425 (cmpdf_le_insn): Likewise.
10426 (cmpdf_lt_insn): Likewise.
10427 (cmpdf_eq_insn): Likewise.
10428 (cmpsf_ge_insn): Use LE comparison.
10429 (cmpdf_ge_insn): Likewise.
10430 (cmpsf_gt_insn): Use LT comparison.
10431 (cmpdf_gt_insn): Likewise.
10432 (cmpsf_ne_insn): Delete pattern.
10433 (cmpdf_ne_insn): Delete pattern.
10434 * config/v850/v850.c (v850_gen_float_compare): Use
10435 gen_cmpdf_eq_insn for NE comparison.
10436 (v850_float_z_comparison_operator)
10437 (v850_float_nz_comparison_operator): Move from here ...
10438 * config/v850/predicates.md: ... to here. Move GT and GE
10439 comparisons into v850_float_z_comparison_operator.
10440 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10441 Delete prototype.
10442 (v850_float_nz_comparison_operator): Likewise.
10443
f0d54148
JDA
104442013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10445
10446 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10447 with calls to gen_insvsi/gen_insvdi.
10448
8f01beca
VK
104492013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10450
10451 * config/i386/i386.c (initial_ix86_tune_features): Set up
10452 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10453
2aa579ad
JJ
104542013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10455 Jakub Jelinek <jakub@redhat.com>
10456
10457 PR tree-optimization/48189
10458 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10459 If nitercst is 0, don't predict the exit edge.
10460
6edc3e32 104612013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
10462
10463 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10464 in asm_fprintf with reg_names.
10465 (aarch64_print_operand_address): Likewise.
10466 (aarch64_return_addr): Likewise.
10467 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10468
f6f94d94
JDA
104692013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10470
10471 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10472 (INT_U6_BITS): Likewise.
10473 * config/pa/predicates.md (uint6_operand): New predicate.
10474 (shift5_operand, shift6_operand): Likewise.
10475 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10476 arith32_operand.
10477 (lshrdi3): Use shift6_operand.
10478 (shrpsi4, shrpdi4): New insn patterns.
10479 (extzv): Delete expander.
10480 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10481 predicates in unamed zero extract patterns. Tighten common constraint.
10482 (extv): Delete expander.
10483 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10484 predicates in unamed sign extract patterns. Tighten common constraint.
10485 (insv): Delete expander.
10486 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10487 predicates in unamed insert patterns. Tighten common constraint.
10488 Change uint32_operand predicate to uint6_operand predicate in unamed
10489 DImode pattern to insert constant values of type 1...1xxxx.
10490
36b72910
JH
104912013-01-04 Jan Hubicka <jh@suse.cz>
10492
10493 PR tree-optimization/55823
7b0fe4f4
UB
10494 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10495 issue.
36b72910 10496
47876a2a 104972013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
10498 Uros Bizjak <ubizjak@gmail.com>
10499
10500 PR rtl-optimization/55845
10501 * df-problems.c (can_move_insns_across): Stop scanning at
10502 volatile_insn_p source instruction or give up if
10503 across_from .. across_to range contains any volatile_insn_p
10504 instructions.
10505
4369c11e
TB
105062013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10507
7b0fe4f4
UB
10508 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10509 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10510 Declare.
4369c11e 10511 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 10512 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 10513
aeb7e7c1
JJ
105142013-01-08 Jakub Jelinek <jakub@redhat.com>
10515
10516 PR fortran/55341
10517 * asan.c (asan_clear_shadow): New function.
10518 (asan_emit_stack_protection): Use it.
10519
a02ad1aa
TB
105202013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10521
10522 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10523 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10524 with tab instead of space.
10525
f90d87f5
NC
105262013-01-08 Nick Clifton <nickc@redhat.com>
10527
10528 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10529 register bank 0 at the start of an interrupt handler.
83ffd964
NC
10530 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10531 MDBH registers.
f90d87f5 10532
385eb93d
JG
105332013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10534
10535 * config/aarch64/aarch64-simd.md
10536 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10537 (aarch64_simd_bsl): Likewise.
10538 (aarch64_vcond_internal<mode>): Likewise.
10539 (vcond<mode><mode>): Likewise.
10540 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10541 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10542
4dcd1054
JG
105432013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10544
10545 * config/aarch64/aarch64-builtins.c
10546 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10547
4267a4a6
MJ
105482013-01-08 Martin Jambor <mjambor@suse.cz>
10549
10550 PR debug/55579
10551 * tree-sra.c (analyze_access_subtree): Return true also after
10552 potentially creating a debug-only replacement.
10553
5f4e6de3
JJ
105542013-01-08 Jakub Jelinek <jakub@redhat.com>
10555
3138f224
JJ
10556 PR middle-end/55890
10557 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10558
5f4e6de3
JJ
10559 PR tree-optimization/54120
10560 * tree-vrp.c (range_fits_type_p): Don't allow
10561 src_precision < precision from signed vr to unsigned_p
10562 if vr->min or vr->max is negative.
10563 (simplify_float_conversion_using_ranges): Test can_float_p
10564 against CODE_FOR_nothing.
10565
f3ef18ff
JJ
105662013-01-08 Jakub Jelinek <jakub@redhat.com>
10567 Richard Biener <rguenther@suse.de>
10568
10569 PR middle-end/55851
10570 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10571 types instead of just INTEGER_TYPE types.
10572
25c210f9
MK
105732013-01-07 Mark Kettenis <kettenis@openbsd.org>
10574
10575 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10576 TF_SIZE): Define.
f90d87f5 10577
81826a7b
SE
105782013-01-07 Steve Ellcey <sellcey@mips.com>
10579
10580 PR target/42661
10581 * config/mips/mips.opt: Change mad to mmad to match documentation.
10582
35678514
GJL
105832013-01-07 Georg-Johann Lay <avr@gjlay.de>
10584
10585 PR target/55897
10586 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10587 .progmemx.data now.
10588
e5669488
GJL
105892013-01-07 Georg-Johann Lay <avr@gjlay.de>
10590
10591 PR target/55897
10592 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10593 (avr_addrspace_t): Add .section_name field.
10594 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10595 array size.
10596 (avr_addrspace): Same. Initialize .section_name. Remove last
10597 NULL entry. Put __memx into .progmemx.data.
10598 (progmem_section_prefix): Remove.
10599 (avr_asm_init_sections): No need to initialize progmem_section.
10600 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10601 section name prefix.
10602 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10603 retrieve the progmem section.
10604 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10605 boundary to run over avr_addrspace[].
10606 (avr_register_target_pragmas): Ditto.
10607
656e6f37
JJ
106082013-01-06 Jakub Jelinek <jakub@redhat.com>
10609
10610 * varasm.c (output_constant_def_contents): For asan_protect_global
10611 protected strings, adjust DECL_ALIGN if needed, before testing for
10612 anchored symbols.
10613 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10614 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10615 normal decls.
10616 (output_object_block): For asan protected decls, emit asan padding
10617 after their contents.
10618 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10619 (asan_finish_file): Test it here instead.
10620
6edc3e32
UB
106212013-01-07 Nick Clifton <nickc@redhat.com>
10622 Matthias Klose <doko@debian.org>
10623 Doug Kwan <dougkwan@google.com>
10624 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
10625
10626 PR driver/55470
10627 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10628
10629 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10630
10631 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10632
7b0fe4f4 10633 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
10634
10635 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10636
2a095093
GJL
106372013-01-07 Georg-Johann Lay <avr@gjlay.de>
10638
f3b503f4 10639 PR target/54461
2a095093
GJL
10640 * doc/install.texi (Cross-Compiler-Specific Options): Document
10641 --with-avrlibc.
10642
383f9b34
TB
106432013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10644
10645 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10646 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10647 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10648 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10649 vqmovun_high_s64): Fix source operand number and update copyright.
10650
3626621a
RB
106512013-01-07 Richard Biener <rguenther@suse.de>
10652
10653 PR middle-end/55890
10654 * gimple.h (gimple_call_builtin_p): New overload.
10655 * gimple.c (validate_call): New function.
10656 (gimple_call_builtin_p): Likewise.
10657 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10658 Use gimple_call_builtin_p.
10659 (find_func_clobbers): Likewise.
10660 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10661 (strlen_optimize_stmt): Likewise.
10662
8b2ea410
JG
106632013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10664
10665 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10666 (vld1q_dup_*): Likewise.
10667 (vld1_*): Likewise.
10668 (vld1q_*): Likewise.
10669 (vld1_lane_*): Likewise.
10670 (vld1q_lane_*): Likewise.
10671
9713d329
RB
106722013-01-07 Richard Biener <rguenther@suse.de>
10673
10674 * lto-streamer.h (LTO_minor_version): Bump to 2.
10675
3520f7cc
JG
106762013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10677
10678 * config/aarch64/aarch64-protos.h
10679 (aarch64_const_double_zero_rtx_p): Rename to...
10680 (aarch64_float_const_zero_rtx_p): ...this.
10681 (aarch64_float_const_representable_p): New.
10682 (aarch64_output_simd_mov_immediate): Likewise.
10683 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10684 move immediate case.
10685 * config/aarch64/aarch64.c
10686 (aarch64_const_double_zero_rtx_p): Rename to...
10687 (aarch64_float_const_zero_rtx_p): ...this.
10688 (aarch64_print_operand): Allow printing of new constants.
10689 (aarch64_valid_floating_const): New.
10690 (aarch64_legitimate_constant_p): Check for valid floating-point
10691 constants.
10692 (aarch64_simd_valid_immediate): Likewise.
10693 (aarch64_vect_float_const_representable_p): New.
10694 (aarch64_float_const_representable_p): Likewise.
10695 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10696 (aarch64_output_simd_mov_immediate): New.
10697 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10698 (*movdf_aarch64): Likewise.
10699 * config/aarch64/constraints.md (Ufc): New.
10700 (Y): call aarch64_float_const_zero_rtx.
10701 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10702
e167c04d
RB
107032013-01-07 Richard Biener <rguenther@suse.de>
10704
10705 PR tree-optimization/55888
10706 PR tree-optimization/55862
10707 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10708 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10709 not if it is contained therein.
10710
0139aaab
GJL
107112013-01-07 Georg-Johann Lay <avr@gjlay.de>
10712
10713 * config/avr/t-avr: Typo.
10714
4a176b23
GJL
107152013-01-07 Georg-Johann Lay <avr@gjlay.de>
10716
10717 PR55243
10718 * config/avr/t-avr: Don't automatically rebuild
10719 $(srcdir)/config/avr/t-multilib
10720 $(srcdir)/config/avr/avr-tables.opt
10721 $(srcdir)/doc/avr-mmcu.texi
10722 (avr-mcus): New phony target to build them on request.
10723 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10724 * avr/avr-mcus.def: Adjust comments.
10725
c7afdc98
UB
107262013-01-07 Uros Bizjak <ubizjak@gmail.com>
10727
10728 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10729
1ab05c31
RS
107302013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10731
10732 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10733
488e3acc
RS
107342013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10735
10736 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10737
a89599d2
DE
107382013-01-05 David Edelsohn <dje.gcc@gmail.com>
10739
10740 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10741 to generate profiling.
10742 * config/rs6000/aix64.h (LIB_SPEC): Same.
10743
70f09188
AP
107442013-01-04 Andrew Pinski <apinski@cavium.com>
10745
10746 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10747 New function.
10748 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10749
918d445f
UB
107502013-01-04 Uros Bizjak <ubizjak@gmail.com>
10751
10752 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10753 unconditionally.
10754 (ix86_expand_move): Ditto.
10755 (ix86_zero_extend_to_Pmode): Ditto.
10756 (ix86_expand_call): Ditto.
10757 (ix86_expand_special_args_builtin): Ditto.
10758 (ix86_expand_builtin): Ditto.
10759
361618ec
RB
107602013-01-04 Richard Biener <rguenther@suse.de>
10761
10762 PR tree-optimization/55862
10763 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10764 translating them through PHI nodes.
10765
87eab554
MJ
107662013-01-04 Martin Jambor <mjambor@suse.cz>
10767
10768 PR tree-optimization/55755
10769 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10770 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10771
33879b9f
MP
107722013-01-04 Marek Polacek <polacek@redhat.com>
10773
10774 PR middle-end/55859
10775 * opts.c (default_options_optimization): Clarify error message.
10776
3068819a
RB
107772013-01-04 Richard Biener <rguenther@suse.de>
10778
10779 PR middle-end/55863
10780 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10781 reassociation.
10782
0e4ae794
JDA
107832013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10784
10785 PR target/53789
10786 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
10787 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10788 references.
0e4ae794 10789
65c88cef
RH
107902013-01-03 Richard Henderson <rth@redhat.com>
10791
10792 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10793 after eliminating TLS symbols.
10794
8ac16127
MG
107952013-01-03 Marc Glisse <marc.glisse@inria.fr>
10796
10797 PR bootstrap/50167
10798 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10799 * graphite-poly.c (debug_gmp_value): Likewise.
10800
bb664f09
UB
108012013-01-03 Uros Bizjak <ubizjak@gmail.com>
10802
10803 PR target/55712
10804 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10805 selected code model, define __code_mode_small__, __code_model_medium__,
10806 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10807 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10808 xchg temporary register with %k. Declare temporary register as
10809 early clobbered.
10810 [__x86_64__]: For medium and large code models, preserve %rbx register.
10811
bcf1ef00
RB
108122013-01-03 Richard Biener <rguenther@suse.de>
10813
0506634a 10814 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
10815 (dump_subscript): Adjust.
10816 (finalize_ddr_dependent): Do not dump redundant info.
10817 (analyze_siv_subscript): Adjust.
10818 (subscript_dependence_tester): Likewise.
10819 (compute_affine_dependence): Likewise.
10820
59fd17e3
RB
108212013-01-03 Richard Biener <rguenther@suse.de>
10822
10823 Revert
10824 2013-01-03 Richard Biener <rguenther@suse.de>
10825
10826 PR tree-optimization/55857
10827 * tree-vect-stmts.c (vectorizable_load): Do not setup
10828 re-alignment for invariant loads.
10829
10830 2013-01-02 Richard Biener <rguenther@suse.de>
10831
10832 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10833 invariant load do not generate a vector load from the scalar location.
59fd17e3 10834
595c2679
RB
108352013-01-03 Richard Biener <rguenther@suse.de>
10836
10837 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10838 for not vectorizing.
10839 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10840 not build INDIRECT_REFs, call get_name once only.
10841 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10842 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10843
90bb7d7a
RB
108442013-01-03 Richard Biener <rguenther@suse.de>
10845
10846 PR tree-optimization/55857
10847 * tree-vect-stmts.c (vectorizable_load): Do not setup
10848 re-alignment for invariant loads.
10849
f09b77ca
RB
108502013-01-03 Richard Biener <rguenther@suse.de>
10851
10852 PR lto/55848
10853 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10854 prefer a built-in decl.
10855
3461a16e
JJ
108562013-01-03 Jakub Jelinek <jakub@redhat.com>
10857
df8e2b4f
JJ
10858 * gcc.c (process_command): Update copyright notice dates.
10859 * gcov.c (print_version): Likewise.
10860 * gcov-dump.c (print_version): Likewise.
10861
3461a16e
JJ
10862 PR rtl-optimization/55838
10863 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10864 iv0.step, iv1.step and step.
10865
8b5546d6
JJ
108662013-01-03 Jakub Jelinek <jakub@redhat.com>
10867 Marc Glisse <marc.glisse@inria.fr>
10868
10869 PR tree-optimization/55832
10870 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10871 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10872 integer_{one,zero}_node.
10873
8ab1d2e9
JJ
108742013-01-03 Jakub Jelinek <jakub@redhat.com>
10875
10876 PR debug/54402
10877 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10878 * var-tracking.c (reverse_op): Don't add reverse ops to
10879 VALUEs that have already
0506634a 10880 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 10881
5b9ad1d4
GP
108822013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10883
10884 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10885
e25a6711
TJ
108862013-01-02 Teresa Johnson <tejohnson@google.com>
10887
10888 * dumpfile.c (dump_loc): Print filename with location.
10889 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10890 new location_t parameter to emit complete unroll message with
10891 new dump framework.
10892 (canonicalize_loop_induction_variables): Compute loops location
10893 and pass to try_unroll_loop_completely.
10894 * loop-unroll.c (report_unroll_peel): New function.
10895 (peel_loops_completely): Use new dump format with location
10896 for main dumpfile message, and invoke report_unroll_peel on success.
10897 (decide_unrolling_and_peeling): Ditto.
10898 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10899 by report_unroll_peel.
10900 (decide_peel_completely): Ditto.
10901 (decide_unroll_constant_iterations): Ditto.
10902 (decide_unroll_runtime_iterations): Ditto.
10903 (decide_peel_simple): Ditto.
10904 (decide_unroll_stupid): Ditto.
10905 * cfgloop.c (get_loop_location): New function.
10906 * cfgloop.h (get_loop_location): Declare.
10907
77878621
ST
109082013-01-02 Sriraman Tallam <tmsriram@google.com>
10909
10910 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10911 NULL.
10912
9e65d03e
JDA
109132013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10914
10915 PR middle-end/55198
10916 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10917 BLKmode objects when EXPAND_MEMORY is specified.
10918
6a7da30f
ST
109192013-01-02 Sriraman Tallam <tmsriram@google.com>
10920
10921 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10922 in loop predicate.
10923 (fold_builtin_cpu): Do not share cpu model decls across statements.
10924
e78167f2
JM
109252013-01-02 Jason Merrill <jason@redhat.com>
10926
10927 PR c++/55804
10928 * tree.c (build_array_type_1): Revert earlier change.
10929
8c075fb4
YZ
109302013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10931
10932 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10933 "cortex-a57".
10934 * config/aarch64/aarch64-tune.md: Re-generate.
10935
0682ed3e
RB
109362013-01-02 Richard Biener <rguenther@suse.de>
10937
10938 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10939 invariant load do not generate a vector load from the scalar location.
0682ed3e 10940
b8f6a302
RB
109412013-01-02 Richard Biener <rguenther@suse.de>
10942
10943 PR bootstrap/55784
10944 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10945 * configure: Regenerate.
10946
04b80dbb
RS
109472013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10948
10949 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10950 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10951 (expand_builtin_int_roundingfn_2): Keep the original target around
10952 for the fallback case.
10953
635b0b0c
RS
109542013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10955
10956 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10957 to be clear for sign changes.
10958
42d57399
JH
109592013-01-01 Jan Hubicka <jh@suse.cz>
10960
10961 * ipa-inline-analysis.c: Fix formatting.
10962
5bb6669d
JJ
109632013-01-01 Jakub Jelinek <jakub@redhat.com>
10964
10965 PR tree-optimization/55831
10966 * tree-vect-loop.c (get_initial_def_for_induction): Use
10967 gsi_after_labels instead of gsi_start_bb.
ad41bd84 10968\f
86a2db33 10969Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
10970
10971Copying and distribution of this file, with or without modification,
10972are permitted in any medium without royalty provided the copyright
10973notice and this notice are preserved.