]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Fix formatting of ChangeLog entries
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
3ad695b9
DC
12013-05-24 Dehao Chen <dehao@google.com>
2
3 * gcc/tree-cfg.c (locus_discrim_map): Fix the typo.
4 (locus_discrim_hasher): Likewise.
5 (locus_discrim_hasher::hash): Likewise.
6 (locus_discrim_hasher::equal): Likewise.
7
82338059
MJ
82013-05-24 Martin Jambor <mjambor@suse.cz>
9
10 PR tree-optimization/57294
11 * cgraph.h (ipa_record_stmt_references): Declare.
12 * cgraphbuild.c (ipa_record_stmt_references): New function.
13 (build_cgraph_edges): Use ipa_record_stmt_references.
14 (rebuild_cgraph_edges): Likewise.
15 (cgraph_rebuild_references): Likewise.
16 * ipa-prop.c (ipa_modify_call_arguments): Discard references
17 associated with the old statement and build references from the
18 newly built statements.
19 * ipa-ref.c (ipa_remove_stmt_references): New function.
20 * ipa-ref.h (ipa_remove_stmt_references): Declare.
21
1ccd4874
VM
222013-05-24 Vladimir Makarov <vmakarov@redhat.com>
23
24 * lra-constraints.c (emit_spill_move): Use smaller mode for
25 mem-mem moves.
26 (check_and_process_move): Consider mem-reg moves for secondary
27 too.
28 (curr_insn_transform): Don't lose insns emitted before for
29 secondary memory moves.
30 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
31 reg set up in the current insn.
32
25e25c73
DC
332013-05-24 Dehao Chen <dehao@google.com>
34
35 * gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c: New Testcase.
36 * gcc/tree-cfg.c (locus_descrim_hasher::hash): Change discrminator
37 hash function.
38 (locus_descrim_hasher::equal): Likewise.
39 (build_gimple_cfg): New discrminator assignmnet algorithm
40 (make_edges): Likewise.
41 (next_discriminator_for_locus): Likewise.
42 (same_line_p): Likewise.
43 (assign_discriminators): Likewise.
44 (make_cond_expr_edges): Likewise.
45 (make_gimple_switch_edges): Likewise.
46 (make_goto_expr_edges): Likewise.
47 (make_gimple_asm_edges): Likewise.
48
50d38551
IB
492013-05-24 Ian Bolton <ian.bolton@arm.com>
50
51 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
52 X format specifier to only display bottom 16 bits.
53 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
54 immediate to match for operand 2, since it will be masked.
55
aea0101d
RB
562013-05-24 Richard Biener <rguenther@suse.de>
57
58 PR tree-optimization/57287
59 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
60 all SSA names that occur in abnormal PHIs.
61
634e03d3
AI
622013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
63
64 PR tree-ssa/57385
65 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
66 that index is not negative.
67
b17c024f
EB
682013-05-24 Eric Botcazou <ebotcazou@adacore.com>
69
70 PR rtl-optimization/55177
71 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
72 (simplify_byte_swapping_operation): New.
73 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
74 (simplify_relational_operation_1): Deal with BSWAP.
75
46aeac1b
RH
762013-05-23 Richard Henderson <rth@redhat.com>
77
78 PR target/56742
79 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
80 (ix86_reorg): Call it.
81
70cc1536
UB
822013-05-23 Uros Bizjak <ubizjak@gmail.com>
83
84 PR target/57379
85 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
86 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
87 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
88
b3851501
CB
892013-05-23 Christian Bruel <christian.bruel@st.com>
90
91 PR debug/57351
92 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
93
4e194912
CSS
942013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
95 Marcus Shawcroft <marcus.shawcroft@arm.com>
96
97 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
98 * config/aarch64/constraints.md (Usa): Remove.
99 * doc/md.texi (AArch64 Usa): Remove.
100
83f8c414
CSS
1012013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
102 Marcus Shawcroft <marcus.shawcroft@arm.com>
103
104 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
105 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
106 * config/aarch64/predicates.md (aarch64_const_address): Remove.
107 (aarch64_mov_operand): Use aarch64_mov_operand_p.
108
b5574232
VP
1092013-05-23 Vidya Praveen <vidyapraveen@arm.com>
110
111 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
112 instruction (AdvSIMD).
113 * config/aarch64/aarch64-builtins.c
114 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
115 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
116
76c36cb1 1172013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
118
119 PR middle-end/57347
120 * tree.h (contains_bitfld_component_ref_p): Declare.
121 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
122 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
123 caller.
7d2fb524
MJ
124 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
125 not access a bit-field. Assert all final offsets are byte-aligned.
126
ce521ae6
RB
1272013-05-23 Richard Biener <rguenther@suse.de>
128
129 PR tree-optimization/57380
130 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
131 least one invariant or re-used load.
132 * passes.c (init_optimization_passes): Move pass_phiprop before
133 pass_forwprop.
134
75c7257f
JG
1352013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
136
137 * config/aarch64/aarch64-simd.md
138 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
139
af6d44b5
RB
1402013-05-23 Richard Biener <rguenther@suse.de>
141
142 PR middle-end/57381
143 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
144 OEP_CONSTANT_ADDRESS_OF retained.
145
bd3647bf
JJ
1462013-05-23 Jakub Jelinek <jakub@redhat.com>
147
148 PR middle-end/57344
70cc1536
UB
149 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
150 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 151
a55757ea
RB
1522013-05-23 Richard Biener <rguenther@suse.de>
153
154 PR rtl-optimization/57341
155 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
156 instead of true_dependence.
157
cfb00b41
DM
1582013-05-22 David Malcolm <dmalcolm@redhat.com>
159
dd1c676f
DM
160 * bb-reorder.c (branch_threshold): Make const.
161 (exec_threshold): Ditto.
cfb00b41 162
f62511da
MM
1632013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
164 Pat Haugen <pthaugen@us.ibm.com>
165 Peter Bergner <bergner@vnet.ibm.com>
166
167 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
168 documentation for the power8 crypto builtins.
169
170 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
171
172 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
173 macros for defining power8 builtin functions.
174 (BU_P8V_AV_2): Likewise.
175 (BU_P8V_AV_P): Likewise.
176 (BU_P8V_VSX_1): Likewise.
177 (BU_P8V_OVERLOAD_1): Likewise.
178 (BU_P8V_OVERLOAD_2): Likewise.
179 (BU_CRYPTO_1): Likewise.
180 (BU_CRYPTO_2): Likewise.
181 (BU_CRYPTO_3): Likewise.
182 (BU_CRYPTO_OVERLOAD_1): Likewise.
183 (BU_CRYPTO_OVERLOAD_2): Likewise.
184 (XSCVSPDP): Fix typo, point to the correct instruction.
185 (VCIPHER): Add power8 crypto builtins.
186 (VCIPHERLAST): Likewise.
187 (VNCIPHER): Likewise.
188 (VNCIPHERLAST): Likewise.
189 (VPMSUMB): Likewise.
190 (VPMSUMH): Likewise.
191 (VPMSUMW): Likewise.
192 (VPERMXOR_V2DI): Likewise.
193 (VPERMXOR_V4SI: Likewise.
194 (VPERMXOR_V8HI: Likewise.
195 (VPERMXOR_V16QI: Likewise.
196 (VSHASIGMAW): Likewise.
197 (VSHASIGMAD): Likewise.
198 (VPMSUM): Likewise.
199 (VPERMXOR): Likewise.
200 (VSHASIGMA): Likewise.
201
202 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
203 __CRYPTO__ if the crypto instructions are available.
204 (altivec_overloaded_builtins): Add support for overloaded power8
205 builtins.
206
207 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
208 support for power8 crypto builtins.
209 (builtin_function_type): Likewise.
210 (altivec_init_builtins): Add support for builtins that take vector
211 long long (V2DI) arguments.
212
213 * config/rs6000/crypto.md: New file, define power8 crypto
214 instructions.
215
2162013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
217 Pat Haugen <pthaugen@us.ibm.com>
218 Peter Bergner <bergner@vnet.ibm.com>
219
220 * doc/invoke.texi (Option Summary): Add power8 options.
221 (RS/6000 and PowerPC Options): Likewise.
222
223 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
224 constraints.md instead of rs6000.h. Reorder w* constraints. Add
225 wm, wn, wr documentation.
226
227 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
228 registers if direct move instructions are enabled.
229 (wn): New constraint for no registers.
230 (wq): New constraint for quad word even GPR registers.
231 (wr): New constraint if 64-bit instructions are enabled.
232 (wv): New constraint if power8 vector instructions are enabled.
233 (wQ): New constraint for quad word memory locations.
234
235 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
236 constraint for 0..15 for crypto instructions.
237 (gpc_reg_operand): If VSX allow registers in VSX registers as well
238 as GPR and floating point registers.
239 (int_reg_operand): New predicate to match only GPR registers.
240 (base_reg_operand): New predicate to match base registers.
241 (quad_int_reg_operand): New predicate to match even GPR registers
242 for quad memory operations.
243 (vsx_reg_or_cint_operand): New predicate to allow vector logical
244 operations in both GPR and VSX registers.
245 (quad_memory_operand): New predicate for quad memory operations.
246 (reg_or_indexed_operand): New predicate for direct move support.
247
248 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
249 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
250 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
251 (POWERPC_MASKS): Add power8 options.
252 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
253 various options.
254
255 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
256 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
257
258 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
259 (-mpower8-fusion): New power8 options.
260 (-mpower8-fusion-sign): Likewise.
261 (-mpower8-vector): Likewise.
262 (-mcrypto): Likewise.
263 (-mdirect-move): Likewise.
264 (-mquad-memory): Likewise.
265
266 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
267 power8.
268 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
269 registers.
70cc1536 270 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
271 (rs6000_debug_vector_unit): Add p8_vector.
272 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
273 definitions. Also print fusion state.
274 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
275 (rs6000_builtin_mask_calculate): Add power8 builtin support.
276 (rs6000_option_override_internal): Add support for power8.
277 (rs6000_common_init_builtins): Add debugging for skipped builtins
278 if -mdebug=builtin.
279 (rs6000_adjust_cost): Add power8 support.
280 (rs6000_issue_rate): Likewise.
281 (insn_must_be_first_in_group): Likewise.
282 (insn_must_be_last_in_group): Likewise.
283 (force_new_group): Likewise.
284 (rs6000_register_move_cost): Likewise.
285 (rs6000_opt_masks): Likewise.
286
287 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
288 power8 capable assembler, default to power7 options.
289 (TARGET_DIRECT_MOVE): Likewise.
290 (TARGET_CRYPTO): Likewise.
291 (TARGET_P8_VECTOR): Likewise.
292 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
293 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
294 (VECTOR_MEM_P8_VECTOR_P): Likewise.
295 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
296 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
297 (TARGET_XSCVDPSPN): Likewise.
298 (TARGET_XSCVSPDPN): Likewsie.
299 (TARGET_SYNC_HI_QI): Likewise.
300 (TARGET_SYNC_TI): Likewise.
301 (MASK_CRYPTO): Likewise.
302 (MASK_DIRECT_MOVE): Likewise.
303 (MASK_P8_FUSION): Likewise.
304 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
305 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
306 temporary used by some of the direct move instructions to get two FP
307 temporary registers does not force creation of a stack frame.
f62511da
MM
308 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
309 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
310 that any VSX registers are tieable, even if they are also an
311 Altivec vector mode.
312 (r6000_reg_class_enum): Add wm, wr, wv constraints.
313 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
314 (RS6000_BTM_CRYPTO): Likewise.
315 (RS6000_BTM_COMMON): Likewise.
316
317 * config/rs6000/rs6000.md (cpu attribute): Add power8.
318 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
319 (enum rs6000_vector): Add power8 vector support.
320
73a1a707
RR
3212013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
322
323 PR target/19599
324 PR target/57340
325 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
326 (any_sibcall_could_use_r3): this and handle indirect calls.
327 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
328
d28073d4
BS
3292013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
330
331 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
332
bee0b10c
RB
3332013-05-22 Richard Biener <rguenther@suse.de>
334
335 PR middle-end/57349
336 * profile.c (branch_prob): Do not split blocks that are
337 abnormally receiving from ECF_RETURNS_TWICE functions.
338
98409b51
RS
3392013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
340
341 * recog.c (offsettable_address_addr_space_p): Fix calculation of
342 address mode. Move pointer mode initialization to the same place.
343
c0602ab8
MZ
3442013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
345
346 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
347 while it has any effect.
348
4f7a634e
ER
3492013-05-21 Easwaran Raman <eraman@google.com>
350
351 PR tree-optimization/57322
352 * (build_and_add_sum): If a BB is empty, set the UID of the statement
353 added to the BB to be 1.
354
a4ce1258
JJ
3552013-05-21 Jakub Jelinek <jakub@redhat.com>
356
357 PR tree-optimization/57331
70cc1536
UB
358 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
359 of conversion from pointer type to integral type with integer.
a4ce1258 360
1b14621a
MJ
3612013-05-21 Martin Jambor <mjambor@suse.cz>
362
363 PR lto/57289
364 * ipa-prop.c (ipa_read_node_info): Process param_used and
365 controlled_uses in the same order as when writing.
366
e60661f0
MG
3672013-05-21 Magnus Granberg <baldrick@free.fr>
368
369 PR plugins/56754
ee49aa34 370 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 371
4a61be9a
RB
3722013-05-21 Richard Biener <rguenther@suse.de>
373
374 PR tree-optimization/57318
375 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
376 estimate stmts with side-effects as likely eliminated.
377
c52da5f7
RB
3782013-05-21 Richard Biener <rguenther@suse.de>
379
380 PR tree-optimization/57330
381 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
382 preserve the call stmts fntype.
383
7ec67e2a
RB
3842013-05-21 Richard Biener <rguenther@suse.de>
385
386 PR tree-optimization/57303
387 * tree-ssa-sink.c (statement_sink_location): Improve killing
388 stmt detection and properly handle self-assignments.
389
b112d513
CB
3902013-05-21 Christian Bruel <christian.bruel@st.com>
391
392 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
393 spanning registers. LEAF_REG_REMAP is supported only for contiguous
394 registers. Set register size out of the PARALLEL loop.
395
14c2ec26
OE
3962013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
397
398 PR target/56547
399 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
400 (*fmasf4, *fmasf4_media): New insns.
401
da734fa1
RS
4022013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
403
404 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
405 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
406 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
407 (mips_idiv_insns): Update the comments to say that the returned
408 instruction counts are in units of BASE_INSN_LENGTH.
409 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
410 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
411 using 2 rather than 4 as the length of indirect MIPS16 and
412 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
413 length of a NOP. Don't divide MIPS16 lengths by 2.
414 (mips16_split_long_branches): Assume a branch is long if the
415 length is greater than 4 rather than 8.
416 * config/mips/mips.md (length): Give MIPS16 lengths directly,
417 rather than multiplying them by 2. Multiply instruction counts
418 by BASE_INSN_LENGTH rather than 4.
419 (*jump_mips16, tls_get_tp_mips16_<mode>)
420 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
421
13719e8b
RS
4222013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
423
424 * config/mips/mips.md (extended_mips16): Remove branch case.
425 (length): Remove duplicated extended_mips16 test.
426
c3850d14
RS
4272013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
428
429 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
430
8da2e059
RS
4312013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
432
433 * recog.h (Recog_data): Rename to...
434 (recog_data_d): ...this.
435 (recog_data): Update accordingly.
436 * recog.c (recog_data): Likewise.
437 * reload.c (save_recog_data): Likewise.
438 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
439 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
440
2df013f3
JB
4412013-05-17 Julian Brown <julian@codesourcery.com>
442
443 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
444 found in a REG_EQUAL note, invalidate it.
445
933f507d
ER
4462013-05-17 Easwaran Raman <eraman@google.com>
447
448 * tree-ssa-reassoc.c (find_insert_point): New function.
449 (insert_stmt_after): Likewise.
450 (get_def_stmt): Likewise.
451 (ensure_ops_are_available): Likewise.
452 (not_dominated_by): Likewise.
453 (rewrite_expr_tree): Do not move statements beyond what is
454 necessary. Remove call to swap_ops_for_binary_stmt...
455 (reassociate_bb): ... and move it here.
456 (build_and_add_sum): Assign UIDs for new statements.
457 (linearize_expr): Likewise.
458 (do_reassoc): Renumber gimple statement UIDs.
459
e01c7cca
JH
4602013-05-17 Jan Hubicka <jh@suse.cz>
461
462 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
463 weakrefs.
464 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
465 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
466 weakrefs.
e01c7cca
JH
467 (output_weakrefs): Update.
468
c3272a92
PCC
4692013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
470 Martin Jambor <mjambor@suse.cz>
471
472 PR middle-end/57276
473 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
474 value that corresponds to the given aggval is found in values vector.
475
11c2aa39
UB
4762013-05-17 Uros Bizjak <ubizjak@gmail.com>
477
478 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
479 sse, sse2, sse3, ssse3 and sse4a flags to options.
480
abecc8c6
DM
4812013-05-17 David Malcolm <dmalcolm@redhat.com>
482
483 * gengtype-state.c: (s_expr_writer): New class, to handle
484 prettifying of output layout of s-expressions.
485 (state_writer): New class, to write out gtype.state.
486 (state_written_type_count): Move this variable into member data of
487 state_writer.
488 (s_expr_writer::s_expr_writer): New code: constructor for new class
489 (state_writer::state_writer(): ditto
490 (s_expr_writer::write_new_line): New function
491 (s_expr_writer::write_any_indent): ditto
492 (s_expr_writer::begin_s_expr): ditto
493 (s_expr_writer::end_s_expr): ditto
494 (write_state_fileloc): convert to method of state_writer...
495 (state_writer:: write_state_fileloc): ...and use methods of
496 s_expr_writer to write indentation into the gtype.state output file
497 to visually represent the hierarchical structure of the list
498 structures
499 (write_state_fields): ditto, renaming to...
500 (state_writer::write_state_fields)
501 (write_state_a_string): ditto, renaming to...
502 (state_writer::write_state_a_string)
503 (write_state_string_option): ditto, renaming to...
504 (state_writer::write_state_string_option)
505 (write_state_type_option): ditto, renaming to...
506 (state_writer::write_state_type_option)
507 (write_state_nested_option): ditto, renaming to...
508 (state_writer::write_state_nested_option)
509 (write_state_option): ditto, renaming to...
510 (state_writer::write_state_option)
511 (write_state_options): ditto, renaming to...
512 (state_writer::write_state_options)
513 (write_state_lang_bitmap): ditto, renaming to...
514 (state_writer::write_state_lang_bitmap)
515 (write_state_version): ditto, renaming to...
516 (state_writer::write_state_version)
517 (write_state_scalar_type): ditto, renaming to...
518 (state_writer::write_state_scalar_type)
519 (write_state_string_type): ditto, renaming to...
520 (state_writer::write_state_string_type)
521 (write_state_undefined_type): ditto, renaming to...
522 (state_writer::write_state_undefined_type)
523 (write_state_struct_union_type): ditto, renaming to...
524 (state_writer::write_state_struct_union_type)
525 (write_state_struct_type): ditto, renaming to...
526 (state_writer::write_state_struct_type)
527 (write_state_user_struct_type): ditto, renaming to...
528 (state_writer::write_state_user_struct_type)
529 (write_state_lang_struct_type): ditto, renaming to...
530 (state_writer::write_state_lang_struct_type)
531 (write_state_param_struct_type): ditto, renaming to...
532 (state_writer::write_state_param_struct_type)
533 (write_state_pointer_type): ditto, renaming to...
534 (state_writer::write_state_pointer_type)
535 (write_state_array_type): ditto, renaming to...
536 (state_writer::write_state_array_type)
537 (write_state_gc_used): ditto, renaming to...
538 (state_writer::write_state_gc_used)
539 (write_state_common_type_content): ditto, renaming to...
540 (state_writer::write_state_common_type_content)
541 (write_state_type): ditto, renaming to...
542 (state_writer::write_state_type)
543 (write_state_pair_list): ditto, renaming to...
544 (state_writer::write_state_pair_list)
545 (write_state_pair): ditto, renaming to...
546 (state_writer::write_state_pair)
547 (write_state_typedefs): ditto, renaming to...
548 (state_writer::write_state_typedefs)
549 (write_state_structures): ditto, renaming to...
550 (state_writer::write_state_structures)
551 (write_state_param_structs): ditto, renaming to...
552 (state_writer::write_state_param_structs)
553 (write_state_variables): ditto, renaming to...
554 (state_writer::write_state_variables)
555 (write_state_srcdir): ditto, renaming to...
556 (state_writer::write_state_srcdir)
557 (write_state_files_list): ditto, renaming to...
558 (state_writer::write_state_files_list)
559 (write_state_languages): ditto, renaming to...
560 (state_writer::write_state_languages)
561 (write_state): create a state_writer instance and use it when
562 writing out the state file
563
d6545f29
MS
5642013-05-17 Mike Stump <mikestump@comcast.net>
565
816a3f73 566 PR rtl-optimization/57304
d6545f29
MS
567 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
568 accessing DF_REF_REAL_LOC.
569
38c821cf
JJ
5702013-05-17 Jakub Jelinek <jakub@redhat.com>
571
572 PR rtl-optimization/57281
573 PR rtl-optimization/57300
574 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
575 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
576 what the other splitter did if the registers are dead.
577
2a293391
RB
5782013-05-17 Richard Biener <rguenther@suse.de>
579
580 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
581 MEM_REF offsets.
582
17042d2b
JJ
5832013-05-17 Jakub Jelinek <jakub@redhat.com>
584
585 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
586 linking.
587
5b115c1f
MP
5882013-05-17 Marek Polacek <polacek@redhat.com>
589
11c2aa39
UB
590 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
591 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 592
52d84413
JJ
5932013-05-17 Jakub Jelinek <jakub@redhat.com>
594
68119618
JJ
595 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
596 vect_external_def oprnd1 with loop_vinfo, try to emit
597 optional cast, negation and and stmts on the loop preheader
598 edge instead of into the pattern def seq.
599
52d84413
JJ
600 PR tree-optimization/57051
601 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
602 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
603
17b962bd
NC
6042013-05-16 Nick Clifton <nickc@redhat.com>
605
606 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
607 (rl78_is_naked_func): New function.
608 (rl78_expand_prologue): Skip prologue generation for naked
609 functions.
610 (rl78_expand_epilogue): Skip epilogue generation for naked
611 functions.
612 * doc/extend.texi (naked): Add RL78 to the list of processors
613 that supports this attribute.
614
b1a0f84e
JL
6152013-05-16 Jeff Law <law@redhat.com>
616
617 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
618
af0e415b
UB
6192013-05-16 Uros Bizjak <ubizjak@gmail.com>
620
621 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
622 cache parameters using detect_caches_amd also for CYRIX,
623 NSC and TM2 signatures.
624
19db293a
UB
6252013-05-16 Uros Bizjak <ubizjak@gmail.com>
626 Dzianis Kahanovich <mahatma@eu.by>
627
628 PR target/45359
629 PR target/46396
630 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
631 VIA/Centaur processors and determine their cache parameters
632 using detect_caches_amd.
633
251a41b9
TJ
6342013-05-16 Teresa Johnson <tejohnson@google.com>
635
636 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
637 (rtl_verify_edges): New function.
638 (rtl_verify_bb_insns): Ditto.
639 (rtl_verify_bb_pointers): Ditto.
640 (rtl_verify_bb_insn_chain): Ditto.
641 (rtl_verify_fallthru): Ditto.
642 (rtl_verify_bb_layout): Ditto.
643 (rtl_verify_flow_info_1): Outline checks into new functions.
644 (rtl_verify_flow_info): Ditto.
645
f14540b6
SE
6462013-05-16 Steve Ellcey <sellcey@imgtec.com>
647
648 * cfghooks.c (copy_bbs): Add update_dominance argument.
649 * cfghooks.h (copy_bbs): Update prototype.
650 * tree-cfg.c (gimple_duplicate_sese_region):
651 Add update_dominance argument.
652 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
653 * tree-ssa-loop-ch.c (copy_loop_headers): Update
654 gimple_duplicate_sese_region call.
655 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
656 Update copy_bbs call.
657 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
658 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
659
7e9a3abb
JJ
6602013-05-16 Jakub Jelinek <jakub@redhat.com>
661
662 * tree-vectorizer.h (NUM_PATTERNS): Increment.
663 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
664 vect_recog_rotate_pattern.
665 (vect_recog_rotate_pattern): New function.
666
427b248d
JM
6672013-05-16 Jason Merrill <jason@redhat.com>
668
669 * Makefile.in (LLINKER): New variable.
670 (mostlyclean): Remove link mutex.
671 * configure.ac: Handle --enable-link-mutex.
672 * lock-and-run.sh: New script.
673
b871e3d2
RR
6742013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
675
676 PR target/19599
677 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
678 for NULL decl.
679
ce858126
RO
6802013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
681
682 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
683
798d3d04
GY
6842013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
685
686 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
687 * config/arm/arm.c (next_consecutive_mem): New function.
688 (gen_movmem_ldrd_strd): Likewise.
689 * config/arm/arm.md (movmemqi): Update condition and code.
690 (unaligned_loaddi, unaligned_storedi): New patterns.
691
0baddc45
RO
6922013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693
694 * config.gcc: Obsolete *-*-solaris2.9*.
695 * doc/install.texi (Specific, *-*-solaris2*): Document it.
696
aa9d5bcf
RB
6972013-05-16 Richard Biener <rguenther@suse.de>
698
699 * passes.c (init_optimization_passes): Move pass_parallelize_loops
700 earlier, after GRAPHITE transforms and IV canonicalization.
701
5a0f4dd3
JJ
7022013-05-16 Jakub Jelinek <jakub@redhat.com>
703
704 * omp-low.c (extract_omp_for_data): For collapsed loops,
705 if at least one of the loops is known at compile time to
706 iterate zero times, set count to 0.
707 (expand_omp_regimplify_p): New function.
708 (expand_omp_for_generic): For collapsed loops, if at least
709 one of the loops isn't known to iterate at least once,
710 add runtime check with setting count to 0.
711 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
712 For unsigned types if it isn't known at compile time that
713 the loop will iterate at least once, add runtime check to bypass
714 the whole loop if initial condition isn't true.
715
e3753785
NS
7162013-05-16 Nathan Sidwell <nathan@codesourcery.com>
717
718 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
719
43bb4dd1
MG
7202013-05-16 Marc Glisse <marc.glisse@inria.fr>
721
722 PR middle-end/57286
723 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
724 transformations to avoid an infinite loop.
725
3571dde6
MP
7262013-05-16 Marek Polacek <polacek@redhat.com>
727
728 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
729
b8b3f0ca
LE
7302013-05-15 Leif Ekblad <leif@rdos.net>
731
732 * config/i386/i386.c (ix86_decompose_address): Use
733 DEFAULT_TLS_SEG_REG to access TLS segment register.
734 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
735 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
736 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
737
e299a383
RS
7382013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
739
740 PR target/57260
741 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
742 sibling calls to functions that would normally be lazily bound,
743 unless $gp is call-clobbered.
744
e7208ea3
UB
7452013-05-15 Uros Bizjak <ubizjak@gmail.com>
746
19db293a 747 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 748 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
749 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
750 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
751 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
752 of TARGET_3DNOW.
753 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
754
e7413f3d
AS
7552013-05-15 Andreas Schwab <schwab@suse.de>
756
757 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
758 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
759 third operand.
760
ad4db775
TJ
7612013-05-15 Teresa Johnson <tejohnson@google.com>
762
763 * loop-unroll.c (report_unroll_peel): Check decision before
764 emitting unroll/peel message.
765
af205f67
TJ
7662013-05-15 Teresa Johnson <tejohnson@google.com>
767
768 * function.h (has_bb_partition): New rtl_data flag.
769 (bb_reorder_complete): Ditto.
770 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
771 instead of flag_reorder_blocks_and_partition.
772 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
773 with some enhancements.
774 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
775 * bb-reorder.c (connect_traces): Check for has_bb_partition
776 instead of flag_reorder_blocks_and_partition.
777 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
778 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
779 verify_hot_cold_block_grouping.
780 (partition_hot_cold_basic_blocks): Set has_bb_partition.
781
9adcfa3c
RR
7822013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
783
784 PR target/19599
785 * config/arm/predicates.md (call_insn_operand): New predicate.
786 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
787 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
788 if insn is not a tail call.
789 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
790 registers.
791 * config/arm/arm.h (enum reg_class): New caller save register class.
792 (REG_CLASS_NAMES): Likewise.
793 (REG_CLASS_CONTENTS): Likewise.
794 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
795 without decls.
796
ccb3ad87
RB
7972013-05-15 Richard Biener <rguenther@suse.de>
798
799 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
800 of MSG_OPTIMIZED_LOCATIONS.
801 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
802 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
803 message.
804 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
805 of MSG_OPTIMIZED_LOCATIONS.
806 (execute_vect_slp): Likewise.
807 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
808 (vect_create_cond_for_alias_checks): Likewise.
809 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
810 (vect_recog_widen_mult_pattern): Likewise.
811 (vect_recog_widen_sum_pattern): Likewise.
812 (vect_recog_over_widening_pattern): Likewise.
813 (vect_recog_widen_shift_pattern): Likewise.
814 (vect_recog_vector_vector_shift_pattern): Likewise.
815 (vect_recog_divmod_pattern): Likewise.
816 (vect_recog_mixed_size_cond_pattern): Likewise.
817 (vect_recog_bool_pattern): Likewise.
818 (vect_pattern_recog_1): Likewise.
819
48b1474e
MJ
8202013-05-15 Martin Jambor <mjambor@suse.cz>
821
822 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
823 non-functions to builtin_unreachable.
824 * ipa-inline-transform.c (inline_call): Do not assert estimates were
825 correct when new direct edges were discovered.
826
9de04252
MJ
8272013-05-15 Martin Jambor <mjambor@suse.cz>
828
829 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
830 header, print symbol order instead of node uid, print more information
831 about indirect edge targets.
832 (ipa_make_edge_direct_to_target): Print symbol order instead of node
833 uids.
834 (ipa_make_edge_direct_to_target): Likewise.
835 (remove_described_reference): Likewise.
836 (propagate_controlled_uses): Likewise.
837 (ipa_print_node_params): Also print symbol order.
838 (ipcp_transform_function): Print symbol order instead of node uids.
839 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
840 (cgraph_get_create_real_symbol_node): Likewise.
841 * ipa-cp.c (print_lattice): Likewise.
842 (print_all_lattices): Likewise.
843 (determine_versionability): Likewise.
844 (initialize_node_lattices): Likewise.
845 (estimate_local_effects): Likewise.
846 (update_profiling_info): Likewise.
847 (create_specialized_node): Likewise.
848 (perhaps_add_new_callers): Likewise.
849 (decide_about_value): Likewise.
850 (decide_whether_version_node): Likewise.
851 (identify_dead_nodes): Likewise.
852 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
853 (dump_inline_summary): Likewise.
854 (estimate_node_size_and_time): Likewise.
855 (inline_analyze_function): Likewise.
856 * ipa-inline.c (report_inline_failed_reason): Likewise.
857 (want_early_inline_function_p): Likewise.
858 (edge_badness): Likewise.
859 (update_edge_key): Likewise.
860 (inline_small_functions): Likewise. Add dumping of order to two other
861 dumps.
862 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
863 instead of node uids.
864 (propagate_pure_const): Likewise.
865 (propagate_pure_const): Likewise.
866 * ipa-utils.c (dump_cgraph_node_set): Likewise.
867 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
868 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
869 of node uids.
870 * tree-pretty-print.c (dump_function_header): Likewise.
871 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
872 Print symbol order instead of node uids.
873
1dd03b91
AK
8742013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
875
876 * config/s390/s390.c (s390_register_move_cost): Don't impose the
877 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
878
fdf6a7b9
RB
8792013-05-15 Richard Biener <rguenther@suse.de>
880
881 PR tree-optimization/57275
882 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
883 return value for fail to do runtime alias checks for gather loads.
884
2d6e4603
JH
8852013-05-15 Jan Hubicka <jh@suse.cz>
886
887 PR lto/57038
888 PR lto/47375
e7208ea3
UB
889 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
890 weakrefs are not external.
891 (lto_symtab_merge_decls): Fix thinko when dealing with
892 non-lto_symtab decls.
2d6e4603
JH
893 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
894 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
895 * varpool.c (dump_varpool_node): Dump more flags.
896
83f44b39
GG
8972013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
898
899 * config/i386/i386.c (processor_alias_table): Add instruction
900 FSGSBASE for AMD bdver3 architecture.
901
2e55d062
JJ
9022013-05-14 Jakub Jelinek <jakub@redhat.com>
903
904 * tree.c (warn_deprecated_use): Print file:line using locus color.
905 * diagnostic.c (diagnostic_report_current_module): Print file:line
906 and file:line:column using locus color.
907
0bfdb81e
MS
9082013-05-14 Mike Stump <mikestump@comcast.net>
909
910 * gdbinit.in: Add __null.
911
a508ef22
MS
9122013-05-14 Mike Stump <mikestump@comcast.net>
913
914 * recog.h: Rename struct recog_data to Recog_data.
915 * recog.c: Likewise.
916 * reload.c (can_reload_into): Likewise.
917 * config/picochip/picochip.c: Likewise.
918
e7180acb
MS
9192013-05-14 Mike Stump <mikestump@comcast.net>
920
921 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
922
61216c26
SB
9232013-05-14 Steven Bosscher <steven@gcc.gnu.org>
924
fd6beed4
SB
925 * resource.h (struct resources): Remove unch_memory member.
926 (CLEAR_RESOURCE): Don't clear unch_memory.
927 * resource.c (mark_referenced_resources): Don't set it.
928 (mark_set_resources): Likewise.
929 (mark_target_live_regs): Don't clear it.
930 (init_resource_info): Likewise.
931 * reorg.c (resource_conflicts_p): Don't compare it.
932 (redundant_insn): Don't set it.
933
61216c26
SB
934 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
935 Remove prototypes.
936 * emit-rtl.c (next_label): Remove unused function.
937 (skip_consecutive_labels, link_cc0_insns): Move to ...
938 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
939 only place where these functions are used, and make them static.
940
418d1b87
MG
9412013-05-14 Marc Glisse <marc.glisse@inria.fr>
942
943 * fold-const.c (fold_negate_expr): Handle vectors.
944 (fold_truth_not_expr): Make it static.
945 (fold_invert_truthvalue): New static function.
946 (invert_truthvalue_loc): Handle vectors. Do not call
947 fold_truth_not_expr directly.
948 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
949 <TRUTH_NOT_EXPR>: Do not cast to boolean.
950 (fold_comparison): Handle vector constants.
951 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
952 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
953 * tree.h (fold_truth_not_expr): Remove declaration.
954
fc21784d
JG
9552013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
956
957 * config/aarch64/aarch64-simd.md
958 (aarch64_vcond_internal<mode>): Rename to...
959 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
960 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
961 float modes. Clarify all iterator modes.
962 (vcond<mode><mode>): Use new name for vcond expanders.
963 (vcond<v_cmp_result><mode>): Likewise.
964 (vcondu<mode><mode>: Likewise.
965 * config/aarch64/iterators.md (VDQF_COND): New.
966
d4c52634
MG
9672013-05-14 Marc Glisse <marc.glisse@inria.fr>
968
969 PR bootstrap/57266
970 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
971 variable for the shift amount. Check that we shift by non-negative
972 amounts.
973
2b261262
CLT
9742013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
975
976 PR target/42017
977 * config/arm/arm.h (EPILOGUE_USES): Only return true
978 for LR_REGNUM after epilogue_completed.
979
6e022d7b
JR
9802013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
981
982 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 983 is error_mark_node.
6e022d7b 984
56cf7859
RO
9852013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
986
987 PR target/57261
988 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
989 and Solaris 11+/x86 with gld.
990 * configure: Regenerate.
991
75776c6d
JJ
9922013-05-14 Jakub Jelinek <jakub@redhat.com>
993
994 * expmed.c (expand_shift_1): Canonicalize rotates by
995 constant bitsize / 2 to bitsize - 1.
996 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
997 case ROTATERT>: Likewise.
998
999 Revert:
1000 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1001
1002 * config/i386/i386.md (rotateinv): New code attr.
1003 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1004 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1005 roll $31, %eax, etc.
1006
df35498a
RB
10072013-05-14 Richard Biener <rguenther@suse.de>
1008
1009 PR middle-end/57235
1010 * tree-eh.c (sink_clobbers): Give up for successors with
1011 multiple predecessors and no virtual uses.
1012
cc6e7ece
EB
10132013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1014
1015 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1016 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1017
f778dd4d
JJ
10182013-05-14 Jakub Jelinek <jakub@redhat.com>
1019
1020 PR middle-end/57251
1021 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1022 the case when both op0 and op1 have VOIDmode.
1023
bad4df9b
KP
10242013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1025
1026 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1027 in multiply-accumulate mode.
1028
56f3e9ac
GW
10292013-05-13 Guozhi Wei <carrot@google.com>
1030
1031 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1032
a3d7ab92
KT
10332013-05-13 Kai Tietz <ktietz@redhat.com>
1034
1035 PR target/56975
1036 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1037 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1038 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1039 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1040 (ix86_expand_prologue): Likewise.
1041 (ix86_expand_split_stack_prologue): Likewise.
1042 (legitimate_pic_address_disp_p): Likewise.
1043 (legitimize_pic_address): Likewise.
1044 (legitimize_tls_address): Likewise.
1045 (legitimize_pe_coff_symbol): Likewise.
1046 (output_pic_addr_const): Likewise.
1047 (construct_plt_address): Likewise.
1048 (ix86_expand_call): Likewise.
1049 (x86_output_mi_thunk): Likewise.
1050 (x86_function_profiler): Likewise.
1051
c59b7e28
SN
10522013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1053
1054 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1055 similar switch cases.
1056 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1057 (aarch64_simd_mov_to_<mode>low): Delete.
1058 (aarch64_simd_mov_to_<mode>high): Delete.
1059 (move_lo_quad_<mode>): Add w<-r alternative.
1060 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1061 (aarch64_simd_mov_from_*): Update type attribute.
1062 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1063 statement.
1064
5f28524a
JH
10652013-05-13 Jan Hubicka <jh@suse.cz>
1066
1067 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1068 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1069 ix86_expand_epilogue, emit_i387_cw_initialization,
1070 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1071 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1072
ae6fa899
JJ
10732013-05-13 Jakub Jelinek <jakub@redhat.com>
1074
1075 PR tree-optimization/45216
1076 PR tree-optimization/57157
1077 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1078 the (-Y) & (B - 1) variant if OP is |.
1079 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1080 return shifted. Use (-op1) & (prec - 1) as other_amount
1081 instead of prec - op1.
1082
4502fe8d
MJ
10832013-05-13 Martin Jambor <mjambor@suse.cz>
1084
1085 PR middle-end/42371
1086 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1087 (ipa_constant_data): New type.
1088 (ipa_jump_func): Use ipa_constant_data to hold information about
1089 constant jump functions.
1090 (ipa_get_jf_constant): Adjust to jump function type changes.
1091 (ipa_get_jf_constant_rdesc): New function.
1092 (ipa_param_descriptor): New field controlled_uses.
1093 (ipa_get_controlled_uses): New function.
1094 (ipa_set_controlled_uses): Likewise.
1095 * ipa-ref.h (ipa_find_reference): Declare.
1096 * ipa-prop.c (ipa_cst_ref_desc): New type.
1097 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1098 changes.
1099 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1100 New parameter cs. Adjust all callers.
1101 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1102 (remove_described_reference): New function.
1103 (jfunc_rdesc_usable): Likewise.
1104 (try_make_edge_direct_simple_call): Decrement controlled use count,
1105 attempt to remove reference if it hits zero.
1106 (combine_controlled_uses_counters): New function.
1107 (propagate_controlled_uses): Likewise.
1108 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1109 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1110 (ipa_print_node_params): Print described use counter.
1111 (ipa_write_jump_function): Adjust to jump function type changes.
1112 (ipa_read_jump_function): New parameter CS, pass it to
1113 ipa_set_jf_constant. Adjust caller.
1114 (ipa_write_node_info): Stream controlled use count
1115 (ipa_read_node_info): Likewise.
1116 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1117 asserting.
1118 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1119 count. Remove cloning-added reference if it reaches zero.
1120 * ipa-ref.c (ipa_find_reference): New function.
1121
0864bfc2
GG
11222013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1123
e7208ea3 1124 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
1125 alignment values for AMD BD and BT architectures.
1126
640bfeb2
MG
11272013-05-13 Marc Glisse <marc.glisse@inria.fr>
1128
1129 * tree-vect-generic.c (uniform_vector_p): Move ...
1130 * tree.c (uniform_vector_p): ... here.
1131 * tree.h (uniform_vector_p): Declare it.
1132 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1133 into a scalar.
1134
3a60f32b
JJ
11352013-05-13 Jakub Jelinek <jakub@redhat.com>
1136
198fe1bf
JJ
1137 PR tree-optimization/57230
1138 * tree-ssa-strlen.c (handle_char_store): Record length for
1139 array store from STRING_CST.
1140
3a60f32b
JJ
1141 PR tree-optimization/57230
1142 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1143 check.
1144
566be57c
JR
11452013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1146
1147 * config/epiphany/epiphany.c (epiphany_init): Check size of
1148 NUM_MODES_FOR_MODE_SWITCHING.
1149 (epiphany_expand_prologue):
1150 Remove CONFIG_REGNUM initial value handling code.
1151 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1152 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 1153 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
1154 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1155 Don't return 1 for FP_MODE_NONE.
1156 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1157 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1158 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1159 * config/epiphany/epiphany.md (save_config): New pattern.
1160
0f2c2331
UB
11612013-05-12 Uros Bizjak <ubizjak@gmail.com>
1162
1163 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1164
5b3f93c7
UB
11652013-05-10 Uros Bizjak <ubizjak@gmail.com>
1166
1167 * config/i386/i386.md (memory): Handle sseishft1.
1168 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1169 (*vec_extractv2di_1): Ditto.
1170
1f873f0e
VM
11712013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1172
1173 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1174 saved registers.
1175
341427fa 11762013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
1177
1178 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1179 Add mthumb/march=armv7-a multilib.
1180 Add mthumb/march=armv7-r multilib.
1181 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1182
9e69bdde
RC
11832013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1184
1185 * config/v850/t-rtems: Add more multilibs.
1186
9ff09a22
RB
11872013-05-10 Richard Biener <rguenther@suse.de>
1188
1189 PR tree-optimization/57214
1190 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1191 not propagate from SSA names that occur in abnormal PHI nodes.
1192
a5e0cd1d
MG
11932013-05-10 Marc Glisse <marc.glisse@inria.fr>
1194
1195 * stor-layout.c (element_precision): New function.
1196 * machmode.h (element_precision): Declare it.
1197 * tree.c (build_minus_one_cst): New function.
1198 (element_precision): Likewise.
1199 * tree.h (build_minus_one_cst): Declare new function.
1200 (element_precision): Likewise.
1201 * fold-const.c (operand_equal_p): Use element_precision.
1202 (fold_binary_loc): Handle vector types.
1203 * convert.c (convert_to_integer): Use element_precision.
1204 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1205 separately.
1206
cb2558bc
RS
12072013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1208
1209 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1210 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1211 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1212 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1213 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1214 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1215 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1216 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1217 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1218 (Uuw8): New constraints.
1219 (Usb4): Move into alphabetical order.
1220 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1221 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1222 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1223 previously unnamed patterns.
1224 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1225 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1226 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1227 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1228 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1229 of specific lengths.
1230
cb3b8d33
JJ
12312013-05-10 Jakub Jelinek <jakub@redhat.com>
1232
6f93c008
JJ
1233 * config/i386/i386.md (rotateinv): New code attr.
1234 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1235 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1236 roll $31, %eax, etc.
1237
cb3b8d33
JJ
1238 PR tree-optimization/45216
1239 PR tree-optimization/57157
1240 * tree-ssa-forwprop.c (simplify_rotate): New function.
1241 (ssa_forward_propagate_and_combine): Call it.
1242
afb119be
RB
12432013-05-10 Richard Biener <rguenther@suse.de>
1244
1245 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1246 disable peeling when we version for aliasing.
1247 (vector_alignment_reachable_p): Honor explicit user alignment.
1248 (vect_supportable_dr_alignment): Likewise.
1249 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1250 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1251 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1252 then peeling to arrange for the cost-model check to come first.
1253
01ae4861
AM
12542013-05-10 Alan Modra <amodra@gmail.com>
1255
1256 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1257 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1258 * configure: Regenerate.
1259
ebc9a431
AM
12602013-05-10 Alan Modra <amodra@gmail.com>
1261
1262 PR target/55033
1263 * varasm.c (default_elf_select_section): Move !DECL_P check..
1264 (get_named_section): ..to here before calling get_section_name.
1265 Adjust assertion.
1266 (default_section_type_flags): Add DECL_P check.
1267 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1268 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1269
d4bca93c
JR
12702013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1271
1272 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1273 When using gen_stack_adjust_str with a register offset, add a
1274 REG_FRAME_RELATED_EXPR note.
1275
60ca9a65
UB
12762013-05-09 Uros Bizjak <ubizjak@gmail.com>
1277
1278 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1279 (*vec_extractv4si_zext_mem): Ditto.
1280 (*vec_extractv2di): Add 0->x and x->x alternatives.
1281 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1282 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1283
a3409c02
JM
12842013-05-09 Jason Merrill <jason@redhat.com>
1285
0138d6b2
JM
1286 N3639 C++1y VLA support
1287 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1288 DECL_VALUE_EXPR.
1289
a3409c02
JM
1290 * tree.c (build_constructor_va): New.
1291 * tree.h: Declare it.
1292
66e6b990
MJ
12932013-05-09 Martin Jambor <mjambor@suse.cz>
1294
1295 PR lto/57084
1296 * gimple-fold.c (canonicalize_constructor_val): Call
1297 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1298
64cfa6c0
JH
12992013-05-09 Jan Hubicka <jh@suse.cz>
1300 Richard Biener <rguenther@suse.de>
1301
1302 PR lto/54095
1303 * symtab.c (symtab_make_decl_local): Do not add private names.
1304
c3167b00
JH
13052013-05-09 Jan Hubicka <jh@suse.cz>
1306
1307 PR lto/54095
1308 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1309 (unlink_from_assembler_name_hash): Likewise.
1310 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1311 symtab_unregister_node, symtab_initialize_asm_name_hash,
1312 change_decl_assembler_name): Update.
1313
12dc6974
SN
13142013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1315
1316 * config/aarch64/aarch64.md: New movtf split.
1317 (*movtf_aarch64): Update.
1318 (aarch64_movdi_tilow): Handle TF modes and rename to
1319 aarch64_movdi_<mode>low.
1320 (aarch64_movdi_tihigh): Handle TF modes and rename to
1321 aarch64_movdi_<mode>high
1322 (aarch64_movtihigh_di): Handle TF modes and rename to
1323 aarch64_mov<mode>high_di
1324 (aarch64_movtilow_di): Handle TF modes and rename to
1325 aarch64_mov<mode>low_di
1326 (aarch64_movtilow_tilow): Remove spurious whitespace.
1327 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1328 splits.
1329 (aarch64_print_operand): Update.
1330
227eb343
AM
13312013-05-09 Alan Modra <amodra@gmail.com>
1332
1333 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1334 powerpc64le.
1335 * configure: Regenerate.
1336
0b013847
UB
13372013-05-08 Uros Bizjak <ubizjak@gmail.com>
1338
1339 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1340 splitter preparation statements.
1341 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1342 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1343 adjust_address_nv.
1344
1dc3d6e9
BS
13452013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1346
1347 * gimple-ssa-strength-reduction.c (count_candidates): Change
1348 return value to int.
1349 (analyze_candidates_and_replace): Change type of length to int.
1350
e61e7d28
UB
13512013-05-08 Uros Bizjak <ubizjak@gmail.com>
1352
1353 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1354 (*vec_extract<mode>): Use VI12_128 mode iterator.
1355 (*vec_extract<mode>_mem): Ditto.
1356 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1357 attribute.
1358
4fbfcf44
DN
13592013-05-08 Diego Novillo <dnovillo@google.com>
1360
1361 PR bootstrap/54659
1362
1363 Revert:
4fbfcf44
DN
1364 2012-08-17 Diego Novillo <dnovillo@google.com>
1365
e61e7d28
UB
1366 PR bootstrap/54281
1367 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1368 * config.in: Regenerate.
1369 * configure: Regenerate.
1370 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 1371
702d8703
JH
13722013-05-08 Jan Hubicka <jh@suse.cz>
1373
1374 PR lto/54095
1375 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1376 * cgraph.h (symtab_node_base): Add unique_name.
1377 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1378 input_overwrite_node, input_varpool_node): Stream unique_name.
1379 * cgraphclones.c (cgraph_create_virtual_clone,
1380 cgraph_function_versioning): Set unique_name.
1381 * ipa.c (function_and_variable_visibility): Set unique_name.
1382
8b28cf47
BS
13832013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1384
1385 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1386 (alloc_cand_and_find_basis): Restrict conditional candidate
1387 processing to CAND_MULTs.
1388
e86074fd
JH
13892013-05-08 Jan Hubicka <jh@suse.cz>
1390
1391 PR lto/54095
1392 lto-symtab.c (lto_symtab_symbol_p): New function.
1393 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1394 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1395 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1396 Skip static symbols.
1397
44398cbe
PC
13982013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1399
1400 PR tree-optimization/57200
1401 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1402 Only call inform if the preceding warning_at returns true.
1403
f6bc1c4a
HS
14042013-05-07 Han Shen <shenhan@google.com>
1405
1406 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1407 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1408 * common.opt (fstack-protector-strong): New option.
1409 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1410 * doc/invoke.texi (Optimization Options): Document
1411 "-fstack-protector-strong".
1412 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1413
4ffecb1f
SB
14142013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1415
1416 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1417
5a107a0f
VM
14182013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1419
1420 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1421 it is not lhs of the insn.
1422 (setup_reg_equiv): Remove insn having equiv memory which it is not
1423 lhs of the insn.
1424 * lra-constraints.c (process_address): Try to improve generation
1425 code for address base + disp.
1426 (lra_constraints): Make correct the code for checking insn setting
1427 up backward equivalence. Remove insn only if it is in the init
1428 insn list.
1429 * lra-eliminations.c (update_reg_eliminate): Change return value.
1430 (lra_eliminate): Use the result.
1431
3f5783ea
UB
14322013-05-07 Uros Bizjak <ubizjak@gmail.com>
1433
1434 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1435 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1436 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1437 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1438 register target operands.
1439 (*vec_extractv8hi_sse2): New pattern.
1440 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1441 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1442 (*vec_extract<mode>_mem): New insn and split pattern.
1443
8a5800b8
CL
14442013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1445
1446 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1447 (TARGET_ASAN_SHADOW_OFFSET): Define.
1448 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1449 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1450
7bf55a70
BS
14512013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1452
1453 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1454 (incr_vec_index): Return -1 if increment not found.
1455 (create_add_on_incoming_edge): Assert if increment not found.
1456 (record_increment): Limit number of increments recorded.
1457 (all_phi_incrs_profitable): Return false if an increment not found.
1458 (replace_profitable_candidates): Don't process increments that were
1459 not recorded.
1460 (analyze_candidates_and_replace): Limit size of incr_vec.
1461
3f8825c0
RB
14622013-05-07 Richard Biener <rguenther@suse.de>
1463
1464 * calls.c (special_function_p): setjmp-like functions are leaf.
1465 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1466 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1467
fd4842cd
SN
14682013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1469
1470 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1471 (aarch64_simd_mov<mode>): New expander.
1472 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1473 (aarch64_simd_mov_to_<mode>high): Likewise.
1474 (aarch64_simd_mov_from_<mode>low): Likewise.
1475 (aarch64_simd_mov_from_<mode>high): Likewise.
1476 (aarch64_dup_lane<mode>): Update.
1477 (aarch64_dup_lanedi): New instruction pattern.
1478 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1479 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1480
a7a7d10e
BS
14812013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1482
1483 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1484 (replace_mult_candidate): Remove unnecessary argument; remove
1485 unnecessary parameter from call to introduce_cast_before_cand.
1486 (replace_unconditional_candidate): Remove unnecessary parameter
1487 from call to replace_mult_candidate.
1488 (replace_conditional_candidate): Likewise.
1489 (insert_initializers): Use make_temp_ssa_name.
1490 (introduce_cast_before_cand): Remove unnecessary argument; use
1491 make_temp_ssa_name.
1492 (replace_one_candidate): Remove unnecessary argument; remove
1493 unnecessary parameter from calls to introduce_cast_before_cand.
1494 (replace_profitable_candidates): Remove unnecessary parameters
1495 from calls to replace_one_candidate.
1496
29105868
BS
14972013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1498
1499 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1500 phi def as possibly hiding a basis for a CAND_ADD whose operands
1501 have been commuted in the analysis.
1502 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1503
4095f9fa
N
15042013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1505
1506 * config/aarch64/aarch64.md
1507 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1508 shift value between 0-4.
1509
39e843e8
RB
15102013-05-07 Richard Biener <rguenther@suse.de>
1511
1512 * double-int.h (rshift): New overload.
1513 * double-int.c (rshift): New function.
1514 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1515 (create_reference_ops_from_ref): Remove.
1516 (vn_reference_insert): Use shared ops for constructing the
1517 reference and copy it.
1518
0a1a83cb
RB
15192013-05-07 Richard Biener <rguenther@suse.de>
1520
1521 PR middle-end/57190
1522 * tree-eh.c (sink_clobbers): Properly propagate
1523 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1524
43303d6f
JJ
15252013-05-07 Jakub Jelinek <jakub@redhat.com>
1526
ba7e83f8
JJ
1527 PR tree-optimization/57149
1528 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1529 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1530 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1531 uninit_undefined_value_p instead of ssa_undefined_value_p.
1532
43303d6f
JJ
1533 PR debug/57184
1534 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1535 for modifier == EXPAND_INITIALIZER.
1536
14523c25
AB
15372013-05-07 Anton Blanchard <anton@samba.org>
1538
1539 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1540 for powerpc64 little endian.
1541 * configure: Regenerate.
1542
cb7c8be9
GS
15432013-05-06 Graham Stott <grahams@btinternet.com>
1544
1545 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1546 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1547 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1548 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1549
15502013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
1551
1552 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1553 codes which allow non-lvalues.
1554
9a0ee7b0
MG
15552013-05-06 Marc Glisse <marc.glisse@inria.fr>
1556
1557 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1558 components are all 1s.
1559 (integer_minus_onep): New function.
1560 * tree.h (integer_minus_onep): Declare it.
1561 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1562 integer_minus_onep instead of integer_all_onesp.
1563
f2c17ea9
OE
15642013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1565
1566 PR target/52933
1567 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1568 variations of these patterns.
1569
f75e6a51
UB
15702013-05-06 Uros Bizjak <ubizjak@gmail.com>
1571
1572 * config/i386/i386.md (isa): Add x64_sse4 member.
1573 (enabled): Handle x64_sse4.
1574 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1575 instruction for 64bit SSE4_1 targets. Update insn attributes.
1576 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1577 instruction for SSE4_1 targets. Update insn attributes.
1578 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1579 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1580 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1581 const_1 selector.
1582 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1583 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1584 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1585
a986d468
OE
15862013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1587
1588 PR target/57108
1589 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1590
382522cb
MK
15912013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1592
1593 * final.c (do_assembler_dialects): Don't handle curly braces and
1594 vertical bar escaped by % as dialect delimiters.
1595 (output_asm_insn): Print curly braces and vertical bar if escaped
1596 by % and ASSEMBLER_DIALECT defined.
1597 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1598 * doc/tm.texi: Regenerated.
1599
fb0d5c60
SB
16002013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1601
fb0d5c60
SB
1602 * config/mips/mips.c: Include tree-pass.h.
1603 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1604 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1605 (pass_mips_machine_reorg2): New machine specific pass.
1606 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1607 (mips_option_override): Register the new pass.
1608 * rtl.h (cleanup_barriers): Remove prototype.
1609 (dbr_schedule): Likewise.
1610 * jump.c (cleanup_barriers): Make static.
1611 * reorg.c (dbr_schedule): Likewise.
1612
aa06a978
RB
16132013-05-06 Richard Biener <rguenther@suse.de>
1614
1615 PR tree-optimization/57185
1616 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1617 SSA names properly.
1618
0b953bec
UB
16192013-05-06 Uros Bizjak <ubizjak@gmail.com>
1620
1621 PR target/57106
1622 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1623 between "first_arg" and "insn", not "last" and "insn".
1624
28708525
WS
16252013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1626
1627 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1628 (find_candidates_in_block): Re-enable slsr_process_phi.
1629 (create_phi_basis): Fix double counting of candidate adjustment.
1630
0107dca2
RB
16312013-05-06 Richard Biener <rguenther@suse.de>
1632
1633 PR middle-end/57147
1634 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1635 the edge is also fallthru, preserve it and just clear the
1636 abnormal flag.
1637 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1638 also complex, preserve that and just clear the fallthru flag.
1639 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1640 update virtual operands.
1641
470d4d13
AM
16422013-05-06 Alan Modra <amodra@gmail.com>
1643
1644 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1645 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1646 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1647 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1648 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1649 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1650
8f1dbf8d
AM
16512013-05-06 Alan Modra <amodra@gmail.com>
1652
1653 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1654 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1655 (DEFAULT_ASM_ENDIAN): Define.
1656 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1657 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1658 Update -K PIC clause from sysv4.h.
1659 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1660 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1661
54890767
AM
16622013-05-06 Alan Modra <amodra@gmail.com>
1663
1664 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1665 twice for little-endian.
1666 (ashrdi3_no_power, ashrdi3): Support little-endian.
1667
2353515d
OE
16682013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1669
1670 PR target/55303
1671 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1672 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1673 related expanders.
1674 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1675 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1676 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1677 New predicates.
1678
33e67557
SB
16792013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1680 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1681
1682 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1683 * config/pa/pa.opt: Make mbig-switch a no-op.
1684 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1685 (CASE_VECTOR_MODE): Always return SImode.
1686 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1687 for the !TARGET_BIG_SWITCH case.
1688 * config/pa/pa-linux.h: Likewise.
1689 * config/pa/pa-openbsd.h: Likewise.
1690 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1691 * config/pa/pa.md (short_jump): Remove define_insn.
1692 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1693 (casesi0): Remove define_insn.
1694 (type): Remove btable_branch.
1695 (pa_combine_type): Likewise.
1696 (in_nullified_branch_delay): Likewise.
1697 (in_call_delay): Likewise.
1698 (define_delay): Likewise.
1699 (define_insn_reservation "Z3"): Likewise.
1700 (define_insn_reservation "Z4"): Likewise.
1701 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1702 (pa_adjust_insn_length): Remove adjustment for btable branches.
1703 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1704 and mno-big-switch
1705
3095685e
UB
17062013-05-05 Uros Bizjak <ubizjak@gmail.com>
1707
1708 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1709 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1710 Add m->r,x alternatives.
1711 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1712 splitters using SWI48x mode iterator.
1713 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1714 TARGET_64BIT. Add m->x alternative.
1715 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1716 Add o->x alternative. Enable for TARGET_SSE.
1717 (sse_storeq): Remove expander.
1718 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1719 with memory input operand.
1720 (*vec_extractv2di_1 splitter): New.
1721 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1722 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1723
4b36ae28
SB
17242013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1725
1726 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1727 (INT_LOWPART): Delete.
1728 (extract_MB): Adjust.
1729 (extract_ME): Adjust.
1730 (print_operand): Adjust.
1731
da226db2
SB
17322013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1733
1734 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1735 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1736 (reg_or_logical_cint_operand, easy_fp_constant,
1737 logical_const_operand): Delete "CONST_DOUBLE" case.
1738 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1739 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 1740 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
1741 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1742 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1743 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1744 test.
1745 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1746 CONST_DOUBLE DImode/VOIDmode case.
1747 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1748 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1749 CONST_DOUBLE VOIDmode case.
1750 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1751 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1752 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1753 Delete CONST_DOUBLE case.
1754 (splitters for mov FMOVE64 const_double): Delete
1755 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1756 "HOST_BITS_PER_WIDE_INT >= 64" test.
1757 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1758 case.
1759 (mov DI const_double): Delete.
1760
40de22d6
JJ
17612013-05-04 Jakub Jelinek <jakub@redhat.com>
1762
1763 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1764 on op shows all bits zero in mode of a lowpart subreg, return zero.
1765
5ec6aff2
MM
17662013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1767
1768 PR target/57150
1769 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1770 to save TFmode registers and DImode to save TImode registers for
1771 caller save operations.
1772 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1773 mark being partially clobbered since they only use the first
1774 double word.
1775
1776 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1777 and TDmode only use the upper 64-bits of each VSX register.
1778
2cefad90
BS
17792013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1780
1781 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1782 (find_candidates_in_block): Disable slsr_process_phi.
1783
d6d7eee1
GW
17842013-05-03 Guozhi Wei <carrot@google.com>
1785
1786 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
1787 constructor to ...
1788 (build_init_ctor): ... here.
d6d7eee1 1789
9b92d12b
BS
17902013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1791
1792 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1793 (slsr_cand_d): Redefine def_phi.
1794 (stride_status, phi_adjust_status, count_phis_status): New enums.
1795 (find_phi_def): New.
1796 (find_basis_for_base_expr): New.
1797 (find_basis_for_candidate): Handle hidden bases.
1798 (alloc_cand_and_find_basis): Handle phi candidates.
1799 (slsr_process_phi): New.
1800 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1801 (create_mul_imm_cand): Likewise.
1802 (create_add_ssa_cand): Exclude phi base candidates.
1803 (create_add_imm_cand): Likewise.
1804 (slsr_process_cast): Likewise.
1805 (slsr_process_copy): Likewise.
1806 (find_candidates_in_block): Handle phi candidates.
1807 (dump_candidate): Likewise.
1808 (unconditional_cands): Delete.
1809 (unconditional_cands_with_known_stride_p): Delete.
1810 (phi_dependent_cand_p): New.
1811 (cand_increment): Handle phi-dependent candidates.
1812 (replace_dependent): Delete.
1813 (replace_mult_candidate): New.
1814 (replace_unconditional_candidate): New.
1815 (incr_vec_index): Move to avoid forward reference.
1816 (create_add_on_incoming_edge): New.
1817 (create_phi_basis): New.
1818 (replace_dependents): Delete.
1819 (replace_conditional_candidate): New.
1820 (phi_add_costs): New.
1821 (replace_uncond_cands_and_profitable_phis): New.
1822 (record_increment): Handle phi adjustments.
1823 (record_phi_increments): New.
1824 (record_increments): Handle phi adjustments.
1825 (phi_incr_cost): New.
1826 (lowest_cost_path): Handle phis.
1827 (total_savings): Likewise.
1828 (analyze_increments): Likewise.
1829 (ncd_with_phi): New.
1830 (ncd_of_cand_and_phis): New.
1831 (nearest_common_dominator_for_cands): Handle phi increments.
1832 (all_phi_incrs_profitable): New.
1833 (replace_profitable_candidates): Handle phi-dependent candidates.
1834 (analyze_candidates_and_replace): Likewise.
1835
68f073d4
TJ
18362013-05-03 Teresa Johnson <tejohnson@google.com>
1837
1838 PR bootstrap/57154
1839 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1840 do not exceed REG_BR_PROB_BASE.
1841
a4ee7cb9
JL
18422013-05-03 Jeff Law <law@redhat.com>
1843
ade67f70 1844 PR tree-optimization/57144
a4ee7cb9
JL
1845 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1846 operand of the condition will bit into the new type when eliminating
1847 a cast feeding a condition.
1848
47954c4e
JJ
18492013-05-03 Jakub Jelinek <jakub@redhat.com>
1850
1851 PR rtl-optimization/57130
3095685e
UB
1852 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1853 of COMPARE as in_code to the recursive call if needed.
47954c4e 1854
3c21604f
UB
18552013-05-03 Uros Bizjak <ubizjak@gmail.com>
1856
1857 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1858 (enabled): Handle new members.
1859 * config/i386/sse.md (*vec_concatv2si): Merge from
1860 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1861 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1862
95c03b36
JR
18632013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1864
1865 PR tree-optimization/57027
1866 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1867 for fnms opportunity, check we got the prerequisite kind
1868 of tree / gimple before using accessor functions.
1869
07bfc9ec
RB
18702013-05-03 Richard Biener <rguenther@suse.de>
1871
1872 * double-int.h (lshift): New overload without precision
1873 and arith argument.
1874 (operator *=, operator +=, operator -=): Move ...
1875 * double-int.c (operator *=, operator +=, operator -=): ... here
1876 and implement more efficiently.
1877 (mul_double_with_sign): Remove.
1878 (lshift_double): Adjust to take unsinged shift argument, push
1879 dispatching code to callers.
1880 (mul_double_wide_with_sign): Add early out for callers that
1881 are not interested in high parts or overflow.
1882 (lshift): New function.
1883 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1884 dispatch code here.
1885 (lrotate, rrotate): Use logical shifts.
1886 * expr.c (get_inner_reference): Use lshift.
1887 * fixed-value.c (do_fixed_divide): Likewise.
1888 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1889 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1890 (indirect_refs_may_alias_p): Likewise.
1891 (stmt_kills_ref_p_1): Likewise.
1892
7769bb64
VP
18932013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1894
1895 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1896
1d0c8e5c
VP
18972013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1898
1899 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1900 scalar form of FABD instruction.
1901
f15feaf9
VM
19022013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1903
1904 * lra-constraints.c (process_alt_operands): Add checking alt
1905 number to choose the best alternative.
1906
d90e76d4
RB
19072013-05-02 Richard Biener <rguenther@suse.de>
1908
1909 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1910 bitmap and its handling.
1911 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1912
9f8e7a96
RB
19132013-05-02 Richard Biener <rguenther@suse.de>
1914
1915 PR middle-end/57140
1916 * tree-inline.c (copy_loops): Properly handle removed loops.
1917 (copy_cfg_body): Mark destination loops for fixup if source
1918 loops needed fixup.
1919
f3a81b39
GY
19202013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1921
1922 PR target/56732
1923 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1924 generating simple_return for naked functions.
1925
7b920a9a
MJ
19262013-05-02 Martin Jambor <mjambor@suse.cz>
1927
1928 PR middle-end/56988
1929 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1930 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1931 flags match.
1932 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1933 ipa_agg_replacement_value structures.
1934 (known_aggs_to_agg_replacement_list): Likewise.
1935 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1936 (read_agg_replacement_chain): Likewise.
1937 (ipcp_transform_function): Also check that by_ref flags match.
1938
2c41c19d
RB
19392013-05-02 Richard Biener <rguenther@suse.de>
1940
1941 * graphds.h (struct graph): Add obstack member.
1942 * graphds.c (new_graph): Initialize obstack and allocate
1943 vertices from it.
1944 (add_edge): Allocate edge from the obstack.
3c21604f 1945 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 1946
8b47039c
TJ
19472013-05-02 Teresa Johnson <tejohnson@google.com>
1948
1949 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1950 divides.
1951 * cfg.c (update_bb_profile_for_threading): Ditto.
1952 * tree-inline.c (copy_bb): Ditto.
1953 (copy_edges_for_bb): Ditto.
1954 (initialize_cfun): Ditto.
1955 (copy_cfg_body): Ditto.
1956 (expand_call_inline): Ditto.
1957 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1958 (estimate_node_size_and_time): Ditto.
1959 (inline_merge_summary): Ditto.
1960 * cgraphclones.c (cgraph_clone_edge): Ditto.
1961 (cgraph_clone_node): Ditto.
1962 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1963 (compute_trg_info): Ditto.
1964
da65928c
IB
19652013-05-02 Ian Bolton <ian.bolton@arm.com>
1966
1967 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1968 S reg when fp attribute set.
1969 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1970
add3c965
IB
19712013-05-02 Ian Bolton <ian.bolton@arm.com>
1972
1973 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1974 New pattern.
1975 (*and_one_cmplsi3_compare0_uxtw): Likewise.
1976 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1977 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1978
fdd43ac4
RB
19792013-05-02 Richard Biener <rguenther@suse.de>
1980
1981 * tree-scalar-evolution.c (scev_info_hasher): Remove.
1982 (struct instantiate_cache_entry): New type.
1983 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1984 (struct instantiate_cache_type): New type.
1985 (set_instantiated_value, get_instantiated_value): Remove.
1986 (get_instantiated_value_entry): New function.
1987 (instantiate_scev_name): Use the new cache and adjust.
1988 (instantiate_scev_poly): Adjust.
1989 (instantiate_scev_binary): Likewise.
1990 (instantiate_array_ref): Likewise.
1991 (instantiate_scev_convert): Likewise.
1992 (instantiate_scev_not): Likewise.
1993 (instantiate_scev_3): Likewise.
1994 (instantiate_scev_2): Likewise.
1995 (instantiate_scev_r): Likewise.
1996 (instantiate_scev): Likewise.
1997 (resolve_mixers): Likewise.
1998
36ff9dfb
VM
19992013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2000
2001 PR target/57091
2002 * lra-constraints.c (best_small_class_operands_num): Remove.
2003 (process_alt_operands): Remove small_class_operands_num. Take
2004 small classes operands into losers and only if the operand is not
2005 matched. Modify debugging output.
2006 (curr_insn_transform): Remove best_small_class_operands_num.
2007 Print insn name.
2008
36054fab
JG
20092013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2010
2011 * config/aarch64/aarch64-builtins.c
2012 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2013 * config/aarch64/aarch64-simd-builtins.def
2014 (reduc_splus_): Add new modes.
2015 (reduc_uplus_): New.
2016 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2017 (reduc_uplus_v4sf): Likewise.
2018 (reduc_splus_v4sf): Likewise.
2019 (aarch64_addv<mode>): Likewise.
2020 (reduc_uplus_<mode>): Likewise.
2021 (reduc_splus_<mode>): Likewise.
2022 (aarch64_addvv2di): Likewise.
2023 (reduc_uplus_v2di): Likewise.
2024 (reduc_splus_v2di): Likewise.
2025 (aarch64_addvv2si): Likewise.
2026 (reduc_uplus_v2si): Likewise.
2027 (reduc_splus_v2si): Likewise.
2028 (reduc_<sur>plus_<mode>): New.
2029 (reduc_<sur>plus_v2di): Likewise.
2030 (reduc_<sur>plus_v2si): Likewise.
2031 (reduc_<sur>plus_v4sf): Likewise.
2032 (aarch64_addpv4sf): Likewise.
2033 * config/aarch64/arm_neon.h
2034 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2035 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2036 add UNSPEC_SADDV, UNSPEC_UADDV.
2037 (SUADDV): New.
2038 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2039
6dce23a8
JG
20402013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2041
2042 * config/aarch64/arm_neon.h
2043 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2044
1598945b
JG
20452013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2046
2047 * config/aarch64/aarch64-builtins
2048 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2049
998eaf97
JG
20502013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2051
2052 * config/aarch64/aarch64-simd-builtins.def
2053 (reduc_smax_): New.
2054 (reduc_smin_): Likewise.
2055 (reduc_umax_): Likewise.
2056 (reduc_umin_): Likewise.
2057 (reduc_smax_nan_): Likewise.
2058 (reduc_smin_nan_): Likewise.
2059 (fmax): Remove.
2060 (fmin): Likewise.
2061 (smax): Update for V2SF, V4SF and V2DF modes.
2062 (smin): Likewise.
2063 (smax_nan): New.
2064 (smin_nan): Likewise.
2065 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2066 (<su><maxmin><mode>3): ...This, refactor.
2067 (s<maxmin><mode>3): New.
2068 (<maxmin_uns><mode>3): Likewise.
2069 (reduc_<maxmin_uns>_<mode>): Refactor.
2070 (reduc_<maxmin_uns>_v4sf): Likewise.
2071 (reduc_<maxmin_uns>_v2si): Likewise.
2072 (aarch64_<fmaxmin><mode>: Remove.
2073 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2074 new builtin names.
2075 (vmin<q>_f<32,64>): Likewise.
2076 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2077 (FMAXMIN): New.
2078 (su): Add mappings for smax, smin, umax, umin.
2079 (maxmin): New.
2080 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2081 (FMAXMIN): Rename as...
2082 (FMAXMIN_UNS): ...This.
2083 (maxminv): Remove.
2084 (fmaxminv): Likewise.
2085 (fmaxmin): Likewise.
2086 (maxmin_uns): New.
2087 (maxmin_uns_op): Likewise.
2088
bd11644e
JG
20892013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2090
2091 * config/aarch64/arm_neon.h
2092 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2093 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2094 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2095
75dd5ace
JG
20962013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2097
2098 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2099 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2100
7c19979f
JG
21012013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2102
2103 * config/aarch64/aarch64-simd.md
2104 (vcond<mode>_internal): Handle special cases for constant masks.
2105 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2106 (vcondu<mode><mode>): Likewise.
2107 (vcond<v_cmp_result><mode>): New.
2108
bb60efd9
JG
21092013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2110
2111 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2112 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2113 * config/aarch64/aarch64-simd-builtins.def
2114 (cmeq): Update to BUILTIN_VALLDI.
2115 (cmgt): Likewise.
2116 (cmge): Likewise.
2117 (cmle): Likewise.
2118 (cmlt): Likewise.
2119 * config/aarch64/arm_neon.h
2120 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2121 to builtins or C as appropriate.
2122
889b9412
JG
21232013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2124
2125 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2126 (cmgeu): ...This.
2127 (cmhi): Rename to...
2128 (cmgtu): ...This.
2129 * config/aarch64/aarch64-simd.md
2130 (simd_mode): Add SF.
2131 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2132 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2133 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2134 (cstore<mode>_neg): ...This.
2135 * config/aarch64/iterators.md
2136 (VALLF): new.
2137 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2138 (COMPARISONS): New.
2139 (UCOMPARISONS): Likewise.
2140 (optab): Add missing comparisons.
2141 (n_optab): New.
2142 (cmp_1): Likewise.
2143 (cmp_2): Likewise.
2144 (CMP): Likewise.
2145 (cmp): Remove.
2146 (VCMP_S): Likewise.
2147 (VCMP_U): Likewise.
2148 (V_cmp_result): Add DF, SF modes.
2149 (v_cmp_result): Likewise.
2150 (v): Likewise.
2151 (vmtype): Likewise.
2152 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2153
0a7dbb76
GY
21542013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2155
2156 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2157 define_insn to define_insn_and_split.
2158 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2159 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2160 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2161 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2162 (thumb2_negscc): Likewise.
2163
fb614ca6
GY
21642013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2165
2166 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2167
9e64a0bf
GY
21682013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2169
2170 * config/arm/thumb2.md: Remove trailing whitespaces.
2171
d6b28156
RS
21722013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2173
2174 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2175 Use gen_int_mode rather than GEN_INT.
2176
f91674c3
L
21772013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2178
b0dec607 2179 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
2180 debug_gimple_stmt.
2181
3551257c
RB
21822013-04-30 Richard Biener <rguenther@suse.de>
2183
2184 PR middle-end/57122
3c21604f 2185 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 2186
4c1aff1c
RB
21872013-04-30 Richard Biener <rguenther@suse.de>
2188
2189 PR middle-end/57107
2190 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2191
54b8379a
AB
21922013-04-30 Andrey Belevantsev <abel@ispras.ru>
2193
2194 PR rtl-optimization/56957
2195 PR rtl-optimization/57105
54b8379a
AB
2196 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2197 variable. Use just INSN_UID for determining whether an insn
2198 should be only disconnected from the insn stream.
2199 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2200
abc27962
JJ
22012013-04-30 Jakub Jelinek <jakub@redhat.com>
2202
2203 PR tree-optimization/57104
2204 * tsan.c (instrument_expr): Don't instrument accesses to
2205 DECL_HARD_REGISTER VAR_DECLs.
2206
0fc822d0
RB
22072013-04-30 Richard Biener <rguenther@suse.de>
2208
2209 * function.h (loops_for_fn): New inline function.
2210 (set_loops_for_fn): Likewise.
2211 * cfgloop.h (place_new_loop): Add struct function parameter.
2212 (get_loop): Likewise.
2213 (get_loops): Likewise.
2214 (number_of_loops): Likewise.
2215 (fel_next): Adjust.
2216 (fel_init): Likewise.
2217 * cfg.c (get_loop_copy): Adjust.
2218 * cfgloop.c (flow_loops_dump): Likewise.
2219 (record_loop_exits): Likewise.
2220 (verify_loop_structure): Likewise.
2221 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2222 (estimate_reg_pressure_cost): Likewise.
2223 (mark_loop_exit_edges): Likewise.
2224 * cfgloopmanip.c (place_new_loop): Likewise.
2225 (add_loop): Likewise.
2226 (duplicate_loop): Likewise.
2227 * graph.c (draw_cfg_nodes): Likewise.
2228 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2229 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2230 (extract_affine_chrec): Likewise.
2231 (build_scop_iteration_domain): Likewise.
2232 * graphite.c (graphite_initialize): Likewise.
2233 * ira-build.c (create_loop_tree_nodes): Likewise.
2234 (more_one_region_p): Likewise.
2235 (rebuild_regno_allocno_maps): Likewise.
2236 (mark_loops_for_removal): Likewise.
2237 (mark_all_loops_for_removal): Likewise.
2238 (remove_unnecessary_regions): Likewise.
2239 (ira_build): Likewise.
2240 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2241 * loop-init.c (fix_loop_structure): Likewise.
2242 (gate_rtl_move_loop_invariants): Likewise.
2243 (gate_rtl_unswitch): Likewise.
2244 (gate_rtl_unroll_and_peel_loops): Likewise.
2245 (rtl_doloop): Likewise.
2246 * lto-streamer-in.c (input_cfg): Likewise.
2247 * lto-streamer-out.c (output_cfg): Likewise.
2248 * modulo-sched.c (sms_schedule): Likewise.
2249 * predict.c (tree_estimate_probability): Likewise.
2250 (tree_estimate_probability_driver): Likewise.
2251 (estimate_loops): Likewise.
2252 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2253 (move_sese_region_to_fn): Likewise.
2254 (debug_loop_num): Likewise.
2255 * tree-chrec.c (chrec_evaluate): Likewise.
2256 (hide_evolution_in_other_loops_than_loop): Likewise.
2257 (chrec_component_in_loop_num): Likewise.
2258 (reset_evolution_in_loop): Likewise.
2259 (evolution_function_is_invariant_rec_p): Likewise.
2260 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2261 * tree-inline.c (copy_loops): Likewise.
2262 (copy_cfg_body): Likewise.
2263 (tree_function_versioning): Likewise.
2264 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2265 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2266 Likewise.
2267 (add_to_evolution_1): Likewise.
2268 (scev_const_prop): Likewise.
2269 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2270 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2271 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2272 (tree_ssa_lim_initialize): Likewise.
2273 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2274 (verify_loop_closed_ssa): Likewise.
2275 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2276 (tree_ssa_loop_im): Likewise.
2277 (tree_ssa_loop_unswitch): Likewise.
2278 (tree_vectorize): Likewise.
2279 (check_data_deps): Likewise.
2280 (tree_ssa_loop_ivcanon): Likewise.
2281 (tree_ssa_loop_bounds): Likewise.
2282 (tree_complete_unroll): Likewise.
2283 (tree_complete_unroll_inner): Likewise.
2284 (tree_parallelize_loops): Likewise.
2285 (tree_ssa_loop_prefetch): Likewise.
2286 (tree_ssa_loop_ivopts): Likewise.
2287 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2288 * tree-vectorizer.c (vectorize_loops): Likewise.
2289
37953bd3
MF
22902013-04-29 Mike Frysinger <vapier@gentoo.org>
2291
2292 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2293 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2294 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2295 with EABI_LINK_SPEC.
2296
f9ed28db
UB
22972013-04-29 Uros Bizjak <ubizjak@gmail.com>
2298
2299 PR target/44578
2300 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2301 alternative.
2302
deca73f5
VM
23032013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2304
2305 PR target/57097
37953bd3 2306 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
2307 using memory for pseudos. Print cost dump for alternatives.
2308 Modify cost values for conflicts with early clobbers.
2309 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2310
fdca7d03
UB
23112013-04-29 Uros Bizjak <ubizjak@gmail.com>
2312
2313 PR target/57098
2314 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2315
0b064172
IB
23162013-04-29 Ian Bolton <ian.bolton@arm.com>
2317
2318 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2319 from/to S register.
2320 (movdi_aarch64): Support LDR/STR from/to D register.
2321
473cec55
IB
23222013-04-29 Ian Bolton <ian.bolton@arm.com>
2323
2324 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2325 or higher by default.
2326
a6f30e66
RB
23272013-04-29 Richard Biener <rguenther@suse.de>
2328
2329 PR middle-end/57075
2330 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2331 even if not adding abnormal edges for calls that can make
2332 abnormal gotos.
2333
0c2b2040
RB
23342013-04-29 Richard Biener <rguenther@suse.de>
2335
2336 PR middle-end/57103
2337 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2338 TREE_BLOCK.
2339 (move_stmt_r): Remove redundant checking.
2340
f41f80f9
TJ
23412013-04-29 Teresa Johnson <tejohnson@google.com>
2342
2343 PR bootstrap/57077
2344 * basic-block.h (apply_scale): New function.
2345 (apply_probability): Use apply_scale.
2346 * gimple-streamer-in.c (input_bb): Ditto.
2347 * lto-streamer-in.c (input_cfg): Ditto.
2348 * lto-cgraph.c (merge_profile_summaries): Ditto.
2349 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 2350 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
2351 (copy_edges_for_bb): Ditto.
2352 (copy_cfg_body): Ditto.
2353
315bbd2e
TV
23542013-04-29 Tom de Vries <tom@codesourcery.com>
2355
2356 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2357 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2358 (tail_merge_optimize): Handle current_loops == NULL.
2359
ebbd90d8
JL
23602013-04-26 Jeff Law <law@redhat.com>
2361
2362 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2363 (simplify_cond_using_ranges): Generalize code to simplify
2364 COND_EXPRs where one argument is a constant and the other
2365 is an SSA_NAME created by an integral type conversion.
2366
8b9b57eb
KT
23672013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2368
2369 * config/arm/arm.md (store_minmaxsi): Use only when
2370 optimize_insn_for_size_p.
2371
9498e5dc
CB
23722013-04-29 Christian Bruel <christian.bruel@st.com>
2373
2374 PR target/57108
2375 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2376
6093bc06
RB
23772013-04-29 Richard Biener <rguenther@suse.de>
2378
2379 PR middle-end/57089
fdca7d03
UB
2380 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2381 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
2382 (expand_omp_for_generic): Properly add loops.
2383 (expand_omp_for_static_nochunk): Likewise.
2384 (expand_omp_for_static_chunk): Likewise.
2385 (expand_omp_for): For the degenerate case fixup loops.
2386 (expand_omp_sections): Fix default bb placement in loops.
2387 (expand_omp_atomic_pipeline): Properly add loops.
2388
84aacbfd
KT
23892013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2390
2391 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2392
8dee4479
TV
23932013-04-29 Tom de Vries <tom@codesourcery.com>
2394
2395 * tree-ssa-tail-merge.c: Update header comment.
2396
47934dc4
JG
23972013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2398
2399 * config/aarch64/arm_neon.h
2400 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2401 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2402 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2403 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2404 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2405 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2406 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2407 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2408
384be29f
JG
24092013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2410
2411 * config/aarch64/aarch64-simd.md
2412 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2413 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2414 fix_trunc, fixuns_trunc.
2415 (ftrunc<VDQF:mode>2): New.
2416 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2417 (fix_trunc_optab): New.
2418
0386b123
JG
24192013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2420
2421 * config/aarch64/aarch64-builtins.c
2422 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2423 iceilf, lround, iroundf.
2424
00fcb892
UB
24252013-04-29 Uros Bizjak <ubizjak@gmail.com>
2426
2427 PR target/54349
2428 * config/i386/i386.h (enum ix86_tune_indices)
2429 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2430 New, split from X86_TUNE_INTER_UNIT_MOVES.
2431 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2432 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2433 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2434 (TARGET_INTER_UNIT_MOVES): Remove.
2435 * config/i386/i386.c (initial_ix86_tune_features): Update.
2436 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2437 (ix86_expand_convert_uns_didf_sse): Use
2438 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2439 (ix86_expand_vector_init_one_nonzero): Ditto.
2440 (ix86_expand_vector_init_interleave): Ditto.
2441 (inline_secondary_memory_needed): Return true for moves from SSE class
2442 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2443 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2444 * config/i386/constraints.md (Yi, Ym): Depend on
2445 TARGET_INTER_UNIT_MOVES_TO_VEC.
2446 (Yj, Yn): New constraints.
2447 * config/i386/i386.md (*movdi_internal): Change constraints of
2448 operand 1 from Yi to Yj and from Ym to Yn.
2449 (*movsi_internal): Ditto.
2450 (*movdf_internal): Ditto.
2451 (*movsf_internal): Ditto.
2452 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2453 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2454 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2455 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2456 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2457 * config/i386/sse.md (movdi_to_sse): Ditto.
2458 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2459 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2460 TARGET_INTER_UNIT_MOVES.
2461 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2462 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2463 instead of TARGET_INTER_UNIT_MOVES.
2464 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2465 operand 1 from Yi to Yj and from Ym to Yn.
2466
4c871069
JG
24672013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2468
2469 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2470 (float_truncate_hi_): Likewise.
2471 (float_extend_lo_): Likewise.
2472 (float_truncate_lo_): Likewise.
2473 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2474 (aarch64_float_extend_lo_v2df): Likewise.
2475 (vec_unpacks_hi_v4sf): Likewise.
2476 (aarch64_float_truncate_lo_v2sf): Likewise.
2477 (aarch64_float_truncate_hi_v4sf): Likewise.
2478 (vec_pack_trunc_v2df): Likewise.
2479 (vec_pack_trunc_df): Likewise.
2480
1709ff9b
JG
24812013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2482
2483 * config/aarch64/aarch64-builtins.c
2484 (aarch64_fold_builtin): Fold float conversions.
2485 * config/aarch64/aarch64-simd-builtins.def
2486 (floatv2si, floatv4si, floatv2di): New.
2487 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2488 * config/aarch64/aarch64-simd.md
2489 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2490 * config/aarch64/iterators.md (FLOATUORS): New.
2491 (optab): Add float, floatuns.
2492 (su_optab): Likewise.
2493
ce966824
JG
24942013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2495
2496 * config/aarch64/aarch64-builtins.c
2497 (aarch64_builtin_vectorized_function): Use new names for
2498 fcvt builtins.
2499 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2500 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2501 (fcvtzu): Split as...
2502 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2503 (fcvtas): Split as...
2504 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2505 (fcvtau): Split as...
2506 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2507 (fcvtps): Split as...
2508 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2509 (fcvtpu): Split as...
2510 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2511 (fcvtms): Split as...
2512 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2513 (fcvtmu): Split as...
2514 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2515 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2516 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2517 (lfrintnusf, lfrintnudf): Likewise.
2518 * config/aarch64/aarch64-simd.md
2519 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2520 define_insn.
2521 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2522 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2523 (fcvt_pattern): Likewise.
2524
b9de24fe
JG
25252013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2526
2527 * config/aarch64/aarch64-simd.md
2528 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2529 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2530
77a205be
JG
25312013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2532
2533 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2534 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2535 (vrnd<a,m,n,p>_f32): Implement using builtins.
2536 (vrnd<i,x><q>_f<32, 64>): New.
2537
0659ce6f
JG
25382013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2539
2540 * config/aarch64/aarch64-builtins.c
2541 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2542 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2543 (frintz): Rename to...
2544 (btrunc): ...this.
2545 (frintp): Rename to...
2546 (ceil): ...this.
2547 (frintm): Rename to...
2548 (floor): ...this.
2549 (frinti): Rename to...
2550 (nearbyint): ...this.
2551 (frintx): Rename to...
2552 (rint): ...this.
2553 (frinta): Rename to...
2554 (round): ...this.
2555 * config/aarch64/aarch64-simd.md
2556 (aarch64_frint<frint_suffix><mode>): Delete.
2557 (<frint_pattern><mode>2): Convert to insn.
2558 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2559 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2560 (frint_pattern): Likewise.
2561 (frint_suffix): Likewise.
2562
ea78906a
RB
25632013-04-29 Richard Biener <rguenther@suse.de>
2564
2565 PR tree-optimization/57081
2566 * loop-init.c: Include tree-flow.h.
2567 (loop_optimizer_finalize): Free number of iteration estimates.
2568 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2569
baee1763
JJ
25702013-04-29 Jakub Jelinek <jakub@redhat.com>
2571
94dc5332
JJ
2572 PR tree-optimization/57083
2573 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2574 non-singleton shift count range, zero extend low_bound for uns case.
2575
baee1763
JJ
2576 * config/i386/predicates.md (general_vector_operand): New predicate.
2577 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2578 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2579 if they aren't nonimmediate operands. If their original values
2580 satisfy const_vector_equal_evenodd_p, don't shift them.
2581 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2582 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2583 if not nonimmediate_operand.
2584 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2585 instead of register_operand.
2586 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2587
a9073727 25882013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
2589
2590 * stor-layout.c (finalize_size_functions): Allocate a structure and
2591 reset cfun before dumping the functions.
2592
ba8011e6
JJ
25932013-04-27 Jakub Jelinek <jakub@redhat.com>
2594
d6fde69e
JJ
2595 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2596
ba8011e6
JJ
2597 PR target/56866
2598 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2599 use xop_pmacsdqh if uns_p.
2600 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2601 the immediate rotate count.
2602
2c62cbaa
VM
26032013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2604
2605 * rtl.h (struct rtx_def): Add comment for field jump.
2606 (LRA_SUBREG_P): New macro.
2607 * recog.c (register_operand): Check LRA_SUBREG_P.
2608 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2609 stack frame.
2610 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2611 (lra_final_code_change): Skip subreg change for operators.
2612 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2613 if there are no operand changes.
2614 * lra-constraints.c (curr_insn_set): New.
2615 (match_reload): Set LRA_SUBREG_P.
2616 (emit_spill_move): Ditto.
2617 (check_and_process_move): Use curr_insn_set. Process only single
2618 set insns. Don't initialize sec_mem_p and change_p.
2619 (simplify_operand_subreg): Use LRA_SUBREG_P.
2620 (reg_in_class_p): New function.
2621 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2622 of #ifdef. Add code to remove cycling.
2623 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2624 non-null disp. Reload inner instead of disp when base and index
2625 are null. Try to put lo_sum into register.
2626 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2627 (check_and_process_move): Move code for move cost check to
2628 simple_move_p. Remove equiv_substitution.
2629 (simple_move_p): New function.
2630 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2631 curr_insn_set. Call check_and_process_move only for single set
2632 insns. Use the new function. Move call of check_and_process_move
2633 after operand equiv substitution and address process.
2634
e7d764f3
JJ
26352013-04-26 Jakub Jelinek <jakub@redhat.com>
2636
2637 PR go/57045
2638 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2639 with nonlocal goto receivers or returns twice calls, ignore
2640 unininitialized values from abnormal edges to nl goto receiver
2641 or returns twice call.
2642
41e10689
JJ
26432013-04-26 Jakub Jelinek <jakub@redhat.com>
2644
2645 PR tree-optimization/57051
2646 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2647 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2648 bitsize.
2649
d7ed20db
RB
26502013-04-26 Richard Biener <rguenther@suse.de>
2651
2652 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2653 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2654 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2655 (fixup_loop_arrays_after_move): New function.
2656 (move_sese_region_to_fn): Properly outline the loop tree parts
2657 of the SESE region.
2658
df93505e
UB
26592013-04-26 Uros Bizjak <ubizjak@gmail.com>
2660
2661 * config/i386/i386.md (type, unit): Fix long lines.
2662
dd366ec3
RB
26632013-04-26 Richard Biener <rguenther@suse.de>
2664
2665 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2666 (lto-streamer-out.o): Likewise.
2667 * cfgloop.c (init_loops_structure): Export, add struct function
2668 argument and adjust.
2669 (flow_loops_find): Adjust.
2670 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2671 (init_loops_structure): Declare.
2672 * lto-streamer-in.c: Include cfgloop.h.
2673 (input_cfg): Input the loop tree.
2674 * lto-streamer-out.c: Include cfgloop.h.
2675 (output_cfg): Output the loop tree.
2676 (output_struct_function_base): Do not drop PROP_loops.
2677
a9e0d843
RB
26782013-03-26 Richard Biener <rguenther@suse.de>
2679
2680 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2681 (pass_build_cfg): Provide PROP_loops.
2682 (move_sese_region_to_fn): Remove loops that are outlined into fn
2683 for now.
2684 * tree-inline.c: Include cfgloop.h.
2685 (initialize_cfun): Do not drop PROP_loops.
2686 (copy_loops): New function.
2687 (copy_cfg_body): Copy loop structure.
2688 (tree_function_versioning): Initialize destination loop tree.
2689 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2690 (pass_parallelize_loops): Do IL verification.
2691 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2692 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2693 the CFG make sure we fixup loops as well.
2694 * tree-ssa-tail-merge.c: Include cfgloop.h.
2695 (replace_block_by): When merging loop latches mark loops for fixup.
2696 * lto-streamer-out.c (output_struct_function_base): Drop
2697 PROP_loops for now.
2698 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2699 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2700 * ipa-split.c: Include cfgloop.h.
2701 (split_function): Add the new return block to the loop tree root.
2702 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2703 whether we have removed the forwarder block.
2704 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2705 * cfgloop.h (place_new_loop): Declare.
2706 * cfgloopmanip.c (place_new_loop): Export.
2707 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2708 (tree-switch-conversion.o): Likewise.
2709 (tree-complex.o): Likewise.
2710 (tree-inline.o): Likewise.
2711 (tree-ssa-tailmerge.o): Likewise.
2712 (ipa-split.o): Likewise.
2713 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2714 (tree-ssa-copy.o): Likewise.
2715 * tree-switch-conversion.c: Include cfgloop.h
2716 (process_switch): If we emit a bit-test cascade, schedule loops
2717 for fixup.
2718 * tree-complex.c: Include cfgloop.h.
2719 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2720 * asan.c: Include cfgloop.h.
2721 (create_cond_insert_point): Properly add new basic-blocks to
2722 loops, schedule loop fixup.
2723 * cfgloop.c (verify_loop_structure): Check that looks are not
2724 marked for fixup.
2725 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2726 to loops.
2727 (expand_omp_for_generic): Likewise.
2728 (expand_omp_sections): Likewise.
2729 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2730 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2731 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2732 is initialized, not when loops are present.
2733 * tree-parloops.c (parallelize_loops): Remove checking here.
2734 * passes.c (init_optimization_passes): Schedule a copy-propagation
2735 pass before complete unrolling of inner loops.
2736
e78e8a0b
JJ
27372013-04-26 Jakub Jelinek <jakub@redhat.com>
2738
a2e836b2
JJ
2739 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2740 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2741 (colorize_init): Add argument to _WIN32 version.
2742 * toplev.c: Include diagnostic-color.h.
2743 (process_options): Default to -fdiagnostics-color=auto if
2744 GCC_COLORS env var is in the environment.
2745 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
2746 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2747 env var is in the environment, the default is auto rather than never.
a2e836b2 2748
e78e8a0b
JJ
2749 * diagnostic.h (file_name_as_prefix): Add context argument.
2750 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2751 the string as locus.
2752 * langhooks.c (lhd_print_error_function): Adjust caller.
2753
013e5ef9
LC
27542013-04-25 Lawrence Crowl <crowl@google.com>
2755
2756 * var-tracking.c (shared_hash_def::htab):
2757 Change type to hash_table. Update dependent calls and types.
2758
4a8fb1a1
LC
27592013-04-25 Lawrence Crowl <crowl@google.com>
2760
2761 * Makefile.in: Update as needed below.
2762
2763 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2764 Move declaration to after the type's method definitons.
2765
2766 * attribs.c (htab_t scoped_attributes::attribute_hash):
2767 Change type to hash_table. Update dependent calls and types.
2768
2769 * bitmap.c (htab_t bitmap_desc_hash):
2770 Change type to hash_table. Update dependent calls and types.
2771
2772 * cselib.c (htab_t cselib_hash_table):
2773 Change type to hash_table. Update dependent calls and types.
2774
2775 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2776 (hash_string_slot_node): Move implementation into lto-streamer.h
2777 struct string_slot_hasher.
2778 (eq_string_slot_node): Likewise.
2779
2780 * data-streamer-out.c: Update output_block::string_hash_table
2781 dependent calls and types.
2782
2783 * dwarf2cfi.c (htab_t trace_index):
2784 Change type to hash_table. Update dependent calls and types.
2785
2786 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2787 Change type to hash_table. Update dependent calls and types.
2788 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2789 (htab_t optimize_external_refs::map): Likewise.
2790 (htab_t output_comp_unit::extern_map): Likewise.
2791 (htab_t output_comdat_type_unit::extern_map): Likewise.
2792 (htab_t output_macinfo::macinfo_htab): Likewise.
2793 (htab_t optimize_location_lists::htab): Likewise.
2794 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2795
2796 * except.c (htab_t ehspec_hash_type):
2797 Change type to hash_table. Update dependent calls and types.
2798 (assign_filter_values::ttypes): Likewise.
2799 (assign_filter_values::ehspec): Likewise.
2800 (sjlj_assign_call_site_values::ar_hash): Likewise.
2801 (convert_to_eh_region_ranges::ar_hash): Likewise.
2802
2803 * gcse.c (htab_t pre_ldst_table):
2804 Change type to hash_table. Update dependent calls and types.
2805
2806 * ggc-common.c (htab_t saving_htab):
2807 Change type to hash_table. Update dependent calls and types.
2808 (htab_t loc_hash): Likewise.
2809 (htab_t ptr_hash): Likewise.
2810 (call_count): Rename ggc_call_count.
2811 (call_alloc): Rename ggc_call_alloc.
2812 (loc_descriptor): Rename make_loc_descriptor.
2813 (add_statistics): Rename ggc_add_statistics.
2814
2815 * ggc-common.c (saving_htab):
2816 Change type to hash_table. Update dependent calls and types.
2817
2818 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2819 (push_gimplify_context): Likewise.
2820 (pop_gimplify_context): Likewise.
2821 (struct gimple_temp_hash_elt): Added.
2822 (struct gimplify_hasher): Likewise.
2823 (struct gimplify_ctx.temp_htab):
2824 Change type to hash_table. Update dependent calls and types.
2825
2826 * gimple-fold.c: Include gimplify-ctx.h.
2827
2828 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2829 Change type to hash_table. Update dependent calls and types.
2830 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2831 avoid potential global name collision.
2832
2833 * gimplify.c: Include gimplify-ctx.h.
2834 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2835 (htab_t gimplify_ctx::temp_htab):
2836 Update dependent calls and types for new type hash_table.
2837 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2838 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2839
2840 * gimplify-ctx.h: New.
2841 (struct gimple_temp_hash_elt): Move from gimplify.c.
2842 (class gimplify_hasher): New.
2843 (struct gimplify_ctx): Move from gimple.h.
2844 (htab_t gimplify_ctx::temp_htab):
2845 Change type to hash_table. Update dependent calls and types.
2846
2847 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2848 (htab_t ivs_params::newivs_index):
2849 Change type to hash_table. Update dependent calls and types.
2850 (htab_t ivs_params::params_index): Likewise.
2851 (htab_t print_generated_program::params_index): Likewise.
2852 (htab_t gloog::newivs_index): Likewise.
2853 (htab_t gloog::params_index): Likewise.
2854
2855 * graphite.c: Include graphite-htab.h.
2856 4htab_t graphite_transform_loops::bb_pbb_mapping):
2857 Change type to hash_table. Update dependent calls and types.
2858
2859 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2860 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2861 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2862
2863 * graphite-dependences.c: Include graphite-htab.h.
2864 (loop_is_parallel_p): Change hash table type of parameter.
2865
2866 * graphite-htab.h: New.
2867 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2868 (extern find_pbb_via_hash): Move from graphite-poly.h.
2869 (extern loop_is_parallel_p): Move from graphite-poly.h.
2870 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2871
2872 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2873 (extern loop_is_parallel_p): Move to graphite-htab.h.
2874 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2875
2876 * haifa-sched.c (htab_t delay_htab):
2877 Change type to hash_table. Update dependent calls and types.
2878 (htab_t delay_htab_i2): Likewise.
2879
2880 * ira-color.c (htab_t allocno_hard_regs_htab):
2881 Change type to hash_table. Update dependent calls and types.
2882
2883 * ira-costs.c (htab_t cost_classes_htab):
2884 Change type to hash_table. Update dependent calls and types.
2885
2886 * loop-invariant.c (htab_t merge_identical_invariants::eq):
2887 Change type to hash_table. Update dependent calls and types.
2888
2889 * loop-iv.c (htab_t bivs):
2890 Change type to hash_table. Update dependent calls and types.
2891
2892 * loop-unroll.c (htab_t opt_info::insns_to_split):
2893 Change type to hash_table. Update dependent calls and types.
2894 (htab_t opt_info::insns_with_var_to_expand): Likewise.
2895
2896 * lto-streamer.h (struct string_slot): Move from data-streamer.h
2897 (struct string_slot_hasher): New.
2898 (htab_t output_block::string_hash_table):
2899 Change type to hash_table. Update dependent calls and types.
2900
2901 * lto-streamer-in.c (freeing_string_slot_hasher): New.
2902 (htab_t file_name_hash_table):
2903 Change type to hash_table. Update dependent calls and types.
2904
2905 * lto-streamer-out.c: Update output_block::string_hash_table dependent
2906 calls and types.
2907
2908 * lto-streamer.c (htab_t tree_htab):
2909 Change type to hash_table. Update dependent calls and types.
2910
2911 * omp-low.c: Include gimplify-ctx.h.
2912
2913 * passes.c (htab_t name_to_pass_map):
2914 Change type to hash_table. Update dependent calls and types.
2915 (pass_traverse): Rename to passes_pass_traverse.
2916
2917 * plugin.c (htab_t event_tab):
2918 Change type to hash_table. Update dependent calls and types.
2919
2920 * postreload-gcse.c (htab_t expr_table):
2921 Change type to hash_table. Update dependent calls and types.
2922 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2923
2924 * sese.c (debug_rename_map_1): Make extern.
2925 (htab_t copy_bb_and_scalar_dependences::rename_map):
2926 Change type to hash_table. Update dependent calls and types.
2927
2928 * sese.h (extern debug_rename_map): Move to .c file.
2929
2930 * store-motion.c (htab_t store_motion_mems_table):
2931 Change type to hash_table. Update dependent calls and types.
2932
2933 * trans-mem.c (htab_t tm_new_mem_hash):
2934 Change type to hash_table. Update dependent calls and types.
2935
2936 * tree-browser.c (htab_t TB_up_ht):
2937 Change type to hash_table. Update dependent calls and types.
2938
2939 * tree-cfg.c (htab_t discriminator_per_locus):
2940 Change type to hash_table. Update dependent calls and types.
2941
2942 * tree-complex.c: Include tree-hasher.h
2943 (htab_t complex_variable_components):
2944 Change type to hash_table. Update dependent calls and types.
2945
2946 * tree-eh.c (htab_t finally_tree):
2947 Change type to hash_table. Update dependent calls and types.
2948
2949 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2950 struct int_tree_hasher.
2951 (extern int_tree_map_eq): Likewise.
2952 (uid_decl_map_hash): Removed.
2953 (extern decl_tree_map_eq): Likewise.
2954
2955 * tree-hasher.h: New.
2956 (struct int_tree_hasher): New.
2957 (typedef int_tree_htab_type): New.
2958
2959 * tree-inline.c: Include gimplify-ctx.h.
2960
2961 * tree-mudflap.c: Include gimplify-ctx.h.
2962
2963 * tree-parloops.c: Include tree-hasher.h.
2964 (htab_t eliminate_local_variables_stmt::decl_address):
2965 Change type to hash_table. Update dependent calls and types.
2966 (htab_t separate_decls_in_region::decl_copies): Likewise.
2967
2968 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2969 Change type to hash_table. Update dependent calls and types.
2970
2971 * tree-sra.c (candidates):
2972 Change type to hash_table. Update dependent calls and types.
2973
2974 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2975 in tree-flow.h.
2976 (int_tree_map_hash): Likewise.
2977
2978 * tree-ssa-dom.c (htab_t avail_exprs):
2979 Change type to hash_table. Update dependent calls and types.
2980
2981 * tree-ssa-live.c (var_map_base_init::tree_to_index):
2982 Change type to hash_table. Update dependent calls and types.
2983
2984 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2985 Change type to hash_table. Update dependent calls and types.
2986
2987 * tree-ssa-phiopt.c (seen_ssa_names):
2988 Change type to hash_table. Update dependent calls and types.
2989
2990 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2991 Change type to hash_table. Update dependent calls and types.
2992
2993 * tree-ssa-uncprop.c (equiv):
2994 Change type to hash_table. Update dependent calls and types.
2995
c5a44004
JJ
29962013-04-25 Jakub Jelinek <jakub@redhat.com>
2997
2998 PR rtl-optimization/57003
2999 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3000 call note_stores with kill_clobbered_value callback again after
3001 killing regs_invalidated_by_call.
3002
09962a4a
JG
30032013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3004
3005 * config/aarch64/aarch64-simd.md
3006 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3007 (aarch64_simd_bsl<mode>): Likewise.
3008 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3009
ea28bb0b
MP
30102013-04-25 Marek Polacek <polacek@redhat.com>
3011
3012 PR tree-optimization/57066
3c21604f 3013 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3014
96659611
JG
30152013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3016
3017 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3018
9697e620
JG
30192013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3020
3021 * config/aarch64/aarch64-builtins.c
3022 (aarch64_fold_builtin): New.
3023 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3024 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3025 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3026 * config/aarch64/arm_neon.h
3027 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3028
0ac198d3
JG
30292013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3030 Tejas Belagod <tejas.belagod@arm.com>
3031
3032 * config/aarch64/aarch64-builtins.c
3033 (aarch64_gimple_fold_builtin): New.
3034 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3035 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3036 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3037 (addvv4sf): Update.
3038 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3039
58cff58c
N
30402013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3041
df93505e 3042 * config/aarch64/aarch64.md
58cff58c
N
3043 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3044
7e0228bf
N
30452013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3046
3047 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3048 (*ngcsi_uxtw): New pattern.
3049
5819f96f 30502013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3051 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3052
3053 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3054 (TB_DREG): Add T_V4HF.
3055 (v4hf_UP): New macro.
3056 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3057 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3058 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3059 built-ins.
df93505e 3060 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3061 (arm_vector_mode_supported_p): Handle V4HF.
3062 (arm_mangle_map): Handle V4HFmode.
3063 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3064 * config/arm/arm_neon_builtins.def: Add entries for
3065 vcvtv4hfv4sf, vcvtv4sfv4hf.
3066 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3067 (neon_vcvtv4hfv4sf): Likewise.
3068 * config/arm/neon-gen.ml: Handle half-precision floating point
3069 features.
3070 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3071 * config/arm/arm_neon.h: Regenerate.
3072 * config/arm/neon.ml (type elts): Add F16.
3073 (type vectype): Add T_float16x4, T_floatHF.
3074 (type vecmode): Add V4HF.
3075 (type features): Add Requires_FP_bit feature.
3076 (elt_width): Handle F16.
3077 (elt_class): Likewise.
3078 (elt_of_class_width): Likewise.
3079 (mode_of_elt): Refactor.
3080 (type_for_elt): Handle F16, fix error messages.
3081 (vectype_size): Handle T_float16x4.
3082 (vcvt_sh): New function.
3083 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3084 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3085 (string_of_mode): Handle V4HF.
3086 * doc/arm-neon-intrinsics.texi: Regenerate.
3087
1ef395e4
JG
30882013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3089
3090 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3091 format specifier in 'X' case.
3092
41c34e94
AM
30932013-04-25 Alan Modra <amodra@gmail.com>
3094
3095 PR target/57052
3096 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3097 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3098 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3099 Repeat for many other rotate/shift and mask patterns using subregs.
3100 Name lshiftrt insns.
3101 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3102 on WORDS_BIG_ENDIAN.
3103
b9a7eb5d
AM
31042013-04-25 Alan Modra <amodra@gmail.com>
3105
3106 * config.gcc: Support little-endian powerpc-linux targets.
3107 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3108 (LINK_OS_LINUX_SPEC): Define.
3109 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3110 Preserve MASK_LITTLE_ENDIAN.
3111 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3112 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3113 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3114 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3115 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3116 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3117 Correct fp word order for little-endian. Don't shift toc entries
3118 smaller than a word for little-endian.
3119 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3120 (bswapdi2 splits): Correct low-part subreg for little-endian.
3121 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3122 low/high where such is correct only for be.
3123 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3124 little-endian for -mcall-aixdesc.
3125
87f73374
AM
31262013-04-25 Alan Modra <amodra@gmail.com>
3127
3128 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3129 replace_equiv_address_nv.
3130
cabf91cd
AM
31312013-04-25 Alan Modra <amodra@gmail.com>
3132
3133 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3134
0ae24cc8
VM
31352013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3136
3137 Revert:
3138 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3139 * rtl.h (struct rtx_def): ...
cabf91cd 3140
77bce07c
VM
31412013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3142
3143 PR rtl-optimizations/57046
3144 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3145 for multi-reg splits.
3146
0db63e7f
L
31472013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3148
3149 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3150
3362b6b6
SA
31512013-04-24 Sterling Augustine <saugustine@google.com>
3152
3153 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3154 (comp_dir_string, debug_str_dwo_section): New.
3155 (DEBUG_STR_DWO_SECTION): Rename to ...
3156 (DEBUG_DWO_STR_SECTION): ... this.
3157 (DEBUG_NORM_STR_SECTION): Delete.
3158 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3159 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3160 (find_AT_string): Move most logic to ...
3161 (find_AT_string_in_table): ... here. New.
3162 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3163 add_skeleton_AT_string. Delete logic.
3164 (output_skeleton_debug_sections): Remove call to
3165 add_top_level_skeleton_die_attrs.
3166 (add_comp_dir_attribute): Move logic to comp_dir_string.
3167 (dwarf2out_init): Initialize debug_str_dwo_section.
3168 (output_indirect_string): Call find_string_form.
3169 (output_indirect_strings): Rewrite.
3170 (prune_unused_types): Empty skeleton_debug_str_hash.
3171 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3172 (dwarf2out_finish): Call output_indirect_strings.
3173
e93e18e9
PC
31742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3175
3176 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3177
f6ce35ac
VM
31782013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3179
cabf91cd 3180 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
3181 (LRA_SUBREG_P): New macro.
3182 * recog.c (register_operand): Check LRA_SUBREG_P.
3183 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3184 stack frame.
3185 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3186 (lra_final_code_change): Skip subreg change for operators.
3187 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3188 if there are no operand changes.
3189 * lra-constraints.c (curr_insn_set): New.
3190 (match_reload): Set LRA_SUBREG_P.
3191 (emit_spill_move): Ditto.
3192 (check_and_process_move): Use curr_insn_set. Process only single
3193 set insns. Don't initialize sec_mem_p and change_p.
3194 (simplify_operand_subreg): Use LRA_SUBREG_P.
3195 (reg_in_class_p): New function.
3196 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3197 of #ifdef. Add code to remove cycling.
3198 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3199 non-null disp. Reload inner instead of disp when base and index
3200 are null. Try to put lo_sum into register.
3201 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 3202 (check_and_process_move): Move code for move cost check to
f6ce35ac 3203 simple_move_p. Remove equiv_substitution.
cabf91cd 3204 (simple_move_p): New function.
f6ce35ac
VM
3205 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3206 curr_insn_set. Call check_and_process_move only for single set
3207 insns. Use the new function. Move call of check_and_process_move
3208 after operand equiv substitution and address process.
3209
38047d90
JG
32102013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3211
3212 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3213 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3214 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3215
13f39b2e
PC
32162013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3217
3218 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3219
97c116dc
MP
32202013-04-24 Marek Polacek <polacek@redhat.com>
3221
3222 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3223 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3224 (select_loops_exit_conditions): Likewise.
3225 (number_of_iterations_for_all_loops): Likewise.
3226 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3227 (scev_analysis): Likewise.
3228
83082391
CM
32292013-04-02 Catherine Moore <clm@codesourcery.com>
3230 Chao-ying Fu <fu@mips.com>
3231
cabf91cd
AM
3232 * config/mips/micromips.md (jraddiusp): New pattern.
3233 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3234 instruction if possible.
83082391 3235
19e34aa2
AM
32362013-04-24 Alan Modra <amodra@gmail.com>
3237
3238 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3239
fdb6603c
JB
32402013-04-24 Julian Brown <julian@codesourcery.com>
3241 Chung-Lin Tang <cltang@codesourcery.com>
3242
3243 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
3244 dependency behavior in enumeration type DIE generation. Add TODO note
3245 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 3246
bf190e8d
LC
32472013-04-23 Lawrence Crowl <crowl@google.com>
3248
3249 * Makefile.in: Update as needed below.
3250
3251 * hash-table.h (class hash_table):
3252 Correct many methods with parameter types compare_type to the correct
3253 value_type. (Correct code was unlikely to notice the change.)
3254 (hash_table::elements_with_deleted) New.
3255 (class hashtable::iterator): New.
3256 (hashtable::begin()): New.
3257 (hashtable::end()): New.
3258 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3259
3260 * statistics.c (statistics_hashes):
3261 Change type to hash_table. Update dependent calls and types.
3262
3263 * tree-into-ssa.c (var_infos):
3264 Change type to hash_table. Update dependent calls and types.
3265
3266 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3267 Change type to hash_table. Update dependent calls and types.
3268
3269 * tree-ssa-loop-im.c (struct mem_ref.refs):
3270 Change type to hash_table. Update dependent calls and types.
3271
3272 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3273 Change type to hash_table. Update dependent calls and types.
3274
3275 * tree-ssa-sccvn.c (vn_tables_s::nary):
3276 Change type to hash_table. Update dependent calls and types.
3277 (vn_tables_s::phis): Likewise.
3278 (vn_tables_s::references): Likewise.
3279
3280 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3281 (vn_reference_eq): Update parameter and return types.
3282
3283 * tree-ssa-structalias.c (pointer_equiv_class_table):
3284 Change type to hash_table. Update dependent calls and types.
3285 (location_equiv_class_table): Likewise.
3286
3287 * tree-vect-data-refs.c: Consequential changes for making
3288 peeling a hash_table.
3289
3290 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3291 (destroy_loop_vec_info): Dependent hash_table update.
3292
3293 * tree-vectorizer.h (peeling_htab):
3294 Change type to hash_table. Update dependent calls and types.
3295
d70a81dd
SC
32962013-04-23 Shiva Chen <shiva0217@gmail.com>
3297
cabf91cd
AM
3298 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3299 to check the register content is equal or not.
3300 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3301 to assign register content record.
3302 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 3303 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
3304 * lra-int.h (struct lra_reg): Add offset member.
3305 (lra_reg_val_equal_p): New static inline function.
3306 (lra_update_reg_val_offset): New static inline function.
3307 (lra_assign_reg_val): New static inline function.
3308 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3309 to assign register content record.
3310 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 3311
b894a1f3
CM
33122013-04-23 Catherine Moore <clm@codesourcery.com>
3313
3314 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3315 operands. Record compression.
3316
ecd14de9
XDL
33172013-04-23 Xinliang David Li <davidxl@google.com>
3318
3319 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3320
92e776e9
RB
33212013-04-23 Richard Biener <rguenther@suse.de>
3322
3323 PR middle-end/57036
3324 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3325 parameter, only add abnormal goto edges from the copied body
3326 if the call could perform abnormal gotos.
3327 (copy_cfg_body): Adjust.
3328
a15ee567
SN
33292013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3330
3331 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3332
08c52234
AS
33332013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3334
3335 * coretypes.h (gimple_stmt_iterator): Add struct to make
3336 compatible with C.
3337
999c1171
RB
33382013-04-23 Richard Biener <rguenther@suse.de>
3339
3340 PR tree-optimization/57026
3341 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3342 from SSA names occuring in abnormal PHI nodes.
3343
53669259
AK
33442013-04-22 Andi Kleen <ak@linux.intel.com>
3345
3346 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3347
1a0ad150
AK
33482013-04-22 Andi Kleen <ak@linux.intel.com>
3349
3350 * lto/lto.c (print_lto_report_1): Declare early.
3351 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3352
057f8f20
AK
33532013-04-22 Andi Kleen <ak@linux.intel.com>
3354
3355 * common.opt (-flto-report-wpa): Add.
3356 * doc/invoke.texi (-flto-report-wpa): Add.
3357 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3358 (lto_main): dito.
3359
473b1e05
XDL
33602013-04-22 Xinliang David Li <davidxl@google.com>
3361
3362 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3363 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3364 * Makefile.in: New dependency
3365
cabf91cd 3366 David Daney <ddaney.cavm@gmail.com>
b1485a33 3367
cabf91cd
AM
3368 * configure.ac (gcc_cv_as_micromips_support): Use the
3369 --fatal-warnings option.
3370 * configure: Regenerate.
b1485a33 3371
829d0168
MP
33722013-04-22 Marek Polacek <polacek@redhat.com>
3373
3374 PR sanitizer/56990
3375 * tsan.c (instrument_expr): Don't instrument expression
3376 in case its size is zero.
3377
6d9b7208
UB
33782013-04-22 Uros Bizjak <ubizjak@gmail.com>
3379
3380 PR target/57032
3381 Revert:
3382 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3383
3384 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3385
ea679d55
JG
33862013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3387
3388 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3389 (gimple_stmt_iterator): New typedef.
3390 * gimple.h (gimple_stmt_iterator): Rename to...
3391 (gimple_stmt_iterator_d): ... This.
3392 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3393 trees be valid for GIMPLE and GENERIC.
3394 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3395 * gimple-fold.c (gimple_fold_call): Call target hook
3396 gimple_fold_builtin.
3397 * hooks.c (hook_bool_gsiptr_false): New.
3398 * hooks.h (hook_bool_gsiptr_false): New.
3399 * target.def (fold_stmt): New.
3400 * doc/tm.texi: Regenerate.
3401
88a581da
VM
34022013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3403
3404 PR target/57018
3405 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3406 a set sp if no stack realignment.
3407
92be22dc
NC
34082013-04-22 Nick Clifton <nickc@redhat.com>
3409
3410 * config.gcc (tilegx-linux): Extend extra_objs rather than
3411 overwriting it.
3412 (tilepro-linux): Likewise.
3413
0ddec79f
JG
34142013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3415
3416 * config/aarch64/aarch64-builtins.c
3417 (CF): Remove.
3418 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3419 (VAR<1-12>): Add MAP parameter.
3420 (BUILTIN_*): Likewise.
3421 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3422 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3423 (aarch64_ushl_n<mode>): Likewise.
3424 (aarch64_sshr_n<mode>): Likewise.
3425 (aarch64_ushr_n<mode>): Likewise.
3426 (aarch64_<maxmin><mode>): Likewise.
3427 (aarch64_sqrt<mode>): Likewise.
3428 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3429 (vshr<q>_n_*): Likewise.
3430
0050faf8
JG
34312013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3432
3433 * config/aarch64/aarch64-builtins.c
3434 (aarch64_simd_builtin_type_mode): Handle SF types.
3435 (sf_UP): Define.
3436 (BUILTIN_GPF): Define.
3437 (aarch64_init_simd_builtins): Handle SF types.
3438 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3439 (frecps): Likewise.
3440 (frecpx): Likewise.
3441 * config/aarch64/aarch64-simd.md
3442 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3443 (aarch64_frecpe<mode>): New.
3444 (aarch64_frecps<mode>): Likewise.
3445 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3446 (v8type): Add frecp<esx>.
3447 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3448 (aarch64_frecps<mode>): Likewise.
3449 * config/aarch64/iterators.md (FRECP): New.
3450 (frecp_suffix): Likewise.
3451 * config/aarch64/arm_neon.h
3452 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3453
0fad3dbc 34542013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
3455
3456 PR target/56995
3457 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3458 (REG_CLASS_NAMES): Idem.
3459 (REG_CLASS_CONTENTS): Idem.
3460 (REGCLASS_HAS_FP_REG): Idem.
3461 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3462 (sh_conditional_register_usage): Idem.
3463
3e8a33f9
JL
34642013-04-21 Jeff Law <law@redhat.com>
3465
3466 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3467 (ssa_forward_propagate_and_combine): Use it.
3468
f38e1b0a
VM
34692013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3470
3471 * lra.c: Update the flow chart diagram.
3472
682303da
VM
34732013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3474
3475 PR rtl-optimization/56847
3476 * lra-constraints.c (process_alt_operands): Discourage alternative
3477 with non-matche doffsettable memory constraint fro memory with
3478 known offset.
3479
f6b64c35
RB
34802013-04-19 Richard Biener <rguenther@suse.de>
3481
3482 PR tree-optimization/56982
3483 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3484 function.
3485 * gimplify.c (gimplify_call_expr): Notice special calls.
3486 (gimplify_modify_expr): Likewise.
3487 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3488 abnormal control flow receivers.
3489 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3490 in the same way as cfun->has_nonlocal_labels.
3491 (gimple_purge_dead_abnormal_call_edges): Likewise.
3492 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3493 receivers start a basic-block.
3494
01d8bf07
RB
34952013-04-19 Richard Biener <rguenther@suse.de>
3496
3497 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3498 member ...
3499 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3500 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3501 (SLP_TREE_LOAD_PERMUTATION): Add.
3502 (vect_transform_slp_perm_load): Adjust prototype.
3503 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3504 (vect_free_slp_instance): Likewise.
3505 (vect_create_new_slp_node): Likewise.
3506 (vect_supported_slp_permutation_p): Remove.
3507 (vect_slp_rearrange_stmts): Adjust.
3508 (vect_supported_load_permutation_p): Likewise. Inline
3509 vect_supported_slp_permutation_p here.
3510 (vect_analyze_slp_instance): Compute load permutations per
3511 slp node instead of per instance.
3512 (vect_get_slp_defs): Adjust.
3513 (vect_transform_slp_perm_load): Likewise.
3514 (vect_schedule_slp_instance): Remove redundant code.
3515 (vect_schedule_slp): Remove hack for PR56270, add it ...
3516 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3517 CSE loads for SLP. Adjust.
3518
ede22fc3
GY
35192013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3520
3521 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3522 spelling in two comments.
3523
67bc84fb
GY
35242013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3525
3526 PR target/56797
3527 * config/arm/arm.c (load_multiple_sequence): Require SP
3528 as base register for loads if SP is in the register list.
3529
e248d83f
MJ
35302013-04-19 Martin Jambor <mjambor@suse.cz>
3531
3532 PR tree-optimization/56718
3533 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3534 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3535 and made public. Adjusted all callers.
3536 (ipa_intraprocedural_devirtualization): New function.
3537 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3538 (ipa_intraprocedural_devirtualization): Likewise.
3539 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3540
4891e8f8
RB
35412013-04-19 Richard Biener <rguenther@suse.de>
3542
3543 PR tree-optimization/57000
3544 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3545
dad89f7c
TG
35462013-04-19 Terry Guo <terry.guo@arm.com>
3547
3548 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3549 Replace with ...
3550 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3551 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3552 (cortex_m4_fmacs): Use new reservations.
3553 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3554
72ea0d47
VM
35552013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3556
f1e6512c 3557 PR rtl-optimization/56999
72ea0d47
VM
3558 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3559 related code.
3560 (lra_coalesce): Remove split_origin_bitmap and related code.
3561 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3562 ranges if necessary.
3563
780a5b71
UB
35642013-04-18 Uros Bizjak <ubizjak@gmail.com>
3565
3566 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3567 New array.
3568 (ix86_expand_call): Remove clobbered_registers array and use
3569 x86_64_ms_sysv_extra_clobbered_registers instead.
3570 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3571 Declare here.
3572 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3573 predicate.
3574 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3575 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3576 (*call_value_rex64_ms_sysv): Ditto.
3577
6f5a366a
CC
35782013-04-18 Cary Coutant <ccoutant@google.com>
3579
3580 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3581 parent instead of die_mark.
3582
475b8f37
DN
35832013-04-18 Diego Novillo <dnovillo@google.com>
3584
3585 * gimple.c (create_gimple_tmp): New.
3586 (get_expr_type): New.
3587 (build_assign): New.
3588 (build_type_cast): New.
3589 * gimple.h (enum ssa_mode): Define.
3590 (gimple_seq_set_location): New.
3591 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 3592 to use build_assign and build_type_cast.
475b8f37 3593
08940f33
RB
35942013-04-18 Richard Biener <rguenther@suse.de>
3595
3596 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3597 handle negative step. Remove redundant checks.
3598 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3599 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3600 for negative step and grouped loads fail to vectorize.
3601
0e0f87d4
SB
36022013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3603
3604 * emit-rtl.c (reset_insn_used_flags): New function.
3605 (reset_all_used_flags): Use it.
3606 (verify_insn_sharing): New function.
3607 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3608
4c445590
JJ
36092013-04-18 Jakub Jelinek <jakub@redhat.com>
3610
3611 PR tree-optimization/56984
3612 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3613 and (x >> M) >= N don't register any assertion if N << M is the
3614 minimum value.
3615
6873ecab
SB
36162013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3617
3618 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3619 do not delete_insn insns that have not yet been emitted, only
3620 unlink them with remove_insn.
3621 * df-scan.c (df_insn_delete): Revert r197492.
3622
3ccb989e
SB
36232013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3624
3625 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3626 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3627
36282013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
3629
3630 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3631 define_insn_and_split.
3632 (and_scc,ior_scc,negscc): Likewise.
3633 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3634
3ccb989e 36352013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
3636
3637 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3638 can benefit from using a sequence of LDRD instructions in epilogue
3639 instead of a single LDM instruction.
3640
6d10a203
MLI
36412013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3642
3643 PR 45688
3644 * doc/extend.texi: Fix typo.
3645
6983e6b5
RB
36462013-04-17 Richard Biener <rguenther@suse.de>
3647
3648 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3649 (vect_build_slp_tree): ... here.
3650 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3651 match. Remove special-casing of mismatched complex loads.
3652 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3653 re-try the match with swapped commutative operands.
3654 (vect_supported_load_permutation_p): Remove special-casing of
3655 mismatched complex loads.
3656 (vect_analyze_slp_instance): Adjust.
3657
ef23e6a2
RB
36582013-04-17 Richard Biener <rguenther@suse.de>
3659
3660 PR rtl-optimization/56921
3661 * cfgloop.h (struct loop): Add simple_loop_desc member.
3662 (struct niter_desc): Mark with GTY(()).
3663 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3664 * loop-iv.c (get_simple_loop_desc): Likewise.
3665 (free_simple_loop_desc): Likewise.
3666
3667 Revert
3668 2013-04-16 Richard Biener <rguenther@suse.de>
3669
3670 PR rtl-optimization/56921
3671 * loop-init.c (pass_rtl_move_loop_invariants): Add
3672 TODO_do_not_ggc_collect to todo_flags_finish.
3673 (pass_rtl_unswitch): Same.
3674 (pass_rtl_unroll_and_peel_loops): Same.
3675 (pass_rtl_doloop): Same.
3676
fc6f94f5
EB
36772013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3678
3679 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3680 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3681 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3682 references.
3683 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3684 * tree-streamer.c (record_common_node): Adjust reference in comment.
3685
10a88311
TG
36862013-04-17 Terry Guo <terry.guo@arm.com>
3687
3688 * config/arm/cortex-m4.md: Add a new bypass.
3689
6d9b7208 36902013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
3691
3692 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3693 New pattern.
3694 (*subs_<optab><mode>_multp2): New pattern.
3695 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3696 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3697
6d9b7208 36982013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
3699
3700 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3701 (*subs_mul_imm_<mode>): New pattern.
3702
18a6701e
DE
37032013-04-16 David Edelsohn <dje.gcc@gmail.com>
3704
3705 PR target/56948
3706 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3707 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3708 (vsx_movti_32bit): Change j->wa to O->wa.
3709
07c37b2f
RB
37102013-04-16 Richard Biener <rguenther@suse.de>
3711
3712 PR rtl-optimization/56921
3713 * loop-init.c (pass_rtl_move_loop_invariants): Add
3714 TODO_do_not_ggc_collect to todo_flags_finish.
3715 (pass_rtl_unswitch): Same.
3716 (pass_rtl_unroll_and_peel_loops): Same.
3717 (pass_rtl_doloop): Same.
3718
0e0f87d4 37192013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
3720
3721 * config/arm/arm.c (emit_multi_reg_push): New declaration
3722 for an existing function.
3723 (arm_emit_strd_push): New function.
3724 (arm_expand_prologue): Used here.
3725 (arm_emit_ldrd_pop): New function.
3726 (arm_expand_epilogue): Used here.
3727 (arm_get_frame_offsets): Update condition.
3728 (arm_emit_multi_reg_pop): Add a special case for load of a single
3729 register with writeback.
3730
5e8e2af4
UB
37312013-04-16 Uros Bizjak <ubizjak@gmail.com>
3732
3733 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3734 description.
3735
9fd9ccf7
RB
37362013-04-16 Richard Biener <rguenther@suse.de>
3737
3738 PR tree-optimization/56756
3739 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3740 (first_mem_ref_loc): New.
3741 (execute_sm): Place the load temporarily before a previous
3742 access instead of in the latch edge to ensure its SSA dependencies
3743 are defined at points dominating the load.
3744
96fba521
SB
37452013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3746
4c8af858
SB
3747 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3748 correct fix by moving header and footer insn to the footer of
3749 the merged basic block. Clear BB_END of the merged-away block.
3750
96fba521
SB
3751 PR middle-end/43631
3752 * emit-rtl.c (make_note_raw): New function.
3753 (link_insn_into_chain): New static inline function.
3754 (add_insn): Use it.
3755 (add_insn_before, add_insn_after): Factor insn chain linking code...
3756 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3757 using link_insn_into_chain.
3758 (note_outside_basic_block_p): New helper function for emit_note_after
3759 and emit_note_before.
3760 (emit_note_after): Use nobb variant of add_insn_after if the note
3761 should not be contained in a basic block.
3762 (emit_note_before): Use nobb variant of add_insn_before if the note
3763 should not be contained in a basic block.
3764 (emit_note_copy): Use make_note_raw.
3765 (emit_note): Likewise.
3766 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3767 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3768 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3769 the moved barrier the tail of the basic block it follows.
3770 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3771
7b8265ba
JJ
37722013-04-15 Jakub Jelinek <jakub@redhat.com>
3773
3774 PR tree-optimization/56962
3775 * gimple-ssa-strength-reduction.c (record_increment): Only set
3776 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3777 either rhs1 or rhs2 is equal to c->base_expr.
3778
5185d248
RB
37792013-04-15 Richard Biener <rguenther@suse.de>
3780
3781 PR tree-optimization/56933
3782 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3783 member.
3784 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3785 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3786 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3787 dependence check ...
3788 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3789 ... here.
3790 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3791 GROUP_READ_WRITE_DEPENDENCE.
3792
a24243a0
AK
37932013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3794
3795 * emit-rtl.c (reset_all_used_flags): New function.
3796 (verify_rtl_sharing): Call reset_all_used_flags before and after
3797 performing the checks.
3798
1c50eada
KT
37992013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3800
3801 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3802 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3803 * config/arm/constraints.md (De): New constraint.
3804 * config/arm/neon.md (anddi3_neon): Delete.
3805 (neon_vand<mode>): Expand to standard anddi3 pattern.
3806 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3807 Move earlier in the file.
3808 (neon_inv_logic_op2): Likewise.
3809 (arm_anddi_operand_neon): New predicate.
3810
e927b6ad
RO
38112013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3812
3813 * configure.ac (gcc_cv_ld_as_needed): Set
3814 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3815 Use -z ignore, -z record on *-*-solaris2*.
3816 (HAVE_LD_AS_NEEDED): Update comment.
3817 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3818 * configure: Regenerate.
3819 * config.in: Regenerate.
3820 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3821 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3822 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3823 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3824 equivalents. Fix markup.
3825 * doc/tm.texi: Regenerate.
3826
e0ea8797
AH
38272013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3828
3829 * config/i386/i386.opt: New option mstack-protector-guard=.
3830 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3831 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3832 TARGET_SSP_TLS_GUARD.
3833 * config/i386/i386.c (ix86_option_override_internal): Set
3834 ix86_stack_protector_guard.
3835 * config/i386/i386.md (stack_protect_set): Enable for
3836 TARGET_SSP_TLS_GUARD only.
3837 (stack_protect_set_<mode>): Ditto.
3838 (stack_protect_test): Ditto.
3839 (stack_protect_test_<mode>): Ditto.
3840 * doc/invoke.texi (i386 Option): Document.
3841
811b72f9
EB
38422013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3843
3844 PR target/56890
3845 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3846 (S_MODES): Set H_MODE bit.
3847 (SF_MODES): Set only S_MODE and SF_MODE bits.
3848 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3849 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3850 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3851 <MODE_FLOAT>: Likewise.
3852
5529fdd6
JY
38532013-04-15 Joey Ye <joey.ye@arm.com>
3854
3855 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3856
517b1da2
JY
38572013-04-15 Joey Ye <joey.ye@arm.com>
3858
3859 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3860 for real far jump.
3861 (thumb_far_jump_used_p): Count instruction size and set
3862 far_jump_used.
3863
01007ae0
EB
38642013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3865
3866 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3867 * resource.c (mark_target_live_regs): Reformat conditional block.
3868
c46f6580
SB
38692013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3870
3871 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3872 notes, they are emitted only just before final.
3873 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3874
1f397f45
SB
38752013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3876
3877 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3878 * cfgrtl.c (delete_insn): Call it here instead.
3879 * lra-spills.c (lra_final_code_change): Use delete_insn.
3880 * haifa-sched.c (sched_remove_insn): Likewise.
3881 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3882 returning to the nop pool.
3883 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3884 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
3885
58a51369
SB
38862013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3887
3888 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3889 * doc/tm.texi: Regenerated.
3890
33159866
UB
38912013-04-12 Uros Bizjak <ubizjak@gmail.com>
3892
3893 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3894 QImode checks.
3895
226e378f
SB
38962013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3897
3898 * df-core.c (df_find_def): Compare register numbers.
3899 (df_find_use): Likewise.
3900
fafb9b18
VM
39012013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3902
3903 PR target/56903
3904 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3905 lra_in_progress for return.
3906
9a946fd6
GY
39072013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3908
3909 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3910 define_insn into define_insn_and_split and emit movsicc patterns.
3911
41b83758
GY
39122013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3913
3914 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3915
d3afd9aa
RB
39162013-04-12 Richard Biener <rguenther@suse.de>
3917
3918 * tree-pass.h (TODO_do_not_ggc_collect): New.
3919 * passes.c (execute_one_ipa_transform_pass): Honor
3920 TODO_do_not_ggc_collect.
3921 (execute_one_pass): Likewise.
3922
3923 Revert
3924 2013-04-10 Richard Biener <rguenther@suse.de>
3925
3926 * passes.c (init_optimization_passes): Remove reload pass.
3927 * ira.c (do_reload): Merge into ...
3928 (ira): ... this.
3929 (rest_of_handle_reload): Remove.
3930 (pass_reload): Likewise.
3931 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3932 of reload for vzeroupper pass placement.
3933
06f9b387
JJ
39342013-04-12 Jakub Jelinek <jakub@redhat.com>
3935
3936 PR tree-optimization/56918
3937 PR tree-optimization/56920
3938 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3939 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3940 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
3941 use wide_mul_with_sign method.
3942
953094d2
RB
39432013-04-12 Richard Biener <rguenther@suse.de>
3944
3945 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3946 not be considered a gimple constant.
3947
bb506982
MG
39482013-04-12 Marc Glisse <marc.glisse@inria.fr>
3949
3950 * fold-const.c (const_binop): Handle vector shifts by a scalar.
3951 (fold_binary_loc): Call const_binop also for mixed vector-scalar
3952 operations.
3953
4b84d650
JJ
39542013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
3955 Jakub Jelinek <jakub@redhat.com>
3956
3957 * opts.c: Include diagnostic-color.h.
3958 (common_handle_option): Handle OPT_fdiagnostics_color_.
3959 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3960 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3961 (diagnostic-color.o): New.
3962 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3963 (diagnostic_color_rule): New enum.
3964 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3965 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3966 the location string.
3967 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3968 either NULL, or color kind.
3969 * diagnostic-color.c: New file.
3970 * diagnostic-color.h: New file.
3971 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3972 arguments.
3973 * doc/invoke.texi (-fdiagnostics-color): Document.
3974 * pretty-print.h (pp_show_color): Define.
3975 (struct pretty_print_info): Add show_color field.
3976 * diagnostic.c: Include diagnostic-color.h.
3977 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3978 macros. Colorize error:, warning: etc. strings and also the location
3979 string.
3980 (diagnostic_show_locus): Colorize the caret line.
3981 * pretty-print.c: Include diagnostic-color.h.
3982 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
3983 inside of %< %> quotes or quoted through q format modifier.
3984
067a1e71
AK
39852013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3986
33159866 3987 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 3988
33159866 39892013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
3990
3991 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3992 code in CC_NZ mode.
3993 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3994 pattern.
3995
7b55f98f
MP
39962013-04-11 Marek Polacek <polacek@redhat.com>
3997
3998 PR tree-optimization/48184
33159866 3999 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4000
966b587e
EB
40012013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4002
4003 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4004 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4005 (skip_simple_arithmetic): Tidy up.
4006 * tree.h (skip_simple_constant_arithmetic): Declare.
4007
33159866 40082013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4009
4010 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4011
1d42c1ec
RB
40122013-04-11 Richard Biener <rguenther@suse.de>
4013
4014 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4015 generate vector constants.
4016
4ba5ea11
RB
40172013-04-11 Richard Biener <rguenther@suse.de>
4018
4019 PR tree-optimization/56878
4020 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4021 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4022 New function.
4023 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4024 Prefer to align the DR with the most invariant base address.
4025
f0defe58
SKS
40262013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4027
4028 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4029 comment.
4030
d07458be
JG
40312013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4032
4033 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4034 floating-point vector comparisons against 0.
4035
146b8692
JJ
40362013-04-11 Jakub Jelinek <jakub@redhat.com>
4037
4038 PR tree-optimization/56899
4039 * fold-const.c (extract_muldiv_1): Apply distributive law
4040 only if TYPE_OVERFLOW_WRAPS (ctype).
4041
b8578ff7
BC
40422013-04-11 Bin Cheng <bin.cheng@arm.com>
4043
4044 PR target/56124
4045 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4046 loading has side effect.
4047
0ea8a6f9
SB
40482013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4049
4050 * config/sparc/sparc.c: Include tree-pass.h.
4051 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4052 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4053 head of file. Change return type. Split off gate function.
4054 (sparc_gate_work_around_errata): New function.
4055 (pass_work_around_errata): New pass definition.
4056 (insert_pass_work_around_errata) New pass insert definition to
4057 insert pass_work_around_errata just after delayed-branch scheduling.
4058 (sparc_option_override): Insert the pass.
4059 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4060
42e37616
DM
40612013-04-10 David S. Miller <davem@davemloft.net>
4062
89deeb3b
DM
4063 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4064 or -mcpu=hypersparc.
4065
42e37616
DM
4066 * target.def (cstore_mode): New hook.
4067 * target.h: Include insn-codes.h
4068 * targhooks.c: Likewise.
4069 (default_cstore_mode): New function.
4070 * targhooks.h: Declare it.
4071 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4072 * doc/tm.texi: Rebuild.
4073 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4074 target hook, rather than inspecting the insn_data.
4075 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4076 (TARGET_CSTORE_MODE): Redefine.
4077 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4078 result patterns.
4079 * config/sparc/predicates.md (cstore_result_operand): New special
4080 predicate.
4081 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4082 Use it for operand 0.
4083 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4084 (*snesi_special): Likewise.
4085 (*snesi_zero): Likewise.
4086 (*seqsi_zero): Likewise.
4087 (*sltu_insn): Likewise.
4088 (*sgeu_insn): Likewise.
4089 (*seqdi_special): Make operand 0 and comparison operation be of
4090 DImode.
4091 (*snedi_special): Likewise.
4092 (*snedi_special_vis3): Likewise.
4093 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4094 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4095 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4096 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4097 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4098 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4099 (*sltu_extend_sp64): Likewise.
4100 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4101 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4102 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4103 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4104 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4105
95ca411e
YZ
41062013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4107
4108 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4109 (aarch64_start_file): Use the new function.
4110
6782438d 41112013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 4112 Jason Merrill <jason@redhat.com>
6782438d
SKS
4113
4114 * common.opt: Add -gdwarf.
4115 * opts.c (common_handle_option): Handle it.
4116 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4117
bb313b93
RB
41182013-04-10 Richard Biener <rguenther@suse.de>
4119
4120 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4121 (execute_one_ipa_transform_pass): But unconditionally here.
4122 (execute_one_pass): And here.
4123 (init_optimization_passes): Remove reload pass.
4124 * tree-pass.h (TODO_ggc_collect): Remove.
4125 (pass_reload): Likewise.
4126 * ira.c (do_reload): Merge into ...
4127 (ira): ... this.
4128 (rest_of_handle_reload): Remove.
4129 (pass_reload): Likewise.
4130 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4131 of reload for vzeroupper pass placement.
4132 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4133 and todo_flags_finish of all passes.
4134
793d9a16
RB
41352013-04-10 Richard Biener <rguenther@suse.de>
4136
4137 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4138 first_const_oprnd field, rename first_def_type to first_op_type.
4139 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4140 (vect_get_and_check_slp_defs): Always use the type of the
4141 operand. Allow mixed vect_external_def, vect_constant_def types.
4142 (vect_get_constant_vectors): Handle mixed vect_external_def,
4143 vect_constant_def types.
4144
ee8a9b7b
JR
41452013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4146
4147 PR tree-optimization/55524
4148 * tree-ssa-math-opts.c
4149 (convert_mult_to_fma): Don't use an fms construct
4150 when we don't have an fms operation, but fnma, and it looks
4151 likely that we'll be able to use the latter.
4152
6957a6f6
ZZ
41532013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4154
4155 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4156 function.
4157 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4158 inline fail caused by overwritable functions.
4159
34ab4a5b
CJW
41602013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4161
4162 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4163 unnecessary bits in the constant power of two case.
4164
abf9bfbc
RB
41652013-04-10 Richard Biener <rguenther@suse.de>
4166
4167 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4168 broken code swapping operands.
4169 (vect_build_slp_tree): Do not compute load permutations here.
4170 (vect_analyze_slp_instance): Compute load permutations here,
4171 after building the SLP tree.
4172
f408477e
CB
41732013-04-09 Christian Bruel <christian.bruel@st.com>
4174
4175 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4176 of next/prev_real_insn.
4177
5ac42672
JH
41782013-04-09 Jan Hubicka <jh@suse.cz>
4179
abf9bfbc
RB
4180 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4181 Drop aliased parameter.
5ac42672
JH
4182 (function_and_variable_visibility): Do not handle alias pairs.
4183 * cgraph.c (varpool_externally_visible_p): Update prototype.
4184 * varpool.c (varpool_add_new_variable): Update.
4185
5017f1d2
KT
41862013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4187
4188 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4189
48eecbee
SB
41902013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4191
a949cf1c
SB
4192 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4193
48eecbee
SB
4194 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4195
75ef8e3d
MP
41962013-04-09 Marek Polacek <polacek@redhat.com>
4197
4198 PR tree-optimization/48762
33159866 4199 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 4200
23847df4
RB
42012013-04-09 Richard Biener <rguenther@suse.de>
4202
4203 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4204 dealing with cost.
4205 (vect_build_slp_tree): Likewise.
4206 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4207 calculating the cost of a SLP instance.
4208 (vect_analyze_slp_instance): Use it from here, after building
4209 the SLP tree.
4210
ea3a0fde
JJ
42112013-04-09 Jakub Jelinek <jakub@redhat.com>
4212
4213 PR middle-end/56883
4214 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4215 expand_omp_for_static_chunk): Use simple_p = true in
4216 force_gimple_operand_gsi calls when assigning to addressable decls.
4217
a32dfe9d
JL
42182013-04-09 Jeff Law <law@redhat.com>
4219
4220 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4221 when the boolean was created by converting a wider object which
4222 had a boolean range.
4223
d755c7ef
RB
42242013-04-09 Richard Biener <rguenther@suse.de>
4225
4226 * tree-vectorizer.h (slp_void_p): Remove.
4227 (slp_tree): Typedef before _slp_tree declaration.
4228 (struct _slp_tree): Use a vector of slp_tree as children.
4229 (vect_get_place_in_interleaving_chain): Remove.
4230 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4231 Move ...
4232 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4233 and make static.
4234 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4235 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4236 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4237 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4238 Use slp_node instead of slp_void_p and adjust.
4239
3d741091
RB
42402013-04-09 Richard Biener <rguenther@suse.de>
4241
4242 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4243 work that is not necessary.
4244
39307ba7
JJ
42452013-04-09 Jakub Jelinek <jakub@redhat.com>
4246
4247 PR tree-optimization/56854
4248 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4249 forward into clobber stmts if it would change MEM_REF lhs into
4250 non-MEM_REF.
4251
343881fd
MK
42522013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4253
4254 * tree.c (type_hash_lookup, type_hash_add): Make static.
4255 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4256
3922658a
RB
42572013-04-09 Richard Biener <rguenther@suse.de>
4258
4259 * tree.h (unsave_expr_now): Remove.
4260 * tree-inline.c (mark_local_for_remap_r): Remove.
4261 (unsave_expr_1): Likewise.
4262 (unsave_r): Likewise.
4263 (unsave_expr_now): Likewise.
4264 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4265 (propagate_tree_value): Likewise.
4266
9fb6b620
SB
42672013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4268
4269 * doc/rtl.texi (sequence): Rewrite documentation to match the
4270 current use of SEQUENCE rtl objects.
4271 * rtl.def (SEQUENCE): Likewise.
4272
4273 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4274 Update documentation.
4275 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4276 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4277
4278 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4279
8ddb5a29
TJ
42802013-04-08 Teresa Johnson <tejohnson@google.com>
4281
4282 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4283 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 4284 methods.
8ddb5a29
TJ
4285 (estimate_edge_size_and_time): Add comment to suggest using rounding
4286 methods.
4287 (estimate_node_size_and_time): Ditto.
4288 (remap_edge_change_prob): Use helper rounding divide methods.
4289 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4290 (gimple_mod_pow2_value_transform): Ditto.
4291 (gimple_mod_subtract_transform): Ditto.
4292 (gimple_ic_transform): Ditto.
4293 (gimple_stringops_transform): Ditto.
4294 * stmt.c (conditional_probability): Ditto.
4295 (emit_case_dispatch_table): Ditto.
4296 * lto-cgraph.c (merge_profile_summaries): Ditto.
4297 * tree-optimize.c (execute_fixup_cfg): Ditto.
4298 * cfgcleanup.c (try_forward_edges): Ditto.
4299 * cfgloopmanip.c (scale_loop_profile): Ditto.
4300 (loopify): Ditto.
4301 (duplicate_loop_to_header_edge): Ditto.
4302 (lv_adjust_loop_entry_edge): Ditto.
4303 * tree-vect-loop.c (vect_transform_loop): Ditto.
4304 * profile.c (compute_branch_probabilities): Ditto.
4305 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4306 * lto-streamer-in.c (input_cfg): Ditto.
4307 * gimple-streamer-in.c (input_bb): Ditto.
4308 * ipa-cp.c (update_profiling_info): Ditto.
4309 (update_specialized_profile): Ditto.
4310 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4311 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 4312 rounding methods.
8ddb5a29
TJ
4313 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4314 (compute_trg_info): Ditto.
4315 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4316 (purge_dead_edges): Ditto.
4317 * loop-unswitch.c (unswitch_loop): Ditto.
4318 * cgraphclones.c (cgraph_clone_edge): Ditto.
4319 (cgraph_clone_node): Ditto.
4320 * tree-inline.c (copy_bb): Ditto.
4321 (copy_edges_for_bb): Ditto.
4322 (initialize_cfun): Ditto.
4323 (copy_cfg_body): Ditto.
4324 (expand_call_inline): Ditto.
4325
661e6bd7
KT
43262013-04-08 Kai Tietz <ktietz@redhat.com>
4327
4328 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4329 TARGET_CYGWIN64 by TARGET_64BIT.
4330
105766f3
JR
43312013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4332
4333 * config/epiphany/epiphany.md (GPR_1): New constant.
4334 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4335 * config/epiphany/epiphany.c (gen_compare_reg):
4336 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4337 is already in place.
4338 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4339 Don't require being called during rtl expansion; If y operlaps r0,
4340 return 0.
4341 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4342 (epiphany_expand_epilogue): Likewise.
4343
8afab237
JR
4344 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4345 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 4346 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 4347
fa7707d6
JR
4348 * config/epiphany/constraints.md (CnL): New constraint.
4349 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4350 * config/epiphany/predicates.md (add_operand): Allow 1024.
4351
5138e18d
JR
4352 * config/epiphany/epiphany.md (logical_op): New code iterator.
4353 (op_mnc): New code attribute.
4354 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4355 (mov_f+1, mov_f+2): New peephole2 patterns.
4356
2ccc703d
JR
4357 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4358 (cstoresi4): Also allow re-use of zero result when doing a NE
4359 comparison to a non-zero operand.
aefb0819 4360 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 4361
093ac0a5
JR
4362 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4363 Use gen_addsi3_i / gen_subsi3_i.
4364
f223bb13
JJ
43652013-04-08 Jakub Jelinek <jakub@redhat.com>
4366
4367 PR c++/34949
4368 PR c++/50243
4369 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4370 contain anything but clobbers, at most one __builtin_stack_restore,
4371 optionally debug stmts and final resx, and if it has at least one
4372 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4373 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4374 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4375 which isn't defaut definition, remove them.
4376 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4377 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4378 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4379 with MEM_REF LHS with SSA_NAME address.
4380
4481581f
JL
43812013-04-08 Jeff Law <law@redhat.com>
4382
4383 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 4384
451dabda
RB
43852013-04-08 Richard Biener <rguenther@suse.de>
4386
4387 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4388 extra newline.
4389 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4390 determined vector type.
4391 (vect_analyze_data_refs): Likewise.
4392 (vect_get_new_vect_var): Adjust.
4393 (vect_create_destination_var): Preserve SSA name versions.
4394 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4395 not dump anything here.
4396
3b088b47
JR
43972013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4398
4399 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4400 Add member lr_slot_known.
4401 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4402 if necessary.
4403 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4404 Remove code that sets lr_slot_offset according to what a previous
4405 version of epiphany_emit_save_restore used to do.
4406 (epiphany_emit_save_restore): When doing an lr save or restore,
4407 set/verify lr_slot_known and lr_slot_offset.
4408
d8484d41
XQ
44092013-04-08 Xinyu Qi <xyqi@marvell.com>
4410
33159866
UB
4411 PR target/54338
4412 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
4413 in ALL_REGS.
4414
481be1c4
RB
44152013-04-08 Richard Biener <rguenther@suse.de>
4416
4417 * alias.c (find_base_term): Fix thinko in previous change.
4418
401f3a81
JJ
44192013-04-08 Jakub Jelinek <jakub@redhat.com>
4420
4421 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4422 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4423 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4424 if possible to compute val.
4425 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4426 For QImode integers don't require anything about precision. Use
4427 const_with_all_bytes_same to find out if the constant doesn't have
4428 repeated bytes in it.
4429
03ed99a8
AK
44302013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4431
4432 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4433 within mode size.
4434
781b2e62
MP
44352013-04-08 Marek Polacek <polacek@redhat.com>
4436
4437 PR rtl-optimization/48182
4438 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4439 value to 1.
4440
27e430a2
JDA
44412013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4442
4443 PR target/55487
4444 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4445 nuses, make sure we have a label.
4446
4902aa64
BS
44472013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4448
4449 PR target/56843
4450 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4451 (rs6000_emit_swdiv_low_precision): Remove.
4452 (rs6000_emit_swdiv): Rewrite to handle between one and four
4453 iterations of Newton-Raphson generally; modify required number of
4454 iterations for some cases.
4455 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4456
7bca81dc
SB
44572013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4458
4459 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4460 set-but-unused variable.
4461
4462 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4463 basic blocks of released function bodies garbage-collectable.
4464
4465 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4466 (struct rtl_opt_pass): Add TODO_df_finish.
4467
4468 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4469
4542a38a
GY
44702013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4471
4472 * config/arm/constraints.md (q): New constraint.
4473 * config/arm/ldrdstrd.md: New file.
4474 * config/arm/arm.md (ldrdstrd.md) New include.
4475 (arm_movdi): Use "q" instead of "r" constraint
4476 for double-word memory access.
4477 (movdf_soft_insn): Likewise.
4478 * config/arm/vfp.md (movdi_vfp): Likewise.
4479 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 4480 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
4481 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4482 (mem_ok_for_ldrd_strd): Likewise.
4483 (output_move_double): Update assertion.
4484
2385b218
GY
44852013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4486
4487 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4488
75fe1cb5
GY
44892013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4490
4491 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4492 define_insn_and_split.
4493 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4494
dd660e8e
GY
44952013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4496
4497 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4498 define_insn_and_split.
33159866 4499 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
4500 (shiftsi3_compare): New pattern.
4501 (rrx): New pattern.
4502 * config/arm/unspecs.md (UNSPEC_RRX): New.
4503
045e472c
GY
45042013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4505
4506 * config/arm/arm.md (negdi_extendsidi): New pattern.
4507 (negdi_zero_extendsidi): Likewise.
4508
3f3bf1a8
GY
45092013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4510
4511 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4512 define_insn_and_split.
4513 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4514 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4515
b0b49556
GY
45162013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4517
4518 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4519 define_insn_and_split.
4520 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4521 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4522
d633dd84
GY
45232013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4524
4525 * config/arm/arm.md (subsi3_carryin): New pattern.
4526 (subsi3_carryin_const): Likewise.
4527 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4528 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4529
f4499066
GY
45302013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4531
4532 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4533
ceef6fd9
GY
45342013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4535
4536 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 4537 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 4538
ddbdd8a7
KT
45392013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4540
4541 * config/arm/arm.c (arm_expand_builtin): Change fcode
4542 type to unsigned int.
4543
8456d78a
RR
45442013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4545
4546 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4547
526c230f
ILT
45482013-04-04 Ian Lance Taylor <iant@google.com>
4549
33159866
UB
4550 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4551 language standard.
526c230f 4552
3cfbe04d
SB
45532013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4554
4555 PR middle-end/56729
4556 * df-scan.c (df_insn_delete): Disable failing assert.
4557
dfa3f8d0
KT
45582013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4559
4560 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4561 New function prototype.
4562 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4563 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4564 (arm_builtin_vectorized_function): New function.
4565
f7837758
KT
45662013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4567
4568 * config/arm/arm_neon_builtins.def: New file.
4569 * config/arm/arm.c (neon_builtin_data): Move contents to
4570 arm_neon_builtins.def.
4571 (enum arm_builtins): Include neon builtin definitions.
4572 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 4573 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 4574
39c1b6db
MP
45752013-04-04 Marek Polacek <polacek@redhat.com>
4576
4577 PR tree-optimization/48186
4578 * predict.c (maybe_hot_frequency_p): Return false if
4579 HOT_BB_FREQUENCY_FRACTION is 0.
4580 (cgraph_maybe_hot_edge_p): Likewise.
4581
314f64eb
RB
45822013-04-04 Richard Biener <rguenther@suse.de>
4583
4584 PR tree-optimization/56826
4585 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4586 more accurately.
4587
51a905b2
RB
45882013-04-04 Richard Biener <rguenther@suse.de>
4589
4590 PR tree-optimization/56213
4591 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 4592 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 4593
f1bf4f3a
RB
45942013-04-04 Richard Biener <rguenther@suse.de>
4595
4596 PR tree-optimization/56837
4597 * tree-loop-distribution.c (classify_partition): For non-zero
4598 values require that the value has the same precision as its
4599 mode to be useful as memset value.
4600
0bca7ded
NC
46012013-04-03 Nick Clifton <nickc@redhat.com>
4602
33159866 4603 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
4604 (fmssf4): Use fmsf.s on E3V5 architectures.
4605 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4606 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4607
b4019227
JL
46082013-04-03 Jeff Law <law@redhat.com>
4609
4610 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4611 (lra-eliminations.o): Likewise.
4612
f57ddb5b
TJ
46132013-04-03 Teresa Johnson <tejohnson@google.com>
4614
4615 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 4616 compute_working_sets here from profile.c.
f57ddb5b 4617 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
4618 (gcov_working_set_t): Moved typedef here from basic-block.h
4619 (compute_working_set): Declare.
f57ddb5b
TJ
4620 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4621 (get_working_sets): Renamed from compute_working_set,
33159866 4622 replace most of body with call to new compute_working_sets.
f57ddb5b 4623 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
4624 to get_working_sets.
4625 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 4626 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 4627 to get_working_sets.
f57ddb5b
TJ
4628 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4629 * gcov-dump.c (dump_working_sets): New function.
4630
5e0919f1
KZ
46312013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4632
4633 * hwint.c (sext_hwi, zext_hwi): New functions.
4634 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4635 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4636 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4637 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4638 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4639 (sext_hwi, zext_hwi): New functions.
0bca7ded 4640
be672e08
JL
46412013-04-03 Jeff Law <law@redhat.com>
4642
4643 PR tree-optimization/56799
33159866
UB
4644 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4645 back test for widening conversion erroneously dropped in prior change.
be672e08 4646
9d821fa5
KT
46472013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4648
4649 PR target/56809
4650 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4651 instead of next_real_insn.
4652
71c581e7
MP
46532013-04-03 Marek Polacek <polacek@redhat.com>
4654
4655 PR sanitizer/55702
33159866 4656 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 4657
4a32ef80
KT
46582013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4659
4660 PR target/56809
4661 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4662 next_real_insn.
4663 (thumb1_output_casesi): Likewise.
4664 (thumb2_output_casesi): Likewise.
4665
1b2253d4
RB
46662013-04-03 Richard Biener <rguenther@suse.de>
4667
4668 PR tree-optimization/56817
4669 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4670 Split out ...
4671 (tree_unroll_loops_completely_1): ... new function to manually
4672 walk the loop tree, properly defering outer loops of unrolled
4673 loops to later iterations.
4674
38000232
MG
46752013-04-03 Marc Glisse <marc.glisse@inria.fr>
4676
4677 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4678 (vectorizable_load): Likewise.
4679 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4680 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4681
3fa35298
MG
46822013-04-03 Marc Glisse <marc.glisse@inria.fr>
4683
4684 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4685 BIT_FIELD_REF.
4686
b3d45ff0
UW
46872013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4688
4689 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4690
ec9202a8
BC
46912013-04-03 Bin Cheng <bin.cheng@arm.com>
4692
4693 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4694
6805bd36
MG
46952013-04-03 Marc Glisse <marc.glisse@inria.fr>
4696
4697 PR tree-optimization/56790
33159866
UB
4698 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4699 folding.
6805bd36 4700
da694a77
MG
47012013-04-03 Marc Glisse <marc.glisse@inria.fr>
4702
4703 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4704 Handle VEC_MERGE.
4705 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4706 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4707 equal arguments.
4708
4e7d7b3d
JJ
47092013-04-03 Jakub Jelinek <jakub@redhat.com>
4710
4711 PR c/19449
4712 * tree.h (force_folding_builtin_constant_p): New decl.
4713 * builtins.c (force_folding_builtin_constant_p): New variable.
4714 (fold_builtin_constant_p): Fold immediately also if
4715 force_folding_builtin_constant_p.
4716
e6c9d234
RB
47172013-04-03 Richard Biener <rguenther@suse.de>
4718
4719 PR tree-optimization/56812
4720 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4721 DRs of the same interleaving chain are independent.
4722
984d07dd
JM
47232013-04-02 Jason Merrill <jason@redhat.com>
4724
4725 * gdbinit.in (pbb): Use debug fn.
4726
622849c9
LC
47272013-04-02 Lawrence Crowl <crowl@google.com>
4728
4729 * sese.h (struct ivtype_map_elt_s): Remove unused.
4730 (extern debug_ivtype_map): Remove unused.
4731 (extern eq_ivtype_map_elts): Remove unused.
4732 * sese.c (debug_ivtype_map): Removed unused.
4733 (debug_ivtype_map_1): Removed unused.
4734 (debug_ivtype_elt): Remove unused.
4735 (eq_ivtype_map_elts): Remove unused.
4736
4737
82c0e1a0
KT
47382013-04-02 Kai Tietz <ktietz@redhat.com>
4739
4740 PR target/52790
4741 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4742 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
4743 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4744 function.
82c0e1a0
KT
4745 (legitimize_pe_coff_symbol): Likewise.
4746 (is_imported_p): New helper-function.
4747 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4748 for Windows x64 targets.
4749 (ix86_expand_prologue): Optimize for pe-coff targets.
4750 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4751 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4752 medium/large code-model.
4753 (legitimize_pic_address): Likewise.
4754 (legitimize_tls_address): Likewise.
4755 (ix86_expand_call): Likewise.
4756 (x86_output_mi_thunk): Likewise.
4757 (get_dllimport_decl): Add new beimport argument.
4758 (construct_plt_address): Don't assert for x64 pe-coff targets.
4759 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4760 targets.
4761 (SYMBOL_FLAG_STUBVAR): New macro.
4762 (SYMBOL_REF_STUBVAR_P): Likewise.
4763 * config/i386/winnt.c (stub_list): New structure.
4764 (stub_head): New local variable.
4765 (i386_pe_record_stub): New function.
4766 (i386_pe_file_end): Emit refptr-stubs.
4767
5d751b0c
JJ
47682013-04-02 Jakub Jelinek <jakub@redhat.com>
4769
09bb4c99
JJ
4770 PR rtl-optimization/56745
4771 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4772 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4773
a1d8947a
JJ
4774 PR c++/34949
4775 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4776 and both of them are MEM_REFs, just compare first argument for
4777 equality and attempt to deal even with differing offsets.
4778
5d751b0c
JJ
4779 PR c++/34949
4780 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4781 of gimple_clobber_p to be MEM_REF.
4782 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4783 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4784 after gimplification.
4785 * asan.c (get_mem_ref_of_assignment): Don't instrument
4786 gimple_clobber_p stmts.
4787 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4788 gimple_clobber_p stmt if they have MEM_REF lhs and
4789 are dead because of another gimple_clobber_p stmt.
4790 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4791 gimple_clobber_p stmts like debug stmts.
4792 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4793 that refer to unused VAR_DECLs or uninitialized values.
4794 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4795 gimple_clobber_p stmts if they refer to removed parameters.
4796 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4797 formatting.
4798
e594716a
UB
47992013-04-02 Uros Bizjak <ubizjak@gmail.com>
4800
4801 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4802 using SWI48 mode attribute.
4803
7a80735b
WM
48042013-04-02 Wei Mi <wmi@google.com>
4805
4806 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4807 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4808 *<rotate_insn><mode>3_mask in i386.md.
4809
f423a9e4
AI
48102013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4811
4812 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4813
90eb75f2
RB
48142013-04-02 Richard Biener <rguenther@suse.de>
4815
4816 PR tree-optimization/56778
4817 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4818 Runtime alias tests are not supported for gather loads.
4819 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4820 stmts referenced from SSA operands before updating SSA form.
4821
d8c69a92
IC
48222013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4823 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4824
4825 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
4826 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4827 * config/arm/cortex-a53.md: New file.
4828 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4829 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4830 * config/arm/arm.c (arm_issue_rate): Likewise.
4831 * config/arm/arm-tune.md: Regenerate
4832 * config/arm/arm-tables.opt: Regenerate.
4833 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 4834
239eb04c
ZC
48352013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4836
4837 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4838 non-static link.
4839
c902d3c8
SN
48402013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4841
d8c69a92
IC
4842 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4843 scalar load/store operations using B/H registers.
c902d3c8
SN
4844 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4845
051d0e2f
SN
48462013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4847
4848 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4849 scalar move.
4850 * config/aarch64/aarch64.c
4851 (aarch64_simd_scalar_immediate_valid_for_move): New.
4852 * config/aarch64/aarch64-protos.h
4853 (aarch64_simd_scalar_immediate_valid_for_move): New.
4854 * config/aarch64/constraints.md (Dh, Dq): New.
4855 * config/aarch64/iterators.md (hq): New.
4856
0ee1e3d9
EB
48572013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4858
4859 * reorg.c (get_branch_condition): Deal with conditional returns.
4860 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4861
136fb3f7
WM
48622013-04-01 Wei Mi <wmi@google.com>
4863
4864 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4865 Truncate operand 2 using %b asm operand modifier.
4866 (*<shift_insn><mode>3_mask): Ditto.
4867 (*<rotate_insn><mode>3_mask): Ditto.
4868
6388c738
SB
48692013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4870
4871 PR middle-end/56798
4872 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4873
f7a4d826
KK
48742013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4875
4876 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4877 of next_real_insn.
4878 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4879
4b943a49
LC
48802013-03-30 Lawrence Crowl <crowl@google.com>
4881
4882 * dse.c (clear_alias_sets): Remove never set.
4883 (disqualified_clear_alias_sets): Remove never set.
4884 (clear_alias_mode_pool): Remove never set.
4885 (dse_step0): Remove condition that is never true.
4886 (canon_address): Remove condition that is never true.
4887 (dse_step7): Remove condition that is never true.
4888 (rest_of_handle_dse): Remove condition that is never true.
4889 (rest_of_handle_dse::did_global): Remove never read from above.
4890 (dse_step2_spill): Remove never called from above.
4891 (dse_step5_spill): Remove never called from above.
4892
39718607
SB
48932013-03-30 Steven Bosscher <steven@gcc.gnu.org>
4894
da5c6bde
SB
4895 * doc/md.texi (Standard Names) <casesi>: Update documentation for
4896 JUMP_TABLE_DATA changes.
4897 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4898 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4899 (Insns) <jump_table_data>: New entry.
4900 * doc/tm.texi: Regenerate.
4901
39718607
SB
4902 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4903
4904 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4905 for table jump at the end of a basic block using tablejump_p.
4906 * targhooks.c (default_invalid_within_doloop): Likewise.
4907 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4908 target hook implementation that is identical to the default hook.
4909 (rs6000_invalid_within_doloop): Remove.
4910
4911 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4912 unused variable from tablejump_p call.
4913
4914 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4915 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4916 (INSN_DELETED_P): Likewise.
4917 (emit_jump_table_data): New prototype.
4918 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4919 after 4th as unused.
4920 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4921 * sched-vis.c (print_insn): Likewise.
4922 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4923 insn for compatibility with back ends that use next_active_insn to
4924 identify jump table data.
4925 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4926 (remove_insn): Likewise.
4927 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4928 to be emitted.
4929 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4930 (emit_jump_table_data): New function.
4931
4932 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4933 basic block, a JUMP_TABLE_DATA never is.
4934 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4935 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4936 off from code handling real insns.
4937 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4938 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4939 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4940 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4941 is not a NONDEBUG_INSN_P.
4942 * ira-costs.c (scan_one_insn): Likewise.
4943 * jump.c (mark_all_labels): Likewise.
4944 (mark_jump_label_1): Likewise.
4945 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4946 * lra.c (get_insn_freq): Expect all insns reaching here to be in
4947 a basic block.
4948 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4949 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4950 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4951 JUMP_TABLE_DATA_P insns.
4952 (calculate_elim_costs_all_insns): Likewise.
4953 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4954 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4955 (delete_output_reload): Code style fixups.
4956 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4957 insn flags on this non-insn.
4958 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4959 as scheduling barriers, for pre-change compatibility.
4960 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4961 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4962
4963 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4964 redundant JUMP_TABLE_DATA_P test.
4965 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4966 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4967 (frv_for_each_packet): Likewise.
4968 * config/i386/i386.c (min_insn_size): Likewise.
4969 (ix86_avoid_jump_mispredicts): Likewise.
4970 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4971 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4972 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4973 (mips16_insn_length): Robustify.
4974 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4975 (mips16_split_long_branches): Likewise.
4976 * config/pa/pa.c (pa_combine_instructions): Likewise.
4977 * config/rs6000/rs6000.c (get_next_active_insn): Treat
4978 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4979 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4980 as contributing to pool range lengths.
4981 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4982 Remove redundant JUMP_TABLE_DATA_P test.
4983 (sh_loop_align): Likewise.
4984 (split_branches): Likewise.
4985 (sh_insn_length_adjustment): Likewise.
4986 * config/spu/spu.c (get_branch_target): Likewise.
4987
0208f7da
JH
49882013-03-29 Jan Hubicka <jh@suse.cz>
4989
4990 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4991 gcov streaming; stream hot bb threshold to ltrans.
4992 * predict.c (get_hot_bb_threshold): Break out from ....
4993 (maybe_hot_count_p): ... here.
4994 (set_hot_bb_threshold): New function.
4995 * lto-section-in.c (lto_section_name): Add profile.
4996 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4997 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4998 and data-streamer.h
4999 (histogram_entry): New structure.
5000 (histogram, histogram_pool): New global vars.
5001 (histogram_hash): New structure.
5002 (histogram_hash::hash): New method.
5003 (histogram_hash::equal): Likewise.
5004 (account_time_size): New function.
5005 (cmp_counts): New function.
5006 (dump_histogram): New function.
5007 (ipa_profile_generate_summary): New function.
5008 (ipa_profile_write_summary): New function.
5009 (ipa_profile_read_summary): New function.
5010 (ipa_profile): Decide on threshold.
e594716a
UB
5011 (pass_ipa_profile): Add ipa_profile_write_summary and
5012 ipa_profile_read_summary.
0208f7da
JH
5013 * Makefile.in (ipa.o): Update dependencies.
5014 * lto-streamer.h (LTO_section_ipa_profile): New section.
5015
5a6ccc94
GDR
50162013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5017
5018 * tree.h (VAR_P): New.
5019
39385fa6
PC
50202013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5021
5022 PR lto/56777
5023 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5024
34f0d87a
SB
50252013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5026
5027 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5028 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5029 (control_flow_insn_p): Likewise.
5030 * cfgrtl.c (duplicate_insn_chain): Likewise.
5031 * final.c (get_attr_length_1): Likewise.
5032 (shorten_branches): Likewise.
5033 (final_scan_insn): Likewise.
5034 * function.c (instantiate_virtual_regs): Likewise.
5035 * gcse.c (insert_insn_end_basic_block): Likewise.
5036 * ira-costs.c (scan_one_insn): Likewise.
5037 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5038 * lra.c (check_rtl): Likewise.
5039 * reload1.c (elimination_costs_in_insn): Likewise.
5040 * reorg.c (follow_jumps): Likewise.
5041
5042 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5043 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5044 (thumb_far_jump_used_p): Likewise.
5045 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5046 (workaround_speculation): Likewise.
5047 (add_sched_insns_for_speculation): Likewise.
5048 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5049 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5050 (frv_for_each_packet): Likewise.
5051 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5052 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5053 (final_emit_insn_group_barriers): Likewise.
5054 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5055 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5056 (mips16_insn_length): Likewise.
5057 * config/pa/pa.c (pa_reorg): Likewise.
5058 (pa_combine_instructions): Likewise.
5059 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5060 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5061 (sh_reorg): Likewise.
5062 (split_branches): Likewise.
5063 * config/spu/spu.c (get_branch_target): Likewise.
5064
5065 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5066 JUMP_TABLE_DATA_P.
5067
4ac761b0
KY
50682013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5069
39385fa6 5070 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5071 Fix declaration name.
5072
58a49189
LC
50732013-03-28 Lawrence Crowl <crowl@google.com>
5074
5075 * graphds.h (struct graph.indicies): Remove unused.
5076 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5077 (SCOP_ORIGINAL_PDDRS): Remove unused.
5078 * sese.h (extern insert_loop_close_phis): Removed unused.
5079 (extern insert_guard_phis): Removed unused.
5080 (extern ivtype_map_elt_info): Removed unused.
5081 (new_ivtype_map_elt): Removed unused.
5082 * sese.c (ivtype_map_elt_info): Removed unused.
5083
7b3b6ae4
LC
50842013-03-28 Lawrence Crowl <crowl@google.com>
5085
5086 * Makefile.in: Add several missing include dependences.
5087 (DUMPFILE_H): New.
5088 (test-dump.o): New. This object is not added to any executable,
5089 but is present for ad-hoc testing.
5090 * bitmap.c
5091 (debug (const bitmap_head_def &)): New.
5092 (debug (const bitmap_head_def *)): New.
5093 * bitmap.h
5094 (extern debug (const bitmap_head_def &)): New.
5095 (extern debug (const bitmap_head_def *)): New.
5096 * cfg.c
5097 (debug (edge_def &)): New.
5098 (debug (edge_def *)): New.
5099 * cfghooks.c
5100 (debug (basic_block_def &)): New.
5101 (debug (basic_block_def *)): New.
5102 * dumpfile.h
5103 (dump_node (const_tree, int, FILE *)): Correct source file.
5104 * dwarf2out.c
5105 (debug (die_struct &)): New.
5106 (debug (die_struct *)): New.
5107 * dwarf2out.h
5108 (extern debug (die_struct &)): New.
5109 (extern debug (die_struct *)): New.
5110 * gimple-pretty-print.c
5111 (debug (gimple_statement_d &)): New.
5112 (debug (gimple_statement_d *)): New.
5113 * gimple-pretty-print.h
5114 (extern debug (gimple_statement_d &)): New.
5115 (extern debug (gimple_statement_d *)): New.
5116 * ira-build.c
5117 (debug (ira_allocno_copy &)): New.
5118 (debug (ira_allocno_copy *)): New.
5119 (debug (ira_allocno &)): New.
5120 (debug (ira_allocno *)): New.
5121 * ira-int.h
5122 (extern debug (ira_allocno_copy &)): New.
5123 (extern debug (ira_allocno_copy *)): New.
5124 (extern debug (ira_allocno &)): New.
5125 (extern debug (ira_allocno *)): New.
5126 * ira-lives.c
5127 (debug (live_range &)): New.
5128 (debug (live_range *)): New.
5129 * lra-int.h
5130 (debug (lra_live_range &)): New.
5131 (debug (lra_live_range *)): New.
5132 * lra-lives.c
5133 (debug (lra_live_range &)): New.
5134 (debug (lra_live_range *)): New.
5135 * omega.c
5136 (debug (omega_pb_d &)): New.
5137 (debug (omega_pb_d *)): New.
5138 * omega.h
5139 (extern debug (omega_pb_d &)): New.
5140 (extern debug (omega_pb_d *)): New.
5141 * print-rtl.c
5142 (debug (const rtx_def &)): New.
5143 (debug (const rtx_def *)): New.
5144 * print-tree.c
5145 (debug_tree (tree): Move within file.
5146 (debug_raw (const tree_node &)): New.
5147 (debug_raw (const tree_node *)): New.
5148 (dump_tree_via_hooks (const tree_node *, int)): New.
5149 (debug (const tree_node &)): New.
5150 (debug (const tree_node *)): New.
5151 (debug_verbose (const tree_node &)): New.
5152 (debug_verbose (const tree_node *)): New.
5153 (debug_head (const tree_node &)): New.
5154 (debug_head (const tree_node *)): New.
5155 (debug_body (const tree_node &)): New.
5156 (debug_body (const tree_node *)): New.
5157 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5158 (debug (vec<tree, va_gc> &)): New.
5159 (debug (vec<tree, va_gc> *)): New.
5160 * rtl.h
5161 (extern debug (const rtx_def &)): New.
5162 (extern debug (const rtx_def *)): New.
5163 * sbitmap.c
5164 (debug_raw (simple_bitmap_def &)): New.
5165 (debug_raw (simple_bitmap_def *)): New.
5166 (debug (simple_bitmap_def &)): New.
5167 (debug (simple_bitmap_def *)): New.
5168 * sbitmap.h
5169 (extern debug (simple_bitmap_def &)): New.
5170 (extern debug (simple_bitmap_def *)): New.
5171 (extern debug_raw (simple_bitmap_def &)): New.
5172 (extern debug_raw (simple_bitmap_def *)): New.
5173 * sel-sched-dump.c
5174 (debug (vinsn_def &)): New.
5175 (debug (vinsn_def *)): New.
5176 (debug_verbose (vinsn_def &)): New.
5177 (debug_verbose (vinsn_def *)): New.
5178 (debug (expr_def &)): New.
5179 (debug (expr_def *)): New.
5180 (debug_verbose (expr_def &)): New.
5181 (debug_verbose (expr_def *)): New.
5182 (debug (vec<rtx> &)): New.
5183 (debug (vec<rtx> *)): New.
5184 * sel-sched-dump.h
5185 (extern debug (vinsn_def &)): New.
5186 (extern debug (vinsn_def *)): New.
5187 (extern debug_verbose (vinsn_def &)): New.
5188 (extern debug_verbose (vinsn_def *)): New.
5189 (extern debug (expr_def &)): New.
5190 (extern debug (expr_def *)): New.
5191 (extern debug_verbose (expr_def &)): New.
5192 (extern debug_verbose (expr_def *)): New.
5193 (extern debug (vec<rtx> &)): New.
5194 (extern debug (vec<rtx> *)): New.
5195 * sel-sched-ir.h
5196 (_list_iter_cond_expr): Make inline instead of static.
5197 * sreal.c
5198 (debug (sreal &)): New.
5199 (debug (sreal *)): New.
5200 * sreal.h
5201 (extern debug (sreal &)): New.
5202 (extern debug (sreal *)): New.
5203 * tree.h
5204 (extern debug_raw (const tree_node &)): New.
5205 (extern debug_raw (const tree_node *)): New.
5206 (extern debug (const tree_node &)): New.
5207 (extern debug (const tree_node *)): New.
5208 (extern debug_verbose (const tree_node &)): New.
5209 (extern debug_verbose (const tree_node *)): New.
5210 (extern debug_head (const tree_node &)): New.
5211 (extern debug_head (const tree_node *)): New.
5212 (extern debug_body (const tree_node &)): New.
5213 (extern debug_body (const tree_node *)): New.
5214 (extern debug (vec<tree, va_gc> &)): New.
5215 (extern debug (vec<tree, va_gc> *)): New.
5216 * tree-cfg.c
5217 (debug (struct loop &)): New.
5218 (debug (struct loop *)): New.
5219 (debug_verbose (struct loop &)): New.
5220 (debug_verbose (struct loop *)): New.
5221 * tree-dump.c: Add header dependence.
5222 * tree-flow.h
5223 (extern debug (struct loop &)): New.
5224 (extern debug (struct loop *)): New.
5225 (extern debug_verbose (struct loop &)): New.
5226 (extern debug_verbose (struct loop *)): New.
5227 * tree-data-ref.c
5228 (debug (data_reference &)): New.
5229 (debug (data_reference *)): New.
5230 (debug (vec<data_reference_p> &)): New.
5231 (debug (vec<data_reference_p> *)): New.
5232 (debug (vec<ddr_p> &)): New.
5233 (debug (vec<ddr_p> *)): New.
5234 * tree-data-ref.h
5235 (extern debug (data_reference &)): New.
5236 (extern debug (data_reference *)): New.
5237 (extern debug (vec<data_reference_p> &)): New.
5238 (extern debug (vec<data_reference_p> *)): New.
5239 (extern debug (vec<ddr_p> &)): New.
5240 (extern debug (vec<ddr_p> *)): New.
5241 * tree-ssa-alias.c
5242 (debug (pt_solution &)): New.
5243 (debug (pt_solution *)): New.
5244 * tree-ssa-alias.h
5245 (extern debug (pt_solution &)): New.
5246 (extern debug (pt_solution *)): New.
5247 * tree-ssa-alias.c
5248 (debug (_var_map &)): New.
5249 (debug (_var_map *)): New.
5250 (debug (tree_live_info_d &)): New.
5251 (debug (tree_live_info_d *)): New.
5252 * tree-ssa-alias.h
5253 (extern debug (_var_map &)): New.
5254 (extern debug (_var_map *)): New.
5255 (extern debug (tree_live_info_d &)): New.
5256 (extern debug (tree_live_info_d *)): New.
5257
be77e1e5
JH
52582013-03-28 Jan Hubicka <jh@suse.cz>
5259
5260 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5261
777e6976
IB
52622013-03-28 Ian Bolton <ian.bolton@arm.com>
5263
5264 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5265 record only when desired or required.
5266
9cd347ae
UB
52672013-03-28 Uros Bizjak <ubizjak@gmail.com>
5268
5269 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5270 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5271
33159866 52722013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
5273
5274 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5275 (*andsi3_compare0_uxtw): New pattern.
5276 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5277 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5278
89ab31c1
JH
52792013-03-28 Jan Hubicka <jh@suse.cz>
5280
5281 * data-streamer-in.c (streamer_read_gcov_count): New function.
5282 * gimple-streamer-out.c: Include value-prof.h.
5283 (output_gimple_stmt): Output histogram.
5284 (output_bb): Use streamer_write_gcov_count.
5285 * value-prof.c: Include data-streamer.h
5286 (dump_histogram_value): Add HIST_TYPE_MAX.
5287 (stream_out_histogram_value): New function.
5288 (stream_in_histogram_value): New function.
5289 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5290 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5291 * data-streamer-out.c (streamer_write_gcov_count): New function.
5292 (streamer_write_gcov_count_stream): New function.
5293 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5294 (lto_output_node): Likewise.
5295 (input_node, input_edge): Likewise.
5296 * lto-streamer-out.c (output_cfg): Update streaming.
5297 * lto-streamer-in.c (input_cfg): Likewise.
5298 * data-streamer.h (streamer_write_gcov_count,
5299 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5300 * gimple-streamer-in.c: Include value-prof.h
5301 (input_gimple_stmt): Input histograms.
5302 (input_bb): Update profile streaming.
5303
e594716a 53042013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 5305
33159866 5306 * genmodes.c (emit_max_int): New function.
8697be17 5307 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
5308 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5309 Added doc.
8697be17 5310 * machmode.def: Fixed comment.
89ab31c1 5311
e594716a 53122013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
5313
5314 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
5315 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5316
74946978
MP
53172013-03-28 Marek Polacek <polacek@redhat.com>
5318 Richard Biener <rguenther@suse.de>
5319
5320 PR tree-optimization/56695
5321 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5322 build signed result of a vector comparison.
5323 * tree-cfg.c (verify_gimple_comparison): Check that a result
5324 of a vector comparison has signed type.
5325
a64b9c26
RB
53262013-03-28 Richard Biener <rguenther@suse.de>
5327
5328 PR tree-optimization/37021
5329 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5330 do not restrict gaps between groups.
5331 * tree-vect-stmts.c (vectorizable_load): Properly account for
5332 a gap between groups.
5333
a9dc2a2f
EB
53342013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5335
5336 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5337 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5338 is not enabled.
5339
53cb97f9
GP
53402013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5341
5342 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5343 * doc/extend.texi (Named Address Spaces): Ditto.
5344 (Variable Attributes): Ditto.
5345
b802ae5c
KT
53462013-03-27 Kai Tietz <ktietz@redhat.com>
5347
eddae10a
KT
5348 * config.build: Add support for cygwin x64 target.
5349 * config.gcc: Likewise.
5350 * config.host: Likewise.
5351 * configure.ac: Likewise
5352 * configure: Regenerated.
b802ae5c 5353
8269de54
KT
53542013-03-27 Kai Tietz <ktietz@redhat.com>
5355
5356 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5357 * config/i386/t-cygwin-w64: New file.
5358 * config/i386/cygwin-w64.h: New file.
5359 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5360 and add support for x64-cygwin target.
5361 (CPP_SPEC): Likewise.
5362 (CXX_WRAP_SPEC_LIST): Undefine before define.
5363 (LIBGCJ_SONAME): Use 15 as version.
5364
f49b33cb
RB
53652013-03-27 Richard Biener <rguenther@suse.de>
5366
5367 PR tree-optimization/56716
5368 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5369 dumping for ref nodes.
5370
b37a6ce5
MJ
53712013-03-27 Martin Jambor <mjambor@suse.cz>
5372
5373 PR tree-optimization/55334
5374 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5375 restricted pointers to arrays.
5376
9469b9b2
GDR
53772013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5378
5379 * Makefile.in (.SUFFIXES): Add .cc.
5380 (.c.o): Apply same recipe for implicit rule .cc.o.
5381
7d24f650
RB
53822013-03-27 Richard Biener <rguenther@suse.de>
5383
5384 PR tree-optimization/37021
5385 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5386 REALPART/IMAGPART_EXPRs around the supported refs.
5387 * tree-ssa-structalias.c (find_func_aliases): Assume that
5388 floating-point values are not used to transfer pointers.
5389
2f251a05
AI
53902013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5391
39385fa6
PC
5392 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5393 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5394 * doc/tm.texi: Regenerate.
5395 * targhooks.h (default_has_ifunc_p): New.
5396 * targhooks.c (default_has_ifunc_p): Ditto.
5397 * config/linux-protos.h: New file.
5398 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
5399 this hook for linux which disables support of indirect functions in
5400 android.
39385fa6
PC
5401 * config/linux-android.c: New file.
5402 * config/t-linux-android.c: Ditto.
5403 * config.gcc: Added new object file linux-android.o.
5404 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 5405 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 5406 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
5407 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5408 doesn't support indirect functions.
5409 * configure: Regenerate.
5410
78b4e425
BC
54112013-03-27 Bin Cheng <bin.cheng@arm.com>
5412
5413 PR target/56102
5414 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5415 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5416 mult-word mode.
5417
a5ba7b92
AK
54182013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5419
5420 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5421
be624986
TG
54222013-03-27 Terry Guo <terry.guo@arm.com>
5423
5424 * config/arm/arm-cores.def: Added core cortex-r7.
5425 * config/arm/arm-tune.md: Regenerated.
5426 * config/arm/arm-tables.opt: Regenerated.
5427 * doc/invoke.texi: Added entry for core cortex-r7.
5428
0a514f47
WL
54292013-03-27 Walter Lee <walt@tilera.com>
5430
5431 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5432 double-decrement of next_scratch_regno.
5433
9332b0d2
WL
54342013-03-27 Walter Lee <walt@tilera.com>
5435
801d9b2a 5436 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
5437 input operands.
5438 (insn_v1mulus): Ditto.
5439 (insn_v2muls): Ditto.
5440
f54ea5dd
WL
54412013-03-27 Walter Lee <walt@tilera.com>
5442
e594716a 5443 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
5444 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5445
bf60f4ca
WL
54462013-03-27 Walter Lee <walt@tilera.com>
5447
e594716a 5448 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
5449 (*sibcall_value): Ditto.
5450
e3b51eeb
WL
54512013-03-27 Walter Lee <walt@tilera.com>
5452
5453 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5454 (insn_mnz_v8qi): ... this ...
5455 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5456 vector equivalent.
5457 (insn_v<n>mnz): Replaced by ...
5458 (insn_v1mnz): ... this ...
5459 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5460 equivalent.
5461 (insn_mz_<mode>): Replaced by ...
5462 (insn_mz_v8qi): ... this ...
5463 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5464 vector equivalent.
5465 (insn_v<n>mz): Replaced by ...
5466 (insn_v1mz): ... this ...
5467 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5468 equivalent.
5469
4fc7b145
EB
54702013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5471
5472 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5473
6f33817e
RM
54742013-03-26 Roland McGrath <mcgrathr@google.com>
5475
5476 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5477 than fprintf with a non-constant, non-format string.
5478
93a4145b
UB
54792013-03-26 Uros Bizjak <ubizjak@gmail.com>
5480
5481 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5482 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5483 operand 0 predicate.
5484 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5485 attribute. Use general_x64nomem_operand as operand 1 predicate.
5486 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5487 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5488 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5489 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5490 (mov<mode>_insv_1): Remove expander. Merge insn with
5491 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5492 Use general_x64nomem_operand as operand 1 predicate.
5493 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5494 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5495 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5496 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5497 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5498 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5499 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5500 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5501 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5502 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5503 (general_x64nomem_operand): Ditto.
5504
c6a9ed5a 55052013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
5506
5507 * config/rtems.opt: Add -pthread option.
5508
31b0a960
RB
55092013-03-26 Richard Biener <rguenther@suse.de>
5510
93a4145b
UB
5511 * alias.c (find_base_term): Avoid redundant and not used recursion.
5512 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
5513 (true_dependence_1): Compute and pass base terms to base_alias_check.
5514 (write_dependence_p): Likewise.
5515 (may_alias_p): Likewise.
5516
79517551
SN
55172013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5518
5519 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5520 PC-relative load in SI modes and above only.
5521
a76213b9
XQ
55222013-03-26 Xinyu Qi <xyqi@marvell.com>
5523
5524 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
5525 * config/arm/iwmmxt.md (WCGR0): Update.
5526 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 5527
37ff9355
UB
55282013-03-26 Uros Bizjak <ubizjak@gmail.com>
5529
5530 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5531 Use x64 and nox64 isa attributes.
5532
30b0317c
RB
55332013-03-26 Richard Biener <rguenther@suse.de>
5534
5535 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5536 alignment computations and rely on get_object_alignment_1
5537 for the !TYPE_P case.
5538 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5539
cbcdb140
WL
55402013-03-26 Walter Lee <walt@tilera.com>
5541
5542 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5543 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5544
dd884525 55452013-03-25 Jeff Law <law@redhat.com>
be672e08 5546
33159866
UB
5547 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5548 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
5549 wrong version of prior patch.
5550
0051d3ec
WL
55512013-03-25 Walter Lee <walt@tilera.com>
5552
5553 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5554 TILEGX_INSN_SHUFFLEBYTES1.
5555 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5556 shufflebytes1.
5557 (tilegx_builtins): Ditto.
5558 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5559
065a3605
WL
55602013-03-25 Walter Lee <walt@tilera.com>
5561
5562 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
5563 (floatunssisf2): New pattern.
5564 (floatsidf2): New pattern.
5565 (floatunssidf2): New pattern.
065a3605 5566
5b2a3c82
WL
55672013-03-25 Walter Lee <walt@tilera.com>
5568
5569 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5570 tests for constraint J, K, N, P.
5571
192ea533
WL
55722013-03-25 Walter Lee <walt@tilera.com>
5573
5574 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5575 Use indirect/pcrel encoding.
5576 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5577 Ditto.
5578
855e0d0b
SE
55792013-03-25 Steve Ellcey <sellcey@mips.com>
5580
5581 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5582 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5583 * config/mips/mips.c (mips_option_override): Set IMADD default.
5584 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5585 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5586 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5587 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5588 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5589
39e45653
JL
55902013-03-25 Jeff Law <law@redhat.com>
5591
5592 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5593 slightly to avoid creating and folding useless trees. Simplify
5594 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5595
7482c470
UB
55962013-03-25 Uros Bizjak <ubizjak@gmail.com>
5597
5598 * config/i386/i386.md (*zero_extendsidi2): Merge with
5599 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5600 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5601 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5602 targets. Clarify comment.
5603
4a53743e
MJ
56042013-03-25 Martin Jambor <mjambor@suse.cz>
5605
5606 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5607 pass-through jump functions differently.
5608 (ipa_read_jump_function): Likewise. Also use setter functions to set
5609 up jump functions.
5610
162712de
MJ
56112013-03-25 Martin Jambor <mjambor@suse.cz>
5612
5613 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5614 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5615 process it.
5616 (ipa_get_indirect_edge_target): New function.
5617 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5618 ipa_get_indirect_edge_target. Update all callers.
5619 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5620 ipa_get_indirect_edge_target_1 instead of calling
5621 ipa_get_indirect_edge_target.
5622 (create_specialized_node): Pass aggvlas to
5623 ipcp_discover_new_direct_edges.
5624
a5a4c20a
KT
56252013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5626
5627 * config/arm/arm.md (f_sels, f_seld): New types.
5628 (*cmov<mode>): New pattern.
5629 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5630 predicate.
5631
f992b9fc
KT
56322013-03-25 Kai Tietz <ktietz@redhat.com>
5633
5634 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5635 POSIX-printf for mingw-hosted builds.
5636
c16fd676
RB
56372013-03-25 Richard Biener <rguenther@suse.de>
5638
5639 PR middle-end/56694
5640 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5641 must-not-throw stmt location.
5642
5ad29f12
KT
56432013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5644
5645 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5646 Emit load-acquire versions when acq is true.
5647 (arm_emit_store_exclusive): Add rel parameter.
5648 Emit store-release versions when rel is true.
5649 (arm_split_compare_and_swap): Use acquire-release instructions
5650 instead.
5651 of barriers when appropriate.
5652 (arm_split_atomic_op): Likewise.
5653 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5654 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5655 (VUNSPEC_SLX): Likewise.
5656 (VUNSPEC_LDA): Likewise.
5657 (VUNSPEC_STL): Likewise.
5658 * config/arm/sync.md (atomic_load<mode>): New pattern.
5659 (atomic_store<mode>): Likewise.
5660 (arm_load_acquire_exclusive<mode>): Likewise.
5661 (arm_load_acquire_exclusivesi): Likewise.
5662 (arm_load_acquire_exclusivedi): Likewise.
5663 (arm_store_release_exclusive<mode>): Likewise.
5664
03a7dddb
CM
56652013-03-25 Catherine Moore <clm@codesourcery.com>
5666
5667 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5668 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5669 * config/mip/predicates.md (lwsp_swsp_operand,
5670 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5671 sb16_operand, db4_operand, db7_operand, ib3_operand,
5672 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5673 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5674 andi16_operand): New predicates.
5675 * config/mips/mips.md (compression): New attribute.
5676 (enabled): New attribute.
5677 (length): Consider compression in computing length.
5678 (shift_compression): New code attribute.
5679 (*add<mode>3): New operands. Record compression.
5680 (sub<mode>3): Likewise.
5681 (one_cmpl<mode>2): Likewise.
5682 (*and<mode>3): Likewise.
5683 (*ior<mode>3): Likewise.
5684 (unnamed pattern for xor): Likewise.
5685 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5686 (*<optab><mode>3): Likewise.
5687 (*mov<mode>_internal: Likewise.
5688 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5689 (mips_unsigned_immediate_p): New.
5690 (umips_lwsp_swsp_address_p): New.
5691 (m16_based_address_p): New.
5692 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5693 (mips_unsigned_immediate_p): New prototype.
5694 (lwsp_swsp_address_p): New prototype.
5695 (m16_based_address_p): New prototype.
5696 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5697 (mips_signed_immediate_p): New function.
5698 (m16_based_address_p): New function.
5699 (lwsp_swsp_address_p): New function.
5700 (mips_print_operand_punctuation): Recognize short delay slot insns
5701 for microMIPS.add<mode>3"
5702
f35c297f 57032013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 5704
f35c297f
KT
5705 PR target/56720
5706 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5707 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5708
051b9446
RB
57092013-03-25 Richard Biener <rguenther@suse.de>
5710
5711 PR tree-optimization/56689
5712 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5713 any edge.
5714
374001cb
RB
57152013-03-25 Richard Biener <rguenther@suse.de>
5716
5717 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5718 of bitmap.
5719 (memory_references): Likewise.
5720 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5721 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5722 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5723 (gather_mem_refs_in_loops): Fold into ...
5724 (analyze_memory_references): ... this. Move initialization
5725 to tree_ssa_lim_initialize.
5726 (fill_always_executed_in): Rename to ...
5727 (fill_always_executed_in_1): ... this.
5728 (fill_always_executed_in): Move contains_call computation to
5729 this new function from ...
5730 (tree_ssa_lim_initialize): ... here.
5731 (tree_ssa_lim): Call fill_always_executed_in.
5732
57895947
EB
57332013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5734
5735 * postreload.c (reload_combine): Fix code detecting returns.
5736
1e1b18c1
EB
57372013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5738
5739 * function.c (emit_use_return_register_into_block): On cc0 targets,
5740 do not emit the sequence between cc0 setter and user.
5741
9216baf1
KT
57422013-03-25 Kai Tietz <ktietz@redhat.com>
5743
1e1b18c1
EB
5744 * config/i386/predicates.md (local_symbolic_operand): Interpret
5745 dll-imported symbols as none-local.
9216baf1 5746
76421b44
RB
57472013-03-25 Richard Biener <rguenther@suse.de>
5748
5749 * tree-ssa-loop-im.c (struct depend): Remove.
5750 (struct lim_aux_data): Make depends a vec of gimples.
5751 (free_lim_aux_data): Adjust.
5752 (add_dependency): Likewise.
5753 (set_level): Likewise.
5754
d154bfa2
RB
57552013-03-25 Richard Biener <rguenther@suse.de>
5756
5757 PR middle-end/56434
5758 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5759 the pointer returned by calls with ECF_MALLOC set.
5760
2cd9804e
UB
57612013-03-24 Uros Bizjak <ubizjak@gmail.com>
5762
acef5fe0
UB
5763 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5764
57652013-03-24 Uros Bizjak <ubizjak@gmail.com>
5766
5767 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
5768 using MMXMODE mode iterator.
5769 (*move<mode>_internal): Merge with *movv2sf_internal and
5770 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5771
225ccc68
SB
57722013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5773
85c0f02d
SB
5774 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5775 (record_last_mem_set_info): Likewise.
5776
225ccc68
SB
5777 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5778 of XNEWVEC followed by memset.
5779 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5780
b64925dc
SB
57812013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5782
5783 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5784 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5785 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5786 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5787 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5788 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5789 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5790 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5791 BARRIER_P instead of GET_CODE.
5792
b9aaf52e
EB
57932013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5794
5795 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5796 inaccuracy in the probing code.
5797
5798 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5799 (ctrapdi4): Likewise.
5800
66de4d7c
EB
58012013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5802
5803 * calls.c (expand_call): Add missing guard to code handling return
5804 of non-BLKmode structures in MSB.
5805 * function.c (expand_function_end): Likewise.
5806
4f25c8fb
EB
58072013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5808
5809 * combine.c (try_combine): Adjust comment. Do not add the set of
5810 insn #0 if the destination indirectly is set or dies in insn #2.
5811 Tidy up code to distribute a new note.
5812
23b7850d
UB
58132013-03-22 Uros Bizjak <ubizjak@gmail.com>
5814
5815 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5816 also for alternatives 16 and 17.
5817
bed852cf
UB
58182013-03-22 Uros Bizjak <ubizjak@gmail.com>
5819
5820 * config/i386/sse.md (*mov<mode>_internal): Merge with
5821 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5822 Emit insn template depending on type attribute. Use
5823 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5824 movd instead of movq mnemonic for interunit moves. Rewrite mode
5825 attribute calculation. Remove unit attribute calculation.
5826 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5827 Set prefix_data16 attribute for DImode ssemov types.
5828 Use Ym instead of y for SSE-MMX conversion alternatives.
5829 Reorder operand constraints.
5830
1e8a7937
SB
58312013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5832
5833 * df.h (df_insn_delete): Adjust prototype.
5834 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5835 and let it decide whether mark the basic block dirty.
5836 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5837 * df-scan.c (df_insn_info_delete): New helper function, split
5838 off from df_insn_delete.
5839 (df_scan_free_bb_info): Use it.
5840 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5841 Likewise.
5842 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5843 that the insn is actually an insn and it has a non-NULL basic block.
5844 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5845
e14d094c
RB
58462013-03-22 Richard Biener <rguenther@suse.de>
5847
5848 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5849 dep_ref members.
5850 (mem_ref_alloc): Do not allocate them.
5851 (refs_independent_p): Do not query or maintain a cache.
5852
e9cf7316
RB
58532013-03-22 Richard Biener <rguenther@suse.de>
5854
5855 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5856 (gather_mem_refs_in_loops): Do not compute it.
5857 (analyze_memory_references): Do not allocate it.
5858 (tree_ssa_lim_finalize): Do not free it.
5859 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5860
f046e81b
RB
58612013-03-22 Richard Biener <rguenther@suse.de>
5862
5863 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 5864
a05c0ddf
IB
58652013-03-22 Ian Bolton <ian.bolton@arm.com>
5866
5867 * config/aarch64/aarch64.c (aarch64_print_operand): New
5868 format specifier for printing a constant in hex.
5869 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5870 format specifier for printing second operand.
5871
c00217fc
RB
58722013-03-22 Richard Biener <rguenther@suse.de>
5873
5874 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5875 bitmaps.
5876 (gather_mem_refs_in_loops): Perform store accumulation here.
5877 (create_vop_ref_mapping_loop): Remove.
5878 (create_vop_ref_mapping): Likewise.
5879 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 5880 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
5881 (record_indep_loop): Remove.
5882 (record_dep_loop): New function.
5883 (ref_indep_loop_p_1): Adjust to only walk over references
5884 in the loop, not its subloops.
5885 (ref_indep_loop_p): Rename to ...
5886 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5887 maintaining a more fine-grained cache.
5888 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5889 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5890
15d19bf8
RB
58912013-03-22 Richard Biener <rguenther@suse.de>
5892
5893 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5894 (struct mem_ref): Make accesses_in_loop a vec of a vec of
5895 aggregate mem_ref_loc.
5896 (free_mem_ref_locs): Inline into ...
5897 (memref_free): ... this and adjust.
5898 (mem_ref_alloc): Adjust.
5899 (mem_ref_locs_alloc): Remove.
5900 (record_mem_ref_loc): Adjust.
5901 (get_all_locs_in_loop): Rewrite into ...
5902 (for_all_locs_in_loop): ... this iterator.
5903 (rewrite_mem_ref_loc): New functor.
5904 (rewrite_mem_refs): Use for_all_locs_in_loop.
5905 (sm_set_flag_if_changed): New functor.
5906 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5907 (ref_always_accessed): New functor.
5908 (ref_always_accessed_p): Use for_all_locs_in_loop.
5909
6f37411d
MG
59102013-03-21 Marc Glisse <marc.glisse@inria.fr>
5911
5912 * tree-pass.h (PROP_gimple_lvec): New.
5913 * passes.c (dump_properties): Handle PROP_gimple_lvec.
5914 (init_optimization_passes): Move pass_lower_vector.
5915 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5916 PROP_gimple_lvec.
5917 (pass_lower_vector): Provide PROP_gimple_lvec.
5918 (pass_lower_vector_ssa): Likewise.
5919 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5920
511ef689
MW
59212013-03-21 Mark Wielaard <mjw@redhat.com>
5922
5923 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5924
cc1df30b
UB
59252013-03-21 Uros Bizjak <ubizjak@gmail.com>
5926
5927 * config/i386/i386.md (*movdi_internal): Disparage slightly
5928 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
5929 conversion alternatives.
5930
c845cfe1
JJ
59312013-03-21 Jakub Jelinek <jakub@redhat.com>
5932
37e99116
JJ
5933 PR middle-end/48087
5934 * diagnostic.def (DK_WERROR): New kind.
5935 * diagnostic.h (werrorcount): Define.
5936 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5937 promoted to DK_ERROR, increment DK_WERROR counter instead of
5938 DK_ERROR counter.
5939 * toplev.c (toplev_main): Call print_ignored_options even if
5940 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
5941 even if just werrorcount is non-zero.
5942
c845cfe1
JJ
5943 PR debug/55608
5944 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5945 on failure.
5946 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5947 (string_cst_pool_decl): New function.
5948 (optimize_one_addr_into_implicit_ptr): New function.
5949 (resolve_addr_in_expr): Optimize DWARF location expression
5950 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5951 which doesn't live in memory, but has DW_AT_location or
5952 DW_AT_const_value, or refers to a string literal, into
5953 DW_OP_GNU_implicit_pointer.
5954 (optimize_location_into_implicit_ptr): New function.
5955 (resolve_addr): If removing DW_AT_location of a variable because
5956 it was DW_OP_addr of address of the variable, but the variable doesn't
5957 live in memory, try to emit const value attribute for the initializer.
5958
08e0cda6
MG
59592013-03-21 Marc Glisse <marc.glisse@inria.fr>
5960
5961 * tree.h (VECTOR_TYPE_P): New macro.
5962 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5963 TYPE_MODE): Use it.
5964 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5965 VEC_COND_EXPR cannot be lvalues.
5966 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5967
d08633b4
MG
59682013-03-21 Marc Glisse <marc.glisse@inria.fr>
5969
5970 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5971 Restrict the transformation to equal modes.
5972
e6647190
RB
59732013-03-21 Richard Biener <rguenther@suse.de>
5974
5975 PR tree-optimization/39326
5976 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5977 (MEM_ANALYZABLE): Adjust.
5978 (record_mem_ref_loc): Move bitmap ops ...
5979 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
5980 unanalyzable refs, do not record locations for it.
5981 (analyze_memory_references): Allocate ref zero as shared
5982 unanalyzable ref.
5983 (refs_independent_p): Do not test for unanalyzed mems here.
5984 (ref_indep_loop_p_1): Special-case disambiguation against
5985 the unanalyzed ref.
cc1df30b 5986 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 5987
65074f54
CL
59882013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
5989
5990 * config/arm/arm-protos.h (tune_params): Add
5991 prefer_neon_for_64bits field.
5992 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5993 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5994 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5995 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5996 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5997 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5998 (arm_option_override): Handle -mneon-for-64bits new option.
5999 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6000 (prefer_neon_for_64bits): Declare new variable.
6001 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6002 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6003 (arch_enabled): Handle new arch types. Remove support for onlya8
6004 and nota8.
6005 (one_cmpldi2): Use new arch names.
bc5faa5b 6006 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6007 * config/arm/arm.opt (mneon-for-64bits): Add option.
6008 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6009 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6010 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6011 of onlya8.
6012 * doc/invoke.texi (-mneon-for-64bits): Document.
6013
5a2d2a79
RB
60142013-03-21 Richard Biener <rguenther@suse.de>
6015
6016 PR tree-optimization/39326
6017 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6018 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6019 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6020
5abe1e05
RB
60212013-03-21 Richard Biener <rguenther@suse.de>
6022
6023 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6024 (vect_insert_into_interleaving_chain): Likewise.
6025 (vect_drs_dependent_in_basic_block): Inline ...
6026 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6027 split out from ...
6028 (vect_analyze_data_ref_dependence): ... here. Simplify.
6029 (vect_check_interleaving): Simplify.
6030 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6031 (vect_slp_analyze_data_ref_dependences): ... this new function.
6032 (dr_group_sort_cmp): New function.
6033 (vect_analyze_data_ref_accesses): Compute data-reference groups
6034 here instead of in vect_analyze_data_ref_dependence. Use
6035 a more efficient algorithm.
6036 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6037 vect_slp_analyze_data_ref_dependences. Call
6038 vect_analyze_data_ref_accesses earlier.
6039 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6040 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6041 (vect_slp_analyze_data_ref_dependences): New prototype.
6042
cad1735b
RB
60432013-03-21 Richard Biener <rguenther@suse.de>
6044
6045 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6046 ref is stored in the loop.
6047 (find_refs_for_sm): Walk only over all stores.
6048 (store_motion_loop): Allocate from lim_bitmap_obstack.
6049 (store_motion): Likewise.
6050
141310ef
RB
60512013-03-21 Richard Biener <rguenther@suse.de>
6052
6053 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6054 Update virtual SSA form.
6055
5022315a
RO
60562013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6057
6058 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6059 * configure: Regenerate.
6060 * config.in: Regenerate.
6061 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6062 if !HAVE_LD_EH_FRAME_CIEV3.
6063
50d4421c
RB
60642013-03-21 Richard Biener <rguenther@suse.de>
6065
6066 * tree-cfg.c (verify_expr_no_block): New function.
6067 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6068 nor DECL_VALUE_EXPR have locations with associated blocks.
6069 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6070 (clear_unused_block_pointer): Remove code dealing with
6071 blocks in DECL_DEBUG_EXPR locations.
6072
839b422f
RB
60732013-03-21 Richard Biener <rguenther@suse.de>
6074
6075 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6076 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6077 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6078 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6079 instead of DECL_DEBUG_EXPR_IS_FROM.
6080 * gimplify.c (gimplify_modify_expr): Likewise.
6081 * tree-cfg.c (verify_expr_location_1): Likewise.
6082 * tree-complex.c (create_one_component_var): Likewise.
6083 * tree-sra.c (create_access_replacement): Likewise.
6084 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6085 (clear_unused_block_pointer): Likewise.
6086 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6087 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6088 * var-tracking.c (var_debug_decl): Likewise.
6089 (track_expr_p): Likewise.
6090 * tree-inline.c (add_local_variables): Likewise. Set
6091 DECL_HAS_DEBUG_EXPR_P after copying it.
6092 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6093 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6094
fe04878d
UB
60952013-03-21 Uros Bizjak <ubizjak@gmail.com>
6096
6097 PR bootstrap/56656
6098 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6099 * configure: Regenerate.
6100 * config.in: Regenerate.
6101 * config/i386/i386.md (*movdf_internal): Use
6102 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6103 movd instead of movq mnemonic for interunit moves.
6104 (*movdi_internal): Ditto.
6105
bd059b26 61062013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
6107
6108 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6109 (abd<mode>_3): New pattern.
6110 (aba<mode>_3): New pattern.
6111 (fabd<mode>_3): New pattern.
6112
bd059b26 61132013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
6114
6115 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6116 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6117 occurrence of REGISTER_PREFIX as its empty string.
6118
4f1f78b9
JL
61192013-03-20 Jeff Law <law@redhat.com>
6120
6121 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6122 addititional equivalences for equality comparisons between an SSA_NAME
6123 and a constant where the SSA_NAME was set from a widening conversion.
6124
327a1118
WL
61252013-03-20 Walter Lee <walt@tilera.com>
6126
6127 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6128
813e0036
UB
61292013-03-20 Uros Bizjak <ubizjak@gmail.com>
6130
6131 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6132 depending on type attribute.
6133 (*movti_internal): Ditto.
6134 (*movtf_internal): Ditto.
6135 (*movxf_internal): Ditto.
6136 (*movdf_internal): Ditto.
6137 (*movsf_internal): Ditto.
6138
7cf34aae
UB
61392013-03-20 Uros Bizjak <ubizjak@gmail.com>
6140
6141 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6142 maybe_vex for sselog1 and ssemov types.
6143 (*movdi_internal): Reorder operand constraints.
6144 (*movsi_internal): Ditto. Set prefix attribute to
6145 maybe_vex for sselog1 and ssemov types.
6146 (*movtf_internal): Set prefix attribute to maybe_vex
6147 for sselog1 and ssemov types.
6148 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6149 DImode ssemov types. Reorder operand constraints.
6150 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6151 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6152 attribute for SImode ssemov types. Reorder operand constraints.
6153
19321415
MJ
61542013-03-20 Martin Jambor <mjambor@suse.cz>
6155
6156 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6157 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6158
c6d5ff83
MM
61592013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6160
6161 * config/rs6000/predicates.md (indexed_address, update_address_mem
6162 update_indexed_address_mem): New predicates.
6163 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6164 attribute for load/store instructions.
6165 * config/rs6000/dfp.md (movsd_store): Likewise.
6166 (movsd_load): Likewise.
6167 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6168 (unnamed HI->DI extend define_insn): Likewise.
6169 (unnamed SI->DI extend define_insn): Likewise.
6170 (unnamed QI->SI extend define_insn): Likewise.
6171 (unnamed QI->HI extend define_insn): Likewise.
6172 (unnamed HI->SI extend define_insn): Likewise.
6173 (unnamed HI->SI extend define_insn): Likewise.
6174 (extendsfdf2_fpr): Likewise.
6175 (movsi_internal1): Likewise.
6176 (movsi_internal1_single): Likewise.
6177 (movhi_internal): Likewise.
6178 (movqi_internal): Likewise.
6179 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6180 attribute for load/store instructions.
6181 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6182 instructions.
6183 (mov<mode>_softfloat): Likewise.
6184 (mov<mode>_hardfloat32): Likewise.
6185 (mov<mode>_hardfloat64): Likewise.
6186 (mov<mode>_softfloat64): Likewise.
6187 (movdi_internal32): Likewise.
6188 (movdi_internal64): Likewise.
6189 (probe_stack_<mode>): Likewise.
6190
61912013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6192
6193 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6194 floating point, and decimal floating point to reload iterator.
6195
6196 * config/rs6000/constraints.md (wl constraint): New constraints to
6197 return FLOAT_REGS if certain options are used to reduce the number
6198 of separate patterns that exist in the file.
6199 (wx constraint): Likewise.
6200 (wz constraint): Likewise.
6201
6202 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6203 -mdebug=reg, print wg, wl, wx, and wz constraints.
6204 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6205 Initialize the reload functions for 64-bit binary/decimal floating
6206 point types.
6207 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6208 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6209 create the buffer on the stack to overcome not having a 32-bit
6210 load and store.
6211 (rs6000_emit_move): Likewise.
6212 (rs6000_secondary_memory_needed_rtx): Likewise.
6213 (rs6000_alloc_sdmode_stack_slot): Likewise.
6214 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6215 via xxlxor, just like DFmode 0.0.
6216
6217 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6218 define as 1 if we are running on a power7 or newer.
6219 (enum r6000_reg_class_enum): Add new constraints.
6220
6221 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6222 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6223 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 6224 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
6225 (movsd splitter): Likewise.
6226 (movsd_hardfloat): Likewise.
6227 (movsd_softfloat): Likewise.
6228
6229 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6230 binary and decimal floating point moves.
6231 (fmove_ok): New attributes to combine binary and decimal floating
6232 point moves, and to combine power6x (mfpgpr) moves along normal
6233 floating moves.
6234 (real_value_to_target): Likewise.
6235 (f32_lr): Likewise.
6236 (f32_lm): Likewise.
6237 (f32_li): Likewise.
6238 (f32_sr): Likewise.
6239 (f32_sm): Likewise.
6240 (f32_si): Likewise.
6241 (movsf): Combine binary and decimal floating point moves. Combine
6242 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 6243 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
6244 (mov<mode> for SFmode/SDmode); Likewise.
6245 (SFmode/SDmode splitters): Likewise.
6246 (movsf_hardfloat): Likewise.
6247 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6248 (movsf_softfloat): Likewise.
6249 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6250
6251 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6252 wx and wz constraints.
6253
6254 * config/rs6000/constraints.md (wg constraint): New constraint to
6255 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6256
6257 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6258 constraint.
6259
6260 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6261 -mdebug=reg, print wg, wl, wx, and wz constraints.
6262 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6263 Initialize the reload functions for 64-bit binary/decimal floating
6264 point types.
6265 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6266 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6267 create the buffer on the stack to overcome not having a 32-bit
6268 load and store.
6269 (rs6000_emit_move): Likewise.
6270 (rs6000_secondary_memory_needed_rtx): Likewise.
6271 (rs6000_alloc_sdmode_stack_slot): Likewise.
6272 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6273 via xxlxor, just like DFmode 0.0.
6274
c6d5ff83
MM
6275 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6276 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6277 with other moves by using conditional constraits (wg). Use LFIWZX
6278 and STFIWX for loading SDmode on power7.
6279 (movdd splitters): Likewise.
6280 (movdd_hardfloat32): Likewise.
6281 (movdd_softfloat32): Likewise.
6282 (movdd_hardfloat64_mfpgpr): Likewise.
6283 (movdd_hardfloat64): Likewise.
6284 (movdd_softfloat64): Likewise.
6285
6286 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6287 64-bit binary and decimal floating point moves.
6288 (FMOVE64X): Likewise.
6289 (movdf): Combine 64-bit binary and decimal floating point moves.
6290 Combine power6x (mfpgpr) moves with other moves by using
6291 conditional constraits (wg).
6292 (mov<mode> for DFmode/DDmode): Likewise.
6293 (DFmode/DDmode splitters): Likewise.
6294 (movdf_hardfloat32): Likewise.
6295 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6296 (movdf_softfloat32): Likewise.
6297 (movdf_hardfloat64_mfpgpr): Likewise.
6298 (movdf_hardfloat64): Likewise.
6299 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6300 (movdf_softfloat64): Likewise.
6301 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6302 (reload_<mode>_load): Move to later in the file so they aren't in
6303 the middle of the floating point move insns.
6304 (reload_<mode>_store): Likewise.
6305
6306 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6307 constraint.
6308
6309 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6310 constraint if -mdebug=reg.
bd059b26
UB
6311 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6312 Enable using dd reload support if needed.
c6d5ff83
MM
6313
6314 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6315 binary and decimal floating point moves in rs6000.md.
6316 (movtd_internal): Likewise.
6317
6318 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6319 decimal floating point moves.
6320 (movtf): Likewise.
6321 (movtf_internal): Likewise.
6322 (mov<mode>_internal, TDmode/TFmode): Likewise.
6323 (movtf_softfloat): Likewise.
6324 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6325
6326 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6327 movdi_internal64, using wg constraint for move direct operations.
6328 (movdi_internal64): Likewise.
6329
6330 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6331 MODES_TIEABLE_P for selected modes. Print the numerical value of
6332 the various virtual registers. Use GPR/FPR first/last values,
6333 instead of hard coding the register numbers. Print which modes
6334 have reload functions registered.
bd059b26
UB
6335 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6336 settings before/after setting cpu, target and subtarget settings.
6337 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6338 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
6339 (rs6000_secondary_reload_fail): Likewise.
6340 (rs6000_secondary_reload_inner): Likewise.
6341
6342 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6343 macros for first/last GPR and FPR registers.
6344 (LAST_GPR_REGNO): Likewise.
6345 (FIRST_FPR_REGNO): Likewise.
6346 (LAST_FPR_REGNO): Likewise.
6347
6348 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6349 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6350 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6351 (vcond<mode><mode>): Likewise.
6352 (vcondu<mode><mode>): Likewise.
6353 (vector_gtu<mode>): Likewise.
6354 (vector_gte<mode>): Likewise.
6355 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 6356 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
6357 (ior<mode>3): Likewise.
6358 (and<mode>3): Likewise.
6359 (one_cmpl<mode>2): Likewise.
6360 (nor<mode>3): Likewise.
6361 (andc<mode>3): Likewise.
6362
6363 * config/rs6000/constraints.md (wt constraint): New constraint
6364 that returns VSX_REGS if TImode is allowed in VSX registers.
6365
6366 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6367 constant under VSX.
6368
6369 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6370 similar to TImode, but it is restricted to being in the GPRs.
6371
6372 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6373 TImode to occupy a single VSX register.
6374
6375 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6376 -mvsx-timode for power7/power8.
6377 (power7 cpu): Likewise.
6378 (power8 cpu): Likewise.
6379
6380 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6381 sure that TFmode/TDmode take up two registers if they are ever
6382 allowed in the upper VSX registers.
6383 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6384 registers.
6385 (rs6000_init_hard_regno_mode_ok): Likewise.
6386 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6387 constraint. Print if LRA is turned on.
6388 (rs6000_option_override_internal): Give an error if -mvsx-timode
6389 and VSX is not enabled.
6390 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6391 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6392 to reg+offset addressing. Use PTImode when checking offset
6393 addresses for validity.
6394 (reg_offset_addressing_ok_p): Likewise.
6395 (rs6000_legitimate_offset_address_p): Likewise.
6396 (rs6000_legitimize_address): Likewise.
6397 (rs6000_legitimize_reload_address): Likewise.
6398 (rs6000_legitimate_address_p): Likewise.
6399 (rs6000_eliminate_indexed_memrefs): Likewise.
6400 (rs6000_emit_move): Likewise.
6401 (rs6000_secondary_reload): Likewise.
6402 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6403 reloads to fpr registers to continue to use reg+offset addressing,
6404 but 64-bit reloads to altivec registers need reg+reg addressing.
6405 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6406 it. Treat LO_SUM like a PLUS operation.
6407 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 6408 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
6409 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6410 registers to share a register with a smaller sized type, since VSX
6411 puts scalars in the upper 64-bits.
6412 (print_operand): Add support for PTImode.
6413 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6414 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6415 registers, but don't have arithmetic support.
6416 (rs6000_memory_move_cost): Add test for VSX.
6417 (rs6000_opt_masks): Add -mvsx-timode.
6418
6419 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6420 for TImode.
6421 (VSs): Likewise.
6422 (VSr): Use wt constraint for TImode.
6423 (VSv): Drop TImode support.
6424 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6425 (vsx_movti_64bit): Likewise.
6426 (vsx_movti_32bit): Likewise.
6427 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6428 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6429 one '?' on the appropriate output constraint. Do not allow TImode
6430 logical operations on 32-bit systems.
6431 (vsx_ior<mode>3): Likewise.
6432 (vsx_xor<mode>3): Likewise.
6433 (vsx_one_cmpl<mode>2): Likewise.
6434 (vsx_nor<mode>3): Likewise.
6435 (vsx_andc<mode>3): Likewise.
6436 (vsx_concat_<mode>): Likewise.
6437 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6438
6439 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6440 OPTION_MASK_VSX_TIMODE.
6441 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6442 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6443
6444 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6445 (TI2 iterator): New iterator for TImode, PTImode.
6446 (wd mode attribute): Add values for vector types.
bd059b26
UB
6447 (movti_string): Replace TI move operations with operations for TImode
6448 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
6449 (mov<mode>_string, TImode/PTImode): Likewise.
6450 (movti_ppc64): Likewise.
6451 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6452 (TI mode splitters): Likewise.
6453
6454 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6455 constraint.
6456
1fc5eced
MG
64572013-03-20 Marc Glisse <marc.glisse@inria.fr>
6458
6459 PR tree-optimization/56355
6460 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6461 Also handle integers with undefined overflow.
6462
22c4c869
CM
64632013-03-20 Catherine Moore <clm@codesourcery.com>
6464 Maciej W. Rozycki <macro@codesourcery.com>
6465 Tom de Vries <tom@codesourcery.com>
6466 Nathan Sidwell <nathan@codesourcery.com>
6467 Iain Sandoe <iain@codesourcery.com>
6468 Nathan Froyd <froydnj@codesourcery.com>
6469 Chao-ying Fu <fu@mips.com>
6470
6471 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 6472 Document new function attributes.
22c4c869
CM
6473 * doc/invoke.texi (minterlink-compressed, mmicromips,
6474 m14k, m14ke, m14kec): Document new options.
6475 (minterlink-mips16): Update documentation.
6476 * doc/md.texi (ZC, ZD): Document new constraints.
6477 * configure.ac (gcc_cv_as_micromips): Check if linker
6478 supports the .set micromips directive.
6479 * configure: Regenerate.
6480 * config.in: Regenerate.
6481 * config/mips/mips-tables.opt: Regenerate.
6482 * config/mips/micromips.md: New file.
6483 * constraints.md (ZC, ZD): New constraints.
6484 * config/mips/predicates.md (movep_src_register): New predicate.
6485 (movep_src_operand): New predicate.
6486 (non_volatile_mem_operand): New predicate.
6487 * config/mips/mips.md (multimem): New type.
6488 (length): Differentiate between 17-bit and 18-bit branch offsets.
6489 (MOVEP1, MOVEP2): New mode iterator.
33159866 6490 (mov_<load>l): Use ZC constraint.
22c4c869
CM
6491 (mov_<load>r): Likewise.
6492 (mov_<store>l): Likewise.
6493 (mov_<store>r): Likewise.
6494 (*branch_equality<mode>_inverted): Add microMIPS support.
6495 (*branch_equality<mode>): Likewise.
6496 (*jump_absolute): Likewise.
6497 (indirect_jump_<mode>): Likewise.
6498 (tablejump_<mode>): Likewise.
6499 (<optab>_internal): Likewise.
6500 (sibcall_internal): Likewise.
6501 (sibcall_value_internal): Likewise.
6502 (prefetch): Use constraint ZD.
6503 * config/mips/mips.opt (minterlink-compressed): New option.
6504 (minterlink-mips16): Now an alias for minterlink-compressed.
6505 (mmicromips): New option.
6506 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6507 (compare_and_swap_12): Likewise.
6508 (sync_add<mode>): Likewise.
6509 (sync_<optab>_12): Likewise.
6510 (sync_old_<optab>_12): Likewise.
6511 (sync_new_<optab>_12): Likewise.
6512 (sync_nand_12): Likewise.
6513 (sync_old_nand_12): Likewise.
6514 (sync_new_nand_12): Likewise.
6515 (sync_sub<mode>): Likewise.
6516 (sync_old_add<mode>): Likewise.
6517 (sync_old_sub<mode>): Likewise.
6518 (sync_new_add<mode>): Likewise.
6519 (sync_new_sub<mode>): Likewise.
6520 (sync_<optab><mode>): Likewise.
6521 (sync_old_<optab><mode>): Likewise.
6522 (sync_new_<optab><mode>): Likewise.
6523 (sync_nand<mode>): Likewise.
6524 (sync_old_nand<mode>): Likewise.
6525 (sync_new_nand<mode>): Likewise.
6526 (sync_lock_test_and_set<mode>): Likewise.
6527 (test_and_set_12): Likewise.
6528 (atomic_compare_and_swap<mode>): Likewise.
6529 (atomic_exchange<mode>_llsc): Likewise.
6530 (atomic_fetch_add<mode>_llsc): Likewise.
6531 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6532 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6533 (umips_save_restore_pattern_p): Likewise.
6534 (umips_load_store_pair_p): Likewise.
6535 (umips_output_load_store_pair): Likewise.
6536 (umips_movep_target_p): Likewise.
6537 (umips_12bit_offset_address_p): Likewise.
6538 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6539 (mips_base_mips16): Rename this...
6540 (mips_base_compression_flags): ...to this. Update all uses.
6541 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6542 (mips_mips16_decl_p): Delete.
6543 (mips_nomips16_decl_p): Delete.
33159866 6544 (mips_get_compress_on_flags): New function.
22c4c869
CM
6545 (mips_get_compress_off_flags): New function.
6546 (mips_get_compress_mode): New function.
6547 (mips_get_compress_on_name): New function.
6548 (mips_get_compress_off_name): New function.
6549 (mips_insert_attributes): Support multiple compression types.
6550 (mips_merge_decl_attributes): Likewise.
6551 (umips_12bit_offset_address_p): New function.
6552 (mips_start_function_definition): Emit .set micromips directive.
6553 (mips_call_may_need_jalx_p): New function.
6554 (mips_function_ok_for_sibcall): Add microMIPS support.
6555 (mips_print_operand_punctuation): Support short delay slots and
6556 compact jumps.
6557 (umips_swm_mask, umips_swm_encoding): New.
6558 (umips_build_save_restore): New function.
6559 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6560 (was_mips16_p): Remove.
6561 (old_compression_mode): New.
6562 (mips_set_compression_mode): New function.
6563 (mips_set_current_function): Add microMIPS support.
6564 (mips_option_override): Likewise.
6565 (umips_save_restore_pattern_p): New function.
6566 (umips_output_save_restore): New function.
6567 (umips_load_store_pair_p_1): New function.
6568 (umips_load_store_pair_p): New function.
6569 (umips_output_load_store_pair_1): New function.
6570 (umips_output_load_store_pair): New function.
6571 (umips_movep_target_p) New function.
6572 (mips_prepare_pch_save): Add microMIPS support.
6573 * config/mips/mips.h (TARGET_COMPRESSION): New.
6574 (TARGET_CPU_CPP_BUILTINS): Update macro
6575 to use new compression flags and to support microMIPS.
6576 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6577 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6578 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6579 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6580 (ASM_SPEC): Support mmicromips and mno-micromips.
6581 (M16STORE_REG_P): New macro.
6582 (MIPS_CALL): Support TARGET_MICROMIPS.
6583 (MICROMIPS_J): New macro.
6584 (mips_base_mips16): Rename this...
6585 (mips_base_compression_flags): ...to this.
6586 (UMIPS_12BIT_OFFSET_P): New macro.
6587 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6588 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
65892013-03-20 Richard Biener <rguenther@suse.de>
6590
6591 PR tree-optimization/56661
6592 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6593 the result does not have to be distinct.
6594
54714c68
RB
65952013-03-20 Richard Biener <rguenther@suse.de>
6596
6597 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6598 remap_gimple_op_r.
6599
cca1130d
BS
66002013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6601 Steven Bosscher <steven@gcc.gnu.org>
6602
6603 PR rtl-optimization/56605
6604 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6605
2a930377
UB
66062013-03-20 Uros Bizjak <ubizjak@gmail.com>
6607
6608 PR bootstrap/56656
6609 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6610 that require movd instead of movq.
6611
d6d305fe
RB
66122013-03-20 Richard Biener <rguenther@suse.de>
6613
6614 * tree-ssa-structalias.c (struct variable_info): Add pointer
6615 to the first field of an aggregate with sub-vars. Make
6616 this and the pointer to the next subfield its ID.
6617 (vi_next): New function.
6618 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6619 storedanything_id, integer_id): Increment by one.
6620 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6621 get_call_clobber_vi): Adjust.
6622 (solution_set_expand): Simplify and speedup.
6623 (solution_set_add): Inline into ...
6624 (set_union_with_increment): ... this. Adjust accordingly.
6625 (do_sd_constraint): Likewise.
6626 (do_ds_constraint): Likewise.
6627 (do_complex_constraint): Simplify.
6628 (build_pred_graph): Adjust.
6629 (solve_graph): Likewise. Simplify and speedup.
6630 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6631 get_constraint_for_component_ref, get_constraint_for_1,
6632 first_vi_for_offset, first_or_preceding_vi_for_offset,
6633 create_function_info_for, create_variable_info_for_1,
6634 create_variable_info_for, intra_create_variable_infos): Adjust.
6635 (init_base_vars): Push NULL for ID zero.
6636 (compute_points_to_sets): Adjust.
6637
a271b42d
RB
66382013-03-20 Richard Biener <rguenther@suse.de>
6639
6640 * cfgloop.c (verify_loop_structure): Streamline and avoid
6641 ICEing on corrupt loop tree.
6642 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6643 loop tree.
6644
ebd65954
RB
66452013-03-20 Richard Biener <rguenther@suse.de>
6646
6647 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6648 check whether an SSA update is needed.
6649
4547b7ee
RS
66502013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6651
6652 * config/mips/constraints.md (T): Rename to...
6653 (Yf): ...this.
6654 (U): Rename to...
6655 (Yd): ...this.
6656 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6657 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6658
0b8cdc58
IB
66592013-03-19 Ian Bolton <ian.bolton@arm.com>
6660
6661 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6662 (*subsi3_carryin_uxtw): Likewise.
6663
5977a10d
IB
66642013-03-19 Ian Bolton <ian.bolton@arm.com>
6665
6666 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6667 (*rorsi3_insn_uxtw): Likewise.
6668
bd83ff2c
IB
66692013-03-19 Ian Bolton <ian.bolton@arm.com>
6670
6671 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6672 (*extrsi5_insn_uxtw): Likewise.
6673
ba65123c
RB
66742013-03-19 Richard Biener <rguenther@suse.de>
6675
6676 PR tree-optimization/56273
6677 * passes.c (init_optimization_passes): Move second VRP after DOM.
6678
2eac0476
UB
66792013-03-19 Uros Bizjak <ubizjak@gmail.com>
6680
6681 * config/i386/i386.md (*movti_internal): Merge from
6682 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6683 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6684 nox64 isa attributes.
6685
6e55eda7
RB
66862013-03-18 Richard Biener <rguenther@suse.de>
6687
6688 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6689 (unite): Likewise.
6690 (merge_node_constraints): Likewise.
6691 (build_succ_graph): Likewise.
6692 (valid_graph_edge): Inline into single caller.
6693 (unify_nodes): Likewise. Use bitmap_set_bit return value
6694 and cache varinfo.
6695 (scc_visit): Fix formatting and variable use.
6696 (do_sd_constraint): Use gcc_checking_assert.
6697 (do_ds_constraint): Likewise.
6698 (do_complex_constraint): Likewise.
6699 (condense_visit): Likewise. Cleanup.
6700 (dump_pred_graph): New function.
6701 (perform_var_substitution): Dump the pred-graph before
6702 variable substitution.
6703 (find_equivalent_node): Use gcc_checking_assert.
6704 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6705
4bdd44c4
RB
67062013-03-18 Richard Biener <rguenther@suse.de>
6707
6708 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6709 Remove cond_expr_stmt_list argument and do not gimplify the
6710 built expression.
6711 (vect_loop_versioning): Adjust.
6712 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6713 Cleanup to use less temporaries.
6714 (vect_create_data_ref_ptr): Cleanup.
6715
38c56a5b
JJ
67162013-03-18 Jakub Jelinek <jakub@redhat.com>
6717
6718 PR tree-optimization/56635
6719 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6720 require types_compatible_p types.
6721
20b2e6a0
NC
67222013-03-18 Nick Clifton <nickc@redhat.com>
6723
a6178a25
NC
6724 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6725 spurious backslash.
6726
20b2e6a0
NC
6727 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6728 Add missing line to comment describing function.
6729
92608d0e
RB
67302013-03-18 Richard Biener <rguenther@suse.de>
6731
6732 PR tree-optimization/56210
6733 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6734 Handle string / character search functions.
6735 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6736
31348d52
RB
67372013-03-18 Richard Biener <rguenther@suse.de>
6738
6739 PR middle-end/56483
6740 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6741 and implement properly.
6742 * gimple.h (gimple_cond_single_var_p): Remove.
6743
fcac74a1
RB
67442013-03-18 Richard Biener <rguenther@suse.de>
6745
6746 * tree-data-ref.h (find_data_references_in_loop): Declare.
6747 * tree-data-ref.c (get_references_in_stmt): Use a stack
6748 vector pre-allocated in the callers.
6749 (find_data_references_in_stmt): Adjust.
6750 (graphite_find_data_references_in_stmt): Likewise.
6751 (create_rdg_vertices): Likewise.
6752 (find_data_references_in_loop): Export.
6753 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6754 Compute dependences here...
6755 (vect_analyze_data_refs): ...not here. When we encounter
6756 a non-vectorizable data reference in basic-block vectorization
6757 truncate the data reference vector. Do not bother to
6758 fixup data-dependence information for gather loads.
6759 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6760 of data references, as reported.
6761
0d5a1b56
RB
67622013-03-18 Richard Biener <rguenther@suse.de>
6763
6764 PR tree-optimization/3713
6765 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6766 has_constants and expr.
6767 (stmt_has_constants): Properly valueize SSA names when deciding
6768 whether the stmt has constants.
6769
789c34e3
RB
67702013-03-18 Richard Biener <rguenther@suse.de>
6771
6772 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6773 whole function when there is nothing to do.
6774 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6775 * tree-vectorizer.c (vectorize_loops): Update virtual and
6776 loop-closed SSA once.
6777 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6778
076b4605
RB
67792013-03-18 Richard Biener <rguenther@suse.de>
6780
6781 PR middle-end/56113
6782 * domwalk.c (bb_postorder): New global static.
6783 (cmp_bb_postorder): New function.
6784 (walk_dominator_tree): Replace scheme imposing an order for
6785 visiting dominator sons by one sorting them at the time they
6786 are pushed on the stack.
6787
bdb01696
RB
67882013-03-18 Richard Biener <rguenther@suse.de>
6789
6790 PR tree-optimization/39326
6791 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6792 (struct mem_ref): Replace mem member with ao_ref typed member.
6793 (MEM_ANALYZABLE): Adjust.
6794 (memref_eq): Likewise.
6795 (mem_ref_alloc): Likewise.
6796 (gather_mem_refs_stmt): Likewise.
6797 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6798 (execute_sm_if_changed_flag_set): Adjust.
6799 (execute_sm): Likewise.
6800 (ref_always_accessed_p): Likewise.
6801 (refs_independent_p): Likewise.
6802 (can_sm_ref_p): Likewise.
6803
12d2dc5e
JJ
68042013-03-18 Jakub Jelinek <jakub@redhat.com>
6805
6806 PR c/56566
6807 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6808 return 1 even for !unsignedp.
6809
286fb677
UB
68102013-03-17 Uros Bizjak <ubizjak@gmail.com>
6811
6812 * config/i386/i386.md (isa): Add x64 and nox64.
6813 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6814 (*pushtf): Enable *roF alternative for x64 isa only.
6815 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6816 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6817 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6818 (*movtf_internal): Merge from *movtf_internal_rex64 and
6819 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6820 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6821 nox64 isa attributes.
6822 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6823 nox64 isa attributes.
6824 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6825
88b97037
UB
68262013-03-17 Uros Bizjak <ubizjak@gmail.com>
6827
6828 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6829
9f4f1735
JJ
68302013-03-17 Jakub Jelinek <jakub@redhat.com>
6831
6832 PR target/56640
6833 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6834 class names. Remove trailing comma after "ALL_REGS".
6835
48f4a6fa
JH
68362013-03-16 Jan Hubicka <jh@suse.cz>
6837
6838 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6839 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6840 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6841 of cgraph_get_create_node.
6842 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6843
98e81123
JM
68442013-03-16 Jason Merrill <jason@redhat.com>
6845
6846 PR debug/49090
6847 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6848 with DW_AT_default_value.
6849
8a298c04
JJ
68502013-03-16 Jakub Jelinek <jakub@redhat.com>
6851
6852 * BASE-VER: Set to 4.9.0.
6853
4323afa0
AK
68542013-03-14 Andi Kleen <ak@linux.intel.com>
6855
6856 PR target/56619
6857 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6858 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6859 Document _x* TSX intrinsics.
6860
b3c0d469
JJ
68612013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6862 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
6863
6864 * configure.ac: Add MicroBlaze TLS support detection.
6865 * configure: Regenerate.
88b97037
UB
6866 * config/microblaze/microblaze-protos.h
6867 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6868 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6869 * config/microblaze/microblaze.c (microblaze_address_type): Add
6870 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
6871 (microblaze_address_info): Add tls_reloc.
6872 (TARGET_HAVE_TLS): Define.
6873 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6874 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
6875 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6876 load_tls_operand, microblaze_call_tls_get_addr,
6877 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
6878 (microblaze_classify_unspec): Handle UNSPEC_TLS.
6879 (get_base_reg): Use microblaze_tls_symbol_p.
6880 (microblaze_classify_address): Handle TLS.
88b97037
UB
6881 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6882 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
6883 (microblaze_legitimize_address): Handle TLS.
6884 (microblaze_address_insns): Handle ADDRESS_TLS.
6885 (pic_address_needs_scratch): Handle TLS.
6886 (print_operand_address): Handle TLS.
6887 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6888 (microblaze_expand_move): Handle TLS.
88b97037
UB
6889 (microblaze_legitimate_constant_p): Check
6890 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
6891 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6892 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6893 (PIC_OFFSET_TABLE_REGNUM): Set.
6894 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6895 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6896 (addsi3, movsi_internal2, movdf_internal): Update constraints
6897 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
6898 (move_operand): Redefine as move_src_operand,
6899 check microblaze_tls_referenced_p.
8cc9a5a5 6900
d803a491
IB
69012013-03-14 Ian Bolton <ian.bolton@arm.com>
6902
6903 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6904 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6905
a8504f22
IB
69062013-03-14 Ian Bolton <ian.bolton@arm.com>
6907
6908 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6909 CC mode for AND.
6910
df2dfaea
JJ
69112013-03-14 Jakub Jelinek <jakub@redhat.com>
6912
fbd28bc3
JJ
6913 PR tree-optimization/53265
6914 * common.opt (Waggressive-loop-optimizations): New option.
6915 * tree-ssa-loop-niter.c: Include tree-pass.h.
6916 (do_warn_aggressive_loop_optimizations): New function.
6917 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
6918 if number_of_latch_executions returned constant.
6919 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6920 early. If number_of_latch_executions returned constant, set
6921 nb_iterations_upper_bound back to it.
6922 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6923 field.
6924 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6925 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6926
df2dfaea
JJ
6927 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6928 (MULTILIB_OSDIRNAMES): Set.
6929 * genmultilib: If defaultosdirname doesn't start with :: , set
6930 defaultosdirname2 instead, clear it and emit two . multilib_raw
6931 entries instead of just one.
6932
ee0d2b68
KK
69332013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
6934
6935 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6936 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6937 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6938 (SUBTARGET_OVERRIDE_OPTIONS): New.
6939
decc676e
OE
69402013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
6941
6942 PR target/49880
6943 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6944 (musermode): Convert to Var(TARGET_USERMODE).
6945 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6946 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6947 * config/sh/sh.c (sh_option_override): Use
6948 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6949 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6950 condition.
6951 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6952 TARGET_SH4.
6953 (udivsi3_i4_single, divsi3_i4_single): Use
6954 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6955
f4b719c7
DK
69562013-03-13 Dave Korn <dave.korn.cygwin@....>
6957
6958 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6959 default setting.
6960
c40eced0
RB
69612013-03-13 Richard Biener <rguenther@suse.de>
6962
6963 PR tree-optimization/56608
6964 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6965 calls when vectorizing basic-blocks.
6966
1bfa5973
JJ
69672013-03-13 Jakub Jelinek <jakub@redhat.com>
6968
6969 PR plugins/45078
6970 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6971 tm_file.
6972
6fcf5434
JJ
69732013-03-12 Jakub Jelinek <jakub@redhat.com>
6974
6975 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6976
4f38fa8c
JH
69772013-03-11 Jan Hubicka <jh@suse.cz>
6978
6979 PR lto/56557
6980 * lto-streamer-out.c (output_symbol_p): Skip references from
6981 constructors of external variables.
6982
c5c5ba89
JH
69832013-03-11 Jan Hubicka <jh@suse.cz>
6984
6985 PR middle-end/56571
6986 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6987 from pseudos.
6988 * emit-rtl.c (verify_rtx_sharing): Likewise.
6989 (copy_insn_1): Likewise.
6990 * rtl.c (copy_rtx): Likewise.
6991
c2a939b1
GJL
69922013-03-11 Georg-Johann Lay <avr@gjlay.de>
6993
6994 PR target/56591
6995 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6996 output_operand_lossage message.
88b97037 6997
3c3279fb
RE
69982013-03-11 Richard Earnshaw <rearnsha@arm.com>
6999
7000 PR target/56470
7001 * arm.c (shift_op): Validate RTL pattern on the fly.
7002 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7003 the RTL.
7004
aef5ef9d
JDA
70052013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7006
7007 PR target/56347
7008 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7009 new call patterns that clobber %fr12.
7010 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7011 split and postreload patterns.
7012 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7013 registers %fr12 and %fr12R as call used.
7014
456610d3
SB
70152013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7016
7017 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7018 (canon_address, record_store, replace_read, check_mem_read_rtx,
7019 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7020 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7021 rest_of_handle_dse): Likewise.
7022
4b1baac8
RS
70232013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7024
7025 PR middle-end/56524
7026 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7027 Add base_optabs.
7028 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7029 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7030 (save_optabs_if_changed): Replace with...
7031 (init_tree_optimization_optabs): ...this.
7032 * optabs.c (save_optabs_if_changed): Rename to...
7033 (init_tree_optimization_optabs): ...this. Take the optimization node
7034 as argument. Do nothing if the base optabs are already correct.
7035 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7036 to recompute optabs.
7037 * function.h (function): Remove optabs field.
7038 * function.c (invoke_set_current_function_hook): Call
7039 init_tree_optimization_optabs. Use the result to initialize
7040 this_fn_optabs.
7041
b7a78683
AH
70422013-02-27 Aldy Hernandez <aldyh@redhat.com>
7043
7044 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7045 if GTMA_HAS_NO_INSTRUMENTATION.
7046 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7047 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7048 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7049 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7050 GTMA_HAS_NO_INSTRUMENTATION.
7051
6384c29b
JJ
70522013-03-08 Jakub Jelinek <jakub@redhat.com>
7053
7054 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7055 libasan_preinit.o.
7056
ecd4f20a
MP
70572013-03-08 Marek Polacek <polacek@redhat.com>
7058 Jakub Jelinek <jakub@redhat.com>
7059
7060 PR tree-optimization/56478
7061 * predict.c (is_comparison_with_loop_invariant_p): Change the
7062 type of loop_step to tree.
7063 (predict_loops): Adjust.
7064 (predict_iv_comparison): Perform the computations on double_ints.
7065
64366d35
RB
70662013-03-08 Richard Biener <rguenther@suse.de>
7067
7068 PR tree-optimization/56570
7069 * tree-cfg.c (verify_expr_location_1): Verify locations for
7070 DECL_DEBUG_EXPR.
7071 * tree-sra.c (create_access_replacement): Strip locations
7072 from DECL_DEBUG_EXPRs.
7073
a9d5a059
RB
70742013-03-08 Richard Biener <rguenther@suse.de>
7075
7076 * tree-inline.c (expand_call_inline): Do not associate
7077 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7078 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7079
b7aa4e9a
RB
70802013-03-08 Richard Biener <rguenther@suse.de>
7081
7082 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7083 or block changes with -Og. Fix for location / block encoding
7084 changes and PHI arguments with locations.
7085
c4c2f9fa
SB
70862013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7087
7088 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7089 for all counters.
7090 (struct output_info): Likewise.
7091 (register_overhead): Remove bad gcc_assert.
7092 (bitmap_find_bit): If there is only a single bitmap element, do not
7093 count a miss as a search.
7094 (print_statistics): Update for counter type changes.
7095 (dump_bitmap_statistics): Likewise. Print headers such that they
7096 are properly lined up with the printed counters.
7097
5bf6606a
JJ
70982013-03-07 Jakub Jelinek <jakub@redhat.com>
7099
7100 PR tree-optimization/56559
7101 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7102 check that it has only a single use.
7103
2c653d46
RB
71042013-03-07 Richard Biener <rguenther@suse.de>
7105
7106 * doc/invoke.texi (fwhole-program): Discourage use in combination
7107 with -flto.
7108
a72d8780
JJ
71092013-03-06 Jakub Jelinek <jakub@redhat.com>
7110
01a454df
JJ
7111 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7112
c1781047
JJ
7113 PR tree-optimization/56539
7114 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7115 instead of GSI_CONTINUE_LINKING as last argument to
7116 force_gimple_operand_gsi. Adjust function comment.
7117
9772c47a
JJ
7118 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7119 aarch64-cores.def.
7120
a72d8780
JJ
7121 PR middle-end/56548
7122 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7123 promoted mode, convert the result back to the original mode.
7124
fa5556de
RB
71252013-03-06 Richard Biener <rguenther@suse.de>
7126
7127 PR middle-end/56294
7128 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7129 (insert_updated_phi_nodes_compare_uids): New function.
7130 (update_ssa): Sort symbols_to_rename after UID before
7131 traversing it to insert PHI nodes.
7132
010403d1
RB
71332013-03-06 Richard Biener <rguenther@suse.de>
7134
7135 PR middle-end/50494
7136 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7137 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7138
7139 Revert
7140 2013-02-13 Richard Biener <rguenther@suse.de>
7141
7142 PR lto/50494
7143 * varasm.c (output_constant_def_1): Get the decl representing
7144 the constant as argument.
7145 (output_constant_def): Wrap output_constant_def_1.
7146 (make_decl_rtl): Use output_constant_def_1 with the decl
7147 representing the constant.
7148 (build_constant_desc): Optionally re-use a decl already
7149 representing the constant.
7150 (tree_output_constant_def): Adjust.
7151
3c27ce4c
JY
71522013-03-06 Joey Ye <joey.ye@arm.com>
7153
7154 PR lto/50293
7155 * gcc.c (convert_white_space): New function.
7156 (main): Handles white space in function name.
7157
8f6d1c86
OE
71582013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7159
7160 PR target/56529
7161 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7162 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7163 to SH_DIV_CALL_TABLE for TARGET_SH2.
7164 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7165 list.
7166 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7167 call-table options.
7168
798a209f
SA
71692013-03-05 Sterling Augustine <saugustine@google.com>
7170 Cary Coutant <ccoutant@google.com>
7171
7172 PR debug/55364
7173 * dwarf2out.c (resolve_addr): Don't call
7174 remove_loc_list_addr_table_entries a second time for the same
7175 expression.
7176
6cfa417f 71772013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 7178
6cfa417f
JJ
7179 PR debug/56510
7180 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7181 (avoid_complex_debug_insns): New function.
7182 (expand_debug_locations): Call it.
7183
7184 PR rtl-optimization/56484
7185 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7186 lifetimes of hard registers on small register class machines.
7187
71882013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7189
7190 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 7191 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 7192 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
7193 fast_interrupt.
7194 (microblaze_fast_interrupt_function_p): New function.
7195 (microblaze_is_interrupt_handler): Rename to
7196 microblaze_is_interrupt_variant and add fast_interrupt check.
7197 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7198 (save_restore_insns): Likewise.
7199 (compute_frame_size): Likewise.
7200 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7201 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
7202 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7203 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
7204 microblaze_is_interrupt_variant.
7205
731aefac
KT
72062013-03-05 Kai Tietz <ktietz@redhat.com>
7207
7208 * sdbout.c (sdbout_one_type): Switch to current function's section
7209 supporting cold/hot.
7210
a72d8780 72112013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
7212
7213 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7214 -mxl-reorder.
7215
334e71e8
JJ
72162013-03-05 Jakub Jelinek <jakub@redhat.com>
7217
0b50e654
JJ
7218 PR middle-end/56461
7219 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7220 if VALGRIND_GET_VBITS is defined, temporarily make object
7221 memory all defined, and restore previous valgrind addressability
7222 and definability afterwards. Free this_object at the end.
7223
4ccf8f43
JJ
7224 PR middle-end/56461
7225 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7226 right before calling lra_create_live_ranges, also call it
7227 when clearing live_p. Only call lra_clear_live_ranges
7228 at the end if live_p.
7229
334e71e8
JJ
7230 PR middle-end/56461
7231 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7232
9ca966ca
RB
72332013-03-05 Richard Biener <rguenther@suse.de>
7234
7235 PR tree-optimization/56521
7236 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7237 value-id.
7238
d273b176
SB
72392013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7240
7241 PR c++/55135
7242 * except.h (remove_unreachable_eh_regions): New prototype.
7243 * except.c (remove_eh_handler_splicer): New function, split out
7244 of remove_eh_handler.
7245 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7246 warning about running it on many EH regions one at a time.
7247 (remove_unreachable_eh_regions_worker): New function, walk the
7248 EH tree in depth-first order and remove non-marked regions.
7249 (remove_unreachable_eh_regions): New function.
7250 * tree-eh.c (mark_reachable_handlers): New function, split out
7251 from remove_unreachable_handlers.
7252 (remove_unreachable_handlers): Use mark_reachable_handlers and
7253 remove_unreachable_eh_regions.
7254 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7255 and remove_unreachable_eh_regions.
7256
5e7f1aef
RB
72572013-03-05 Richard Biener <rguenther@suse.de>
7258
7259 PR middle-end/56525
7260 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7261 not freeing them until the end.
7262
f276b762
AK
72632013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7264
7265 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7266
12a43ab8
RB
72672013-03-05 Richard Biener <rguenther@suse.de>
7268
7269 PR tree-optimization/56270
7270 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7271 of loads after scheduling an SLP instance.
7272
93675444
JJ
72732013-03-05 Jakub Jelinek <jakub@redhat.com>
7274
db4138e3
JJ
7275 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7276 tic6x.exp.
7277 (check_gcc_parallelize): Run guality.exp as a separate job from
7278 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7279 struct-layout-1.exp with stackalign.exp.
7280
dd3d1ec0
JJ
7281 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7282
b8d381a3
JJ
7283 PR middle-end/56461
7284 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7285 load_index sbitmap even if some bit in it isn't set.
7286
b4f9786b
JJ
7287 PR middle-end/56461
7288 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7289 (discover_iteration_bound_by_body_walk): Change queues to
7290 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7291 spelling in comment. Call safe_push on queues[bound_index] directly.
7292 Release queues[queue_index] in every iteration unconditionally.
7293 Release bounds vector.
7294
93675444
JJ
7295 PR middle-end/56461
7296 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7297 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7298 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7299 inner_phis vector.
7300
3e492e9c
RB
73012013-03-05 Richard Biener <rguenther@suse.de>
7302
7303 PR lto/56515
7304 * tree-inline.c (remap_blocks_to_null): New function.
7305 (expand_call_inline): When expanding a call stmt without
7306 an associated block inline remap all callee blocks to NULL.
7307
a5d1569a
JJ
73082013-03-05 Jakub Jelinek <jakub@redhat.com>
7309
86efb5cd
JJ
7310 PR rtl-optimization/56494
7311 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7312 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7313 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7314
85f5dbea
JJ
7315 PR middle-end/56461
7316 * sel-sched-ir.c (free_sched_pools): Release
7317 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7318 if succs_info_pool.max_top isn't -1.
7319
a5d1569a
JJ
7320 PR bootstrap/56509
7321 * opts.c (opts_obstack, opts_concat): Moved to...
7322 * opts-common.c (opts_obstack, opts_concat): ... here.
7323
4432aa6c
JJ
73242013-03-04 Jakub Jelinek <jakub@redhat.com>
7325
7326 PR middle-end/56461
7327 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7328
f3a1fb91
MJ
73292013-03-04 Martin Jambor <mjambor@suse.cz>
7330
7331 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7332 all appropriate places.
7333
22110e6c
EB
73342013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7335
7336 PR tree-optimization/56424
7337 * ipa-split.c (split_function): Do not set the RSO flag if result is
7338 not by reference and its type is a register type.
7339
a72d8780 73402013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 7341
88b97037 7342 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 7343 (microblaze_legitimate_pic_operand): Likewise
88b97037 7344 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
7345 new function microblaze_legitimate_pic_operand
7346 * config/microblaze/microblaze-protos.h
7347 (microblaze_legitimate_pic_operand): Declare.
7348
a72d8780 73492013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 7350
a72d8780 7351 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 7352 New predicate for supported rtx code types.
a72d8780 7353 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
7354 call_insn_simple_operand predicate.
7355
541d9ac8
JJ
73562013-03-04 Jakub Jelinek <jakub@redhat.com>
7357
5eb010bc
JJ
7358 PR middle-end/56461
7359 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7360 partitions.ordered_remove.
7361
30862efc
JJ
7362 PR middle-end/56461
7363 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7364 vec_oprnds0.create (1) for modifier == NONE.
7365
8930f723
JJ
7366 PR middle-end/56461
7367 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7368 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7369 vec_oprnds1 right before pushing anything to it for
7370 scalar_shift_arg.
7371
541d9ac8
JJ
7372 PR middle-end/56461
7373 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7374 set nbbs to 0 instead of having separate code path.
7375 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7376 instead of false as last argument if returning NULL.
7377
7aa7f2e3
SL
73782013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7379
7380 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7381 the attribute is now called "target" instead of "option".
7382 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7383 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7384 attribute/pragma name for TARGET_OPTION_VALID_P and
7385 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7386 * doc/tm.texi: Regenerated.
7387
8930f723 73882013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 7389
8930f723 7390 * config/microblaze/microblaze.c:
cb8a1637 7391 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
7392 * config/microblaze/microblaze.h: Add -mxl-reorder to
7393 DRIVER_SELF_SPECS.
7394 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7395 instructions emitted if TARGET_REORDER.
88b97037
UB
7396 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7397 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 7398 separately.
cb8a1637 7399
4dc1d68c
XDL
74002013-03-01 Xinliang David Li <davidxl@google.com>
7401
7402 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7403 walk length.
7404
689eaba3
JJ
74052013-03-01 Jakub Jelinek <jakub@redhat.com>
7406
9d676bf6
JJ
7407 PR middle-end/56461
7408 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7409 vector even when returning true. Fix up function comment formatting.
7410
caff7edf
JJ
7411 PR middle-end/56461
7412 * ira-build.c (ira_loop_nodes_count): New variable.
7413 (create_loop_tree_nodes): Initialize it.
7414 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7415
b6b9227d
JJ
7416 PR middle-end/56461
7417 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7418 method on dr_chain and result_chain.
7419 * tree-vect-stmts.c (vectorizable_store): Only call
7420 result_chain.create if j == 0.
7421
689eaba3
JJ
7422 PR middle-end/56461
7423 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7424 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7425 before overwriting it.
7426
40bf31ed
TB
74272013-03-01 Tobias Burnus <burnus@net-b.de>
7428
7429 * doc/extended.texi (C Extensions): Change order in @menu
7430 to match @node.
7431 (Other MIPS Built-in Functions): Move last MIPS entry before
7432 "picoChip Built-in Functions".
7433 (SH Built-in Functions): Move after RX Built-in Functions.
7434 * doc/gcc.texi (Introduction): Change order in @menu
7435 to match @node.
7436 * doc/md.texi (Constraints): Ditto.
7437 * gty.texi (Type Information): Ditto.
7438 (User-provided marking routines for template types): Make
7439 subsection.
7440 * doc/invoke.texi (AArch64 Options): Move before
7441 "Adapteva Epiphany Options".
7442
e664c61c
KS
74432013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7444 Jakub Jelinek <jakub@redhat.com>
7445
7446 PR sanitizer/56454
7447 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7448 no_address_safety_analysis attribute.
7449 * doc/extend.texi (no_address_safety_attribute): Rename to
7450 no_sanitize_address attribute, mention no_address_safety_analysis
7451 attribute as deprecated alias.
7452
37b5ec8f
JJ
74532013-02-28 Jakub Jelinek <jakub@redhat.com>
7454
7455 PR middle-end/56461
7456 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7457 type to vec<vec<tree> > *.
7458 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7459 to be vec<tree> instead of vec<tree> *, set vec_defs
7460 to vNULL and call vec_defs.create (number_of_vects), adjust other
7461 uses of vec_defs.
7462 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7463 vectorizable_condition): Adjust vect_get_slp_defs callers.
7464
ba96cdfb
JG
74652013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7466
7467 * config/aarch64/aarch64.c
7468 (aarch64_float_const_representable): Remove unused variable.
7469
6f549691
JG
74702013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7471
7472 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7473
af55e82d
JG
74742013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7475
7476 * config/aarch64/aarch64-builtins.c
7477 (aarch64_init_simd_builtins): Make static.
7478
1df3f464
JG
74792013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7480
7481 * config/aarch64/aarch64.c
7482 (aarch64_simd_make_constant): Make static.
7483
f8f42513
MJ
74842013-02-28 Martin Jambor <mjambor@suse.cz>
7485
7486 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7487 with no initialization to the RHS of debug statements.
7488
b48b3fc4
MJ
74892013-02-28 Martin Jambor <mjambor@suse.cz>
7490
7491 PR tree-optimization/56294
7492 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7493 Adjust dumping.
7494 (get_access_replacement): Do not call create_access_replacement.
7495 Assert a replacement exists.
7496 (get_repl_default_def_ssa_name): Create the replacement declaration
7497 itself.
7498
c3ae224c
RR
74992013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7500
7501 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7502 final_end_function.
7503
45fa0eef
MP
75042013-02-28 Marek Polacek <polacek@redhat.com>
7505
7506 PR rtl-optimization/56466
7507 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7508 if we're changing a loop.
7509 (peel_loops_completely): Likewise.
7510
502c067d
PC
75112013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7512
7513 PR c++/55813
7514 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7515
ff24afc8
GJL
75162013-02-28 Georg-Johann Lay <avr@gjlay.de>
7517
7518 PR target/56445
7519 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7520 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7521 INTX_FTYPE_FX, FX_FTYPE_INTX.
7522 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7523
c7b1fc1b
GJL
75242013-02-28 Georg-Johann Lay <avr@gjlay.de>
7525
7526 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7527 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7528 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7529 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7530 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7531 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7532 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7533 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7534 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7535 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7536 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7537 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7538 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7539 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7540 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7541 (avrxmega6): Increase max flash segments from 5 to 6.
7542 * config/avr/t-multilib: Regenerate.
7543 * config/avr/avr-tables.opt: Regenerate.
7544 * doc/avr-mmcu.texi: Regenerate.
7545
4a0e3cfe
GJL
75462013-02-28 Georg-Johann Lay <avr@gjlay.de>
7547
7548 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7549 (avr_device_to_arch): Rename to avr_device_to_ld.
7550 (avr_device_to_as): New prototype.
7551 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7552 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7553 * config/avr/driver-avr.c (avr_device_to_as): New.
7554 (avr_device_to_arch): Rename to avr_device_to_ld.
7555
97785e52
JJ
75562013-02-27 Jakub Jelinek <jakub@redhat.com>
7557
3f292312
JJ
7558 PR middle-end/56461
7559 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7560 method on dr_chain and result_chain.
7561
a344216b
JJ
7562 PR middle-end/56461
7563 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7564 pointer_set_destroy on not_executed_last_iteration.
7565
f121ad02 7566 PR middle-end/56461
88b97037 7567 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 7568
307f83a3
JJ
7569 PR middle-end/56461
7570 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7571 FOR_EACH_DEFINED_FUNCTION when freeing state.
7572
e19624ee
JJ
7573 PR middle-end/56461
7574 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7575 pool_free.
7576 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7577 overwriting it.
7578
90e709fd
JJ
7579 PR middle-end/56461
7580 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7581 known_aggs[i].items and release known_aggs vector.
7582
97785e52
JJ
7583 PR middle-end/56461
7584 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7585
75862013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 7587
97785e52
JJ
7588 * config/microblaze/microblaze.c (microblaze_emit_compare):
7589 Use xor for EQ/NE comparisions.
7590 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7591 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 7592
6fa5e0ed
JJ
75932013-02-27 Jakub Jelinek <jakub@redhat.com>
7594
7595 PR middle-end/56461
7596 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7597 vector.
7598 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7599 vec_safe_push, always update *slot.
7600 (redirect_edge_var_map_clear): Use vec_free.
7601 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7602 (free_var_map_entry): Use vec_free.
7603 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7604 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7605
436a956a
AB
76062013-02-27 Andrey Belevantsev <abel@ispras.ru>
7607
7608 PR middle-end/45472
436a956a
AB
7609 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7610 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
7611 Reorder tests for speculativeness in the logical and operator.
7612
f5c2caca
JJ
76132013-02-27 Jakub Jelinek <jakub@redhat.com>
7614
0fcb564b
JJ
7615 * incpath.c (add_standard_paths): Use reconcat instead of concat
7616 where appropriate and avoid leaking memory.
7617
dc357798
JJ
7618 * opts.h: Include obstack.h.
7619 (opts_concat): New prototype.
7620 (opts_obstack): New declaration.
7621 * opts.c (opts_concat): New function.
7622 (opts_obstack): New variable.
7623 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7624 (finish_options): Use opts_concat instead of concat
7625 and XOBNEWVEC instead of XNEWVEC.
7626 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7627 generate_option): Likewise.
7628 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7629 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7630
f5c2caca
JJ
7631 PR target/56455
7632 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7633 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7634
d0163673
JJ
76352013-02-26 Jakub Jelinek <jakub@redhat.com>
7636
7637 PR middle-end/56461
7638 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7639
b5ad2b8e
JR
76402013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7641
7642 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7643 (arm_block_move_unaligned_straight): Likewise.
7644 (arm_adjust_block_mem): Likewise.
7645
9b639e2c
JR
76462013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7647
7648 PR target/48901
7649 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7650 temp, cond and label.
7651 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7652
e13a0ccb
JR
7653 PR target/52500
7654 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7655 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7656
fbe4f171
JR
7657 PR target/52501
7658 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7659 of prologue/epilogue functions.
7660
ae006543
JR
7661 PR target/52550
7662 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7663 Remove unused variable cfa_offset.
7664 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7665
c81369fa
JR
7666 PR target/54639
7667 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7668 type promotion to unsigned.
7669
f8a8fea7
JR
7670 PR target/54640
7671 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7672 for HOST_WIDE_INT of 32 bit / same size as int.
7673 (arm_block_move_unaligned_straight): Likewise.
7674 (arm_adjust_block_mem): Likewise.
7675
f8be5169
JR
7676 PR target/54662
7677 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7678 ALL_CFLAGS.
7679
f1ad3354
MP
76802013-02-26 Marek Polacek <polacek@redhat.com>
7681
7682 PR tree-optimization/56426
88b97037 7683 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 7684
a6af0f42
RB
76852013-02-26 Richard Biener <rguenther@suse.de>
7686
7687 PR target/56444
7688 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7689 unused variable loops.
7690
aca43c6c
JJ
76912013-02-26 Jakub Jelinek <jakub@redhat.com>
7692
cecbe5d9
JJ
7693 PR tree-optimization/56448
7694 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7695 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7696 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7697 later operands of the references, or even first operand for
7698 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7699
aca43c6c
JJ
7700 PR tree-optimization/56443
7701 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7702 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7703 to type_for_mode langhook.
7704
53e2e141
MT
77052013-02-25 Matt Turner <mattst88@gmail.com>
7706
7707 * doc/invoke.texi: Document r4700.
7708
259ee451
RB
77092013-02-25 Richard Biener <rguenther@suse.de>
7710
7711 PR tree-optimization/56175
7712 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7713 split out from ...
7714 (simplify_bitwise_binary): ... here. Also guard the conversion
7715 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7716
6d65e8f1
CM
77172013-02-25 Catherine Moore <clm@codesourcery.com>
7718
7719 Revert:
7720 2013-02-24 Catherine Moore <clm@codesourcery.com>
7721 Maciej W. Rozycki <macro@codesourcery.com>
7722 Tom de Vries <tom@codesourcery.com>
a72d8780 7723 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
7724 Iain Sandoe <iain@codesourcery.com>
7725 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7726 Chao-ying Fu <fu@mips.com>
88b97037 7727
6d65e8f1 7728 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7729 Document new function attributes.
6d65e8f1
CM
7730 * doc/invoke.texi (minterlink-compressed, mmicromips,
7731 m14k, m14ke, m14kec): Document new options.
7732 (minterlink-mips16): Update documentation.
7733 * doc/md.texi (ZC, ZD): Document new constraints.
7734 * configure.ac (gcc_cv_as_micromips): Check if linker
7735 supports the .set micromips directive.
7736 * configure: Regenerate.
7737 * config.in: Regenerate.
7738 * config/mips/mips-tables.opt: Regenerate.
7739 * config/mips/micromips.md: New file.
7740 * constraints.md (ZC, AD): New constraints.
7741 * config/mips/predicates.md (movep_src_register): New predicate.
7742 (movep_src_operand): New predicate.
7743 (non_volatile_mem_operand): New predicate.
7744 * config/mips/mips.md (multimem): New type.
7745 (length): Differentiate between 17-bit and 18-bit branch offsets.
7746 (MOVEP1, MOVEP2): New mode iterator.
7747 (mov_<load>l): Use ZC constraint.
7748 (mov_<load>r): Likewise.
7749 (mov_<store>l): Likewise.
7750 (mov_<store>r): Likewise.
7751 (*branch_equality<mode>_inverted): Add microMIPS support.
7752 (*branch_equality<mode>): Likewise.
7753 (*jump_absolute): Likewise.
7754 (indirect_jump_<mode>): Likewise.
7755 (tablejump_<mode>): Likewise.
7756 (<optab>_internal): Likewise.
7757 (sibcall_internal): Likewise.
7758 (sibcall_value_internal): Likewise.
7759 (prefetch): Use constraint ZD.
7760 * config/mips/mips.opt (minterlink-compressed): New option.
7761 (minterlink-mips16): Now an alias for minterlink-compressed.
7762 (mmicromips): New option.
7763 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7764 (compare_and_swap_12): Likewise.
7765 (sync_add<mode>): Likewise.
7766 (sync_<optab>_12): Likewise.
7767 (sync_old_<optab>_12): Likewise.
7768 (sync_new_<optab>_12): Likewise.
7769 (sync_nand_12): Likewise.
7770 (sync_old_nand_12): Likewise.
7771 (sync_new_nand_12): Likewise.
7772 (sync_sub<mode>): Likewise.
7773 (sync_old_add<mode>): Likewise.
7774 (sync_old_sub<mode>): Likewise.
7775 (sync_new_add<mode>): Likewise.
7776 (sync_new_sub<mode>): Likewise.
7777 (sync_<optab><mode>): Likewise.
7778 (sync_old_<optab><mode>): Likewise.
7779 (sync_new_<optab><mode>): Likewise.
7780 (sync_nand<mode>): Likewise.
7781 (sync_old_nand<mode>): Likewise.
7782 (sync_new_nand<mode>): Likewise.
7783 (sync_lock_test_and_set<mode>): Likewise.
7784 (test_and_set_12): Likewise.
7785 (atomic_compare_and_swap<mode>): Likewise.
7786 (atomic_exchange<mode>_llsc): Likewise.
7787 (atomic_fetch_add<mode>_llsc): Likewise.
7788 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7789 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7790 (umips_save_restore_pattern_p): Likewise.
7791 (umips_load_store_pair_p): Likewise.
7792 (umips_output_load_store_pair): Likewise.
7793 (umips_movep_target_p): Likewise.
7794 (umips_12bit_offset_address_p): Likewise.
7795 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7796 (mips_base_mips16): Rename this...
7797 (mips_base_compression_flags): ...to this. Update all uses.
7798 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7799 (mips_mips16_decl_p): Delete.
7800 (mips_nomips16_decl_p): Delete.
7801 (mips_get_compress_on_flags): New function.
7802 (mips_get_compress_off_flags): New function.
7803 (mips_get_compress_mode): New function.
7804 (mips_get_compress_on_name): New function.
7805 (mips_get_compress_off_name): New function.
7806 (mips_insert_attributes): Support multiple compression types.
7807 (mips_merge_decl_attributes): Likewise.
7808 (umips_12bit_offset_address_p): New function.
7809 (mips_start_function_definition): Emit .set micromips directive.
7810 (mips_call_may_need_jalx_p): New function.
7811 (mips_function_ok_for_sibcall): Add microMIPS support.
7812 (mips_print_operand_punctuation): Support short delay slots and
7813 compact jumps.
7814 (umips_swm_mask, umips_swm_encoding): New.
7815 (umips_build_save_restore): New function.
7816 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7817 (was_mips16_p): Remove.
7818 (old_compression_mode): New.
7819 (mips_set_compression_mode): New function.
7820 (mips_set_current_function): Add microMIPS support.
7821 (mips_option_override): Likewise.
7822 (umips_save_restore_pattern_p): New function.
7823 (umips_output_save_restore): New function.
7824 (umips_load_store_pair_p_1): New function.
7825 (umips_load_store_pair_p): New function.
7826 (umips_output_load_store_pair_1): New function.
7827 (umips_output_load_store_pair): New function.
7828 (umips_movep_target_p) New function.
7829 (mips_prepare_pch_save): Add microMIPS support.
7830 * config/mips/mips.h (TARGET_COMPRESSION): New.
7831 (TARGET_CPU_CPP_BUILTINS): Update macro
7832 to use new compression flags and to support microMIPS.
7833 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7834 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7835 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7836 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7837 (ASM_SPEC): Support mmicromips and mno-micromips.
7838 (M16STORE_REG_P): New macro.
7839 (MIPS_CALL): Support TARGET_MICROMIPS.
7840 (MICROMIPS_J): New macro.
7841 (mips_base_mips16): Rename this...
7842 (mips_base_compression_flags): ...to this.
7843 (UMIPS_12BIT_OFFSET_P): New macro.
7844 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7845 (MULTILIB_DIRNAMES): Likewise.
7846
5e5df392
TV
78472013-02-25 Tom de Vries <tom@codesourcery.com>
7848
7849 PR rtl-optimization/56131
7850 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7851 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7852 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7853
3fdb53c1
TB
78542013-02-25 Tobias Burnus <burnus@net-b.de>
7855
7856 * doc/invoke.texi (-fsanitize=): Move from optimization
7857 to debugging options.
7858
ed358aea
AB
78592013-02-25 Andrey Belevantsev <abel@ispras.ru>
7860
7861 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7862
f45e9053
AB
78632013-02-25 Andrey Belevantsev <abel@ispras.ru>
7864 Alexander Monakov <amonakov@ispras.ru>
7865
7866 PR middle-end/56077
7867 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7868 flush pending lists also on non-jumps. Adjust comment.
7869
6941b508
CM
78702013-02-24 Catherine Moore <clm@codesourcery.com>
7871 Maciej W. Rozycki <macro@codesourcery.com>
7872 Tom de Vries <tom@codesourcery.com>
a72d8780 7873 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
7874 Iain Sandoe <iain@codesourcery.com>
7875 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7876 Chao-ying Fu <fu@mips.com>
6941b508
CM
7877
7878 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7879 Document new function attributes.
6941b508
CM
7880 * doc/invoke.texi (minterlink-compressed, mmicromips,
7881 m14k, m14ke, m14kec): Document new options.
7882 (minterlink-mips16): Update documentation.
7883 * doc/md.texi (ZC, ZD): Document new constraints.
7884 * configure.ac (gcc_cv_as_micromips): Check if linker
7885 supports the .set micromips directive.
7886 * configure: Regenerate.
7887 * config.in: Regenerate.
7888 * config/mips/mips-tables.opt: Regenerate.
7889 * config/mips/micromips.md: New file.
7890 * constraints.md (ZC, AD): New constraints.
7891 * config/mips/predicates.md (movep_src_register): New predicate.
7892 (movep_src_operand): New predicate.
7893 (non_volatile_mem_operand): New predicate.
7894 * config/mips/mips.md (multimem): New type.
7895 (length): Differentiate between 17-bit and 18-bit branch offsets.
7896 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 7897 (mov_<load>l): Use ZC constraint.
6941b508
CM
7898 (mov_<load>r): Likewise.
7899 (mov_<store>l): Likewise.
7900 (mov_<store>r): Likewise.
7901 (*branch_equality<mode>_inverted): Add microMIPS support.
7902 (*branch_equality<mode>): Likewise.
7903 (*jump_absolute): Likewise.
7904 (indirect_jump_<mode>): Likewise.
7905 (tablejump_<mode>): Likewise.
7906 (<optab>_internal): Likewise.
7907 (sibcall_internal): Likewise.
7908 (sibcall_value_internal): Likewise.
7909 (prefetch): Use constraint ZD.
7910 * config/mips/mips.opt (minterlink-compressed): New option.
7911 (minterlink-mips16): Now an alias for minterlink-compressed.
7912 (mmicromips): New option.
7913 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7914 (compare_and_swap_12): Likewise.
7915 (sync_add<mode>): Likewise.
7916 (sync_<optab>_12): Likewise.
7917 (sync_old_<optab>_12): Likewise.
7918 (sync_new_<optab>_12): Likewise.
7919 (sync_nand_12): Likewise.
7920 (sync_old_nand_12): Likewise.
7921 (sync_new_nand_12): Likewise.
7922 (sync_sub<mode>): Likewise.
7923 (sync_old_add<mode>): Likewise.
7924 (sync_old_sub<mode>): Likewise.
7925 (sync_new_add<mode>): Likewise.
7926 (sync_new_sub<mode>): Likewise.
7927 (sync_<optab><mode>): Likewise.
7928 (sync_old_<optab><mode>): Likewise.
7929 (sync_new_<optab><mode>): Likewise.
7930 (sync_nand<mode>): Likewise.
7931 (sync_old_nand<mode>): Likewise.
7932 (sync_new_nand<mode>): Likewise.
7933 (sync_lock_test_and_set<mode>): Likewise.
7934 (test_and_set_12): Likewise.
7935 (atomic_compare_and_swap<mode>): Likewise.
7936 (atomic_exchange<mode>_llsc): Likewise.
7937 (atomic_fetch_add<mode>_llsc): Likewise.
7938 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7939 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7940 (umips_save_restore_pattern_p): Likewise.
7941 (umips_load_store_pair_p): Likewise.
7942 (umips_output_load_store_pair): Likewise.
7943 (umips_movep_target_p): Likewise.
7944 (umips_12bit_offset_address_p): Likewise.
7945 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7946 (mips_base_mips16): Rename this...
7947 (mips_base_compression_flags): ...to this. Update all uses.
7948 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7949 (mips_mips16_decl_p): Delete.
7950 (mips_nomips16_decl_p): Delete.
3fdb53c1 7951 (mips_get_compress_on_flags): New function.
6941b508
CM
7952 (mips_get_compress_off_flags): New function.
7953 (mips_get_compress_mode): New function.
7954 (mips_get_compress_on_name): New function.
7955 (mips_get_compress_off_name): New function.
7956 (mips_insert_attributes): Support multiple compression types.
7957 (mips_merge_decl_attributes): Likewise.
7958 (umips_12bit_offset_address_p): New function.
7959 (mips_start_function_definition): Emit .set micromips directive.
7960 (mips_call_may_need_jalx_p): New function.
7961 (mips_function_ok_for_sibcall): Add microMIPS support.
7962 (mips_print_operand_punctuation): Support short delay slots and
7963 compact jumps.
7964 (umips_swm_mask, umips_swm_encoding): New.
7965 (umips_build_save_restore): New function.
7966 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7967 (was_mips16_p): Remove.
7968 (old_compression_mode): New.
7969 (mips_set_compression_mode): New function.
7970 (mips_set_current_function): Add microMIPS support.
7971 (mips_option_override): Likewise.
7972 (umips_save_restore_pattern_p): New function.
7973 (umips_output_save_restore): New function.
7974 (umips_load_store_pair_p_1): New function.
7975 (umips_load_store_pair_p): New function.
7976 (umips_output_load_store_pair_1): New function.
7977 (umips_output_load_store_pair): New function.
7978 (umips_movep_target_p) New function.
7979 (mips_prepare_pch_save): Add microMIPS support.
7980 * config/mips/mips.h (TARGET_COMPRESSION): New.
7981 (TARGET_CPU_CPP_BUILTINS): Update macro
7982 to use new compression flags and to support microMIPS.
7983 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7984 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7985 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7986 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7987 (ASM_SPEC): Support mmicromips and mno-micromips.
7988 (M16STORE_REG_P): New macro.
7989 (MIPS_CALL): Support TARGET_MICROMIPS.
7990 (MICROMIPS_J): New macro.
7991 (mips_base_mips16): Rename this...
7992 (mips_base_compression_flags): ...to this.
7993 (UMIPS_12BIT_OFFSET_P): New macro.
7994 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7995 (MULTILIB_DIRNAMES): Likewise.
7996
cdebbc6d
JJ
79972013-02-24 Jakub Jelinek <jakub@redhat.com>
7998
7999 PR target/52555
8000 * target-globals.c (save_target_globals): For init_reg_sets and
8001 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8002
18c63565
JG
80032013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8004
8005 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8006 * config/aarch64/t-aarch64
8007 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8008
2194f7a2
VM
80092013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8010
8011 PR inline-asm/56148
8012 * lra-constraints.c (process_alt_operands): Reload operand
8013 conflicting with earlier clobber only if no more other conflicting
8014 operands.
8015
7d613735
JJ
80162013-02-22 Jakub Jelinek <jakub@redhat.com>
8017
8018 PR sanitizer/56393
8019 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8020 if not linking a shared library.
8021
ac8d93a7
SL
80222013-02-22 Seth LaForge <sethml@google.com>
8023
8024 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8025
e0237780
GY
80262013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8027
3fdb53c1
TB
8028 * config/arm/arm.md (split for extendsidi): Update condition.
8029 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8030 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8031 (qhs_zextenddi_cstr): Likewise.
e0237780 8032
d7fde18c
JJ
80332013-02-21 Jakub Jelinek <jakub@redhat.com>
8034
be63b77d
JJ
8035 PR middle-end/56420
8036 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8037 avoid signed wrapping.
8038 (expand_mult): Handle properly multiplication by
8039 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8040 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8041 in the compiler if coeff is HOST_WIDE_INT_MIN.
8042 (expand_divmod): Don't make ext_op1 static, change it's type to
8043 uhwi. Avoid undefined behavior in -INTVAL (op1).
8044
d7fde18c
JJ
8045 PR rtl-optimization/50339
8046 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8047 field.
8048 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8049 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8050 into splitting_ashiftrt field.
8051 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8052 ASHIFTRT.
8053 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8054 choices.
8055
6aad4455
AH
80562013-02-20 Aldy Hernandez <aldyh@redhat.com>
8057
8058 PR middle-end/56108
8059 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8060 are sure to go irrevocable.
8061
38fe784d
HPN
80622013-02-21 Hans-Peter Nilsson <hp@axis.com>
8063
8064 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8065 scalars are valid operands.
8066
0fd44da3
MJ
80672013-02-21 Martin Jambor <mjambor@suse.cz>
8068
8069 PR tree-optimization/56310
8070 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8071 only matching indices and non-negative final offsets.
8072 (intersect_aggregates_with_edge): Pass src_idx to
8073 agg_replacements_to_vector. Pass src_idx insstead of index to
8074 intersect_with_agg_replacements.
8075
7a92038b
MJ
80762013-02-21 Martin Jambor <mjambor@suse.cz>
8077
8078 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8079 instead of hard-wired defaults.
8080
c0da9c37
MR
80812013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8082
8083 * doc/invoke.texi (MIPS Options): Update documentation of the
8084 floating-point multiply-accumulate instruction restrictions.
8085
d247ea0c 80862013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
8087
8088 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8089 asan_shadow_offset on x86_64 linux.
8090
22deefcb
RB
80912013-02-21 Richard Biener <rguenther@suse.de>
8092
8093 PR tree-optimization/56415
8094 Revert
8095 2013-02-11 Richard Biener <rguenther@suse.de>
8096
8097 PR tree-optimization/56273
8098 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8099 first VRP run.
8100
7bcc6e75
JJ
81012013-02-21 Jakub Jelinek <jakub@redhat.com>
8102
a0ad148f
JJ
8103 PR bootstrap/56258
8104 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8105 instead of @itemx.
8106
7bcc6e75
JJ
8107 PR inline-asm/56405
8108 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8109 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8110
a0a7b611
JH
81112013-02-20 Jan Hubicka <jh@suse.cz>
8112
8113 PR tree-optimization/56265
88b97037
UB
8114 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8115 when target is referenced for first time.
a0a7b611 8116
c0e50f72
RB
81172013-02-20 Richard Biener <rguenther@suse.de>
8118
8119 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8120 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8121 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8122 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8123 not return anything.
8124 (rename_ssa_copies): Do not remove unused locals.
8125 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 8126 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
8127 * passes.c (execute_function_todo): Do not schedule unused locals
8128 removal if cleanup_tree_cfg did something.
8129 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8130 about the number of removed locals.
8131
a52ca739
RB
81322013-02-20 Richard Biener <rguenther@suse.de>
8133
8134 PR tree-optimization/56398
88b97037 8135 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 8136
ec9c9d1b
MJ
81372013-02-20 Martin Jambor <mjambor@suse.cz>
8138
8139 PR tree-optimization/55334
8140 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8141 restricted pointers to arrays.
8142
e91c8ed6 81432013-02-20 Richard Biener <rguenther@suse.de>
88b97037 8144 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
8145
8146 PR tree-optimization/56396
8147 * tree-ssa-ccp.c (n_const_val): New static variable.
8148 (get_value): Return NULL for SSA names we don't have a lattice
8149 entry for.
8150 (ccp_initialize): Initialize n_const_val.
8151 * tree-ssa-copy.c (n_copy_of): New static variable.
8152 (init_copy_prop): Initialize n_copy_of.
8153 (get_value): Return NULL_TREE for SSA names we don't have a
8154 lattice entry for.
8155
3d916479
MJ
81562013-02-20 Martin Jambor <mjambor@suse.cz>
8157
8158 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8159
71a86758
RB
81602013-02-20 Richard Biener <rguenther@suse.de>
8161
8162 * genpreds.c (write_lookup_constraint): Do not compare first
8163 letter of the constraint again.
8164
79836a12
RB
81652013-02-20 Richard Biener <rguenther@suse.de>
8166
8167 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8168 and ceil_log2.
8169 (get_use_iv_cost): Terminate hashtable walk when coming across
8170 an empty entry.
8171
bbe4fb2c
IZ
81722013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8173
8174 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8175 reassociation for avx2 targets.
8176
a72d8780 81772012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 8178
c77f83d5
EI
8179 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8180 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 8181 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
8182 version and TARGET_PATTERN_COMPARE check
8183 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 8184
a72d8780 81852012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 8186
a72d8780 8187 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
8188 function before branching.
8189
242387fa
AB
81902012-02-19 Andrey Belevantsev <abel@ispras.ru>
8191
8192 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8193 DUMP_INSN_RTX_UID.
8194 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8195
b4979ab9
AB
81962012-02-19 Andrey Belevantsev <abel@ispras.ru>
8197
8198 PR middle-end/55889
b4979ab9
AB
8199 * sel-sched.c: Include ira.h.
8200 (implicit_clobber_conflict_p): New function.
8201 (moveup_expr): Use it.
88b97037 8202 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 8203
24d63016
RB
82042013-02-19 Richard Biener <rguenther@suse.de>
8205
8206 PR tree-optimization/56384
8207 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8208 (vn_hash_type): Split out from ...
8209 (vn_hash_constant_with_type): ... here.
8210 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8211 (vn_phi_eq): Compare types from vn_phi_s structure.
8212 (vn_phi_lookup): Populate vn_phi_s type.
8213 (vn_phi_insert): Likewise.
8214
a475fd3d
JJ
82152013-02-19 Jakub Jelinek <jakub@redhat.com>
8216
47cc28f5
JJ
8217 PR tree-optimization/56350
8218 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8219 if haven't found reduction or nested cycle operand, rather than
8220 asserting we must find it.
8221
a475fd3d
JJ
8222 PR tree-optimization/56381
8223 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8224 to fold_build3.
8225
82262013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8227 Jakub Jelinek <jakub@redhat.com>
8228
8229 PR target/52555
8230 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8231 (swap_optab_enable): Same.
8232 (init_all_optabs): Use argument instead of global.
88b97037 8233 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
8234 * expr.h (init_all_optabs): Add argument to prototype.
8235 (TREE_OPTIMIZATION_OPTABS): New.
8236 (save_optabs_if_changed): Protoize.
8237 * optabs.h: Declare this_fn_optabs.
8238 * optabs.c (save_optabs_if_changed): New.
8239 Declare this_fn_optabs.
8240 (init_optabs): Add argument to init_all_optabs() call.
8241 * function.c (invoke_set_current_function_hook): Handle per
8242 function optabs.
8243 * function.h (struct function): New field optabs.
8244 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8245 optimization_current_node has changed.
8246 * target-globals.h (save_target_globals_default_opts): Protoize.
8247 * target-globals.c (save_target_globals_default_opts): New.
8248
3f587ca3
JDA
82492013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8250
8251 PR target/56347
8252 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8253 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
8254
8255 PR target/56214
8256 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
8257 and HImode, require all displacements to be an integer multiple of
8258 their mode size.
ceaca33e
JDA
8259 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8260 only allow QImode and HImode when reload is in progress and strict is
8261 true. Likewise for symbolic addresses. Use base14_operand to check
8262 displacements in REG+BASE addresses.
8263
fe0b4796
RB
82642013-02-18 Richard Biener <rguenther@suse.de>
8265
8266 PR tree-optimization/56366
8267 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8268 handle sign-conversion of outer-loop initial induction value.
8269
6aaf596b
RB
82702013-02-18 Richard Biener <rguenther@suse.de>
8271
73db8ff1 8272 PR middle-end/56349
6aaf596b
RB
8273 * cfghooks.c (merge_blocks): If we merge a latch into another
8274 block adjust references to it.
8275 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8276 (verify_loop_structure): Verify that a recorded latch is in fact
8277 a latch.
8278
5e97dfb6
RB
82792013-02-18 Richard Biener <rguenther@suse.de>
8280
8281 PR tree-optimization/56321
8282 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8283 order SSA name release and virtual operand unlinking.
8284
825527e8
EI
82852013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8286
8287 * config/microblaze/microblaze.md (save_stack_block): Define.
8288 (restore_stack_block): Likewise.
8289
debd11d9
EI
82902013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8291
8292 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8293 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8294 * config/microblaze/microblaze.c (microblaze_option_override):
8295 Bail out early for PIC modes when target does not support PIC.
8296
8ec77be0
EI
82972013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8298
88b97037 8299 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
8300 Replace with a microblaze version.
8301 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 8302 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
8303 microblaze.
8304
b41288b3
JJ
83052013-02-16 Jakub Jelinek <jakub@redhat.com>
8306 Dodji Seketeli <dodji@redhat.com>
8307
8308 PR asan/56330
88b97037 8309 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
8310 (instrument_mem_region_access): Do not forget to always put
8311 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8312 0) statement, even for cases where either 'base' or 'base + len'
8313 are not instrumented -- because they have been previously
8314 instrumented. Simplify the logic by putting all the statements
8315 instrument 'base + len' inside a sequence, and then insert that
8316 sequence right before the current insertion point. Then, to
8317 instrument 'base + len', just get an iterator on that statement.
8318 And do not forget to update the pointer to iterator the function
8319 received as argument.
8320
47918951
VM
83212013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8322
8323 PR rtl-optimization/56348
8324 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8325
3fb7c699
SB
83262013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8327
8328 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8329 (clean_graph_dump_file): Pass base to start_graph_dump.
8330
576fe41a
RH
83312013-02-14 Richard Henderson <rth@redhat.com>
8332
8333 PR target/55941
8334 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8335
bb3accfa
SB
83362013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8337
8338 * collect2-aix.h: Define F_LOADONLY.
8339
03143140
RB
83402013-02-14 Richard Biener <rguenther@suse.de>
8341
8342 PR lto/50494
8343 * varasm.c (output_constant_def_1): Get the decl representing
8344 the constant as argument.
8345 (output_constant_def): Wrap output_constant_def_1.
8346 (make_decl_rtl): Use output_constant_def_1 with the decl
8347 representing the constant.
8348 (build_constant_desc): Optionally re-use a decl already
8349 representing the constant.
8350 (tree_output_constant_def): Adjust.
8351
8fb06726
DS
83522013-02-14 Dodji Seketeli <dodji@redhat.com>
8353
8354 Fix an asan crash
8355 * asan.c (instrument_builtin_call): Really put the length of the
8356 second source argument into src1_len.
8357
c4bfe8bf
JJ
83582013-02-13 Jakub Jelinek <jakub@redhat.com>
8359
8360 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8361 argument. If it is false, don't create edge from then_bb to
8362 fallthru_bb.
8363 (insert_if_then_before_iter): Pass true to it.
8364 (build_check_stmt): Pass false to it.
8365 (transform_statements): Flush hash table only on extended basic
8366 block boundaries, rather than at the beginning of every bb.
8367 Don't flush hash table on nonfreeing_call_p calls.
8368 * tree-flow.h (nonfreeing_call_p): New prototype.
8369 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8370
7afe2801
DM
83712013-02-13 David S. Miller <davem@davemloft.net>
8372
8373 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8374
70cc3288
VM
83752013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8376
8377 PR target/56184
8378 * ira.c (max_regno_before_ira): Move from ...
8379 (ira): ... here.
8380 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8381 vec_safe_length.
8382
6422242b
JJ
83832013-02-13 Jakub Jelinek <jakub@redhat.com>
8384
8385 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8386
976a81ee
RB
83872013-02-13 Richard Biener <rguenther@suse.de>
8388
8389 PR lto/56295
8390 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8391 globals in MEM_REFs.
8392
c1874a87
RB
83932013-02-13 Richard Biener <rguenther@suse.de>
8394
8395 * loop-init.c (loop_optimizer_init): Clear loop state when
8396 re-initializing preserved loops.
8397 * loop-unswitch.c (unswitch_single_loop): Return whether
8398 we unswitched the loop. Do not verify loop state here.
88b97037 8399 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 8400
b4ab7d34
KS
84012013-02-13 Kostya Serebryany <kcc@google.com>
8402
88b97037
UB
8403 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8404 on x86_64 linux.
b4ab7d34
KS
8405 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8406
bdcbe80c
DS
84072013-02-12 Dodji Seketeli <dodji@redhat.com>
8408
8409 Avoid instrumenting duplicated memory access in the same basic block
8410 * Makefile.in (asan.o): Add new dependency on hash-table.h
8411 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8412 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8413 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8414 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8415 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8416 (get_mem_ref_of_assignment): New functions.
8417 (get_mem_refs_of_builtin_call): Extract from
8418 instrument_builtin_call and tweak a little bit to make it fit with
8419 the new signature.
8420 (instrument_builtin_call): Use the new
8421 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8422 of is_gimple_builtin_call.
8423 (instrument_derefs, instrument_mem_region_access): Insert the
8424 instrumented memory reference into the hash table.
8425 (maybe_instrument_assignment): Renamed instrument_assignment into
8426 this, and change it to advance the iterator when instrumentation
8427 actually happened and return true in that case. This makes it
8428 homogeneous with maybe_instrument_assignment, and thus give a
8429 chance to callers to be more 'regular'.
8430 (transform_statements): Clear the memory reference hash table
8431 whenever we enter a new BB, when we cross a function call, or when
8432 we are done transforming statements. Use
8433 maybe_instrument_assignment instead of instrumentation. No more
8434 need to special case maybe_instrument_assignment and advance the
8435 iterator after calling it; it's now handled just like
8436 maybe_instrument_call. Update comment.
8437
4861a1f7
RB
84382013-02-13 Richard Biener <rguenther@suse.de>
8439
8440 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8441 Fix loop discovery code.
8442
1c86bd80
VM
84432013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8444
8445 PR inline-asm/56148
8446 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 8447 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
8448 the operand is not reloaded. Prefer to reload conflicting operand
8449 if earlyclobber and matching operands are the same.
8450
7cbda518
RB
84512013-02-12 Richard Biener <rguenther@suse.de>
8452
8453 PR lto/56297
8454 * lto-streamer-out.c (write_symbol): Do not output symbols
8455 for hard register variables.
8456
e68a4ef6
GJL
84572013-02-12 Georg-Johann Lay <avr@gjlay.de>
8458
8459 PR target/54222
8460 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8461 (umulsidi3_insn, mulsidi3_insn): New insns.
8462
a72d8780 84632013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
8464
8465 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8466 (struct tune_params): Add vec_costs field.
8467 * config/arm/arm.c (arm_builtin_vectorization_cost)
8468 (arm_add_stmt_cost): New functions.
8469 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8470 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8471 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8472 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8473 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8474 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8475 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8476
43320568
RB
84772013-02-12 Richard Biener <rguenther@suse.de>
8478
8479 PR lto/56295
8480 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8481 decls again if possible.
8482
a011aa39
RB
84832013-02-12 Richard Biener <rguenther@suse.de>
8484
8485 PR middle-end/56288
8486 * tree-ssa.c (verify_ssa_name): Fix check, move
8487 SSA_NAME_IN_FREE_LIST check up.
8488
6da26889
JJ
84892013-02-12 Jakub Jelinek <jakub@redhat.com>
8490 Steven Bosscher <steven@gcc.gnu.org>
8491
8492 PR rtl-optimization/56151
8493 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8494 equal to op0 or op1, and last_insn pattern is CODE operation
8495 with MEM dest and one of the operands matches that MEM.
8496
f80e0faf
ST
84972013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8498
8499 * doc/extend.texi: Document Function Multiversioning and "default"
8500 parameter string to target attribute.
8501 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8502 target attribute parameter is "default".
8503 (ix86_compare_version_priority): Remove checks for target attribute.
8504 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8505 Remove check for target attribute equal to NULL. Add assert.
8506 (ix86_generate_version_dispatcher_body): Change error to sorry.
8507
6c59ffd1
IS
85082013-02-11 Iain Sandoe <iain@codesourcery.com>
8509 Jack Howarth <howarth@bromo.med.uc.edu>
8510 Patrick Marlier <patrick.marlier@gmail.com>
8511
8512 PR libitm/55693
8513 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8514 define ENDFILE_SPEC as TM_DESTRUCTOR.
8515 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8516
a72d8780 85172013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
8518 Jack Howarth <howarth@bromo.med.uc.edu>
8519 Jakub Jelinek <jakub@redhat.com>
8520
8521 PR sanitizer/55617
8522 * config/darwin.c (cdtor_record): Rename ctor_record.
8523 (sort_cdtor_records): Rename sort_ctor_records.
8524 (finalize_dtors): New routine to sort destructors by
8525 priority before use in assemble_integer.
8526 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8527
b63fe007
UB
85282013-02-11 Uros Bizjak <ubizjak@gmail.com>
8529
8530 PR rtl-optimization/56275
8531 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8532 offset is non-negative and less than cmode size before
8533 calling simplify_subreg.
8534
8e89b5b5
RB
85352013-02-11 Richard Biener <rguenther@suse.de>
8536
8537 PR tree-optimization/56264
8538 * cfgloop.h (fix_loop_structure): Adjust prototype.
8539 * loop-init.c (fix_loop_structure): Return the number of
8540 newly discovered loops.
8541 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8542 are discovered, do a full loop-closed SSA rewrite.
8543
b4a4b56d
RB
85442013-02-11 Richard Biener <rguenther@suse.de>
8545
8546 PR tree-optimization/56273
8547 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8548 first VRP run.
8549 (check_array_ref): Fix missing newline in dumps.
8550 (search_for_addr_array): Likewise.
8551
0c885229
DE
85522013-02-09 David Edelsohn <dje.gcc@gmail.com>
8553
8554 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8555
59ac9a55
JJ
85562013-02-09 Jakub Jelinek <jakub@redhat.com>
8557
8558 PR target/56256
8559 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8560
25bb0bb5
VM
85612013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8562
8563 PR rtl-optimization/56246
0c885229 8564 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
8565 reload pseudo.
8566 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8567 constraints are satisfied.
8568
a698cc03
JL
85692013-02-08 Jeff Law <law@redhat.com>
8570
8571 PR debug/53948
8572 * emit-rtl.c (reg_is_parm_p): New function.
8573 * regs.h (reg_is_parm_p): New prototype.
8574 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8575 callee-clobbered registers.
8576
e1122ddd
MM
85772013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8578
8579 PR target/56043
8580 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8581 If there is no implicit builtin declaration, just return NULL.
8582
19c5f6e6
UB
85832013-02-08 Uros Bizjak <ubizjak@gmail.com>
8584
8585 * config/i386/sse.md (FMAMODEM): New mode iterator.
8586 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8587 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8588
2480f2ca 85892013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 8590
2480f2ca
UB
8591 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8592 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8593 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8594
85952013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8596
8597 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8598 (microblaze*-*-elf): Likewise.
8599 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8600 LINK_SPEC.
8601 * config/microblaze/microblaze-c.c: Add builtin defines for
8602 _LITTLE_ENDIAN and _BIG_ENDIAN.
8603 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8604 add to TARGET_DEFAULT flags.
76ef61fb 8605 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
8606 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8607 * config/microblaze/microblaze.md: Update extendsidi2 and
8608 movdi_internal instructions to use low-order / high-order reg
8609 print_operands.
8610 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8611 options and inversemask / mask of LITTLE_ENDIAN.
8612 * config/microblaze/t-microblaze: Expand multilib options to
8613 include mlittle-endian (le) and update exceptions patterns.
8614
600a5961
JJ
86152013-02-08 Jakub Jelinek <jakub@redhat.com>
8616
5df81313
JJ
8617 PR rtl-optimization/56195
8618 * lra-constraints.c (get_reload_reg): Don't reuse regs
8619 if they have smaller mode than requested, if they have
8620 wider mode than requested, try to return a SUBREG.
8621
600a5961
JJ
8622 PR tree-optimization/56250
8623 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8624 if type is unsigned and code isn't MULT_EXPR.
8625
ff544649
GJL
86262013-02-08 Georg-Johann Lay <avr@gjlay.de>
8627
8628 PR tree-optimization/56064
8629 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8630 bits according to mode.
8631 * fixed-value.h (fixed_from_double_int)
8632 (const_fixed_from_double_int): Adjust comments.
8633
e45cde98
RB
86342013-02-08 Richard Biener <rguenther@suse.de>
8635
8636 PR lto/56231
8637 * lto-streamer.h (struct data_in): Remove current_file, current_line
8638 and current_col members.
8639 * lto-streamer-out.c (lto_output_location): Stream changed bits
8640 en-block for efficiency.
8641 * lto-streamer-in.c (clear_line_info): Remove.
8642 (lto_input_location): Cache current file, line and column
8643 globally via local statics. Read changed bits en-block.
8644 (input_function): Do not call clear_line_info.
8645 (lto_read_body): Likewise.
8646 (lto_input_toplevel_asms): Likewise.
8647
c1ca73d8
MM
86482013-02-08 Michael Matz <matz@suse.de>
8649
8650 PR tree-optimization/52448
8651 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8652 (nt_call_phase): New static.
8653 (add_or_mark_expr): Only mark accesses with newer phase than any
8654 call seen.
8655 (nonfreeing_call_p): New.
8656 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8657 (nt_fini_block): Keep blocks marked as visited.
8658 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8659
57548aa2
RB
86602013-02-08 Richard Biener <rguenther@suse.de>
8661
8662 * ira.c (ira): Free broken dominator information.
8663
8e10366f
UB
86642013-02-08 Uros Bizjak <ubizjak@gmail.com>
8665
8666 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8667
f64fb0fa
MP
86682013-02-08 Marek Polacek <polacek@redhat.com>
8669
8e10366f 8670 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 8671
0375167b
RB
86722013-02-08 Richard Biener <rguenther@suse.de>
8673
8674 PR middle-end/56181
8675 * cfgloop.h (flow_loops_find): Adjust.
8676 (bb_loop_header_p): Declare.
8677 * cfgloop.c (bb_loop_header_p): New function split out from ...
8678 (flow_loops_find): ... here. Adjust function signature,
8679 support incremental loop structure update.
8680 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8681 * cfgloopmanip.c (fix_loop_structure): Move ...
8682 * loop-init.c (fix_loop_structure): ... here.
8683 (apply_loop_flags): Split out from ...
8684 (loop_optimizer_init): ... here.
8685 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8686 in incremental mode, only remove dead loops here.
8687
85d768f3
GJL
86882013-02-08 Georg-Johann Lay <avr@gjlay.de>
8689
8690 PR target/54222
8691 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8692 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8693 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8694 (*round<mode>3.libgcc): New insns for fixed-modes.
8695 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8696 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8697 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8698 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8699 implementations. Define to __builtin_avr_absFX,
8700 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8701 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8702 __builtin_avr_countlsFX, respectively.
8703 * config/avr/avr-c.c (target.h): Include it.
8704 (enum avr_builtin_id): New enum.
8705 (avr_resolve_overloaded_builtin): New static function.
8706 (avr_register_target_pragmas): Use it to set
8707 targetm.resolve_overloaded_builtin.
8708 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8709 tree nodes used by DEF_BUILTIN.
8710 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8711 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8712 <AVR_BUILTIN_xxBITS>: Same.
8713
661bc682
RB
87142013-02-08 Richard Biener <rguenther@suse.de>
8715
8716 * cfgloop.c (verify_loop_structure): Properly handle
8717 a loop exiting to another loop header.
8718 * ira-int.h (ira_loops): Remove.
8719 * ira.c (ira_loops): Remove.
8720 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8721 (do_reload): Use loop_optimizer_finalize.
8722 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8723 number_of_loops to access the loop tree.
8724 (more_one_region_p): Likewise.
8725 (finish_loop_tree_nodes): Likewise.
8726 (rebuild_regno_allocno_maps): Likewise.
8727 (mark_loops_for_removal): Likewise.
8728 (mark_all_loops_for_removal): Likewise.
8729 (remove_unnecessary_regions): Likewise.
8730 (ira_build): Likewise.
8731 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8732
0d5049b2
RB
87332013-02-08 Richard Biener <rguenther@suse.de>
8734
8735 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8736 * ipa-pure-const.c (analyze_function): Avoid calling
8737 mark_irreducible_loops twice.
8e10366f 8738 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 8739
499f32e8
DM
87402013-02-07 David S. Miller <davem@davemloft.net>
8741
8742 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8743 on 'reg'.
8744 * var-tracking.c (vt_add_function_parameter): Test the presence of
8745 HAVE_window_save properly and do not remap argument registers when
8746 we have a leaf function.
8747
6edc3e32
UB
87482013-02-07 Uros Bizjak <ubizjak@gmail.com>
8749
8750 PR bootstrap/56227
8751 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8752 instead of "ll".
8753 * config/i386/i386.c (ix86_print_operand): Ditto.
8754
5306401f
VM
87552013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8756
6edc3e32 8757 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 8758
027ece11
VM
87592013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8760
8761 PR rtl-optimization/56225
8762 * lra-constraints.c (process_alt_operands): Check that reload hard
8763 reg can hold value for strict_low_part.
8764
f980dfdb
JJ
87652013-02-07 Jakub Jelinek <jakub@redhat.com>
8766
8767 PR debug/56154
8768 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8769 dwarf2out_end_function.
8770 (in_first_function_p, maybe_at_text_label_p,
8771 first_loclabel_num_not_at_text_label): New variables.
8772 (dwarf2out_var_location): In the first function find out
6edc3e32 8773 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
8774 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8775 functions.
8776
73dd3123
EB
87772013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8778
8779 PR rtl-optimization/56178
8780 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8781 SUBREG of a register. Tidy up related block of code.
8782 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8783 note if the source is a register or a SUBREG of a register.
8784
e3936f47
JJ
87852013-02-07 Jakub Jelinek <jakub@redhat.com>
8786
8787 PR target/56228
8788 * config/rs6000/rs6000.md (ptrm): New mode attr.
8789 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8790 call_value_indirect_aix<pttrsize>,
8791 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8792 m in constraints.
8793
d96d674b
MH
87942013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8795
8796 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8797 if -bnortl. Convert to strcmp and strncmp.
8798
921f2dee
AM
87992013-02-07 Alan Modra <amodra@gmail.com>
8800
8801 PR target/54009
8802 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8803 addresses won't wrap when offsetting.
8804 (rs6000_secondary_reload): Provide secondary reloads needed for
8805 wrapping LO_SUM addresses.
8806
d09c7dba
TS
88072013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8808
8809 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8810 MACH, just __MACH__.
8811
a44bbd48
RB
88122013-02-06 Richard Biener <rguenther@suse.de>
8813
8814 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8815 instead of calling fix_loop_structure.
8816
6d840d99
JJ
88172013-02-06 Jakub Jelinek <jakub@redhat.com>
8818
8819 PR middle-end/56217
8820 * omp-low.c (use_pointer_for_field): Return false if
8821 lower_send_shared_vars doesn't generate any copy-out code.
8822
0f33baa9
TV
88232013-02-06 Tom de Vries <tom@codesourcery.com>
8824
8825 PR rtl-optimization/56131
8826 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8827 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8828 of the label is NULL. Add comment.
8829
11f1e3ab
JJ
88302013-02-05 Jakub Jelinek <jakub@redhat.com>
8831
31502f9f
JJ
8832 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8833
a74db9bd
JJ
8834 PR sanitizer/55374
8835 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8836 (STATIC_LIBTSAN_LIBS): Likewise.
8837 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8838 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8839 is defined, don't add anything else beyond that.
8840 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8841 (LINK_COMMAND_SPEC): Use them.
8842
11f1e3ab
JJ
8843 PR tree-optimization/56205
8844 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8845 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8846 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8847
14ac6aa2
RB
88482013-02-05 Richard Biener <rguenther@suse.de>
8849
8850 PR tree-optimization/53342
8851 PR tree-optimization/53185
8852 * tree-vectorizer.h (vect_check_strided_load): Remove.
8853 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8854 not disallow peeling for vectorized strided loads.
8855 (vect_check_strided_load): Make static and simplify.
8856 (vect_analyze_data_refs): Adjust.
8857 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8858 correctly when vectorizing strided loads.
8859
6f22445a
RB
88602013-02-05 Richard Biener <rguenther@suse.de>
8861
8862 * doc/install.texi: Refer to ISL, not PPL.
8863
39f9719e
JH
88642013-02-05 Jan Hubicka <jh@suse.cz>
8865
ec4224ac
JH
8866 PR tree-optimization/55789
8867 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8868
88692013-02-05 Jan Hubicka <jh@suse.cz>
8870
8871 PR tree-optimization/55789
39f9719e
JH
8872 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8873 the dead call anyway.
8874
956d3b33
EB
88752013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8876
8877 PR sanitizer/55374
8878 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8879
88802013-02-04 Alexander Potapenko <glider@google.com>
8881 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
8882 Jakub Jelinek <jakub@redhat.com>
8883
8884 PR sanitizer/55617
8885 * config/darwin.c (sort_ctor_records): Stabilized qsort
8886 on constructor priority by using original position.
8887 (finalize_ctors): New routine to sort constructors by
8888 priority before use in assemble_integer.
8889 (machopic_asm_out_constructor): Use finalize_ctors if needed.
8890
7ac3af38
JJ
88912013-02-04 Jakub Jelinek <jakub@redhat.com>
8892
8893 PR libstdc++/54314
8894 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8895 about visibility on artificial decls.
8896 * config/sol2.c (solaris_assemble_visibility): Likewise.
8897
152689dc
KT
88982013-02-04 Kai Tietz <ktietz@redhat.com>
8899
8900 PR target/56186
8901 * config/i386/i386.c (function_value_ms_64): Add additional valtype
8902 argument and improve checking of return-argument types for 16-byte
8903 modes.
8904 (ix86_function_value_1): Add additional valtype argument on call
8905 of function_value_64.
8906 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8907 handling infunction_value_64 function.
8908
2b5987b5
MGD
89092013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8910
7ac3af38 8911 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 8912
14597080
RB
89132013-02-04 Richard Biener <rguenther@suse.de>
8914
8915 PR tree-optimization/56188
8916 * tree-ssa-structalias.c (label_visit): Consider case with
8917 initially non-empty points-to set.
8918 (perform_var_substitution): Dump node mapping and clean up.
8919
ed73881e
RG
89202013-02-04 Richard Guenther <rguenther@suse.de>
8921
8922 PR lto/56168
8923 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8924 node prevail as last resort.
8925 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 8926 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 8927
139a0707
RB
89282013-02-04 Richard Biener <rguenther@suse.de>
8929
8930 PR tree-optimization/56113
8931 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8932 Merge into ...
8933 (equiv_class_lookup_or_add): ... this.
8934 (label_visit): Adjust and fix error in previous patch.
8935 (perform_var_substitution): Adjust.
8936
50fe8924
OE
89372013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8938
8939 * config/sh/divtab.c: Fix formatting and comments throughout the file.
8940 * config/sh/sh4-300.md: Likewise.
8941 * config/sh/sh4a.md: Likewise.
8942 * config/sh/constraints.md: Likewise.
8943 * config/sh/sh.md: Likewise.
8944 * config/sh/netbsd-elf.h: Likewise.
8945 * config/sh/predicates.md: Likewise.
8946 * config/sh/sh-protos.h: Likewise.
8947 * config/sh/ushmedia.h: Likewise.
8948 * config/sh/linux.h: Likewise.
8949 * config/sh/sh.c: Likewise.
8950 * config/sh/superh.h: Likewise.
8951 * config/sh/elf.h: Likewise.
8952 * config/sh/sh4.md: Likewise.
8953 * config/sh/sh.h: Likewise.
8954
1a04ac2b
JDA
89552013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8956
8957 * config/pa/constraints.md: Adjust unused letters. Change "T"
8958 constraint to match_test floating_point_store_memory_operand().
8959 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8960 (base14_operand): New.
8961 (floating_point_store_memory_operand): New.
8962 (integer_store_memory_operand): Revise to use base14_operand and
8963 reg_plus_base_memory_operand.
8964 (move_dest_operand): Allow symbolic_memory_operands.
8965 (symbolic_memory_operand): Check for LO_SOM.
8966 (symbolic_operand): Change default case to break.
8967 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8968 CONST_DOUBLE values to be reloaded by putting them into memory when
8969 the destination is a floating point register.
8970 (movdf): Remove code to handle CONST_DOUBLE.
8971 (movsf): Likewise.
8972 (reload_indf_r1): New.
8973 (reload_insf_r1): New.
8974 Consistently use "Q" and "T" constraints with integer and floating
8975 point move instructions, respectively.
8976 (movdi): Remove FAIL.
8977 Change predicate for source operand unamed DImode move from
8978 general_operand to move_src_operand.
8979 (umulsidi3): Change predicate for destination operand to
8980 register_operand.
8981 Likewise for similar unamed patterns.
8982 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8983 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8984 (hppa_legitimize_address): Simplify mask calculation.
8985 (pa_emit_move_sequence): Revised handling of secondary reloads from
8986 REG+D addresses for floating point loads and stores. Directly handle
8987 loading CONST0_RTX (mode) to a floating point register.
8988 (pa_secondary_reload): Handle reloading DF and SFmode constant values
8989 to floating point registers. Don't restrict secondary reloads to
8990 floating point registers to integer modes. Revise some comments and
8991 cleanup some code.
8992 (TARGET_LEGITIMATE_ADDRESS_P): Define.
8993 (pa_legitimate_address_p): New.
8994 (pa_legitimize_reload_address): New.
8995 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8996 (STRICT_REG_OK_FOR_BASE_P): New.
8997 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
8998 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8999
3bf65591
DE
90002013-02-03 David Edelsohn <dje.gcc@gmail.com>
9001 Andrew Dixie <andrewd@gentrack.com>
9002
9003 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9004 flag set.
9005
c0a8a3e6
RS
90062013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9007
9008 * expmed.c (extract_bit_field_1): Pass the full width of the
9009 structure to get_best_reg_extraction_insn.
9010
99113dff
DE
90112013-02-01 David Edelsohn <dje.gcc@gmail.com>
9012
9013 PR target/54601
9014 * configure.ac (use_cxa_atexit): Add AIX.
9015 * configure: Regenerate.
9016
9017 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9018
ddd84654
JJ
90192013-02-01 Jakub Jelinek <jakub@redhat.com>
9020
9021 PR debug/54793
9022 * final.c (need_profile_function): New variable.
9023 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9024 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9025 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9026 notes, targetm.asm_out.function_prologue doesn't emit anything,
9027 HAVE_prologue and profiler should be emitted before prologue,
9028 set need_profile_function instead of emitting it.
9029 (final_scan_insn): If need_profile_function, emit
9030 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9031 NOTE_INSN_FUNCTION_BEG note.
9032
90332013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9034
9035 * config/rs6000/rs6000.md (smulditi3): New.
9036 (umulditi3): New.
9037
ff2a9d88
RH
9038 * config/alpha/alpha.md (umulditi3): New.
9039
14d52b90
DE
90402013-02-01 David Edelsohn <dje.gcc@gmail.com>
9041
9042 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9043 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9044
8c7ca45c
RB
90452013-02-01 Richard Biener <rguenther@suse.de>
9046
9047 PR tree-optimization/56113
9048 * tree-ssa-structalias.c (label_visit): Reduce work for
9049 single-predecessor nodes.
9050
9f419393
EB
90512013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9052
9053 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9054 range isn't testing for zero.
9055
c5f4be84
SB
90562013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9057
9058 PR middle-end/56113
9059 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9060
dbdbd982
NC
90612013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9062 Nick Clifton <nickc@redhat.com>
9063
9064 * config/v850/constraints.md (Q): Define as a memory constraint.
9065 * config/v850/predicates.md (label_ref_operand): New predicate.
9066 (e3v5_shift_operand): New predicate.
9067 (ior_operator): New predicate.
9068 * config/v850/t-v850: Add e3v5 multilib.
9069 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9070 (v850_gen_movdi): Prototype.
9071 * config/v850/v850.c: Add support for e3v5 architecture.
9072 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9073 TARGET_V850E_UP.
9074 (construct_save_jarl): Add e3v5 long JARL support.
9075 (v850_adjust_insn_length): New function. Adjust length of call
9076 insns when using e3v5 instructions.
9077 (v850_gen_movdi): New function: Generate instructions to move a
9078 DImode value.
9079 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9080 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9081 (TARGET_USE_FPU): Enable for e3v5.
9082 (CONST_OK_FOR_W): New macro.
9083 (ADJUST_INSN_LENGTH): Define.
9084 * config/v850/v850.md (UNSPEC_LOOP): Define.
9085 (attr cpu): Add v850e3v5.
9086 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9087 (movdi): New pattern.
9088 (movdi_internal): New pattern.
9089 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9090 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9091 (cstoresf4): Likewise.
9092 (cstoredf4): Likewise.
9093 (insv): New pattern.
9094 (rotlso3_a): New pattern.
9095 (rotlsi3_b): New pattern
9096 (rotlsi3_v850e3v5): New pattern.
9097 (doloop_begin): New pattern.
9098 (fix_loop_counter): New pattern.
9099 (doloop_end): New pattern.
9100 (branch_normal): Add e3v5 long branch support.
9101 (branch_invert): Likewise.
9102 (branch_z_normal): Likewise.
9103 (branch_z_invert): Likewise.
9104 (branch_nz_normal): Likewise.
9105 (branch_nz_invert): Likewise.
9106 (call_internal_short): Add e3v5 register-indirect JARL support.
9107 (call_internal_long): Likewise.
9108 (call_value_internal_short): Likewise.
9109 (call_value_internal_long): Likewise.
9110 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9111 (mloop): New option.
9112 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 9113 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 9114
73861a41
PK
91152013-01-31 Paul Koning <ni1d@arrl.net>
9116
9117 PR debug/55059
9118 PR debug/54508
9119 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9120 children if parent is a class.
9121 (prune_unused_types_prune): Don't add DW_AT_declaration.
9122
e44978dc
RB
91232013-01-31 Richard Biener <rguenther@suse.de>
9124
9125 PR tree-optimization/56157
9126 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9127 match up operand with SLP child.
9128
90b10dec
JM
91292013-01-31 Jason Merrill <jason@redhat.com>
9130
04d2dadd 9131 PR debug/54410
90b10dec
JM
9132 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9133 parameters the first time.
9134 (gen_scheduled_generic_parms_dies): Check completeness here.
9135
6e616110
RB
91362013-01-31 Richard Biener <rguenther@suse.de>
9137
9138 PR middle-end/53073
9139 * common.opt (faggressive-loop-optimizations): New flag,
9140 enabled by default.
9141 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9142 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9143 infer_loop_bounds_from_undefined by it.
9144
636f59cf
RB
91452013-01-31 Richard Biener <rguenther@suse.de>
9146
9147 PR tree-optimization/56150
9148 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9149 visit virtual operands.
9150 (find_uses_to_rename_bb): Likewise.
9151
91522013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
9153
9154 PR tree-optimization/56150
9155 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9156 mixed store non-store stmts.
9157
32887460
JJ
91582013-01-30 Jakub Jelinek <jakub@redhat.com>
9159
e60e09a0
JJ
9160 PR sanitizer/55374
9161 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9162 LIBASAN_EARLY_SPEC is defined.
9163 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9164 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9165 before %o.
9166 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9167
32887460
JJ
9168 PR c++/55742
9169 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9170 invalid args instead of ICEing on it.
9171 (ix86_valid_target_attribute_tree): Return error_mark_node if
9172 ix86_valid_target_attribute_inner_p failed.
9173 (ix86_valid_target_attribute_p): Return false only if
9174 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9175 target("default") attribute.
9176 (sorted_attr_string): Change argument from const char * to tree,
9177 merge in all target attribute arguments rather than just one.
9178 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9179 instead of free. Avoid using strcat.
9180 (ix86_mangle_function_version_assembler_name): Mangle
9181 target("default") as if no target attribute is present. Adjust
9182 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9183 instead of xmalloc and XDELETEVEC instead of free.
9184 (ix86_function_versions): Don't return true if one of the decls
9185 doesn't have target attribute. If they don't and one of the decls
9186 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9187 sorted_attr_string caller. Use XDELETEVEC instead of free.
9188 (ix86_supports_function_versions): Remove.
9189 (make_name): Fix up formatting.
9190 (make_dispatcher_decl): Remove resolver_name and its initialization.
9191 Avoid leaking memory.
9192 (is_function_default_version): Return true if there is
9193 target("default") attribute rather than no target attribute at all.
9194 (make_resolver_func): Avoid leaking memory.
9195 (ix86_generate_version_dispatcher_body): Likewise.
9196 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9197 * target.def (supports_function_versions): Remove.
9198 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9199 * doc/tm.texi: Regenerated.
9200
73cca0cc
VM
92012013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9202
9203 PR rtl-optimization/56144
9204 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9205 for values with side effects.
9206
11452e7b
RB
92072013-01-30 Richard Biener <rguenther@suse.de>
9208
9209 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9210 (sparseset_pop): Likewise.
9211 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9212 to be able to use quick_push in the worker loop.
9213
01cb1ef5
MP
92142013-01-30 Marek Polacek <polacek@redhat.com>
9215
9216 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9217
e892936e
RB
92182013-01-30 Richard Biener <rguenther@suse.de>
9219
9220 PR lto/56147
6edc3e32 9221 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 9222
cc06c01d
GJL
92232013-01-30 Georg-Johann Lay <avr@gjlay.de>
9224
9225 PR tree-optimization/56064
9226 * fixed-value.c (fixed_from_double_int): New function.
9227 * fixed-value.h (fixed_from_double_int): New prototype.
9228 (const_fixed_from_double_int): New static inline function.
9229 * fold-const.c (native_interpret_fixed): New static function.
9230 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9231 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9232 (native_encode_fixed): New static function.
9233 (native_encode_expr) <FIXED_CST>: Use it.
9234 (native_interpret_int): Move double_int worker code to...
9235 * double-int.c (double_int::from_buffer): ...this new static method.
9236 * double-int.h (double_int::from_buffer): Prototype it.
9237
d394a308
RB
92382013-01-30 Richard Biener <rguenther@suse.de>
9239
9240 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9241 New pointer-map and obstack.
9242 (init_alias_vars): Allocate pointer-map and obstack.
9243 (delete_points_to_sets): Free them.
9244 (find_what_var_points_to): Cache result.
9245 (find_what_p_points_to): Adjust for changed interface of
9246 find_what_var_points_to.
9247 (compute_points_to_sets): Likewise.
9248 (ipa_pta_execute): Likewise.
9249
20804d96
RO
92502013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9251
9252 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9253 * configure: Regenerate.
9254 * config.in: Regenerate.
9255 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9256 #nobits/#progbits if supported.
9257
a7ad88a2
OE
92582013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9259
9260 PR target/56121
9261 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9262 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9263 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9264
7af79f92
GY
92652013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9266
91bfca59
OE
9267 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9268 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 9269
753bcf7b
GY
92702013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9271
91bfca59
OE
9272 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9273 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 9274
8cbc2ea8
GY
92752013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9276
91bfca59
OE
9277 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9278 declaration.
9279 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9280 * config/arm/cortex-a7.md: New bypasses using
9281 arm_mac_accumulator_is_result.
8cbc2ea8 9282
697a3325
GY
92832013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9284
91bfca59 9285 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 9286 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
9287 (cortex_a7_fpfmad): New reservation.
9288 (cortex_a7_fpmacs): Use ffmas and update required units.
9289 (cortex_a7_fpmuld): Update required units and latency.
9290 (cortex_a7_fpmacd): Likewise.
9291 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9292 (cortex_a7_neon). Likewise.
9293 (bypass) Update participating units.
697a3325 9294
29637783
GY
92952013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9296
91bfca59
OE
9297 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9298 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9299 from fmac to ffma.
9300 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9301 (vfp_fmul): Use ffmad.
9302 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9303 (cortex_r4_fmacd): Use ffmad.
9304 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9305 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9306 (cortex_a9_fmacd): Use ffmad.
9307 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9308 (cortex_a8_vfp_macd): Use ffmad.
9309 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9310 (cortex_a5_fpmacd): Use ffmad.
9311 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9312 (cortex_a15_vfp_macd): Use ffmad.
9313 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 9314
2ee8a2d5
JM
93152013-01-29 Jason Merrill <jason@redhat.com>
9316
9317 PR libstdc++/54314
9318 * varasm.c (default_assemble_visibility): Don't warn about
9319 visibility on artificial decls.
9320
78d087bc
RB
93212013-01-29 Richard Biener <rguenther@suse.de>
9322
9323 PR tree-optimization/56113
9324 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9325 the bitmap leader.
9326 (label_visit): Free duplicate bitmaps and record the leader instead.
9327 (perform_var_substitution): Adjust.
9328
83ba4d6f
RB
93292013-01-29 Richard Biener <rguenther@suse.de>
9330
9331 PR tree-optimization/55270
9332 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9333 the CFG, schedule loops for fixup.
9334
66dfe13f
NC
93352013-01-29 Nick Clifton <nickc@redhat.com>
9336
9337 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9338 SP_REG.
9339
5a579c3b
LE
93402013-01-28 Leif Ekblad <leif@rdos.net>
9341
9342 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9343 * config/i386/i386.h (TARGET_RDOS): New macro.
9344 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9345 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9346 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9347 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9348 DEFAULT_LARGE_SECTION_THRESHOLD.
9349 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9350 * config/i386/rdos.h: New file.
9351 * config/i386/rdos64.h: New file.
9352
51e44392
BS
93532013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9354
9355 PR other/54814
9356 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9357 TEST_HARD_REG_BIT.
9358
db1fb332
JJ
93592013-01-28 Jakub Jelinek <jakub@redhat.com>
9360
9361 PR rtl-optimization/56117
9362 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9363 call cselib_lookup_from_insn on the MEM before calling
9364 add_insn_mem_dependence.
9365
16917761
RB
93662013-01-28 Richard Biener <rguenther@suse.de>
9367
9368 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9369 to a stmt that didn't have one.
9370 (copy_phis_for_bb): Likewise for PHI arguments.
9371 (copy_debug_stmt): Likewise for debug stmts.
9372
b9fc0497
RB
93732013-01-28 Richard Biener <rguenther@suse.de>
9374
9375 PR tree-optimization/56034
6edc3e32 9376 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
9377 (partition_builtin_p): Adjust.
9378 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9379 it is the last partition.
9380 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9381 up the vertex for the definition.
9382 (classify_partition): Classify whether a partition is a
9383 PKIND_REDUCTION, thus has uses outside of the loop.
9384 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9385 Merge all PKIND_REDUCTION partitions into the last partition.
9386 (tree_loop_distribution): Seed partitions from reductions as well.
9387
aa710d25
JJ
93882013-01-28 Jakub Jelinek <jakub@redhat.com>
9389
0bfbca58
JJ
9390 PR tree-optimization/56125
9391 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9392 pow(x,c) into sqrt(x) * powi(x, n/2) or
9393 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9394 optimizing for size.
9395 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9396 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9397 integer.
9398
aa710d25
JJ
9399 PR tree-optimization/56094
9400 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9401 to UNKNOWN_LOCATION while gimplifying expr.
9402
77dc5297
UB
94032013-01-27 Uros Bizjak <ubizjak@gmail.com>
9404
9405 PR target/56114
9406 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9407 operand 0 in movabs insn template for -masm=intel asm alternative.
9408 (*movabs<mode>_2): Ditto for operand 1.
9409
0bfbca58 94102013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
9411
9412 PR target/54663
9413 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9414 of microblaze-c.o
9415
0bfbca58 94162013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
9417
9418 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9419 tm_file.
9420
0bfbca58 94212013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
9422
9423 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9424 Undef to avoid warning.
9425
478f60f9
MH
94262013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9427
9428 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9429 * configure: Regenerate.
9430
d7fa6ee2
JJ
94312013-01-25 Jakub Jelinek <jakub@redhat.com>
9432
9433 PR tree-optimization/56098
9434 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9435 for stmts with volatile ops.
9436 (cond_store_replacement): Don't optimize if assign has volatile ops.
9437 (cond_if_else_store_replacement_1): Don't optimize if either
9438 then_assign or else_assign have volatile ops.
9439 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9440 volatile ops.
9441
f8fe87bd
GJL
94422013-01-25 Georg-Johann Lay <avr@gjlay.de>
9443
9444 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9445
28398d0d
GJL
94462013-01-25 Georg-Johann Lay <avr@gjlay.de>
9447
9448 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9449 missing ':' in asm example.
9450
b7d7d917
TB
94512013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9452
9453 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9454 entries into lane and laneq entries.
77dc5297
UB
9455 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9456 Remove AdvSIMD scalar modes.
b7d7d917
TB
9457 (aarch64_sq<r>dmulh_laneq<mode>): New.
9458 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9459 modes.
9460 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9461 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9462 * config/aarch64/iterators.md (VCOND): New.
9463 (VCONQ): New.
9464
556f9906
GJL
94652013-01-25 Georg-Johann Lay <avr@gjlay.de>
9466
9467 PR target/54222
9468 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9469 Add NULL LIBNAME argument to existing definitions.
9470 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9471 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9472 * config/avr/avr.c (DEF_BUILTIN): Same.
9473 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9474 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9475 implementation is available (DECL_ASSEMBLER_NAME is set).
9476 (avr_fold_absfx): New static function.
9477 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9478 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9479 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9480 AVR_BUILTIN_ABSLLK.
9481 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9482 (abshk, absk, abslk, absllk): Provide as static inline functions.
9483
1f546bbb
MP
94842013-01-25 Marek Polacek <polacek@redhat.com>
9485
9486 PR tree-optimization/56035
9487 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9488
7e184bd7
UB
94892012-01-24 Uros Bizjak <ubizjak@gmail.com>
9490
9491 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9492 (*movtf_internal_rex64): Add (!o,C) alternative
9493 (*movxf_internal_rex64): Ditto.
9494 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9495
f5ba49ac
SM
94962013-01-24 Shenghou Ma <minux.ma@gmail.com>
9497
9498 * doc/invoke.texi: fix typo.
9499 * doc/objc.texi: fix typo.
9500
a6343728
RS
95012013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9502
9503 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9504 for the first two alternatives.
9505
cd030c07
DN
95062013-01-24 Diego Novillo <dnovillo@google.com>
9507
77dc5297 9508 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
9509 (ggc-zone.o): Remove.
9510 * configure.ac: Remove option --with-gc.
9511 * configure: Re-generate.
9512 * doc/install.texi: Remove documentation for --with-gc.
9513 * gengtype.c (write_enum_defn): Remove. Update all users.
9514 (write_Types_process_field): Remove generation of gt_e_* argument.
9515 (output_type_enum): Remove. Update all users.
9516 (write_enum_defn): Remove. Update all users.
9517 (enum alloc_zone): Remove. Update all users.
77dc5297 9518 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
9519 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9520 Update all callers.
9521 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 9522 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
9523 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9524 Update all users.
aaf1e810 9525 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
9526 (struct alloc_zone): Remove.
9527 (ggc_internal_alloc_zone_stat): Remove.
9528 (ggc_internal_cleared_alloc_zone_stat): Remove.
9529 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
9530 (ggc_pch_count_object): Remove last argument. Update all users.
9531 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
9532 (struct alloc_zone): Remove.
9533 * ggc-zone.c: Remove.
77dc5297 9534 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
9535 (struct alloc_zone): Remove.
9536 (ggc_alloc_typed_stat): Remove.
9537 (ggc_alloc_typed): Remove.
9538 (ggc_splay_alloc): Remove first argument.
9539 (rtl_zone): Remove. Update all users.
9540 (tree_zone): Remove. Update all users.
9541 (tree_id_zone): Remove. Update all users.
9542 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 9543 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 9544 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 9545 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 9546
a861ffa4
GJL
95472013-01-24 Georg-Johann Lay <avr@gjlay.de>
9548
9549 * config/avr/avr.c (avr_out_fract): Make register numbers that
9550 might be outside of source operand signed.
9551
593c0ddd
UB
95522013-01-24 Uros Bizjak <ubizjak@gmail.com>
9553
9554 * config/i386/constraints.md (Yf): New constraint.
9555 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9556 of f constraint to conditionaly disable x87 register preferences.
9557 (*movdf_internal): Ditto.
9558 (*movsf_internal): Ditto.
9559
e86c0101
SB
95602013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9561
9562 PR inline-asm/55934
9563 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9564 that have operands with impossible constraints.
9565 Add a FIXME for a speed-up opportunity.
9566 * lra-constraints.c (process_alt_operands): Verify that a class
9567 selected from constraints on asms is valid for the operand mode.
9568 (curr_insn_transform): Remove incorrect comment.
9569
f6fee35f
DE
95702013-01-23 David Edelsohn <dje.gcc@gmail.com>
9571
9572 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9573 TOC operand is a valid symbol ref in the constant pool.
9574
95752013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 9576
aaf1e810 9577 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 9578
dc62d7d1
GJL
95792013-01-23 Georg-Johann Lay <avr@gjlay.de>
9580
9581 PR target/54222
9582 * config/avr/stdfix.h: New file.
9583 * t-avr (stdfix-gcc.h): New rule to build it.
9584 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9585
2660d12d
KS
95862013-01-23 Kostya Serebryany <kcc@google.com>
9587
77dc5297
UB
9588 * config/darwin.h: remove dependency on
9589 CoreFoundation (asan on Mac OS).
2660d12d 9590
a70418fc
JJ
95912013-01-23 Jakub Jelinek <jakub@redhat.com>
9592
9593 PR target/49069
9594 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9595 instead of cmpdi_operand for first comparison operand.
9596 Don't assert that comparison operands aren't both constants.
9597
47876a2a
JW
95982013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9599
9600 * doc/install.texi (Downloading the Source): Update references to
9601 downloading separate components.
9602
96032013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
9604
9605 * doc/extend.texi (__int128): Improve grammar.
9606
47876a2a 96072013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
9608
9609 PR target/56028
9610 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9611 alternative to (o,r).
9612 (*movdi_internal_rex64): Remove (!o,n) alternative.
9613 (DImode immediate->memory splitter): Remove.
9614 (DImode immediate->memory peephole2): Remove.
9615 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9616 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9617 alternative to (!o,*r).
9618 (*movtf_internal_sse): New pattern.
9619 (*movxf_internal_rex64): New pattern.
9620 (*movxf_internal): Disable for TARGET_64BIT.
9621 (*movdf_internal_rex64): Remove (!o,F) alternative.
9622
3a984f10
JJ
96232013-01-22 Jakub Jelinek <jakub@redhat.com>
9624
502498d5
JJ
9625 PR middle-end/56074
9626 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9627 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9628 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9629 stmt locations where LOCATION_LOCUS of the stmt location is
9630 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9631
3a984f10
JJ
9632 PR target/55686
9633 * config/i386/i386.md (UNSPEC_STOS): New.
9634 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9635 *strsetqi_1): Add UNSPEC_STOS.
9636
fa817f7f
PC
96372013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9638
9639 PR c++/56067
9640 * doc/invoke.texi: Remove left over -Wsynth example.
9641
8f498c1b
JJ
96422013-01-21 Jakub Jelinek <jakub@redhat.com>
9643
9644 PR tree-optimization/56051
9645 * fold-const.c (fold_binary_loc): Don't fold
9646 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9647 a narrowing conversion, or widening conversion from signed
9648 to unsigned.
9649
47876a2a 96502013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
9651
9652 PR rtl-optimization/56023
9653 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9654 dependent on debug instruction.
9655
5b9db1bc
MJ
96562013-01-21 Martin Jambor <mjambor@suse.cz>
9657
9658 PR middle-end/56022
9659 * function.c (allocate_struct_function): Call
9660 invoke_set_current_function_hook earlier.
9661
e8bb7d68
JJ
96622013-01-21 Jakub Jelinek <jakub@redhat.com>
9663
9664 * reload1.c (init_reload): Only initialize reload_obstack
9665 during the first call.
9666
616a4e32
MP
96672013-01-21 Marek Polacek <polacek@redhat.com>
9668
9669 * cfgloop.c (verify_loop_structure): Fix up grammar.
9670
4401981b
YHH
96712013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9672
9673 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9674 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9675
8e87740b
RR
96762013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9677
9678 PR target/56058
9679 * config/arm/marvell-pj4.md: Update copyright year.
9680 Fix up use of alu to alu_reg and simple_alu_imm.
9681
47876a2a 96822013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
9683
9684 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9685
89d56d79
VM
96862013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9687
9688 PR target/55433
9689 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 9690 insn for secondary memory move when memory mode should be different.
89d56d79 9691
fe603553
JDA
96922013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9693
9694 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9695 atomic_storedi_1): New patterns.
9696
01284895
VK
96972013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9698
9699 btver2 pipeline descriptions.
9700 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9701 descriptions.
9702 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 9703 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
9704 type attributes.
9705 * config/i386/btver2.md: New file describing btver2 pipelines.
9706
5630e3e1
JL
97072013-01-19 Andrew Pinski <apinski@cavium.com>
9708
9709 PR tree-optimization/52631
9710 * tree-ssa-sccvn (visit_use): Before looking up the original
9711 statement, try looking up the simplified expression.
9712
650ae806
AG
97132013-01-19 Anthony Green <green@moxielogic.com>
9714
9715 * config/moxie/moxie.c (moxie_expand_prologue): Set
9716 current_function_static_stack_size.
9717
e300ec2d
JJ
97182013-01-18 Jakub Jelinek <jakub@redhat.com>
9719
9720 PR tree-optimization/56029
9721 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9722 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9723
a3d7af04
SS
97242013-01-18 Sharad Singhai <singhai@google.com>
9725
9726 PR tree-optimization/55995
9727 * dumpfile.c (dump_loc): Print location only if available.
9728 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9729
66aa7879
VM
97302013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9731
9732 PR target/55433
9733 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9734 secondary memory move.
9735 (inherit_reload_reg): Use rclass instead of cl for
9736 check_secondary_memory_needed_p.
9737
3f0fee7b
JJ
97382013-01-18 Jakub Jelinek <jakub@redhat.com>
9739
9740 PR middle-end/56015
9741 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 9742 the case where writing real complex part of target modifies op1.
3f0fee7b 9743
70c67693
JG
97442013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9745
9746 * config/aarch64/aarch64-simd.md
9747 (aarch64_vcond_internal<mode>): Handle unordered cases.
9748 * config/aarch64/iterators.md (v_cmp_result): New.
9749
df8de9b3
YHH
97502013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9751 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9752
9753 * config/arm/marvell-pj4.md: New file.
9754 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9755 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9756 (generic_vfp): Likewise.
9757 * config/arm/arm-cores.def: Add marvell-pj4.
9758 * config/arm/arm-tune.md: Regenerate.
9759 * config/arm/arm-tables.opt: Regenerate.
9760 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9761 * doc/invoke.texi: Document marvell-pj4.
9762
be30c356
TB
97632013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9764
9765 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9766
0bfbca58 97672013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
9768
9769 PR debug/54114
9770 PR debug/54402
9771 PR debug/49888
9772 * var-tracking.c (negative_power_of_two_p): New.
9773 (global_get_addr_cache, local_get_addr_cache): New.
9774 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9775 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9776 heading comment.
9777 (vt_stack_offset_p): Remove.
9778 (vt_canon_true_dep): Always canonicalize loc's address.
9779 (clobber_overlapping_mems): Make sure we have a MEM.
9780 (local_get_addr_clear_given_value): New.
9781 (val_reset): Clear local cached entries.
9782 (compute_bb_dataflow): Create and release the local cache.
9783 Disable duplicate MEMs clobbering.
9784 (emit_notes_in_bb): Clobber MEMs likewise.
9785 (vt_emit_notes): Create and release the local cache.
9786 (vt_initialize, vt_finalize): Create and release the global
9787 cache, respectively.
1f6bc337 9788 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 9789
0bfbca58 97902013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
9791
9792 PR libmudflap/53359
9793 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9794 not found in the symtab.
9795
0bfbca58 97962013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 9797
c350ba53 9798 PR debug/56006
3aa03517
AO
9799 PR rtl-optimization/55547
9800 PR rtl-optimization/53827
9801 PR debug/53671
9802 PR debug/49888
9803 * alias.c (offset_overlap_p): New, factored out of...
9804 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9805 the conservative special case for symbolic constants. Don't
9806 adjust zero sizes on alignment.
9807
c664546f
JL
98082013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9809
9810 PR rtl-optimization/52573
9811 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9812 REG_UNUSED for the same register.
9813
1bd3f750
MP
98142013-01-17 Richard Biener <rguenther@suse.de>
9815 Marek Polacek <polacek@redhat.com>
9816
9817 PR rtl-optimization/55833
9818 * loop-unswitch.c (unswitch_loops): Move loop verification...
9819 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9820 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9821 Set it to true when we're removing a loop from hierarchy tree in
9822 an irreducible region.
9823 (fix_bb_placements): Adjust caller.
9824 (fix_loop_placements): Likewise.
9825
e52a8b71
GJL
98262013-01-17 Georg-Johann Lay <avr@gjlay.de>
9827
9828 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9829 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9830 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9831 Remove ID. Adjust comments.
9832 * config/avr/avr-c.c (avr_builtin_name): Remove.
9833 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9834 * config/avr/avr.c (avr_tolower): New static function.
9835 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9836 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9837 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9838 default expansion.
9839
8386a7ea
JH
98402013-01-17 Jan Hubicka <jh@suse.cz>
9841
610fb637 9842 PR tree-optimization/55273
8386a7ea
JH
9843 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9844
47876a2a 98452013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
9846
9847 PR target/55981
9848 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9849 store through atomic_store<mode>_1.
9850 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9851
8222c37e
MJ
98522013-01-17 Martin Jambor <mjambor@suse.cz>
9853
9854 PR tree-optimizations/55264
9855 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9856 for virtual methods.
9857 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9858 virtual methods before inlining is over.
9859 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9860 virtual functions.
9861 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9862 non-virtual.
9863
79f01c76
VM
98642013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9865
9866 PR rtl-optimization/56005
9867 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9868 pending reads for prefetch.
9869
d0b6bb1b
IB
98702013-01-16 Ian Bolton <ian.bolton@arm.com>
9871
aaf1e810 9872 * config/aarch64/aarch64.md
d0b6bb1b
IB
9873 (*cstoresi_neg_uxtw): New pattern.
9874 (*cmovsi_insn_uxtw): New pattern.
9875 (*<optab>si3_uxtw): New pattern.
9876 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9877 (*<optab>si3_insn_uxtw): New pattern.
9878 (*bswapsi2_uxtw): New pattern.
9879
cb9cf03b
RB
98802013-01-16 Richard Biener <rguenther@suse.de>
9881
9882 * tree-inline.c (tree_function_versioning): Remove set but
9883 never used variable.
9884
2cfc56b9
RB
98852013-01-16 Richard Biener <rguenther@suse.de>
9886
9887 PR tree-optimization/55964
9888 * tree-flow.h (rename_variables_in_loop): Remove.
9889 (rename_variables_in_bb): Likewise.
9890 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9891 (copy_loop_before): Adjust and delete update-ssa status.
9892 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 9893 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
9894 (rename_variables_in_loop): Remove.
9895 (slpeel_update_phis_for_duplicate_loop): Likewise.
9896 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9897 use available cfg machinery instead of duplicating it.
9898 Update PHI nodes and perform poor-mans SSA update here.
9899 (slpeel_tree_peel_loop_to_edge): Adjust.
9900
c25a0c60
RB
99012013-01-16 Richard Biener <rguenther@suse.de>
9902
9903 PR tree-optimization/54767
9904 PR tree-optimization/53465
9905 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9906 (vrp_visit_phi_node): For PHI arguments coming via backedges
9907 drop all symbolical range information.
9908 (execute_vrp): Compute backedges.
9909
04b535af
RB
99102013-01-16 Richard Biener <rguenther@suse.de>
9911
9912 * doc/install.texi: Update CLooG and ISL requirements to
9913 0.18.0 and 0.11.1.
9914
8b0a1e0b
CB
99152013-01-16 Christian Bruel <christian.bruel@st.com>
9916
9917 PR target/55301
9918 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9919 (broken_move): Handle UNSPECV_SP_SWITCH_B.
9920 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9921
99222013-01-16 DJ Delorie <dj@redhat.com>
9923
9924 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9925 (UNSPECV_SP_SWITCH_E): New.
9926 (sp_switch_1): Change to an unspec.
9927 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9928 replace $r15.
9929
99302013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
9931
9932 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9933 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9934 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9935 (expand_mem_thread_fence): Ditto.
9936 (expand_mem_signal_fence): Ditto.
9937 (expand_atomic_load): Ditto.
9938 (expand_atomic_store): Ditto.
9939
0bfbca58 99402013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
9941
9942 PR rtl-optimization/55547
9943 PR rtl-optimization/53827
9944 PR debug/53671
9945 PR debug/49888
9946 * alias.c (memrefs_conflict_p): Set sizes to negative after
9947 AND adjustments.
9948
305e3ac1
JJ
99492013-01-15 Jakub Jelinek <jakub@redhat.com>
9950
9951 PR target/55940
9952 * function.c (thread_prologue_and_epilogue_insns): Always
9953 add crtl->drap_reg to set_up_by_prologue.set, even if
9954 stack_realign_drap is false.
9955
f78ac4f2
JBG
99562013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9957
9958 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9959 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9960 *call): Fix indention.
9961
a78a8cc4
TV
99622013-01-15 Tom de Vries <tom@codesourcery.com>
9963
9964 PR target/55876
9965 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9966 Update comment.
9967
0e80383f
VM
99682013-01-15 Vladimir Makarov <vmakarov@redhat.com>
9969
305e3ac1 9970 PR rtl-optimization/55153
0e80383f
VM
9971 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9972
207b5956
MJ
99732013-01-15 Martin Jambor <mjambor@suse.cz>
9974
9975 PR tree-optimization/55920
9976 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9977 accesses as grp_to_be_debug_replaced.
9978
a7818b54
JJ
99792013-01-15 Jakub Jelinek <jakub@redhat.com>
9980
9981 PR tree-optimization/55920
9982 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9983 there is non-useless type conversion needed from debug rhs to lhs,
9984 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9985
b0fe107e
JM
99862013-01-15 Joseph Myers <joseph@codesourcery.com>
9987 Mikael Pettersson <mikpe@it.uu.se>
9988
9989 PR target/43961
9990 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9991 Thumb.
9992 (ASM_OUTPUT_CASE_LABEL): Remove.
9993 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9994 * final.c (shorten_branches): Update alignment of labels before
9995 jump tables if CASE_VECTOR_SHORTEN_MODE.
9996
34ab62ee
RB
99972013-01-15 Richard Biener <rguenther@suse.de>
9998
9999 PR bootstrap/55961
10000 * system.h: Do not include gmp.h for building host tools.
10001
783a3a05
RB
100022013-01-15 Richard Biener <rguenther@suse.de>
10003
10004 PR middle-end/55882
10005 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10006 account for bitpos when computing alignment.
10007
3a579e09
VY
100082013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10009
10010 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10011 (ix86_target_macros_internal): Likewise.
10012
10013 * config/i386/i386.c (m_CORE2I7): Removed.
10014 (m_CORE_HASWELL): New macro.
10015 (m_CORE_ALL): Likewise.
10016 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10017 (initial_ix86_arch_features): Likewise.
10018 (processor_target_table): Initializations for Core avx2.
10019 (cpu_names): New names "core-avx2".
10020 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10021 PROCESSOR_CORE_HASWELL.
10022 (ix86_issue_rate): New case.
10023 (ia32_multipass_dfa_lookahead): Likewise.
10024 (ix86_sched_init_global): Likewise.
10025
10026 * config/i386/i386.h (TARGET_HASWELL): New macro.
10027 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10028 (processor_type): New PROCESSOR_HASWELL.
10029
955f5a07
JJ
100302013-01-15 Jakub Jelinek <jakub@redhat.com>
10031
ff784829
JJ
10032 PR tree-optimization/55955
10033 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10034 *SHIFT_EXPR and *ROTATE_EXPR codes.
10035
955f5a07
JJ
10036 PR tree-optimization/48766
10037 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10038 -ftrapv disable -fwrapv.
10039
aeb8b4e9
GJL
100402013-01-14 Georg-Johann Lay <avr@gjlay.de>
10041
10042 PR target/55974
10043 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10044 etc. to 1 and not to __flash.
10045 Use LL suffix for __INT24_MAX__ with -mint8.
10046 Use ULL suffix for __UINT24_MAX__ with -mint8.
10047
1c494c6a
GJL
100482013-01-14 Georg-Johann Lay <avr@gjlay.de>
10049
10050 * config/avr/avr-arch.h
10051 (struct base_arch_s): Use typedef avr_arch_t instead.
10052 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10053 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10054 * config/avr/avr.c: Same.
10055 * config/avr/avr-devices.c: Same.
10056 * config/avr/driver-avr.c: Same.
10057 * config/avr/gen-avr-mmcu-texi.c: Same.
10058 * config/avr/avr-mcus.def: Adjust comment.
10059
a50344cb
TB
100602013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10061
88e784e6
UB
10062 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10063 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10064
47876a2a 100652013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10066 Andi Kleen <ak@linux.intel.com>
10067
10068 PR target/55948
10069 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10070 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10071 memmodel flag.
10072
00892272
GJL
100732013-01-14 Georg-Johann Lay <avr@gjlay.de>
10074
10075 * config/avr/avr-stdint.h: Remove trailing blanks.
10076 * config/avr/avr-log.h: Same.
10077 * config/avr/avr-arch.h: Same.
10078 * config/avr/avr-devices.c: Same.
10079 * config/avr/avr-dimode.md: Same.
10080 * config/avr/predicates.md: Same.
10081 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10082
00892272
GJL
10083 * config/avr/avr-protos.h: Same. And:
10084 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10085 (init_cumulative_args): Rename to avr_init_cumulative_args.
10086 (expand_prologue): Rename to avr_expand_prologue.
10087 (expand_epilogue): Rename to avr_expand_epilogue.
10088 (adjust_insn_length): Rename to avr_adjust_insn_length.
10089 (notice_update_cc): Rename to avr_notice_update_cc.
10090 (final_prescan_insn): Rename to avr_final_prescan_insn.
10091 * config/avr/avr.c: Same.
10092 * config/avr/avr.h: Same.
10093 * config/avr/avr.md: Remove trailing blanks.
10094 (prologue): Use avr_expand_prologue.
10095 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10096
7bb01996
RB
100972013-01-14 Richard Biener <rguenther@suse.de>
10098
10099 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10100 verify_location, collect_subblocks): New functions.
10101 (verify_gimple_in_cfg): Verify that locations only reference
10102 BLOCKs in the functions BLOCK tree.
10103
2724573f
RB
101042013-01-14 Richard Biener <rguenther@suse.de>
10105
10106 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10107 PHI argument.
10108 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10109 unshare reference.
10110 (insert_out_of_ssa_copy_on_edge): Likewise.
10111 (rewrite_close_phi_out_of_ssa): Likewise.
10112 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10113 debug expressions.
10114 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10115 propagated constants.
10116 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10117 can not be shared.
10118
9a0bbab6
GJL
101192013-01-14 Georg-Johann Lay <avr@gjlay.de>
10120
10121 * config/avr/avr-modes.def: Add GPL copyright notice.
10122
45805f17
UB
101232013-01-13 Uros Bizjak <ubizjak@gmail.com>
10124
10125 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10126 MEMMODEL_MASK to determine memory model.
10127 (atomic_store<mode>): Ditto from operands[2].
10128 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10129
9d60be38
JJ
101302013-01-13 Jakub Jelinek <jakub@redhat.com>
10131
10132 PR fortran/55935
45805f17 10133 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
10134 (fold_gimple_assign): Don't call unshare_expr here.
10135 (fold_ctor_reference): Call unshare_expr.
10136
e7f49d92
TG
101372013-01-13 Terry Guo <terry.guo@arm.com>
10138
aaf1e810
EB
10139 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10140 * doc/fragments.texi: Document MULTILIB_REUSE.
10141 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 10142 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 10143 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
10144 (tmpmultilib4): Ditto.
10145 (multilib_reuse): New multilib argument.
10146
fbd03a27
RS
101472013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10148
10149 * Makefile.in: Update copyright.
10150
b3681f13
TV
101512013-01-12 Tom de Vries <tom@codesourcery.com>
10152
10153 PR middle-end/55890
10154 * calls.c (expand_call): Check if arg_nr is valid.
10155
3f287e4b
MM
101562013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10157
10158 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10159 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
10160 documentation. Add missing '__' in front of
10161 __builtin_ia32_packssdw256.
3f287e4b 10162
1abcd5eb
AK
101632013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10164
10165 PR target/55719
10166 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10167 NO_REGS for larl operands.
10168 (s390_reload_larl_operand): Use s390_load_address instead of
10169 emit_move_insn.
10170
980d0812
RB
101712013-01-11 Richard Biener <rguenther@suse.de>
10172
10173 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10174 (verify_node_sharing): ... here.
10175 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10176
7cb9fd07
EB
101772013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10178
10179 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10180 Substitute TREECHECKING.
10181 * configure: Regenerate.
10182 * Makefile.in (TREECHECKING): New.
10183
47876a2a 101842013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
10185
10186 PR tree-optimization/44061
10187 * tree-vrp.c (extract_range_basic): Compute zero as
10188 value-range for __builtin_constant_p of function parameters.
10189
d1e082c2
RS
101902013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10191
45805f17 10192 Update copyright years.
d1e082c2 10193
f85021b0
VM
101942013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10195
9d60be38 10196 PR rtl-optimization/55672
0160442c
VM
10197 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10198 const to be eliminable.
f85021b0 10199
7a8b1ec4
DE
102002013-01-10 David Edelsohn <dje.gcc@gmail.com>
10201
10202 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10203 * configure: Regenerate.
10204
ad2e5b71
RB
102052013-01-10 Richard Biener <rguenther@suse.de>
10206
ddf9322d 10207 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 10208
ffc5b2bb
RB
102092013-01-10 Richard Biener <rguenther@suse.de>
10210
10211 PR bootstrap/55792
10212 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10213 locations for virtual PHI arguments.
10214 (rewrite_update_phi_arguments): Likewise.
10215
e1f674e4
JS
102162013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10217
10218 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10219 on to assembler.
10220
a57fc743
JJ
102212013-01-10 Jakub Jelinek <jakub@redhat.com>
10222
10223 PR tree-optimization/55921
10224 * tree-complex.c (expand_complex_asm): New function.
10225 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10226
0ff4390d
AK
102272013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10228
10229 PR target/55718
10230 * config/s390/s390.c (s390_symref_operand_p)
10231 (s390_loadrelative_operand_p): Merge the two functions.
10232 (s390_check_qrst_address, print_operand_address): Add parameters
10233 to s390_loadrelative_operand_p invokation.
10234 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10235 (s390_reload_larl_operand, s390_secondary_reload): Use
10236 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10237 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10238
6f557e0e
MS
102392013-01-09 Mike Stump <mikestump@comcast.net>
10240
10241 * dse.c (record_store): Remove unnecessary assert.
10242
7770c9e9
JH
102432013-01-09 Jan Hubicka <jh@suse.cz>
10244
10245 PR tree-optimization/55569
10246 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10247 * cfgloop.h (scale_loop_profile): Likewise.
10248
a19b1432
JH
102492013-01-09 Jan Hubicka <jh@suse.cz>
10250
10251 PR lto/45375
ddf9322d
UB
10252 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10253 functions.
a19b1432
JH
10254 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10255
9a002da8
RS
102562013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10257
10258 PR middle-end/55114
10259 * expr.h (maybe_emit_group_store): Declare.
10260 * expr.c (maybe_emit_group_store): New function.
10261 * builtins.c (expand_builtin_int_roundingfn): Call it.
10262 (expand_builtin_int_roundingfn_2): Likewise.
10263
511dcace
VM
102642013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10265
e1f2b729 10266 PR rtl-optimization/55829
511dcace
VM
10267 * lra-constraints.c (match_reload): Add code for absent output.
10268 (curr_insn_transform): Add code for reloads of matched inputs
10269 without output.
10270
7b0fe4f4
UB
102712013-01-09 Uros Bizjak <ubizjak@gmail.com>
10272
10273 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10274 attribute of movddup insn to DF.
10275 (*vec_interleave_lowv2df): Ditto.
10276 (vec_dupv2df): Ditto.
10277
870ca331
JH
102782013-01-09 Jan Hubicka <jh@suse.cz>
10279
10280 PR tree-optimiation/55875
10281 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10282 EVERY_ITERATION parameter.
7b0fe4f4 10283 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
10284 (idx_infer_loop_bounds): Similarly here.
10285 (n_of_executions_at_most): Simplify
10286 to only test for cases where statement is dominated by the
7b0fe4f4 10287 particular bound; handle correctly the "postdominance" test.
870ca331
JH
10288 (scev_probably_wraps_p): Use max loop iterations info
10289 as a global bound first.
10290
6f575fe4 102912013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
10292 Nick Clifton <nickc@redhat.com>
10293
10294 * config/v850/v850.md (cbranchsf4): New pattern.
10295 (cstoresf4): New pattern.
10296 (cbranchdf4): New pattern.
10297 (cstoredf4): New pattern.
10298 (movsicc): Disallow floating point comparisons.
10299 (cmpsf_le_insn): Fix order of operators.
10300 (cmpsf_lt_insn): Likewise.
10301 (cmpsf_eq_insn): Likewise.
10302 (cmpdf_le_insn): Likewise.
10303 (cmpdf_lt_insn): Likewise.
10304 (cmpdf_eq_insn): Likewise.
10305 (cmpsf_ge_insn): Use LE comparison.
10306 (cmpdf_ge_insn): Likewise.
10307 (cmpsf_gt_insn): Use LT comparison.
10308 (cmpdf_gt_insn): Likewise.
10309 (cmpsf_ne_insn): Delete pattern.
10310 (cmpdf_ne_insn): Delete pattern.
10311 * config/v850/v850.c (v850_gen_float_compare): Use
10312 gen_cmpdf_eq_insn for NE comparison.
10313 (v850_float_z_comparison_operator)
10314 (v850_float_nz_comparison_operator): Move from here ...
10315 * config/v850/predicates.md: ... to here. Move GT and GE
10316 comparisons into v850_float_z_comparison_operator.
10317 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10318 Delete prototype.
10319 (v850_float_nz_comparison_operator): Likewise.
10320
f0d54148
JDA
103212013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10322
10323 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10324 with calls to gen_insvsi/gen_insvdi.
10325
8f01beca
VK
103262013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10327
10328 * config/i386/i386.c (initial_ix86_tune_features): Set up
10329 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10330
2aa579ad
JJ
103312013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10332 Jakub Jelinek <jakub@redhat.com>
10333
10334 PR tree-optimization/48189
10335 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10336 If nitercst is 0, don't predict the exit edge.
10337
6edc3e32 103382013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
10339
10340 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10341 in asm_fprintf with reg_names.
10342 (aarch64_print_operand_address): Likewise.
10343 (aarch64_return_addr): Likewise.
10344 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10345
f6f94d94
JDA
103462013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10347
10348 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10349 (INT_U6_BITS): Likewise.
10350 * config/pa/predicates.md (uint6_operand): New predicate.
10351 (shift5_operand, shift6_operand): Likewise.
10352 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10353 arith32_operand.
10354 (lshrdi3): Use shift6_operand.
10355 (shrpsi4, shrpdi4): New insn patterns.
10356 (extzv): Delete expander.
10357 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10358 predicates in unamed zero extract patterns. Tighten common constraint.
10359 (extv): Delete expander.
10360 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10361 predicates in unamed sign extract patterns. Tighten common constraint.
10362 (insv): Delete expander.
10363 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10364 predicates in unamed insert patterns. Tighten common constraint.
10365 Change uint32_operand predicate to uint6_operand predicate in unamed
10366 DImode pattern to insert constant values of type 1...1xxxx.
10367
36b72910
JH
103682013-01-04 Jan Hubicka <jh@suse.cz>
10369
10370 PR tree-optimization/55823
7b0fe4f4
UB
10371 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10372 issue.
36b72910 10373
47876a2a 103742013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
10375 Uros Bizjak <ubizjak@gmail.com>
10376
10377 PR rtl-optimization/55845
10378 * df-problems.c (can_move_insns_across): Stop scanning at
10379 volatile_insn_p source instruction or give up if
10380 across_from .. across_to range contains any volatile_insn_p
10381 instructions.
10382
4369c11e
TB
103832013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10384
7b0fe4f4
UB
10385 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10386 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10387 Declare.
4369c11e 10388 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 10389 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 10390
aeb7e7c1
JJ
103912013-01-08 Jakub Jelinek <jakub@redhat.com>
10392
10393 PR fortran/55341
10394 * asan.c (asan_clear_shadow): New function.
10395 (asan_emit_stack_protection): Use it.
10396
a02ad1aa
TB
103972013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10398
10399 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10400 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10401 with tab instead of space.
10402
f90d87f5
NC
104032013-01-08 Nick Clifton <nickc@redhat.com>
10404
10405 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10406 register bank 0 at the start of an interrupt handler.
83ffd964
NC
10407 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10408 MDBH registers.
f90d87f5 10409
385eb93d
JG
104102013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10411
10412 * config/aarch64/aarch64-simd.md
10413 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10414 (aarch64_simd_bsl): Likewise.
10415 (aarch64_vcond_internal<mode>): Likewise.
10416 (vcond<mode><mode>): Likewise.
10417 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10418 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10419
4dcd1054
JG
104202013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10421
10422 * config/aarch64/aarch64-builtins.c
10423 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10424
4267a4a6
MJ
104252013-01-08 Martin Jambor <mjambor@suse.cz>
10426
10427 PR debug/55579
10428 * tree-sra.c (analyze_access_subtree): Return true also after
10429 potentially creating a debug-only replacement.
10430
5f4e6de3
JJ
104312013-01-08 Jakub Jelinek <jakub@redhat.com>
10432
3138f224
JJ
10433 PR middle-end/55890
10434 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10435
5f4e6de3
JJ
10436 PR tree-optimization/54120
10437 * tree-vrp.c (range_fits_type_p): Don't allow
10438 src_precision < precision from signed vr to unsigned_p
10439 if vr->min or vr->max is negative.
10440 (simplify_float_conversion_using_ranges): Test can_float_p
10441 against CODE_FOR_nothing.
10442
f3ef18ff
JJ
104432013-01-08 Jakub Jelinek <jakub@redhat.com>
10444 Richard Biener <rguenther@suse.de>
10445
10446 PR middle-end/55851
10447 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10448 types instead of just INTEGER_TYPE types.
10449
25c210f9
MK
104502013-01-07 Mark Kettenis <kettenis@openbsd.org>
10451
10452 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10453 TF_SIZE): Define.
f90d87f5 10454
81826a7b
SE
104552013-01-07 Steve Ellcey <sellcey@mips.com>
10456
10457 PR target/42661
10458 * config/mips/mips.opt: Change mad to mmad to match documentation.
10459
35678514
GJL
104602013-01-07 Georg-Johann Lay <avr@gjlay.de>
10461
10462 PR target/55897
10463 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10464 .progmemx.data now.
10465
e5669488
GJL
104662013-01-07 Georg-Johann Lay <avr@gjlay.de>
10467
10468 PR target/55897
10469 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10470 (avr_addrspace_t): Add .section_name field.
10471 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10472 array size.
10473 (avr_addrspace): Same. Initialize .section_name. Remove last
10474 NULL entry. Put __memx into .progmemx.data.
10475 (progmem_section_prefix): Remove.
10476 (avr_asm_init_sections): No need to initialize progmem_section.
10477 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10478 section name prefix.
10479 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10480 retrieve the progmem section.
10481 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10482 boundary to run over avr_addrspace[].
10483 (avr_register_target_pragmas): Ditto.
10484
656e6f37
JJ
104852013-01-06 Jakub Jelinek <jakub@redhat.com>
10486
10487 * varasm.c (output_constant_def_contents): For asan_protect_global
10488 protected strings, adjust DECL_ALIGN if needed, before testing for
10489 anchored symbols.
10490 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10491 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10492 normal decls.
10493 (output_object_block): For asan protected decls, emit asan padding
10494 after their contents.
10495 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10496 (asan_finish_file): Test it here instead.
10497
6edc3e32
UB
104982013-01-07 Nick Clifton <nickc@redhat.com>
10499 Matthias Klose <doko@debian.org>
10500 Doug Kwan <dougkwan@google.com>
10501 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
10502
10503 PR driver/55470
10504 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10505
10506 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10507
10508 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10509
7b0fe4f4 10510 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
10511
10512 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10513
2a095093
GJL
105142013-01-07 Georg-Johann Lay <avr@gjlay.de>
10515
f3b503f4 10516 PR target/54461
2a095093
GJL
10517 * doc/install.texi (Cross-Compiler-Specific Options): Document
10518 --with-avrlibc.
10519
383f9b34
TB
105202013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10521
10522 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10523 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10524 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10525 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10526 vqmovun_high_s64): Fix source operand number and update copyright.
10527
3626621a
RB
105282013-01-07 Richard Biener <rguenther@suse.de>
10529
10530 PR middle-end/55890
10531 * gimple.h (gimple_call_builtin_p): New overload.
10532 * gimple.c (validate_call): New function.
10533 (gimple_call_builtin_p): Likewise.
10534 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10535 Use gimple_call_builtin_p.
10536 (find_func_clobbers): Likewise.
10537 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10538 (strlen_optimize_stmt): Likewise.
10539
8b2ea410
JG
105402013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10541
10542 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10543 (vld1q_dup_*): Likewise.
10544 (vld1_*): Likewise.
10545 (vld1q_*): Likewise.
10546 (vld1_lane_*): Likewise.
10547 (vld1q_lane_*): Likewise.
10548
9713d329
RB
105492013-01-07 Richard Biener <rguenther@suse.de>
10550
10551 * lto-streamer.h (LTO_minor_version): Bump to 2.
10552
3520f7cc
JG
105532013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10554
10555 * config/aarch64/aarch64-protos.h
10556 (aarch64_const_double_zero_rtx_p): Rename to...
10557 (aarch64_float_const_zero_rtx_p): ...this.
10558 (aarch64_float_const_representable_p): New.
10559 (aarch64_output_simd_mov_immediate): Likewise.
10560 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10561 move immediate case.
10562 * config/aarch64/aarch64.c
10563 (aarch64_const_double_zero_rtx_p): Rename to...
10564 (aarch64_float_const_zero_rtx_p): ...this.
10565 (aarch64_print_operand): Allow printing of new constants.
10566 (aarch64_valid_floating_const): New.
10567 (aarch64_legitimate_constant_p): Check for valid floating-point
10568 constants.
10569 (aarch64_simd_valid_immediate): Likewise.
10570 (aarch64_vect_float_const_representable_p): New.
10571 (aarch64_float_const_representable_p): Likewise.
10572 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10573 (aarch64_output_simd_mov_immediate): New.
10574 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10575 (*movdf_aarch64): Likewise.
10576 * config/aarch64/constraints.md (Ufc): New.
10577 (Y): call aarch64_float_const_zero_rtx.
10578 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10579
e167c04d
RB
105802013-01-07 Richard Biener <rguenther@suse.de>
10581
10582 PR tree-optimization/55888
10583 PR tree-optimization/55862
10584 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10585 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10586 not if it is contained therein.
10587
0139aaab
GJL
105882013-01-07 Georg-Johann Lay <avr@gjlay.de>
10589
10590 * config/avr/t-avr: Typo.
10591
4a176b23
GJL
105922013-01-07 Georg-Johann Lay <avr@gjlay.de>
10593
10594 PR55243
10595 * config/avr/t-avr: Don't automatically rebuild
10596 $(srcdir)/config/avr/t-multilib
10597 $(srcdir)/config/avr/avr-tables.opt
10598 $(srcdir)/doc/avr-mmcu.texi
10599 (avr-mcus): New phony target to build them on request.
10600 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10601 * avr/avr-mcus.def: Adjust comments.
10602
c7afdc98
UB
106032013-01-07 Uros Bizjak <ubizjak@gmail.com>
10604
10605 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10606
1ab05c31
RS
106072013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10608
10609 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10610
488e3acc
RS
106112013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10612
10613 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10614
a89599d2
DE
106152013-01-05 David Edelsohn <dje.gcc@gmail.com>
10616
10617 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10618 to generate profiling.
10619 * config/rs6000/aix64.h (LIB_SPEC): Same.
10620
70f09188
AP
106212013-01-04 Andrew Pinski <apinski@cavium.com>
10622
10623 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10624 New function.
10625 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10626
918d445f
UB
106272013-01-04 Uros Bizjak <ubizjak@gmail.com>
10628
10629 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10630 unconditionally.
10631 (ix86_expand_move): Ditto.
10632 (ix86_zero_extend_to_Pmode): Ditto.
10633 (ix86_expand_call): Ditto.
10634 (ix86_expand_special_args_builtin): Ditto.
10635 (ix86_expand_builtin): Ditto.
10636
361618ec
RB
106372013-01-04 Richard Biener <rguenther@suse.de>
10638
10639 PR tree-optimization/55862
10640 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10641 translating them through PHI nodes.
10642
87eab554
MJ
106432013-01-04 Martin Jambor <mjambor@suse.cz>
10644
10645 PR tree-optimization/55755
10646 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10647 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10648
33879b9f
MP
106492013-01-04 Marek Polacek <polacek@redhat.com>
10650
10651 PR middle-end/55859
10652 * opts.c (default_options_optimization): Clarify error message.
10653
3068819a
RB
106542013-01-04 Richard Biener <rguenther@suse.de>
10655
10656 PR middle-end/55863
10657 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10658 reassociation.
10659
0e4ae794
JDA
106602013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10661
10662 PR target/53789
10663 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
10664 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10665 references.
0e4ae794 10666
65c88cef
RH
106672013-01-03 Richard Henderson <rth@redhat.com>
10668
10669 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10670 after eliminating TLS symbols.
10671
8ac16127
MG
106722013-01-03 Marc Glisse <marc.glisse@inria.fr>
10673
10674 PR bootstrap/50167
10675 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10676 * graphite-poly.c (debug_gmp_value): Likewise.
10677
bb664f09
UB
106782013-01-03 Uros Bizjak <ubizjak@gmail.com>
10679
10680 PR target/55712
10681 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10682 selected code model, define __code_mode_small__, __code_model_medium__,
10683 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10684 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10685 xchg temporary register with %k. Declare temporary register as
10686 early clobbered.
10687 [__x86_64__]: For medium and large code models, preserve %rbx register.
10688
bcf1ef00
RB
106892013-01-03 Richard Biener <rguenther@suse.de>
10690
0506634a 10691 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
10692 (dump_subscript): Adjust.
10693 (finalize_ddr_dependent): Do not dump redundant info.
10694 (analyze_siv_subscript): Adjust.
10695 (subscript_dependence_tester): Likewise.
10696 (compute_affine_dependence): Likewise.
10697
59fd17e3
RB
106982013-01-03 Richard Biener <rguenther@suse.de>
10699
10700 Revert
10701 2013-01-03 Richard Biener <rguenther@suse.de>
10702
10703 PR tree-optimization/55857
10704 * tree-vect-stmts.c (vectorizable_load): Do not setup
10705 re-alignment for invariant loads.
10706
10707 2013-01-02 Richard Biener <rguenther@suse.de>
10708
10709 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10710 invariant load do not generate a vector load from the scalar location.
59fd17e3 10711
595c2679
RB
107122013-01-03 Richard Biener <rguenther@suse.de>
10713
10714 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10715 for not vectorizing.
10716 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10717 not build INDIRECT_REFs, call get_name once only.
10718 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10719 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10720
90bb7d7a
RB
107212013-01-03 Richard Biener <rguenther@suse.de>
10722
10723 PR tree-optimization/55857
10724 * tree-vect-stmts.c (vectorizable_load): Do not setup
10725 re-alignment for invariant loads.
10726
f09b77ca
RB
107272013-01-03 Richard Biener <rguenther@suse.de>
10728
10729 PR lto/55848
10730 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10731 prefer a built-in decl.
10732
3461a16e
JJ
107332013-01-03 Jakub Jelinek <jakub@redhat.com>
10734
df8e2b4f
JJ
10735 * gcc.c (process_command): Update copyright notice dates.
10736 * gcov.c (print_version): Likewise.
10737 * gcov-dump.c (print_version): Likewise.
10738
3461a16e
JJ
10739 PR rtl-optimization/55838
10740 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10741 iv0.step, iv1.step and step.
10742
8b5546d6
JJ
107432013-01-03 Jakub Jelinek <jakub@redhat.com>
10744 Marc Glisse <marc.glisse@inria.fr>
10745
10746 PR tree-optimization/55832
10747 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10748 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10749 integer_{one,zero}_node.
10750
8ab1d2e9
JJ
107512013-01-03 Jakub Jelinek <jakub@redhat.com>
10752
10753 PR debug/54402
10754 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10755 * var-tracking.c (reverse_op): Don't add reverse ops to
10756 VALUEs that have already
0506634a 10757 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 10758
5b9ad1d4
GP
107592013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10760
10761 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10762
e25a6711
TJ
107632013-01-02 Teresa Johnson <tejohnson@google.com>
10764
10765 * dumpfile.c (dump_loc): Print filename with location.
10766 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10767 new location_t parameter to emit complete unroll message with
10768 new dump framework.
10769 (canonicalize_loop_induction_variables): Compute loops location
10770 and pass to try_unroll_loop_completely.
10771 * loop-unroll.c (report_unroll_peel): New function.
10772 (peel_loops_completely): Use new dump format with location
10773 for main dumpfile message, and invoke report_unroll_peel on success.
10774 (decide_unrolling_and_peeling): Ditto.
10775 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10776 by report_unroll_peel.
10777 (decide_peel_completely): Ditto.
10778 (decide_unroll_constant_iterations): Ditto.
10779 (decide_unroll_runtime_iterations): Ditto.
10780 (decide_peel_simple): Ditto.
10781 (decide_unroll_stupid): Ditto.
10782 * cfgloop.c (get_loop_location): New function.
10783 * cfgloop.h (get_loop_location): Declare.
10784
77878621
ST
107852013-01-02 Sriraman Tallam <tmsriram@google.com>
10786
10787 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10788 NULL.
10789
9e65d03e
JDA
107902013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10791
10792 PR middle-end/55198
10793 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10794 BLKmode objects when EXPAND_MEMORY is specified.
10795
6a7da30f
ST
107962013-01-02 Sriraman Tallam <tmsriram@google.com>
10797
10798 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10799 in loop predicate.
10800 (fold_builtin_cpu): Do not share cpu model decls across statements.
10801
e78167f2
JM
108022013-01-02 Jason Merrill <jason@redhat.com>
10803
10804 PR c++/55804
10805 * tree.c (build_array_type_1): Revert earlier change.
10806
8c075fb4
YZ
108072013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10808
10809 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10810 "cortex-a57".
10811 * config/aarch64/aarch64-tune.md: Re-generate.
10812
0682ed3e
RB
108132013-01-02 Richard Biener <rguenther@suse.de>
10814
10815 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10816 invariant load do not generate a vector load from the scalar location.
0682ed3e 10817
b8f6a302
RB
108182013-01-02 Richard Biener <rguenther@suse.de>
10819
10820 PR bootstrap/55784
10821 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10822 * configure: Regenerate.
10823
04b80dbb
RS
108242013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10825
10826 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10827 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10828 (expand_builtin_int_roundingfn_2): Keep the original target around
10829 for the fallback case.
10830
635b0b0c
RS
108312013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10832
10833 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10834 to be clear for sign changes.
10835
42d57399
JH
108362013-01-01 Jan Hubicka <jh@suse.cz>
10837
10838 * ipa-inline-analysis.c: Fix formatting.
10839
5bb6669d
JJ
108402013-01-01 Jakub Jelinek <jakub@redhat.com>
10841
10842 PR tree-optimization/55831
10843 * tree-vect-loop.c (get_initial_def_for_induction): Use
10844 gsi_after_labels instead of gsi_start_bb.
ad41bd84 10845\f
86a2db33 10846Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
10847
10848Copying and distribution of this file, with or without modification,
10849are permitted in any medium without royalty provided the copyright
10850notice and this notice are preserved.