]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR tree-optimization/57294 (ice in remove_described_reference)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
82338059
MJ
12013-05-24 Martin Jambor <mjambor@suse.cz>
2
3 PR tree-optimization/57294
4 * cgraph.h (ipa_record_stmt_references): Declare.
5 * cgraphbuild.c (ipa_record_stmt_references): New function.
6 (build_cgraph_edges): Use ipa_record_stmt_references.
7 (rebuild_cgraph_edges): Likewise.
8 (cgraph_rebuild_references): Likewise.
9 * ipa-prop.c (ipa_modify_call_arguments): Discard references
10 associated with the old statement and build references from the
11 newly built statements.
12 * ipa-ref.c (ipa_remove_stmt_references): New function.
13 * ipa-ref.h (ipa_remove_stmt_references): Declare.
14
1ccd4874
VM
152013-05-24 Vladimir Makarov <vmakarov@redhat.com>
16
17 * lra-constraints.c (emit_spill_move): Use smaller mode for
18 mem-mem moves.
19 (check_and_process_move): Consider mem-reg moves for secondary
20 too.
21 (curr_insn_transform): Don't lose insns emitted before for
22 secondary memory moves.
23 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
24 reg set up in the current insn.
25
25e25c73
DC
262013-05-24 Dehao Chen <dehao@google.com>
27
28 * gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c: New Testcase.
29 * gcc/tree-cfg.c (locus_descrim_hasher::hash): Change discrminator
30 hash function.
31 (locus_descrim_hasher::equal): Likewise.
32 (build_gimple_cfg): New discrminator assignmnet algorithm
33 (make_edges): Likewise.
34 (next_discriminator_for_locus): Likewise.
35 (same_line_p): Likewise.
36 (assign_discriminators): Likewise.
37 (make_cond_expr_edges): Likewise.
38 (make_gimple_switch_edges): Likewise.
39 (make_goto_expr_edges): Likewise.
40 (make_gimple_asm_edges): Likewise.
41
50d38551
IB
422013-05-24 Ian Bolton <ian.bolton@arm.com>
43
44 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
45 X format specifier to only display bottom 16 bits.
46 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
47 immediate to match for operand 2, since it will be masked.
48
aea0101d
RB
492013-05-24 Richard Biener <rguenther@suse.de>
50
51 PR tree-optimization/57287
52 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
53 all SSA names that occur in abnormal PHIs.
54
634e03d3
AI
552013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
56
57 PR tree-ssa/57385
58 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
59 that index is not negative.
60
b17c024f
EB
612013-05-24 Eric Botcazou <ebotcazou@adacore.com>
62
63 PR rtl-optimization/55177
64 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
65 (simplify_byte_swapping_operation): New.
66 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
67 (simplify_relational_operation_1): Deal with BSWAP.
68
46aeac1b
RH
692013-05-23 Richard Henderson <rth@redhat.com>
70
71 PR target/56742
72 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
73 (ix86_reorg): Call it.
74
70cc1536
UB
752013-05-23 Uros Bizjak <ubizjak@gmail.com>
76
77 PR target/57379
78 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
79 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
80 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
81
b3851501
CB
822013-05-23 Christian Bruel <christian.bruel@st.com>
83
84 PR debug/57351
85 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
86
4e194912
CSS
872013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
88 Marcus Shawcroft <marcus.shawcroft@arm.com>
89
90 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
91 * config/aarch64/constraints.md (Usa): Remove.
92 * doc/md.texi (AArch64 Usa): Remove.
93
83f8c414
CSS
942013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
95 Marcus Shawcroft <marcus.shawcroft@arm.com>
96
97 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
98 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
99 * config/aarch64/predicates.md (aarch64_const_address): Remove.
100 (aarch64_mov_operand): Use aarch64_mov_operand_p.
101
b5574232
VP
1022013-05-23 Vidya Praveen <vidyapraveen@arm.com>
103
104 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
105 instruction (AdvSIMD).
106 * config/aarch64/aarch64-builtins.c
107 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
108 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
109
76c36cb1 1102013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
111
112 PR middle-end/57347
113 * tree.h (contains_bitfld_component_ref_p): Declare.
114 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
115 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
116 caller.
7d2fb524
MJ
117 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
118 not access a bit-field. Assert all final offsets are byte-aligned.
119
ce521ae6
RB
1202013-05-23 Richard Biener <rguenther@suse.de>
121
122 PR tree-optimization/57380
123 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
124 least one invariant or re-used load.
125 * passes.c (init_optimization_passes): Move pass_phiprop before
126 pass_forwprop.
127
75c7257f
JG
1282013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
129
130 * config/aarch64/aarch64-simd.md
131 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
132
af6d44b5
RB
1332013-05-23 Richard Biener <rguenther@suse.de>
134
135 PR middle-end/57381
136 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
137 OEP_CONSTANT_ADDRESS_OF retained.
138
bd3647bf
JJ
1392013-05-23 Jakub Jelinek <jakub@redhat.com>
140
141 PR middle-end/57344
70cc1536
UB
142 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
143 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 144
a55757ea
RB
1452013-05-23 Richard Biener <rguenther@suse.de>
146
147 PR rtl-optimization/57341
148 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
149 instead of true_dependence.
150
cfb00b41
DM
1512013-05-22 David Malcolm <dmalcolm@redhat.com>
152
153 * bb-reorder.c (branch_threshold): make const
154 (exec_threshold): ditto
155
f62511da
MM
1562013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
157 Pat Haugen <pthaugen@us.ibm.com>
158 Peter Bergner <bergner@vnet.ibm.com>
159
160 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
161 documentation for the power8 crypto builtins.
162
163 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
164
165 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
166 macros for defining power8 builtin functions.
167 (BU_P8V_AV_2): Likewise.
168 (BU_P8V_AV_P): Likewise.
169 (BU_P8V_VSX_1): Likewise.
170 (BU_P8V_OVERLOAD_1): Likewise.
171 (BU_P8V_OVERLOAD_2): Likewise.
172 (BU_CRYPTO_1): Likewise.
173 (BU_CRYPTO_2): Likewise.
174 (BU_CRYPTO_3): Likewise.
175 (BU_CRYPTO_OVERLOAD_1): Likewise.
176 (BU_CRYPTO_OVERLOAD_2): Likewise.
177 (XSCVSPDP): Fix typo, point to the correct instruction.
178 (VCIPHER): Add power8 crypto builtins.
179 (VCIPHERLAST): Likewise.
180 (VNCIPHER): Likewise.
181 (VNCIPHERLAST): Likewise.
182 (VPMSUMB): Likewise.
183 (VPMSUMH): Likewise.
184 (VPMSUMW): Likewise.
185 (VPERMXOR_V2DI): Likewise.
186 (VPERMXOR_V4SI: Likewise.
187 (VPERMXOR_V8HI: Likewise.
188 (VPERMXOR_V16QI: Likewise.
189 (VSHASIGMAW): Likewise.
190 (VSHASIGMAD): Likewise.
191 (VPMSUM): Likewise.
192 (VPERMXOR): Likewise.
193 (VSHASIGMA): Likewise.
194
195 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
196 __CRYPTO__ if the crypto instructions are available.
197 (altivec_overloaded_builtins): Add support for overloaded power8
198 builtins.
199
200 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
201 support for power8 crypto builtins.
202 (builtin_function_type): Likewise.
203 (altivec_init_builtins): Add support for builtins that take vector
204 long long (V2DI) arguments.
205
206 * config/rs6000/crypto.md: New file, define power8 crypto
207 instructions.
208
2092013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
210 Pat Haugen <pthaugen@us.ibm.com>
211 Peter Bergner <bergner@vnet.ibm.com>
212
213 * doc/invoke.texi (Option Summary): Add power8 options.
214 (RS/6000 and PowerPC Options): Likewise.
215
216 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
217 constraints.md instead of rs6000.h. Reorder w* constraints. Add
218 wm, wn, wr documentation.
219
220 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
221 registers if direct move instructions are enabled.
222 (wn): New constraint for no registers.
223 (wq): New constraint for quad word even GPR registers.
224 (wr): New constraint if 64-bit instructions are enabled.
225 (wv): New constraint if power8 vector instructions are enabled.
226 (wQ): New constraint for quad word memory locations.
227
228 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
229 constraint for 0..15 for crypto instructions.
230 (gpc_reg_operand): If VSX allow registers in VSX registers as well
231 as GPR and floating point registers.
232 (int_reg_operand): New predicate to match only GPR registers.
233 (base_reg_operand): New predicate to match base registers.
234 (quad_int_reg_operand): New predicate to match even GPR registers
235 for quad memory operations.
236 (vsx_reg_or_cint_operand): New predicate to allow vector logical
237 operations in both GPR and VSX registers.
238 (quad_memory_operand): New predicate for quad memory operations.
239 (reg_or_indexed_operand): New predicate for direct move support.
240
241 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
242 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
243 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
244 (POWERPC_MASKS): Add power8 options.
245 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
246 various options.
247
248 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
249 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
250
251 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
252 (-mpower8-fusion): New power8 options.
253 (-mpower8-fusion-sign): Likewise.
254 (-mpower8-vector): Likewise.
255 (-mcrypto): Likewise.
256 (-mdirect-move): Likewise.
257 (-mquad-memory): Likewise.
258
259 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
260 power8.
261 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
262 registers.
70cc1536 263 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
264 (rs6000_debug_vector_unit): Add p8_vector.
265 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
266 definitions. Also print fusion state.
267 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
268 (rs6000_builtin_mask_calculate): Add power8 builtin support.
269 (rs6000_option_override_internal): Add support for power8.
270 (rs6000_common_init_builtins): Add debugging for skipped builtins
271 if -mdebug=builtin.
272 (rs6000_adjust_cost): Add power8 support.
273 (rs6000_issue_rate): Likewise.
274 (insn_must_be_first_in_group): Likewise.
275 (insn_must_be_last_in_group): Likewise.
276 (force_new_group): Likewise.
277 (rs6000_register_move_cost): Likewise.
278 (rs6000_opt_masks): Likewise.
279
280 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
281 power8 capable assembler, default to power7 options.
282 (TARGET_DIRECT_MOVE): Likewise.
283 (TARGET_CRYPTO): Likewise.
284 (TARGET_P8_VECTOR): Likewise.
285 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
286 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
287 (VECTOR_MEM_P8_VECTOR_P): Likewise.
288 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
289 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
290 (TARGET_XSCVDPSPN): Likewise.
291 (TARGET_XSCVSPDPN): Likewsie.
292 (TARGET_SYNC_HI_QI): Likewise.
293 (TARGET_SYNC_TI): Likewise.
294 (MASK_CRYPTO): Likewise.
295 (MASK_DIRECT_MOVE): Likewise.
296 (MASK_P8_FUSION): Likewise.
297 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
298 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
299 temporary used by some of the direct move instructions to get two FP
300 temporary registers does not force creation of a stack frame.
f62511da
MM
301 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
302 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
303 that any VSX registers are tieable, even if they are also an
304 Altivec vector mode.
305 (r6000_reg_class_enum): Add wm, wr, wv constraints.
306 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
307 (RS6000_BTM_CRYPTO): Likewise.
308 (RS6000_BTM_COMMON): Likewise.
309
310 * config/rs6000/rs6000.md (cpu attribute): Add power8.
311 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
312 (enum rs6000_vector): Add power8 vector support.
313
73a1a707
RR
3142013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
315
316 PR target/19599
317 PR target/57340
318 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
319 (any_sibcall_could_use_r3): this and handle indirect calls.
320 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
321
d28073d4
BS
3222013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
323
324 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
325
bee0b10c
RB
3262013-05-22 Richard Biener <rguenther@suse.de>
327
328 PR middle-end/57349
329 * profile.c (branch_prob): Do not split blocks that are
330 abnormally receiving from ECF_RETURNS_TWICE functions.
331
98409b51
RS
3322013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
333
334 * recog.c (offsettable_address_addr_space_p): Fix calculation of
335 address mode. Move pointer mode initialization to the same place.
336
c0602ab8
MZ
3372013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
338
339 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
340 while it has any effect.
341
4f7a634e
ER
3422013-05-21 Easwaran Raman <eraman@google.com>
343
344 PR tree-optimization/57322
345 * (build_and_add_sum): If a BB is empty, set the UID of the statement
346 added to the BB to be 1.
347
a4ce1258
JJ
3482013-05-21 Jakub Jelinek <jakub@redhat.com>
349
350 PR tree-optimization/57331
70cc1536
UB
351 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
352 of conversion from pointer type to integral type with integer.
a4ce1258 353
1b14621a
MJ
3542013-05-21 Martin Jambor <mjambor@suse.cz>
355
356 PR lto/57289
357 * ipa-prop.c (ipa_read_node_info): Process param_used and
358 controlled_uses in the same order as when writing.
359
e60661f0
MG
3602013-05-21 Magnus Granberg <baldrick@free.fr>
361
362 PR plugins/56754
ee49aa34 363 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 364
4a61be9a
RB
3652013-05-21 Richard Biener <rguenther@suse.de>
366
367 PR tree-optimization/57318
368 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
369 estimate stmts with side-effects as likely eliminated.
370
c52da5f7
RB
3712013-05-21 Richard Biener <rguenther@suse.de>
372
373 PR tree-optimization/57330
374 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
375 preserve the call stmts fntype.
376
7ec67e2a
RB
3772013-05-21 Richard Biener <rguenther@suse.de>
378
379 PR tree-optimization/57303
380 * tree-ssa-sink.c (statement_sink_location): Improve killing
381 stmt detection and properly handle self-assignments.
382
b112d513
CB
3832013-05-21 Christian Bruel <christian.bruel@st.com>
384
385 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
386 spanning registers. LEAF_REG_REMAP is supported only for contiguous
387 registers. Set register size out of the PARALLEL loop.
388
14c2ec26
OE
3892013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
390
391 PR target/56547
392 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
393 (*fmasf4, *fmasf4_media): New insns.
394
da734fa1
RS
3952013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
396
397 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
398 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
399 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
400 (mips_idiv_insns): Update the comments to say that the returned
401 instruction counts are in units of BASE_INSN_LENGTH.
402 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
403 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
404 using 2 rather than 4 as the length of indirect MIPS16 and
405 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
406 length of a NOP. Don't divide MIPS16 lengths by 2.
407 (mips16_split_long_branches): Assume a branch is long if the
408 length is greater than 4 rather than 8.
409 * config/mips/mips.md (length): Give MIPS16 lengths directly,
410 rather than multiplying them by 2. Multiply instruction counts
411 by BASE_INSN_LENGTH rather than 4.
412 (*jump_mips16, tls_get_tp_mips16_<mode>)
413 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
414
13719e8b
RS
4152013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
416
417 * config/mips/mips.md (extended_mips16): Remove branch case.
418 (length): Remove duplicated extended_mips16 test.
419
c3850d14
RS
4202013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
421
422 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
423
8da2e059
RS
4242013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
425
426 * recog.h (Recog_data): Rename to...
427 (recog_data_d): ...this.
428 (recog_data): Update accordingly.
429 * recog.c (recog_data): Likewise.
430 * reload.c (save_recog_data): Likewise.
431 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
432 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
433
2df013f3
JB
4342013-05-17 Julian Brown <julian@codesourcery.com>
435
436 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
437 found in a REG_EQUAL note, invalidate it.
438
933f507d
ER
4392013-05-17 Easwaran Raman <eraman@google.com>
440
441 * tree-ssa-reassoc.c (find_insert_point): New function.
442 (insert_stmt_after): Likewise.
443 (get_def_stmt): Likewise.
444 (ensure_ops_are_available): Likewise.
445 (not_dominated_by): Likewise.
446 (rewrite_expr_tree): Do not move statements beyond what is
447 necessary. Remove call to swap_ops_for_binary_stmt...
448 (reassociate_bb): ... and move it here.
449 (build_and_add_sum): Assign UIDs for new statements.
450 (linearize_expr): Likewise.
451 (do_reassoc): Renumber gimple statement UIDs.
452
e01c7cca
JH
4532013-05-17 Jan Hubicka <jh@suse.cz>
454
455 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
456 weakrefs.
457 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
458 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
459 weakrefs.
e01c7cca
JH
460 (output_weakrefs): Update.
461
c3272a92
PCC
4622013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
463 Martin Jambor <mjambor@suse.cz>
464
465 PR middle-end/57276
466 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
467 value that corresponds to the given aggval is found in values vector.
468
11c2aa39
UB
4692013-05-17 Uros Bizjak <ubizjak@gmail.com>
470
471 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
472 sse, sse2, sse3, ssse3 and sse4a flags to options.
473
abecc8c6
DM
4742013-05-17 David Malcolm <dmalcolm@redhat.com>
475
476 * gengtype-state.c: (s_expr_writer): New class, to handle
477 prettifying of output layout of s-expressions.
478 (state_writer): New class, to write out gtype.state.
479 (state_written_type_count): Move this variable into member data of
480 state_writer.
481 (s_expr_writer::s_expr_writer): New code: constructor for new class
482 (state_writer::state_writer(): ditto
483 (s_expr_writer::write_new_line): New function
484 (s_expr_writer::write_any_indent): ditto
485 (s_expr_writer::begin_s_expr): ditto
486 (s_expr_writer::end_s_expr): ditto
487 (write_state_fileloc): convert to method of state_writer...
488 (state_writer:: write_state_fileloc): ...and use methods of
489 s_expr_writer to write indentation into the gtype.state output file
490 to visually represent the hierarchical structure of the list
491 structures
492 (write_state_fields): ditto, renaming to...
493 (state_writer::write_state_fields)
494 (write_state_a_string): ditto, renaming to...
495 (state_writer::write_state_a_string)
496 (write_state_string_option): ditto, renaming to...
497 (state_writer::write_state_string_option)
498 (write_state_type_option): ditto, renaming to...
499 (state_writer::write_state_type_option)
500 (write_state_nested_option): ditto, renaming to...
501 (state_writer::write_state_nested_option)
502 (write_state_option): ditto, renaming to...
503 (state_writer::write_state_option)
504 (write_state_options): ditto, renaming to...
505 (state_writer::write_state_options)
506 (write_state_lang_bitmap): ditto, renaming to...
507 (state_writer::write_state_lang_bitmap)
508 (write_state_version): ditto, renaming to...
509 (state_writer::write_state_version)
510 (write_state_scalar_type): ditto, renaming to...
511 (state_writer::write_state_scalar_type)
512 (write_state_string_type): ditto, renaming to...
513 (state_writer::write_state_string_type)
514 (write_state_undefined_type): ditto, renaming to...
515 (state_writer::write_state_undefined_type)
516 (write_state_struct_union_type): ditto, renaming to...
517 (state_writer::write_state_struct_union_type)
518 (write_state_struct_type): ditto, renaming to...
519 (state_writer::write_state_struct_type)
520 (write_state_user_struct_type): ditto, renaming to...
521 (state_writer::write_state_user_struct_type)
522 (write_state_lang_struct_type): ditto, renaming to...
523 (state_writer::write_state_lang_struct_type)
524 (write_state_param_struct_type): ditto, renaming to...
525 (state_writer::write_state_param_struct_type)
526 (write_state_pointer_type): ditto, renaming to...
527 (state_writer::write_state_pointer_type)
528 (write_state_array_type): ditto, renaming to...
529 (state_writer::write_state_array_type)
530 (write_state_gc_used): ditto, renaming to...
531 (state_writer::write_state_gc_used)
532 (write_state_common_type_content): ditto, renaming to...
533 (state_writer::write_state_common_type_content)
534 (write_state_type): ditto, renaming to...
535 (state_writer::write_state_type)
536 (write_state_pair_list): ditto, renaming to...
537 (state_writer::write_state_pair_list)
538 (write_state_pair): ditto, renaming to...
539 (state_writer::write_state_pair)
540 (write_state_typedefs): ditto, renaming to...
541 (state_writer::write_state_typedefs)
542 (write_state_structures): ditto, renaming to...
543 (state_writer::write_state_structures)
544 (write_state_param_structs): ditto, renaming to...
545 (state_writer::write_state_param_structs)
546 (write_state_variables): ditto, renaming to...
547 (state_writer::write_state_variables)
548 (write_state_srcdir): ditto, renaming to...
549 (state_writer::write_state_srcdir)
550 (write_state_files_list): ditto, renaming to...
551 (state_writer::write_state_files_list)
552 (write_state_languages): ditto, renaming to...
553 (state_writer::write_state_languages)
554 (write_state): create a state_writer instance and use it when
555 writing out the state file
556
d6545f29
MS
5572013-05-17 Mike Stump <mikestump@comcast.net>
558
816a3f73 559 PR rtl-optimization/57304
d6545f29
MS
560 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
561 accessing DF_REF_REAL_LOC.
562
38c821cf
JJ
5632013-05-17 Jakub Jelinek <jakub@redhat.com>
564
565 PR rtl-optimization/57281
566 PR rtl-optimization/57300
567 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
568 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
569 what the other splitter did if the registers are dead.
570
2a293391
RB
5712013-05-17 Richard Biener <rguenther@suse.de>
572
573 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
574 MEM_REF offsets.
575
17042d2b
JJ
5762013-05-17 Jakub Jelinek <jakub@redhat.com>
577
578 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
579 linking.
580
5b115c1f
MP
5812013-05-17 Marek Polacek <polacek@redhat.com>
582
11c2aa39
UB
583 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
584 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 585
52d84413
JJ
5862013-05-17 Jakub Jelinek <jakub@redhat.com>
587
68119618
JJ
588 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
589 vect_external_def oprnd1 with loop_vinfo, try to emit
590 optional cast, negation and and stmts on the loop preheader
591 edge instead of into the pattern def seq.
592
52d84413
JJ
593 PR tree-optimization/57051
594 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
595 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
596
17b962bd
NC
5972013-05-16 Nick Clifton <nickc@redhat.com>
598
599 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
600 (rl78_is_naked_func): New function.
601 (rl78_expand_prologue): Skip prologue generation for naked
602 functions.
603 (rl78_expand_epilogue): Skip epilogue generation for naked
604 functions.
605 * doc/extend.texi (naked): Add RL78 to the list of processors
606 that supports this attribute.
607
b1a0f84e
JL
6082013-05-16 Jeff Law <law@redhat.com>
609
610 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
611
af0e415b
UB
6122013-05-16 Uros Bizjak <ubizjak@gmail.com>
613
614 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
615 cache parameters using detect_caches_amd also for CYRIX,
616 NSC and TM2 signatures.
617
19db293a
UB
6182013-05-16 Uros Bizjak <ubizjak@gmail.com>
619 Dzianis Kahanovich <mahatma@eu.by>
620
621 PR target/45359
622 PR target/46396
623 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
624 VIA/Centaur processors and determine their cache parameters
625 using detect_caches_amd.
626
251a41b9
TJ
6272013-05-16 Teresa Johnson <tejohnson@google.com>
628
629 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
630 (rtl_verify_edges): New function.
631 (rtl_verify_bb_insns): Ditto.
632 (rtl_verify_bb_pointers): Ditto.
633 (rtl_verify_bb_insn_chain): Ditto.
634 (rtl_verify_fallthru): Ditto.
635 (rtl_verify_bb_layout): Ditto.
636 (rtl_verify_flow_info_1): Outline checks into new functions.
637 (rtl_verify_flow_info): Ditto.
638
f14540b6
SE
6392013-05-16 Steve Ellcey <sellcey@imgtec.com>
640
641 * cfghooks.c (copy_bbs): Add update_dominance argument.
642 * cfghooks.h (copy_bbs): Update prototype.
643 * tree-cfg.c (gimple_duplicate_sese_region):
644 Add update_dominance argument.
645 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
646 * tree-ssa-loop-ch.c (copy_loop_headers): Update
647 gimple_duplicate_sese_region call.
648 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
649 Update copy_bbs call.
650 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
651 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
652
7e9a3abb
JJ
6532013-05-16 Jakub Jelinek <jakub@redhat.com>
654
655 * tree-vectorizer.h (NUM_PATTERNS): Increment.
656 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
657 vect_recog_rotate_pattern.
658 (vect_recog_rotate_pattern): New function.
659
427b248d
JM
6602013-05-16 Jason Merrill <jason@redhat.com>
661
662 * Makefile.in (LLINKER): New variable.
663 (mostlyclean): Remove link mutex.
664 * configure.ac: Handle --enable-link-mutex.
665 * lock-and-run.sh: New script.
666
b871e3d2
RR
6672013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
668
669 PR target/19599
670 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
671 for NULL decl.
672
ce858126
RO
6732013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
674
675 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
676
798d3d04
GY
6772013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
678
679 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
680 * config/arm/arm.c (next_consecutive_mem): New function.
681 (gen_movmem_ldrd_strd): Likewise.
682 * config/arm/arm.md (movmemqi): Update condition and code.
683 (unaligned_loaddi, unaligned_storedi): New patterns.
684
0baddc45
RO
6852013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
686
687 * config.gcc: Obsolete *-*-solaris2.9*.
688 * doc/install.texi (Specific, *-*-solaris2*): Document it.
689
aa9d5bcf
RB
6902013-05-16 Richard Biener <rguenther@suse.de>
691
692 * passes.c (init_optimization_passes): Move pass_parallelize_loops
693 earlier, after GRAPHITE transforms and IV canonicalization.
694
5a0f4dd3
JJ
6952013-05-16 Jakub Jelinek <jakub@redhat.com>
696
697 * omp-low.c (extract_omp_for_data): For collapsed loops,
698 if at least one of the loops is known at compile time to
699 iterate zero times, set count to 0.
700 (expand_omp_regimplify_p): New function.
701 (expand_omp_for_generic): For collapsed loops, if at least
702 one of the loops isn't known to iterate at least once,
703 add runtime check with setting count to 0.
704 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
705 For unsigned types if it isn't known at compile time that
706 the loop will iterate at least once, add runtime check to bypass
707 the whole loop if initial condition isn't true.
708
e3753785
NS
7092013-05-16 Nathan Sidwell <nathan@codesourcery.com>
710
711 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
712
43bb4dd1
MG
7132013-05-16 Marc Glisse <marc.glisse@inria.fr>
714
715 PR middle-end/57286
716 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
717 transformations to avoid an infinite loop.
718
3571dde6
MP
7192013-05-16 Marek Polacek <polacek@redhat.com>
720
721 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
722
b8b3f0ca
LE
7232013-05-15 Leif Ekblad <leif@rdos.net>
724
725 * config/i386/i386.c (ix86_decompose_address): Use
726 DEFAULT_TLS_SEG_REG to access TLS segment register.
727 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
728 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
729 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
730
e299a383
RS
7312013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
732
733 PR target/57260
734 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
735 sibling calls to functions that would normally be lazily bound,
736 unless $gp is call-clobbered.
737
e7208ea3
UB
7382013-05-15 Uros Bizjak <ubizjak@gmail.com>
739
19db293a 740 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 741 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
742 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
743 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
744 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
745 of TARGET_3DNOW.
746 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
747
e7413f3d
AS
7482013-05-15 Andreas Schwab <schwab@suse.de>
749
750 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
751 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
752 third operand.
753
ad4db775
TJ
7542013-05-15 Teresa Johnson <tejohnson@google.com>
755
756 * loop-unroll.c (report_unroll_peel): Check decision before
757 emitting unroll/peel message.
758
af205f67
TJ
7592013-05-15 Teresa Johnson <tejohnson@google.com>
760
761 * function.h (has_bb_partition): New rtl_data flag.
762 (bb_reorder_complete): Ditto.
763 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
764 instead of flag_reorder_blocks_and_partition.
765 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
766 with some enhancements.
767 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
768 * bb-reorder.c (connect_traces): Check for has_bb_partition
769 instead of flag_reorder_blocks_and_partition.
770 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
771 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
772 verify_hot_cold_block_grouping.
773 (partition_hot_cold_basic_blocks): Set has_bb_partition.
774
9adcfa3c
RR
7752013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
776
777 PR target/19599
778 * config/arm/predicates.md (call_insn_operand): New predicate.
779 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
780 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
781 if insn is not a tail call.
782 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
783 registers.
784 * config/arm/arm.h (enum reg_class): New caller save register class.
785 (REG_CLASS_NAMES): Likewise.
786 (REG_CLASS_CONTENTS): Likewise.
787 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
788 without decls.
789
ccb3ad87
RB
7902013-05-15 Richard Biener <rguenther@suse.de>
791
792 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
793 of MSG_OPTIMIZED_LOCATIONS.
794 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
795 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
796 message.
797 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
798 of MSG_OPTIMIZED_LOCATIONS.
799 (execute_vect_slp): Likewise.
800 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
801 (vect_create_cond_for_alias_checks): Likewise.
802 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
803 (vect_recog_widen_mult_pattern): Likewise.
804 (vect_recog_widen_sum_pattern): Likewise.
805 (vect_recog_over_widening_pattern): Likewise.
806 (vect_recog_widen_shift_pattern): Likewise.
807 (vect_recog_vector_vector_shift_pattern): Likewise.
808 (vect_recog_divmod_pattern): Likewise.
809 (vect_recog_mixed_size_cond_pattern): Likewise.
810 (vect_recog_bool_pattern): Likewise.
811 (vect_pattern_recog_1): Likewise.
812
48b1474e
MJ
8132013-05-15 Martin Jambor <mjambor@suse.cz>
814
815 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
816 non-functions to builtin_unreachable.
817 * ipa-inline-transform.c (inline_call): Do not assert estimates were
818 correct when new direct edges were discovered.
819
9de04252
MJ
8202013-05-15 Martin Jambor <mjambor@suse.cz>
821
822 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
823 header, print symbol order instead of node uid, print more information
824 about indirect edge targets.
825 (ipa_make_edge_direct_to_target): Print symbol order instead of node
826 uids.
827 (ipa_make_edge_direct_to_target): Likewise.
828 (remove_described_reference): Likewise.
829 (propagate_controlled_uses): Likewise.
830 (ipa_print_node_params): Also print symbol order.
831 (ipcp_transform_function): Print symbol order instead of node uids.
832 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
833 (cgraph_get_create_real_symbol_node): Likewise.
834 * ipa-cp.c (print_lattice): Likewise.
835 (print_all_lattices): Likewise.
836 (determine_versionability): Likewise.
837 (initialize_node_lattices): Likewise.
838 (estimate_local_effects): Likewise.
839 (update_profiling_info): Likewise.
840 (create_specialized_node): Likewise.
841 (perhaps_add_new_callers): Likewise.
842 (decide_about_value): Likewise.
843 (decide_whether_version_node): Likewise.
844 (identify_dead_nodes): Likewise.
845 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
846 (dump_inline_summary): Likewise.
847 (estimate_node_size_and_time): Likewise.
848 (inline_analyze_function): Likewise.
849 * ipa-inline.c (report_inline_failed_reason): Likewise.
850 (want_early_inline_function_p): Likewise.
851 (edge_badness): Likewise.
852 (update_edge_key): Likewise.
853 (inline_small_functions): Likewise. Add dumping of order to two other
854 dumps.
855 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
856 instead of node uids.
857 (propagate_pure_const): Likewise.
858 (propagate_pure_const): Likewise.
859 * ipa-utils.c (dump_cgraph_node_set): Likewise.
860 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
861 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
862 of node uids.
863 * tree-pretty-print.c (dump_function_header): Likewise.
864 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
865 Print symbol order instead of node uids.
866
1dd03b91
AK
8672013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
868
869 * config/s390/s390.c (s390_register_move_cost): Don't impose the
870 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
871
fdf6a7b9
RB
8722013-05-15 Richard Biener <rguenther@suse.de>
873
874 PR tree-optimization/57275
875 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
876 return value for fail to do runtime alias checks for gather loads.
877
2d6e4603
JH
8782013-05-15 Jan Hubicka <jh@suse.cz>
879
880 PR lto/57038
881 PR lto/47375
e7208ea3
UB
882 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
883 weakrefs are not external.
884 (lto_symtab_merge_decls): Fix thinko when dealing with
885 non-lto_symtab decls.
2d6e4603
JH
886 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
887 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
888 * varpool.c (dump_varpool_node): Dump more flags.
889
83f44b39
GG
8902013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
891
892 * config/i386/i386.c (processor_alias_table): Add instruction
893 FSGSBASE for AMD bdver3 architecture.
894
2e55d062
JJ
8952013-05-14 Jakub Jelinek <jakub@redhat.com>
896
897 * tree.c (warn_deprecated_use): Print file:line using locus color.
898 * diagnostic.c (diagnostic_report_current_module): Print file:line
899 and file:line:column using locus color.
900
0bfdb81e
MS
9012013-05-14 Mike Stump <mikestump@comcast.net>
902
903 * gdbinit.in: Add __null.
904
a508ef22
MS
9052013-05-14 Mike Stump <mikestump@comcast.net>
906
907 * recog.h: Rename struct recog_data to Recog_data.
908 * recog.c: Likewise.
909 * reload.c (can_reload_into): Likewise.
910 * config/picochip/picochip.c: Likewise.
911
e7180acb
MS
9122013-05-14 Mike Stump <mikestump@comcast.net>
913
914 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
915
61216c26
SB
9162013-05-14 Steven Bosscher <steven@gcc.gnu.org>
917
fd6beed4
SB
918 * resource.h (struct resources): Remove unch_memory member.
919 (CLEAR_RESOURCE): Don't clear unch_memory.
920 * resource.c (mark_referenced_resources): Don't set it.
921 (mark_set_resources): Likewise.
922 (mark_target_live_regs): Don't clear it.
923 (init_resource_info): Likewise.
924 * reorg.c (resource_conflicts_p): Don't compare it.
925 (redundant_insn): Don't set it.
926
61216c26
SB
927 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
928 Remove prototypes.
929 * emit-rtl.c (next_label): Remove unused function.
930 (skip_consecutive_labels, link_cc0_insns): Move to ...
931 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
932 only place where these functions are used, and make them static.
933
418d1b87
MG
9342013-05-14 Marc Glisse <marc.glisse@inria.fr>
935
936 * fold-const.c (fold_negate_expr): Handle vectors.
937 (fold_truth_not_expr): Make it static.
938 (fold_invert_truthvalue): New static function.
939 (invert_truthvalue_loc): Handle vectors. Do not call
940 fold_truth_not_expr directly.
941 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
942 <TRUTH_NOT_EXPR>: Do not cast to boolean.
943 (fold_comparison): Handle vector constants.
944 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
945 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
946 * tree.h (fold_truth_not_expr): Remove declaration.
947
fc21784d
JG
9482013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
949
950 * config/aarch64/aarch64-simd.md
951 (aarch64_vcond_internal<mode>): Rename to...
952 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
953 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
954 float modes. Clarify all iterator modes.
955 (vcond<mode><mode>): Use new name for vcond expanders.
956 (vcond<v_cmp_result><mode>): Likewise.
957 (vcondu<mode><mode>: Likewise.
958 * config/aarch64/iterators.md (VDQF_COND): New.
959
d4c52634
MG
9602013-05-14 Marc Glisse <marc.glisse@inria.fr>
961
962 PR bootstrap/57266
963 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
964 variable for the shift amount. Check that we shift by non-negative
965 amounts.
966
2b261262
CLT
9672013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
968
969 PR target/42017
970 * config/arm/arm.h (EPILOGUE_USES): Only return true
971 for LR_REGNUM after epilogue_completed.
972
6e022d7b
JR
9732013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
974
975 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 976 is error_mark_node.
6e022d7b 977
56cf7859
RO
9782013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
979
980 PR target/57261
981 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
982 and Solaris 11+/x86 with gld.
983 * configure: Regenerate.
984
75776c6d
JJ
9852013-05-14 Jakub Jelinek <jakub@redhat.com>
986
987 * expmed.c (expand_shift_1): Canonicalize rotates by
988 constant bitsize / 2 to bitsize - 1.
989 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
990 case ROTATERT>: Likewise.
991
992 Revert:
993 2013-05-10 Jakub Jelinek <jakub@redhat.com>
994
995 * config/i386/i386.md (rotateinv): New code attr.
996 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
997 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
998 roll $31, %eax, etc.
999
df35498a
RB
10002013-05-14 Richard Biener <rguenther@suse.de>
1001
1002 PR middle-end/57235
1003 * tree-eh.c (sink_clobbers): Give up for successors with
1004 multiple predecessors and no virtual uses.
1005
cc6e7ece
EB
10062013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1007
1008 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1009 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1010
f778dd4d
JJ
10112013-05-14 Jakub Jelinek <jakub@redhat.com>
1012
1013 PR middle-end/57251
1014 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1015 the case when both op0 and op1 have VOIDmode.
1016
bad4df9b
KP
10172013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1018
1019 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1020 in multiply-accumulate mode.
1021
56f3e9ac
GW
10222013-05-13 Guozhi Wei <carrot@google.com>
1023
1024 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1025
a3d7ab92
KT
10262013-05-13 Kai Tietz <ktietz@redhat.com>
1027
1028 PR target/56975
1029 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1030 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1031 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1032 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1033 (ix86_expand_prologue): Likewise.
1034 (ix86_expand_split_stack_prologue): Likewise.
1035 (legitimate_pic_address_disp_p): Likewise.
1036 (legitimize_pic_address): Likewise.
1037 (legitimize_tls_address): Likewise.
1038 (legitimize_pe_coff_symbol): Likewise.
1039 (output_pic_addr_const): Likewise.
1040 (construct_plt_address): Likewise.
1041 (ix86_expand_call): Likewise.
1042 (x86_output_mi_thunk): Likewise.
1043 (x86_function_profiler): Likewise.
1044
c59b7e28
SN
10452013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1046
1047 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1048 similar switch cases.
1049 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1050 (aarch64_simd_mov_to_<mode>low): Delete.
1051 (aarch64_simd_mov_to_<mode>high): Delete.
1052 (move_lo_quad_<mode>): Add w<-r alternative.
1053 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1054 (aarch64_simd_mov_from_*): Update type attribute.
1055 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1056 statement.
1057
5f28524a
JH
10582013-05-13 Jan Hubicka <jh@suse.cz>
1059
1060 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1061 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1062 ix86_expand_epilogue, emit_i387_cw_initialization,
1063 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1064 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1065
ae6fa899
JJ
10662013-05-13 Jakub Jelinek <jakub@redhat.com>
1067
1068 PR tree-optimization/45216
1069 PR tree-optimization/57157
1070 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1071 the (-Y) & (B - 1) variant if OP is |.
1072 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1073 return shifted. Use (-op1) & (prec - 1) as other_amount
1074 instead of prec - op1.
1075
4502fe8d
MJ
10762013-05-13 Martin Jambor <mjambor@suse.cz>
1077
1078 PR middle-end/42371
1079 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1080 (ipa_constant_data): New type.
1081 (ipa_jump_func): Use ipa_constant_data to hold information about
1082 constant jump functions.
1083 (ipa_get_jf_constant): Adjust to jump function type changes.
1084 (ipa_get_jf_constant_rdesc): New function.
1085 (ipa_param_descriptor): New field controlled_uses.
1086 (ipa_get_controlled_uses): New function.
1087 (ipa_set_controlled_uses): Likewise.
1088 * ipa-ref.h (ipa_find_reference): Declare.
1089 * ipa-prop.c (ipa_cst_ref_desc): New type.
1090 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1091 changes.
1092 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1093 New parameter cs. Adjust all callers.
1094 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1095 (remove_described_reference): New function.
1096 (jfunc_rdesc_usable): Likewise.
1097 (try_make_edge_direct_simple_call): Decrement controlled use count,
1098 attempt to remove reference if it hits zero.
1099 (combine_controlled_uses_counters): New function.
1100 (propagate_controlled_uses): Likewise.
1101 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1102 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1103 (ipa_print_node_params): Print described use counter.
1104 (ipa_write_jump_function): Adjust to jump function type changes.
1105 (ipa_read_jump_function): New parameter CS, pass it to
1106 ipa_set_jf_constant. Adjust caller.
1107 (ipa_write_node_info): Stream controlled use count
1108 (ipa_read_node_info): Likewise.
1109 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1110 asserting.
1111 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1112 count. Remove cloning-added reference if it reaches zero.
1113 * ipa-ref.c (ipa_find_reference): New function.
1114
0864bfc2
GG
11152013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1116
e7208ea3 1117 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
1118 alignment values for AMD BD and BT architectures.
1119
640bfeb2
MG
11202013-05-13 Marc Glisse <marc.glisse@inria.fr>
1121
1122 * tree-vect-generic.c (uniform_vector_p): Move ...
1123 * tree.c (uniform_vector_p): ... here.
1124 * tree.h (uniform_vector_p): Declare it.
1125 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1126 into a scalar.
1127
3a60f32b
JJ
11282013-05-13 Jakub Jelinek <jakub@redhat.com>
1129
198fe1bf
JJ
1130 PR tree-optimization/57230
1131 * tree-ssa-strlen.c (handle_char_store): Record length for
1132 array store from STRING_CST.
1133
3a60f32b
JJ
1134 PR tree-optimization/57230
1135 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1136 check.
1137
566be57c
JR
11382013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1139
1140 * config/epiphany/epiphany.c (epiphany_init): Check size of
1141 NUM_MODES_FOR_MODE_SWITCHING.
1142 (epiphany_expand_prologue):
1143 Remove CONFIG_REGNUM initial value handling code.
1144 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1145 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 1146 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
1147 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1148 Don't return 1 for FP_MODE_NONE.
1149 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1150 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1151 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1152 * config/epiphany/epiphany.md (save_config): New pattern.
1153
0f2c2331
UB
11542013-05-12 Uros Bizjak <ubizjak@gmail.com>
1155
1156 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1157
5b3f93c7
UB
11582013-05-10 Uros Bizjak <ubizjak@gmail.com>
1159
1160 * config/i386/i386.md (memory): Handle sseishft1.
1161 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1162 (*vec_extractv2di_1): Ditto.
1163
1f873f0e
VM
11642013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1165
1166 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1167 saved registers.
1168
341427fa 11692013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
1170
1171 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1172 Add mthumb/march=armv7-a multilib.
1173 Add mthumb/march=armv7-r multilib.
1174 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1175
9e69bdde
RC
11762013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1177
1178 * config/v850/t-rtems: Add more multilibs.
1179
9ff09a22
RB
11802013-05-10 Richard Biener <rguenther@suse.de>
1181
1182 PR tree-optimization/57214
1183 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1184 not propagate from SSA names that occur in abnormal PHI nodes.
1185
a5e0cd1d
MG
11862013-05-10 Marc Glisse <marc.glisse@inria.fr>
1187
1188 * stor-layout.c (element_precision): New function.
1189 * machmode.h (element_precision): Declare it.
1190 * tree.c (build_minus_one_cst): New function.
1191 (element_precision): Likewise.
1192 * tree.h (build_minus_one_cst): Declare new function.
1193 (element_precision): Likewise.
1194 * fold-const.c (operand_equal_p): Use element_precision.
1195 (fold_binary_loc): Handle vector types.
1196 * convert.c (convert_to_integer): Use element_precision.
1197 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1198 separately.
1199
cb2558bc
RS
12002013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1201
1202 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1203 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1204 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1205 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1206 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1207 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1208 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1209 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1210 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1211 (Uuw8): New constraints.
1212 (Usb4): Move into alphabetical order.
1213 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1214 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1215 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1216 previously unnamed patterns.
1217 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1218 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1219 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1220 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1221 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1222 of specific lengths.
1223
cb3b8d33
JJ
12242013-05-10 Jakub Jelinek <jakub@redhat.com>
1225
6f93c008
JJ
1226 * config/i386/i386.md (rotateinv): New code attr.
1227 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1228 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1229 roll $31, %eax, etc.
1230
cb3b8d33
JJ
1231 PR tree-optimization/45216
1232 PR tree-optimization/57157
1233 * tree-ssa-forwprop.c (simplify_rotate): New function.
1234 (ssa_forward_propagate_and_combine): Call it.
1235
afb119be
RB
12362013-05-10 Richard Biener <rguenther@suse.de>
1237
1238 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1239 disable peeling when we version for aliasing.
1240 (vector_alignment_reachable_p): Honor explicit user alignment.
1241 (vect_supportable_dr_alignment): Likewise.
1242 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1243 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1244 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1245 then peeling to arrange for the cost-model check to come first.
1246
01ae4861
AM
12472013-05-10 Alan Modra <amodra@gmail.com>
1248
1249 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1250 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1251 * configure: Regenerate.
1252
ebc9a431
AM
12532013-05-10 Alan Modra <amodra@gmail.com>
1254
1255 PR target/55033
1256 * varasm.c (default_elf_select_section): Move !DECL_P check..
1257 (get_named_section): ..to here before calling get_section_name.
1258 Adjust assertion.
1259 (default_section_type_flags): Add DECL_P check.
1260 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1261 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1262
d4bca93c
JR
12632013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1264
1265 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1266 When using gen_stack_adjust_str with a register offset, add a
1267 REG_FRAME_RELATED_EXPR note.
1268
60ca9a65
UB
12692013-05-09 Uros Bizjak <ubizjak@gmail.com>
1270
1271 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1272 (*vec_extractv4si_zext_mem): Ditto.
1273 (*vec_extractv2di): Add 0->x and x->x alternatives.
1274 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1275 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1276
a3409c02
JM
12772013-05-09 Jason Merrill <jason@redhat.com>
1278
0138d6b2
JM
1279 N3639 C++1y VLA support
1280 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1281 DECL_VALUE_EXPR.
1282
a3409c02
JM
1283 * tree.c (build_constructor_va): New.
1284 * tree.h: Declare it.
1285
66e6b990
MJ
12862013-05-09 Martin Jambor <mjambor@suse.cz>
1287
1288 PR lto/57084
1289 * gimple-fold.c (canonicalize_constructor_val): Call
1290 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1291
64cfa6c0
JH
12922013-05-09 Jan Hubicka <jh@suse.cz>
1293 Richard Biener <rguenther@suse.de>
1294
1295 PR lto/54095
1296 * symtab.c (symtab_make_decl_local): Do not add private names.
1297
c3167b00
JH
12982013-05-09 Jan Hubicka <jh@suse.cz>
1299
1300 PR lto/54095
1301 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1302 (unlink_from_assembler_name_hash): Likewise.
1303 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1304 symtab_unregister_node, symtab_initialize_asm_name_hash,
1305 change_decl_assembler_name): Update.
1306
12dc6974
SN
13072013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1308
1309 * config/aarch64/aarch64.md: New movtf split.
1310 (*movtf_aarch64): Update.
1311 (aarch64_movdi_tilow): Handle TF modes and rename to
1312 aarch64_movdi_<mode>low.
1313 (aarch64_movdi_tihigh): Handle TF modes and rename to
1314 aarch64_movdi_<mode>high
1315 (aarch64_movtihigh_di): Handle TF modes and rename to
1316 aarch64_mov<mode>high_di
1317 (aarch64_movtilow_di): Handle TF modes and rename to
1318 aarch64_mov<mode>low_di
1319 (aarch64_movtilow_tilow): Remove spurious whitespace.
1320 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1321 splits.
1322 (aarch64_print_operand): Update.
1323
227eb343
AM
13242013-05-09 Alan Modra <amodra@gmail.com>
1325
1326 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1327 powerpc64le.
1328 * configure: Regenerate.
1329
0b013847
UB
13302013-05-08 Uros Bizjak <ubizjak@gmail.com>
1331
1332 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1333 splitter preparation statements.
1334 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1335 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1336 adjust_address_nv.
1337
1dc3d6e9
BS
13382013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1339
1340 * gimple-ssa-strength-reduction.c (count_candidates): Change
1341 return value to int.
1342 (analyze_candidates_and_replace): Change type of length to int.
1343
e61e7d28
UB
13442013-05-08 Uros Bizjak <ubizjak@gmail.com>
1345
1346 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1347 (*vec_extract<mode>): Use VI12_128 mode iterator.
1348 (*vec_extract<mode>_mem): Ditto.
1349 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1350 attribute.
1351
4fbfcf44
DN
13522013-05-08 Diego Novillo <dnovillo@google.com>
1353
1354 PR bootstrap/54659
1355
1356 Revert:
4fbfcf44
DN
1357 2012-08-17 Diego Novillo <dnovillo@google.com>
1358
e61e7d28
UB
1359 PR bootstrap/54281
1360 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1361 * config.in: Regenerate.
1362 * configure: Regenerate.
1363 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 1364
702d8703
JH
13652013-05-08 Jan Hubicka <jh@suse.cz>
1366
1367 PR lto/54095
1368 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1369 * cgraph.h (symtab_node_base): Add unique_name.
1370 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1371 input_overwrite_node, input_varpool_node): Stream unique_name.
1372 * cgraphclones.c (cgraph_create_virtual_clone,
1373 cgraph_function_versioning): Set unique_name.
1374 * ipa.c (function_and_variable_visibility): Set unique_name.
1375
8b28cf47
BS
13762013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1377
1378 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1379 (alloc_cand_and_find_basis): Restrict conditional candidate
1380 processing to CAND_MULTs.
1381
e86074fd
JH
13822013-05-08 Jan Hubicka <jh@suse.cz>
1383
1384 PR lto/54095
1385 lto-symtab.c (lto_symtab_symbol_p): New function.
1386 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1387 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1388 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1389 Skip static symbols.
1390
44398cbe
PC
13912013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1392
1393 PR tree-optimization/57200
1394 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1395 Only call inform if the preceding warning_at returns true.
1396
f6bc1c4a
HS
13972013-05-07 Han Shen <shenhan@google.com>
1398
1399 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1400 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1401 * common.opt (fstack-protector-strong): New option.
1402 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1403 * doc/invoke.texi (Optimization Options): Document
1404 "-fstack-protector-strong".
1405 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1406
4ffecb1f
SB
14072013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1408
1409 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1410
5a107a0f
VM
14112013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1412
1413 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1414 it is not lhs of the insn.
1415 (setup_reg_equiv): Remove insn having equiv memory which it is not
1416 lhs of the insn.
1417 * lra-constraints.c (process_address): Try to improve generation
1418 code for address base + disp.
1419 (lra_constraints): Make correct the code for checking insn setting
1420 up backward equivalence. Remove insn only if it is in the init
1421 insn list.
1422 * lra-eliminations.c (update_reg_eliminate): Change return value.
1423 (lra_eliminate): Use the result.
1424
3f5783ea
UB
14252013-05-07 Uros Bizjak <ubizjak@gmail.com>
1426
1427 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1428 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1429 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1430 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1431 register target operands.
1432 (*vec_extractv8hi_sse2): New pattern.
1433 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1434 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1435 (*vec_extract<mode>_mem): New insn and split pattern.
1436
8a5800b8
CL
14372013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1438
1439 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1440 (TARGET_ASAN_SHADOW_OFFSET): Define.
1441 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1442 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1443
7bf55a70
BS
14442013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1445
1446 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1447 (incr_vec_index): Return -1 if increment not found.
1448 (create_add_on_incoming_edge): Assert if increment not found.
1449 (record_increment): Limit number of increments recorded.
1450 (all_phi_incrs_profitable): Return false if an increment not found.
1451 (replace_profitable_candidates): Don't process increments that were
1452 not recorded.
1453 (analyze_candidates_and_replace): Limit size of incr_vec.
1454
3f8825c0
RB
14552013-05-07 Richard Biener <rguenther@suse.de>
1456
1457 * calls.c (special_function_p): setjmp-like functions are leaf.
1458 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1459 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1460
fd4842cd
SN
14612013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1462
1463 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1464 (aarch64_simd_mov<mode>): New expander.
1465 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1466 (aarch64_simd_mov_to_<mode>high): Likewise.
1467 (aarch64_simd_mov_from_<mode>low): Likewise.
1468 (aarch64_simd_mov_from_<mode>high): Likewise.
1469 (aarch64_dup_lane<mode>): Update.
1470 (aarch64_dup_lanedi): New instruction pattern.
1471 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1472 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1473
a7a7d10e
BS
14742013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1475
1476 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1477 (replace_mult_candidate): Remove unnecessary argument; remove
1478 unnecessary parameter from call to introduce_cast_before_cand.
1479 (replace_unconditional_candidate): Remove unnecessary parameter
1480 from call to replace_mult_candidate.
1481 (replace_conditional_candidate): Likewise.
1482 (insert_initializers): Use make_temp_ssa_name.
1483 (introduce_cast_before_cand): Remove unnecessary argument; use
1484 make_temp_ssa_name.
1485 (replace_one_candidate): Remove unnecessary argument; remove
1486 unnecessary parameter from calls to introduce_cast_before_cand.
1487 (replace_profitable_candidates): Remove unnecessary parameters
1488 from calls to replace_one_candidate.
1489
29105868
BS
14902013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1491
1492 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1493 phi def as possibly hiding a basis for a CAND_ADD whose operands
1494 have been commuted in the analysis.
1495 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1496
4095f9fa
N
14972013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1498
1499 * config/aarch64/aarch64.md
1500 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1501 shift value between 0-4.
1502
39e843e8
RB
15032013-05-07 Richard Biener <rguenther@suse.de>
1504
1505 * double-int.h (rshift): New overload.
1506 * double-int.c (rshift): New function.
1507 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1508 (create_reference_ops_from_ref): Remove.
1509 (vn_reference_insert): Use shared ops for constructing the
1510 reference and copy it.
1511
0a1a83cb
RB
15122013-05-07 Richard Biener <rguenther@suse.de>
1513
1514 PR middle-end/57190
1515 * tree-eh.c (sink_clobbers): Properly propagate
1516 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1517
43303d6f
JJ
15182013-05-07 Jakub Jelinek <jakub@redhat.com>
1519
ba7e83f8
JJ
1520 PR tree-optimization/57149
1521 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1522 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1523 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1524 uninit_undefined_value_p instead of ssa_undefined_value_p.
1525
43303d6f
JJ
1526 PR debug/57184
1527 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1528 for modifier == EXPAND_INITIALIZER.
1529
14523c25
AB
15302013-05-07 Anton Blanchard <anton@samba.org>
1531
1532 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1533 for powerpc64 little endian.
1534 * configure: Regenerate.
1535
cb7c8be9
GS
15362013-05-06 Graham Stott <grahams@btinternet.com>
1537
1538 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1539 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1540 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1541 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1542
15432013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
1544
1545 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1546 codes which allow non-lvalues.
1547
9a0ee7b0
MG
15482013-05-06 Marc Glisse <marc.glisse@inria.fr>
1549
1550 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1551 components are all 1s.
1552 (integer_minus_onep): New function.
1553 * tree.h (integer_minus_onep): Declare it.
1554 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1555 integer_minus_onep instead of integer_all_onesp.
1556
f2c17ea9
OE
15572013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1558
1559 PR target/52933
1560 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1561 variations of these patterns.
1562
f75e6a51
UB
15632013-05-06 Uros Bizjak <ubizjak@gmail.com>
1564
1565 * config/i386/i386.md (isa): Add x64_sse4 member.
1566 (enabled): Handle x64_sse4.
1567 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1568 instruction for 64bit SSE4_1 targets. Update insn attributes.
1569 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1570 instruction for SSE4_1 targets. Update insn attributes.
1571 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1572 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1573 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1574 const_1 selector.
1575 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1576 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1577 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1578
a986d468
OE
15792013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1580
1581 PR target/57108
1582 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1583
382522cb
MK
15842013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1585
1586 * final.c (do_assembler_dialects): Don't handle curly braces and
1587 vertical bar escaped by % as dialect delimiters.
1588 (output_asm_insn): Print curly braces and vertical bar if escaped
1589 by % and ASSEMBLER_DIALECT defined.
1590 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1591 * doc/tm.texi: Regenerated.
1592
fb0d5c60
SB
15932013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1594
fb0d5c60
SB
1595 * config/mips/mips.c: Include tree-pass.h.
1596 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1597 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1598 (pass_mips_machine_reorg2): New machine specific pass.
1599 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1600 (mips_option_override): Register the new pass.
1601 * rtl.h (cleanup_barriers): Remove prototype.
1602 (dbr_schedule): Likewise.
1603 * jump.c (cleanup_barriers): Make static.
1604 * reorg.c (dbr_schedule): Likewise.
1605
aa06a978
RB
16062013-05-06 Richard Biener <rguenther@suse.de>
1607
1608 PR tree-optimization/57185
1609 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1610 SSA names properly.
1611
0b953bec
UB
16122013-05-06 Uros Bizjak <ubizjak@gmail.com>
1613
1614 PR target/57106
1615 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1616 between "first_arg" and "insn", not "last" and "insn".
1617
28708525
WS
16182013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1619
1620 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1621 (find_candidates_in_block): Re-enable slsr_process_phi.
1622 (create_phi_basis): Fix double counting of candidate adjustment.
1623
0107dca2
RB
16242013-05-06 Richard Biener <rguenther@suse.de>
1625
1626 PR middle-end/57147
1627 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1628 the edge is also fallthru, preserve it and just clear the
1629 abnormal flag.
1630 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1631 also complex, preserve that and just clear the fallthru flag.
1632 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1633 update virtual operands.
1634
470d4d13
AM
16352013-05-06 Alan Modra <amodra@gmail.com>
1636
1637 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1638 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1639 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1640 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1641 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1642 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1643
8f1dbf8d
AM
16442013-05-06 Alan Modra <amodra@gmail.com>
1645
1646 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1647 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1648 (DEFAULT_ASM_ENDIAN): Define.
1649 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1650 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1651 Update -K PIC clause from sysv4.h.
1652 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1653 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1654
54890767
AM
16552013-05-06 Alan Modra <amodra@gmail.com>
1656
1657 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1658 twice for little-endian.
1659 (ashrdi3_no_power, ashrdi3): Support little-endian.
1660
2353515d
OE
16612013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1662
1663 PR target/55303
1664 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1665 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1666 related expanders.
1667 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1668 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1669 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1670 New predicates.
1671
33e67557
SB
16722013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1673 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1674
1675 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1676 * config/pa/pa.opt: Make mbig-switch a no-op.
1677 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1678 (CASE_VECTOR_MODE): Always return SImode.
1679 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1680 for the !TARGET_BIG_SWITCH case.
1681 * config/pa/pa-linux.h: Likewise.
1682 * config/pa/pa-openbsd.h: Likewise.
1683 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1684 * config/pa/pa.md (short_jump): Remove define_insn.
1685 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1686 (casesi0): Remove define_insn.
1687 (type): Remove btable_branch.
1688 (pa_combine_type): Likewise.
1689 (in_nullified_branch_delay): Likewise.
1690 (in_call_delay): Likewise.
1691 (define_delay): Likewise.
1692 (define_insn_reservation "Z3"): Likewise.
1693 (define_insn_reservation "Z4"): Likewise.
1694 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1695 (pa_adjust_insn_length): Remove adjustment for btable branches.
1696 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1697 and mno-big-switch
1698
3095685e
UB
16992013-05-05 Uros Bizjak <ubizjak@gmail.com>
1700
1701 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1702 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1703 Add m->r,x alternatives.
1704 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1705 splitters using SWI48x mode iterator.
1706 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1707 TARGET_64BIT. Add m->x alternative.
1708 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1709 Add o->x alternative. Enable for TARGET_SSE.
1710 (sse_storeq): Remove expander.
1711 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1712 with memory input operand.
1713 (*vec_extractv2di_1 splitter): New.
1714 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1715 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1716
4b36ae28
SB
17172013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1718
1719 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1720 (INT_LOWPART): Delete.
1721 (extract_MB): Adjust.
1722 (extract_ME): Adjust.
1723 (print_operand): Adjust.
1724
da226db2
SB
17252013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1726
1727 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1728 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1729 (reg_or_logical_cint_operand, easy_fp_constant,
1730 logical_const_operand): Delete "CONST_DOUBLE" case.
1731 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1732 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 1733 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
1734 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1735 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1736 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1737 test.
1738 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1739 CONST_DOUBLE DImode/VOIDmode case.
1740 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1741 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1742 CONST_DOUBLE VOIDmode case.
1743 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1744 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1745 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1746 Delete CONST_DOUBLE case.
1747 (splitters for mov FMOVE64 const_double): Delete
1748 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1749 "HOST_BITS_PER_WIDE_INT >= 64" test.
1750 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1751 case.
1752 (mov DI const_double): Delete.
1753
40de22d6
JJ
17542013-05-04 Jakub Jelinek <jakub@redhat.com>
1755
1756 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1757 on op shows all bits zero in mode of a lowpart subreg, return zero.
1758
5ec6aff2
MM
17592013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1760
1761 PR target/57150
1762 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1763 to save TFmode registers and DImode to save TImode registers for
1764 caller save operations.
1765 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1766 mark being partially clobbered since they only use the first
1767 double word.
1768
1769 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1770 and TDmode only use the upper 64-bits of each VSX register.
1771
2cefad90
BS
17722013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1773
1774 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1775 (find_candidates_in_block): Disable slsr_process_phi.
1776
d6d7eee1
GW
17772013-05-03 Guozhi Wei <carrot@google.com>
1778
1779 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
1780 constructor to ...
1781 (build_init_ctor): ... here.
d6d7eee1 1782
9b92d12b
BS
17832013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1784
1785 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1786 (slsr_cand_d): Redefine def_phi.
1787 (stride_status, phi_adjust_status, count_phis_status): New enums.
1788 (find_phi_def): New.
1789 (find_basis_for_base_expr): New.
1790 (find_basis_for_candidate): Handle hidden bases.
1791 (alloc_cand_and_find_basis): Handle phi candidates.
1792 (slsr_process_phi): New.
1793 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1794 (create_mul_imm_cand): Likewise.
1795 (create_add_ssa_cand): Exclude phi base candidates.
1796 (create_add_imm_cand): Likewise.
1797 (slsr_process_cast): Likewise.
1798 (slsr_process_copy): Likewise.
1799 (find_candidates_in_block): Handle phi candidates.
1800 (dump_candidate): Likewise.
1801 (unconditional_cands): Delete.
1802 (unconditional_cands_with_known_stride_p): Delete.
1803 (phi_dependent_cand_p): New.
1804 (cand_increment): Handle phi-dependent candidates.
1805 (replace_dependent): Delete.
1806 (replace_mult_candidate): New.
1807 (replace_unconditional_candidate): New.
1808 (incr_vec_index): Move to avoid forward reference.
1809 (create_add_on_incoming_edge): New.
1810 (create_phi_basis): New.
1811 (replace_dependents): Delete.
1812 (replace_conditional_candidate): New.
1813 (phi_add_costs): New.
1814 (replace_uncond_cands_and_profitable_phis): New.
1815 (record_increment): Handle phi adjustments.
1816 (record_phi_increments): New.
1817 (record_increments): Handle phi adjustments.
1818 (phi_incr_cost): New.
1819 (lowest_cost_path): Handle phis.
1820 (total_savings): Likewise.
1821 (analyze_increments): Likewise.
1822 (ncd_with_phi): New.
1823 (ncd_of_cand_and_phis): New.
1824 (nearest_common_dominator_for_cands): Handle phi increments.
1825 (all_phi_incrs_profitable): New.
1826 (replace_profitable_candidates): Handle phi-dependent candidates.
1827 (analyze_candidates_and_replace): Likewise.
1828
68f073d4
TJ
18292013-05-03 Teresa Johnson <tejohnson@google.com>
1830
1831 PR bootstrap/57154
1832 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1833 do not exceed REG_BR_PROB_BASE.
1834
a4ee7cb9
JL
18352013-05-03 Jeff Law <law@redhat.com>
1836
ade67f70 1837 PR tree-optimization/57144
a4ee7cb9
JL
1838 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1839 operand of the condition will bit into the new type when eliminating
1840 a cast feeding a condition.
1841
47954c4e
JJ
18422013-05-03 Jakub Jelinek <jakub@redhat.com>
1843
1844 PR rtl-optimization/57130
3095685e
UB
1845 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1846 of COMPARE as in_code to the recursive call if needed.
47954c4e 1847
3c21604f
UB
18482013-05-03 Uros Bizjak <ubizjak@gmail.com>
1849
1850 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1851 (enabled): Handle new members.
1852 * config/i386/sse.md (*vec_concatv2si): Merge from
1853 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1854 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1855
95c03b36
JR
18562013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1857
1858 PR tree-optimization/57027
1859 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1860 for fnms opportunity, check we got the prerequisite kind
1861 of tree / gimple before using accessor functions.
1862
07bfc9ec
RB
18632013-05-03 Richard Biener <rguenther@suse.de>
1864
1865 * double-int.h (lshift): New overload without precision
1866 and arith argument.
1867 (operator *=, operator +=, operator -=): Move ...
1868 * double-int.c (operator *=, operator +=, operator -=): ... here
1869 and implement more efficiently.
1870 (mul_double_with_sign): Remove.
1871 (lshift_double): Adjust to take unsinged shift argument, push
1872 dispatching code to callers.
1873 (mul_double_wide_with_sign): Add early out for callers that
1874 are not interested in high parts or overflow.
1875 (lshift): New function.
1876 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1877 dispatch code here.
1878 (lrotate, rrotate): Use logical shifts.
1879 * expr.c (get_inner_reference): Use lshift.
1880 * fixed-value.c (do_fixed_divide): Likewise.
1881 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1882 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1883 (indirect_refs_may_alias_p): Likewise.
1884 (stmt_kills_ref_p_1): Likewise.
1885
7769bb64
VP
18862013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1887
1888 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1889
1d0c8e5c
VP
18902013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1891
1892 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1893 scalar form of FABD instruction.
1894
f15feaf9
VM
18952013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1896
1897 * lra-constraints.c (process_alt_operands): Add checking alt
1898 number to choose the best alternative.
1899
d90e76d4
RB
19002013-05-02 Richard Biener <rguenther@suse.de>
1901
1902 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1903 bitmap and its handling.
1904 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1905
9f8e7a96
RB
19062013-05-02 Richard Biener <rguenther@suse.de>
1907
1908 PR middle-end/57140
1909 * tree-inline.c (copy_loops): Properly handle removed loops.
1910 (copy_cfg_body): Mark destination loops for fixup if source
1911 loops needed fixup.
1912
f3a81b39
GY
19132013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1914
1915 PR target/56732
1916 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1917 generating simple_return for naked functions.
1918
7b920a9a
MJ
19192013-05-02 Martin Jambor <mjambor@suse.cz>
1920
1921 PR middle-end/56988
1922 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1923 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1924 flags match.
1925 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1926 ipa_agg_replacement_value structures.
1927 (known_aggs_to_agg_replacement_list): Likewise.
1928 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1929 (read_agg_replacement_chain): Likewise.
1930 (ipcp_transform_function): Also check that by_ref flags match.
1931
2c41c19d
RB
19322013-05-02 Richard Biener <rguenther@suse.de>
1933
1934 * graphds.h (struct graph): Add obstack member.
1935 * graphds.c (new_graph): Initialize obstack and allocate
1936 vertices from it.
1937 (add_edge): Allocate edge from the obstack.
3c21604f 1938 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 1939
8b47039c
TJ
19402013-05-02 Teresa Johnson <tejohnson@google.com>
1941
1942 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1943 divides.
1944 * cfg.c (update_bb_profile_for_threading): Ditto.
1945 * tree-inline.c (copy_bb): Ditto.
1946 (copy_edges_for_bb): Ditto.
1947 (initialize_cfun): Ditto.
1948 (copy_cfg_body): Ditto.
1949 (expand_call_inline): Ditto.
1950 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1951 (estimate_node_size_and_time): Ditto.
1952 (inline_merge_summary): Ditto.
1953 * cgraphclones.c (cgraph_clone_edge): Ditto.
1954 (cgraph_clone_node): Ditto.
1955 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1956 (compute_trg_info): Ditto.
1957
da65928c
IB
19582013-05-02 Ian Bolton <ian.bolton@arm.com>
1959
1960 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1961 S reg when fp attribute set.
1962 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1963
add3c965
IB
19642013-05-02 Ian Bolton <ian.bolton@arm.com>
1965
1966 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1967 New pattern.
1968 (*and_one_cmplsi3_compare0_uxtw): Likewise.
1969 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1970 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1971
fdd43ac4
RB
19722013-05-02 Richard Biener <rguenther@suse.de>
1973
1974 * tree-scalar-evolution.c (scev_info_hasher): Remove.
1975 (struct instantiate_cache_entry): New type.
1976 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1977 (struct instantiate_cache_type): New type.
1978 (set_instantiated_value, get_instantiated_value): Remove.
1979 (get_instantiated_value_entry): New function.
1980 (instantiate_scev_name): Use the new cache and adjust.
1981 (instantiate_scev_poly): Adjust.
1982 (instantiate_scev_binary): Likewise.
1983 (instantiate_array_ref): Likewise.
1984 (instantiate_scev_convert): Likewise.
1985 (instantiate_scev_not): Likewise.
1986 (instantiate_scev_3): Likewise.
1987 (instantiate_scev_2): Likewise.
1988 (instantiate_scev_r): Likewise.
1989 (instantiate_scev): Likewise.
1990 (resolve_mixers): Likewise.
1991
36ff9dfb
VM
19922013-05-01 Vladimir Makarov <vmakarov@redhat.com>
1993
1994 PR target/57091
1995 * lra-constraints.c (best_small_class_operands_num): Remove.
1996 (process_alt_operands): Remove small_class_operands_num. Take
1997 small classes operands into losers and only if the operand is not
1998 matched. Modify debugging output.
1999 (curr_insn_transform): Remove best_small_class_operands_num.
2000 Print insn name.
2001
36054fab
JG
20022013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2003
2004 * config/aarch64/aarch64-builtins.c
2005 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2006 * config/aarch64/aarch64-simd-builtins.def
2007 (reduc_splus_): Add new modes.
2008 (reduc_uplus_): New.
2009 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2010 (reduc_uplus_v4sf): Likewise.
2011 (reduc_splus_v4sf): Likewise.
2012 (aarch64_addv<mode>): Likewise.
2013 (reduc_uplus_<mode>): Likewise.
2014 (reduc_splus_<mode>): Likewise.
2015 (aarch64_addvv2di): Likewise.
2016 (reduc_uplus_v2di): Likewise.
2017 (reduc_splus_v2di): Likewise.
2018 (aarch64_addvv2si): Likewise.
2019 (reduc_uplus_v2si): Likewise.
2020 (reduc_splus_v2si): Likewise.
2021 (reduc_<sur>plus_<mode>): New.
2022 (reduc_<sur>plus_v2di): Likewise.
2023 (reduc_<sur>plus_v2si): Likewise.
2024 (reduc_<sur>plus_v4sf): Likewise.
2025 (aarch64_addpv4sf): Likewise.
2026 * config/aarch64/arm_neon.h
2027 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2028 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2029 add UNSPEC_SADDV, UNSPEC_UADDV.
2030 (SUADDV): New.
2031 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2032
6dce23a8
JG
20332013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2034
2035 * config/aarch64/arm_neon.h
2036 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2037
1598945b
JG
20382013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2039
2040 * config/aarch64/aarch64-builtins
2041 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2042
998eaf97
JG
20432013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2044
2045 * config/aarch64/aarch64-simd-builtins.def
2046 (reduc_smax_): New.
2047 (reduc_smin_): Likewise.
2048 (reduc_umax_): Likewise.
2049 (reduc_umin_): Likewise.
2050 (reduc_smax_nan_): Likewise.
2051 (reduc_smin_nan_): Likewise.
2052 (fmax): Remove.
2053 (fmin): Likewise.
2054 (smax): Update for V2SF, V4SF and V2DF modes.
2055 (smin): Likewise.
2056 (smax_nan): New.
2057 (smin_nan): Likewise.
2058 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2059 (<su><maxmin><mode>3): ...This, refactor.
2060 (s<maxmin><mode>3): New.
2061 (<maxmin_uns><mode>3): Likewise.
2062 (reduc_<maxmin_uns>_<mode>): Refactor.
2063 (reduc_<maxmin_uns>_v4sf): Likewise.
2064 (reduc_<maxmin_uns>_v2si): Likewise.
2065 (aarch64_<fmaxmin><mode>: Remove.
2066 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2067 new builtin names.
2068 (vmin<q>_f<32,64>): Likewise.
2069 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2070 (FMAXMIN): New.
2071 (su): Add mappings for smax, smin, umax, umin.
2072 (maxmin): New.
2073 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2074 (FMAXMIN): Rename as...
2075 (FMAXMIN_UNS): ...This.
2076 (maxminv): Remove.
2077 (fmaxminv): Likewise.
2078 (fmaxmin): Likewise.
2079 (maxmin_uns): New.
2080 (maxmin_uns_op): Likewise.
2081
bd11644e
JG
20822013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2083
2084 * config/aarch64/arm_neon.h
2085 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2086 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2087 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2088
75dd5ace
JG
20892013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2090
2091 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2092 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2093
7c19979f
JG
20942013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2095
2096 * config/aarch64/aarch64-simd.md
2097 (vcond<mode>_internal): Handle special cases for constant masks.
2098 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2099 (vcondu<mode><mode>): Likewise.
2100 (vcond<v_cmp_result><mode>): New.
2101
bb60efd9
JG
21022013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2103
2104 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2105 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2106 * config/aarch64/aarch64-simd-builtins.def
2107 (cmeq): Update to BUILTIN_VALLDI.
2108 (cmgt): Likewise.
2109 (cmge): Likewise.
2110 (cmle): Likewise.
2111 (cmlt): Likewise.
2112 * config/aarch64/arm_neon.h
2113 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2114 to builtins or C as appropriate.
2115
889b9412
JG
21162013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2117
2118 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2119 (cmgeu): ...This.
2120 (cmhi): Rename to...
2121 (cmgtu): ...This.
2122 * config/aarch64/aarch64-simd.md
2123 (simd_mode): Add SF.
2124 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2125 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2126 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2127 (cstore<mode>_neg): ...This.
2128 * config/aarch64/iterators.md
2129 (VALLF): new.
2130 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2131 (COMPARISONS): New.
2132 (UCOMPARISONS): Likewise.
2133 (optab): Add missing comparisons.
2134 (n_optab): New.
2135 (cmp_1): Likewise.
2136 (cmp_2): Likewise.
2137 (CMP): Likewise.
2138 (cmp): Remove.
2139 (VCMP_S): Likewise.
2140 (VCMP_U): Likewise.
2141 (V_cmp_result): Add DF, SF modes.
2142 (v_cmp_result): Likewise.
2143 (v): Likewise.
2144 (vmtype): Likewise.
2145 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2146
0a7dbb76
GY
21472013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2148
2149 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2150 define_insn to define_insn_and_split.
2151 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2152 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2153 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2154 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2155 (thumb2_negscc): Likewise.
2156
fb614ca6
GY
21572013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2158
2159 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2160
9e64a0bf
GY
21612013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2162
2163 * config/arm/thumb2.md: Remove trailing whitespaces.
2164
d6b28156
RS
21652013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2166
2167 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2168 Use gen_int_mode rather than GEN_INT.
2169
f91674c3
L
21702013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2171
b0dec607 2172 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
2173 debug_gimple_stmt.
2174
3551257c
RB
21752013-04-30 Richard Biener <rguenther@suse.de>
2176
2177 PR middle-end/57122
3c21604f 2178 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 2179
4c1aff1c
RB
21802013-04-30 Richard Biener <rguenther@suse.de>
2181
2182 PR middle-end/57107
2183 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2184
54b8379a
AB
21852013-04-30 Andrey Belevantsev <abel@ispras.ru>
2186
2187 PR rtl-optimization/56957
2188 PR rtl-optimization/57105
54b8379a
AB
2189 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2190 variable. Use just INSN_UID for determining whether an insn
2191 should be only disconnected from the insn stream.
2192 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2193
abc27962
JJ
21942013-04-30 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR tree-optimization/57104
2197 * tsan.c (instrument_expr): Don't instrument accesses to
2198 DECL_HARD_REGISTER VAR_DECLs.
2199
0fc822d0
RB
22002013-04-30 Richard Biener <rguenther@suse.de>
2201
2202 * function.h (loops_for_fn): New inline function.
2203 (set_loops_for_fn): Likewise.
2204 * cfgloop.h (place_new_loop): Add struct function parameter.
2205 (get_loop): Likewise.
2206 (get_loops): Likewise.
2207 (number_of_loops): Likewise.
2208 (fel_next): Adjust.
2209 (fel_init): Likewise.
2210 * cfg.c (get_loop_copy): Adjust.
2211 * cfgloop.c (flow_loops_dump): Likewise.
2212 (record_loop_exits): Likewise.
2213 (verify_loop_structure): Likewise.
2214 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2215 (estimate_reg_pressure_cost): Likewise.
2216 (mark_loop_exit_edges): Likewise.
2217 * cfgloopmanip.c (place_new_loop): Likewise.
2218 (add_loop): Likewise.
2219 (duplicate_loop): Likewise.
2220 * graph.c (draw_cfg_nodes): Likewise.
2221 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2222 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2223 (extract_affine_chrec): Likewise.
2224 (build_scop_iteration_domain): Likewise.
2225 * graphite.c (graphite_initialize): Likewise.
2226 * ira-build.c (create_loop_tree_nodes): Likewise.
2227 (more_one_region_p): Likewise.
2228 (rebuild_regno_allocno_maps): Likewise.
2229 (mark_loops_for_removal): Likewise.
2230 (mark_all_loops_for_removal): Likewise.
2231 (remove_unnecessary_regions): Likewise.
2232 (ira_build): Likewise.
2233 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2234 * loop-init.c (fix_loop_structure): Likewise.
2235 (gate_rtl_move_loop_invariants): Likewise.
2236 (gate_rtl_unswitch): Likewise.
2237 (gate_rtl_unroll_and_peel_loops): Likewise.
2238 (rtl_doloop): Likewise.
2239 * lto-streamer-in.c (input_cfg): Likewise.
2240 * lto-streamer-out.c (output_cfg): Likewise.
2241 * modulo-sched.c (sms_schedule): Likewise.
2242 * predict.c (tree_estimate_probability): Likewise.
2243 (tree_estimate_probability_driver): Likewise.
2244 (estimate_loops): Likewise.
2245 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2246 (move_sese_region_to_fn): Likewise.
2247 (debug_loop_num): Likewise.
2248 * tree-chrec.c (chrec_evaluate): Likewise.
2249 (hide_evolution_in_other_loops_than_loop): Likewise.
2250 (chrec_component_in_loop_num): Likewise.
2251 (reset_evolution_in_loop): Likewise.
2252 (evolution_function_is_invariant_rec_p): Likewise.
2253 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2254 * tree-inline.c (copy_loops): Likewise.
2255 (copy_cfg_body): Likewise.
2256 (tree_function_versioning): Likewise.
2257 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2258 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2259 Likewise.
2260 (add_to_evolution_1): Likewise.
2261 (scev_const_prop): Likewise.
2262 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2263 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2264 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2265 (tree_ssa_lim_initialize): Likewise.
2266 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2267 (verify_loop_closed_ssa): Likewise.
2268 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2269 (tree_ssa_loop_im): Likewise.
2270 (tree_ssa_loop_unswitch): Likewise.
2271 (tree_vectorize): Likewise.
2272 (check_data_deps): Likewise.
2273 (tree_ssa_loop_ivcanon): Likewise.
2274 (tree_ssa_loop_bounds): Likewise.
2275 (tree_complete_unroll): Likewise.
2276 (tree_complete_unroll_inner): Likewise.
2277 (tree_parallelize_loops): Likewise.
2278 (tree_ssa_loop_prefetch): Likewise.
2279 (tree_ssa_loop_ivopts): Likewise.
2280 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2281 * tree-vectorizer.c (vectorize_loops): Likewise.
2282
37953bd3
MF
22832013-04-29 Mike Frysinger <vapier@gentoo.org>
2284
2285 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2286 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2287 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2288 with EABI_LINK_SPEC.
2289
f9ed28db
UB
22902013-04-29 Uros Bizjak <ubizjak@gmail.com>
2291
2292 PR target/44578
2293 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2294 alternative.
2295
deca73f5
VM
22962013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2297
2298 PR target/57097
37953bd3 2299 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
2300 using memory for pseudos. Print cost dump for alternatives.
2301 Modify cost values for conflicts with early clobbers.
2302 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2303
fdca7d03
UB
23042013-04-29 Uros Bizjak <ubizjak@gmail.com>
2305
2306 PR target/57098
2307 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2308
0b064172
IB
23092013-04-29 Ian Bolton <ian.bolton@arm.com>
2310
2311 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2312 from/to S register.
2313 (movdi_aarch64): Support LDR/STR from/to D register.
2314
473cec55
IB
23152013-04-29 Ian Bolton <ian.bolton@arm.com>
2316
2317 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2318 or higher by default.
2319
a6f30e66
RB
23202013-04-29 Richard Biener <rguenther@suse.de>
2321
2322 PR middle-end/57075
2323 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2324 even if not adding abnormal edges for calls that can make
2325 abnormal gotos.
2326
0c2b2040
RB
23272013-04-29 Richard Biener <rguenther@suse.de>
2328
2329 PR middle-end/57103
2330 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2331 TREE_BLOCK.
2332 (move_stmt_r): Remove redundant checking.
2333
f41f80f9
TJ
23342013-04-29 Teresa Johnson <tejohnson@google.com>
2335
2336 PR bootstrap/57077
2337 * basic-block.h (apply_scale): New function.
2338 (apply_probability): Use apply_scale.
2339 * gimple-streamer-in.c (input_bb): Ditto.
2340 * lto-streamer-in.c (input_cfg): Ditto.
2341 * lto-cgraph.c (merge_profile_summaries): Ditto.
2342 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 2343 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
2344 (copy_edges_for_bb): Ditto.
2345 (copy_cfg_body): Ditto.
2346
315bbd2e
TV
23472013-04-29 Tom de Vries <tom@codesourcery.com>
2348
2349 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2350 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2351 (tail_merge_optimize): Handle current_loops == NULL.
2352
ebbd90d8
JL
23532013-04-26 Jeff Law <law@redhat.com>
2354
2355 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2356 (simplify_cond_using_ranges): Generalize code to simplify
2357 COND_EXPRs where one argument is a constant and the other
2358 is an SSA_NAME created by an integral type conversion.
2359
8b9b57eb
KT
23602013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2361
2362 * config/arm/arm.md (store_minmaxsi): Use only when
2363 optimize_insn_for_size_p.
2364
9498e5dc
CB
23652013-04-29 Christian Bruel <christian.bruel@st.com>
2366
2367 PR target/57108
2368 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2369
6093bc06
RB
23702013-04-29 Richard Biener <rguenther@suse.de>
2371
2372 PR middle-end/57089
fdca7d03
UB
2373 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2374 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
2375 (expand_omp_for_generic): Properly add loops.
2376 (expand_omp_for_static_nochunk): Likewise.
2377 (expand_omp_for_static_chunk): Likewise.
2378 (expand_omp_for): For the degenerate case fixup loops.
2379 (expand_omp_sections): Fix default bb placement in loops.
2380 (expand_omp_atomic_pipeline): Properly add loops.
2381
84aacbfd
KT
23822013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2383
2384 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2385
8dee4479
TV
23862013-04-29 Tom de Vries <tom@codesourcery.com>
2387
2388 * tree-ssa-tail-merge.c: Update header comment.
2389
47934dc4
JG
23902013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2391
2392 * config/aarch64/arm_neon.h
2393 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2394 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2395 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2396 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2397 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2398 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2399 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2400 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2401
384be29f
JG
24022013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2403
2404 * config/aarch64/aarch64-simd.md
2405 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2406 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2407 fix_trunc, fixuns_trunc.
2408 (ftrunc<VDQF:mode>2): New.
2409 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2410 (fix_trunc_optab): New.
2411
0386b123
JG
24122013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2413
2414 * config/aarch64/aarch64-builtins.c
2415 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2416 iceilf, lround, iroundf.
2417
00fcb892
UB
24182013-04-29 Uros Bizjak <ubizjak@gmail.com>
2419
2420 PR target/54349
2421 * config/i386/i386.h (enum ix86_tune_indices)
2422 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2423 New, split from X86_TUNE_INTER_UNIT_MOVES.
2424 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2425 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2426 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2427 (TARGET_INTER_UNIT_MOVES): Remove.
2428 * config/i386/i386.c (initial_ix86_tune_features): Update.
2429 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2430 (ix86_expand_convert_uns_didf_sse): Use
2431 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2432 (ix86_expand_vector_init_one_nonzero): Ditto.
2433 (ix86_expand_vector_init_interleave): Ditto.
2434 (inline_secondary_memory_needed): Return true for moves from SSE class
2435 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2436 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2437 * config/i386/constraints.md (Yi, Ym): Depend on
2438 TARGET_INTER_UNIT_MOVES_TO_VEC.
2439 (Yj, Yn): New constraints.
2440 * config/i386/i386.md (*movdi_internal): Change constraints of
2441 operand 1 from Yi to Yj and from Ym to Yn.
2442 (*movsi_internal): Ditto.
2443 (*movdf_internal): Ditto.
2444 (*movsf_internal): Ditto.
2445 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2446 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2447 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2448 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2449 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2450 * config/i386/sse.md (movdi_to_sse): Ditto.
2451 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2452 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2453 TARGET_INTER_UNIT_MOVES.
2454 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2455 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2456 instead of TARGET_INTER_UNIT_MOVES.
2457 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2458 operand 1 from Yi to Yj and from Ym to Yn.
2459
4c871069
JG
24602013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2461
2462 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2463 (float_truncate_hi_): Likewise.
2464 (float_extend_lo_): Likewise.
2465 (float_truncate_lo_): Likewise.
2466 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2467 (aarch64_float_extend_lo_v2df): Likewise.
2468 (vec_unpacks_hi_v4sf): Likewise.
2469 (aarch64_float_truncate_lo_v2sf): Likewise.
2470 (aarch64_float_truncate_hi_v4sf): Likewise.
2471 (vec_pack_trunc_v2df): Likewise.
2472 (vec_pack_trunc_df): Likewise.
2473
1709ff9b
JG
24742013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2475
2476 * config/aarch64/aarch64-builtins.c
2477 (aarch64_fold_builtin): Fold float conversions.
2478 * config/aarch64/aarch64-simd-builtins.def
2479 (floatv2si, floatv4si, floatv2di): New.
2480 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2481 * config/aarch64/aarch64-simd.md
2482 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2483 * config/aarch64/iterators.md (FLOATUORS): New.
2484 (optab): Add float, floatuns.
2485 (su_optab): Likewise.
2486
ce966824
JG
24872013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2488
2489 * config/aarch64/aarch64-builtins.c
2490 (aarch64_builtin_vectorized_function): Use new names for
2491 fcvt builtins.
2492 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2493 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2494 (fcvtzu): Split as...
2495 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2496 (fcvtas): Split as...
2497 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2498 (fcvtau): Split as...
2499 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2500 (fcvtps): Split as...
2501 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2502 (fcvtpu): Split as...
2503 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2504 (fcvtms): Split as...
2505 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2506 (fcvtmu): Split as...
2507 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2508 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2509 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2510 (lfrintnusf, lfrintnudf): Likewise.
2511 * config/aarch64/aarch64-simd.md
2512 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2513 define_insn.
2514 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2515 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2516 (fcvt_pattern): Likewise.
2517
b9de24fe
JG
25182013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2519
2520 * config/aarch64/aarch64-simd.md
2521 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2522 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2523
77a205be
JG
25242013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2525
2526 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2527 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2528 (vrnd<a,m,n,p>_f32): Implement using builtins.
2529 (vrnd<i,x><q>_f<32, 64>): New.
2530
0659ce6f
JG
25312013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2532
2533 * config/aarch64/aarch64-builtins.c
2534 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2535 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2536 (frintz): Rename to...
2537 (btrunc): ...this.
2538 (frintp): Rename to...
2539 (ceil): ...this.
2540 (frintm): Rename to...
2541 (floor): ...this.
2542 (frinti): Rename to...
2543 (nearbyint): ...this.
2544 (frintx): Rename to...
2545 (rint): ...this.
2546 (frinta): Rename to...
2547 (round): ...this.
2548 * config/aarch64/aarch64-simd.md
2549 (aarch64_frint<frint_suffix><mode>): Delete.
2550 (<frint_pattern><mode>2): Convert to insn.
2551 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2552 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2553 (frint_pattern): Likewise.
2554 (frint_suffix): Likewise.
2555
ea78906a
RB
25562013-04-29 Richard Biener <rguenther@suse.de>
2557
2558 PR tree-optimization/57081
2559 * loop-init.c: Include tree-flow.h.
2560 (loop_optimizer_finalize): Free number of iteration estimates.
2561 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2562
baee1763
JJ
25632013-04-29 Jakub Jelinek <jakub@redhat.com>
2564
94dc5332
JJ
2565 PR tree-optimization/57083
2566 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2567 non-singleton shift count range, zero extend low_bound for uns case.
2568
baee1763
JJ
2569 * config/i386/predicates.md (general_vector_operand): New predicate.
2570 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2571 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2572 if they aren't nonimmediate operands. If their original values
2573 satisfy const_vector_equal_evenodd_p, don't shift them.
2574 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2575 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2576 if not nonimmediate_operand.
2577 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2578 instead of register_operand.
2579 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2580
a9073727 25812013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
2582
2583 * stor-layout.c (finalize_size_functions): Allocate a structure and
2584 reset cfun before dumping the functions.
2585
ba8011e6
JJ
25862013-04-27 Jakub Jelinek <jakub@redhat.com>
2587
d6fde69e
JJ
2588 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2589
ba8011e6
JJ
2590 PR target/56866
2591 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2592 use xop_pmacsdqh if uns_p.
2593 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2594 the immediate rotate count.
2595
2c62cbaa
VM
25962013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2597
2598 * rtl.h (struct rtx_def): Add comment for field jump.
2599 (LRA_SUBREG_P): New macro.
2600 * recog.c (register_operand): Check LRA_SUBREG_P.
2601 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2602 stack frame.
2603 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2604 (lra_final_code_change): Skip subreg change for operators.
2605 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2606 if there are no operand changes.
2607 * lra-constraints.c (curr_insn_set): New.
2608 (match_reload): Set LRA_SUBREG_P.
2609 (emit_spill_move): Ditto.
2610 (check_and_process_move): Use curr_insn_set. Process only single
2611 set insns. Don't initialize sec_mem_p and change_p.
2612 (simplify_operand_subreg): Use LRA_SUBREG_P.
2613 (reg_in_class_p): New function.
2614 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2615 of #ifdef. Add code to remove cycling.
2616 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2617 non-null disp. Reload inner instead of disp when base and index
2618 are null. Try to put lo_sum into register.
2619 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2620 (check_and_process_move): Move code for move cost check to
2621 simple_move_p. Remove equiv_substitution.
2622 (simple_move_p): New function.
2623 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2624 curr_insn_set. Call check_and_process_move only for single set
2625 insns. Use the new function. Move call of check_and_process_move
2626 after operand equiv substitution and address process.
2627
e7d764f3
JJ
26282013-04-26 Jakub Jelinek <jakub@redhat.com>
2629
2630 PR go/57045
2631 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2632 with nonlocal goto receivers or returns twice calls, ignore
2633 unininitialized values from abnormal edges to nl goto receiver
2634 or returns twice call.
2635
41e10689
JJ
26362013-04-26 Jakub Jelinek <jakub@redhat.com>
2637
2638 PR tree-optimization/57051
2639 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2640 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2641 bitsize.
2642
d7ed20db
RB
26432013-04-26 Richard Biener <rguenther@suse.de>
2644
2645 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2646 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2647 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2648 (fixup_loop_arrays_after_move): New function.
2649 (move_sese_region_to_fn): Properly outline the loop tree parts
2650 of the SESE region.
2651
df93505e
UB
26522013-04-26 Uros Bizjak <ubizjak@gmail.com>
2653
2654 * config/i386/i386.md (type, unit): Fix long lines.
2655
dd366ec3
RB
26562013-04-26 Richard Biener <rguenther@suse.de>
2657
2658 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2659 (lto-streamer-out.o): Likewise.
2660 * cfgloop.c (init_loops_structure): Export, add struct function
2661 argument and adjust.
2662 (flow_loops_find): Adjust.
2663 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2664 (init_loops_structure): Declare.
2665 * lto-streamer-in.c: Include cfgloop.h.
2666 (input_cfg): Input the loop tree.
2667 * lto-streamer-out.c: Include cfgloop.h.
2668 (output_cfg): Output the loop tree.
2669 (output_struct_function_base): Do not drop PROP_loops.
2670
a9e0d843
RB
26712013-03-26 Richard Biener <rguenther@suse.de>
2672
2673 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2674 (pass_build_cfg): Provide PROP_loops.
2675 (move_sese_region_to_fn): Remove loops that are outlined into fn
2676 for now.
2677 * tree-inline.c: Include cfgloop.h.
2678 (initialize_cfun): Do not drop PROP_loops.
2679 (copy_loops): New function.
2680 (copy_cfg_body): Copy loop structure.
2681 (tree_function_versioning): Initialize destination loop tree.
2682 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2683 (pass_parallelize_loops): Do IL verification.
2684 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2685 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2686 the CFG make sure we fixup loops as well.
2687 * tree-ssa-tail-merge.c: Include cfgloop.h.
2688 (replace_block_by): When merging loop latches mark loops for fixup.
2689 * lto-streamer-out.c (output_struct_function_base): Drop
2690 PROP_loops for now.
2691 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2692 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2693 * ipa-split.c: Include cfgloop.h.
2694 (split_function): Add the new return block to the loop tree root.
2695 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2696 whether we have removed the forwarder block.
2697 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2698 * cfgloop.h (place_new_loop): Declare.
2699 * cfgloopmanip.c (place_new_loop): Export.
2700 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2701 (tree-switch-conversion.o): Likewise.
2702 (tree-complex.o): Likewise.
2703 (tree-inline.o): Likewise.
2704 (tree-ssa-tailmerge.o): Likewise.
2705 (ipa-split.o): Likewise.
2706 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2707 (tree-ssa-copy.o): Likewise.
2708 * tree-switch-conversion.c: Include cfgloop.h
2709 (process_switch): If we emit a bit-test cascade, schedule loops
2710 for fixup.
2711 * tree-complex.c: Include cfgloop.h.
2712 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2713 * asan.c: Include cfgloop.h.
2714 (create_cond_insert_point): Properly add new basic-blocks to
2715 loops, schedule loop fixup.
2716 * cfgloop.c (verify_loop_structure): Check that looks are not
2717 marked for fixup.
2718 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2719 to loops.
2720 (expand_omp_for_generic): Likewise.
2721 (expand_omp_sections): Likewise.
2722 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2723 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2724 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2725 is initialized, not when loops are present.
2726 * tree-parloops.c (parallelize_loops): Remove checking here.
2727 * passes.c (init_optimization_passes): Schedule a copy-propagation
2728 pass before complete unrolling of inner loops.
2729
e78e8a0b
JJ
27302013-04-26 Jakub Jelinek <jakub@redhat.com>
2731
a2e836b2
JJ
2732 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2733 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2734 (colorize_init): Add argument to _WIN32 version.
2735 * toplev.c: Include diagnostic-color.h.
2736 (process_options): Default to -fdiagnostics-color=auto if
2737 GCC_COLORS env var is in the environment.
2738 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
2739 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2740 env var is in the environment, the default is auto rather than never.
a2e836b2 2741
e78e8a0b
JJ
2742 * diagnostic.h (file_name_as_prefix): Add context argument.
2743 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2744 the string as locus.
2745 * langhooks.c (lhd_print_error_function): Adjust caller.
2746
013e5ef9
LC
27472013-04-25 Lawrence Crowl <crowl@google.com>
2748
2749 * var-tracking.c (shared_hash_def::htab):
2750 Change type to hash_table. Update dependent calls and types.
2751
4a8fb1a1
LC
27522013-04-25 Lawrence Crowl <crowl@google.com>
2753
2754 * Makefile.in: Update as needed below.
2755
2756 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2757 Move declaration to after the type's method definitons.
2758
2759 * attribs.c (htab_t scoped_attributes::attribute_hash):
2760 Change type to hash_table. Update dependent calls and types.
2761
2762 * bitmap.c (htab_t bitmap_desc_hash):
2763 Change type to hash_table. Update dependent calls and types.
2764
2765 * cselib.c (htab_t cselib_hash_table):
2766 Change type to hash_table. Update dependent calls and types.
2767
2768 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2769 (hash_string_slot_node): Move implementation into lto-streamer.h
2770 struct string_slot_hasher.
2771 (eq_string_slot_node): Likewise.
2772
2773 * data-streamer-out.c: Update output_block::string_hash_table
2774 dependent calls and types.
2775
2776 * dwarf2cfi.c (htab_t trace_index):
2777 Change type to hash_table. Update dependent calls and types.
2778
2779 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2780 Change type to hash_table. Update dependent calls and types.
2781 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2782 (htab_t optimize_external_refs::map): Likewise.
2783 (htab_t output_comp_unit::extern_map): Likewise.
2784 (htab_t output_comdat_type_unit::extern_map): Likewise.
2785 (htab_t output_macinfo::macinfo_htab): Likewise.
2786 (htab_t optimize_location_lists::htab): Likewise.
2787 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2788
2789 * except.c (htab_t ehspec_hash_type):
2790 Change type to hash_table. Update dependent calls and types.
2791 (assign_filter_values::ttypes): Likewise.
2792 (assign_filter_values::ehspec): Likewise.
2793 (sjlj_assign_call_site_values::ar_hash): Likewise.
2794 (convert_to_eh_region_ranges::ar_hash): Likewise.
2795
2796 * gcse.c (htab_t pre_ldst_table):
2797 Change type to hash_table. Update dependent calls and types.
2798
2799 * ggc-common.c (htab_t saving_htab):
2800 Change type to hash_table. Update dependent calls and types.
2801 (htab_t loc_hash): Likewise.
2802 (htab_t ptr_hash): Likewise.
2803 (call_count): Rename ggc_call_count.
2804 (call_alloc): Rename ggc_call_alloc.
2805 (loc_descriptor): Rename make_loc_descriptor.
2806 (add_statistics): Rename ggc_add_statistics.
2807
2808 * ggc-common.c (saving_htab):
2809 Change type to hash_table. Update dependent calls and types.
2810
2811 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2812 (push_gimplify_context): Likewise.
2813 (pop_gimplify_context): Likewise.
2814 (struct gimple_temp_hash_elt): Added.
2815 (struct gimplify_hasher): Likewise.
2816 (struct gimplify_ctx.temp_htab):
2817 Change type to hash_table. Update dependent calls and types.
2818
2819 * gimple-fold.c: Include gimplify-ctx.h.
2820
2821 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2822 Change type to hash_table. Update dependent calls and types.
2823 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2824 avoid potential global name collision.
2825
2826 * gimplify.c: Include gimplify-ctx.h.
2827 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2828 (htab_t gimplify_ctx::temp_htab):
2829 Update dependent calls and types for new type hash_table.
2830 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2831 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2832
2833 * gimplify-ctx.h: New.
2834 (struct gimple_temp_hash_elt): Move from gimplify.c.
2835 (class gimplify_hasher): New.
2836 (struct gimplify_ctx): Move from gimple.h.
2837 (htab_t gimplify_ctx::temp_htab):
2838 Change type to hash_table. Update dependent calls and types.
2839
2840 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2841 (htab_t ivs_params::newivs_index):
2842 Change type to hash_table. Update dependent calls and types.
2843 (htab_t ivs_params::params_index): Likewise.
2844 (htab_t print_generated_program::params_index): Likewise.
2845 (htab_t gloog::newivs_index): Likewise.
2846 (htab_t gloog::params_index): Likewise.
2847
2848 * graphite.c: Include graphite-htab.h.
2849 4htab_t graphite_transform_loops::bb_pbb_mapping):
2850 Change type to hash_table. Update dependent calls and types.
2851
2852 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2853 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2854 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2855
2856 * graphite-dependences.c: Include graphite-htab.h.
2857 (loop_is_parallel_p): Change hash table type of parameter.
2858
2859 * graphite-htab.h: New.
2860 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2861 (extern find_pbb_via_hash): Move from graphite-poly.h.
2862 (extern loop_is_parallel_p): Move from graphite-poly.h.
2863 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2864
2865 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2866 (extern loop_is_parallel_p): Move to graphite-htab.h.
2867 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2868
2869 * haifa-sched.c (htab_t delay_htab):
2870 Change type to hash_table. Update dependent calls and types.
2871 (htab_t delay_htab_i2): Likewise.
2872
2873 * ira-color.c (htab_t allocno_hard_regs_htab):
2874 Change type to hash_table. Update dependent calls and types.
2875
2876 * ira-costs.c (htab_t cost_classes_htab):
2877 Change type to hash_table. Update dependent calls and types.
2878
2879 * loop-invariant.c (htab_t merge_identical_invariants::eq):
2880 Change type to hash_table. Update dependent calls and types.
2881
2882 * loop-iv.c (htab_t bivs):
2883 Change type to hash_table. Update dependent calls and types.
2884
2885 * loop-unroll.c (htab_t opt_info::insns_to_split):
2886 Change type to hash_table. Update dependent calls and types.
2887 (htab_t opt_info::insns_with_var_to_expand): Likewise.
2888
2889 * lto-streamer.h (struct string_slot): Move from data-streamer.h
2890 (struct string_slot_hasher): New.
2891 (htab_t output_block::string_hash_table):
2892 Change type to hash_table. Update dependent calls and types.
2893
2894 * lto-streamer-in.c (freeing_string_slot_hasher): New.
2895 (htab_t file_name_hash_table):
2896 Change type to hash_table. Update dependent calls and types.
2897
2898 * lto-streamer-out.c: Update output_block::string_hash_table dependent
2899 calls and types.
2900
2901 * lto-streamer.c (htab_t tree_htab):
2902 Change type to hash_table. Update dependent calls and types.
2903
2904 * omp-low.c: Include gimplify-ctx.h.
2905
2906 * passes.c (htab_t name_to_pass_map):
2907 Change type to hash_table. Update dependent calls and types.
2908 (pass_traverse): Rename to passes_pass_traverse.
2909
2910 * plugin.c (htab_t event_tab):
2911 Change type to hash_table. Update dependent calls and types.
2912
2913 * postreload-gcse.c (htab_t expr_table):
2914 Change type to hash_table. Update dependent calls and types.
2915 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2916
2917 * sese.c (debug_rename_map_1): Make extern.
2918 (htab_t copy_bb_and_scalar_dependences::rename_map):
2919 Change type to hash_table. Update dependent calls and types.
2920
2921 * sese.h (extern debug_rename_map): Move to .c file.
2922
2923 * store-motion.c (htab_t store_motion_mems_table):
2924 Change type to hash_table. Update dependent calls and types.
2925
2926 * trans-mem.c (htab_t tm_new_mem_hash):
2927 Change type to hash_table. Update dependent calls and types.
2928
2929 * tree-browser.c (htab_t TB_up_ht):
2930 Change type to hash_table. Update dependent calls and types.
2931
2932 * tree-cfg.c (htab_t discriminator_per_locus):
2933 Change type to hash_table. Update dependent calls and types.
2934
2935 * tree-complex.c: Include tree-hasher.h
2936 (htab_t complex_variable_components):
2937 Change type to hash_table. Update dependent calls and types.
2938
2939 * tree-eh.c (htab_t finally_tree):
2940 Change type to hash_table. Update dependent calls and types.
2941
2942 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2943 struct int_tree_hasher.
2944 (extern int_tree_map_eq): Likewise.
2945 (uid_decl_map_hash): Removed.
2946 (extern decl_tree_map_eq): Likewise.
2947
2948 * tree-hasher.h: New.
2949 (struct int_tree_hasher): New.
2950 (typedef int_tree_htab_type): New.
2951
2952 * tree-inline.c: Include gimplify-ctx.h.
2953
2954 * tree-mudflap.c: Include gimplify-ctx.h.
2955
2956 * tree-parloops.c: Include tree-hasher.h.
2957 (htab_t eliminate_local_variables_stmt::decl_address):
2958 Change type to hash_table. Update dependent calls and types.
2959 (htab_t separate_decls_in_region::decl_copies): Likewise.
2960
2961 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2962 Change type to hash_table. Update dependent calls and types.
2963
2964 * tree-sra.c (candidates):
2965 Change type to hash_table. Update dependent calls and types.
2966
2967 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2968 in tree-flow.h.
2969 (int_tree_map_hash): Likewise.
2970
2971 * tree-ssa-dom.c (htab_t avail_exprs):
2972 Change type to hash_table. Update dependent calls and types.
2973
2974 * tree-ssa-live.c (var_map_base_init::tree_to_index):
2975 Change type to hash_table. Update dependent calls and types.
2976
2977 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2978 Change type to hash_table. Update dependent calls and types.
2979
2980 * tree-ssa-phiopt.c (seen_ssa_names):
2981 Change type to hash_table. Update dependent calls and types.
2982
2983 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2984 Change type to hash_table. Update dependent calls and types.
2985
2986 * tree-ssa-uncprop.c (equiv):
2987 Change type to hash_table. Update dependent calls and types.
2988
c5a44004
JJ
29892013-04-25 Jakub Jelinek <jakub@redhat.com>
2990
2991 PR rtl-optimization/57003
2992 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2993 call note_stores with kill_clobbered_value callback again after
2994 killing regs_invalidated_by_call.
2995
09962a4a
JG
29962013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2997
2998 * config/aarch64/aarch64-simd.md
2999 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3000 (aarch64_simd_bsl<mode>): Likewise.
3001 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3002
ea28bb0b
MP
30032013-04-25 Marek Polacek <polacek@redhat.com>
3004
3005 PR tree-optimization/57066
3c21604f 3006 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3007
96659611
JG
30082013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3009
3010 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3011
9697e620
JG
30122013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3013
3014 * config/aarch64/aarch64-builtins.c
3015 (aarch64_fold_builtin): New.
3016 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3017 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3018 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3019 * config/aarch64/arm_neon.h
3020 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3021
0ac198d3
JG
30222013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3023 Tejas Belagod <tejas.belagod@arm.com>
3024
3025 * config/aarch64/aarch64-builtins.c
3026 (aarch64_gimple_fold_builtin): New.
3027 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3028 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3029 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3030 (addvv4sf): Update.
3031 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3032
58cff58c
N
30332013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3034
df93505e 3035 * config/aarch64/aarch64.md
58cff58c
N
3036 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3037
7e0228bf
N
30382013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3039
3040 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3041 (*ngcsi_uxtw): New pattern.
3042
5819f96f 30432013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3044 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3045
3046 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3047 (TB_DREG): Add T_V4HF.
3048 (v4hf_UP): New macro.
3049 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3050 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3051 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3052 built-ins.
df93505e 3053 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3054 (arm_vector_mode_supported_p): Handle V4HF.
3055 (arm_mangle_map): Handle V4HFmode.
3056 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3057 * config/arm/arm_neon_builtins.def: Add entries for
3058 vcvtv4hfv4sf, vcvtv4sfv4hf.
3059 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3060 (neon_vcvtv4hfv4sf): Likewise.
3061 * config/arm/neon-gen.ml: Handle half-precision floating point
3062 features.
3063 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3064 * config/arm/arm_neon.h: Regenerate.
3065 * config/arm/neon.ml (type elts): Add F16.
3066 (type vectype): Add T_float16x4, T_floatHF.
3067 (type vecmode): Add V4HF.
3068 (type features): Add Requires_FP_bit feature.
3069 (elt_width): Handle F16.
3070 (elt_class): Likewise.
3071 (elt_of_class_width): Likewise.
3072 (mode_of_elt): Refactor.
3073 (type_for_elt): Handle F16, fix error messages.
3074 (vectype_size): Handle T_float16x4.
3075 (vcvt_sh): New function.
3076 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3077 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3078 (string_of_mode): Handle V4HF.
3079 * doc/arm-neon-intrinsics.texi: Regenerate.
3080
1ef395e4
JG
30812013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3082
3083 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3084 format specifier in 'X' case.
3085
41c34e94
AM
30862013-04-25 Alan Modra <amodra@gmail.com>
3087
3088 PR target/57052
3089 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3090 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3091 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3092 Repeat for many other rotate/shift and mask patterns using subregs.
3093 Name lshiftrt insns.
3094 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3095 on WORDS_BIG_ENDIAN.
3096
b9a7eb5d
AM
30972013-04-25 Alan Modra <amodra@gmail.com>
3098
3099 * config.gcc: Support little-endian powerpc-linux targets.
3100 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3101 (LINK_OS_LINUX_SPEC): Define.
3102 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3103 Preserve MASK_LITTLE_ENDIAN.
3104 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3105 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3106 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3107 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3108 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3109 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3110 Correct fp word order for little-endian. Don't shift toc entries
3111 smaller than a word for little-endian.
3112 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3113 (bswapdi2 splits): Correct low-part subreg for little-endian.
3114 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3115 low/high where such is correct only for be.
3116 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3117 little-endian for -mcall-aixdesc.
3118
87f73374
AM
31192013-04-25 Alan Modra <amodra@gmail.com>
3120
3121 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3122 replace_equiv_address_nv.
3123
cabf91cd
AM
31242013-04-25 Alan Modra <amodra@gmail.com>
3125
3126 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3127
0ae24cc8
VM
31282013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3129
3130 Revert:
3131 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3132 * rtl.h (struct rtx_def): ...
cabf91cd 3133
77bce07c
VM
31342013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3135
3136 PR rtl-optimizations/57046
3137 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3138 for multi-reg splits.
3139
0db63e7f
L
31402013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3141
3142 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3143
3362b6b6
SA
31442013-04-24 Sterling Augustine <saugustine@google.com>
3145
3146 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3147 (comp_dir_string, debug_str_dwo_section): New.
3148 (DEBUG_STR_DWO_SECTION): Rename to ...
3149 (DEBUG_DWO_STR_SECTION): ... this.
3150 (DEBUG_NORM_STR_SECTION): Delete.
3151 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3152 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3153 (find_AT_string): Move most logic to ...
3154 (find_AT_string_in_table): ... here. New.
3155 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3156 add_skeleton_AT_string. Delete logic.
3157 (output_skeleton_debug_sections): Remove call to
3158 add_top_level_skeleton_die_attrs.
3159 (add_comp_dir_attribute): Move logic to comp_dir_string.
3160 (dwarf2out_init): Initialize debug_str_dwo_section.
3161 (output_indirect_string): Call find_string_form.
3162 (output_indirect_strings): Rewrite.
3163 (prune_unused_types): Empty skeleton_debug_str_hash.
3164 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3165 (dwarf2out_finish): Call output_indirect_strings.
3166
e93e18e9
PC
31672013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3168
3169 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3170
f6ce35ac
VM
31712013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3172
cabf91cd 3173 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
3174 (LRA_SUBREG_P): New macro.
3175 * recog.c (register_operand): Check LRA_SUBREG_P.
3176 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3177 stack frame.
3178 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3179 (lra_final_code_change): Skip subreg change for operators.
3180 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3181 if there are no operand changes.
3182 * lra-constraints.c (curr_insn_set): New.
3183 (match_reload): Set LRA_SUBREG_P.
3184 (emit_spill_move): Ditto.
3185 (check_and_process_move): Use curr_insn_set. Process only single
3186 set insns. Don't initialize sec_mem_p and change_p.
3187 (simplify_operand_subreg): Use LRA_SUBREG_P.
3188 (reg_in_class_p): New function.
3189 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3190 of #ifdef. Add code to remove cycling.
3191 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3192 non-null disp. Reload inner instead of disp when base and index
3193 are null. Try to put lo_sum into register.
3194 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 3195 (check_and_process_move): Move code for move cost check to
f6ce35ac 3196 simple_move_p. Remove equiv_substitution.
cabf91cd 3197 (simple_move_p): New function.
f6ce35ac
VM
3198 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3199 curr_insn_set. Call check_and_process_move only for single set
3200 insns. Use the new function. Move call of check_and_process_move
3201 after operand equiv substitution and address process.
3202
38047d90
JG
32032013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3204
3205 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3206 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3207 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3208
13f39b2e
PC
32092013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3210
3211 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3212
97c116dc
MP
32132013-04-24 Marek Polacek <polacek@redhat.com>
3214
3215 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3216 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3217 (select_loops_exit_conditions): Likewise.
3218 (number_of_iterations_for_all_loops): Likewise.
3219 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3220 (scev_analysis): Likewise.
3221
83082391
CM
32222013-04-02 Catherine Moore <clm@codesourcery.com>
3223 Chao-ying Fu <fu@mips.com>
3224
cabf91cd
AM
3225 * config/mips/micromips.md (jraddiusp): New pattern.
3226 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3227 instruction if possible.
83082391 3228
19e34aa2
AM
32292013-04-24 Alan Modra <amodra@gmail.com>
3230
3231 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3232
fdb6603c
JB
32332013-04-24 Julian Brown <julian@codesourcery.com>
3234 Chung-Lin Tang <cltang@codesourcery.com>
3235
3236 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
3237 dependency behavior in enumeration type DIE generation. Add TODO note
3238 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 3239
bf190e8d
LC
32402013-04-23 Lawrence Crowl <crowl@google.com>
3241
3242 * Makefile.in: Update as needed below.
3243
3244 * hash-table.h (class hash_table):
3245 Correct many methods with parameter types compare_type to the correct
3246 value_type. (Correct code was unlikely to notice the change.)
3247 (hash_table::elements_with_deleted) New.
3248 (class hashtable::iterator): New.
3249 (hashtable::begin()): New.
3250 (hashtable::end()): New.
3251 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3252
3253 * statistics.c (statistics_hashes):
3254 Change type to hash_table. Update dependent calls and types.
3255
3256 * tree-into-ssa.c (var_infos):
3257 Change type to hash_table. Update dependent calls and types.
3258
3259 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3260 Change type to hash_table. Update dependent calls and types.
3261
3262 * tree-ssa-loop-im.c (struct mem_ref.refs):
3263 Change type to hash_table. Update dependent calls and types.
3264
3265 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3266 Change type to hash_table. Update dependent calls and types.
3267
3268 * tree-ssa-sccvn.c (vn_tables_s::nary):
3269 Change type to hash_table. Update dependent calls and types.
3270 (vn_tables_s::phis): Likewise.
3271 (vn_tables_s::references): Likewise.
3272
3273 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3274 (vn_reference_eq): Update parameter and return types.
3275
3276 * tree-ssa-structalias.c (pointer_equiv_class_table):
3277 Change type to hash_table. Update dependent calls and types.
3278 (location_equiv_class_table): Likewise.
3279
3280 * tree-vect-data-refs.c: Consequential changes for making
3281 peeling a hash_table.
3282
3283 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3284 (destroy_loop_vec_info): Dependent hash_table update.
3285
3286 * tree-vectorizer.h (peeling_htab):
3287 Change type to hash_table. Update dependent calls and types.
3288
d70a81dd
SC
32892013-04-23 Shiva Chen <shiva0217@gmail.com>
3290
cabf91cd
AM
3291 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3292 to check the register content is equal or not.
3293 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3294 to assign register content record.
3295 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 3296 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
3297 * lra-int.h (struct lra_reg): Add offset member.
3298 (lra_reg_val_equal_p): New static inline function.
3299 (lra_update_reg_val_offset): New static inline function.
3300 (lra_assign_reg_val): New static inline function.
3301 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3302 to assign register content record.
3303 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 3304
b894a1f3
CM
33052013-04-23 Catherine Moore <clm@codesourcery.com>
3306
3307 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3308 operands. Record compression.
3309
ecd14de9
XDL
33102013-04-23 Xinliang David Li <davidxl@google.com>
3311
3312 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3313
92e776e9
RB
33142013-04-23 Richard Biener <rguenther@suse.de>
3315
3316 PR middle-end/57036
3317 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3318 parameter, only add abnormal goto edges from the copied body
3319 if the call could perform abnormal gotos.
3320 (copy_cfg_body): Adjust.
3321
a15ee567
SN
33222013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3323
3324 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3325
08c52234
AS
33262013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3327
3328 * coretypes.h (gimple_stmt_iterator): Add struct to make
3329 compatible with C.
3330
999c1171
RB
33312013-04-23 Richard Biener <rguenther@suse.de>
3332
3333 PR tree-optimization/57026
3334 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3335 from SSA names occuring in abnormal PHI nodes.
3336
53669259
AK
33372013-04-22 Andi Kleen <ak@linux.intel.com>
3338
3339 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3340
1a0ad150
AK
33412013-04-22 Andi Kleen <ak@linux.intel.com>
3342
3343 * lto/lto.c (print_lto_report_1): Declare early.
3344 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3345
057f8f20
AK
33462013-04-22 Andi Kleen <ak@linux.intel.com>
3347
3348 * common.opt (-flto-report-wpa): Add.
3349 * doc/invoke.texi (-flto-report-wpa): Add.
3350 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3351 (lto_main): dito.
3352
473b1e05
XDL
33532013-04-22 Xinliang David Li <davidxl@google.com>
3354
3355 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3356 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3357 * Makefile.in: New dependency
3358
cabf91cd 3359 David Daney <ddaney.cavm@gmail.com>
b1485a33 3360
cabf91cd
AM
3361 * configure.ac (gcc_cv_as_micromips_support): Use the
3362 --fatal-warnings option.
3363 * configure: Regenerate.
b1485a33 3364
829d0168
MP
33652013-04-22 Marek Polacek <polacek@redhat.com>
3366
3367 PR sanitizer/56990
3368 * tsan.c (instrument_expr): Don't instrument expression
3369 in case its size is zero.
3370
6d9b7208
UB
33712013-04-22 Uros Bizjak <ubizjak@gmail.com>
3372
3373 PR target/57032
3374 Revert:
3375 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3376
3377 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3378
ea679d55
JG
33792013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3380
3381 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3382 (gimple_stmt_iterator): New typedef.
3383 * gimple.h (gimple_stmt_iterator): Rename to...
3384 (gimple_stmt_iterator_d): ... This.
3385 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3386 trees be valid for GIMPLE and GENERIC.
3387 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3388 * gimple-fold.c (gimple_fold_call): Call target hook
3389 gimple_fold_builtin.
3390 * hooks.c (hook_bool_gsiptr_false): New.
3391 * hooks.h (hook_bool_gsiptr_false): New.
3392 * target.def (fold_stmt): New.
3393 * doc/tm.texi: Regenerate.
3394
88a581da
VM
33952013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3396
3397 PR target/57018
3398 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3399 a set sp if no stack realignment.
3400
92be22dc
NC
34012013-04-22 Nick Clifton <nickc@redhat.com>
3402
3403 * config.gcc (tilegx-linux): Extend extra_objs rather than
3404 overwriting it.
3405 (tilepro-linux): Likewise.
3406
0ddec79f
JG
34072013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3408
3409 * config/aarch64/aarch64-builtins.c
3410 (CF): Remove.
3411 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3412 (VAR<1-12>): Add MAP parameter.
3413 (BUILTIN_*): Likewise.
3414 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3415 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3416 (aarch64_ushl_n<mode>): Likewise.
3417 (aarch64_sshr_n<mode>): Likewise.
3418 (aarch64_ushr_n<mode>): Likewise.
3419 (aarch64_<maxmin><mode>): Likewise.
3420 (aarch64_sqrt<mode>): Likewise.
3421 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3422 (vshr<q>_n_*): Likewise.
3423
0050faf8
JG
34242013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3425
3426 * config/aarch64/aarch64-builtins.c
3427 (aarch64_simd_builtin_type_mode): Handle SF types.
3428 (sf_UP): Define.
3429 (BUILTIN_GPF): Define.
3430 (aarch64_init_simd_builtins): Handle SF types.
3431 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3432 (frecps): Likewise.
3433 (frecpx): Likewise.
3434 * config/aarch64/aarch64-simd.md
3435 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3436 (aarch64_frecpe<mode>): New.
3437 (aarch64_frecps<mode>): Likewise.
3438 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3439 (v8type): Add frecp<esx>.
3440 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3441 (aarch64_frecps<mode>): Likewise.
3442 * config/aarch64/iterators.md (FRECP): New.
3443 (frecp_suffix): Likewise.
3444 * config/aarch64/arm_neon.h
3445 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3446
0fad3dbc 34472013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
3448
3449 PR target/56995
3450 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3451 (REG_CLASS_NAMES): Idem.
3452 (REG_CLASS_CONTENTS): Idem.
3453 (REGCLASS_HAS_FP_REG): Idem.
3454 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3455 (sh_conditional_register_usage): Idem.
3456
3e8a33f9
JL
34572013-04-21 Jeff Law <law@redhat.com>
3458
3459 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3460 (ssa_forward_propagate_and_combine): Use it.
3461
f38e1b0a
VM
34622013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3463
3464 * lra.c: Update the flow chart diagram.
3465
682303da
VM
34662013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3467
3468 PR rtl-optimization/56847
3469 * lra-constraints.c (process_alt_operands): Discourage alternative
3470 with non-matche doffsettable memory constraint fro memory with
3471 known offset.
3472
f6b64c35
RB
34732013-04-19 Richard Biener <rguenther@suse.de>
3474
3475 PR tree-optimization/56982
3476 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3477 function.
3478 * gimplify.c (gimplify_call_expr): Notice special calls.
3479 (gimplify_modify_expr): Likewise.
3480 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3481 abnormal control flow receivers.
3482 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3483 in the same way as cfun->has_nonlocal_labels.
3484 (gimple_purge_dead_abnormal_call_edges): Likewise.
3485 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3486 receivers start a basic-block.
3487
01d8bf07
RB
34882013-04-19 Richard Biener <rguenther@suse.de>
3489
3490 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3491 member ...
3492 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3493 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3494 (SLP_TREE_LOAD_PERMUTATION): Add.
3495 (vect_transform_slp_perm_load): Adjust prototype.
3496 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3497 (vect_free_slp_instance): Likewise.
3498 (vect_create_new_slp_node): Likewise.
3499 (vect_supported_slp_permutation_p): Remove.
3500 (vect_slp_rearrange_stmts): Adjust.
3501 (vect_supported_load_permutation_p): Likewise. Inline
3502 vect_supported_slp_permutation_p here.
3503 (vect_analyze_slp_instance): Compute load permutations per
3504 slp node instead of per instance.
3505 (vect_get_slp_defs): Adjust.
3506 (vect_transform_slp_perm_load): Likewise.
3507 (vect_schedule_slp_instance): Remove redundant code.
3508 (vect_schedule_slp): Remove hack for PR56270, add it ...
3509 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3510 CSE loads for SLP. Adjust.
3511
ede22fc3
GY
35122013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3513
3514 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3515 spelling in two comments.
3516
67bc84fb
GY
35172013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3518
3519 PR target/56797
3520 * config/arm/arm.c (load_multiple_sequence): Require SP
3521 as base register for loads if SP is in the register list.
3522
e248d83f
MJ
35232013-04-19 Martin Jambor <mjambor@suse.cz>
3524
3525 PR tree-optimization/56718
3526 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3527 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3528 and made public. Adjusted all callers.
3529 (ipa_intraprocedural_devirtualization): New function.
3530 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3531 (ipa_intraprocedural_devirtualization): Likewise.
3532 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3533
4891e8f8
RB
35342013-04-19 Richard Biener <rguenther@suse.de>
3535
3536 PR tree-optimization/57000
3537 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3538
dad89f7c
TG
35392013-04-19 Terry Guo <terry.guo@arm.com>
3540
3541 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3542 Replace with ...
3543 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3544 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3545 (cortex_m4_fmacs): Use new reservations.
3546 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3547
72ea0d47
VM
35482013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3549
f1e6512c 3550 PR rtl-optimization/56999
72ea0d47
VM
3551 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3552 related code.
3553 (lra_coalesce): Remove split_origin_bitmap and related code.
3554 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3555 ranges if necessary.
3556
780a5b71
UB
35572013-04-18 Uros Bizjak <ubizjak@gmail.com>
3558
3559 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3560 New array.
3561 (ix86_expand_call): Remove clobbered_registers array and use
3562 x86_64_ms_sysv_extra_clobbered_registers instead.
3563 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3564 Declare here.
3565 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3566 predicate.
3567 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3568 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3569 (*call_value_rex64_ms_sysv): Ditto.
3570
6f5a366a
CC
35712013-04-18 Cary Coutant <ccoutant@google.com>
3572
3573 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3574 parent instead of die_mark.
3575
475b8f37
DN
35762013-04-18 Diego Novillo <dnovillo@google.com>
3577
3578 * gimple.c (create_gimple_tmp): New.
3579 (get_expr_type): New.
3580 (build_assign): New.
3581 (build_type_cast): New.
3582 * gimple.h (enum ssa_mode): Define.
3583 (gimple_seq_set_location): New.
3584 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 3585 to use build_assign and build_type_cast.
475b8f37 3586
08940f33
RB
35872013-04-18 Richard Biener <rguenther@suse.de>
3588
3589 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3590 handle negative step. Remove redundant checks.
3591 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3592 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3593 for negative step and grouped loads fail to vectorize.
3594
0e0f87d4
SB
35952013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3596
3597 * emit-rtl.c (reset_insn_used_flags): New function.
3598 (reset_all_used_flags): Use it.
3599 (verify_insn_sharing): New function.
3600 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3601
4c445590
JJ
36022013-04-18 Jakub Jelinek <jakub@redhat.com>
3603
3604 PR tree-optimization/56984
3605 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3606 and (x >> M) >= N don't register any assertion if N << M is the
3607 minimum value.
3608
6873ecab
SB
36092013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3610
3611 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3612 do not delete_insn insns that have not yet been emitted, only
3613 unlink them with remove_insn.
3614 * df-scan.c (df_insn_delete): Revert r197492.
3615
3ccb989e
SB
36162013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3617
3618 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3619 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3620
36212013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
3622
3623 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3624 define_insn_and_split.
3625 (and_scc,ior_scc,negscc): Likewise.
3626 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3627
3ccb989e 36282013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
3629
3630 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3631 can benefit from using a sequence of LDRD instructions in epilogue
3632 instead of a single LDM instruction.
3633
6d10a203
MLI
36342013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3635
3636 PR 45688
3637 * doc/extend.texi: Fix typo.
3638
6983e6b5
RB
36392013-04-17 Richard Biener <rguenther@suse.de>
3640
3641 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3642 (vect_build_slp_tree): ... here.
3643 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3644 match. Remove special-casing of mismatched complex loads.
3645 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3646 re-try the match with swapped commutative operands.
3647 (vect_supported_load_permutation_p): Remove special-casing of
3648 mismatched complex loads.
3649 (vect_analyze_slp_instance): Adjust.
3650
ef23e6a2
RB
36512013-04-17 Richard Biener <rguenther@suse.de>
3652
3653 PR rtl-optimization/56921
3654 * cfgloop.h (struct loop): Add simple_loop_desc member.
3655 (struct niter_desc): Mark with GTY(()).
3656 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3657 * loop-iv.c (get_simple_loop_desc): Likewise.
3658 (free_simple_loop_desc): Likewise.
3659
3660 Revert
3661 2013-04-16 Richard Biener <rguenther@suse.de>
3662
3663 PR rtl-optimization/56921
3664 * loop-init.c (pass_rtl_move_loop_invariants): Add
3665 TODO_do_not_ggc_collect to todo_flags_finish.
3666 (pass_rtl_unswitch): Same.
3667 (pass_rtl_unroll_and_peel_loops): Same.
3668 (pass_rtl_doloop): Same.
3669
fc6f94f5
EB
36702013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3671
3672 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3673 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3674 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3675 references.
3676 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3677 * tree-streamer.c (record_common_node): Adjust reference in comment.
3678
10a88311
TG
36792013-04-17 Terry Guo <terry.guo@arm.com>
3680
3681 * config/arm/cortex-m4.md: Add a new bypass.
3682
6d9b7208 36832013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
3684
3685 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3686 New pattern.
3687 (*subs_<optab><mode>_multp2): New pattern.
3688 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3689 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3690
6d9b7208 36912013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
3692
3693 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3694 (*subs_mul_imm_<mode>): New pattern.
3695
18a6701e
DE
36962013-04-16 David Edelsohn <dje.gcc@gmail.com>
3697
3698 PR target/56948
3699 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3700 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3701 (vsx_movti_32bit): Change j->wa to O->wa.
3702
07c37b2f
RB
37032013-04-16 Richard Biener <rguenther@suse.de>
3704
3705 PR rtl-optimization/56921
3706 * loop-init.c (pass_rtl_move_loop_invariants): Add
3707 TODO_do_not_ggc_collect to todo_flags_finish.
3708 (pass_rtl_unswitch): Same.
3709 (pass_rtl_unroll_and_peel_loops): Same.
3710 (pass_rtl_doloop): Same.
3711
0e0f87d4 37122013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
3713
3714 * config/arm/arm.c (emit_multi_reg_push): New declaration
3715 for an existing function.
3716 (arm_emit_strd_push): New function.
3717 (arm_expand_prologue): Used here.
3718 (arm_emit_ldrd_pop): New function.
3719 (arm_expand_epilogue): Used here.
3720 (arm_get_frame_offsets): Update condition.
3721 (arm_emit_multi_reg_pop): Add a special case for load of a single
3722 register with writeback.
3723
5e8e2af4
UB
37242013-04-16 Uros Bizjak <ubizjak@gmail.com>
3725
3726 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3727 description.
3728
9fd9ccf7
RB
37292013-04-16 Richard Biener <rguenther@suse.de>
3730
3731 PR tree-optimization/56756
3732 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3733 (first_mem_ref_loc): New.
3734 (execute_sm): Place the load temporarily before a previous
3735 access instead of in the latch edge to ensure its SSA dependencies
3736 are defined at points dominating the load.
3737
96fba521
SB
37382013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3739
4c8af858
SB
3740 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3741 correct fix by moving header and footer insn to the footer of
3742 the merged basic block. Clear BB_END of the merged-away block.
3743
96fba521
SB
3744 PR middle-end/43631
3745 * emit-rtl.c (make_note_raw): New function.
3746 (link_insn_into_chain): New static inline function.
3747 (add_insn): Use it.
3748 (add_insn_before, add_insn_after): Factor insn chain linking code...
3749 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3750 using link_insn_into_chain.
3751 (note_outside_basic_block_p): New helper function for emit_note_after
3752 and emit_note_before.
3753 (emit_note_after): Use nobb variant of add_insn_after if the note
3754 should not be contained in a basic block.
3755 (emit_note_before): Use nobb variant of add_insn_before if the note
3756 should not be contained in a basic block.
3757 (emit_note_copy): Use make_note_raw.
3758 (emit_note): Likewise.
3759 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3760 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3761 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3762 the moved barrier the tail of the basic block it follows.
3763 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3764
7b8265ba
JJ
37652013-04-15 Jakub Jelinek <jakub@redhat.com>
3766
3767 PR tree-optimization/56962
3768 * gimple-ssa-strength-reduction.c (record_increment): Only set
3769 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3770 either rhs1 or rhs2 is equal to c->base_expr.
3771
5185d248
RB
37722013-04-15 Richard Biener <rguenther@suse.de>
3773
3774 PR tree-optimization/56933
3775 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3776 member.
3777 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3778 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3779 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3780 dependence check ...
3781 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3782 ... here.
3783 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3784 GROUP_READ_WRITE_DEPENDENCE.
3785
a24243a0
AK
37862013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3787
3788 * emit-rtl.c (reset_all_used_flags): New function.
3789 (verify_rtl_sharing): Call reset_all_used_flags before and after
3790 performing the checks.
3791
1c50eada
KT
37922013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3793
3794 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3795 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3796 * config/arm/constraints.md (De): New constraint.
3797 * config/arm/neon.md (anddi3_neon): Delete.
3798 (neon_vand<mode>): Expand to standard anddi3 pattern.
3799 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3800 Move earlier in the file.
3801 (neon_inv_logic_op2): Likewise.
3802 (arm_anddi_operand_neon): New predicate.
3803
e927b6ad
RO
38042013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3805
3806 * configure.ac (gcc_cv_ld_as_needed): Set
3807 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3808 Use -z ignore, -z record on *-*-solaris2*.
3809 (HAVE_LD_AS_NEEDED): Update comment.
3810 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3811 * configure: Regenerate.
3812 * config.in: Regenerate.
3813 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3814 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3815 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3816 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3817 equivalents. Fix markup.
3818 * doc/tm.texi: Regenerate.
3819
e0ea8797
AH
38202013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3821
3822 * config/i386/i386.opt: New option mstack-protector-guard=.
3823 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3824 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3825 TARGET_SSP_TLS_GUARD.
3826 * config/i386/i386.c (ix86_option_override_internal): Set
3827 ix86_stack_protector_guard.
3828 * config/i386/i386.md (stack_protect_set): Enable for
3829 TARGET_SSP_TLS_GUARD only.
3830 (stack_protect_set_<mode>): Ditto.
3831 (stack_protect_test): Ditto.
3832 (stack_protect_test_<mode>): Ditto.
3833 * doc/invoke.texi (i386 Option): Document.
3834
811b72f9
EB
38352013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3836
3837 PR target/56890
3838 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3839 (S_MODES): Set H_MODE bit.
3840 (SF_MODES): Set only S_MODE and SF_MODE bits.
3841 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3842 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3843 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3844 <MODE_FLOAT>: Likewise.
3845
5529fdd6
JY
38462013-04-15 Joey Ye <joey.ye@arm.com>
3847
3848 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3849
517b1da2
JY
38502013-04-15 Joey Ye <joey.ye@arm.com>
3851
3852 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3853 for real far jump.
3854 (thumb_far_jump_used_p): Count instruction size and set
3855 far_jump_used.
3856
01007ae0
EB
38572013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3858
3859 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3860 * resource.c (mark_target_live_regs): Reformat conditional block.
3861
c46f6580
SB
38622013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3863
3864 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3865 notes, they are emitted only just before final.
3866 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3867
1f397f45
SB
38682013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3869
3870 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3871 * cfgrtl.c (delete_insn): Call it here instead.
3872 * lra-spills.c (lra_final_code_change): Use delete_insn.
3873 * haifa-sched.c (sched_remove_insn): Likewise.
3874 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3875 returning to the nop pool.
3876 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3877 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
3878
58a51369
SB
38792013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3880
3881 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3882 * doc/tm.texi: Regenerated.
3883
33159866
UB
38842013-04-12 Uros Bizjak <ubizjak@gmail.com>
3885
3886 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3887 QImode checks.
3888
226e378f
SB
38892013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3890
3891 * df-core.c (df_find_def): Compare register numbers.
3892 (df_find_use): Likewise.
3893
fafb9b18
VM
38942013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3895
3896 PR target/56903
3897 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3898 lra_in_progress for return.
3899
9a946fd6
GY
39002013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3901
3902 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3903 define_insn into define_insn_and_split and emit movsicc patterns.
3904
41b83758
GY
39052013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3906
3907 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3908
d3afd9aa
RB
39092013-04-12 Richard Biener <rguenther@suse.de>
3910
3911 * tree-pass.h (TODO_do_not_ggc_collect): New.
3912 * passes.c (execute_one_ipa_transform_pass): Honor
3913 TODO_do_not_ggc_collect.
3914 (execute_one_pass): Likewise.
3915
3916 Revert
3917 2013-04-10 Richard Biener <rguenther@suse.de>
3918
3919 * passes.c (init_optimization_passes): Remove reload pass.
3920 * ira.c (do_reload): Merge into ...
3921 (ira): ... this.
3922 (rest_of_handle_reload): Remove.
3923 (pass_reload): Likewise.
3924 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3925 of reload for vzeroupper pass placement.
3926
06f9b387
JJ
39272013-04-12 Jakub Jelinek <jakub@redhat.com>
3928
3929 PR tree-optimization/56918
3930 PR tree-optimization/56920
3931 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3932 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3933 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
3934 use wide_mul_with_sign method.
3935
953094d2
RB
39362013-04-12 Richard Biener <rguenther@suse.de>
3937
3938 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3939 not be considered a gimple constant.
3940
bb506982
MG
39412013-04-12 Marc Glisse <marc.glisse@inria.fr>
3942
3943 * fold-const.c (const_binop): Handle vector shifts by a scalar.
3944 (fold_binary_loc): Call const_binop also for mixed vector-scalar
3945 operations.
3946
4b84d650
JJ
39472013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
3948 Jakub Jelinek <jakub@redhat.com>
3949
3950 * opts.c: Include diagnostic-color.h.
3951 (common_handle_option): Handle OPT_fdiagnostics_color_.
3952 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3953 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3954 (diagnostic-color.o): New.
3955 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3956 (diagnostic_color_rule): New enum.
3957 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3958 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3959 the location string.
3960 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3961 either NULL, or color kind.
3962 * diagnostic-color.c: New file.
3963 * diagnostic-color.h: New file.
3964 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3965 arguments.
3966 * doc/invoke.texi (-fdiagnostics-color): Document.
3967 * pretty-print.h (pp_show_color): Define.
3968 (struct pretty_print_info): Add show_color field.
3969 * diagnostic.c: Include diagnostic-color.h.
3970 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3971 macros. Colorize error:, warning: etc. strings and also the location
3972 string.
3973 (diagnostic_show_locus): Colorize the caret line.
3974 * pretty-print.c: Include diagnostic-color.h.
3975 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
3976 inside of %< %> quotes or quoted through q format modifier.
3977
067a1e71
AK
39782013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3979
33159866 3980 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 3981
33159866 39822013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
3983
3984 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3985 code in CC_NZ mode.
3986 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3987 pattern.
3988
7b55f98f
MP
39892013-04-11 Marek Polacek <polacek@redhat.com>
3990
3991 PR tree-optimization/48184
33159866 3992 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 3993
966b587e
EB
39942013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3995
3996 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3997 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3998 (skip_simple_arithmetic): Tidy up.
3999 * tree.h (skip_simple_constant_arithmetic): Declare.
4000
33159866 40012013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4002
4003 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4004
1d42c1ec
RB
40052013-04-11 Richard Biener <rguenther@suse.de>
4006
4007 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4008 generate vector constants.
4009
4ba5ea11
RB
40102013-04-11 Richard Biener <rguenther@suse.de>
4011
4012 PR tree-optimization/56878
4013 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4014 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4015 New function.
4016 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4017 Prefer to align the DR with the most invariant base address.
4018
f0defe58
SKS
40192013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4020
4021 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4022 comment.
4023
d07458be
JG
40242013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4025
4026 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4027 floating-point vector comparisons against 0.
4028
146b8692
JJ
40292013-04-11 Jakub Jelinek <jakub@redhat.com>
4030
4031 PR tree-optimization/56899
4032 * fold-const.c (extract_muldiv_1): Apply distributive law
4033 only if TYPE_OVERFLOW_WRAPS (ctype).
4034
b8578ff7
BC
40352013-04-11 Bin Cheng <bin.cheng@arm.com>
4036
4037 PR target/56124
4038 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4039 loading has side effect.
4040
0ea8a6f9
SB
40412013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4042
4043 * config/sparc/sparc.c: Include tree-pass.h.
4044 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4045 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4046 head of file. Change return type. Split off gate function.
4047 (sparc_gate_work_around_errata): New function.
4048 (pass_work_around_errata): New pass definition.
4049 (insert_pass_work_around_errata) New pass insert definition to
4050 insert pass_work_around_errata just after delayed-branch scheduling.
4051 (sparc_option_override): Insert the pass.
4052 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4053
42e37616
DM
40542013-04-10 David S. Miller <davem@davemloft.net>
4055
89deeb3b
DM
4056 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4057 or -mcpu=hypersparc.
4058
42e37616
DM
4059 * target.def (cstore_mode): New hook.
4060 * target.h: Include insn-codes.h
4061 * targhooks.c: Likewise.
4062 (default_cstore_mode): New function.
4063 * targhooks.h: Declare it.
4064 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4065 * doc/tm.texi: Rebuild.
4066 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4067 target hook, rather than inspecting the insn_data.
4068 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4069 (TARGET_CSTORE_MODE): Redefine.
4070 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4071 result patterns.
4072 * config/sparc/predicates.md (cstore_result_operand): New special
4073 predicate.
4074 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4075 Use it for operand 0.
4076 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4077 (*snesi_special): Likewise.
4078 (*snesi_zero): Likewise.
4079 (*seqsi_zero): Likewise.
4080 (*sltu_insn): Likewise.
4081 (*sgeu_insn): Likewise.
4082 (*seqdi_special): Make operand 0 and comparison operation be of
4083 DImode.
4084 (*snedi_special): Likewise.
4085 (*snedi_special_vis3): Likewise.
4086 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4087 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4088 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4089 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4090 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4091 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4092 (*sltu_extend_sp64): Likewise.
4093 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4094 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4095 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4096 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4097 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4098
95ca411e
YZ
40992013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4100
4101 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4102 (aarch64_start_file): Use the new function.
4103
6782438d 41042013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 4105 Jason Merrill <jason@redhat.com>
6782438d
SKS
4106
4107 * common.opt: Add -gdwarf.
4108 * opts.c (common_handle_option): Handle it.
4109 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4110
bb313b93
RB
41112013-04-10 Richard Biener <rguenther@suse.de>
4112
4113 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4114 (execute_one_ipa_transform_pass): But unconditionally here.
4115 (execute_one_pass): And here.
4116 (init_optimization_passes): Remove reload pass.
4117 * tree-pass.h (TODO_ggc_collect): Remove.
4118 (pass_reload): Likewise.
4119 * ira.c (do_reload): Merge into ...
4120 (ira): ... this.
4121 (rest_of_handle_reload): Remove.
4122 (pass_reload): Likewise.
4123 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4124 of reload for vzeroupper pass placement.
4125 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4126 and todo_flags_finish of all passes.
4127
793d9a16
RB
41282013-04-10 Richard Biener <rguenther@suse.de>
4129
4130 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4131 first_const_oprnd field, rename first_def_type to first_op_type.
4132 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4133 (vect_get_and_check_slp_defs): Always use the type of the
4134 operand. Allow mixed vect_external_def, vect_constant_def types.
4135 (vect_get_constant_vectors): Handle mixed vect_external_def,
4136 vect_constant_def types.
4137
ee8a9b7b
JR
41382013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4139
4140 PR tree-optimization/55524
4141 * tree-ssa-math-opts.c
4142 (convert_mult_to_fma): Don't use an fms construct
4143 when we don't have an fms operation, but fnma, and it looks
4144 likely that we'll be able to use the latter.
4145
6957a6f6
ZZ
41462013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4147
4148 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4149 function.
4150 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4151 inline fail caused by overwritable functions.
4152
34ab4a5b
CJW
41532013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4154
4155 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4156 unnecessary bits in the constant power of two case.
4157
abf9bfbc
RB
41582013-04-10 Richard Biener <rguenther@suse.de>
4159
4160 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4161 broken code swapping operands.
4162 (vect_build_slp_tree): Do not compute load permutations here.
4163 (vect_analyze_slp_instance): Compute load permutations here,
4164 after building the SLP tree.
4165
f408477e
CB
41662013-04-09 Christian Bruel <christian.bruel@st.com>
4167
4168 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4169 of next/prev_real_insn.
4170
5ac42672
JH
41712013-04-09 Jan Hubicka <jh@suse.cz>
4172
abf9bfbc
RB
4173 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4174 Drop aliased parameter.
5ac42672
JH
4175 (function_and_variable_visibility): Do not handle alias pairs.
4176 * cgraph.c (varpool_externally_visible_p): Update prototype.
4177 * varpool.c (varpool_add_new_variable): Update.
4178
5017f1d2
KT
41792013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4180
4181 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4182
48eecbee
SB
41832013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4184
a949cf1c
SB
4185 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4186
48eecbee
SB
4187 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4188
75ef8e3d
MP
41892013-04-09 Marek Polacek <polacek@redhat.com>
4190
4191 PR tree-optimization/48762
33159866 4192 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 4193
23847df4
RB
41942013-04-09 Richard Biener <rguenther@suse.de>
4195
4196 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4197 dealing with cost.
4198 (vect_build_slp_tree): Likewise.
4199 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4200 calculating the cost of a SLP instance.
4201 (vect_analyze_slp_instance): Use it from here, after building
4202 the SLP tree.
4203
ea3a0fde
JJ
42042013-04-09 Jakub Jelinek <jakub@redhat.com>
4205
4206 PR middle-end/56883
4207 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4208 expand_omp_for_static_chunk): Use simple_p = true in
4209 force_gimple_operand_gsi calls when assigning to addressable decls.
4210
a32dfe9d
JL
42112013-04-09 Jeff Law <law@redhat.com>
4212
4213 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4214 when the boolean was created by converting a wider object which
4215 had a boolean range.
4216
d755c7ef
RB
42172013-04-09 Richard Biener <rguenther@suse.de>
4218
4219 * tree-vectorizer.h (slp_void_p): Remove.
4220 (slp_tree): Typedef before _slp_tree declaration.
4221 (struct _slp_tree): Use a vector of slp_tree as children.
4222 (vect_get_place_in_interleaving_chain): Remove.
4223 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4224 Move ...
4225 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4226 and make static.
4227 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4228 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4229 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4230 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4231 Use slp_node instead of slp_void_p and adjust.
4232
3d741091
RB
42332013-04-09 Richard Biener <rguenther@suse.de>
4234
4235 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4236 work that is not necessary.
4237
39307ba7
JJ
42382013-04-09 Jakub Jelinek <jakub@redhat.com>
4239
4240 PR tree-optimization/56854
4241 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4242 forward into clobber stmts if it would change MEM_REF lhs into
4243 non-MEM_REF.
4244
343881fd
MK
42452013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4246
4247 * tree.c (type_hash_lookup, type_hash_add): Make static.
4248 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4249
3922658a
RB
42502013-04-09 Richard Biener <rguenther@suse.de>
4251
4252 * tree.h (unsave_expr_now): Remove.
4253 * tree-inline.c (mark_local_for_remap_r): Remove.
4254 (unsave_expr_1): Likewise.
4255 (unsave_r): Likewise.
4256 (unsave_expr_now): Likewise.
4257 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4258 (propagate_tree_value): Likewise.
4259
9fb6b620
SB
42602013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4261
4262 * doc/rtl.texi (sequence): Rewrite documentation to match the
4263 current use of SEQUENCE rtl objects.
4264 * rtl.def (SEQUENCE): Likewise.
4265
4266 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4267 Update documentation.
4268 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4269 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4270
4271 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4272
8ddb5a29
TJ
42732013-04-08 Teresa Johnson <tejohnson@google.com>
4274
4275 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4276 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 4277 methods.
8ddb5a29
TJ
4278 (estimate_edge_size_and_time): Add comment to suggest using rounding
4279 methods.
4280 (estimate_node_size_and_time): Ditto.
4281 (remap_edge_change_prob): Use helper rounding divide methods.
4282 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4283 (gimple_mod_pow2_value_transform): Ditto.
4284 (gimple_mod_subtract_transform): Ditto.
4285 (gimple_ic_transform): Ditto.
4286 (gimple_stringops_transform): Ditto.
4287 * stmt.c (conditional_probability): Ditto.
4288 (emit_case_dispatch_table): Ditto.
4289 * lto-cgraph.c (merge_profile_summaries): Ditto.
4290 * tree-optimize.c (execute_fixup_cfg): Ditto.
4291 * cfgcleanup.c (try_forward_edges): Ditto.
4292 * cfgloopmanip.c (scale_loop_profile): Ditto.
4293 (loopify): Ditto.
4294 (duplicate_loop_to_header_edge): Ditto.
4295 (lv_adjust_loop_entry_edge): Ditto.
4296 * tree-vect-loop.c (vect_transform_loop): Ditto.
4297 * profile.c (compute_branch_probabilities): Ditto.
4298 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4299 * lto-streamer-in.c (input_cfg): Ditto.
4300 * gimple-streamer-in.c (input_bb): Ditto.
4301 * ipa-cp.c (update_profiling_info): Ditto.
4302 (update_specialized_profile): Ditto.
4303 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4304 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 4305 rounding methods.
8ddb5a29
TJ
4306 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4307 (compute_trg_info): Ditto.
4308 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4309 (purge_dead_edges): Ditto.
4310 * loop-unswitch.c (unswitch_loop): Ditto.
4311 * cgraphclones.c (cgraph_clone_edge): Ditto.
4312 (cgraph_clone_node): Ditto.
4313 * tree-inline.c (copy_bb): Ditto.
4314 (copy_edges_for_bb): Ditto.
4315 (initialize_cfun): Ditto.
4316 (copy_cfg_body): Ditto.
4317 (expand_call_inline): Ditto.
4318
661e6bd7
KT
43192013-04-08 Kai Tietz <ktietz@redhat.com>
4320
4321 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4322 TARGET_CYGWIN64 by TARGET_64BIT.
4323
105766f3
JR
43242013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4325
4326 * config/epiphany/epiphany.md (GPR_1): New constant.
4327 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4328 * config/epiphany/epiphany.c (gen_compare_reg):
4329 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4330 is already in place.
4331 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4332 Don't require being called during rtl expansion; If y operlaps r0,
4333 return 0.
4334 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4335 (epiphany_expand_epilogue): Likewise.
4336
8afab237
JR
4337 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4338 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 4339 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 4340
fa7707d6
JR
4341 * config/epiphany/constraints.md (CnL): New constraint.
4342 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4343 * config/epiphany/predicates.md (add_operand): Allow 1024.
4344
5138e18d
JR
4345 * config/epiphany/epiphany.md (logical_op): New code iterator.
4346 (op_mnc): New code attribute.
4347 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4348 (mov_f+1, mov_f+2): New peephole2 patterns.
4349
2ccc703d
JR
4350 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4351 (cstoresi4): Also allow re-use of zero result when doing a NE
4352 comparison to a non-zero operand.
aefb0819 4353 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 4354
093ac0a5
JR
4355 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4356 Use gen_addsi3_i / gen_subsi3_i.
4357
f223bb13
JJ
43582013-04-08 Jakub Jelinek <jakub@redhat.com>
4359
4360 PR c++/34949
4361 PR c++/50243
4362 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4363 contain anything but clobbers, at most one __builtin_stack_restore,
4364 optionally debug stmts and final resx, and if it has at least one
4365 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4366 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4367 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4368 which isn't defaut definition, remove them.
4369 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4370 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4371 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4372 with MEM_REF LHS with SSA_NAME address.
4373
4481581f
JL
43742013-04-08 Jeff Law <law@redhat.com>
4375
4376 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 4377
451dabda
RB
43782013-04-08 Richard Biener <rguenther@suse.de>
4379
4380 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4381 extra newline.
4382 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4383 determined vector type.
4384 (vect_analyze_data_refs): Likewise.
4385 (vect_get_new_vect_var): Adjust.
4386 (vect_create_destination_var): Preserve SSA name versions.
4387 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4388 not dump anything here.
4389
3b088b47
JR
43902013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4391
4392 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4393 Add member lr_slot_known.
4394 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4395 if necessary.
4396 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4397 Remove code that sets lr_slot_offset according to what a previous
4398 version of epiphany_emit_save_restore used to do.
4399 (epiphany_emit_save_restore): When doing an lr save or restore,
4400 set/verify lr_slot_known and lr_slot_offset.
4401
d8484d41
XQ
44022013-04-08 Xinyu Qi <xyqi@marvell.com>
4403
33159866
UB
4404 PR target/54338
4405 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
4406 in ALL_REGS.
4407
481be1c4
RB
44082013-04-08 Richard Biener <rguenther@suse.de>
4409
4410 * alias.c (find_base_term): Fix thinko in previous change.
4411
401f3a81
JJ
44122013-04-08 Jakub Jelinek <jakub@redhat.com>
4413
4414 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4415 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4416 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4417 if possible to compute val.
4418 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4419 For QImode integers don't require anything about precision. Use
4420 const_with_all_bytes_same to find out if the constant doesn't have
4421 repeated bytes in it.
4422
03ed99a8
AK
44232013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4424
4425 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4426 within mode size.
4427
781b2e62
MP
44282013-04-08 Marek Polacek <polacek@redhat.com>
4429
4430 PR rtl-optimization/48182
4431 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4432 value to 1.
4433
27e430a2
JDA
44342013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4435
4436 PR target/55487
4437 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4438 nuses, make sure we have a label.
4439
4902aa64
BS
44402013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4441
4442 PR target/56843
4443 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4444 (rs6000_emit_swdiv_low_precision): Remove.
4445 (rs6000_emit_swdiv): Rewrite to handle between one and four
4446 iterations of Newton-Raphson generally; modify required number of
4447 iterations for some cases.
4448 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4449
7bca81dc
SB
44502013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4451
4452 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4453 set-but-unused variable.
4454
4455 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4456 basic blocks of released function bodies garbage-collectable.
4457
4458 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4459 (struct rtl_opt_pass): Add TODO_df_finish.
4460
4461 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4462
4542a38a
GY
44632013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4464
4465 * config/arm/constraints.md (q): New constraint.
4466 * config/arm/ldrdstrd.md: New file.
4467 * config/arm/arm.md (ldrdstrd.md) New include.
4468 (arm_movdi): Use "q" instead of "r" constraint
4469 for double-word memory access.
4470 (movdf_soft_insn): Likewise.
4471 * config/arm/vfp.md (movdi_vfp): Likewise.
4472 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 4473 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
4474 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4475 (mem_ok_for_ldrd_strd): Likewise.
4476 (output_move_double): Update assertion.
4477
2385b218
GY
44782013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4479
4480 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4481
75fe1cb5
GY
44822013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4483
4484 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4485 define_insn_and_split.
4486 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4487
dd660e8e
GY
44882013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4489
4490 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4491 define_insn_and_split.
33159866 4492 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
4493 (shiftsi3_compare): New pattern.
4494 (rrx): New pattern.
4495 * config/arm/unspecs.md (UNSPEC_RRX): New.
4496
045e472c
GY
44972013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4498
4499 * config/arm/arm.md (negdi_extendsidi): New pattern.
4500 (negdi_zero_extendsidi): Likewise.
4501
3f3bf1a8
GY
45022013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4503
4504 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4505 define_insn_and_split.
4506 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4507 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4508
b0b49556
GY
45092013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4510
4511 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4512 define_insn_and_split.
4513 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4514 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4515
d633dd84
GY
45162013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4517
4518 * config/arm/arm.md (subsi3_carryin): New pattern.
4519 (subsi3_carryin_const): Likewise.
4520 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4521 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4522
f4499066
GY
45232013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4524
4525 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4526
ceef6fd9
GY
45272013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4528
4529 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 4530 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 4531
ddbdd8a7
KT
45322013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4533
4534 * config/arm/arm.c (arm_expand_builtin): Change fcode
4535 type to unsigned int.
4536
8456d78a
RR
45372013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4538
4539 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4540
526c230f
ILT
45412013-04-04 Ian Lance Taylor <iant@google.com>
4542
33159866
UB
4543 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4544 language standard.
526c230f 4545
3cfbe04d
SB
45462013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4547
4548 PR middle-end/56729
4549 * df-scan.c (df_insn_delete): Disable failing assert.
4550
dfa3f8d0
KT
45512013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4552
4553 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4554 New function prototype.
4555 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4556 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4557 (arm_builtin_vectorized_function): New function.
4558
f7837758
KT
45592013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4560
4561 * config/arm/arm_neon_builtins.def: New file.
4562 * config/arm/arm.c (neon_builtin_data): Move contents to
4563 arm_neon_builtins.def.
4564 (enum arm_builtins): Include neon builtin definitions.
4565 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 4566 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 4567
39c1b6db
MP
45682013-04-04 Marek Polacek <polacek@redhat.com>
4569
4570 PR tree-optimization/48186
4571 * predict.c (maybe_hot_frequency_p): Return false if
4572 HOT_BB_FREQUENCY_FRACTION is 0.
4573 (cgraph_maybe_hot_edge_p): Likewise.
4574
314f64eb
RB
45752013-04-04 Richard Biener <rguenther@suse.de>
4576
4577 PR tree-optimization/56826
4578 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4579 more accurately.
4580
51a905b2
RB
45812013-04-04 Richard Biener <rguenther@suse.de>
4582
4583 PR tree-optimization/56213
4584 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 4585 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 4586
f1bf4f3a
RB
45872013-04-04 Richard Biener <rguenther@suse.de>
4588
4589 PR tree-optimization/56837
4590 * tree-loop-distribution.c (classify_partition): For non-zero
4591 values require that the value has the same precision as its
4592 mode to be useful as memset value.
4593
0bca7ded
NC
45942013-04-03 Nick Clifton <nickc@redhat.com>
4595
33159866 4596 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
4597 (fmssf4): Use fmsf.s on E3V5 architectures.
4598 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4599 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4600
b4019227
JL
46012013-04-03 Jeff Law <law@redhat.com>
4602
4603 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4604 (lra-eliminations.o): Likewise.
4605
f57ddb5b
TJ
46062013-04-03 Teresa Johnson <tejohnson@google.com>
4607
4608 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 4609 compute_working_sets here from profile.c.
f57ddb5b 4610 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
4611 (gcov_working_set_t): Moved typedef here from basic-block.h
4612 (compute_working_set): Declare.
f57ddb5b
TJ
4613 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4614 (get_working_sets): Renamed from compute_working_set,
33159866 4615 replace most of body with call to new compute_working_sets.
f57ddb5b 4616 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
4617 to get_working_sets.
4618 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 4619 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 4620 to get_working_sets.
f57ddb5b
TJ
4621 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4622 * gcov-dump.c (dump_working_sets): New function.
4623
5e0919f1
KZ
46242013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4625
4626 * hwint.c (sext_hwi, zext_hwi): New functions.
4627 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4628 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4629 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4630 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4631 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4632 (sext_hwi, zext_hwi): New functions.
0bca7ded 4633
be672e08
JL
46342013-04-03 Jeff Law <law@redhat.com>
4635
4636 PR tree-optimization/56799
33159866
UB
4637 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4638 back test for widening conversion erroneously dropped in prior change.
be672e08 4639
9d821fa5
KT
46402013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4641
4642 PR target/56809
4643 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4644 instead of next_real_insn.
4645
71c581e7
MP
46462013-04-03 Marek Polacek <polacek@redhat.com>
4647
4648 PR sanitizer/55702
33159866 4649 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 4650
4a32ef80
KT
46512013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4652
4653 PR target/56809
4654 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4655 next_real_insn.
4656 (thumb1_output_casesi): Likewise.
4657 (thumb2_output_casesi): Likewise.
4658
1b2253d4
RB
46592013-04-03 Richard Biener <rguenther@suse.de>
4660
4661 PR tree-optimization/56817
4662 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4663 Split out ...
4664 (tree_unroll_loops_completely_1): ... new function to manually
4665 walk the loop tree, properly defering outer loops of unrolled
4666 loops to later iterations.
4667
38000232
MG
46682013-04-03 Marc Glisse <marc.glisse@inria.fr>
4669
4670 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4671 (vectorizable_load): Likewise.
4672 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4673 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4674
3fa35298
MG
46752013-04-03 Marc Glisse <marc.glisse@inria.fr>
4676
4677 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4678 BIT_FIELD_REF.
4679
b3d45ff0
UW
46802013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4681
4682 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4683
ec9202a8
BC
46842013-04-03 Bin Cheng <bin.cheng@arm.com>
4685
4686 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4687
6805bd36
MG
46882013-04-03 Marc Glisse <marc.glisse@inria.fr>
4689
4690 PR tree-optimization/56790
33159866
UB
4691 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4692 folding.
6805bd36 4693
da694a77
MG
46942013-04-03 Marc Glisse <marc.glisse@inria.fr>
4695
4696 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4697 Handle VEC_MERGE.
4698 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4699 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4700 equal arguments.
4701
4e7d7b3d
JJ
47022013-04-03 Jakub Jelinek <jakub@redhat.com>
4703
4704 PR c/19449
4705 * tree.h (force_folding_builtin_constant_p): New decl.
4706 * builtins.c (force_folding_builtin_constant_p): New variable.
4707 (fold_builtin_constant_p): Fold immediately also if
4708 force_folding_builtin_constant_p.
4709
e6c9d234
RB
47102013-04-03 Richard Biener <rguenther@suse.de>
4711
4712 PR tree-optimization/56812
4713 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4714 DRs of the same interleaving chain are independent.
4715
984d07dd
JM
47162013-04-02 Jason Merrill <jason@redhat.com>
4717
4718 * gdbinit.in (pbb): Use debug fn.
4719
622849c9
LC
47202013-04-02 Lawrence Crowl <crowl@google.com>
4721
4722 * sese.h (struct ivtype_map_elt_s): Remove unused.
4723 (extern debug_ivtype_map): Remove unused.
4724 (extern eq_ivtype_map_elts): Remove unused.
4725 * sese.c (debug_ivtype_map): Removed unused.
4726 (debug_ivtype_map_1): Removed unused.
4727 (debug_ivtype_elt): Remove unused.
4728 (eq_ivtype_map_elts): Remove unused.
4729
4730
82c0e1a0
KT
47312013-04-02 Kai Tietz <ktietz@redhat.com>
4732
4733 PR target/52790
4734 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4735 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
4736 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4737 function.
82c0e1a0
KT
4738 (legitimize_pe_coff_symbol): Likewise.
4739 (is_imported_p): New helper-function.
4740 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4741 for Windows x64 targets.
4742 (ix86_expand_prologue): Optimize for pe-coff targets.
4743 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4744 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4745 medium/large code-model.
4746 (legitimize_pic_address): Likewise.
4747 (legitimize_tls_address): Likewise.
4748 (ix86_expand_call): Likewise.
4749 (x86_output_mi_thunk): Likewise.
4750 (get_dllimport_decl): Add new beimport argument.
4751 (construct_plt_address): Don't assert for x64 pe-coff targets.
4752 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4753 targets.
4754 (SYMBOL_FLAG_STUBVAR): New macro.
4755 (SYMBOL_REF_STUBVAR_P): Likewise.
4756 * config/i386/winnt.c (stub_list): New structure.
4757 (stub_head): New local variable.
4758 (i386_pe_record_stub): New function.
4759 (i386_pe_file_end): Emit refptr-stubs.
4760
5d751b0c
JJ
47612013-04-02 Jakub Jelinek <jakub@redhat.com>
4762
09bb4c99
JJ
4763 PR rtl-optimization/56745
4764 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4765 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4766
a1d8947a
JJ
4767 PR c++/34949
4768 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4769 and both of them are MEM_REFs, just compare first argument for
4770 equality and attempt to deal even with differing offsets.
4771
5d751b0c
JJ
4772 PR c++/34949
4773 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4774 of gimple_clobber_p to be MEM_REF.
4775 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4776 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4777 after gimplification.
4778 * asan.c (get_mem_ref_of_assignment): Don't instrument
4779 gimple_clobber_p stmts.
4780 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4781 gimple_clobber_p stmt if they have MEM_REF lhs and
4782 are dead because of another gimple_clobber_p stmt.
4783 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4784 gimple_clobber_p stmts like debug stmts.
4785 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4786 that refer to unused VAR_DECLs or uninitialized values.
4787 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4788 gimple_clobber_p stmts if they refer to removed parameters.
4789 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4790 formatting.
4791
e594716a
UB
47922013-04-02 Uros Bizjak <ubizjak@gmail.com>
4793
4794 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4795 using SWI48 mode attribute.
4796
7a80735b
WM
47972013-04-02 Wei Mi <wmi@google.com>
4798
4799 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4800 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4801 *<rotate_insn><mode>3_mask in i386.md.
4802
f423a9e4
AI
48032013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4804
4805 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4806
90eb75f2
RB
48072013-04-02 Richard Biener <rguenther@suse.de>
4808
4809 PR tree-optimization/56778
4810 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4811 Runtime alias tests are not supported for gather loads.
4812 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4813 stmts referenced from SSA operands before updating SSA form.
4814
d8c69a92
IC
48152013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4816 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4817
4818 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
4819 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4820 * config/arm/cortex-a53.md: New file.
4821 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4822 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4823 * config/arm/arm.c (arm_issue_rate): Likewise.
4824 * config/arm/arm-tune.md: Regenerate
4825 * config/arm/arm-tables.opt: Regenerate.
4826 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 4827
239eb04c
ZC
48282013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4829
4830 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4831 non-static link.
4832
c902d3c8
SN
48332013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4834
d8c69a92
IC
4835 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4836 scalar load/store operations using B/H registers.
c902d3c8
SN
4837 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4838
051d0e2f
SN
48392013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4840
4841 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4842 scalar move.
4843 * config/aarch64/aarch64.c
4844 (aarch64_simd_scalar_immediate_valid_for_move): New.
4845 * config/aarch64/aarch64-protos.h
4846 (aarch64_simd_scalar_immediate_valid_for_move): New.
4847 * config/aarch64/constraints.md (Dh, Dq): New.
4848 * config/aarch64/iterators.md (hq): New.
4849
0ee1e3d9
EB
48502013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4851
4852 * reorg.c (get_branch_condition): Deal with conditional returns.
4853 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4854
136fb3f7
WM
48552013-04-01 Wei Mi <wmi@google.com>
4856
4857 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4858 Truncate operand 2 using %b asm operand modifier.
4859 (*<shift_insn><mode>3_mask): Ditto.
4860 (*<rotate_insn><mode>3_mask): Ditto.
4861
6388c738
SB
48622013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4863
4864 PR middle-end/56798
4865 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4866
f7a4d826
KK
48672013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4868
4869 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4870 of next_real_insn.
4871 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4872
4b943a49
LC
48732013-03-30 Lawrence Crowl <crowl@google.com>
4874
4875 * dse.c (clear_alias_sets): Remove never set.
4876 (disqualified_clear_alias_sets): Remove never set.
4877 (clear_alias_mode_pool): Remove never set.
4878 (dse_step0): Remove condition that is never true.
4879 (canon_address): Remove condition that is never true.
4880 (dse_step7): Remove condition that is never true.
4881 (rest_of_handle_dse): Remove condition that is never true.
4882 (rest_of_handle_dse::did_global): Remove never read from above.
4883 (dse_step2_spill): Remove never called from above.
4884 (dse_step5_spill): Remove never called from above.
4885
39718607
SB
48862013-03-30 Steven Bosscher <steven@gcc.gnu.org>
4887
da5c6bde
SB
4888 * doc/md.texi (Standard Names) <casesi>: Update documentation for
4889 JUMP_TABLE_DATA changes.
4890 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4891 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4892 (Insns) <jump_table_data>: New entry.
4893 * doc/tm.texi: Regenerate.
4894
39718607
SB
4895 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4896
4897 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4898 for table jump at the end of a basic block using tablejump_p.
4899 * targhooks.c (default_invalid_within_doloop): Likewise.
4900 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4901 target hook implementation that is identical to the default hook.
4902 (rs6000_invalid_within_doloop): Remove.
4903
4904 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4905 unused variable from tablejump_p call.
4906
4907 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4908 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4909 (INSN_DELETED_P): Likewise.
4910 (emit_jump_table_data): New prototype.
4911 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4912 after 4th as unused.
4913 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4914 * sched-vis.c (print_insn): Likewise.
4915 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4916 insn for compatibility with back ends that use next_active_insn to
4917 identify jump table data.
4918 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4919 (remove_insn): Likewise.
4920 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4921 to be emitted.
4922 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4923 (emit_jump_table_data): New function.
4924
4925 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4926 basic block, a JUMP_TABLE_DATA never is.
4927 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4928 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4929 off from code handling real insns.
4930 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4931 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4932 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4933 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4934 is not a NONDEBUG_INSN_P.
4935 * ira-costs.c (scan_one_insn): Likewise.
4936 * jump.c (mark_all_labels): Likewise.
4937 (mark_jump_label_1): Likewise.
4938 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4939 * lra.c (get_insn_freq): Expect all insns reaching here to be in
4940 a basic block.
4941 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4942 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4943 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4944 JUMP_TABLE_DATA_P insns.
4945 (calculate_elim_costs_all_insns): Likewise.
4946 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4947 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4948 (delete_output_reload): Code style fixups.
4949 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4950 insn flags on this non-insn.
4951 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4952 as scheduling barriers, for pre-change compatibility.
4953 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4954 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4955
4956 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4957 redundant JUMP_TABLE_DATA_P test.
4958 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4959 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4960 (frv_for_each_packet): Likewise.
4961 * config/i386/i386.c (min_insn_size): Likewise.
4962 (ix86_avoid_jump_mispredicts): Likewise.
4963 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4964 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4965 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4966 (mips16_insn_length): Robustify.
4967 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4968 (mips16_split_long_branches): Likewise.
4969 * config/pa/pa.c (pa_combine_instructions): Likewise.
4970 * config/rs6000/rs6000.c (get_next_active_insn): Treat
4971 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4972 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4973 as contributing to pool range lengths.
4974 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4975 Remove redundant JUMP_TABLE_DATA_P test.
4976 (sh_loop_align): Likewise.
4977 (split_branches): Likewise.
4978 (sh_insn_length_adjustment): Likewise.
4979 * config/spu/spu.c (get_branch_target): Likewise.
4980
0208f7da
JH
49812013-03-29 Jan Hubicka <jh@suse.cz>
4982
4983 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4984 gcov streaming; stream hot bb threshold to ltrans.
4985 * predict.c (get_hot_bb_threshold): Break out from ....
4986 (maybe_hot_count_p): ... here.
4987 (set_hot_bb_threshold): New function.
4988 * lto-section-in.c (lto_section_name): Add profile.
4989 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4990 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4991 and data-streamer.h
4992 (histogram_entry): New structure.
4993 (histogram, histogram_pool): New global vars.
4994 (histogram_hash): New structure.
4995 (histogram_hash::hash): New method.
4996 (histogram_hash::equal): Likewise.
4997 (account_time_size): New function.
4998 (cmp_counts): New function.
4999 (dump_histogram): New function.
5000 (ipa_profile_generate_summary): New function.
5001 (ipa_profile_write_summary): New function.
5002 (ipa_profile_read_summary): New function.
5003 (ipa_profile): Decide on threshold.
e594716a
UB
5004 (pass_ipa_profile): Add ipa_profile_write_summary and
5005 ipa_profile_read_summary.
0208f7da
JH
5006 * Makefile.in (ipa.o): Update dependencies.
5007 * lto-streamer.h (LTO_section_ipa_profile): New section.
5008
5a6ccc94
GDR
50092013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5010
5011 * tree.h (VAR_P): New.
5012
39385fa6
PC
50132013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5014
5015 PR lto/56777
5016 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5017
34f0d87a
SB
50182013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5019
5020 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5021 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5022 (control_flow_insn_p): Likewise.
5023 * cfgrtl.c (duplicate_insn_chain): Likewise.
5024 * final.c (get_attr_length_1): Likewise.
5025 (shorten_branches): Likewise.
5026 (final_scan_insn): Likewise.
5027 * function.c (instantiate_virtual_regs): Likewise.
5028 * gcse.c (insert_insn_end_basic_block): Likewise.
5029 * ira-costs.c (scan_one_insn): Likewise.
5030 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5031 * lra.c (check_rtl): Likewise.
5032 * reload1.c (elimination_costs_in_insn): Likewise.
5033 * reorg.c (follow_jumps): Likewise.
5034
5035 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5036 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5037 (thumb_far_jump_used_p): Likewise.
5038 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5039 (workaround_speculation): Likewise.
5040 (add_sched_insns_for_speculation): Likewise.
5041 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5042 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5043 (frv_for_each_packet): Likewise.
5044 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5045 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5046 (final_emit_insn_group_barriers): Likewise.
5047 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5048 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5049 (mips16_insn_length): Likewise.
5050 * config/pa/pa.c (pa_reorg): Likewise.
5051 (pa_combine_instructions): Likewise.
5052 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5053 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5054 (sh_reorg): Likewise.
5055 (split_branches): Likewise.
5056 * config/spu/spu.c (get_branch_target): Likewise.
5057
5058 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5059 JUMP_TABLE_DATA_P.
5060
4ac761b0
KY
50612013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5062
39385fa6 5063 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5064 Fix declaration name.
5065
58a49189
LC
50662013-03-28 Lawrence Crowl <crowl@google.com>
5067
5068 * graphds.h (struct graph.indicies): Remove unused.
5069 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5070 (SCOP_ORIGINAL_PDDRS): Remove unused.
5071 * sese.h (extern insert_loop_close_phis): Removed unused.
5072 (extern insert_guard_phis): Removed unused.
5073 (extern ivtype_map_elt_info): Removed unused.
5074 (new_ivtype_map_elt): Removed unused.
5075 * sese.c (ivtype_map_elt_info): Removed unused.
5076
7b3b6ae4
LC
50772013-03-28 Lawrence Crowl <crowl@google.com>
5078
5079 * Makefile.in: Add several missing include dependences.
5080 (DUMPFILE_H): New.
5081 (test-dump.o): New. This object is not added to any executable,
5082 but is present for ad-hoc testing.
5083 * bitmap.c
5084 (debug (const bitmap_head_def &)): New.
5085 (debug (const bitmap_head_def *)): New.
5086 * bitmap.h
5087 (extern debug (const bitmap_head_def &)): New.
5088 (extern debug (const bitmap_head_def *)): New.
5089 * cfg.c
5090 (debug (edge_def &)): New.
5091 (debug (edge_def *)): New.
5092 * cfghooks.c
5093 (debug (basic_block_def &)): New.
5094 (debug (basic_block_def *)): New.
5095 * dumpfile.h
5096 (dump_node (const_tree, int, FILE *)): Correct source file.
5097 * dwarf2out.c
5098 (debug (die_struct &)): New.
5099 (debug (die_struct *)): New.
5100 * dwarf2out.h
5101 (extern debug (die_struct &)): New.
5102 (extern debug (die_struct *)): New.
5103 * gimple-pretty-print.c
5104 (debug (gimple_statement_d &)): New.
5105 (debug (gimple_statement_d *)): New.
5106 * gimple-pretty-print.h
5107 (extern debug (gimple_statement_d &)): New.
5108 (extern debug (gimple_statement_d *)): New.
5109 * ira-build.c
5110 (debug (ira_allocno_copy &)): New.
5111 (debug (ira_allocno_copy *)): New.
5112 (debug (ira_allocno &)): New.
5113 (debug (ira_allocno *)): New.
5114 * ira-int.h
5115 (extern debug (ira_allocno_copy &)): New.
5116 (extern debug (ira_allocno_copy *)): New.
5117 (extern debug (ira_allocno &)): New.
5118 (extern debug (ira_allocno *)): New.
5119 * ira-lives.c
5120 (debug (live_range &)): New.
5121 (debug (live_range *)): New.
5122 * lra-int.h
5123 (debug (lra_live_range &)): New.
5124 (debug (lra_live_range *)): New.
5125 * lra-lives.c
5126 (debug (lra_live_range &)): New.
5127 (debug (lra_live_range *)): New.
5128 * omega.c
5129 (debug (omega_pb_d &)): New.
5130 (debug (omega_pb_d *)): New.
5131 * omega.h
5132 (extern debug (omega_pb_d &)): New.
5133 (extern debug (omega_pb_d *)): New.
5134 * print-rtl.c
5135 (debug (const rtx_def &)): New.
5136 (debug (const rtx_def *)): New.
5137 * print-tree.c
5138 (debug_tree (tree): Move within file.
5139 (debug_raw (const tree_node &)): New.
5140 (debug_raw (const tree_node *)): New.
5141 (dump_tree_via_hooks (const tree_node *, int)): New.
5142 (debug (const tree_node &)): New.
5143 (debug (const tree_node *)): New.
5144 (debug_verbose (const tree_node &)): New.
5145 (debug_verbose (const tree_node *)): New.
5146 (debug_head (const tree_node &)): New.
5147 (debug_head (const tree_node *)): New.
5148 (debug_body (const tree_node &)): New.
5149 (debug_body (const tree_node *)): New.
5150 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5151 (debug (vec<tree, va_gc> &)): New.
5152 (debug (vec<tree, va_gc> *)): New.
5153 * rtl.h
5154 (extern debug (const rtx_def &)): New.
5155 (extern debug (const rtx_def *)): New.
5156 * sbitmap.c
5157 (debug_raw (simple_bitmap_def &)): New.
5158 (debug_raw (simple_bitmap_def *)): New.
5159 (debug (simple_bitmap_def &)): New.
5160 (debug (simple_bitmap_def *)): New.
5161 * sbitmap.h
5162 (extern debug (simple_bitmap_def &)): New.
5163 (extern debug (simple_bitmap_def *)): New.
5164 (extern debug_raw (simple_bitmap_def &)): New.
5165 (extern debug_raw (simple_bitmap_def *)): New.
5166 * sel-sched-dump.c
5167 (debug (vinsn_def &)): New.
5168 (debug (vinsn_def *)): New.
5169 (debug_verbose (vinsn_def &)): New.
5170 (debug_verbose (vinsn_def *)): New.
5171 (debug (expr_def &)): New.
5172 (debug (expr_def *)): New.
5173 (debug_verbose (expr_def &)): New.
5174 (debug_verbose (expr_def *)): New.
5175 (debug (vec<rtx> &)): New.
5176 (debug (vec<rtx> *)): New.
5177 * sel-sched-dump.h
5178 (extern debug (vinsn_def &)): New.
5179 (extern debug (vinsn_def *)): New.
5180 (extern debug_verbose (vinsn_def &)): New.
5181 (extern debug_verbose (vinsn_def *)): New.
5182 (extern debug (expr_def &)): New.
5183 (extern debug (expr_def *)): New.
5184 (extern debug_verbose (expr_def &)): New.
5185 (extern debug_verbose (expr_def *)): New.
5186 (extern debug (vec<rtx> &)): New.
5187 (extern debug (vec<rtx> *)): New.
5188 * sel-sched-ir.h
5189 (_list_iter_cond_expr): Make inline instead of static.
5190 * sreal.c
5191 (debug (sreal &)): New.
5192 (debug (sreal *)): New.
5193 * sreal.h
5194 (extern debug (sreal &)): New.
5195 (extern debug (sreal *)): New.
5196 * tree.h
5197 (extern debug_raw (const tree_node &)): New.
5198 (extern debug_raw (const tree_node *)): New.
5199 (extern debug (const tree_node &)): New.
5200 (extern debug (const tree_node *)): New.
5201 (extern debug_verbose (const tree_node &)): New.
5202 (extern debug_verbose (const tree_node *)): New.
5203 (extern debug_head (const tree_node &)): New.
5204 (extern debug_head (const tree_node *)): New.
5205 (extern debug_body (const tree_node &)): New.
5206 (extern debug_body (const tree_node *)): New.
5207 (extern debug (vec<tree, va_gc> &)): New.
5208 (extern debug (vec<tree, va_gc> *)): New.
5209 * tree-cfg.c
5210 (debug (struct loop &)): New.
5211 (debug (struct loop *)): New.
5212 (debug_verbose (struct loop &)): New.
5213 (debug_verbose (struct loop *)): New.
5214 * tree-dump.c: Add header dependence.
5215 * tree-flow.h
5216 (extern debug (struct loop &)): New.
5217 (extern debug (struct loop *)): New.
5218 (extern debug_verbose (struct loop &)): New.
5219 (extern debug_verbose (struct loop *)): New.
5220 * tree-data-ref.c
5221 (debug (data_reference &)): New.
5222 (debug (data_reference *)): New.
5223 (debug (vec<data_reference_p> &)): New.
5224 (debug (vec<data_reference_p> *)): New.
5225 (debug (vec<ddr_p> &)): New.
5226 (debug (vec<ddr_p> *)): New.
5227 * tree-data-ref.h
5228 (extern debug (data_reference &)): New.
5229 (extern debug (data_reference *)): New.
5230 (extern debug (vec<data_reference_p> &)): New.
5231 (extern debug (vec<data_reference_p> *)): New.
5232 (extern debug (vec<ddr_p> &)): New.
5233 (extern debug (vec<ddr_p> *)): New.
5234 * tree-ssa-alias.c
5235 (debug (pt_solution &)): New.
5236 (debug (pt_solution *)): New.
5237 * tree-ssa-alias.h
5238 (extern debug (pt_solution &)): New.
5239 (extern debug (pt_solution *)): New.
5240 * tree-ssa-alias.c
5241 (debug (_var_map &)): New.
5242 (debug (_var_map *)): New.
5243 (debug (tree_live_info_d &)): New.
5244 (debug (tree_live_info_d *)): New.
5245 * tree-ssa-alias.h
5246 (extern debug (_var_map &)): New.
5247 (extern debug (_var_map *)): New.
5248 (extern debug (tree_live_info_d &)): New.
5249 (extern debug (tree_live_info_d *)): New.
5250
be77e1e5
JH
52512013-03-28 Jan Hubicka <jh@suse.cz>
5252
5253 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5254
777e6976
IB
52552013-03-28 Ian Bolton <ian.bolton@arm.com>
5256
5257 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5258 record only when desired or required.
5259
9cd347ae
UB
52602013-03-28 Uros Bizjak <ubizjak@gmail.com>
5261
5262 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5263 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5264
33159866 52652013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
5266
5267 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5268 (*andsi3_compare0_uxtw): New pattern.
5269 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5270 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5271
89ab31c1
JH
52722013-03-28 Jan Hubicka <jh@suse.cz>
5273
5274 * data-streamer-in.c (streamer_read_gcov_count): New function.
5275 * gimple-streamer-out.c: Include value-prof.h.
5276 (output_gimple_stmt): Output histogram.
5277 (output_bb): Use streamer_write_gcov_count.
5278 * value-prof.c: Include data-streamer.h
5279 (dump_histogram_value): Add HIST_TYPE_MAX.
5280 (stream_out_histogram_value): New function.
5281 (stream_in_histogram_value): New function.
5282 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5283 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5284 * data-streamer-out.c (streamer_write_gcov_count): New function.
5285 (streamer_write_gcov_count_stream): New function.
5286 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5287 (lto_output_node): Likewise.
5288 (input_node, input_edge): Likewise.
5289 * lto-streamer-out.c (output_cfg): Update streaming.
5290 * lto-streamer-in.c (input_cfg): Likewise.
5291 * data-streamer.h (streamer_write_gcov_count,
5292 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5293 * gimple-streamer-in.c: Include value-prof.h
5294 (input_gimple_stmt): Input histograms.
5295 (input_bb): Update profile streaming.
5296
e594716a 52972013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 5298
33159866 5299 * genmodes.c (emit_max_int): New function.
8697be17 5300 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
5301 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5302 Added doc.
8697be17 5303 * machmode.def: Fixed comment.
89ab31c1 5304
e594716a 53052013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
5306
5307 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
5308 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5309
74946978
MP
53102013-03-28 Marek Polacek <polacek@redhat.com>
5311 Richard Biener <rguenther@suse.de>
5312
5313 PR tree-optimization/56695
5314 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5315 build signed result of a vector comparison.
5316 * tree-cfg.c (verify_gimple_comparison): Check that a result
5317 of a vector comparison has signed type.
5318
a64b9c26
RB
53192013-03-28 Richard Biener <rguenther@suse.de>
5320
5321 PR tree-optimization/37021
5322 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5323 do not restrict gaps between groups.
5324 * tree-vect-stmts.c (vectorizable_load): Properly account for
5325 a gap between groups.
5326
a9dc2a2f
EB
53272013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5328
5329 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5330 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5331 is not enabled.
5332
53cb97f9
GP
53332013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5334
5335 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5336 * doc/extend.texi (Named Address Spaces): Ditto.
5337 (Variable Attributes): Ditto.
5338
b802ae5c
KT
53392013-03-27 Kai Tietz <ktietz@redhat.com>
5340
eddae10a
KT
5341 * config.build: Add support for cygwin x64 target.
5342 * config.gcc: Likewise.
5343 * config.host: Likewise.
5344 * configure.ac: Likewise
5345 * configure: Regenerated.
b802ae5c 5346
8269de54
KT
53472013-03-27 Kai Tietz <ktietz@redhat.com>
5348
5349 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5350 * config/i386/t-cygwin-w64: New file.
5351 * config/i386/cygwin-w64.h: New file.
5352 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5353 and add support for x64-cygwin target.
5354 (CPP_SPEC): Likewise.
5355 (CXX_WRAP_SPEC_LIST): Undefine before define.
5356 (LIBGCJ_SONAME): Use 15 as version.
5357
f49b33cb
RB
53582013-03-27 Richard Biener <rguenther@suse.de>
5359
5360 PR tree-optimization/56716
5361 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5362 dumping for ref nodes.
5363
b37a6ce5
MJ
53642013-03-27 Martin Jambor <mjambor@suse.cz>
5365
5366 PR tree-optimization/55334
5367 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5368 restricted pointers to arrays.
5369
9469b9b2
GDR
53702013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5371
5372 * Makefile.in (.SUFFIXES): Add .cc.
5373 (.c.o): Apply same recipe for implicit rule .cc.o.
5374
7d24f650
RB
53752013-03-27 Richard Biener <rguenther@suse.de>
5376
5377 PR tree-optimization/37021
5378 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5379 REALPART/IMAGPART_EXPRs around the supported refs.
5380 * tree-ssa-structalias.c (find_func_aliases): Assume that
5381 floating-point values are not used to transfer pointers.
5382
2f251a05
AI
53832013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5384
39385fa6
PC
5385 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5386 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5387 * doc/tm.texi: Regenerate.
5388 * targhooks.h (default_has_ifunc_p): New.
5389 * targhooks.c (default_has_ifunc_p): Ditto.
5390 * config/linux-protos.h: New file.
5391 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
5392 this hook for linux which disables support of indirect functions in
5393 android.
39385fa6
PC
5394 * config/linux-android.c: New file.
5395 * config/t-linux-android.c: Ditto.
5396 * config.gcc: Added new object file linux-android.o.
5397 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 5398 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 5399 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
5400 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5401 doesn't support indirect functions.
5402 * configure: Regenerate.
5403
78b4e425
BC
54042013-03-27 Bin Cheng <bin.cheng@arm.com>
5405
5406 PR target/56102
5407 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5408 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5409 mult-word mode.
5410
a5ba7b92
AK
54112013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5412
5413 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5414
be624986
TG
54152013-03-27 Terry Guo <terry.guo@arm.com>
5416
5417 * config/arm/arm-cores.def: Added core cortex-r7.
5418 * config/arm/arm-tune.md: Regenerated.
5419 * config/arm/arm-tables.opt: Regenerated.
5420 * doc/invoke.texi: Added entry for core cortex-r7.
5421
0a514f47
WL
54222013-03-27 Walter Lee <walt@tilera.com>
5423
5424 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5425 double-decrement of next_scratch_regno.
5426
9332b0d2
WL
54272013-03-27 Walter Lee <walt@tilera.com>
5428
801d9b2a 5429 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
5430 input operands.
5431 (insn_v1mulus): Ditto.
5432 (insn_v2muls): Ditto.
5433
f54ea5dd
WL
54342013-03-27 Walter Lee <walt@tilera.com>
5435
e594716a 5436 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
5437 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5438
bf60f4ca
WL
54392013-03-27 Walter Lee <walt@tilera.com>
5440
e594716a 5441 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
5442 (*sibcall_value): Ditto.
5443
e3b51eeb
WL
54442013-03-27 Walter Lee <walt@tilera.com>
5445
5446 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5447 (insn_mnz_v8qi): ... this ...
5448 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5449 vector equivalent.
5450 (insn_v<n>mnz): Replaced by ...
5451 (insn_v1mnz): ... this ...
5452 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5453 equivalent.
5454 (insn_mz_<mode>): Replaced by ...
5455 (insn_mz_v8qi): ... this ...
5456 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5457 vector equivalent.
5458 (insn_v<n>mz): Replaced by ...
5459 (insn_v1mz): ... this ...
5460 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5461 equivalent.
5462
4fc7b145
EB
54632013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5464
5465 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5466
6f33817e
RM
54672013-03-26 Roland McGrath <mcgrathr@google.com>
5468
5469 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5470 than fprintf with a non-constant, non-format string.
5471
93a4145b
UB
54722013-03-26 Uros Bizjak <ubizjak@gmail.com>
5473
5474 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5475 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5476 operand 0 predicate.
5477 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5478 attribute. Use general_x64nomem_operand as operand 1 predicate.
5479 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5480 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5481 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5482 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5483 (mov<mode>_insv_1): Remove expander. Merge insn with
5484 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5485 Use general_x64nomem_operand as operand 1 predicate.
5486 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5487 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5488 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5489 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5490 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5491 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5492 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5493 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5494 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5495 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5496 (general_x64nomem_operand): Ditto.
5497
c6a9ed5a 54982013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
5499
5500 * config/rtems.opt: Add -pthread option.
5501
31b0a960
RB
55022013-03-26 Richard Biener <rguenther@suse.de>
5503
93a4145b
UB
5504 * alias.c (find_base_term): Avoid redundant and not used recursion.
5505 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
5506 (true_dependence_1): Compute and pass base terms to base_alias_check.
5507 (write_dependence_p): Likewise.
5508 (may_alias_p): Likewise.
5509
79517551
SN
55102013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5511
5512 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5513 PC-relative load in SI modes and above only.
5514
a76213b9
XQ
55152013-03-26 Xinyu Qi <xyqi@marvell.com>
5516
5517 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
5518 * config/arm/iwmmxt.md (WCGR0): Update.
5519 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 5520
37ff9355
UB
55212013-03-26 Uros Bizjak <ubizjak@gmail.com>
5522
5523 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5524 Use x64 and nox64 isa attributes.
5525
30b0317c
RB
55262013-03-26 Richard Biener <rguenther@suse.de>
5527
5528 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5529 alignment computations and rely on get_object_alignment_1
5530 for the !TYPE_P case.
5531 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5532
cbcdb140
WL
55332013-03-26 Walter Lee <walt@tilera.com>
5534
5535 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5536 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5537
dd884525 55382013-03-25 Jeff Law <law@redhat.com>
be672e08 5539
33159866
UB
5540 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5541 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
5542 wrong version of prior patch.
5543
0051d3ec
WL
55442013-03-25 Walter Lee <walt@tilera.com>
5545
5546 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5547 TILEGX_INSN_SHUFFLEBYTES1.
5548 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5549 shufflebytes1.
5550 (tilegx_builtins): Ditto.
5551 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5552
065a3605
WL
55532013-03-25 Walter Lee <walt@tilera.com>
5554
5555 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
5556 (floatunssisf2): New pattern.
5557 (floatsidf2): New pattern.
5558 (floatunssidf2): New pattern.
065a3605 5559
5b2a3c82
WL
55602013-03-25 Walter Lee <walt@tilera.com>
5561
5562 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5563 tests for constraint J, K, N, P.
5564
192ea533
WL
55652013-03-25 Walter Lee <walt@tilera.com>
5566
5567 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5568 Use indirect/pcrel encoding.
5569 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5570 Ditto.
5571
855e0d0b
SE
55722013-03-25 Steve Ellcey <sellcey@mips.com>
5573
5574 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5575 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5576 * config/mips/mips.c (mips_option_override): Set IMADD default.
5577 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5578 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5579 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5580 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5581 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5582
39e45653
JL
55832013-03-25 Jeff Law <law@redhat.com>
5584
5585 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5586 slightly to avoid creating and folding useless trees. Simplify
5587 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5588
7482c470
UB
55892013-03-25 Uros Bizjak <ubizjak@gmail.com>
5590
5591 * config/i386/i386.md (*zero_extendsidi2): Merge with
5592 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5593 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5594 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5595 targets. Clarify comment.
5596
4a53743e
MJ
55972013-03-25 Martin Jambor <mjambor@suse.cz>
5598
5599 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5600 pass-through jump functions differently.
5601 (ipa_read_jump_function): Likewise. Also use setter functions to set
5602 up jump functions.
5603
162712de
MJ
56042013-03-25 Martin Jambor <mjambor@suse.cz>
5605
5606 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5607 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5608 process it.
5609 (ipa_get_indirect_edge_target): New function.
5610 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5611 ipa_get_indirect_edge_target. Update all callers.
5612 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5613 ipa_get_indirect_edge_target_1 instead of calling
5614 ipa_get_indirect_edge_target.
5615 (create_specialized_node): Pass aggvlas to
5616 ipcp_discover_new_direct_edges.
5617
a5a4c20a
KT
56182013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5619
5620 * config/arm/arm.md (f_sels, f_seld): New types.
5621 (*cmov<mode>): New pattern.
5622 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5623 predicate.
5624
f992b9fc
KT
56252013-03-25 Kai Tietz <ktietz@redhat.com>
5626
5627 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5628 POSIX-printf for mingw-hosted builds.
5629
c16fd676
RB
56302013-03-25 Richard Biener <rguenther@suse.de>
5631
5632 PR middle-end/56694
5633 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5634 must-not-throw stmt location.
5635
5ad29f12
KT
56362013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5637
5638 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5639 Emit load-acquire versions when acq is true.
5640 (arm_emit_store_exclusive): Add rel parameter.
5641 Emit store-release versions when rel is true.
5642 (arm_split_compare_and_swap): Use acquire-release instructions
5643 instead.
5644 of barriers when appropriate.
5645 (arm_split_atomic_op): Likewise.
5646 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5647 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5648 (VUNSPEC_SLX): Likewise.
5649 (VUNSPEC_LDA): Likewise.
5650 (VUNSPEC_STL): Likewise.
5651 * config/arm/sync.md (atomic_load<mode>): New pattern.
5652 (atomic_store<mode>): Likewise.
5653 (arm_load_acquire_exclusive<mode>): Likewise.
5654 (arm_load_acquire_exclusivesi): Likewise.
5655 (arm_load_acquire_exclusivedi): Likewise.
5656 (arm_store_release_exclusive<mode>): Likewise.
5657
03a7dddb
CM
56582013-03-25 Catherine Moore <clm@codesourcery.com>
5659
5660 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5661 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5662 * config/mip/predicates.md (lwsp_swsp_operand,
5663 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5664 sb16_operand, db4_operand, db7_operand, ib3_operand,
5665 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5666 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5667 andi16_operand): New predicates.
5668 * config/mips/mips.md (compression): New attribute.
5669 (enabled): New attribute.
5670 (length): Consider compression in computing length.
5671 (shift_compression): New code attribute.
5672 (*add<mode>3): New operands. Record compression.
5673 (sub<mode>3): Likewise.
5674 (one_cmpl<mode>2): Likewise.
5675 (*and<mode>3): Likewise.
5676 (*ior<mode>3): Likewise.
5677 (unnamed pattern for xor): Likewise.
5678 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5679 (*<optab><mode>3): Likewise.
5680 (*mov<mode>_internal: Likewise.
5681 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5682 (mips_unsigned_immediate_p): New.
5683 (umips_lwsp_swsp_address_p): New.
5684 (m16_based_address_p): New.
5685 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5686 (mips_unsigned_immediate_p): New prototype.
5687 (lwsp_swsp_address_p): New prototype.
5688 (m16_based_address_p): New prototype.
5689 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5690 (mips_signed_immediate_p): New function.
5691 (m16_based_address_p): New function.
5692 (lwsp_swsp_address_p): New function.
5693 (mips_print_operand_punctuation): Recognize short delay slot insns
5694 for microMIPS.add<mode>3"
5695
f35c297f 56962013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 5697
f35c297f
KT
5698 PR target/56720
5699 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5700 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5701
051b9446
RB
57022013-03-25 Richard Biener <rguenther@suse.de>
5703
5704 PR tree-optimization/56689
5705 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5706 any edge.
5707
374001cb
RB
57082013-03-25 Richard Biener <rguenther@suse.de>
5709
5710 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5711 of bitmap.
5712 (memory_references): Likewise.
5713 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5714 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5715 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5716 (gather_mem_refs_in_loops): Fold into ...
5717 (analyze_memory_references): ... this. Move initialization
5718 to tree_ssa_lim_initialize.
5719 (fill_always_executed_in): Rename to ...
5720 (fill_always_executed_in_1): ... this.
5721 (fill_always_executed_in): Move contains_call computation to
5722 this new function from ...
5723 (tree_ssa_lim_initialize): ... here.
5724 (tree_ssa_lim): Call fill_always_executed_in.
5725
57895947
EB
57262013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5727
5728 * postreload.c (reload_combine): Fix code detecting returns.
5729
1e1b18c1
EB
57302013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5731
5732 * function.c (emit_use_return_register_into_block): On cc0 targets,
5733 do not emit the sequence between cc0 setter and user.
5734
9216baf1
KT
57352013-03-25 Kai Tietz <ktietz@redhat.com>
5736
1e1b18c1
EB
5737 * config/i386/predicates.md (local_symbolic_operand): Interpret
5738 dll-imported symbols as none-local.
9216baf1 5739
76421b44
RB
57402013-03-25 Richard Biener <rguenther@suse.de>
5741
5742 * tree-ssa-loop-im.c (struct depend): Remove.
5743 (struct lim_aux_data): Make depends a vec of gimples.
5744 (free_lim_aux_data): Adjust.
5745 (add_dependency): Likewise.
5746 (set_level): Likewise.
5747
d154bfa2
RB
57482013-03-25 Richard Biener <rguenther@suse.de>
5749
5750 PR middle-end/56434
5751 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5752 the pointer returned by calls with ECF_MALLOC set.
5753
2cd9804e
UB
57542013-03-24 Uros Bizjak <ubizjak@gmail.com>
5755
acef5fe0
UB
5756 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5757
57582013-03-24 Uros Bizjak <ubizjak@gmail.com>
5759
5760 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
5761 using MMXMODE mode iterator.
5762 (*move<mode>_internal): Merge with *movv2sf_internal and
5763 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5764
225ccc68
SB
57652013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5766
85c0f02d
SB
5767 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5768 (record_last_mem_set_info): Likewise.
5769
225ccc68
SB
5770 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5771 of XNEWVEC followed by memset.
5772 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5773
b64925dc
SB
57742013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5775
5776 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5777 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5778 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5779 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5780 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5781 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5782 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5783 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5784 BARRIER_P instead of GET_CODE.
5785
b9aaf52e
EB
57862013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5787
5788 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5789 inaccuracy in the probing code.
5790
5791 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5792 (ctrapdi4): Likewise.
5793
66de4d7c
EB
57942013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5795
5796 * calls.c (expand_call): Add missing guard to code handling return
5797 of non-BLKmode structures in MSB.
5798 * function.c (expand_function_end): Likewise.
5799
4f25c8fb
EB
58002013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5801
5802 * combine.c (try_combine): Adjust comment. Do not add the set of
5803 insn #0 if the destination indirectly is set or dies in insn #2.
5804 Tidy up code to distribute a new note.
5805
23b7850d
UB
58062013-03-22 Uros Bizjak <ubizjak@gmail.com>
5807
5808 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5809 also for alternatives 16 and 17.
5810
bed852cf
UB
58112013-03-22 Uros Bizjak <ubizjak@gmail.com>
5812
5813 * config/i386/sse.md (*mov<mode>_internal): Merge with
5814 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5815 Emit insn template depending on type attribute. Use
5816 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5817 movd instead of movq mnemonic for interunit moves. Rewrite mode
5818 attribute calculation. Remove unit attribute calculation.
5819 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5820 Set prefix_data16 attribute for DImode ssemov types.
5821 Use Ym instead of y for SSE-MMX conversion alternatives.
5822 Reorder operand constraints.
5823
1e8a7937
SB
58242013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5825
5826 * df.h (df_insn_delete): Adjust prototype.
5827 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5828 and let it decide whether mark the basic block dirty.
5829 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5830 * df-scan.c (df_insn_info_delete): New helper function, split
5831 off from df_insn_delete.
5832 (df_scan_free_bb_info): Use it.
5833 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5834 Likewise.
5835 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5836 that the insn is actually an insn and it has a non-NULL basic block.
5837 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5838
e14d094c
RB
58392013-03-22 Richard Biener <rguenther@suse.de>
5840
5841 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5842 dep_ref members.
5843 (mem_ref_alloc): Do not allocate them.
5844 (refs_independent_p): Do not query or maintain a cache.
5845
e9cf7316
RB
58462013-03-22 Richard Biener <rguenther@suse.de>
5847
5848 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5849 (gather_mem_refs_in_loops): Do not compute it.
5850 (analyze_memory_references): Do not allocate it.
5851 (tree_ssa_lim_finalize): Do not free it.
5852 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5853
f046e81b
RB
58542013-03-22 Richard Biener <rguenther@suse.de>
5855
5856 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 5857
a05c0ddf
IB
58582013-03-22 Ian Bolton <ian.bolton@arm.com>
5859
5860 * config/aarch64/aarch64.c (aarch64_print_operand): New
5861 format specifier for printing a constant in hex.
5862 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5863 format specifier for printing second operand.
5864
c00217fc
RB
58652013-03-22 Richard Biener <rguenther@suse.de>
5866
5867 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5868 bitmaps.
5869 (gather_mem_refs_in_loops): Perform store accumulation here.
5870 (create_vop_ref_mapping_loop): Remove.
5871 (create_vop_ref_mapping): Likewise.
5872 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 5873 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
5874 (record_indep_loop): Remove.
5875 (record_dep_loop): New function.
5876 (ref_indep_loop_p_1): Adjust to only walk over references
5877 in the loop, not its subloops.
5878 (ref_indep_loop_p): Rename to ...
5879 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5880 maintaining a more fine-grained cache.
5881 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5882 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5883
15d19bf8
RB
58842013-03-22 Richard Biener <rguenther@suse.de>
5885
5886 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5887 (struct mem_ref): Make accesses_in_loop a vec of a vec of
5888 aggregate mem_ref_loc.
5889 (free_mem_ref_locs): Inline into ...
5890 (memref_free): ... this and adjust.
5891 (mem_ref_alloc): Adjust.
5892 (mem_ref_locs_alloc): Remove.
5893 (record_mem_ref_loc): Adjust.
5894 (get_all_locs_in_loop): Rewrite into ...
5895 (for_all_locs_in_loop): ... this iterator.
5896 (rewrite_mem_ref_loc): New functor.
5897 (rewrite_mem_refs): Use for_all_locs_in_loop.
5898 (sm_set_flag_if_changed): New functor.
5899 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5900 (ref_always_accessed): New functor.
5901 (ref_always_accessed_p): Use for_all_locs_in_loop.
5902
6f37411d
MG
59032013-03-21 Marc Glisse <marc.glisse@inria.fr>
5904
5905 * tree-pass.h (PROP_gimple_lvec): New.
5906 * passes.c (dump_properties): Handle PROP_gimple_lvec.
5907 (init_optimization_passes): Move pass_lower_vector.
5908 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5909 PROP_gimple_lvec.
5910 (pass_lower_vector): Provide PROP_gimple_lvec.
5911 (pass_lower_vector_ssa): Likewise.
5912 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5913
511ef689
MW
59142013-03-21 Mark Wielaard <mjw@redhat.com>
5915
5916 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5917
cc1df30b
UB
59182013-03-21 Uros Bizjak <ubizjak@gmail.com>
5919
5920 * config/i386/i386.md (*movdi_internal): Disparage slightly
5921 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
5922 conversion alternatives.
5923
c845cfe1
JJ
59242013-03-21 Jakub Jelinek <jakub@redhat.com>
5925
37e99116
JJ
5926 PR middle-end/48087
5927 * diagnostic.def (DK_WERROR): New kind.
5928 * diagnostic.h (werrorcount): Define.
5929 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5930 promoted to DK_ERROR, increment DK_WERROR counter instead of
5931 DK_ERROR counter.
5932 * toplev.c (toplev_main): Call print_ignored_options even if
5933 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
5934 even if just werrorcount is non-zero.
5935
c845cfe1
JJ
5936 PR debug/55608
5937 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5938 on failure.
5939 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5940 (string_cst_pool_decl): New function.
5941 (optimize_one_addr_into_implicit_ptr): New function.
5942 (resolve_addr_in_expr): Optimize DWARF location expression
5943 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5944 which doesn't live in memory, but has DW_AT_location or
5945 DW_AT_const_value, or refers to a string literal, into
5946 DW_OP_GNU_implicit_pointer.
5947 (optimize_location_into_implicit_ptr): New function.
5948 (resolve_addr): If removing DW_AT_location of a variable because
5949 it was DW_OP_addr of address of the variable, but the variable doesn't
5950 live in memory, try to emit const value attribute for the initializer.
5951
08e0cda6
MG
59522013-03-21 Marc Glisse <marc.glisse@inria.fr>
5953
5954 * tree.h (VECTOR_TYPE_P): New macro.
5955 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5956 TYPE_MODE): Use it.
5957 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5958 VEC_COND_EXPR cannot be lvalues.
5959 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5960
d08633b4
MG
59612013-03-21 Marc Glisse <marc.glisse@inria.fr>
5962
5963 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5964 Restrict the transformation to equal modes.
5965
e6647190
RB
59662013-03-21 Richard Biener <rguenther@suse.de>
5967
5968 PR tree-optimization/39326
5969 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5970 (MEM_ANALYZABLE): Adjust.
5971 (record_mem_ref_loc): Move bitmap ops ...
5972 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
5973 unanalyzable refs, do not record locations for it.
5974 (analyze_memory_references): Allocate ref zero as shared
5975 unanalyzable ref.
5976 (refs_independent_p): Do not test for unanalyzed mems here.
5977 (ref_indep_loop_p_1): Special-case disambiguation against
5978 the unanalyzed ref.
cc1df30b 5979 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 5980
65074f54
CL
59812013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
5982
5983 * config/arm/arm-protos.h (tune_params): Add
5984 prefer_neon_for_64bits field.
5985 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5986 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5987 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5988 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5989 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5990 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5991 (arm_option_override): Handle -mneon-for-64bits new option.
5992 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5993 (prefer_neon_for_64bits): Declare new variable.
5994 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 5995 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
5996 (arch_enabled): Handle new arch types. Remove support for onlya8
5997 and nota8.
5998 (one_cmpldi2): Use new arch names.
bc5faa5b 5999 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6000 * config/arm/arm.opt (mneon-for-64bits): Add option.
6001 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6002 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6003 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6004 of onlya8.
6005 * doc/invoke.texi (-mneon-for-64bits): Document.
6006
5a2d2a79
RB
60072013-03-21 Richard Biener <rguenther@suse.de>
6008
6009 PR tree-optimization/39326
6010 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6011 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6012 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6013
5abe1e05
RB
60142013-03-21 Richard Biener <rguenther@suse.de>
6015
6016 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6017 (vect_insert_into_interleaving_chain): Likewise.
6018 (vect_drs_dependent_in_basic_block): Inline ...
6019 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6020 split out from ...
6021 (vect_analyze_data_ref_dependence): ... here. Simplify.
6022 (vect_check_interleaving): Simplify.
6023 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6024 (vect_slp_analyze_data_ref_dependences): ... this new function.
6025 (dr_group_sort_cmp): New function.
6026 (vect_analyze_data_ref_accesses): Compute data-reference groups
6027 here instead of in vect_analyze_data_ref_dependence. Use
6028 a more efficient algorithm.
6029 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6030 vect_slp_analyze_data_ref_dependences. Call
6031 vect_analyze_data_ref_accesses earlier.
6032 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6033 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6034 (vect_slp_analyze_data_ref_dependences): New prototype.
6035
cad1735b
RB
60362013-03-21 Richard Biener <rguenther@suse.de>
6037
6038 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6039 ref is stored in the loop.
6040 (find_refs_for_sm): Walk only over all stores.
6041 (store_motion_loop): Allocate from lim_bitmap_obstack.
6042 (store_motion): Likewise.
6043
141310ef
RB
60442013-03-21 Richard Biener <rguenther@suse.de>
6045
6046 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6047 Update virtual SSA form.
6048
5022315a
RO
60492013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6050
6051 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6052 * configure: Regenerate.
6053 * config.in: Regenerate.
6054 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6055 if !HAVE_LD_EH_FRAME_CIEV3.
6056
50d4421c
RB
60572013-03-21 Richard Biener <rguenther@suse.de>
6058
6059 * tree-cfg.c (verify_expr_no_block): New function.
6060 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6061 nor DECL_VALUE_EXPR have locations with associated blocks.
6062 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6063 (clear_unused_block_pointer): Remove code dealing with
6064 blocks in DECL_DEBUG_EXPR locations.
6065
839b422f
RB
60662013-03-21 Richard Biener <rguenther@suse.de>
6067
6068 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6069 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6070 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6071 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6072 instead of DECL_DEBUG_EXPR_IS_FROM.
6073 * gimplify.c (gimplify_modify_expr): Likewise.
6074 * tree-cfg.c (verify_expr_location_1): Likewise.
6075 * tree-complex.c (create_one_component_var): Likewise.
6076 * tree-sra.c (create_access_replacement): Likewise.
6077 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6078 (clear_unused_block_pointer): Likewise.
6079 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6080 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6081 * var-tracking.c (var_debug_decl): Likewise.
6082 (track_expr_p): Likewise.
6083 * tree-inline.c (add_local_variables): Likewise. Set
6084 DECL_HAS_DEBUG_EXPR_P after copying it.
6085 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6086 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6087
fe04878d
UB
60882013-03-21 Uros Bizjak <ubizjak@gmail.com>
6089
6090 PR bootstrap/56656
6091 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6092 * configure: Regenerate.
6093 * config.in: Regenerate.
6094 * config/i386/i386.md (*movdf_internal): Use
6095 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6096 movd instead of movq mnemonic for interunit moves.
6097 (*movdi_internal): Ditto.
6098
bd059b26 60992013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
6100
6101 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6102 (abd<mode>_3): New pattern.
6103 (aba<mode>_3): New pattern.
6104 (fabd<mode>_3): New pattern.
6105
bd059b26 61062013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
6107
6108 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6109 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6110 occurrence of REGISTER_PREFIX as its empty string.
6111
4f1f78b9
JL
61122013-03-20 Jeff Law <law@redhat.com>
6113
6114 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6115 addititional equivalences for equality comparisons between an SSA_NAME
6116 and a constant where the SSA_NAME was set from a widening conversion.
6117
327a1118
WL
61182013-03-20 Walter Lee <walt@tilera.com>
6119
6120 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6121
813e0036
UB
61222013-03-20 Uros Bizjak <ubizjak@gmail.com>
6123
6124 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6125 depending on type attribute.
6126 (*movti_internal): Ditto.
6127 (*movtf_internal): Ditto.
6128 (*movxf_internal): Ditto.
6129 (*movdf_internal): Ditto.
6130 (*movsf_internal): Ditto.
6131
7cf34aae
UB
61322013-03-20 Uros Bizjak <ubizjak@gmail.com>
6133
6134 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6135 maybe_vex for sselog1 and ssemov types.
6136 (*movdi_internal): Reorder operand constraints.
6137 (*movsi_internal): Ditto. Set prefix attribute to
6138 maybe_vex for sselog1 and ssemov types.
6139 (*movtf_internal): Set prefix attribute to maybe_vex
6140 for sselog1 and ssemov types.
6141 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6142 DImode ssemov types. Reorder operand constraints.
6143 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6144 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6145 attribute for SImode ssemov types. Reorder operand constraints.
6146
19321415
MJ
61472013-03-20 Martin Jambor <mjambor@suse.cz>
6148
6149 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6150 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6151
c6d5ff83
MM
61522013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6153
6154 * config/rs6000/predicates.md (indexed_address, update_address_mem
6155 update_indexed_address_mem): New predicates.
6156 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6157 attribute for load/store instructions.
6158 * config/rs6000/dfp.md (movsd_store): Likewise.
6159 (movsd_load): Likewise.
6160 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6161 (unnamed HI->DI extend define_insn): Likewise.
6162 (unnamed SI->DI extend define_insn): Likewise.
6163 (unnamed QI->SI extend define_insn): Likewise.
6164 (unnamed QI->HI extend define_insn): Likewise.
6165 (unnamed HI->SI extend define_insn): Likewise.
6166 (unnamed HI->SI extend define_insn): Likewise.
6167 (extendsfdf2_fpr): Likewise.
6168 (movsi_internal1): Likewise.
6169 (movsi_internal1_single): Likewise.
6170 (movhi_internal): Likewise.
6171 (movqi_internal): Likewise.
6172 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6173 attribute for load/store instructions.
6174 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6175 instructions.
6176 (mov<mode>_softfloat): Likewise.
6177 (mov<mode>_hardfloat32): Likewise.
6178 (mov<mode>_hardfloat64): Likewise.
6179 (mov<mode>_softfloat64): Likewise.
6180 (movdi_internal32): Likewise.
6181 (movdi_internal64): Likewise.
6182 (probe_stack_<mode>): Likewise.
6183
61842013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6185
6186 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6187 floating point, and decimal floating point to reload iterator.
6188
6189 * config/rs6000/constraints.md (wl constraint): New constraints to
6190 return FLOAT_REGS if certain options are used to reduce the number
6191 of separate patterns that exist in the file.
6192 (wx constraint): Likewise.
6193 (wz constraint): Likewise.
6194
6195 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6196 -mdebug=reg, print wg, wl, wx, and wz constraints.
6197 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6198 Initialize the reload functions for 64-bit binary/decimal floating
6199 point types.
6200 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6201 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6202 create the buffer on the stack to overcome not having a 32-bit
6203 load and store.
6204 (rs6000_emit_move): Likewise.
6205 (rs6000_secondary_memory_needed_rtx): Likewise.
6206 (rs6000_alloc_sdmode_stack_slot): Likewise.
6207 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6208 via xxlxor, just like DFmode 0.0.
6209
6210 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6211 define as 1 if we are running on a power7 or newer.
6212 (enum r6000_reg_class_enum): Add new constraints.
6213
6214 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6215 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6216 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 6217 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
6218 (movsd splitter): Likewise.
6219 (movsd_hardfloat): Likewise.
6220 (movsd_softfloat): Likewise.
6221
6222 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6223 binary and decimal floating point moves.
6224 (fmove_ok): New attributes to combine binary and decimal floating
6225 point moves, and to combine power6x (mfpgpr) moves along normal
6226 floating moves.
6227 (real_value_to_target): Likewise.
6228 (f32_lr): Likewise.
6229 (f32_lm): Likewise.
6230 (f32_li): Likewise.
6231 (f32_sr): Likewise.
6232 (f32_sm): Likewise.
6233 (f32_si): Likewise.
6234 (movsf): Combine binary and decimal floating point moves. Combine
6235 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 6236 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
6237 (mov<mode> for SFmode/SDmode); Likewise.
6238 (SFmode/SDmode splitters): Likewise.
6239 (movsf_hardfloat): Likewise.
6240 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6241 (movsf_softfloat): Likewise.
6242 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6243
6244 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6245 wx and wz constraints.
6246
6247 * config/rs6000/constraints.md (wg constraint): New constraint to
6248 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6249
6250 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6251 constraint.
6252
6253 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6254 -mdebug=reg, print wg, wl, wx, and wz constraints.
6255 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6256 Initialize the reload functions for 64-bit binary/decimal floating
6257 point types.
6258 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6259 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6260 create the buffer on the stack to overcome not having a 32-bit
6261 load and store.
6262 (rs6000_emit_move): Likewise.
6263 (rs6000_secondary_memory_needed_rtx): Likewise.
6264 (rs6000_alloc_sdmode_stack_slot): Likewise.
6265 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6266 via xxlxor, just like DFmode 0.0.
6267
c6d5ff83
MM
6268 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6269 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6270 with other moves by using conditional constraits (wg). Use LFIWZX
6271 and STFIWX for loading SDmode on power7.
6272 (movdd splitters): Likewise.
6273 (movdd_hardfloat32): Likewise.
6274 (movdd_softfloat32): Likewise.
6275 (movdd_hardfloat64_mfpgpr): Likewise.
6276 (movdd_hardfloat64): Likewise.
6277 (movdd_softfloat64): Likewise.
6278
6279 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6280 64-bit binary and decimal floating point moves.
6281 (FMOVE64X): Likewise.
6282 (movdf): Combine 64-bit binary and decimal floating point moves.
6283 Combine power6x (mfpgpr) moves with other moves by using
6284 conditional constraits (wg).
6285 (mov<mode> for DFmode/DDmode): Likewise.
6286 (DFmode/DDmode splitters): Likewise.
6287 (movdf_hardfloat32): Likewise.
6288 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6289 (movdf_softfloat32): Likewise.
6290 (movdf_hardfloat64_mfpgpr): Likewise.
6291 (movdf_hardfloat64): Likewise.
6292 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6293 (movdf_softfloat64): Likewise.
6294 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6295 (reload_<mode>_load): Move to later in the file so they aren't in
6296 the middle of the floating point move insns.
6297 (reload_<mode>_store): Likewise.
6298
6299 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6300 constraint.
6301
6302 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6303 constraint if -mdebug=reg.
bd059b26
UB
6304 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6305 Enable using dd reload support if needed.
c6d5ff83
MM
6306
6307 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6308 binary and decimal floating point moves in rs6000.md.
6309 (movtd_internal): Likewise.
6310
6311 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6312 decimal floating point moves.
6313 (movtf): Likewise.
6314 (movtf_internal): Likewise.
6315 (mov<mode>_internal, TDmode/TFmode): Likewise.
6316 (movtf_softfloat): Likewise.
6317 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6318
6319 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6320 movdi_internal64, using wg constraint for move direct operations.
6321 (movdi_internal64): Likewise.
6322
6323 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6324 MODES_TIEABLE_P for selected modes. Print the numerical value of
6325 the various virtual registers. Use GPR/FPR first/last values,
6326 instead of hard coding the register numbers. Print which modes
6327 have reload functions registered.
bd059b26
UB
6328 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6329 settings before/after setting cpu, target and subtarget settings.
6330 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6331 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
6332 (rs6000_secondary_reload_fail): Likewise.
6333 (rs6000_secondary_reload_inner): Likewise.
6334
6335 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6336 macros for first/last GPR and FPR registers.
6337 (LAST_GPR_REGNO): Likewise.
6338 (FIRST_FPR_REGNO): Likewise.
6339 (LAST_FPR_REGNO): Likewise.
6340
6341 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6342 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6343 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6344 (vcond<mode><mode>): Likewise.
6345 (vcondu<mode><mode>): Likewise.
6346 (vector_gtu<mode>): Likewise.
6347 (vector_gte<mode>): Likewise.
6348 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 6349 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
6350 (ior<mode>3): Likewise.
6351 (and<mode>3): Likewise.
6352 (one_cmpl<mode>2): Likewise.
6353 (nor<mode>3): Likewise.
6354 (andc<mode>3): Likewise.
6355
6356 * config/rs6000/constraints.md (wt constraint): New constraint
6357 that returns VSX_REGS if TImode is allowed in VSX registers.
6358
6359 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6360 constant under VSX.
6361
6362 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6363 similar to TImode, but it is restricted to being in the GPRs.
6364
6365 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6366 TImode to occupy a single VSX register.
6367
6368 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6369 -mvsx-timode for power7/power8.
6370 (power7 cpu): Likewise.
6371 (power8 cpu): Likewise.
6372
6373 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6374 sure that TFmode/TDmode take up two registers if they are ever
6375 allowed in the upper VSX registers.
6376 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6377 registers.
6378 (rs6000_init_hard_regno_mode_ok): Likewise.
6379 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6380 constraint. Print if LRA is turned on.
6381 (rs6000_option_override_internal): Give an error if -mvsx-timode
6382 and VSX is not enabled.
6383 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6384 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6385 to reg+offset addressing. Use PTImode when checking offset
6386 addresses for validity.
6387 (reg_offset_addressing_ok_p): Likewise.
6388 (rs6000_legitimate_offset_address_p): Likewise.
6389 (rs6000_legitimize_address): Likewise.
6390 (rs6000_legitimize_reload_address): Likewise.
6391 (rs6000_legitimate_address_p): Likewise.
6392 (rs6000_eliminate_indexed_memrefs): Likewise.
6393 (rs6000_emit_move): Likewise.
6394 (rs6000_secondary_reload): Likewise.
6395 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6396 reloads to fpr registers to continue to use reg+offset addressing,
6397 but 64-bit reloads to altivec registers need reg+reg addressing.
6398 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6399 it. Treat LO_SUM like a PLUS operation.
6400 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 6401 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
6402 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6403 registers to share a register with a smaller sized type, since VSX
6404 puts scalars in the upper 64-bits.
6405 (print_operand): Add support for PTImode.
6406 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6407 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6408 registers, but don't have arithmetic support.
6409 (rs6000_memory_move_cost): Add test for VSX.
6410 (rs6000_opt_masks): Add -mvsx-timode.
6411
6412 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6413 for TImode.
6414 (VSs): Likewise.
6415 (VSr): Use wt constraint for TImode.
6416 (VSv): Drop TImode support.
6417 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6418 (vsx_movti_64bit): Likewise.
6419 (vsx_movti_32bit): Likewise.
6420 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6421 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6422 one '?' on the appropriate output constraint. Do not allow TImode
6423 logical operations on 32-bit systems.
6424 (vsx_ior<mode>3): Likewise.
6425 (vsx_xor<mode>3): Likewise.
6426 (vsx_one_cmpl<mode>2): Likewise.
6427 (vsx_nor<mode>3): Likewise.
6428 (vsx_andc<mode>3): Likewise.
6429 (vsx_concat_<mode>): Likewise.
6430 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6431
6432 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6433 OPTION_MASK_VSX_TIMODE.
6434 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6435 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6436
6437 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6438 (TI2 iterator): New iterator for TImode, PTImode.
6439 (wd mode attribute): Add values for vector types.
bd059b26
UB
6440 (movti_string): Replace TI move operations with operations for TImode
6441 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
6442 (mov<mode>_string, TImode/PTImode): Likewise.
6443 (movti_ppc64): Likewise.
6444 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6445 (TI mode splitters): Likewise.
6446
6447 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6448 constraint.
6449
1fc5eced
MG
64502013-03-20 Marc Glisse <marc.glisse@inria.fr>
6451
6452 PR tree-optimization/56355
6453 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6454 Also handle integers with undefined overflow.
6455
22c4c869
CM
64562013-03-20 Catherine Moore <clm@codesourcery.com>
6457 Maciej W. Rozycki <macro@codesourcery.com>
6458 Tom de Vries <tom@codesourcery.com>
6459 Nathan Sidwell <nathan@codesourcery.com>
6460 Iain Sandoe <iain@codesourcery.com>
6461 Nathan Froyd <froydnj@codesourcery.com>
6462 Chao-ying Fu <fu@mips.com>
6463
6464 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 6465 Document new function attributes.
22c4c869
CM
6466 * doc/invoke.texi (minterlink-compressed, mmicromips,
6467 m14k, m14ke, m14kec): Document new options.
6468 (minterlink-mips16): Update documentation.
6469 * doc/md.texi (ZC, ZD): Document new constraints.
6470 * configure.ac (gcc_cv_as_micromips): Check if linker
6471 supports the .set micromips directive.
6472 * configure: Regenerate.
6473 * config.in: Regenerate.
6474 * config/mips/mips-tables.opt: Regenerate.
6475 * config/mips/micromips.md: New file.
6476 * constraints.md (ZC, ZD): New constraints.
6477 * config/mips/predicates.md (movep_src_register): New predicate.
6478 (movep_src_operand): New predicate.
6479 (non_volatile_mem_operand): New predicate.
6480 * config/mips/mips.md (multimem): New type.
6481 (length): Differentiate between 17-bit and 18-bit branch offsets.
6482 (MOVEP1, MOVEP2): New mode iterator.
33159866 6483 (mov_<load>l): Use ZC constraint.
22c4c869
CM
6484 (mov_<load>r): Likewise.
6485 (mov_<store>l): Likewise.
6486 (mov_<store>r): Likewise.
6487 (*branch_equality<mode>_inverted): Add microMIPS support.
6488 (*branch_equality<mode>): Likewise.
6489 (*jump_absolute): Likewise.
6490 (indirect_jump_<mode>): Likewise.
6491 (tablejump_<mode>): Likewise.
6492 (<optab>_internal): Likewise.
6493 (sibcall_internal): Likewise.
6494 (sibcall_value_internal): Likewise.
6495 (prefetch): Use constraint ZD.
6496 * config/mips/mips.opt (minterlink-compressed): New option.
6497 (minterlink-mips16): Now an alias for minterlink-compressed.
6498 (mmicromips): New option.
6499 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6500 (compare_and_swap_12): Likewise.
6501 (sync_add<mode>): Likewise.
6502 (sync_<optab>_12): Likewise.
6503 (sync_old_<optab>_12): Likewise.
6504 (sync_new_<optab>_12): Likewise.
6505 (sync_nand_12): Likewise.
6506 (sync_old_nand_12): Likewise.
6507 (sync_new_nand_12): Likewise.
6508 (sync_sub<mode>): Likewise.
6509 (sync_old_add<mode>): Likewise.
6510 (sync_old_sub<mode>): Likewise.
6511 (sync_new_add<mode>): Likewise.
6512 (sync_new_sub<mode>): Likewise.
6513 (sync_<optab><mode>): Likewise.
6514 (sync_old_<optab><mode>): Likewise.
6515 (sync_new_<optab><mode>): Likewise.
6516 (sync_nand<mode>): Likewise.
6517 (sync_old_nand<mode>): Likewise.
6518 (sync_new_nand<mode>): Likewise.
6519 (sync_lock_test_and_set<mode>): Likewise.
6520 (test_and_set_12): Likewise.
6521 (atomic_compare_and_swap<mode>): Likewise.
6522 (atomic_exchange<mode>_llsc): Likewise.
6523 (atomic_fetch_add<mode>_llsc): Likewise.
6524 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6525 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6526 (umips_save_restore_pattern_p): Likewise.
6527 (umips_load_store_pair_p): Likewise.
6528 (umips_output_load_store_pair): Likewise.
6529 (umips_movep_target_p): Likewise.
6530 (umips_12bit_offset_address_p): Likewise.
6531 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6532 (mips_base_mips16): Rename this...
6533 (mips_base_compression_flags): ...to this. Update all uses.
6534 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6535 (mips_mips16_decl_p): Delete.
6536 (mips_nomips16_decl_p): Delete.
33159866 6537 (mips_get_compress_on_flags): New function.
22c4c869
CM
6538 (mips_get_compress_off_flags): New function.
6539 (mips_get_compress_mode): New function.
6540 (mips_get_compress_on_name): New function.
6541 (mips_get_compress_off_name): New function.
6542 (mips_insert_attributes): Support multiple compression types.
6543 (mips_merge_decl_attributes): Likewise.
6544 (umips_12bit_offset_address_p): New function.
6545 (mips_start_function_definition): Emit .set micromips directive.
6546 (mips_call_may_need_jalx_p): New function.
6547 (mips_function_ok_for_sibcall): Add microMIPS support.
6548 (mips_print_operand_punctuation): Support short delay slots and
6549 compact jumps.
6550 (umips_swm_mask, umips_swm_encoding): New.
6551 (umips_build_save_restore): New function.
6552 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6553 (was_mips16_p): Remove.
6554 (old_compression_mode): New.
6555 (mips_set_compression_mode): New function.
6556 (mips_set_current_function): Add microMIPS support.
6557 (mips_option_override): Likewise.
6558 (umips_save_restore_pattern_p): New function.
6559 (umips_output_save_restore): New function.
6560 (umips_load_store_pair_p_1): New function.
6561 (umips_load_store_pair_p): New function.
6562 (umips_output_load_store_pair_1): New function.
6563 (umips_output_load_store_pair): New function.
6564 (umips_movep_target_p) New function.
6565 (mips_prepare_pch_save): Add microMIPS support.
6566 * config/mips/mips.h (TARGET_COMPRESSION): New.
6567 (TARGET_CPU_CPP_BUILTINS): Update macro
6568 to use new compression flags and to support microMIPS.
6569 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6570 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6571 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6572 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6573 (ASM_SPEC): Support mmicromips and mno-micromips.
6574 (M16STORE_REG_P): New macro.
6575 (MIPS_CALL): Support TARGET_MICROMIPS.
6576 (MICROMIPS_J): New macro.
6577 (mips_base_mips16): Rename this...
6578 (mips_base_compression_flags): ...to this.
6579 (UMIPS_12BIT_OFFSET_P): New macro.
6580 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6581 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
65822013-03-20 Richard Biener <rguenther@suse.de>
6583
6584 PR tree-optimization/56661
6585 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6586 the result does not have to be distinct.
6587
54714c68
RB
65882013-03-20 Richard Biener <rguenther@suse.de>
6589
6590 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6591 remap_gimple_op_r.
6592
cca1130d
BS
65932013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6594 Steven Bosscher <steven@gcc.gnu.org>
6595
6596 PR rtl-optimization/56605
6597 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6598
2a930377
UB
65992013-03-20 Uros Bizjak <ubizjak@gmail.com>
6600
6601 PR bootstrap/56656
6602 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6603 that require movd instead of movq.
6604
d6d305fe
RB
66052013-03-20 Richard Biener <rguenther@suse.de>
6606
6607 * tree-ssa-structalias.c (struct variable_info): Add pointer
6608 to the first field of an aggregate with sub-vars. Make
6609 this and the pointer to the next subfield its ID.
6610 (vi_next): New function.
6611 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6612 storedanything_id, integer_id): Increment by one.
6613 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6614 get_call_clobber_vi): Adjust.
6615 (solution_set_expand): Simplify and speedup.
6616 (solution_set_add): Inline into ...
6617 (set_union_with_increment): ... this. Adjust accordingly.
6618 (do_sd_constraint): Likewise.
6619 (do_ds_constraint): Likewise.
6620 (do_complex_constraint): Simplify.
6621 (build_pred_graph): Adjust.
6622 (solve_graph): Likewise. Simplify and speedup.
6623 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6624 get_constraint_for_component_ref, get_constraint_for_1,
6625 first_vi_for_offset, first_or_preceding_vi_for_offset,
6626 create_function_info_for, create_variable_info_for_1,
6627 create_variable_info_for, intra_create_variable_infos): Adjust.
6628 (init_base_vars): Push NULL for ID zero.
6629 (compute_points_to_sets): Adjust.
6630
a271b42d
RB
66312013-03-20 Richard Biener <rguenther@suse.de>
6632
6633 * cfgloop.c (verify_loop_structure): Streamline and avoid
6634 ICEing on corrupt loop tree.
6635 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6636 loop tree.
6637
ebd65954
RB
66382013-03-20 Richard Biener <rguenther@suse.de>
6639
6640 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6641 check whether an SSA update is needed.
6642
4547b7ee
RS
66432013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6644
6645 * config/mips/constraints.md (T): Rename to...
6646 (Yf): ...this.
6647 (U): Rename to...
6648 (Yd): ...this.
6649 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6650 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6651
0b8cdc58
IB
66522013-03-19 Ian Bolton <ian.bolton@arm.com>
6653
6654 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6655 (*subsi3_carryin_uxtw): Likewise.
6656
5977a10d
IB
66572013-03-19 Ian Bolton <ian.bolton@arm.com>
6658
6659 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6660 (*rorsi3_insn_uxtw): Likewise.
6661
bd83ff2c
IB
66622013-03-19 Ian Bolton <ian.bolton@arm.com>
6663
6664 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6665 (*extrsi5_insn_uxtw): Likewise.
6666
ba65123c
RB
66672013-03-19 Richard Biener <rguenther@suse.de>
6668
6669 PR tree-optimization/56273
6670 * passes.c (init_optimization_passes): Move second VRP after DOM.
6671
2eac0476
UB
66722013-03-19 Uros Bizjak <ubizjak@gmail.com>
6673
6674 * config/i386/i386.md (*movti_internal): Merge from
6675 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6676 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6677 nox64 isa attributes.
6678
6e55eda7
RB
66792013-03-18 Richard Biener <rguenther@suse.de>
6680
6681 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6682 (unite): Likewise.
6683 (merge_node_constraints): Likewise.
6684 (build_succ_graph): Likewise.
6685 (valid_graph_edge): Inline into single caller.
6686 (unify_nodes): Likewise. Use bitmap_set_bit return value
6687 and cache varinfo.
6688 (scc_visit): Fix formatting and variable use.
6689 (do_sd_constraint): Use gcc_checking_assert.
6690 (do_ds_constraint): Likewise.
6691 (do_complex_constraint): Likewise.
6692 (condense_visit): Likewise. Cleanup.
6693 (dump_pred_graph): New function.
6694 (perform_var_substitution): Dump the pred-graph before
6695 variable substitution.
6696 (find_equivalent_node): Use gcc_checking_assert.
6697 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6698
4bdd44c4
RB
66992013-03-18 Richard Biener <rguenther@suse.de>
6700
6701 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6702 Remove cond_expr_stmt_list argument and do not gimplify the
6703 built expression.
6704 (vect_loop_versioning): Adjust.
6705 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6706 Cleanup to use less temporaries.
6707 (vect_create_data_ref_ptr): Cleanup.
6708
38c56a5b
JJ
67092013-03-18 Jakub Jelinek <jakub@redhat.com>
6710
6711 PR tree-optimization/56635
6712 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6713 require types_compatible_p types.
6714
20b2e6a0
NC
67152013-03-18 Nick Clifton <nickc@redhat.com>
6716
a6178a25
NC
6717 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6718 spurious backslash.
6719
20b2e6a0
NC
6720 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6721 Add missing line to comment describing function.
6722
92608d0e
RB
67232013-03-18 Richard Biener <rguenther@suse.de>
6724
6725 PR tree-optimization/56210
6726 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6727 Handle string / character search functions.
6728 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6729
31348d52
RB
67302013-03-18 Richard Biener <rguenther@suse.de>
6731
6732 PR middle-end/56483
6733 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6734 and implement properly.
6735 * gimple.h (gimple_cond_single_var_p): Remove.
6736
fcac74a1
RB
67372013-03-18 Richard Biener <rguenther@suse.de>
6738
6739 * tree-data-ref.h (find_data_references_in_loop): Declare.
6740 * tree-data-ref.c (get_references_in_stmt): Use a stack
6741 vector pre-allocated in the callers.
6742 (find_data_references_in_stmt): Adjust.
6743 (graphite_find_data_references_in_stmt): Likewise.
6744 (create_rdg_vertices): Likewise.
6745 (find_data_references_in_loop): Export.
6746 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6747 Compute dependences here...
6748 (vect_analyze_data_refs): ...not here. When we encounter
6749 a non-vectorizable data reference in basic-block vectorization
6750 truncate the data reference vector. Do not bother to
6751 fixup data-dependence information for gather loads.
6752 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6753 of data references, as reported.
6754
0d5a1b56
RB
67552013-03-18 Richard Biener <rguenther@suse.de>
6756
6757 PR tree-optimization/3713
6758 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6759 has_constants and expr.
6760 (stmt_has_constants): Properly valueize SSA names when deciding
6761 whether the stmt has constants.
6762
789c34e3
RB
67632013-03-18 Richard Biener <rguenther@suse.de>
6764
6765 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6766 whole function when there is nothing to do.
6767 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6768 * tree-vectorizer.c (vectorize_loops): Update virtual and
6769 loop-closed SSA once.
6770 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6771
076b4605
RB
67722013-03-18 Richard Biener <rguenther@suse.de>
6773
6774 PR middle-end/56113
6775 * domwalk.c (bb_postorder): New global static.
6776 (cmp_bb_postorder): New function.
6777 (walk_dominator_tree): Replace scheme imposing an order for
6778 visiting dominator sons by one sorting them at the time they
6779 are pushed on the stack.
6780
bdb01696
RB
67812013-03-18 Richard Biener <rguenther@suse.de>
6782
6783 PR tree-optimization/39326
6784 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6785 (struct mem_ref): Replace mem member with ao_ref typed member.
6786 (MEM_ANALYZABLE): Adjust.
6787 (memref_eq): Likewise.
6788 (mem_ref_alloc): Likewise.
6789 (gather_mem_refs_stmt): Likewise.
6790 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6791 (execute_sm_if_changed_flag_set): Adjust.
6792 (execute_sm): Likewise.
6793 (ref_always_accessed_p): Likewise.
6794 (refs_independent_p): Likewise.
6795 (can_sm_ref_p): Likewise.
6796
12d2dc5e
JJ
67972013-03-18 Jakub Jelinek <jakub@redhat.com>
6798
6799 PR c/56566
6800 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6801 return 1 even for !unsignedp.
6802
286fb677
UB
68032013-03-17 Uros Bizjak <ubizjak@gmail.com>
6804
6805 * config/i386/i386.md (isa): Add x64 and nox64.
6806 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6807 (*pushtf): Enable *roF alternative for x64 isa only.
6808 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6809 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6810 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6811 (*movtf_internal): Merge from *movtf_internal_rex64 and
6812 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6813 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6814 nox64 isa attributes.
6815 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6816 nox64 isa attributes.
6817 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6818
88b97037
UB
68192013-03-17 Uros Bizjak <ubizjak@gmail.com>
6820
6821 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6822
9f4f1735
JJ
68232013-03-17 Jakub Jelinek <jakub@redhat.com>
6824
6825 PR target/56640
6826 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6827 class names. Remove trailing comma after "ALL_REGS".
6828
48f4a6fa
JH
68292013-03-16 Jan Hubicka <jh@suse.cz>
6830
6831 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6832 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6833 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6834 of cgraph_get_create_node.
6835 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6836
98e81123
JM
68372013-03-16 Jason Merrill <jason@redhat.com>
6838
6839 PR debug/49090
6840 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6841 with DW_AT_default_value.
6842
8a298c04
JJ
68432013-03-16 Jakub Jelinek <jakub@redhat.com>
6844
6845 * BASE-VER: Set to 4.9.0.
6846
4323afa0
AK
68472013-03-14 Andi Kleen <ak@linux.intel.com>
6848
6849 PR target/56619
6850 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6851 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6852 Document _x* TSX intrinsics.
6853
b3c0d469
JJ
68542013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6855 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
6856
6857 * configure.ac: Add MicroBlaze TLS support detection.
6858 * configure: Regenerate.
88b97037
UB
6859 * config/microblaze/microblaze-protos.h
6860 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6861 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6862 * config/microblaze/microblaze.c (microblaze_address_type): Add
6863 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
6864 (microblaze_address_info): Add tls_reloc.
6865 (TARGET_HAVE_TLS): Define.
6866 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6867 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
6868 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6869 load_tls_operand, microblaze_call_tls_get_addr,
6870 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
6871 (microblaze_classify_unspec): Handle UNSPEC_TLS.
6872 (get_base_reg): Use microblaze_tls_symbol_p.
6873 (microblaze_classify_address): Handle TLS.
88b97037
UB
6874 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6875 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
6876 (microblaze_legitimize_address): Handle TLS.
6877 (microblaze_address_insns): Handle ADDRESS_TLS.
6878 (pic_address_needs_scratch): Handle TLS.
6879 (print_operand_address): Handle TLS.
6880 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6881 (microblaze_expand_move): Handle TLS.
88b97037
UB
6882 (microblaze_legitimate_constant_p): Check
6883 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
6884 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6885 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6886 (PIC_OFFSET_TABLE_REGNUM): Set.
6887 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6888 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6889 (addsi3, movsi_internal2, movdf_internal): Update constraints
6890 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
6891 (move_operand): Redefine as move_src_operand,
6892 check microblaze_tls_referenced_p.
8cc9a5a5 6893
d803a491
IB
68942013-03-14 Ian Bolton <ian.bolton@arm.com>
6895
6896 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6897 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6898
a8504f22
IB
68992013-03-14 Ian Bolton <ian.bolton@arm.com>
6900
6901 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6902 CC mode for AND.
6903
df2dfaea
JJ
69042013-03-14 Jakub Jelinek <jakub@redhat.com>
6905
fbd28bc3
JJ
6906 PR tree-optimization/53265
6907 * common.opt (Waggressive-loop-optimizations): New option.
6908 * tree-ssa-loop-niter.c: Include tree-pass.h.
6909 (do_warn_aggressive_loop_optimizations): New function.
6910 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
6911 if number_of_latch_executions returned constant.
6912 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6913 early. If number_of_latch_executions returned constant, set
6914 nb_iterations_upper_bound back to it.
6915 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6916 field.
6917 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6918 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6919
df2dfaea
JJ
6920 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6921 (MULTILIB_OSDIRNAMES): Set.
6922 * genmultilib: If defaultosdirname doesn't start with :: , set
6923 defaultosdirname2 instead, clear it and emit two . multilib_raw
6924 entries instead of just one.
6925
ee0d2b68
KK
69262013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
6927
6928 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6929 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6930 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6931 (SUBTARGET_OVERRIDE_OPTIONS): New.
6932
decc676e
OE
69332013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
6934
6935 PR target/49880
6936 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6937 (musermode): Convert to Var(TARGET_USERMODE).
6938 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6939 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6940 * config/sh/sh.c (sh_option_override): Use
6941 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6942 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6943 condition.
6944 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6945 TARGET_SH4.
6946 (udivsi3_i4_single, divsi3_i4_single): Use
6947 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6948
f4b719c7
DK
69492013-03-13 Dave Korn <dave.korn.cygwin@....>
6950
6951 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6952 default setting.
6953
c40eced0
RB
69542013-03-13 Richard Biener <rguenther@suse.de>
6955
6956 PR tree-optimization/56608
6957 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6958 calls when vectorizing basic-blocks.
6959
1bfa5973
JJ
69602013-03-13 Jakub Jelinek <jakub@redhat.com>
6961
6962 PR plugins/45078
6963 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6964 tm_file.
6965
6fcf5434
JJ
69662013-03-12 Jakub Jelinek <jakub@redhat.com>
6967
6968 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6969
4f38fa8c
JH
69702013-03-11 Jan Hubicka <jh@suse.cz>
6971
6972 PR lto/56557
6973 * lto-streamer-out.c (output_symbol_p): Skip references from
6974 constructors of external variables.
6975
c5c5ba89
JH
69762013-03-11 Jan Hubicka <jh@suse.cz>
6977
6978 PR middle-end/56571
6979 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6980 from pseudos.
6981 * emit-rtl.c (verify_rtx_sharing): Likewise.
6982 (copy_insn_1): Likewise.
6983 * rtl.c (copy_rtx): Likewise.
6984
c2a939b1
GJL
69852013-03-11 Georg-Johann Lay <avr@gjlay.de>
6986
6987 PR target/56591
6988 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6989 output_operand_lossage message.
88b97037 6990
3c3279fb
RE
69912013-03-11 Richard Earnshaw <rearnsha@arm.com>
6992
6993 PR target/56470
6994 * arm.c (shift_op): Validate RTL pattern on the fly.
6995 (arm_print_operand, case 'S'): Don't use shift_operator to validate
6996 the RTL.
6997
aef5ef9d
JDA
69982013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6999
7000 PR target/56347
7001 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7002 new call patterns that clobber %fr12.
7003 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7004 split and postreload patterns.
7005 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7006 registers %fr12 and %fr12R as call used.
7007
456610d3
SB
70082013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7009
7010 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7011 (canon_address, record_store, replace_read, check_mem_read_rtx,
7012 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7013 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7014 rest_of_handle_dse): Likewise.
7015
4b1baac8
RS
70162013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7017
7018 PR middle-end/56524
7019 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7020 Add base_optabs.
7021 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7022 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7023 (save_optabs_if_changed): Replace with...
7024 (init_tree_optimization_optabs): ...this.
7025 * optabs.c (save_optabs_if_changed): Rename to...
7026 (init_tree_optimization_optabs): ...this. Take the optimization node
7027 as argument. Do nothing if the base optabs are already correct.
7028 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7029 to recompute optabs.
7030 * function.h (function): Remove optabs field.
7031 * function.c (invoke_set_current_function_hook): Call
7032 init_tree_optimization_optabs. Use the result to initialize
7033 this_fn_optabs.
7034
b7a78683
AH
70352013-02-27 Aldy Hernandez <aldyh@redhat.com>
7036
7037 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7038 if GTMA_HAS_NO_INSTRUMENTATION.
7039 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7040 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7041 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7042 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7043 GTMA_HAS_NO_INSTRUMENTATION.
7044
6384c29b
JJ
70452013-03-08 Jakub Jelinek <jakub@redhat.com>
7046
7047 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7048 libasan_preinit.o.
7049
ecd4f20a
MP
70502013-03-08 Marek Polacek <polacek@redhat.com>
7051 Jakub Jelinek <jakub@redhat.com>
7052
7053 PR tree-optimization/56478
7054 * predict.c (is_comparison_with_loop_invariant_p): Change the
7055 type of loop_step to tree.
7056 (predict_loops): Adjust.
7057 (predict_iv_comparison): Perform the computations on double_ints.
7058
64366d35
RB
70592013-03-08 Richard Biener <rguenther@suse.de>
7060
7061 PR tree-optimization/56570
7062 * tree-cfg.c (verify_expr_location_1): Verify locations for
7063 DECL_DEBUG_EXPR.
7064 * tree-sra.c (create_access_replacement): Strip locations
7065 from DECL_DEBUG_EXPRs.
7066
a9d5a059
RB
70672013-03-08 Richard Biener <rguenther@suse.de>
7068
7069 * tree-inline.c (expand_call_inline): Do not associate
7070 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7071 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7072
b7aa4e9a
RB
70732013-03-08 Richard Biener <rguenther@suse.de>
7074
7075 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7076 or block changes with -Og. Fix for location / block encoding
7077 changes and PHI arguments with locations.
7078
c4c2f9fa
SB
70792013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7080
7081 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7082 for all counters.
7083 (struct output_info): Likewise.
7084 (register_overhead): Remove bad gcc_assert.
7085 (bitmap_find_bit): If there is only a single bitmap element, do not
7086 count a miss as a search.
7087 (print_statistics): Update for counter type changes.
7088 (dump_bitmap_statistics): Likewise. Print headers such that they
7089 are properly lined up with the printed counters.
7090
5bf6606a
JJ
70912013-03-07 Jakub Jelinek <jakub@redhat.com>
7092
7093 PR tree-optimization/56559
7094 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7095 check that it has only a single use.
7096
2c653d46
RB
70972013-03-07 Richard Biener <rguenther@suse.de>
7098
7099 * doc/invoke.texi (fwhole-program): Discourage use in combination
7100 with -flto.
7101
a72d8780
JJ
71022013-03-06 Jakub Jelinek <jakub@redhat.com>
7103
01a454df
JJ
7104 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7105
c1781047
JJ
7106 PR tree-optimization/56539
7107 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7108 instead of GSI_CONTINUE_LINKING as last argument to
7109 force_gimple_operand_gsi. Adjust function comment.
7110
9772c47a
JJ
7111 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7112 aarch64-cores.def.
7113
a72d8780
JJ
7114 PR middle-end/56548
7115 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7116 promoted mode, convert the result back to the original mode.
7117
fa5556de
RB
71182013-03-06 Richard Biener <rguenther@suse.de>
7119
7120 PR middle-end/56294
7121 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7122 (insert_updated_phi_nodes_compare_uids): New function.
7123 (update_ssa): Sort symbols_to_rename after UID before
7124 traversing it to insert PHI nodes.
7125
010403d1
RB
71262013-03-06 Richard Biener <rguenther@suse.de>
7127
7128 PR middle-end/50494
7129 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7130 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7131
7132 Revert
7133 2013-02-13 Richard Biener <rguenther@suse.de>
7134
7135 PR lto/50494
7136 * varasm.c (output_constant_def_1): Get the decl representing
7137 the constant as argument.
7138 (output_constant_def): Wrap output_constant_def_1.
7139 (make_decl_rtl): Use output_constant_def_1 with the decl
7140 representing the constant.
7141 (build_constant_desc): Optionally re-use a decl already
7142 representing the constant.
7143 (tree_output_constant_def): Adjust.
7144
3c27ce4c
JY
71452013-03-06 Joey Ye <joey.ye@arm.com>
7146
7147 PR lto/50293
7148 * gcc.c (convert_white_space): New function.
7149 (main): Handles white space in function name.
7150
8f6d1c86
OE
71512013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7152
7153 PR target/56529
7154 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7155 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7156 to SH_DIV_CALL_TABLE for TARGET_SH2.
7157 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7158 list.
7159 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7160 call-table options.
7161
798a209f
SA
71622013-03-05 Sterling Augustine <saugustine@google.com>
7163 Cary Coutant <ccoutant@google.com>
7164
7165 PR debug/55364
7166 * dwarf2out.c (resolve_addr): Don't call
7167 remove_loc_list_addr_table_entries a second time for the same
7168 expression.
7169
6cfa417f 71702013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 7171
6cfa417f
JJ
7172 PR debug/56510
7173 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7174 (avoid_complex_debug_insns): New function.
7175 (expand_debug_locations): Call it.
7176
7177 PR rtl-optimization/56484
7178 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7179 lifetimes of hard registers on small register class machines.
7180
71812013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7182
7183 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 7184 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 7185 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
7186 fast_interrupt.
7187 (microblaze_fast_interrupt_function_p): New function.
7188 (microblaze_is_interrupt_handler): Rename to
7189 microblaze_is_interrupt_variant and add fast_interrupt check.
7190 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7191 (save_restore_insns): Likewise.
7192 (compute_frame_size): Likewise.
7193 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7194 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
7195 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7196 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
7197 microblaze_is_interrupt_variant.
7198
731aefac
KT
71992013-03-05 Kai Tietz <ktietz@redhat.com>
7200
7201 * sdbout.c (sdbout_one_type): Switch to current function's section
7202 supporting cold/hot.
7203
a72d8780 72042013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
7205
7206 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7207 -mxl-reorder.
7208
334e71e8
JJ
72092013-03-05 Jakub Jelinek <jakub@redhat.com>
7210
0b50e654
JJ
7211 PR middle-end/56461
7212 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7213 if VALGRIND_GET_VBITS is defined, temporarily make object
7214 memory all defined, and restore previous valgrind addressability
7215 and definability afterwards. Free this_object at the end.
7216
4ccf8f43
JJ
7217 PR middle-end/56461
7218 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7219 right before calling lra_create_live_ranges, also call it
7220 when clearing live_p. Only call lra_clear_live_ranges
7221 at the end if live_p.
7222
334e71e8
JJ
7223 PR middle-end/56461
7224 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7225
9ca966ca
RB
72262013-03-05 Richard Biener <rguenther@suse.de>
7227
7228 PR tree-optimization/56521
7229 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7230 value-id.
7231
d273b176
SB
72322013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7233
7234 PR c++/55135
7235 * except.h (remove_unreachable_eh_regions): New prototype.
7236 * except.c (remove_eh_handler_splicer): New function, split out
7237 of remove_eh_handler.
7238 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7239 warning about running it on many EH regions one at a time.
7240 (remove_unreachable_eh_regions_worker): New function, walk the
7241 EH tree in depth-first order and remove non-marked regions.
7242 (remove_unreachable_eh_regions): New function.
7243 * tree-eh.c (mark_reachable_handlers): New function, split out
7244 from remove_unreachable_handlers.
7245 (remove_unreachable_handlers): Use mark_reachable_handlers and
7246 remove_unreachable_eh_regions.
7247 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7248 and remove_unreachable_eh_regions.
7249
5e7f1aef
RB
72502013-03-05 Richard Biener <rguenther@suse.de>
7251
7252 PR middle-end/56525
7253 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7254 not freeing them until the end.
7255
f276b762
AK
72562013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7257
7258 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7259
12a43ab8
RB
72602013-03-05 Richard Biener <rguenther@suse.de>
7261
7262 PR tree-optimization/56270
7263 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7264 of loads after scheduling an SLP instance.
7265
93675444
JJ
72662013-03-05 Jakub Jelinek <jakub@redhat.com>
7267
db4138e3
JJ
7268 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7269 tic6x.exp.
7270 (check_gcc_parallelize): Run guality.exp as a separate job from
7271 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7272 struct-layout-1.exp with stackalign.exp.
7273
dd3d1ec0
JJ
7274 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7275
b8d381a3
JJ
7276 PR middle-end/56461
7277 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7278 load_index sbitmap even if some bit in it isn't set.
7279
b4f9786b
JJ
7280 PR middle-end/56461
7281 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7282 (discover_iteration_bound_by_body_walk): Change queues to
7283 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7284 spelling in comment. Call safe_push on queues[bound_index] directly.
7285 Release queues[queue_index] in every iteration unconditionally.
7286 Release bounds vector.
7287
93675444
JJ
7288 PR middle-end/56461
7289 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7290 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7291 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7292 inner_phis vector.
7293
3e492e9c
RB
72942013-03-05 Richard Biener <rguenther@suse.de>
7295
7296 PR lto/56515
7297 * tree-inline.c (remap_blocks_to_null): New function.
7298 (expand_call_inline): When expanding a call stmt without
7299 an associated block inline remap all callee blocks to NULL.
7300
a5d1569a
JJ
73012013-03-05 Jakub Jelinek <jakub@redhat.com>
7302
86efb5cd
JJ
7303 PR rtl-optimization/56494
7304 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7305 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7306 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7307
85f5dbea
JJ
7308 PR middle-end/56461
7309 * sel-sched-ir.c (free_sched_pools): Release
7310 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7311 if succs_info_pool.max_top isn't -1.
7312
a5d1569a
JJ
7313 PR bootstrap/56509
7314 * opts.c (opts_obstack, opts_concat): Moved to...
7315 * opts-common.c (opts_obstack, opts_concat): ... here.
7316
4432aa6c
JJ
73172013-03-04 Jakub Jelinek <jakub@redhat.com>
7318
7319 PR middle-end/56461
7320 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7321
f3a1fb91
MJ
73222013-03-04 Martin Jambor <mjambor@suse.cz>
7323
7324 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7325 all appropriate places.
7326
22110e6c
EB
73272013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7328
7329 PR tree-optimization/56424
7330 * ipa-split.c (split_function): Do not set the RSO flag if result is
7331 not by reference and its type is a register type.
7332
a72d8780 73332013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 7334
88b97037 7335 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 7336 (microblaze_legitimate_pic_operand): Likewise
88b97037 7337 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
7338 new function microblaze_legitimate_pic_operand
7339 * config/microblaze/microblaze-protos.h
7340 (microblaze_legitimate_pic_operand): Declare.
7341
a72d8780 73422013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 7343
a72d8780 7344 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 7345 New predicate for supported rtx code types.
a72d8780 7346 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
7347 call_insn_simple_operand predicate.
7348
541d9ac8
JJ
73492013-03-04 Jakub Jelinek <jakub@redhat.com>
7350
5eb010bc
JJ
7351 PR middle-end/56461
7352 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7353 partitions.ordered_remove.
7354
30862efc
JJ
7355 PR middle-end/56461
7356 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7357 vec_oprnds0.create (1) for modifier == NONE.
7358
8930f723
JJ
7359 PR middle-end/56461
7360 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7361 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7362 vec_oprnds1 right before pushing anything to it for
7363 scalar_shift_arg.
7364
541d9ac8
JJ
7365 PR middle-end/56461
7366 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7367 set nbbs to 0 instead of having separate code path.
7368 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7369 instead of false as last argument if returning NULL.
7370
7aa7f2e3
SL
73712013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7372
7373 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7374 the attribute is now called "target" instead of "option".
7375 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7376 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7377 attribute/pragma name for TARGET_OPTION_VALID_P and
7378 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7379 * doc/tm.texi: Regenerated.
7380
8930f723 73812013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 7382
8930f723 7383 * config/microblaze/microblaze.c:
cb8a1637 7384 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
7385 * config/microblaze/microblaze.h: Add -mxl-reorder to
7386 DRIVER_SELF_SPECS.
7387 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7388 instructions emitted if TARGET_REORDER.
88b97037
UB
7389 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7390 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 7391 separately.
cb8a1637 7392
4dc1d68c
XDL
73932013-03-01 Xinliang David Li <davidxl@google.com>
7394
7395 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7396 walk length.
7397
689eaba3
JJ
73982013-03-01 Jakub Jelinek <jakub@redhat.com>
7399
9d676bf6
JJ
7400 PR middle-end/56461
7401 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7402 vector even when returning true. Fix up function comment formatting.
7403
caff7edf
JJ
7404 PR middle-end/56461
7405 * ira-build.c (ira_loop_nodes_count): New variable.
7406 (create_loop_tree_nodes): Initialize it.
7407 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7408
b6b9227d
JJ
7409 PR middle-end/56461
7410 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7411 method on dr_chain and result_chain.
7412 * tree-vect-stmts.c (vectorizable_store): Only call
7413 result_chain.create if j == 0.
7414
689eaba3
JJ
7415 PR middle-end/56461
7416 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7417 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7418 before overwriting it.
7419
40bf31ed
TB
74202013-03-01 Tobias Burnus <burnus@net-b.de>
7421
7422 * doc/extended.texi (C Extensions): Change order in @menu
7423 to match @node.
7424 (Other MIPS Built-in Functions): Move last MIPS entry before
7425 "picoChip Built-in Functions".
7426 (SH Built-in Functions): Move after RX Built-in Functions.
7427 * doc/gcc.texi (Introduction): Change order in @menu
7428 to match @node.
7429 * doc/md.texi (Constraints): Ditto.
7430 * gty.texi (Type Information): Ditto.
7431 (User-provided marking routines for template types): Make
7432 subsection.
7433 * doc/invoke.texi (AArch64 Options): Move before
7434 "Adapteva Epiphany Options".
7435
e664c61c
KS
74362013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7437 Jakub Jelinek <jakub@redhat.com>
7438
7439 PR sanitizer/56454
7440 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7441 no_address_safety_analysis attribute.
7442 * doc/extend.texi (no_address_safety_attribute): Rename to
7443 no_sanitize_address attribute, mention no_address_safety_analysis
7444 attribute as deprecated alias.
7445
37b5ec8f
JJ
74462013-02-28 Jakub Jelinek <jakub@redhat.com>
7447
7448 PR middle-end/56461
7449 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7450 type to vec<vec<tree> > *.
7451 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7452 to be vec<tree> instead of vec<tree> *, set vec_defs
7453 to vNULL and call vec_defs.create (number_of_vects), adjust other
7454 uses of vec_defs.
7455 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7456 vectorizable_condition): Adjust vect_get_slp_defs callers.
7457
ba96cdfb
JG
74582013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7459
7460 * config/aarch64/aarch64.c
7461 (aarch64_float_const_representable): Remove unused variable.
7462
6f549691
JG
74632013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7464
7465 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7466
af55e82d
JG
74672013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7468
7469 * config/aarch64/aarch64-builtins.c
7470 (aarch64_init_simd_builtins): Make static.
7471
1df3f464
JG
74722013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7473
7474 * config/aarch64/aarch64.c
7475 (aarch64_simd_make_constant): Make static.
7476
f8f42513
MJ
74772013-02-28 Martin Jambor <mjambor@suse.cz>
7478
7479 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7480 with no initialization to the RHS of debug statements.
7481
b48b3fc4
MJ
74822013-02-28 Martin Jambor <mjambor@suse.cz>
7483
7484 PR tree-optimization/56294
7485 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7486 Adjust dumping.
7487 (get_access_replacement): Do not call create_access_replacement.
7488 Assert a replacement exists.
7489 (get_repl_default_def_ssa_name): Create the replacement declaration
7490 itself.
7491
c3ae224c
RR
74922013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7493
7494 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7495 final_end_function.
7496
45fa0eef
MP
74972013-02-28 Marek Polacek <polacek@redhat.com>
7498
7499 PR rtl-optimization/56466
7500 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7501 if we're changing a loop.
7502 (peel_loops_completely): Likewise.
7503
502c067d
PC
75042013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7505
7506 PR c++/55813
7507 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7508
ff24afc8
GJL
75092013-02-28 Georg-Johann Lay <avr@gjlay.de>
7510
7511 PR target/56445
7512 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7513 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7514 INTX_FTYPE_FX, FX_FTYPE_INTX.
7515 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7516
c7b1fc1b
GJL
75172013-02-28 Georg-Johann Lay <avr@gjlay.de>
7518
7519 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7520 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7521 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7522 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7523 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7524 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7525 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7526 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7527 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7528 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7529 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7530 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7531 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7532 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7533 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7534 (avrxmega6): Increase max flash segments from 5 to 6.
7535 * config/avr/t-multilib: Regenerate.
7536 * config/avr/avr-tables.opt: Regenerate.
7537 * doc/avr-mmcu.texi: Regenerate.
7538
4a0e3cfe
GJL
75392013-02-28 Georg-Johann Lay <avr@gjlay.de>
7540
7541 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7542 (avr_device_to_arch): Rename to avr_device_to_ld.
7543 (avr_device_to_as): New prototype.
7544 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7545 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7546 * config/avr/driver-avr.c (avr_device_to_as): New.
7547 (avr_device_to_arch): Rename to avr_device_to_ld.
7548
97785e52
JJ
75492013-02-27 Jakub Jelinek <jakub@redhat.com>
7550
3f292312
JJ
7551 PR middle-end/56461
7552 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7553 method on dr_chain and result_chain.
7554
a344216b
JJ
7555 PR middle-end/56461
7556 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7557 pointer_set_destroy on not_executed_last_iteration.
7558
f121ad02 7559 PR middle-end/56461
88b97037 7560 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 7561
307f83a3
JJ
7562 PR middle-end/56461
7563 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7564 FOR_EACH_DEFINED_FUNCTION when freeing state.
7565
e19624ee
JJ
7566 PR middle-end/56461
7567 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7568 pool_free.
7569 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7570 overwriting it.
7571
90e709fd
JJ
7572 PR middle-end/56461
7573 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7574 known_aggs[i].items and release known_aggs vector.
7575
97785e52
JJ
7576 PR middle-end/56461
7577 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7578
75792013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 7580
97785e52
JJ
7581 * config/microblaze/microblaze.c (microblaze_emit_compare):
7582 Use xor for EQ/NE comparisions.
7583 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7584 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 7585
6fa5e0ed
JJ
75862013-02-27 Jakub Jelinek <jakub@redhat.com>
7587
7588 PR middle-end/56461
7589 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7590 vector.
7591 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7592 vec_safe_push, always update *slot.
7593 (redirect_edge_var_map_clear): Use vec_free.
7594 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7595 (free_var_map_entry): Use vec_free.
7596 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7597 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7598
436a956a
AB
75992013-02-27 Andrey Belevantsev <abel@ispras.ru>
7600
7601 PR middle-end/45472
436a956a
AB
7602 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7603 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
7604 Reorder tests for speculativeness in the logical and operator.
7605
f5c2caca
JJ
76062013-02-27 Jakub Jelinek <jakub@redhat.com>
7607
0fcb564b
JJ
7608 * incpath.c (add_standard_paths): Use reconcat instead of concat
7609 where appropriate and avoid leaking memory.
7610
dc357798
JJ
7611 * opts.h: Include obstack.h.
7612 (opts_concat): New prototype.
7613 (opts_obstack): New declaration.
7614 * opts.c (opts_concat): New function.
7615 (opts_obstack): New variable.
7616 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7617 (finish_options): Use opts_concat instead of concat
7618 and XOBNEWVEC instead of XNEWVEC.
7619 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7620 generate_option): Likewise.
7621 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7622 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7623
f5c2caca
JJ
7624 PR target/56455
7625 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7626 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7627
d0163673
JJ
76282013-02-26 Jakub Jelinek <jakub@redhat.com>
7629
7630 PR middle-end/56461
7631 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7632
b5ad2b8e
JR
76332013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7634
7635 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7636 (arm_block_move_unaligned_straight): Likewise.
7637 (arm_adjust_block_mem): Likewise.
7638
9b639e2c
JR
76392013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7640
7641 PR target/48901
7642 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7643 temp, cond and label.
7644 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7645
e13a0ccb
JR
7646 PR target/52500
7647 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7648 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7649
fbe4f171
JR
7650 PR target/52501
7651 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7652 of prologue/epilogue functions.
7653
ae006543
JR
7654 PR target/52550
7655 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7656 Remove unused variable cfa_offset.
7657 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7658
c81369fa
JR
7659 PR target/54639
7660 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7661 type promotion to unsigned.
7662
f8a8fea7
JR
7663 PR target/54640
7664 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7665 for HOST_WIDE_INT of 32 bit / same size as int.
7666 (arm_block_move_unaligned_straight): Likewise.
7667 (arm_adjust_block_mem): Likewise.
7668
f8be5169
JR
7669 PR target/54662
7670 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7671 ALL_CFLAGS.
7672
f1ad3354
MP
76732013-02-26 Marek Polacek <polacek@redhat.com>
7674
7675 PR tree-optimization/56426
88b97037 7676 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 7677
a6af0f42
RB
76782013-02-26 Richard Biener <rguenther@suse.de>
7679
7680 PR target/56444
7681 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7682 unused variable loops.
7683
aca43c6c
JJ
76842013-02-26 Jakub Jelinek <jakub@redhat.com>
7685
cecbe5d9
JJ
7686 PR tree-optimization/56448
7687 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7688 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7689 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7690 later operands of the references, or even first operand for
7691 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7692
aca43c6c
JJ
7693 PR tree-optimization/56443
7694 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7695 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7696 to type_for_mode langhook.
7697
53e2e141
MT
76982013-02-25 Matt Turner <mattst88@gmail.com>
7699
7700 * doc/invoke.texi: Document r4700.
7701
259ee451
RB
77022013-02-25 Richard Biener <rguenther@suse.de>
7703
7704 PR tree-optimization/56175
7705 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7706 split out from ...
7707 (simplify_bitwise_binary): ... here. Also guard the conversion
7708 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7709
6d65e8f1
CM
77102013-02-25 Catherine Moore <clm@codesourcery.com>
7711
7712 Revert:
7713 2013-02-24 Catherine Moore <clm@codesourcery.com>
7714 Maciej W. Rozycki <macro@codesourcery.com>
7715 Tom de Vries <tom@codesourcery.com>
a72d8780 7716 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
7717 Iain Sandoe <iain@codesourcery.com>
7718 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7719 Chao-ying Fu <fu@mips.com>
88b97037 7720
6d65e8f1 7721 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7722 Document new function attributes.
6d65e8f1
CM
7723 * doc/invoke.texi (minterlink-compressed, mmicromips,
7724 m14k, m14ke, m14kec): Document new options.
7725 (minterlink-mips16): Update documentation.
7726 * doc/md.texi (ZC, ZD): Document new constraints.
7727 * configure.ac (gcc_cv_as_micromips): Check if linker
7728 supports the .set micromips directive.
7729 * configure: Regenerate.
7730 * config.in: Regenerate.
7731 * config/mips/mips-tables.opt: Regenerate.
7732 * config/mips/micromips.md: New file.
7733 * constraints.md (ZC, AD): New constraints.
7734 * config/mips/predicates.md (movep_src_register): New predicate.
7735 (movep_src_operand): New predicate.
7736 (non_volatile_mem_operand): New predicate.
7737 * config/mips/mips.md (multimem): New type.
7738 (length): Differentiate between 17-bit and 18-bit branch offsets.
7739 (MOVEP1, MOVEP2): New mode iterator.
7740 (mov_<load>l): Use ZC constraint.
7741 (mov_<load>r): Likewise.
7742 (mov_<store>l): Likewise.
7743 (mov_<store>r): Likewise.
7744 (*branch_equality<mode>_inverted): Add microMIPS support.
7745 (*branch_equality<mode>): Likewise.
7746 (*jump_absolute): Likewise.
7747 (indirect_jump_<mode>): Likewise.
7748 (tablejump_<mode>): Likewise.
7749 (<optab>_internal): Likewise.
7750 (sibcall_internal): Likewise.
7751 (sibcall_value_internal): Likewise.
7752 (prefetch): Use constraint ZD.
7753 * config/mips/mips.opt (minterlink-compressed): New option.
7754 (minterlink-mips16): Now an alias for minterlink-compressed.
7755 (mmicromips): New option.
7756 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7757 (compare_and_swap_12): Likewise.
7758 (sync_add<mode>): Likewise.
7759 (sync_<optab>_12): Likewise.
7760 (sync_old_<optab>_12): Likewise.
7761 (sync_new_<optab>_12): Likewise.
7762 (sync_nand_12): Likewise.
7763 (sync_old_nand_12): Likewise.
7764 (sync_new_nand_12): Likewise.
7765 (sync_sub<mode>): Likewise.
7766 (sync_old_add<mode>): Likewise.
7767 (sync_old_sub<mode>): Likewise.
7768 (sync_new_add<mode>): Likewise.
7769 (sync_new_sub<mode>): Likewise.
7770 (sync_<optab><mode>): Likewise.
7771 (sync_old_<optab><mode>): Likewise.
7772 (sync_new_<optab><mode>): Likewise.
7773 (sync_nand<mode>): Likewise.
7774 (sync_old_nand<mode>): Likewise.
7775 (sync_new_nand<mode>): Likewise.
7776 (sync_lock_test_and_set<mode>): Likewise.
7777 (test_and_set_12): Likewise.
7778 (atomic_compare_and_swap<mode>): Likewise.
7779 (atomic_exchange<mode>_llsc): Likewise.
7780 (atomic_fetch_add<mode>_llsc): Likewise.
7781 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7782 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7783 (umips_save_restore_pattern_p): Likewise.
7784 (umips_load_store_pair_p): Likewise.
7785 (umips_output_load_store_pair): Likewise.
7786 (umips_movep_target_p): Likewise.
7787 (umips_12bit_offset_address_p): Likewise.
7788 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7789 (mips_base_mips16): Rename this...
7790 (mips_base_compression_flags): ...to this. Update all uses.
7791 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7792 (mips_mips16_decl_p): Delete.
7793 (mips_nomips16_decl_p): Delete.
7794 (mips_get_compress_on_flags): New function.
7795 (mips_get_compress_off_flags): New function.
7796 (mips_get_compress_mode): New function.
7797 (mips_get_compress_on_name): New function.
7798 (mips_get_compress_off_name): New function.
7799 (mips_insert_attributes): Support multiple compression types.
7800 (mips_merge_decl_attributes): Likewise.
7801 (umips_12bit_offset_address_p): New function.
7802 (mips_start_function_definition): Emit .set micromips directive.
7803 (mips_call_may_need_jalx_p): New function.
7804 (mips_function_ok_for_sibcall): Add microMIPS support.
7805 (mips_print_operand_punctuation): Support short delay slots and
7806 compact jumps.
7807 (umips_swm_mask, umips_swm_encoding): New.
7808 (umips_build_save_restore): New function.
7809 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7810 (was_mips16_p): Remove.
7811 (old_compression_mode): New.
7812 (mips_set_compression_mode): New function.
7813 (mips_set_current_function): Add microMIPS support.
7814 (mips_option_override): Likewise.
7815 (umips_save_restore_pattern_p): New function.
7816 (umips_output_save_restore): New function.
7817 (umips_load_store_pair_p_1): New function.
7818 (umips_load_store_pair_p): New function.
7819 (umips_output_load_store_pair_1): New function.
7820 (umips_output_load_store_pair): New function.
7821 (umips_movep_target_p) New function.
7822 (mips_prepare_pch_save): Add microMIPS support.
7823 * config/mips/mips.h (TARGET_COMPRESSION): New.
7824 (TARGET_CPU_CPP_BUILTINS): Update macro
7825 to use new compression flags and to support microMIPS.
7826 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7827 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7828 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7829 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7830 (ASM_SPEC): Support mmicromips and mno-micromips.
7831 (M16STORE_REG_P): New macro.
7832 (MIPS_CALL): Support TARGET_MICROMIPS.
7833 (MICROMIPS_J): New macro.
7834 (mips_base_mips16): Rename this...
7835 (mips_base_compression_flags): ...to this.
7836 (UMIPS_12BIT_OFFSET_P): New macro.
7837 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7838 (MULTILIB_DIRNAMES): Likewise.
7839
5e5df392
TV
78402013-02-25 Tom de Vries <tom@codesourcery.com>
7841
7842 PR rtl-optimization/56131
7843 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7844 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7845 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7846
3fdb53c1
TB
78472013-02-25 Tobias Burnus <burnus@net-b.de>
7848
7849 * doc/invoke.texi (-fsanitize=): Move from optimization
7850 to debugging options.
7851
ed358aea
AB
78522013-02-25 Andrey Belevantsev <abel@ispras.ru>
7853
7854 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7855
f45e9053
AB
78562013-02-25 Andrey Belevantsev <abel@ispras.ru>
7857 Alexander Monakov <amonakov@ispras.ru>
7858
7859 PR middle-end/56077
7860 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7861 flush pending lists also on non-jumps. Adjust comment.
7862
6941b508
CM
78632013-02-24 Catherine Moore <clm@codesourcery.com>
7864 Maciej W. Rozycki <macro@codesourcery.com>
7865 Tom de Vries <tom@codesourcery.com>
a72d8780 7866 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
7867 Iain Sandoe <iain@codesourcery.com>
7868 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7869 Chao-ying Fu <fu@mips.com>
6941b508
CM
7870
7871 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7872 Document new function attributes.
6941b508
CM
7873 * doc/invoke.texi (minterlink-compressed, mmicromips,
7874 m14k, m14ke, m14kec): Document new options.
7875 (minterlink-mips16): Update documentation.
7876 * doc/md.texi (ZC, ZD): Document new constraints.
7877 * configure.ac (gcc_cv_as_micromips): Check if linker
7878 supports the .set micromips directive.
7879 * configure: Regenerate.
7880 * config.in: Regenerate.
7881 * config/mips/mips-tables.opt: Regenerate.
7882 * config/mips/micromips.md: New file.
7883 * constraints.md (ZC, AD): New constraints.
7884 * config/mips/predicates.md (movep_src_register): New predicate.
7885 (movep_src_operand): New predicate.
7886 (non_volatile_mem_operand): New predicate.
7887 * config/mips/mips.md (multimem): New type.
7888 (length): Differentiate between 17-bit and 18-bit branch offsets.
7889 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 7890 (mov_<load>l): Use ZC constraint.
6941b508
CM
7891 (mov_<load>r): Likewise.
7892 (mov_<store>l): Likewise.
7893 (mov_<store>r): Likewise.
7894 (*branch_equality<mode>_inverted): Add microMIPS support.
7895 (*branch_equality<mode>): Likewise.
7896 (*jump_absolute): Likewise.
7897 (indirect_jump_<mode>): Likewise.
7898 (tablejump_<mode>): Likewise.
7899 (<optab>_internal): Likewise.
7900 (sibcall_internal): Likewise.
7901 (sibcall_value_internal): Likewise.
7902 (prefetch): Use constraint ZD.
7903 * config/mips/mips.opt (minterlink-compressed): New option.
7904 (minterlink-mips16): Now an alias for minterlink-compressed.
7905 (mmicromips): New option.
7906 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7907 (compare_and_swap_12): Likewise.
7908 (sync_add<mode>): Likewise.
7909 (sync_<optab>_12): Likewise.
7910 (sync_old_<optab>_12): Likewise.
7911 (sync_new_<optab>_12): Likewise.
7912 (sync_nand_12): Likewise.
7913 (sync_old_nand_12): Likewise.
7914 (sync_new_nand_12): Likewise.
7915 (sync_sub<mode>): Likewise.
7916 (sync_old_add<mode>): Likewise.
7917 (sync_old_sub<mode>): Likewise.
7918 (sync_new_add<mode>): Likewise.
7919 (sync_new_sub<mode>): Likewise.
7920 (sync_<optab><mode>): Likewise.
7921 (sync_old_<optab><mode>): Likewise.
7922 (sync_new_<optab><mode>): Likewise.
7923 (sync_nand<mode>): Likewise.
7924 (sync_old_nand<mode>): Likewise.
7925 (sync_new_nand<mode>): Likewise.
7926 (sync_lock_test_and_set<mode>): Likewise.
7927 (test_and_set_12): Likewise.
7928 (atomic_compare_and_swap<mode>): Likewise.
7929 (atomic_exchange<mode>_llsc): Likewise.
7930 (atomic_fetch_add<mode>_llsc): Likewise.
7931 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7932 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7933 (umips_save_restore_pattern_p): Likewise.
7934 (umips_load_store_pair_p): Likewise.
7935 (umips_output_load_store_pair): Likewise.
7936 (umips_movep_target_p): Likewise.
7937 (umips_12bit_offset_address_p): Likewise.
7938 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7939 (mips_base_mips16): Rename this...
7940 (mips_base_compression_flags): ...to this. Update all uses.
7941 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7942 (mips_mips16_decl_p): Delete.
7943 (mips_nomips16_decl_p): Delete.
3fdb53c1 7944 (mips_get_compress_on_flags): New function.
6941b508
CM
7945 (mips_get_compress_off_flags): New function.
7946 (mips_get_compress_mode): New function.
7947 (mips_get_compress_on_name): New function.
7948 (mips_get_compress_off_name): New function.
7949 (mips_insert_attributes): Support multiple compression types.
7950 (mips_merge_decl_attributes): Likewise.
7951 (umips_12bit_offset_address_p): New function.
7952 (mips_start_function_definition): Emit .set micromips directive.
7953 (mips_call_may_need_jalx_p): New function.
7954 (mips_function_ok_for_sibcall): Add microMIPS support.
7955 (mips_print_operand_punctuation): Support short delay slots and
7956 compact jumps.
7957 (umips_swm_mask, umips_swm_encoding): New.
7958 (umips_build_save_restore): New function.
7959 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7960 (was_mips16_p): Remove.
7961 (old_compression_mode): New.
7962 (mips_set_compression_mode): New function.
7963 (mips_set_current_function): Add microMIPS support.
7964 (mips_option_override): Likewise.
7965 (umips_save_restore_pattern_p): New function.
7966 (umips_output_save_restore): New function.
7967 (umips_load_store_pair_p_1): New function.
7968 (umips_load_store_pair_p): New function.
7969 (umips_output_load_store_pair_1): New function.
7970 (umips_output_load_store_pair): New function.
7971 (umips_movep_target_p) New function.
7972 (mips_prepare_pch_save): Add microMIPS support.
7973 * config/mips/mips.h (TARGET_COMPRESSION): New.
7974 (TARGET_CPU_CPP_BUILTINS): Update macro
7975 to use new compression flags and to support microMIPS.
7976 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7977 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7978 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7979 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7980 (ASM_SPEC): Support mmicromips and mno-micromips.
7981 (M16STORE_REG_P): New macro.
7982 (MIPS_CALL): Support TARGET_MICROMIPS.
7983 (MICROMIPS_J): New macro.
7984 (mips_base_mips16): Rename this...
7985 (mips_base_compression_flags): ...to this.
7986 (UMIPS_12BIT_OFFSET_P): New macro.
7987 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7988 (MULTILIB_DIRNAMES): Likewise.
7989
cdebbc6d
JJ
79902013-02-24 Jakub Jelinek <jakub@redhat.com>
7991
7992 PR target/52555
7993 * target-globals.c (save_target_globals): For init_reg_sets and
7994 target_reinit remporarily set this_fn_optabs to this_target_optabs.
7995
18c63565
JG
79962013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
7997
7998 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7999 * config/aarch64/t-aarch64
8000 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8001
2194f7a2
VM
80022013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8003
8004 PR inline-asm/56148
8005 * lra-constraints.c (process_alt_operands): Reload operand
8006 conflicting with earlier clobber only if no more other conflicting
8007 operands.
8008
7d613735
JJ
80092013-02-22 Jakub Jelinek <jakub@redhat.com>
8010
8011 PR sanitizer/56393
8012 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8013 if not linking a shared library.
8014
ac8d93a7
SL
80152013-02-22 Seth LaForge <sethml@google.com>
8016
8017 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8018
e0237780
GY
80192013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8020
3fdb53c1
TB
8021 * config/arm/arm.md (split for extendsidi): Update condition.
8022 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8023 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8024 (qhs_zextenddi_cstr): Likewise.
e0237780 8025
d7fde18c
JJ
80262013-02-21 Jakub Jelinek <jakub@redhat.com>
8027
be63b77d
JJ
8028 PR middle-end/56420
8029 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8030 avoid signed wrapping.
8031 (expand_mult): Handle properly multiplication by
8032 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8033 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8034 in the compiler if coeff is HOST_WIDE_INT_MIN.
8035 (expand_divmod): Don't make ext_op1 static, change it's type to
8036 uhwi. Avoid undefined behavior in -INTVAL (op1).
8037
d7fde18c
JJ
8038 PR rtl-optimization/50339
8039 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8040 field.
8041 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8042 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8043 into splitting_ashiftrt field.
8044 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8045 ASHIFTRT.
8046 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8047 choices.
8048
6aad4455
AH
80492013-02-20 Aldy Hernandez <aldyh@redhat.com>
8050
8051 PR middle-end/56108
8052 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8053 are sure to go irrevocable.
8054
38fe784d
HPN
80552013-02-21 Hans-Peter Nilsson <hp@axis.com>
8056
8057 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8058 scalars are valid operands.
8059
0fd44da3
MJ
80602013-02-21 Martin Jambor <mjambor@suse.cz>
8061
8062 PR tree-optimization/56310
8063 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8064 only matching indices and non-negative final offsets.
8065 (intersect_aggregates_with_edge): Pass src_idx to
8066 agg_replacements_to_vector. Pass src_idx insstead of index to
8067 intersect_with_agg_replacements.
8068
7a92038b
MJ
80692013-02-21 Martin Jambor <mjambor@suse.cz>
8070
8071 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8072 instead of hard-wired defaults.
8073
c0da9c37
MR
80742013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8075
8076 * doc/invoke.texi (MIPS Options): Update documentation of the
8077 floating-point multiply-accumulate instruction restrictions.
8078
d247ea0c 80792013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
8080
8081 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8082 asan_shadow_offset on x86_64 linux.
8083
22deefcb
RB
80842013-02-21 Richard Biener <rguenther@suse.de>
8085
8086 PR tree-optimization/56415
8087 Revert
8088 2013-02-11 Richard Biener <rguenther@suse.de>
8089
8090 PR tree-optimization/56273
8091 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8092 first VRP run.
8093
7bcc6e75
JJ
80942013-02-21 Jakub Jelinek <jakub@redhat.com>
8095
a0ad148f
JJ
8096 PR bootstrap/56258
8097 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8098 instead of @itemx.
8099
7bcc6e75
JJ
8100 PR inline-asm/56405
8101 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8102 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8103
a0a7b611
JH
81042013-02-20 Jan Hubicka <jh@suse.cz>
8105
8106 PR tree-optimization/56265
88b97037
UB
8107 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8108 when target is referenced for first time.
a0a7b611 8109
c0e50f72
RB
81102013-02-20 Richard Biener <rguenther@suse.de>
8111
8112 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8113 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8114 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8115 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8116 not return anything.
8117 (rename_ssa_copies): Do not remove unused locals.
8118 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 8119 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
8120 * passes.c (execute_function_todo): Do not schedule unused locals
8121 removal if cleanup_tree_cfg did something.
8122 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8123 about the number of removed locals.
8124
a52ca739
RB
81252013-02-20 Richard Biener <rguenther@suse.de>
8126
8127 PR tree-optimization/56398
88b97037 8128 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 8129
ec9c9d1b
MJ
81302013-02-20 Martin Jambor <mjambor@suse.cz>
8131
8132 PR tree-optimization/55334
8133 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8134 restricted pointers to arrays.
8135
e91c8ed6 81362013-02-20 Richard Biener <rguenther@suse.de>
88b97037 8137 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
8138
8139 PR tree-optimization/56396
8140 * tree-ssa-ccp.c (n_const_val): New static variable.
8141 (get_value): Return NULL for SSA names we don't have a lattice
8142 entry for.
8143 (ccp_initialize): Initialize n_const_val.
8144 * tree-ssa-copy.c (n_copy_of): New static variable.
8145 (init_copy_prop): Initialize n_copy_of.
8146 (get_value): Return NULL_TREE for SSA names we don't have a
8147 lattice entry for.
8148
3d916479
MJ
81492013-02-20 Martin Jambor <mjambor@suse.cz>
8150
8151 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8152
71a86758
RB
81532013-02-20 Richard Biener <rguenther@suse.de>
8154
8155 * genpreds.c (write_lookup_constraint): Do not compare first
8156 letter of the constraint again.
8157
79836a12
RB
81582013-02-20 Richard Biener <rguenther@suse.de>
8159
8160 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8161 and ceil_log2.
8162 (get_use_iv_cost): Terminate hashtable walk when coming across
8163 an empty entry.
8164
bbe4fb2c
IZ
81652013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8166
8167 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8168 reassociation for avx2 targets.
8169
a72d8780 81702012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 8171
c77f83d5
EI
8172 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8173 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 8174 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
8175 version and TARGET_PATTERN_COMPARE check
8176 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 8177
a72d8780 81782012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 8179
a72d8780 8180 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
8181 function before branching.
8182
242387fa
AB
81832012-02-19 Andrey Belevantsev <abel@ispras.ru>
8184
8185 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8186 DUMP_INSN_RTX_UID.
8187 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8188
b4979ab9
AB
81892012-02-19 Andrey Belevantsev <abel@ispras.ru>
8190
8191 PR middle-end/55889
b4979ab9
AB
8192 * sel-sched.c: Include ira.h.
8193 (implicit_clobber_conflict_p): New function.
8194 (moveup_expr): Use it.
88b97037 8195 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 8196
24d63016
RB
81972013-02-19 Richard Biener <rguenther@suse.de>
8198
8199 PR tree-optimization/56384
8200 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8201 (vn_hash_type): Split out from ...
8202 (vn_hash_constant_with_type): ... here.
8203 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8204 (vn_phi_eq): Compare types from vn_phi_s structure.
8205 (vn_phi_lookup): Populate vn_phi_s type.
8206 (vn_phi_insert): Likewise.
8207
a475fd3d
JJ
82082013-02-19 Jakub Jelinek <jakub@redhat.com>
8209
47cc28f5
JJ
8210 PR tree-optimization/56350
8211 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8212 if haven't found reduction or nested cycle operand, rather than
8213 asserting we must find it.
8214
a475fd3d
JJ
8215 PR tree-optimization/56381
8216 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8217 to fold_build3.
8218
82192013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8220 Jakub Jelinek <jakub@redhat.com>
8221
8222 PR target/52555
8223 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8224 (swap_optab_enable): Same.
8225 (init_all_optabs): Use argument instead of global.
88b97037 8226 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
8227 * expr.h (init_all_optabs): Add argument to prototype.
8228 (TREE_OPTIMIZATION_OPTABS): New.
8229 (save_optabs_if_changed): Protoize.
8230 * optabs.h: Declare this_fn_optabs.
8231 * optabs.c (save_optabs_if_changed): New.
8232 Declare this_fn_optabs.
8233 (init_optabs): Add argument to init_all_optabs() call.
8234 * function.c (invoke_set_current_function_hook): Handle per
8235 function optabs.
8236 * function.h (struct function): New field optabs.
8237 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8238 optimization_current_node has changed.
8239 * target-globals.h (save_target_globals_default_opts): Protoize.
8240 * target-globals.c (save_target_globals_default_opts): New.
8241
3f587ca3
JDA
82422013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8243
8244 PR target/56347
8245 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8246 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
8247
8248 PR target/56214
8249 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
8250 and HImode, require all displacements to be an integer multiple of
8251 their mode size.
ceaca33e
JDA
8252 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8253 only allow QImode and HImode when reload is in progress and strict is
8254 true. Likewise for symbolic addresses. Use base14_operand to check
8255 displacements in REG+BASE addresses.
8256
fe0b4796
RB
82572013-02-18 Richard Biener <rguenther@suse.de>
8258
8259 PR tree-optimization/56366
8260 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8261 handle sign-conversion of outer-loop initial induction value.
8262
6aaf596b
RB
82632013-02-18 Richard Biener <rguenther@suse.de>
8264
73db8ff1 8265 PR middle-end/56349
6aaf596b
RB
8266 * cfghooks.c (merge_blocks): If we merge a latch into another
8267 block adjust references to it.
8268 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8269 (verify_loop_structure): Verify that a recorded latch is in fact
8270 a latch.
8271
5e97dfb6
RB
82722013-02-18 Richard Biener <rguenther@suse.de>
8273
8274 PR tree-optimization/56321
8275 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8276 order SSA name release and virtual operand unlinking.
8277
825527e8
EI
82782013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8279
8280 * config/microblaze/microblaze.md (save_stack_block): Define.
8281 (restore_stack_block): Likewise.
8282
debd11d9
EI
82832013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8284
8285 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8286 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8287 * config/microblaze/microblaze.c (microblaze_option_override):
8288 Bail out early for PIC modes when target does not support PIC.
8289
8ec77be0
EI
82902013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8291
88b97037 8292 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
8293 Replace with a microblaze version.
8294 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 8295 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
8296 microblaze.
8297
b41288b3
JJ
82982013-02-16 Jakub Jelinek <jakub@redhat.com>
8299 Dodji Seketeli <dodji@redhat.com>
8300
8301 PR asan/56330
88b97037 8302 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
8303 (instrument_mem_region_access): Do not forget to always put
8304 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8305 0) statement, even for cases where either 'base' or 'base + len'
8306 are not instrumented -- because they have been previously
8307 instrumented. Simplify the logic by putting all the statements
8308 instrument 'base + len' inside a sequence, and then insert that
8309 sequence right before the current insertion point. Then, to
8310 instrument 'base + len', just get an iterator on that statement.
8311 And do not forget to update the pointer to iterator the function
8312 received as argument.
8313
47918951
VM
83142013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8315
8316 PR rtl-optimization/56348
8317 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8318
3fb7c699
SB
83192013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8320
8321 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8322 (clean_graph_dump_file): Pass base to start_graph_dump.
8323
576fe41a
RH
83242013-02-14 Richard Henderson <rth@redhat.com>
8325
8326 PR target/55941
8327 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8328
bb3accfa
SB
83292013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8330
8331 * collect2-aix.h: Define F_LOADONLY.
8332
03143140
RB
83332013-02-14 Richard Biener <rguenther@suse.de>
8334
8335 PR lto/50494
8336 * varasm.c (output_constant_def_1): Get the decl representing
8337 the constant as argument.
8338 (output_constant_def): Wrap output_constant_def_1.
8339 (make_decl_rtl): Use output_constant_def_1 with the decl
8340 representing the constant.
8341 (build_constant_desc): Optionally re-use a decl already
8342 representing the constant.
8343 (tree_output_constant_def): Adjust.
8344
8fb06726
DS
83452013-02-14 Dodji Seketeli <dodji@redhat.com>
8346
8347 Fix an asan crash
8348 * asan.c (instrument_builtin_call): Really put the length of the
8349 second source argument into src1_len.
8350
c4bfe8bf
JJ
83512013-02-13 Jakub Jelinek <jakub@redhat.com>
8352
8353 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8354 argument. If it is false, don't create edge from then_bb to
8355 fallthru_bb.
8356 (insert_if_then_before_iter): Pass true to it.
8357 (build_check_stmt): Pass false to it.
8358 (transform_statements): Flush hash table only on extended basic
8359 block boundaries, rather than at the beginning of every bb.
8360 Don't flush hash table on nonfreeing_call_p calls.
8361 * tree-flow.h (nonfreeing_call_p): New prototype.
8362 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8363
7afe2801
DM
83642013-02-13 David S. Miller <davem@davemloft.net>
8365
8366 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8367
70cc3288
VM
83682013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8369
8370 PR target/56184
8371 * ira.c (max_regno_before_ira): Move from ...
8372 (ira): ... here.
8373 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8374 vec_safe_length.
8375
6422242b
JJ
83762013-02-13 Jakub Jelinek <jakub@redhat.com>
8377
8378 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8379
976a81ee
RB
83802013-02-13 Richard Biener <rguenther@suse.de>
8381
8382 PR lto/56295
8383 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8384 globals in MEM_REFs.
8385
c1874a87
RB
83862013-02-13 Richard Biener <rguenther@suse.de>
8387
8388 * loop-init.c (loop_optimizer_init): Clear loop state when
8389 re-initializing preserved loops.
8390 * loop-unswitch.c (unswitch_single_loop): Return whether
8391 we unswitched the loop. Do not verify loop state here.
88b97037 8392 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 8393
b4ab7d34
KS
83942013-02-13 Kostya Serebryany <kcc@google.com>
8395
88b97037
UB
8396 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8397 on x86_64 linux.
b4ab7d34
KS
8398 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8399
bdcbe80c
DS
84002013-02-12 Dodji Seketeli <dodji@redhat.com>
8401
8402 Avoid instrumenting duplicated memory access in the same basic block
8403 * Makefile.in (asan.o): Add new dependency on hash-table.h
8404 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8405 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8406 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8407 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8408 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8409 (get_mem_ref_of_assignment): New functions.
8410 (get_mem_refs_of_builtin_call): Extract from
8411 instrument_builtin_call and tweak a little bit to make it fit with
8412 the new signature.
8413 (instrument_builtin_call): Use the new
8414 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8415 of is_gimple_builtin_call.
8416 (instrument_derefs, instrument_mem_region_access): Insert the
8417 instrumented memory reference into the hash table.
8418 (maybe_instrument_assignment): Renamed instrument_assignment into
8419 this, and change it to advance the iterator when instrumentation
8420 actually happened and return true in that case. This makes it
8421 homogeneous with maybe_instrument_assignment, and thus give a
8422 chance to callers to be more 'regular'.
8423 (transform_statements): Clear the memory reference hash table
8424 whenever we enter a new BB, when we cross a function call, or when
8425 we are done transforming statements. Use
8426 maybe_instrument_assignment instead of instrumentation. No more
8427 need to special case maybe_instrument_assignment and advance the
8428 iterator after calling it; it's now handled just like
8429 maybe_instrument_call. Update comment.
8430
4861a1f7
RB
84312013-02-13 Richard Biener <rguenther@suse.de>
8432
8433 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8434 Fix loop discovery code.
8435
1c86bd80
VM
84362013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8437
8438 PR inline-asm/56148
8439 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 8440 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
8441 the operand is not reloaded. Prefer to reload conflicting operand
8442 if earlyclobber and matching operands are the same.
8443
7cbda518
RB
84442013-02-12 Richard Biener <rguenther@suse.de>
8445
8446 PR lto/56297
8447 * lto-streamer-out.c (write_symbol): Do not output symbols
8448 for hard register variables.
8449
e68a4ef6
GJL
84502013-02-12 Georg-Johann Lay <avr@gjlay.de>
8451
8452 PR target/54222
8453 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8454 (umulsidi3_insn, mulsidi3_insn): New insns.
8455
a72d8780 84562013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
8457
8458 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8459 (struct tune_params): Add vec_costs field.
8460 * config/arm/arm.c (arm_builtin_vectorization_cost)
8461 (arm_add_stmt_cost): New functions.
8462 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8463 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8464 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8465 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8466 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8467 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8468 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8469
43320568
RB
84702013-02-12 Richard Biener <rguenther@suse.de>
8471
8472 PR lto/56295
8473 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8474 decls again if possible.
8475
a011aa39
RB
84762013-02-12 Richard Biener <rguenther@suse.de>
8477
8478 PR middle-end/56288
8479 * tree-ssa.c (verify_ssa_name): Fix check, move
8480 SSA_NAME_IN_FREE_LIST check up.
8481
6da26889
JJ
84822013-02-12 Jakub Jelinek <jakub@redhat.com>
8483 Steven Bosscher <steven@gcc.gnu.org>
8484
8485 PR rtl-optimization/56151
8486 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8487 equal to op0 or op1, and last_insn pattern is CODE operation
8488 with MEM dest and one of the operands matches that MEM.
8489
f80e0faf
ST
84902013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8491
8492 * doc/extend.texi: Document Function Multiversioning and "default"
8493 parameter string to target attribute.
8494 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8495 target attribute parameter is "default".
8496 (ix86_compare_version_priority): Remove checks for target attribute.
8497 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8498 Remove check for target attribute equal to NULL. Add assert.
8499 (ix86_generate_version_dispatcher_body): Change error to sorry.
8500
6c59ffd1
IS
85012013-02-11 Iain Sandoe <iain@codesourcery.com>
8502 Jack Howarth <howarth@bromo.med.uc.edu>
8503 Patrick Marlier <patrick.marlier@gmail.com>
8504
8505 PR libitm/55693
8506 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8507 define ENDFILE_SPEC as TM_DESTRUCTOR.
8508 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8509
a72d8780 85102013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
8511 Jack Howarth <howarth@bromo.med.uc.edu>
8512 Jakub Jelinek <jakub@redhat.com>
8513
8514 PR sanitizer/55617
8515 * config/darwin.c (cdtor_record): Rename ctor_record.
8516 (sort_cdtor_records): Rename sort_ctor_records.
8517 (finalize_dtors): New routine to sort destructors by
8518 priority before use in assemble_integer.
8519 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8520
b63fe007
UB
85212013-02-11 Uros Bizjak <ubizjak@gmail.com>
8522
8523 PR rtl-optimization/56275
8524 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8525 offset is non-negative and less than cmode size before
8526 calling simplify_subreg.
8527
8e89b5b5
RB
85282013-02-11 Richard Biener <rguenther@suse.de>
8529
8530 PR tree-optimization/56264
8531 * cfgloop.h (fix_loop_structure): Adjust prototype.
8532 * loop-init.c (fix_loop_structure): Return the number of
8533 newly discovered loops.
8534 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8535 are discovered, do a full loop-closed SSA rewrite.
8536
b4a4b56d
RB
85372013-02-11 Richard Biener <rguenther@suse.de>
8538
8539 PR tree-optimization/56273
8540 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8541 first VRP run.
8542 (check_array_ref): Fix missing newline in dumps.
8543 (search_for_addr_array): Likewise.
8544
0c885229
DE
85452013-02-09 David Edelsohn <dje.gcc@gmail.com>
8546
8547 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8548
59ac9a55
JJ
85492013-02-09 Jakub Jelinek <jakub@redhat.com>
8550
8551 PR target/56256
8552 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8553
25bb0bb5
VM
85542013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8555
8556 PR rtl-optimization/56246
0c885229 8557 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
8558 reload pseudo.
8559 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8560 constraints are satisfied.
8561
a698cc03
JL
85622013-02-08 Jeff Law <law@redhat.com>
8563
8564 PR debug/53948
8565 * emit-rtl.c (reg_is_parm_p): New function.
8566 * regs.h (reg_is_parm_p): New prototype.
8567 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8568 callee-clobbered registers.
8569
e1122ddd
MM
85702013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8571
8572 PR target/56043
8573 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8574 If there is no implicit builtin declaration, just return NULL.
8575
19c5f6e6
UB
85762013-02-08 Uros Bizjak <ubizjak@gmail.com>
8577
8578 * config/i386/sse.md (FMAMODEM): New mode iterator.
8579 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8580 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8581
2480f2ca 85822013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 8583
2480f2ca
UB
8584 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8585 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8586 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8587
85882013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8589
8590 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8591 (microblaze*-*-elf): Likewise.
8592 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8593 LINK_SPEC.
8594 * config/microblaze/microblaze-c.c: Add builtin defines for
8595 _LITTLE_ENDIAN and _BIG_ENDIAN.
8596 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8597 add to TARGET_DEFAULT flags.
76ef61fb 8598 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
8599 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8600 * config/microblaze/microblaze.md: Update extendsidi2 and
8601 movdi_internal instructions to use low-order / high-order reg
8602 print_operands.
8603 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8604 options and inversemask / mask of LITTLE_ENDIAN.
8605 * config/microblaze/t-microblaze: Expand multilib options to
8606 include mlittle-endian (le) and update exceptions patterns.
8607
600a5961
JJ
86082013-02-08 Jakub Jelinek <jakub@redhat.com>
8609
5df81313
JJ
8610 PR rtl-optimization/56195
8611 * lra-constraints.c (get_reload_reg): Don't reuse regs
8612 if they have smaller mode than requested, if they have
8613 wider mode than requested, try to return a SUBREG.
8614
600a5961
JJ
8615 PR tree-optimization/56250
8616 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8617 if type is unsigned and code isn't MULT_EXPR.
8618
ff544649
GJL
86192013-02-08 Georg-Johann Lay <avr@gjlay.de>
8620
8621 PR tree-optimization/56064
8622 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8623 bits according to mode.
8624 * fixed-value.h (fixed_from_double_int)
8625 (const_fixed_from_double_int): Adjust comments.
8626
e45cde98
RB
86272013-02-08 Richard Biener <rguenther@suse.de>
8628
8629 PR lto/56231
8630 * lto-streamer.h (struct data_in): Remove current_file, current_line
8631 and current_col members.
8632 * lto-streamer-out.c (lto_output_location): Stream changed bits
8633 en-block for efficiency.
8634 * lto-streamer-in.c (clear_line_info): Remove.
8635 (lto_input_location): Cache current file, line and column
8636 globally via local statics. Read changed bits en-block.
8637 (input_function): Do not call clear_line_info.
8638 (lto_read_body): Likewise.
8639 (lto_input_toplevel_asms): Likewise.
8640
c1ca73d8
MM
86412013-02-08 Michael Matz <matz@suse.de>
8642
8643 PR tree-optimization/52448
8644 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8645 (nt_call_phase): New static.
8646 (add_or_mark_expr): Only mark accesses with newer phase than any
8647 call seen.
8648 (nonfreeing_call_p): New.
8649 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8650 (nt_fini_block): Keep blocks marked as visited.
8651 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8652
57548aa2
RB
86532013-02-08 Richard Biener <rguenther@suse.de>
8654
8655 * ira.c (ira): Free broken dominator information.
8656
8e10366f
UB
86572013-02-08 Uros Bizjak <ubizjak@gmail.com>
8658
8659 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8660
f64fb0fa
MP
86612013-02-08 Marek Polacek <polacek@redhat.com>
8662
8e10366f 8663 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 8664
0375167b
RB
86652013-02-08 Richard Biener <rguenther@suse.de>
8666
8667 PR middle-end/56181
8668 * cfgloop.h (flow_loops_find): Adjust.
8669 (bb_loop_header_p): Declare.
8670 * cfgloop.c (bb_loop_header_p): New function split out from ...
8671 (flow_loops_find): ... here. Adjust function signature,
8672 support incremental loop structure update.
8673 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8674 * cfgloopmanip.c (fix_loop_structure): Move ...
8675 * loop-init.c (fix_loop_structure): ... here.
8676 (apply_loop_flags): Split out from ...
8677 (loop_optimizer_init): ... here.
8678 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8679 in incremental mode, only remove dead loops here.
8680
85d768f3
GJL
86812013-02-08 Georg-Johann Lay <avr@gjlay.de>
8682
8683 PR target/54222
8684 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8685 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8686 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8687 (*round<mode>3.libgcc): New insns for fixed-modes.
8688 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8689 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8690 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8691 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8692 implementations. Define to __builtin_avr_absFX,
8693 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8694 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8695 __builtin_avr_countlsFX, respectively.
8696 * config/avr/avr-c.c (target.h): Include it.
8697 (enum avr_builtin_id): New enum.
8698 (avr_resolve_overloaded_builtin): New static function.
8699 (avr_register_target_pragmas): Use it to set
8700 targetm.resolve_overloaded_builtin.
8701 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8702 tree nodes used by DEF_BUILTIN.
8703 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8704 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8705 <AVR_BUILTIN_xxBITS>: Same.
8706
661bc682
RB
87072013-02-08 Richard Biener <rguenther@suse.de>
8708
8709 * cfgloop.c (verify_loop_structure): Properly handle
8710 a loop exiting to another loop header.
8711 * ira-int.h (ira_loops): Remove.
8712 * ira.c (ira_loops): Remove.
8713 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8714 (do_reload): Use loop_optimizer_finalize.
8715 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8716 number_of_loops to access the loop tree.
8717 (more_one_region_p): Likewise.
8718 (finish_loop_tree_nodes): Likewise.
8719 (rebuild_regno_allocno_maps): Likewise.
8720 (mark_loops_for_removal): Likewise.
8721 (mark_all_loops_for_removal): Likewise.
8722 (remove_unnecessary_regions): Likewise.
8723 (ira_build): Likewise.
8724 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8725
0d5049b2
RB
87262013-02-08 Richard Biener <rguenther@suse.de>
8727
8728 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8729 * ipa-pure-const.c (analyze_function): Avoid calling
8730 mark_irreducible_loops twice.
8e10366f 8731 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 8732
499f32e8
DM
87332013-02-07 David S. Miller <davem@davemloft.net>
8734
8735 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8736 on 'reg'.
8737 * var-tracking.c (vt_add_function_parameter): Test the presence of
8738 HAVE_window_save properly and do not remap argument registers when
8739 we have a leaf function.
8740
6edc3e32
UB
87412013-02-07 Uros Bizjak <ubizjak@gmail.com>
8742
8743 PR bootstrap/56227
8744 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8745 instead of "ll".
8746 * config/i386/i386.c (ix86_print_operand): Ditto.
8747
5306401f
VM
87482013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8749
6edc3e32 8750 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 8751
027ece11
VM
87522013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8753
8754 PR rtl-optimization/56225
8755 * lra-constraints.c (process_alt_operands): Check that reload hard
8756 reg can hold value for strict_low_part.
8757
f980dfdb
JJ
87582013-02-07 Jakub Jelinek <jakub@redhat.com>
8759
8760 PR debug/56154
8761 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8762 dwarf2out_end_function.
8763 (in_first_function_p, maybe_at_text_label_p,
8764 first_loclabel_num_not_at_text_label): New variables.
8765 (dwarf2out_var_location): In the first function find out
6edc3e32 8766 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
8767 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8768 functions.
8769
73dd3123
EB
87702013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8771
8772 PR rtl-optimization/56178
8773 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8774 SUBREG of a register. Tidy up related block of code.
8775 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8776 note if the source is a register or a SUBREG of a register.
8777
e3936f47
JJ
87782013-02-07 Jakub Jelinek <jakub@redhat.com>
8779
8780 PR target/56228
8781 * config/rs6000/rs6000.md (ptrm): New mode attr.
8782 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8783 call_value_indirect_aix<pttrsize>,
8784 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8785 m in constraints.
8786
d96d674b
MH
87872013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8788
8789 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8790 if -bnortl. Convert to strcmp and strncmp.
8791
921f2dee
AM
87922013-02-07 Alan Modra <amodra@gmail.com>
8793
8794 PR target/54009
8795 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8796 addresses won't wrap when offsetting.
8797 (rs6000_secondary_reload): Provide secondary reloads needed for
8798 wrapping LO_SUM addresses.
8799
d09c7dba
TS
88002013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8801
8802 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8803 MACH, just __MACH__.
8804
a44bbd48
RB
88052013-02-06 Richard Biener <rguenther@suse.de>
8806
8807 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8808 instead of calling fix_loop_structure.
8809
6d840d99
JJ
88102013-02-06 Jakub Jelinek <jakub@redhat.com>
8811
8812 PR middle-end/56217
8813 * omp-low.c (use_pointer_for_field): Return false if
8814 lower_send_shared_vars doesn't generate any copy-out code.
8815
0f33baa9
TV
88162013-02-06 Tom de Vries <tom@codesourcery.com>
8817
8818 PR rtl-optimization/56131
8819 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8820 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8821 of the label is NULL. Add comment.
8822
11f1e3ab
JJ
88232013-02-05 Jakub Jelinek <jakub@redhat.com>
8824
31502f9f
JJ
8825 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8826
a74db9bd
JJ
8827 PR sanitizer/55374
8828 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8829 (STATIC_LIBTSAN_LIBS): Likewise.
8830 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8831 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8832 is defined, don't add anything else beyond that.
8833 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8834 (LINK_COMMAND_SPEC): Use them.
8835
11f1e3ab
JJ
8836 PR tree-optimization/56205
8837 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8838 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8839 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8840
14ac6aa2
RB
88412013-02-05 Richard Biener <rguenther@suse.de>
8842
8843 PR tree-optimization/53342
8844 PR tree-optimization/53185
8845 * tree-vectorizer.h (vect_check_strided_load): Remove.
8846 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8847 not disallow peeling for vectorized strided loads.
8848 (vect_check_strided_load): Make static and simplify.
8849 (vect_analyze_data_refs): Adjust.
8850 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8851 correctly when vectorizing strided loads.
8852
6f22445a
RB
88532013-02-05 Richard Biener <rguenther@suse.de>
8854
8855 * doc/install.texi: Refer to ISL, not PPL.
8856
39f9719e
JH
88572013-02-05 Jan Hubicka <jh@suse.cz>
8858
ec4224ac
JH
8859 PR tree-optimization/55789
8860 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8861
88622013-02-05 Jan Hubicka <jh@suse.cz>
8863
8864 PR tree-optimization/55789
39f9719e
JH
8865 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8866 the dead call anyway.
8867
956d3b33
EB
88682013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8869
8870 PR sanitizer/55374
8871 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8872
88732013-02-04 Alexander Potapenko <glider@google.com>
8874 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
8875 Jakub Jelinek <jakub@redhat.com>
8876
8877 PR sanitizer/55617
8878 * config/darwin.c (sort_ctor_records): Stabilized qsort
8879 on constructor priority by using original position.
8880 (finalize_ctors): New routine to sort constructors by
8881 priority before use in assemble_integer.
8882 (machopic_asm_out_constructor): Use finalize_ctors if needed.
8883
7ac3af38
JJ
88842013-02-04 Jakub Jelinek <jakub@redhat.com>
8885
8886 PR libstdc++/54314
8887 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8888 about visibility on artificial decls.
8889 * config/sol2.c (solaris_assemble_visibility): Likewise.
8890
152689dc
KT
88912013-02-04 Kai Tietz <ktietz@redhat.com>
8892
8893 PR target/56186
8894 * config/i386/i386.c (function_value_ms_64): Add additional valtype
8895 argument and improve checking of return-argument types for 16-byte
8896 modes.
8897 (ix86_function_value_1): Add additional valtype argument on call
8898 of function_value_64.
8899 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8900 handling infunction_value_64 function.
8901
2b5987b5
MGD
89022013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8903
7ac3af38 8904 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 8905
14597080
RB
89062013-02-04 Richard Biener <rguenther@suse.de>
8907
8908 PR tree-optimization/56188
8909 * tree-ssa-structalias.c (label_visit): Consider case with
8910 initially non-empty points-to set.
8911 (perform_var_substitution): Dump node mapping and clean up.
8912
ed73881e
RG
89132013-02-04 Richard Guenther <rguenther@suse.de>
8914
8915 PR lto/56168
8916 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8917 node prevail as last resort.
8918 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 8919 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 8920
139a0707
RB
89212013-02-04 Richard Biener <rguenther@suse.de>
8922
8923 PR tree-optimization/56113
8924 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8925 Merge into ...
8926 (equiv_class_lookup_or_add): ... this.
8927 (label_visit): Adjust and fix error in previous patch.
8928 (perform_var_substitution): Adjust.
8929
50fe8924
OE
89302013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8931
8932 * config/sh/divtab.c: Fix formatting and comments throughout the file.
8933 * config/sh/sh4-300.md: Likewise.
8934 * config/sh/sh4a.md: Likewise.
8935 * config/sh/constraints.md: Likewise.
8936 * config/sh/sh.md: Likewise.
8937 * config/sh/netbsd-elf.h: Likewise.
8938 * config/sh/predicates.md: Likewise.
8939 * config/sh/sh-protos.h: Likewise.
8940 * config/sh/ushmedia.h: Likewise.
8941 * config/sh/linux.h: Likewise.
8942 * config/sh/sh.c: Likewise.
8943 * config/sh/superh.h: Likewise.
8944 * config/sh/elf.h: Likewise.
8945 * config/sh/sh4.md: Likewise.
8946 * config/sh/sh.h: Likewise.
8947
1a04ac2b
JDA
89482013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8949
8950 * config/pa/constraints.md: Adjust unused letters. Change "T"
8951 constraint to match_test floating_point_store_memory_operand().
8952 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8953 (base14_operand): New.
8954 (floating_point_store_memory_operand): New.
8955 (integer_store_memory_operand): Revise to use base14_operand and
8956 reg_plus_base_memory_operand.
8957 (move_dest_operand): Allow symbolic_memory_operands.
8958 (symbolic_memory_operand): Check for LO_SOM.
8959 (symbolic_operand): Change default case to break.
8960 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8961 CONST_DOUBLE values to be reloaded by putting them into memory when
8962 the destination is a floating point register.
8963 (movdf): Remove code to handle CONST_DOUBLE.
8964 (movsf): Likewise.
8965 (reload_indf_r1): New.
8966 (reload_insf_r1): New.
8967 Consistently use "Q" and "T" constraints with integer and floating
8968 point move instructions, respectively.
8969 (movdi): Remove FAIL.
8970 Change predicate for source operand unamed DImode move from
8971 general_operand to move_src_operand.
8972 (umulsidi3): Change predicate for destination operand to
8973 register_operand.
8974 Likewise for similar unamed patterns.
8975 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8976 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8977 (hppa_legitimize_address): Simplify mask calculation.
8978 (pa_emit_move_sequence): Revised handling of secondary reloads from
8979 REG+D addresses for floating point loads and stores. Directly handle
8980 loading CONST0_RTX (mode) to a floating point register.
8981 (pa_secondary_reload): Handle reloading DF and SFmode constant values
8982 to floating point registers. Don't restrict secondary reloads to
8983 floating point registers to integer modes. Revise some comments and
8984 cleanup some code.
8985 (TARGET_LEGITIMATE_ADDRESS_P): Define.
8986 (pa_legitimate_address_p): New.
8987 (pa_legitimize_reload_address): New.
8988 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8989 (STRICT_REG_OK_FOR_BASE_P): New.
8990 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
8991 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8992
3bf65591
DE
89932013-02-03 David Edelsohn <dje.gcc@gmail.com>
8994 Andrew Dixie <andrewd@gentrack.com>
8995
8996 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8997 flag set.
8998
c0a8a3e6
RS
89992013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9000
9001 * expmed.c (extract_bit_field_1): Pass the full width of the
9002 structure to get_best_reg_extraction_insn.
9003
99113dff
DE
90042013-02-01 David Edelsohn <dje.gcc@gmail.com>
9005
9006 PR target/54601
9007 * configure.ac (use_cxa_atexit): Add AIX.
9008 * configure: Regenerate.
9009
9010 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9011
ddd84654
JJ
90122013-02-01 Jakub Jelinek <jakub@redhat.com>
9013
9014 PR debug/54793
9015 * final.c (need_profile_function): New variable.
9016 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9017 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9018 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9019 notes, targetm.asm_out.function_prologue doesn't emit anything,
9020 HAVE_prologue and profiler should be emitted before prologue,
9021 set need_profile_function instead of emitting it.
9022 (final_scan_insn): If need_profile_function, emit
9023 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9024 NOTE_INSN_FUNCTION_BEG note.
9025
90262013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9027
9028 * config/rs6000/rs6000.md (smulditi3): New.
9029 (umulditi3): New.
9030
ff2a9d88
RH
9031 * config/alpha/alpha.md (umulditi3): New.
9032
14d52b90
DE
90332013-02-01 David Edelsohn <dje.gcc@gmail.com>
9034
9035 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9036 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9037
8c7ca45c
RB
90382013-02-01 Richard Biener <rguenther@suse.de>
9039
9040 PR tree-optimization/56113
9041 * tree-ssa-structalias.c (label_visit): Reduce work for
9042 single-predecessor nodes.
9043
9f419393
EB
90442013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9045
9046 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9047 range isn't testing for zero.
9048
c5f4be84
SB
90492013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9050
9051 PR middle-end/56113
9052 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9053
dbdbd982
NC
90542013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9055 Nick Clifton <nickc@redhat.com>
9056
9057 * config/v850/constraints.md (Q): Define as a memory constraint.
9058 * config/v850/predicates.md (label_ref_operand): New predicate.
9059 (e3v5_shift_operand): New predicate.
9060 (ior_operator): New predicate.
9061 * config/v850/t-v850: Add e3v5 multilib.
9062 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9063 (v850_gen_movdi): Prototype.
9064 * config/v850/v850.c: Add support for e3v5 architecture.
9065 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9066 TARGET_V850E_UP.
9067 (construct_save_jarl): Add e3v5 long JARL support.
9068 (v850_adjust_insn_length): New function. Adjust length of call
9069 insns when using e3v5 instructions.
9070 (v850_gen_movdi): New function: Generate instructions to move a
9071 DImode value.
9072 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9073 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9074 (TARGET_USE_FPU): Enable for e3v5.
9075 (CONST_OK_FOR_W): New macro.
9076 (ADJUST_INSN_LENGTH): Define.
9077 * config/v850/v850.md (UNSPEC_LOOP): Define.
9078 (attr cpu): Add v850e3v5.
9079 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9080 (movdi): New pattern.
9081 (movdi_internal): New pattern.
9082 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9083 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9084 (cstoresf4): Likewise.
9085 (cstoredf4): Likewise.
9086 (insv): New pattern.
9087 (rotlso3_a): New pattern.
9088 (rotlsi3_b): New pattern
9089 (rotlsi3_v850e3v5): New pattern.
9090 (doloop_begin): New pattern.
9091 (fix_loop_counter): New pattern.
9092 (doloop_end): New pattern.
9093 (branch_normal): Add e3v5 long branch support.
9094 (branch_invert): Likewise.
9095 (branch_z_normal): Likewise.
9096 (branch_z_invert): Likewise.
9097 (branch_nz_normal): Likewise.
9098 (branch_nz_invert): Likewise.
9099 (call_internal_short): Add e3v5 register-indirect JARL support.
9100 (call_internal_long): Likewise.
9101 (call_value_internal_short): Likewise.
9102 (call_value_internal_long): Likewise.
9103 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9104 (mloop): New option.
9105 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 9106 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 9107
73861a41
PK
91082013-01-31 Paul Koning <ni1d@arrl.net>
9109
9110 PR debug/55059
9111 PR debug/54508
9112 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9113 children if parent is a class.
9114 (prune_unused_types_prune): Don't add DW_AT_declaration.
9115
e44978dc
RB
91162013-01-31 Richard Biener <rguenther@suse.de>
9117
9118 PR tree-optimization/56157
9119 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9120 match up operand with SLP child.
9121
90b10dec
JM
91222013-01-31 Jason Merrill <jason@redhat.com>
9123
04d2dadd 9124 PR debug/54410
90b10dec
JM
9125 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9126 parameters the first time.
9127 (gen_scheduled_generic_parms_dies): Check completeness here.
9128
6e616110
RB
91292013-01-31 Richard Biener <rguenther@suse.de>
9130
9131 PR middle-end/53073
9132 * common.opt (faggressive-loop-optimizations): New flag,
9133 enabled by default.
9134 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9135 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9136 infer_loop_bounds_from_undefined by it.
9137
636f59cf
RB
91382013-01-31 Richard Biener <rguenther@suse.de>
9139
9140 PR tree-optimization/56150
9141 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9142 visit virtual operands.
9143 (find_uses_to_rename_bb): Likewise.
9144
91452013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
9146
9147 PR tree-optimization/56150
9148 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9149 mixed store non-store stmts.
9150
32887460
JJ
91512013-01-30 Jakub Jelinek <jakub@redhat.com>
9152
e60e09a0
JJ
9153 PR sanitizer/55374
9154 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9155 LIBASAN_EARLY_SPEC is defined.
9156 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9157 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9158 before %o.
9159 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9160
32887460
JJ
9161 PR c++/55742
9162 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9163 invalid args instead of ICEing on it.
9164 (ix86_valid_target_attribute_tree): Return error_mark_node if
9165 ix86_valid_target_attribute_inner_p failed.
9166 (ix86_valid_target_attribute_p): Return false only if
9167 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9168 target("default") attribute.
9169 (sorted_attr_string): Change argument from const char * to tree,
9170 merge in all target attribute arguments rather than just one.
9171 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9172 instead of free. Avoid using strcat.
9173 (ix86_mangle_function_version_assembler_name): Mangle
9174 target("default") as if no target attribute is present. Adjust
9175 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9176 instead of xmalloc and XDELETEVEC instead of free.
9177 (ix86_function_versions): Don't return true if one of the decls
9178 doesn't have target attribute. If they don't and one of the decls
9179 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9180 sorted_attr_string caller. Use XDELETEVEC instead of free.
9181 (ix86_supports_function_versions): Remove.
9182 (make_name): Fix up formatting.
9183 (make_dispatcher_decl): Remove resolver_name and its initialization.
9184 Avoid leaking memory.
9185 (is_function_default_version): Return true if there is
9186 target("default") attribute rather than no target attribute at all.
9187 (make_resolver_func): Avoid leaking memory.
9188 (ix86_generate_version_dispatcher_body): Likewise.
9189 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9190 * target.def (supports_function_versions): Remove.
9191 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9192 * doc/tm.texi: Regenerated.
9193
73cca0cc
VM
91942013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9195
9196 PR rtl-optimization/56144
9197 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9198 for values with side effects.
9199
11452e7b
RB
92002013-01-30 Richard Biener <rguenther@suse.de>
9201
9202 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9203 (sparseset_pop): Likewise.
9204 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9205 to be able to use quick_push in the worker loop.
9206
01cb1ef5
MP
92072013-01-30 Marek Polacek <polacek@redhat.com>
9208
9209 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9210
e892936e
RB
92112013-01-30 Richard Biener <rguenther@suse.de>
9212
9213 PR lto/56147
6edc3e32 9214 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 9215
cc06c01d
GJL
92162013-01-30 Georg-Johann Lay <avr@gjlay.de>
9217
9218 PR tree-optimization/56064
9219 * fixed-value.c (fixed_from_double_int): New function.
9220 * fixed-value.h (fixed_from_double_int): New prototype.
9221 (const_fixed_from_double_int): New static inline function.
9222 * fold-const.c (native_interpret_fixed): New static function.
9223 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9224 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9225 (native_encode_fixed): New static function.
9226 (native_encode_expr) <FIXED_CST>: Use it.
9227 (native_interpret_int): Move double_int worker code to...
9228 * double-int.c (double_int::from_buffer): ...this new static method.
9229 * double-int.h (double_int::from_buffer): Prototype it.
9230
d394a308
RB
92312013-01-30 Richard Biener <rguenther@suse.de>
9232
9233 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9234 New pointer-map and obstack.
9235 (init_alias_vars): Allocate pointer-map and obstack.
9236 (delete_points_to_sets): Free them.
9237 (find_what_var_points_to): Cache result.
9238 (find_what_p_points_to): Adjust for changed interface of
9239 find_what_var_points_to.
9240 (compute_points_to_sets): Likewise.
9241 (ipa_pta_execute): Likewise.
9242
20804d96
RO
92432013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9244
9245 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9246 * configure: Regenerate.
9247 * config.in: Regenerate.
9248 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9249 #nobits/#progbits if supported.
9250
a7ad88a2
OE
92512013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9252
9253 PR target/56121
9254 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9255 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9256 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9257
7af79f92
GY
92582013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9259
91bfca59
OE
9260 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9261 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 9262
753bcf7b
GY
92632013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9264
91bfca59
OE
9265 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9266 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 9267
8cbc2ea8
GY
92682013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9269
91bfca59
OE
9270 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9271 declaration.
9272 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9273 * config/arm/cortex-a7.md: New bypasses using
9274 arm_mac_accumulator_is_result.
8cbc2ea8 9275
697a3325
GY
92762013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9277
91bfca59 9278 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 9279 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
9280 (cortex_a7_fpfmad): New reservation.
9281 (cortex_a7_fpmacs): Use ffmas and update required units.
9282 (cortex_a7_fpmuld): Update required units and latency.
9283 (cortex_a7_fpmacd): Likewise.
9284 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9285 (cortex_a7_neon). Likewise.
9286 (bypass) Update participating units.
697a3325 9287
29637783
GY
92882013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9289
91bfca59
OE
9290 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9291 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9292 from fmac to ffma.
9293 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9294 (vfp_fmul): Use ffmad.
9295 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9296 (cortex_r4_fmacd): Use ffmad.
9297 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9298 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9299 (cortex_a9_fmacd): Use ffmad.
9300 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9301 (cortex_a8_vfp_macd): Use ffmad.
9302 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9303 (cortex_a5_fpmacd): Use ffmad.
9304 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9305 (cortex_a15_vfp_macd): Use ffmad.
9306 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 9307
2ee8a2d5
JM
93082013-01-29 Jason Merrill <jason@redhat.com>
9309
9310 PR libstdc++/54314
9311 * varasm.c (default_assemble_visibility): Don't warn about
9312 visibility on artificial decls.
9313
78d087bc
RB
93142013-01-29 Richard Biener <rguenther@suse.de>
9315
9316 PR tree-optimization/56113
9317 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9318 the bitmap leader.
9319 (label_visit): Free duplicate bitmaps and record the leader instead.
9320 (perform_var_substitution): Adjust.
9321
83ba4d6f
RB
93222013-01-29 Richard Biener <rguenther@suse.de>
9323
9324 PR tree-optimization/55270
9325 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9326 the CFG, schedule loops for fixup.
9327
66dfe13f
NC
93282013-01-29 Nick Clifton <nickc@redhat.com>
9329
9330 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9331 SP_REG.
9332
5a579c3b
LE
93332013-01-28 Leif Ekblad <leif@rdos.net>
9334
9335 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9336 * config/i386/i386.h (TARGET_RDOS): New macro.
9337 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9338 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9339 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9340 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9341 DEFAULT_LARGE_SECTION_THRESHOLD.
9342 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9343 * config/i386/rdos.h: New file.
9344 * config/i386/rdos64.h: New file.
9345
51e44392
BS
93462013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9347
9348 PR other/54814
9349 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9350 TEST_HARD_REG_BIT.
9351
db1fb332
JJ
93522013-01-28 Jakub Jelinek <jakub@redhat.com>
9353
9354 PR rtl-optimization/56117
9355 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9356 call cselib_lookup_from_insn on the MEM before calling
9357 add_insn_mem_dependence.
9358
16917761
RB
93592013-01-28 Richard Biener <rguenther@suse.de>
9360
9361 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9362 to a stmt that didn't have one.
9363 (copy_phis_for_bb): Likewise for PHI arguments.
9364 (copy_debug_stmt): Likewise for debug stmts.
9365
b9fc0497
RB
93662013-01-28 Richard Biener <rguenther@suse.de>
9367
9368 PR tree-optimization/56034
6edc3e32 9369 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
9370 (partition_builtin_p): Adjust.
9371 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9372 it is the last partition.
9373 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9374 up the vertex for the definition.
9375 (classify_partition): Classify whether a partition is a
9376 PKIND_REDUCTION, thus has uses outside of the loop.
9377 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9378 Merge all PKIND_REDUCTION partitions into the last partition.
9379 (tree_loop_distribution): Seed partitions from reductions as well.
9380
aa710d25
JJ
93812013-01-28 Jakub Jelinek <jakub@redhat.com>
9382
0bfbca58
JJ
9383 PR tree-optimization/56125
9384 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9385 pow(x,c) into sqrt(x) * powi(x, n/2) or
9386 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9387 optimizing for size.
9388 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9389 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9390 integer.
9391
aa710d25
JJ
9392 PR tree-optimization/56094
9393 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9394 to UNKNOWN_LOCATION while gimplifying expr.
9395
77dc5297
UB
93962013-01-27 Uros Bizjak <ubizjak@gmail.com>
9397
9398 PR target/56114
9399 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9400 operand 0 in movabs insn template for -masm=intel asm alternative.
9401 (*movabs<mode>_2): Ditto for operand 1.
9402
0bfbca58 94032013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
9404
9405 PR target/54663
9406 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9407 of microblaze-c.o
9408
0bfbca58 94092013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
9410
9411 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9412 tm_file.
9413
0bfbca58 94142013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
9415
9416 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9417 Undef to avoid warning.
9418
478f60f9
MH
94192013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9420
9421 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9422 * configure: Regenerate.
9423
d7fa6ee2
JJ
94242013-01-25 Jakub Jelinek <jakub@redhat.com>
9425
9426 PR tree-optimization/56098
9427 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9428 for stmts with volatile ops.
9429 (cond_store_replacement): Don't optimize if assign has volatile ops.
9430 (cond_if_else_store_replacement_1): Don't optimize if either
9431 then_assign or else_assign have volatile ops.
9432 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9433 volatile ops.
9434
f8fe87bd
GJL
94352013-01-25 Georg-Johann Lay <avr@gjlay.de>
9436
9437 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9438
28398d0d
GJL
94392013-01-25 Georg-Johann Lay <avr@gjlay.de>
9440
9441 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9442 missing ':' in asm example.
9443
b7d7d917
TB
94442013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9445
9446 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9447 entries into lane and laneq entries.
77dc5297
UB
9448 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9449 Remove AdvSIMD scalar modes.
b7d7d917
TB
9450 (aarch64_sq<r>dmulh_laneq<mode>): New.
9451 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9452 modes.
9453 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9454 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9455 * config/aarch64/iterators.md (VCOND): New.
9456 (VCONQ): New.
9457
556f9906
GJL
94582013-01-25 Georg-Johann Lay <avr@gjlay.de>
9459
9460 PR target/54222
9461 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9462 Add NULL LIBNAME argument to existing definitions.
9463 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9464 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9465 * config/avr/avr.c (DEF_BUILTIN): Same.
9466 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9467 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9468 implementation is available (DECL_ASSEMBLER_NAME is set).
9469 (avr_fold_absfx): New static function.
9470 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9471 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9472 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9473 AVR_BUILTIN_ABSLLK.
9474 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9475 (abshk, absk, abslk, absllk): Provide as static inline functions.
9476
1f546bbb
MP
94772013-01-25 Marek Polacek <polacek@redhat.com>
9478
9479 PR tree-optimization/56035
9480 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9481
7e184bd7
UB
94822012-01-24 Uros Bizjak <ubizjak@gmail.com>
9483
9484 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9485 (*movtf_internal_rex64): Add (!o,C) alternative
9486 (*movxf_internal_rex64): Ditto.
9487 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9488
f5ba49ac
SM
94892013-01-24 Shenghou Ma <minux.ma@gmail.com>
9490
9491 * doc/invoke.texi: fix typo.
9492 * doc/objc.texi: fix typo.
9493
a6343728
RS
94942013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9495
9496 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9497 for the first two alternatives.
9498
cd030c07
DN
94992013-01-24 Diego Novillo <dnovillo@google.com>
9500
77dc5297 9501 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
9502 (ggc-zone.o): Remove.
9503 * configure.ac: Remove option --with-gc.
9504 * configure: Re-generate.
9505 * doc/install.texi: Remove documentation for --with-gc.
9506 * gengtype.c (write_enum_defn): Remove. Update all users.
9507 (write_Types_process_field): Remove generation of gt_e_* argument.
9508 (output_type_enum): Remove. Update all users.
9509 (write_enum_defn): Remove. Update all users.
9510 (enum alloc_zone): Remove. Update all users.
77dc5297 9511 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
9512 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9513 Update all callers.
9514 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 9515 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
9516 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9517 Update all users.
aaf1e810 9518 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
9519 (struct alloc_zone): Remove.
9520 (ggc_internal_alloc_zone_stat): Remove.
9521 (ggc_internal_cleared_alloc_zone_stat): Remove.
9522 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
9523 (ggc_pch_count_object): Remove last argument. Update all users.
9524 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
9525 (struct alloc_zone): Remove.
9526 * ggc-zone.c: Remove.
77dc5297 9527 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
9528 (struct alloc_zone): Remove.
9529 (ggc_alloc_typed_stat): Remove.
9530 (ggc_alloc_typed): Remove.
9531 (ggc_splay_alloc): Remove first argument.
9532 (rtl_zone): Remove. Update all users.
9533 (tree_zone): Remove. Update all users.
9534 (tree_id_zone): Remove. Update all users.
9535 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 9536 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 9537 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 9538 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 9539
a861ffa4
GJL
95402013-01-24 Georg-Johann Lay <avr@gjlay.de>
9541
9542 * config/avr/avr.c (avr_out_fract): Make register numbers that
9543 might be outside of source operand signed.
9544
593c0ddd
UB
95452013-01-24 Uros Bizjak <ubizjak@gmail.com>
9546
9547 * config/i386/constraints.md (Yf): New constraint.
9548 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9549 of f constraint to conditionaly disable x87 register preferences.
9550 (*movdf_internal): Ditto.
9551 (*movsf_internal): Ditto.
9552
e86c0101
SB
95532013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9554
9555 PR inline-asm/55934
9556 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9557 that have operands with impossible constraints.
9558 Add a FIXME for a speed-up opportunity.
9559 * lra-constraints.c (process_alt_operands): Verify that a class
9560 selected from constraints on asms is valid for the operand mode.
9561 (curr_insn_transform): Remove incorrect comment.
9562
f6fee35f
DE
95632013-01-23 David Edelsohn <dje.gcc@gmail.com>
9564
9565 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9566 TOC operand is a valid symbol ref in the constant pool.
9567
95682013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 9569
aaf1e810 9570 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 9571
dc62d7d1
GJL
95722013-01-23 Georg-Johann Lay <avr@gjlay.de>
9573
9574 PR target/54222
9575 * config/avr/stdfix.h: New file.
9576 * t-avr (stdfix-gcc.h): New rule to build it.
9577 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9578
2660d12d
KS
95792013-01-23 Kostya Serebryany <kcc@google.com>
9580
77dc5297
UB
9581 * config/darwin.h: remove dependency on
9582 CoreFoundation (asan on Mac OS).
2660d12d 9583
a70418fc
JJ
95842013-01-23 Jakub Jelinek <jakub@redhat.com>
9585
9586 PR target/49069
9587 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9588 instead of cmpdi_operand for first comparison operand.
9589 Don't assert that comparison operands aren't both constants.
9590
47876a2a
JW
95912013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9592
9593 * doc/install.texi (Downloading the Source): Update references to
9594 downloading separate components.
9595
95962013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
9597
9598 * doc/extend.texi (__int128): Improve grammar.
9599
47876a2a 96002013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
9601
9602 PR target/56028
9603 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9604 alternative to (o,r).
9605 (*movdi_internal_rex64): Remove (!o,n) alternative.
9606 (DImode immediate->memory splitter): Remove.
9607 (DImode immediate->memory peephole2): Remove.
9608 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9609 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9610 alternative to (!o,*r).
9611 (*movtf_internal_sse): New pattern.
9612 (*movxf_internal_rex64): New pattern.
9613 (*movxf_internal): Disable for TARGET_64BIT.
9614 (*movdf_internal_rex64): Remove (!o,F) alternative.
9615
3a984f10
JJ
96162013-01-22 Jakub Jelinek <jakub@redhat.com>
9617
502498d5
JJ
9618 PR middle-end/56074
9619 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9620 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9621 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9622 stmt locations where LOCATION_LOCUS of the stmt location is
9623 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9624
3a984f10
JJ
9625 PR target/55686
9626 * config/i386/i386.md (UNSPEC_STOS): New.
9627 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9628 *strsetqi_1): Add UNSPEC_STOS.
9629
fa817f7f
PC
96302013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9631
9632 PR c++/56067
9633 * doc/invoke.texi: Remove left over -Wsynth example.
9634
8f498c1b
JJ
96352013-01-21 Jakub Jelinek <jakub@redhat.com>
9636
9637 PR tree-optimization/56051
9638 * fold-const.c (fold_binary_loc): Don't fold
9639 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9640 a narrowing conversion, or widening conversion from signed
9641 to unsigned.
9642
47876a2a 96432013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
9644
9645 PR rtl-optimization/56023
9646 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9647 dependent on debug instruction.
9648
5b9db1bc
MJ
96492013-01-21 Martin Jambor <mjambor@suse.cz>
9650
9651 PR middle-end/56022
9652 * function.c (allocate_struct_function): Call
9653 invoke_set_current_function_hook earlier.
9654
e8bb7d68
JJ
96552013-01-21 Jakub Jelinek <jakub@redhat.com>
9656
9657 * reload1.c (init_reload): Only initialize reload_obstack
9658 during the first call.
9659
616a4e32
MP
96602013-01-21 Marek Polacek <polacek@redhat.com>
9661
9662 * cfgloop.c (verify_loop_structure): Fix up grammar.
9663
4401981b
YHH
96642013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9665
9666 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9667 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9668
8e87740b
RR
96692013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9670
9671 PR target/56058
9672 * config/arm/marvell-pj4.md: Update copyright year.
9673 Fix up use of alu to alu_reg and simple_alu_imm.
9674
47876a2a 96752013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
9676
9677 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9678
89d56d79
VM
96792013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9680
9681 PR target/55433
9682 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 9683 insn for secondary memory move when memory mode should be different.
89d56d79 9684
fe603553
JDA
96852013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9686
9687 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9688 atomic_storedi_1): New patterns.
9689
01284895
VK
96902013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9691
9692 btver2 pipeline descriptions.
9693 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9694 descriptions.
9695 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 9696 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
9697 type attributes.
9698 * config/i386/btver2.md: New file describing btver2 pipelines.
9699
5630e3e1
JL
97002013-01-19 Andrew Pinski <apinski@cavium.com>
9701
9702 PR tree-optimization/52631
9703 * tree-ssa-sccvn (visit_use): Before looking up the original
9704 statement, try looking up the simplified expression.
9705
650ae806
AG
97062013-01-19 Anthony Green <green@moxielogic.com>
9707
9708 * config/moxie/moxie.c (moxie_expand_prologue): Set
9709 current_function_static_stack_size.
9710
e300ec2d
JJ
97112013-01-18 Jakub Jelinek <jakub@redhat.com>
9712
9713 PR tree-optimization/56029
9714 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9715 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9716
a3d7af04
SS
97172013-01-18 Sharad Singhai <singhai@google.com>
9718
9719 PR tree-optimization/55995
9720 * dumpfile.c (dump_loc): Print location only if available.
9721 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9722
66aa7879
VM
97232013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9724
9725 PR target/55433
9726 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9727 secondary memory move.
9728 (inherit_reload_reg): Use rclass instead of cl for
9729 check_secondary_memory_needed_p.
9730
3f0fee7b
JJ
97312013-01-18 Jakub Jelinek <jakub@redhat.com>
9732
9733 PR middle-end/56015
9734 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 9735 the case where writing real complex part of target modifies op1.
3f0fee7b 9736
70c67693
JG
97372013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9738
9739 * config/aarch64/aarch64-simd.md
9740 (aarch64_vcond_internal<mode>): Handle unordered cases.
9741 * config/aarch64/iterators.md (v_cmp_result): New.
9742
df8de9b3
YHH
97432013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9744 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9745
9746 * config/arm/marvell-pj4.md: New file.
9747 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9748 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9749 (generic_vfp): Likewise.
9750 * config/arm/arm-cores.def: Add marvell-pj4.
9751 * config/arm/arm-tune.md: Regenerate.
9752 * config/arm/arm-tables.opt: Regenerate.
9753 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9754 * doc/invoke.texi: Document marvell-pj4.
9755
be30c356
TB
97562013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9757
9758 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9759
0bfbca58 97602013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
9761
9762 PR debug/54114
9763 PR debug/54402
9764 PR debug/49888
9765 * var-tracking.c (negative_power_of_two_p): New.
9766 (global_get_addr_cache, local_get_addr_cache): New.
9767 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9768 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9769 heading comment.
9770 (vt_stack_offset_p): Remove.
9771 (vt_canon_true_dep): Always canonicalize loc's address.
9772 (clobber_overlapping_mems): Make sure we have a MEM.
9773 (local_get_addr_clear_given_value): New.
9774 (val_reset): Clear local cached entries.
9775 (compute_bb_dataflow): Create and release the local cache.
9776 Disable duplicate MEMs clobbering.
9777 (emit_notes_in_bb): Clobber MEMs likewise.
9778 (vt_emit_notes): Create and release the local cache.
9779 (vt_initialize, vt_finalize): Create and release the global
9780 cache, respectively.
1f6bc337 9781 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 9782
0bfbca58 97832013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
9784
9785 PR libmudflap/53359
9786 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9787 not found in the symtab.
9788
0bfbca58 97892013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 9790
c350ba53 9791 PR debug/56006
3aa03517
AO
9792 PR rtl-optimization/55547
9793 PR rtl-optimization/53827
9794 PR debug/53671
9795 PR debug/49888
9796 * alias.c (offset_overlap_p): New, factored out of...
9797 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9798 the conservative special case for symbolic constants. Don't
9799 adjust zero sizes on alignment.
9800
c664546f
JL
98012013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9802
9803 PR rtl-optimization/52573
9804 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9805 REG_UNUSED for the same register.
9806
1bd3f750
MP
98072013-01-17 Richard Biener <rguenther@suse.de>
9808 Marek Polacek <polacek@redhat.com>
9809
9810 PR rtl-optimization/55833
9811 * loop-unswitch.c (unswitch_loops): Move loop verification...
9812 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9813 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9814 Set it to true when we're removing a loop from hierarchy tree in
9815 an irreducible region.
9816 (fix_bb_placements): Adjust caller.
9817 (fix_loop_placements): Likewise.
9818
e52a8b71
GJL
98192013-01-17 Georg-Johann Lay <avr@gjlay.de>
9820
9821 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9822 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9823 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9824 Remove ID. Adjust comments.
9825 * config/avr/avr-c.c (avr_builtin_name): Remove.
9826 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9827 * config/avr/avr.c (avr_tolower): New static function.
9828 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9829 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9830 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9831 default expansion.
9832
8386a7ea
JH
98332013-01-17 Jan Hubicka <jh@suse.cz>
9834
610fb637 9835 PR tree-optimization/55273
8386a7ea
JH
9836 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9837
47876a2a 98382013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
9839
9840 PR target/55981
9841 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9842 store through atomic_store<mode>_1.
9843 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9844
8222c37e
MJ
98452013-01-17 Martin Jambor <mjambor@suse.cz>
9846
9847 PR tree-optimizations/55264
9848 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9849 for virtual methods.
9850 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9851 virtual methods before inlining is over.
9852 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9853 virtual functions.
9854 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9855 non-virtual.
9856
79f01c76
VM
98572013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9858
9859 PR rtl-optimization/56005
9860 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9861 pending reads for prefetch.
9862
d0b6bb1b
IB
98632013-01-16 Ian Bolton <ian.bolton@arm.com>
9864
aaf1e810 9865 * config/aarch64/aarch64.md
d0b6bb1b
IB
9866 (*cstoresi_neg_uxtw): New pattern.
9867 (*cmovsi_insn_uxtw): New pattern.
9868 (*<optab>si3_uxtw): New pattern.
9869 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9870 (*<optab>si3_insn_uxtw): New pattern.
9871 (*bswapsi2_uxtw): New pattern.
9872
cb9cf03b
RB
98732013-01-16 Richard Biener <rguenther@suse.de>
9874
9875 * tree-inline.c (tree_function_versioning): Remove set but
9876 never used variable.
9877
2cfc56b9
RB
98782013-01-16 Richard Biener <rguenther@suse.de>
9879
9880 PR tree-optimization/55964
9881 * tree-flow.h (rename_variables_in_loop): Remove.
9882 (rename_variables_in_bb): Likewise.
9883 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9884 (copy_loop_before): Adjust and delete update-ssa status.
9885 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 9886 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
9887 (rename_variables_in_loop): Remove.
9888 (slpeel_update_phis_for_duplicate_loop): Likewise.
9889 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9890 use available cfg machinery instead of duplicating it.
9891 Update PHI nodes and perform poor-mans SSA update here.
9892 (slpeel_tree_peel_loop_to_edge): Adjust.
9893
c25a0c60
RB
98942013-01-16 Richard Biener <rguenther@suse.de>
9895
9896 PR tree-optimization/54767
9897 PR tree-optimization/53465
9898 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9899 (vrp_visit_phi_node): For PHI arguments coming via backedges
9900 drop all symbolical range information.
9901 (execute_vrp): Compute backedges.
9902
04b535af
RB
99032013-01-16 Richard Biener <rguenther@suse.de>
9904
9905 * doc/install.texi: Update CLooG and ISL requirements to
9906 0.18.0 and 0.11.1.
9907
8b0a1e0b
CB
99082013-01-16 Christian Bruel <christian.bruel@st.com>
9909
9910 PR target/55301
9911 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9912 (broken_move): Handle UNSPECV_SP_SWITCH_B.
9913 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9914
99152013-01-16 DJ Delorie <dj@redhat.com>
9916
9917 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9918 (UNSPECV_SP_SWITCH_E): New.
9919 (sp_switch_1): Change to an unspec.
9920 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9921 replace $r15.
9922
99232013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
9924
9925 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9926 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9927 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9928 (expand_mem_thread_fence): Ditto.
9929 (expand_mem_signal_fence): Ditto.
9930 (expand_atomic_load): Ditto.
9931 (expand_atomic_store): Ditto.
9932
0bfbca58 99332013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
9934
9935 PR rtl-optimization/55547
9936 PR rtl-optimization/53827
9937 PR debug/53671
9938 PR debug/49888
9939 * alias.c (memrefs_conflict_p): Set sizes to negative after
9940 AND adjustments.
9941
305e3ac1
JJ
99422013-01-15 Jakub Jelinek <jakub@redhat.com>
9943
9944 PR target/55940
9945 * function.c (thread_prologue_and_epilogue_insns): Always
9946 add crtl->drap_reg to set_up_by_prologue.set, even if
9947 stack_realign_drap is false.
9948
f78ac4f2
JBG
99492013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9950
9951 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9952 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9953 *call): Fix indention.
9954
a78a8cc4
TV
99552013-01-15 Tom de Vries <tom@codesourcery.com>
9956
9957 PR target/55876
9958 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9959 Update comment.
9960
0e80383f
VM
99612013-01-15 Vladimir Makarov <vmakarov@redhat.com>
9962
305e3ac1 9963 PR rtl-optimization/55153
0e80383f
VM
9964 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9965
207b5956
MJ
99662013-01-15 Martin Jambor <mjambor@suse.cz>
9967
9968 PR tree-optimization/55920
9969 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9970 accesses as grp_to_be_debug_replaced.
9971
a7818b54
JJ
99722013-01-15 Jakub Jelinek <jakub@redhat.com>
9973
9974 PR tree-optimization/55920
9975 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9976 there is non-useless type conversion needed from debug rhs to lhs,
9977 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9978
b0fe107e
JM
99792013-01-15 Joseph Myers <joseph@codesourcery.com>
9980 Mikael Pettersson <mikpe@it.uu.se>
9981
9982 PR target/43961
9983 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9984 Thumb.
9985 (ASM_OUTPUT_CASE_LABEL): Remove.
9986 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9987 * final.c (shorten_branches): Update alignment of labels before
9988 jump tables if CASE_VECTOR_SHORTEN_MODE.
9989
34ab62ee
RB
99902013-01-15 Richard Biener <rguenther@suse.de>
9991
9992 PR bootstrap/55961
9993 * system.h: Do not include gmp.h for building host tools.
9994
783a3a05
RB
99952013-01-15 Richard Biener <rguenther@suse.de>
9996
9997 PR middle-end/55882
9998 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9999 account for bitpos when computing alignment.
10000
3a579e09
VY
100012013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10002
10003 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10004 (ix86_target_macros_internal): Likewise.
10005
10006 * config/i386/i386.c (m_CORE2I7): Removed.
10007 (m_CORE_HASWELL): New macro.
10008 (m_CORE_ALL): Likewise.
10009 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10010 (initial_ix86_arch_features): Likewise.
10011 (processor_target_table): Initializations for Core avx2.
10012 (cpu_names): New names "core-avx2".
10013 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10014 PROCESSOR_CORE_HASWELL.
10015 (ix86_issue_rate): New case.
10016 (ia32_multipass_dfa_lookahead): Likewise.
10017 (ix86_sched_init_global): Likewise.
10018
10019 * config/i386/i386.h (TARGET_HASWELL): New macro.
10020 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10021 (processor_type): New PROCESSOR_HASWELL.
10022
955f5a07
JJ
100232013-01-15 Jakub Jelinek <jakub@redhat.com>
10024
ff784829
JJ
10025 PR tree-optimization/55955
10026 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10027 *SHIFT_EXPR and *ROTATE_EXPR codes.
10028
955f5a07
JJ
10029 PR tree-optimization/48766
10030 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10031 -ftrapv disable -fwrapv.
10032
aeb8b4e9
GJL
100332013-01-14 Georg-Johann Lay <avr@gjlay.de>
10034
10035 PR target/55974
10036 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10037 etc. to 1 and not to __flash.
10038 Use LL suffix for __INT24_MAX__ with -mint8.
10039 Use ULL suffix for __UINT24_MAX__ with -mint8.
10040
1c494c6a
GJL
100412013-01-14 Georg-Johann Lay <avr@gjlay.de>
10042
10043 * config/avr/avr-arch.h
10044 (struct base_arch_s): Use typedef avr_arch_t instead.
10045 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10046 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10047 * config/avr/avr.c: Same.
10048 * config/avr/avr-devices.c: Same.
10049 * config/avr/driver-avr.c: Same.
10050 * config/avr/gen-avr-mmcu-texi.c: Same.
10051 * config/avr/avr-mcus.def: Adjust comment.
10052
a50344cb
TB
100532013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10054
88e784e6
UB
10055 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10056 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10057
47876a2a 100582013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10059 Andi Kleen <ak@linux.intel.com>
10060
10061 PR target/55948
10062 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10063 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10064 memmodel flag.
10065
00892272
GJL
100662013-01-14 Georg-Johann Lay <avr@gjlay.de>
10067
10068 * config/avr/avr-stdint.h: Remove trailing blanks.
10069 * config/avr/avr-log.h: Same.
10070 * config/avr/avr-arch.h: Same.
10071 * config/avr/avr-devices.c: Same.
10072 * config/avr/avr-dimode.md: Same.
10073 * config/avr/predicates.md: Same.
10074 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10075
00892272
GJL
10076 * config/avr/avr-protos.h: Same. And:
10077 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10078 (init_cumulative_args): Rename to avr_init_cumulative_args.
10079 (expand_prologue): Rename to avr_expand_prologue.
10080 (expand_epilogue): Rename to avr_expand_epilogue.
10081 (adjust_insn_length): Rename to avr_adjust_insn_length.
10082 (notice_update_cc): Rename to avr_notice_update_cc.
10083 (final_prescan_insn): Rename to avr_final_prescan_insn.
10084 * config/avr/avr.c: Same.
10085 * config/avr/avr.h: Same.
10086 * config/avr/avr.md: Remove trailing blanks.
10087 (prologue): Use avr_expand_prologue.
10088 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10089
7bb01996
RB
100902013-01-14 Richard Biener <rguenther@suse.de>
10091
10092 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10093 verify_location, collect_subblocks): New functions.
10094 (verify_gimple_in_cfg): Verify that locations only reference
10095 BLOCKs in the functions BLOCK tree.
10096
2724573f
RB
100972013-01-14 Richard Biener <rguenther@suse.de>
10098
10099 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10100 PHI argument.
10101 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10102 unshare reference.
10103 (insert_out_of_ssa_copy_on_edge): Likewise.
10104 (rewrite_close_phi_out_of_ssa): Likewise.
10105 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10106 debug expressions.
10107 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10108 propagated constants.
10109 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10110 can not be shared.
10111
9a0bbab6
GJL
101122013-01-14 Georg-Johann Lay <avr@gjlay.de>
10113
10114 * config/avr/avr-modes.def: Add GPL copyright notice.
10115
45805f17
UB
101162013-01-13 Uros Bizjak <ubizjak@gmail.com>
10117
10118 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10119 MEMMODEL_MASK to determine memory model.
10120 (atomic_store<mode>): Ditto from operands[2].
10121 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10122
9d60be38
JJ
101232013-01-13 Jakub Jelinek <jakub@redhat.com>
10124
10125 PR fortran/55935
45805f17 10126 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
10127 (fold_gimple_assign): Don't call unshare_expr here.
10128 (fold_ctor_reference): Call unshare_expr.
10129
e7f49d92
TG
101302013-01-13 Terry Guo <terry.guo@arm.com>
10131
aaf1e810
EB
10132 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10133 * doc/fragments.texi: Document MULTILIB_REUSE.
10134 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 10135 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 10136 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
10137 (tmpmultilib4): Ditto.
10138 (multilib_reuse): New multilib argument.
10139
fbd03a27
RS
101402013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10141
10142 * Makefile.in: Update copyright.
10143
b3681f13
TV
101442013-01-12 Tom de Vries <tom@codesourcery.com>
10145
10146 PR middle-end/55890
10147 * calls.c (expand_call): Check if arg_nr is valid.
10148
3f287e4b
MM
101492013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10150
10151 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10152 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
10153 documentation. Add missing '__' in front of
10154 __builtin_ia32_packssdw256.
3f287e4b 10155
1abcd5eb
AK
101562013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10157
10158 PR target/55719
10159 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10160 NO_REGS for larl operands.
10161 (s390_reload_larl_operand): Use s390_load_address instead of
10162 emit_move_insn.
10163
980d0812
RB
101642013-01-11 Richard Biener <rguenther@suse.de>
10165
10166 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10167 (verify_node_sharing): ... here.
10168 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10169
7cb9fd07
EB
101702013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10171
10172 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10173 Substitute TREECHECKING.
10174 * configure: Regenerate.
10175 * Makefile.in (TREECHECKING): New.
10176
47876a2a 101772013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
10178
10179 PR tree-optimization/44061
10180 * tree-vrp.c (extract_range_basic): Compute zero as
10181 value-range for __builtin_constant_p of function parameters.
10182
d1e082c2
RS
101832013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10184
45805f17 10185 Update copyright years.
d1e082c2 10186
f85021b0
VM
101872013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10188
9d60be38 10189 PR rtl-optimization/55672
0160442c
VM
10190 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10191 const to be eliminable.
f85021b0 10192
7a8b1ec4
DE
101932013-01-10 David Edelsohn <dje.gcc@gmail.com>
10194
10195 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10196 * configure: Regenerate.
10197
ad2e5b71
RB
101982013-01-10 Richard Biener <rguenther@suse.de>
10199
ddf9322d 10200 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 10201
ffc5b2bb
RB
102022013-01-10 Richard Biener <rguenther@suse.de>
10203
10204 PR bootstrap/55792
10205 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10206 locations for virtual PHI arguments.
10207 (rewrite_update_phi_arguments): Likewise.
10208
e1f674e4
JS
102092013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10210
10211 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10212 on to assembler.
10213
a57fc743
JJ
102142013-01-10 Jakub Jelinek <jakub@redhat.com>
10215
10216 PR tree-optimization/55921
10217 * tree-complex.c (expand_complex_asm): New function.
10218 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10219
0ff4390d
AK
102202013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10221
10222 PR target/55718
10223 * config/s390/s390.c (s390_symref_operand_p)
10224 (s390_loadrelative_operand_p): Merge the two functions.
10225 (s390_check_qrst_address, print_operand_address): Add parameters
10226 to s390_loadrelative_operand_p invokation.
10227 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10228 (s390_reload_larl_operand, s390_secondary_reload): Use
10229 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10230 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10231
6f557e0e
MS
102322013-01-09 Mike Stump <mikestump@comcast.net>
10233
10234 * dse.c (record_store): Remove unnecessary assert.
10235
7770c9e9
JH
102362013-01-09 Jan Hubicka <jh@suse.cz>
10237
10238 PR tree-optimization/55569
10239 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10240 * cfgloop.h (scale_loop_profile): Likewise.
10241
a19b1432
JH
102422013-01-09 Jan Hubicka <jh@suse.cz>
10243
10244 PR lto/45375
ddf9322d
UB
10245 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10246 functions.
a19b1432
JH
10247 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10248
9a002da8
RS
102492013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10250
10251 PR middle-end/55114
10252 * expr.h (maybe_emit_group_store): Declare.
10253 * expr.c (maybe_emit_group_store): New function.
10254 * builtins.c (expand_builtin_int_roundingfn): Call it.
10255 (expand_builtin_int_roundingfn_2): Likewise.
10256
511dcace
VM
102572013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10258
e1f2b729 10259 PR rtl-optimization/55829
511dcace
VM
10260 * lra-constraints.c (match_reload): Add code for absent output.
10261 (curr_insn_transform): Add code for reloads of matched inputs
10262 without output.
10263
7b0fe4f4
UB
102642013-01-09 Uros Bizjak <ubizjak@gmail.com>
10265
10266 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10267 attribute of movddup insn to DF.
10268 (*vec_interleave_lowv2df): Ditto.
10269 (vec_dupv2df): Ditto.
10270
870ca331
JH
102712013-01-09 Jan Hubicka <jh@suse.cz>
10272
10273 PR tree-optimiation/55875
10274 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10275 EVERY_ITERATION parameter.
7b0fe4f4 10276 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
10277 (idx_infer_loop_bounds): Similarly here.
10278 (n_of_executions_at_most): Simplify
10279 to only test for cases where statement is dominated by the
7b0fe4f4 10280 particular bound; handle correctly the "postdominance" test.
870ca331
JH
10281 (scev_probably_wraps_p): Use max loop iterations info
10282 as a global bound first.
10283
6f575fe4 102842013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
10285 Nick Clifton <nickc@redhat.com>
10286
10287 * config/v850/v850.md (cbranchsf4): New pattern.
10288 (cstoresf4): New pattern.
10289 (cbranchdf4): New pattern.
10290 (cstoredf4): New pattern.
10291 (movsicc): Disallow floating point comparisons.
10292 (cmpsf_le_insn): Fix order of operators.
10293 (cmpsf_lt_insn): Likewise.
10294 (cmpsf_eq_insn): Likewise.
10295 (cmpdf_le_insn): Likewise.
10296 (cmpdf_lt_insn): Likewise.
10297 (cmpdf_eq_insn): Likewise.
10298 (cmpsf_ge_insn): Use LE comparison.
10299 (cmpdf_ge_insn): Likewise.
10300 (cmpsf_gt_insn): Use LT comparison.
10301 (cmpdf_gt_insn): Likewise.
10302 (cmpsf_ne_insn): Delete pattern.
10303 (cmpdf_ne_insn): Delete pattern.
10304 * config/v850/v850.c (v850_gen_float_compare): Use
10305 gen_cmpdf_eq_insn for NE comparison.
10306 (v850_float_z_comparison_operator)
10307 (v850_float_nz_comparison_operator): Move from here ...
10308 * config/v850/predicates.md: ... to here. Move GT and GE
10309 comparisons into v850_float_z_comparison_operator.
10310 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10311 Delete prototype.
10312 (v850_float_nz_comparison_operator): Likewise.
10313
f0d54148
JDA
103142013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10315
10316 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10317 with calls to gen_insvsi/gen_insvdi.
10318
8f01beca
VK
103192013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10320
10321 * config/i386/i386.c (initial_ix86_tune_features): Set up
10322 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10323
2aa579ad
JJ
103242013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10325 Jakub Jelinek <jakub@redhat.com>
10326
10327 PR tree-optimization/48189
10328 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10329 If nitercst is 0, don't predict the exit edge.
10330
6edc3e32 103312013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
10332
10333 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10334 in asm_fprintf with reg_names.
10335 (aarch64_print_operand_address): Likewise.
10336 (aarch64_return_addr): Likewise.
10337 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10338
f6f94d94
JDA
103392013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10340
10341 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10342 (INT_U6_BITS): Likewise.
10343 * config/pa/predicates.md (uint6_operand): New predicate.
10344 (shift5_operand, shift6_operand): Likewise.
10345 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10346 arith32_operand.
10347 (lshrdi3): Use shift6_operand.
10348 (shrpsi4, shrpdi4): New insn patterns.
10349 (extzv): Delete expander.
10350 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10351 predicates in unamed zero extract patterns. Tighten common constraint.
10352 (extv): Delete expander.
10353 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10354 predicates in unamed sign extract patterns. Tighten common constraint.
10355 (insv): Delete expander.
10356 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10357 predicates in unamed insert patterns. Tighten common constraint.
10358 Change uint32_operand predicate to uint6_operand predicate in unamed
10359 DImode pattern to insert constant values of type 1...1xxxx.
10360
36b72910
JH
103612013-01-04 Jan Hubicka <jh@suse.cz>
10362
10363 PR tree-optimization/55823
7b0fe4f4
UB
10364 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10365 issue.
36b72910 10366
47876a2a 103672013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
10368 Uros Bizjak <ubizjak@gmail.com>
10369
10370 PR rtl-optimization/55845
10371 * df-problems.c (can_move_insns_across): Stop scanning at
10372 volatile_insn_p source instruction or give up if
10373 across_from .. across_to range contains any volatile_insn_p
10374 instructions.
10375
4369c11e
TB
103762013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10377
7b0fe4f4
UB
10378 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10379 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10380 Declare.
4369c11e 10381 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 10382 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 10383
aeb7e7c1
JJ
103842013-01-08 Jakub Jelinek <jakub@redhat.com>
10385
10386 PR fortran/55341
10387 * asan.c (asan_clear_shadow): New function.
10388 (asan_emit_stack_protection): Use it.
10389
a02ad1aa
TB
103902013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10391
10392 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10393 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10394 with tab instead of space.
10395
f90d87f5
NC
103962013-01-08 Nick Clifton <nickc@redhat.com>
10397
10398 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10399 register bank 0 at the start of an interrupt handler.
83ffd964
NC
10400 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10401 MDBH registers.
f90d87f5 10402
385eb93d
JG
104032013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10404
10405 * config/aarch64/aarch64-simd.md
10406 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10407 (aarch64_simd_bsl): Likewise.
10408 (aarch64_vcond_internal<mode>): Likewise.
10409 (vcond<mode><mode>): Likewise.
10410 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10411 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10412
4dcd1054
JG
104132013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10414
10415 * config/aarch64/aarch64-builtins.c
10416 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10417
4267a4a6
MJ
104182013-01-08 Martin Jambor <mjambor@suse.cz>
10419
10420 PR debug/55579
10421 * tree-sra.c (analyze_access_subtree): Return true also after
10422 potentially creating a debug-only replacement.
10423
5f4e6de3
JJ
104242013-01-08 Jakub Jelinek <jakub@redhat.com>
10425
3138f224
JJ
10426 PR middle-end/55890
10427 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10428
5f4e6de3
JJ
10429 PR tree-optimization/54120
10430 * tree-vrp.c (range_fits_type_p): Don't allow
10431 src_precision < precision from signed vr to unsigned_p
10432 if vr->min or vr->max is negative.
10433 (simplify_float_conversion_using_ranges): Test can_float_p
10434 against CODE_FOR_nothing.
10435
f3ef18ff
JJ
104362013-01-08 Jakub Jelinek <jakub@redhat.com>
10437 Richard Biener <rguenther@suse.de>
10438
10439 PR middle-end/55851
10440 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10441 types instead of just INTEGER_TYPE types.
10442
25c210f9
MK
104432013-01-07 Mark Kettenis <kettenis@openbsd.org>
10444
10445 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10446 TF_SIZE): Define.
f90d87f5 10447
81826a7b
SE
104482013-01-07 Steve Ellcey <sellcey@mips.com>
10449
10450 PR target/42661
10451 * config/mips/mips.opt: Change mad to mmad to match documentation.
10452
35678514
GJL
104532013-01-07 Georg-Johann Lay <avr@gjlay.de>
10454
10455 PR target/55897
10456 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10457 .progmemx.data now.
10458
e5669488
GJL
104592013-01-07 Georg-Johann Lay <avr@gjlay.de>
10460
10461 PR target/55897
10462 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10463 (avr_addrspace_t): Add .section_name field.
10464 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10465 array size.
10466 (avr_addrspace): Same. Initialize .section_name. Remove last
10467 NULL entry. Put __memx into .progmemx.data.
10468 (progmem_section_prefix): Remove.
10469 (avr_asm_init_sections): No need to initialize progmem_section.
10470 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10471 section name prefix.
10472 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10473 retrieve the progmem section.
10474 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10475 boundary to run over avr_addrspace[].
10476 (avr_register_target_pragmas): Ditto.
10477
656e6f37
JJ
104782013-01-06 Jakub Jelinek <jakub@redhat.com>
10479
10480 * varasm.c (output_constant_def_contents): For asan_protect_global
10481 protected strings, adjust DECL_ALIGN if needed, before testing for
10482 anchored symbols.
10483 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10484 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10485 normal decls.
10486 (output_object_block): For asan protected decls, emit asan padding
10487 after their contents.
10488 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10489 (asan_finish_file): Test it here instead.
10490
6edc3e32
UB
104912013-01-07 Nick Clifton <nickc@redhat.com>
10492 Matthias Klose <doko@debian.org>
10493 Doug Kwan <dougkwan@google.com>
10494 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
10495
10496 PR driver/55470
10497 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10498
10499 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10500
10501 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10502
7b0fe4f4 10503 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
10504
10505 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10506
2a095093
GJL
105072013-01-07 Georg-Johann Lay <avr@gjlay.de>
10508
f3b503f4 10509 PR target/54461
2a095093
GJL
10510 * doc/install.texi (Cross-Compiler-Specific Options): Document
10511 --with-avrlibc.
10512
383f9b34
TB
105132013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10514
10515 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10516 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10517 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10518 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10519 vqmovun_high_s64): Fix source operand number and update copyright.
10520
3626621a
RB
105212013-01-07 Richard Biener <rguenther@suse.de>
10522
10523 PR middle-end/55890
10524 * gimple.h (gimple_call_builtin_p): New overload.
10525 * gimple.c (validate_call): New function.
10526 (gimple_call_builtin_p): Likewise.
10527 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10528 Use gimple_call_builtin_p.
10529 (find_func_clobbers): Likewise.
10530 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10531 (strlen_optimize_stmt): Likewise.
10532
8b2ea410
JG
105332013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10534
10535 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10536 (vld1q_dup_*): Likewise.
10537 (vld1_*): Likewise.
10538 (vld1q_*): Likewise.
10539 (vld1_lane_*): Likewise.
10540 (vld1q_lane_*): Likewise.
10541
9713d329
RB
105422013-01-07 Richard Biener <rguenther@suse.de>
10543
10544 * lto-streamer.h (LTO_minor_version): Bump to 2.
10545
3520f7cc
JG
105462013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10547
10548 * config/aarch64/aarch64-protos.h
10549 (aarch64_const_double_zero_rtx_p): Rename to...
10550 (aarch64_float_const_zero_rtx_p): ...this.
10551 (aarch64_float_const_representable_p): New.
10552 (aarch64_output_simd_mov_immediate): Likewise.
10553 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10554 move immediate case.
10555 * config/aarch64/aarch64.c
10556 (aarch64_const_double_zero_rtx_p): Rename to...
10557 (aarch64_float_const_zero_rtx_p): ...this.
10558 (aarch64_print_operand): Allow printing of new constants.
10559 (aarch64_valid_floating_const): New.
10560 (aarch64_legitimate_constant_p): Check for valid floating-point
10561 constants.
10562 (aarch64_simd_valid_immediate): Likewise.
10563 (aarch64_vect_float_const_representable_p): New.
10564 (aarch64_float_const_representable_p): Likewise.
10565 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10566 (aarch64_output_simd_mov_immediate): New.
10567 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10568 (*movdf_aarch64): Likewise.
10569 * config/aarch64/constraints.md (Ufc): New.
10570 (Y): call aarch64_float_const_zero_rtx.
10571 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10572
e167c04d
RB
105732013-01-07 Richard Biener <rguenther@suse.de>
10574
10575 PR tree-optimization/55888
10576 PR tree-optimization/55862
10577 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10578 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10579 not if it is contained therein.
10580
0139aaab
GJL
105812013-01-07 Georg-Johann Lay <avr@gjlay.de>
10582
10583 * config/avr/t-avr: Typo.
10584
4a176b23
GJL
105852013-01-07 Georg-Johann Lay <avr@gjlay.de>
10586
10587 PR55243
10588 * config/avr/t-avr: Don't automatically rebuild
10589 $(srcdir)/config/avr/t-multilib
10590 $(srcdir)/config/avr/avr-tables.opt
10591 $(srcdir)/doc/avr-mmcu.texi
10592 (avr-mcus): New phony target to build them on request.
10593 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10594 * avr/avr-mcus.def: Adjust comments.
10595
c7afdc98
UB
105962013-01-07 Uros Bizjak <ubizjak@gmail.com>
10597
10598 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10599
1ab05c31
RS
106002013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10601
10602 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10603
488e3acc
RS
106042013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10605
10606 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10607
a89599d2
DE
106082013-01-05 David Edelsohn <dje.gcc@gmail.com>
10609
10610 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10611 to generate profiling.
10612 * config/rs6000/aix64.h (LIB_SPEC): Same.
10613
70f09188
AP
106142013-01-04 Andrew Pinski <apinski@cavium.com>
10615
10616 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10617 New function.
10618 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10619
918d445f
UB
106202013-01-04 Uros Bizjak <ubizjak@gmail.com>
10621
10622 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10623 unconditionally.
10624 (ix86_expand_move): Ditto.
10625 (ix86_zero_extend_to_Pmode): Ditto.
10626 (ix86_expand_call): Ditto.
10627 (ix86_expand_special_args_builtin): Ditto.
10628 (ix86_expand_builtin): Ditto.
10629
361618ec
RB
106302013-01-04 Richard Biener <rguenther@suse.de>
10631
10632 PR tree-optimization/55862
10633 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10634 translating them through PHI nodes.
10635
87eab554
MJ
106362013-01-04 Martin Jambor <mjambor@suse.cz>
10637
10638 PR tree-optimization/55755
10639 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10640 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10641
33879b9f
MP
106422013-01-04 Marek Polacek <polacek@redhat.com>
10643
10644 PR middle-end/55859
10645 * opts.c (default_options_optimization): Clarify error message.
10646
3068819a
RB
106472013-01-04 Richard Biener <rguenther@suse.de>
10648
10649 PR middle-end/55863
10650 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10651 reassociation.
10652
0e4ae794
JDA
106532013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10654
10655 PR target/53789
10656 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
10657 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10658 references.
0e4ae794 10659
65c88cef
RH
106602013-01-03 Richard Henderson <rth@redhat.com>
10661
10662 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10663 after eliminating TLS symbols.
10664
8ac16127
MG
106652013-01-03 Marc Glisse <marc.glisse@inria.fr>
10666
10667 PR bootstrap/50167
10668 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10669 * graphite-poly.c (debug_gmp_value): Likewise.
10670
bb664f09
UB
106712013-01-03 Uros Bizjak <ubizjak@gmail.com>
10672
10673 PR target/55712
10674 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10675 selected code model, define __code_mode_small__, __code_model_medium__,
10676 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10677 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10678 xchg temporary register with %k. Declare temporary register as
10679 early clobbered.
10680 [__x86_64__]: For medium and large code models, preserve %rbx register.
10681
bcf1ef00
RB
106822013-01-03 Richard Biener <rguenther@suse.de>
10683
0506634a 10684 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
10685 (dump_subscript): Adjust.
10686 (finalize_ddr_dependent): Do not dump redundant info.
10687 (analyze_siv_subscript): Adjust.
10688 (subscript_dependence_tester): Likewise.
10689 (compute_affine_dependence): Likewise.
10690
59fd17e3
RB
106912013-01-03 Richard Biener <rguenther@suse.de>
10692
10693 Revert
10694 2013-01-03 Richard Biener <rguenther@suse.de>
10695
10696 PR tree-optimization/55857
10697 * tree-vect-stmts.c (vectorizable_load): Do not setup
10698 re-alignment for invariant loads.
10699
10700 2013-01-02 Richard Biener <rguenther@suse.de>
10701
10702 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10703 invariant load do not generate a vector load from the scalar location.
59fd17e3 10704
595c2679
RB
107052013-01-03 Richard Biener <rguenther@suse.de>
10706
10707 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10708 for not vectorizing.
10709 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10710 not build INDIRECT_REFs, call get_name once only.
10711 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10712 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10713
90bb7d7a
RB
107142013-01-03 Richard Biener <rguenther@suse.de>
10715
10716 PR tree-optimization/55857
10717 * tree-vect-stmts.c (vectorizable_load): Do not setup
10718 re-alignment for invariant loads.
10719
f09b77ca
RB
107202013-01-03 Richard Biener <rguenther@suse.de>
10721
10722 PR lto/55848
10723 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10724 prefer a built-in decl.
10725
3461a16e
JJ
107262013-01-03 Jakub Jelinek <jakub@redhat.com>
10727
df8e2b4f
JJ
10728 * gcc.c (process_command): Update copyright notice dates.
10729 * gcov.c (print_version): Likewise.
10730 * gcov-dump.c (print_version): Likewise.
10731
3461a16e
JJ
10732 PR rtl-optimization/55838
10733 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10734 iv0.step, iv1.step and step.
10735
8b5546d6
JJ
107362013-01-03 Jakub Jelinek <jakub@redhat.com>
10737 Marc Glisse <marc.glisse@inria.fr>
10738
10739 PR tree-optimization/55832
10740 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10741 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10742 integer_{one,zero}_node.
10743
8ab1d2e9
JJ
107442013-01-03 Jakub Jelinek <jakub@redhat.com>
10745
10746 PR debug/54402
10747 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10748 * var-tracking.c (reverse_op): Don't add reverse ops to
10749 VALUEs that have already
0506634a 10750 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 10751
5b9ad1d4
GP
107522013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10753
10754 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10755
e25a6711
TJ
107562013-01-02 Teresa Johnson <tejohnson@google.com>
10757
10758 * dumpfile.c (dump_loc): Print filename with location.
10759 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10760 new location_t parameter to emit complete unroll message with
10761 new dump framework.
10762 (canonicalize_loop_induction_variables): Compute loops location
10763 and pass to try_unroll_loop_completely.
10764 * loop-unroll.c (report_unroll_peel): New function.
10765 (peel_loops_completely): Use new dump format with location
10766 for main dumpfile message, and invoke report_unroll_peel on success.
10767 (decide_unrolling_and_peeling): Ditto.
10768 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10769 by report_unroll_peel.
10770 (decide_peel_completely): Ditto.
10771 (decide_unroll_constant_iterations): Ditto.
10772 (decide_unroll_runtime_iterations): Ditto.
10773 (decide_peel_simple): Ditto.
10774 (decide_unroll_stupid): Ditto.
10775 * cfgloop.c (get_loop_location): New function.
10776 * cfgloop.h (get_loop_location): Declare.
10777
77878621
ST
107782013-01-02 Sriraman Tallam <tmsriram@google.com>
10779
10780 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10781 NULL.
10782
9e65d03e
JDA
107832013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10784
10785 PR middle-end/55198
10786 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10787 BLKmode objects when EXPAND_MEMORY is specified.
10788
6a7da30f
ST
107892013-01-02 Sriraman Tallam <tmsriram@google.com>
10790
10791 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10792 in loop predicate.
10793 (fold_builtin_cpu): Do not share cpu model decls across statements.
10794
e78167f2
JM
107952013-01-02 Jason Merrill <jason@redhat.com>
10796
10797 PR c++/55804
10798 * tree.c (build_array_type_1): Revert earlier change.
10799
8c075fb4
YZ
108002013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10801
10802 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10803 "cortex-a57".
10804 * config/aarch64/aarch64-tune.md: Re-generate.
10805
0682ed3e
RB
108062013-01-02 Richard Biener <rguenther@suse.de>
10807
10808 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10809 invariant load do not generate a vector load from the scalar location.
0682ed3e 10810
b8f6a302
RB
108112013-01-02 Richard Biener <rguenther@suse.de>
10812
10813 PR bootstrap/55784
10814 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10815 * configure: Regenerate.
10816
04b80dbb
RS
108172013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10818
10819 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10820 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10821 (expand_builtin_int_roundingfn_2): Keep the original target around
10822 for the fallback case.
10823
635b0b0c
RS
108242013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10825
10826 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10827 to be clear for sign changes.
10828
42d57399
JH
108292013-01-01 Jan Hubicka <jh@suse.cz>
10830
10831 * ipa-inline-analysis.c: Fix formatting.
10832
5bb6669d
JJ
108332013-01-01 Jakub Jelinek <jakub@redhat.com>
10834
10835 PR tree-optimization/55831
10836 * tree-vect-loop.c (get_initial_def_for_induction): Use
10837 gsi_after_labels instead of gsi_start_bb.
ad41bd84 10838\f
86a2db33 10839Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
10840
10841Copying and distribution of this file, with or without modification,
10842are permitted in any medium without royalty provided the copyright
10843notice and this notice are preserved.