]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Partially reverted: 2013-05-31 Tobias Burnus <burnus@net-b.de>
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
daf4e940
TB
12013-06-01 Tobias Burnus <burnus@net-b.de>
2
3 Partially reverted:
4 2013-05-31 Tobias Burnus <burnus@net-b.de>
5
6 PR middle-end/57073
7 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
8 further up.
9
c359d8d0
DT
102013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
11
12 PR rtl-optimization/57268
13 * sched-deps.c (sched_analyze_2): Flush dependence lists if
14 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
15
4172215d
EB
162013-05-31 Eric Botcazou <ebotcazou@adacore.com>
17
18 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
19 unordered comparison operators when -fno-trapping-math is in effect
20 on the e500.
21 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
22 and implement unordered comparison operators properly on the e500.
23
a8c50132
EB
242013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25
26 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
27 for constant scalar integers.
28 (simplify_relational_operation_1): Likewise.
29
44626634
SB
302013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
31
32 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
33 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
34 Fix comment.
35
55805e54
YR
362013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
37 Igor Zamyatin <igor.zamyatin@intel.com>
38
39 Silvermont (SLM) architecture performance tuning.
40 * config/i386/i386.h (enum ix86_tune_indices): Add
41 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
42 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
43
44 * config/i386/i386.c (initial_ix86_tune_features)
45 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
46 (ix86_lea_outperforms): Handle Silvermont tuning.
47 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
48 call.
49 (ix86_use_lea_for_mov): Likewise.
50 (ix86_avoid_lea_for_addr): Likewise.
51 (ix86_lea_for_add_ok): Likewise.
52 (exact_dependency_1): New function.
53 (exact_store_load_dependency): Likewise.
54 (ix86_adjust_cost): Handle Silvermont tuning.
55 (do_reoder_for_imul): Likewise.
56 (swap_top_of_ready_list): New function.
57 (ix86_sched_reorder): Changed to handle Silvermont tuning.
58
59 * config/i386/i386.md (peepholes that split memory operand in fp
60 converts): New.
61
e19c9de2
MS
622013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
63
64 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
65 Remove un-necessary braces.
66
38e6c9a6
MS
672013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
68
69 * config/aarch64/aarch64.c (aarch64_classify_symbol):
70 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
71
e3530904
TB
722013-05-31 Tobias Burnus <burnus@net-b.de>
73
74 PR middle-end/57073
75 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
76 further up.
77
b6af05a9
KT
782013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
79
80 PR target/56315
81 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
82 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
83 * config/arm/neon.md (iordi3_neon): Remove.
84 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
85 * config/arm/predicates.md (imm_for_neon_logic_operand):
86 Move to earlier in the file.
87 (neon_logic_op2): Likewise.
88 (arm_iordi_operand_neon): New predicate.
89
f800c166
RB
902013-05-31 Richard Biener <rguenther@suse.de>
91
92 PR tree-optimization/57478
93 PR tree-optimization/57453
94 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
95 are life as well.
96
e571fa59
KP
972013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
98
99 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
100 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
101
0fa6e0ef
TB
1022013-05-30 Tobias Burnus <burnus@net-b.de>
103 Thomas Koenig <tkoenig@gcc.gnu.org>
104
105 PR middle-end/57073
106 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
107 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
108
4688ddf5
SB
1092013-05-30 Steven Bosscher <steven@gcc.gnu.org>
110
0fa6e0ef 111 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 112
3b9ceb4b
VM
1132013-05-30 Vladimir Makarov <vmakarov@redhat.com>
114
115 * target.def (register_usage_leveling_p): New hook.
116 * targhooks.c (default_register_usage_leveling_p): New.
117 * targhooks.h (default_register_usage_leveling_p): New prototype.
118 * lra-assigns.c (register_usage_leveling_p): Use the hook.
119 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
120 * doc/tm.texi: Update.
121 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
122
65f9e789
IB
1232013-05-30 Ian Bolton <ian.bolton@arm.com>
124
125 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
126 (*insv_reg<mode>): New define_insn.
127
ca035367
JR
1282013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
129
130 PR rtl-optimization/57439
131 * postreload.c (move2add_valid_value_p): Check that we have
132 a zero subreg_regno_offset when accessing the register in
133 the requested mode.
134
0b871ccf
YR
1352013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
136 Igor Zamyatin <igor.zamyatin@intel.com>
137
138 Silvermont (SLM) architecture pipeline model, tuning and
139 insn selection.
140 * config.gcc: Add slm config options and target.
141
142 * config/i386/slm.md: New.
143
144 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
145
146 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
147 PROCESSOR_SLM.
148 (ix86_target_macros_internal): Likewise.
149
150 * gcc/config/i386/i386.c (slm_cost): New cost.
151 (m_SLM): New macro flag.
152 (initial_ix86_tune_features): Set m_SLM.
153 (x86_accumulate_outgoing_args): Likewise.
154 (x86_arch_always_fancy_math_387): Likewise.
155 (processor_target_table): Add slm cost.
156 (cpu_names): Add slm cpu name.
157 (x86_option_override_internal): Set SLM ISA.
158 (ix86_issue_rate): New case PROCESSOR_SLM.
159 (ia32_multipass_dfa_lookahead): Likewise.
160 (fold_builtin_cpu): Add slm.
161
162 * config/i386/i386.h (TARGET_SLM): New target macro.
163 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
164 (processor_type): Add PROCESSOR_SLM.
165
166 * config/i386/i386.md (cpu): Add new value "slm".
167 (slm.md): Include slm.md.
168
169 * libgcc/config/i386/cpuinfo.c (INTEL_SLM): New enum value.
170
24d5b097
XG
1712013-05-30 Bernd Schmidt <bernds@codesourcery.com>
172 Zhenqiang Chen <zhenqiang.chen@linaro.org>
173
174 * config/arm/arm-protos.h: Add and update function protos.
175 * config/arm/arm.c (use_simple_return_p): New added.
176 (thumb2_expand_return): Check simple_return flag.
177 * config/arm/arm.md: Add simple_return and conditional simple_return.
178 * config/arm/iterators.md: Add iterator for return and simple_return.
179
c1cccc15
ZC
1802013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
181
182 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
183 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
184 (arm_emit_vfp_multi_reg_pop): Likewise.
185 (thumb2_emit_ldrd_pop): Likewise.
186 (arm_expand_epilogue): Add misc REG_CFA notes.
187 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
188
3a4f280b
LC
1892013-05-29 Lawrence Crowl <crowl@google.com>
190
191 * config/arm/t-arm: Update for below.
192
193 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
194 Change type to hash_table. Update dependent calls and types.
195
196 * config/i386/t-cygming: Update for below.
197
198 * config/i386/t-interix: Update for below.
199
200 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
201 Change type to hash_table. Update dependent calls and types.
202 (i386_find_on_wrapper_list::wrappers): Likewise.
203
204 * config/ia64/t-ia64: Update for below.
205
206 * config/ia64/ia64.c (bundle_state_table):
207 Change type to hash_table. Update dependent calls and types.
208
209 * config/mips/mips.c (mips_reorg_process_insns::htab):
210 Change type to hash_table. Update dependent calls and types.
211
212 * config/sol2.c (solaris_comdat_htab):
213 Change type to hash_table. Update dependent calls and types.
214
215 * config/t-sol2: Update for above.
216
1388a0e3
TJ
2172013-05-29 Teresa Johnson <tejohnson@google.com>
218
219 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
220 functions are not yet marked as defined.
221
a5965b52
MM
2222013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
223 Pat Haugen <pthaugen@us.ibm.com>
224 Peter Bergner <bergner@vnet.ibm.com>
225
226 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
227 instructions.
228 (VEC_A): Likewise.
229 (VEC_C): Likewise.
230 (vrotl<mode>3): Likewise.
231 (vashl<mode>3): Likewise.
232 (vlshr<mode>3): Likewise.
233 (vashr<mode>3): Likewise.
234
235 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
236 support for power8 V2DI builtins.
237
238 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
239 power8 V2DI builtins.
240 (vupkhsw): Likewise.
241 (vupklsw): Likewise.
242 (vaddudm): Likewise.
243 (vminsd): Likewise.
244 (vmaxsd): Likewise.
245 (vminud): Likewise.
246 (vmaxud): Likewise.
247 (vpkudum): Likewise.
248 (vpksdss): Likewise.
249 (vpkudus): Likewise.
250 (vpksdus): Likewise.
251 (vrld): Likewise.
252 (vsld): Likewise.
253 (vsrd): Likewise.
254 (vsrad): Likewise.
255 (vsubudm): Likewise.
256 (vcmpequd): Likewise.
257 (vcmpgtsd): Likewise.
258 (vcmpgtud): Likewise.
259 (vcmpequd_p): Likewise.
260 (vcmpgtsd_p): Likewise.
261 (vcmpgtud_p): Likewise.
262 (vupkhsw): Likewise.
263 (vupklsw): Likewise.
264 (vaddudm): Likewise.
265 (vmaxsd): Likewise.
266 (vmaxud): Likewise.
267 (vminsd): Likewise.
268 (vminud): Likewise.
269 (vpksdss): Likewise.
270 (vpksdus): Likewise.
271 (vpkudum): Likewise.
272 (vpkudus): Likewise.
273 (vrld): Likewise.
274 (vsld): Likewise.
275 (vsrad): Likewise.
276 (vsrd): Likewise.
277 (vsubudm): Likewise.
278
279 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
280 support for power8 V2DI instructions.
281
282 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
283 power8 V2DI instructions. Combine pack and unpack insns to use an
284 iterator for each mode. Check whether a particular mode supports
285 Altivec instructions instead of just checking TARGET_ALTIVEC.
286 (UNSPEC_VPKUWUM): Likewise.
287 (UNSPEC_VPKSHSS): Likewise.
288 (UNSPEC_VPKSWSS): Likewise.
289 (UNSPEC_VPKUHUS): Likewise.
290 (UNSPEC_VPKSHUS): Likewise.
291 (UNSPEC_VPKUWUS): Likewise.
292 (UNSPEC_VPKSWUS): Likewise.
293 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
294 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
295 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
296 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
297 (UNSPEC_VUPKHSB): Likewise.
298 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
299 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
300 (UNSPEC_VUPKHSH): Likewise.
301 (UNSPEC_VUPKLSB): Likewise.
302 (UNSPEC_VUPKLSH): Likewise.
303 (VI2): Likewise.
304 (VI_char): Likewise.
305 (VI_scalar): Likewise.
306 (VI_unit): Likewise.
307 (VP): Likewise.
308 (VP_small): Likewise.
309 (VP_small_lc): Likewise.
310 (VU_char): Likewise.
311 (add<mode>3): Likewise.
312 (altivec_vaddcuw): Likewise.
313 (altivec_vaddu<VI_char>s): Likewise.
314 (altivec_vadds<VI_char>s): Likewise.
315 (sub<mode>3): Likewise.
316 (altivec_vsubcuw): Likewise.
317 (altivec_vsubu<VI_char>s): Likewise.
318 (altivec_vsubs<VI_char>s): Likewise.
319 (altivec_vavgs<VI_char>): Likewise.
320 (altivec_vcmpbfp): Likewise.
321 (altivec_eq<mode>): Likewise.
322 (altivec_gt<mode>): Likewise.
323 (altivec_gtu<mode>): Likewise.
324 (umax<mode>3): Likewise.
325 (smax<mode>3): Likewise.
326 (umin<mode>3): Likewise.
327 (smin<mode>3): Likewise.
328 (altivec_vpkuhum): Likewise.
329 (altivec_vpkuwum): Likewise.
330 (altivec_vpkshss): Likewise.
331 (altivec_vpkswss): Likewise.
332 (altivec_vpkuhus): Likewise.
333 (altivec_vpkshus): Likewise.
334 (altivec_vpkuwus): Likewise.
335 (altivec_vpkswus): Likewise.
336 (altivec_vpks<VI_char>ss): Likewise.
337 (altivec_vpks<VI_char>us): Likewise.
338 (altivec_vpku<VI_char>us): Likewise.
339 (altivec_vpku<VI_char>um): Likewise.
340 (altivec_vrl<VI_char>): Likewise.
341 (altivec_vsl<VI_char>): Likewise.
342 (altivec_vsr<VI_char>): Likewise.
343 (altivec_vsra<VI_char>): Likewise.
344 (altivec_vsldoi_<mode>): Likewise.
345 (altivec_vupkhsb): Likewise.
346 (altivec_vupkhs<VU_char>): Likewise.
347 (altivec_vupkls<VU_char>): Likewise.
348 (altivec_vupkhsh): Likewise.
349 (altivec_vupklsb): Likewise.
350 (altivec_vupklsh): Likewise.
351 (altivec_vcmpequ<VI_char>_p): Likewise.
352 (altivec_vcmpgts<VI_char>_p): Likewise.
353 (altivec_vcmpgtu<VI_char>_p): Likewise.
354 (abs<mode>2): Likewise.
355 (vec_unpacks_hi_v16qi): Likewise.
356 (vec_unpacks_hi_v8hi): Likewise.
357 (vec_unpacks_lo_v16qi): Likewise.
358 (vec_unpacks_hi_<VP_small_lc>): Likewise.
359 (vec_unpacks_lo_v8hi): Likewise.
360 (vec_unpacks_lo_<VP_small_lc>): Likewise.
361 (vec_pack_trunc_v8h): Likewise.
362 (vec_pack_trunc_v4si): Likewise.
363 (vec_pack_trunc_<mode>): Likewise.
364
365 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
366 V2DI builtins.
367 (vec_vmaxsd): Likewise.
368 (vec_vmaxud): Likewise.
369 (vec_vminsd): Likewise.
370 (vec_vminud): Likewise.
371 (vec_vpksdss): Likewise.
372 (vec_vpksdus): Likewise.
373 (vec_vpkudum): Likewise.
374 (vec_vpkudus): Likewise.
375 (vec_vrld): Likewise.
376 (vec_vsld): Likewise.
377 (vec_vsrad): Likewise.
378 (vec_vsrd): Likewise.
379 (vec_vsubudm): Likewise.
380 (vec_vupkhsw): Likewise.
381 (vec_vupklsw): Likewise.
382
e70670cf
JH
3832013-05-29 Jan Hubicka <jh@suse.cz>
384
385 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
386 flags; reorder rest of fields in more consistent way.
387 (varpool_node): Remove analyzed, finalized and alias.
388 (cgraph_ndoe): Likewise.
389 (symtab_alias_ultimate_target): New function.
390 (cgraph_function_node): Move offline.
391 (cgraph_reset_node): Declare.
392 (cgraph_comdat_can_be_unshared_p): Remove.
393 (varpool_remove_initializer): Declare.
394 (varpool_first_defined_variable, varpool_next_defined_variable
395 cgraph_first_defined_function, cgraph_next_defined_function): Update.
396 (cgraph_function_with_gimple_body_p): Update.
397 (varpool_all_refs_explicit_p): Update.
398 (symtab_alias_target): New function.
399 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
400 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
401 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
402 (varpool_variable_node): Likewise.
403 * cgraph.c (cgraph_create_function_alias): Update.
404 (cgraph_add_thunk): Update.
405 (cgraph_remove_node): Update.
406 (dump_cgraph_node): Do not dump removed flags.
407 (cgraph_function_body_availability): Update.
408 (cgraph_propagate_frequency): Update.
409 (verify_cgraph_node): Check sanity of local flag.
410 (cgraph_function_node): Move here from cgraph.h; revamp for
411 cgraph_function_or_thunk_node.
412 * lto-symtab.c (lto_varpool_replace_node): Update.
413 (lto_symtab_resolve_can_prevail_p): Update.
414 (lto_symtab_merge_cgraph_nodes): Update.
415 * ipa-cp.c (determine_versionability, initialize_node_lattices,
416 propagate_constants_accross_call, devirtualization_time_bonus,
417 ipcp_propagate_stage): Update.
418 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
419 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
420 * ipa-reference.c (propagate): Update.
421 (write_node_summary_p): Update.
422 * toplev.c (wrapup_global_declaration_2): Update.
423 * cgraphunit.c (cgraph_analyze_function): Rename to ...
424 (analyze_function) ... this one.
425 (cgraph_process_new_functions): Update.
426 (cgraph_reset_node): Export.
427 (cgraph_finalize_function): Update.
428 (cgraph_add_new_function): Update.
429 (process_function_and_variable_attributes): Update.
430 (varpool_finalize_decl): Update.
431 (symbol_finalized): Remove.
432 (symbol_finalized_and_needed): Rename to ...
433 (symbol_defined_and_needed): ... update.
434 (cgraph_analyze_functions): Update.
435 (handle_alias_pairs): Update.
436 (mark_functions_to_output): Update.
437 (assemble_thunk): Update.
438 (output_in_order): Update.
439 (output_weakrefs): Update.
440 (finalize_compilation_unit): Update.
441 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
442 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
443 input_node, input_varpool_node): Update.
444 * dbxout.c (dbxout_expand_expr): Update.
445 * cgraphclones.c (cgraph_clone_node): Update.
446 (cgraph_copy_node_for_versioning): Update.
447 (cgraph_materialize_clone): Update.
448 (cgraph_materialize_all_clones): Update.
449 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
450 propagate_pure_const, propagate_nothrow): Update.
451 * lto-streamer-out.c (lto_output, write_symbol): Update.
452 * ipa-utils.c (ipa_reverse_postorder): Update.
453 * ipa-inline.c (can_inline_edge_p): Update.
454 (update_caller_keys, ipa_inline): Update.
455 * dwarf2out.c (reference_to_unused,
456 premark_types_used_by_global_vars_helper): Update.
457 * tree-eh.c (tree_could_trap_p): Update.
458 * ipa-split.c (consider_split, execute_split_functions): Update.
459 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
460 has_addr_references_p): Update;
461 move ahead in file for better readability.
462 (process_references): Simplify.
463 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
464 bodies are removed.
465 (cgraph_comdat_can_be_unshared_p): Make static.
466 (cgraph_externally_visible_p): Update.
467 (varpool_externally_visible_p): Update.
468 (function_and_variable_visibility): Update.
469 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
470 ipa_tm_mark_force_output_node): Update.
471 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
472 estimate_edge_devirt_benefit, inline_generate_summary,
473 inline_write_summary): Update.
474 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
475 * ipa-prop.c (ipa_compute_jump_functions): Update.
476 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
477 read_replacements_section): Update.
478 * varasm.c (mark_decl_referenced): Update.
479 (assemble_alias, dump_tm_clone_pairs): Update.
480 * tree-inline.c (copy_bb): Update.
481 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
482 Update.
483 * symtab.c (dump_symtab_base): Print new flags.
484 (verify_symtab_base): Verify new flags.
485 (symtab_alias_ultimate_target): New function.
486 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
487 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
488 Update.
489 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
490 * i386.c (ix86_get_function_versions_dispatcher,
491 ix86_generate_version_dispatcher_body): Update.
492 (fold_builtin_cpu): Use varpool_add_new_variable.
493 * varpool.c (varpool_remove_initializer): Break out from ...
494 (varpool_remove_node): ... this one.
495 (dump_varpool_node, varpool_node_for_asm,
496 cgraph_variable_initializer_availability, varpool_analyze_node,
497 varpool_assemble_decl, varpool_remove_unreferenced_decls,
498 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
499
182802ad
JH
5002013-05-29 Jan Hubicka <jh@suse.cz>
501
502 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
503
8190b609
ER
5042013-05-29 Easwaran Raman <eraman@google.com>
505
506 PR tree-optimization/57442
507 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
508 when control exits the main loop.
509
69f5aa9b
SKS
5102013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
511
512 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
513 and RX600.
514 * rx/rx.opt: Add macro for rx100 with string rx100 and value
515 RX100.
516 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
517 * rx/t-rx: Add rx100 under multi library matches option for nofpu
518 option.
519
4b847da9
BS
5202013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
521
522 PR tree-optimization/57441
523 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
524 Don't limit size of incr_vec to number of candidates.
525
4fc43c39
SE
5262013-05-29 Steve Ellcey <sellcey@imgtec.com>
527
528 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
529 and mips16 directories.
530 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
531 mips16.
532 (MULTILIB_DIRNAMES): Ditto.
533 (MULTILIB_EXCEPTIONS): Add new exceptions.
534 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
535 (MULTILIB_DIRNAMES): Ditto.
536 (MULTILIB_EXCEPTIONS): Add new exceptions.
537
a5350ddc
CSS
5382012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
539 Marcus Shawcroft <marcus.shawcroft@arm.com>
540
541 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
542 SYMBOL_TINY_ABSOLUTE.
543 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
544 SYMBOL_TINY_ABSOLUTE.
545 (aarch64_expand_mov_immediate): Likewise.
546 (aarch64_classify_symbol): Likewise.
547 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
548 Permit SYMBOL_TINY_ABSOLUTE.
549 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
550
17f4d4bf
CSS
5512013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
552 Marcus Shawcroft <marcus.shawcroft@arm.com>
553
554 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
555 Refactor if/switch. Replace gcc_assert with if.
556
c0186656
GG
5572013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
558
559 * config/i386/i386.c (initial_ix86_tune_features): Enable
560 FP Reassociation for AMD bdver1 and bdver2.
561
d20188f3
MJ
5622013-05-29 Martin Jambor <mjambor@suse.cz>
563
564 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
565 and IMAGPART_EXPR do not occur within other handled_components.
566
292cba13
RB
5672013-05-29 Richard Biener <rguenther@suse.de>
568
569 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
570 access on whether the use is in the BB we currently try to
571 vectorize.
572 (vect_bb_vectorization_profitable_p): Pass the BB we currently
573 vectorize to vect_bb_slp_scalar_cost.
574
6eddf228
RB
5752013-05-29 Richard Biener <rguenther@suse.de>
576
577 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
578 computing scalar cost offsetted by stmts that are kept live
579 by scalar uses.
580 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
581 for computation of scalar cost.
582
7df36117
SE
5832013-05-28 Steve Ellcey <sellcey@mips.com>
584
585 * config/mips/mips-cpus.def (mips32r2): Change processor type.
586
36536d79
BI
5872013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
588
589 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
590 array notation built-in reduction functions.
591 * doc/passes.texi (Passes): Added documentation about changes done
592 for Cilk Plus.
593 * doc/invoke.texi (C Dialect Options): Added documentation about
594 the -fcilkplus flag.
595 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
596 (BUILTINS_DEF): Depend on cilkplus.def.
597 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
598 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
599 * cilkplus.def: New file.
600
b49eefa5
JR
6012013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
602
603 PR rtl-optimization/57439
604 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
605
9daf6dbb
ER
6062013-05-28 Easwaran Raman <eraman@google.com>
607
608 PR tree-optimization/57337
609 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
610 (find_insert_point): Correctly identify the insertion point
611 when two statements with the same UID is compared.
612
fbd7e877
RB
6132013-05-28 Richard Biener <rguenther@suse.de>
614
615 PR tree-optimization/56787
616 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
617 from the list of data references.
618 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
619 clobbers.
620 (vect_analyze_loop_operations): Likewise.
621 (vect_transform_loop): Remove clobbers.
622
bbba1117
MJ
6232013-05-28 Martin Jambor <mjambor@suse.cz>
624
625 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
626 and REALPART_EXPRs have scalar type.
627
bd388c2a
RB
6282013-05-28 Richard Biener <rguenther@suse.de>
629
630 PR tree-optimization/57411
631 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
632 virtual operands.
633 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
634 virtual operand propagation.
635
2f56a311
EB
6362013-05-28 Eric Botcazou <ebotcazou@adacore.com>
637
638 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
639 destination register for bmasksi_vis.
640 (vector_init_bshuffle): Likewise.
641 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
642
5c3eacbb
EB
6432013-05-28 Eric Botcazou <ebotcazou@adacore.com>
644
645 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
646 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
647 mode if the instruction isn't available in the original mode.
648 * config/sparc/sparc.opt (mfix-ut699): New option.
649 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
650 (divdf3): Turn into expander.
651 (divdf3_nofix): New insn.
652 (divdf3_fix): Likewise.
653 (divsf3): Disable if -mfix-ut699.
654 (sqrtdf2): Turn into expander.
655 (sqrtdf2_nofix): New insn.
656 (sqrtdf2_fix): Likewise.
657 (sqrtsf2): Disable if -mfix-ut699.
658
a1756c0a
RB
6592013-05-27 Richard Biener <rguenther@suse.de>
660
661 PR middle-end/57412
662 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
663 block for the new loop.
664
5a892248
RB
6652013-05-27 Richard Biener <rguenther@suse.de>
666
667 PR tree-optimization/57343
668 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
669 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
670 (number_of_iterations_cond): Do not build the folded tree.
671
d1de852b
RB
6722013-05-27 Richard Biener <rguenther@suse.de>
673
674 Revert
675 PR middle-end/57381
676 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
677 OEP_CONSTANT_ADDRESS_OF retained.
678
679 PR tree-optimization/57417
680 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
681 for unchanged base.
682 (set_ssa_val_to): Compare addresses using
683 get_addr_base_and_unit_offset.
684
7894bc6b
JR
6852013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
686
687 PR rtl-optimization/56833
688 * postreload.c (move2add_record_mode): New function.
689 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
690 (move2add_use_add2_insn): Use move2add_record_sym_value.
691 (move2add_use_add3_insn): Likewise.
692 (reload_cse_move2add): Use move2add_valid_value_p and
693 move2add_record_mode. Invalidate call-clobbered and REG_INC
694 affected regs by setting reg_mode to VOIDmode.
695 (move2add_note_store): Don't pretend the inside of a SUBREG is
696 the actual destination. Invalidate single/leading registers by
697 setting reg_mode to VOIDmode.
698 Use move2add_record_sym_value, move2add_valid_value_p and
699 move2add_record_mode.
700
b03be25f
RB
7012013-05-27 Richard Biener <rguenther@suse.de>
702
703 PR tree-optimization/57396
704 * tree-affine.c (double_int_constant_multiple_p): Properly
705 return false for val == 0 and div != 0.
706
44e88db2
RS
7072013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
708
709 * config/mips/mips.h: Use #elif in preprocessor conditions.
710
3b859704
RS
7112013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
712
713 PR target/53916
714 * config/mips/constraints.md (kl): New constraint.
715 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
716 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
717 constraint for operand 0. Split after CSE for MIPS16. Emit a move
718 from LO for MIPS16.
719 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
720
c979d5f5
RS
7212013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
722
723 PR target/55777
724 * config/mips/mips.c (mips_can_inline_p): New function.
725 (TARGET_CAN_INLINE_P): Define.
726
8e90de43
SB
7272013-05-25 Steven Bosscher <steven@gcc.gnu.org>
728
729 * sched-int.h (ds_t, dw_t): Make unsigned int.
730 Fix documentation that describes how all the ds_t bits are used.
731 Reserve the last bit for delayed-branch scheduling.
732 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
733 (BITS_PER_DEP_WEAK): Fix definition and documentation.
734 (gen_dep_weak_1): Remove prototype.
735 * sched-deps.c (get_dep_weak_1): Make static.
736 * target.def (speculate_insn, needs_block_p, gen_spec_check,
737 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
738 * doc/tm.texi: Regenerate.
739 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
740
cb5cb194
SB
7412013-05-24 Steven Bosscher <steven@gcc.gnu.org>
742
743 PR debug/56950
744 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
745
5bd93ff6
NS
7462013-05-24 Nathan Sidwell <nathan@codesourcery.com>
747 Sandra Loosemore <sandra@codesourcery.com>
748
749 * config.gcc (powerpc-*): Allow native for with-cpu.
750
2343af65
JL
7512013-05-24 Jeff Law <law@redhat.com>
752
753 PR tree-optimization/57124
754 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
755 conversion feeding a condition if the range has an overflow
756 if -fstrict-overflow. Add warnings for when we do make the
757 transformation.
758
3ad695b9
DC
7592013-05-24 Dehao Chen <dehao@google.com>
760
04960246 761 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
762 (locus_discrim_hasher): Likewise.
763 (locus_discrim_hasher::hash): Likewise.
764 (locus_discrim_hasher::equal): Likewise.
765
82338059
MJ
7662013-05-24 Martin Jambor <mjambor@suse.cz>
767
768 PR tree-optimization/57294
769 * cgraph.h (ipa_record_stmt_references): Declare.
770 * cgraphbuild.c (ipa_record_stmt_references): New function.
771 (build_cgraph_edges): Use ipa_record_stmt_references.
772 (rebuild_cgraph_edges): Likewise.
773 (cgraph_rebuild_references): Likewise.
774 * ipa-prop.c (ipa_modify_call_arguments): Discard references
775 associated with the old statement and build references from the
776 newly built statements.
777 * ipa-ref.c (ipa_remove_stmt_references): New function.
778 * ipa-ref.h (ipa_remove_stmt_references): Declare.
779
1ccd4874
VM
7802013-05-24 Vladimir Makarov <vmakarov@redhat.com>
781
55805e54 782 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 783 mem-mem moves.
55805e54 784 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 785 too.
55805e54 786 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
787 secondary memory moves.
788 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
789 reg set up in the current insn.
790
25e25c73
DC
7912013-05-24 Dehao Chen <dehao@google.com>
792
04960246 793 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
794 hash function.
795 (locus_descrim_hasher::equal): Likewise.
04960246 796 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
797 (make_edges): Likewise.
798 (next_discriminator_for_locus): Likewise.
799 (same_line_p): Likewise.
800 (assign_discriminators): Likewise.
801 (make_cond_expr_edges): Likewise.
802 (make_gimple_switch_edges): Likewise.
803 (make_goto_expr_edges): Likewise.
804 (make_gimple_asm_edges): Likewise.
805
50d38551
IB
8062013-05-24 Ian Bolton <ian.bolton@arm.com>
807
808 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
809 X format specifier to only display bottom 16 bits.
810 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
811 immediate to match for operand 2, since it will be masked.
812
aea0101d
RB
8132013-05-24 Richard Biener <rguenther@suse.de>
814
815 PR tree-optimization/57287
816 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
817 all SSA names that occur in abnormal PHIs.
818
634e03d3
AI
8192013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
820
821 PR tree-ssa/57385
822 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
823 that index is not negative.
824
b17c024f
EB
8252013-05-24 Eric Botcazou <ebotcazou@adacore.com>
826
827 PR rtl-optimization/55177
828 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
829 (simplify_byte_swapping_operation): New.
830 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
831 (simplify_relational_operation_1): Deal with BSWAP.
832
46aeac1b
RH
8332013-05-23 Richard Henderson <rth@redhat.com>
834
835 PR target/56742
836 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
837 (ix86_reorg): Call it.
838
70cc1536
UB
8392013-05-23 Uros Bizjak <ubizjak@gmail.com>
840
841 PR target/57379
842 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
843 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
844 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
845
b3851501
CB
8462013-05-23 Christian Bruel <christian.bruel@st.com>
847
848 PR debug/57351
849 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
850
4e194912
CSS
8512013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
852 Marcus Shawcroft <marcus.shawcroft@arm.com>
853
854 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
855 * config/aarch64/constraints.md (Usa): Remove.
856 * doc/md.texi (AArch64 Usa): Remove.
857
83f8c414
CSS
8582013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
859 Marcus Shawcroft <marcus.shawcroft@arm.com>
860
861 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
862 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
863 * config/aarch64/predicates.md (aarch64_const_address): Remove.
864 (aarch64_mov_operand): Use aarch64_mov_operand_p.
865
b5574232
VP
8662013-05-23 Vidya Praveen <vidyapraveen@arm.com>
867
868 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
869 instruction (AdvSIMD).
870 * config/aarch64/aarch64-builtins.c
871 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
872 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
873
76c36cb1 8742013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
875
876 PR middle-end/57347
877 * tree.h (contains_bitfld_component_ref_p): Declare.
878 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
879 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
880 caller.
7d2fb524
MJ
881 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
882 not access a bit-field. Assert all final offsets are byte-aligned.
883
ce521ae6
RB
8842013-05-23 Richard Biener <rguenther@suse.de>
885
886 PR tree-optimization/57380
887 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
888 least one invariant or re-used load.
889 * passes.c (init_optimization_passes): Move pass_phiprop before
890 pass_forwprop.
891
75c7257f
JG
8922013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
893
894 * config/aarch64/aarch64-simd.md
895 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
896
af6d44b5
RB
8972013-05-23 Richard Biener <rguenther@suse.de>
898
899 PR middle-end/57381
900 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
901 OEP_CONSTANT_ADDRESS_OF retained.
902
bd3647bf
JJ
9032013-05-23 Jakub Jelinek <jakub@redhat.com>
904
905 PR middle-end/57344
70cc1536
UB
906 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
907 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 908
a55757ea
RB
9092013-05-23 Richard Biener <rguenther@suse.de>
910
911 PR rtl-optimization/57341
912 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
913 instead of true_dependence.
914
cfb00b41
DM
9152013-05-22 David Malcolm <dmalcolm@redhat.com>
916
dd1c676f
DM
917 * bb-reorder.c (branch_threshold): Make const.
918 (exec_threshold): Ditto.
cfb00b41 919
f62511da
MM
9202013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
921 Pat Haugen <pthaugen@us.ibm.com>
922 Peter Bergner <bergner@vnet.ibm.com>
923
924 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
925 documentation for the power8 crypto builtins.
926
927 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
928
929 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
930 macros for defining power8 builtin functions.
931 (BU_P8V_AV_2): Likewise.
932 (BU_P8V_AV_P): Likewise.
933 (BU_P8V_VSX_1): Likewise.
934 (BU_P8V_OVERLOAD_1): Likewise.
935 (BU_P8V_OVERLOAD_2): Likewise.
936 (BU_CRYPTO_1): Likewise.
937 (BU_CRYPTO_2): Likewise.
938 (BU_CRYPTO_3): Likewise.
939 (BU_CRYPTO_OVERLOAD_1): Likewise.
940 (BU_CRYPTO_OVERLOAD_2): Likewise.
941 (XSCVSPDP): Fix typo, point to the correct instruction.
942 (VCIPHER): Add power8 crypto builtins.
943 (VCIPHERLAST): Likewise.
944 (VNCIPHER): Likewise.
945 (VNCIPHERLAST): Likewise.
946 (VPMSUMB): Likewise.
947 (VPMSUMH): Likewise.
948 (VPMSUMW): Likewise.
949 (VPERMXOR_V2DI): Likewise.
950 (VPERMXOR_V4SI: Likewise.
951 (VPERMXOR_V8HI: Likewise.
952 (VPERMXOR_V16QI: Likewise.
953 (VSHASIGMAW): Likewise.
954 (VSHASIGMAD): Likewise.
955 (VPMSUM): Likewise.
956 (VPERMXOR): Likewise.
957 (VSHASIGMA): Likewise.
958
959 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
960 __CRYPTO__ if the crypto instructions are available.
961 (altivec_overloaded_builtins): Add support for overloaded power8
962 builtins.
963
964 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
965 support for power8 crypto builtins.
966 (builtin_function_type): Likewise.
967 (altivec_init_builtins): Add support for builtins that take vector
968 long long (V2DI) arguments.
969
970 * config/rs6000/crypto.md: New file, define power8 crypto
971 instructions.
972
9732013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
974 Pat Haugen <pthaugen@us.ibm.com>
975 Peter Bergner <bergner@vnet.ibm.com>
976
977 * doc/invoke.texi (Option Summary): Add power8 options.
978 (RS/6000 and PowerPC Options): Likewise.
979
980 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
981 constraints.md instead of rs6000.h. Reorder w* constraints. Add
982 wm, wn, wr documentation.
983
984 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
985 registers if direct move instructions are enabled.
986 (wn): New constraint for no registers.
987 (wq): New constraint for quad word even GPR registers.
988 (wr): New constraint if 64-bit instructions are enabled.
989 (wv): New constraint if power8 vector instructions are enabled.
990 (wQ): New constraint for quad word memory locations.
991
992 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
993 constraint for 0..15 for crypto instructions.
994 (gpc_reg_operand): If VSX allow registers in VSX registers as well
995 as GPR and floating point registers.
996 (int_reg_operand): New predicate to match only GPR registers.
997 (base_reg_operand): New predicate to match base registers.
998 (quad_int_reg_operand): New predicate to match even GPR registers
999 for quad memory operations.
1000 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1001 operations in both GPR and VSX registers.
1002 (quad_memory_operand): New predicate for quad memory operations.
1003 (reg_or_indexed_operand): New predicate for direct move support.
1004
1005 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1006 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1007 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1008 (POWERPC_MASKS): Add power8 options.
1009 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1010 various options.
1011
1012 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1013 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1014
1015 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1016 (-mpower8-fusion): New power8 options.
1017 (-mpower8-fusion-sign): Likewise.
1018 (-mpower8-vector): Likewise.
1019 (-mcrypto): Likewise.
1020 (-mdirect-move): Likewise.
1021 (-mquad-memory): Likewise.
1022
1023 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1024 power8.
1025 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1026 registers.
70cc1536 1027 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
1028 (rs6000_debug_vector_unit): Add p8_vector.
1029 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1030 definitions. Also print fusion state.
1031 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1032 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1033 (rs6000_option_override_internal): Add support for power8.
1034 (rs6000_common_init_builtins): Add debugging for skipped builtins
1035 if -mdebug=builtin.
1036 (rs6000_adjust_cost): Add power8 support.
1037 (rs6000_issue_rate): Likewise.
1038 (insn_must_be_first_in_group): Likewise.
1039 (insn_must_be_last_in_group): Likewise.
1040 (force_new_group): Likewise.
1041 (rs6000_register_move_cost): Likewise.
1042 (rs6000_opt_masks): Likewise.
1043
1044 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1045 power8 capable assembler, default to power7 options.
1046 (TARGET_DIRECT_MOVE): Likewise.
1047 (TARGET_CRYPTO): Likewise.
1048 (TARGET_P8_VECTOR): Likewise.
1049 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1050 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1051 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1052 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1053 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1054 (TARGET_XSCVDPSPN): Likewise.
1055 (TARGET_XSCVSPDPN): Likewsie.
1056 (TARGET_SYNC_HI_QI): Likewise.
1057 (TARGET_SYNC_TI): Likewise.
1058 (MASK_CRYPTO): Likewise.
1059 (MASK_DIRECT_MOVE): Likewise.
1060 (MASK_P8_FUSION): Likewise.
1061 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
1062 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1063 temporary used by some of the direct move instructions to get two FP
1064 temporary registers does not force creation of a stack frame.
f62511da
MM
1065 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1066 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1067 that any VSX registers are tieable, even if they are also an
1068 Altivec vector mode.
1069 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1070 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1071 (RS6000_BTM_CRYPTO): Likewise.
1072 (RS6000_BTM_COMMON): Likewise.
1073
1074 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1075 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1076 (enum rs6000_vector): Add power8 vector support.
1077
73a1a707
RR
10782013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1079
1080 PR target/19599
1081 PR target/57340
1082 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1083 (any_sibcall_could_use_r3): this and handle indirect calls.
1084 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1085
d28073d4
BS
10862013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1087
1088 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1089
bee0b10c
RB
10902013-05-22 Richard Biener <rguenther@suse.de>
1091
1092 PR middle-end/57349
1093 * profile.c (branch_prob): Do not split blocks that are
1094 abnormally receiving from ECF_RETURNS_TWICE functions.
1095
98409b51
RS
10962013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1097
1098 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1099 address mode. Move pointer mode initialization to the same place.
1100
c0602ab8
MZ
11012013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1102
1103 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1104 while it has any effect.
1105
4f7a634e
ER
11062013-05-21 Easwaran Raman <eraman@google.com>
1107
1108 PR tree-optimization/57322
9daf6dbb
ER
1109 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1110 UID of the statement added to the BB to be 1.
4f7a634e 1111
a4ce1258
JJ
11122013-05-21 Jakub Jelinek <jakub@redhat.com>
1113
1114 PR tree-optimization/57331
70cc1536
UB
1115 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1116 of conversion from pointer type to integral type with integer.
a4ce1258 1117
1b14621a
MJ
11182013-05-21 Martin Jambor <mjambor@suse.cz>
1119
1120 PR lto/57289
1121 * ipa-prop.c (ipa_read_node_info): Process param_used and
1122 controlled_uses in the same order as when writing.
1123
e60661f0
MG
11242013-05-21 Magnus Granberg <baldrick@free.fr>
1125
1126 PR plugins/56754
ee49aa34 1127 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 1128
4a61be9a
RB
11292013-05-21 Richard Biener <rguenther@suse.de>
1130
1131 PR tree-optimization/57318
1132 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1133 estimate stmts with side-effects as likely eliminated.
1134
c52da5f7
RB
11352013-05-21 Richard Biener <rguenther@suse.de>
1136
1137 PR tree-optimization/57330
1138 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1139 preserve the call stmts fntype.
1140
7ec67e2a
RB
11412013-05-21 Richard Biener <rguenther@suse.de>
1142
1143 PR tree-optimization/57303
1144 * tree-ssa-sink.c (statement_sink_location): Improve killing
1145 stmt detection and properly handle self-assignments.
1146
b112d513
CB
11472013-05-21 Christian Bruel <christian.bruel@st.com>
1148
55805e54
YR
1149 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1150 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
1151 registers. Set register size out of the PARALLEL loop.
1152
14c2ec26
OE
11532013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1154
1155 PR target/56547
1156 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1157 (*fmasf4, *fmasf4_media): New insns.
1158
da734fa1
RS
11592013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1160
1161 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1162 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1163 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1164 (mips_idiv_insns): Update the comments to say that the returned
1165 instruction counts are in units of BASE_INSN_LENGTH.
1166 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1167 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1168 using 2 rather than 4 as the length of indirect MIPS16 and
1169 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1170 length of a NOP. Don't divide MIPS16 lengths by 2.
1171 (mips16_split_long_branches): Assume a branch is long if the
1172 length is greater than 4 rather than 8.
1173 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1174 rather than multiplying them by 2. Multiply instruction counts
1175 by BASE_INSN_LENGTH rather than 4.
1176 (*jump_mips16, tls_get_tp_mips16_<mode>)
1177 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1178
13719e8b
RS
11792013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1180
1181 * config/mips/mips.md (extended_mips16): Remove branch case.
1182 (length): Remove duplicated extended_mips16 test.
1183
c3850d14
RS
11842013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1185
1186 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1187
8da2e059
RS
11882013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1189
1190 * recog.h (Recog_data): Rename to...
1191 (recog_data_d): ...this.
1192 (recog_data): Update accordingly.
1193 * recog.c (recog_data): Likewise.
1194 * reload.c (save_recog_data): Likewise.
1195 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1196 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1197
2df013f3
JB
11982013-05-17 Julian Brown <julian@codesourcery.com>
1199
1200 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1201 found in a REG_EQUAL note, invalidate it.
1202
933f507d
ER
12032013-05-17 Easwaran Raman <eraman@google.com>
1204
1205 * tree-ssa-reassoc.c (find_insert_point): New function.
1206 (insert_stmt_after): Likewise.
1207 (get_def_stmt): Likewise.
1208 (ensure_ops_are_available): Likewise.
1209 (not_dominated_by): Likewise.
1210 (rewrite_expr_tree): Do not move statements beyond what is
1211 necessary. Remove call to swap_ops_for_binary_stmt...
1212 (reassociate_bb): ... and move it here.
1213 (build_and_add_sum): Assign UIDs for new statements.
1214 (linearize_expr): Likewise.
1215 (do_reassoc): Renumber gimple statement UIDs.
1216
e01c7cca
JH
12172013-05-17 Jan Hubicka <jh@suse.cz>
1218
1219 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1220 weakrefs.
1221 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
1222 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1223 weakrefs.
e01c7cca
JH
1224 (output_weakrefs): Update.
1225
c3272a92
PCC
12262013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1227 Martin Jambor <mjambor@suse.cz>
1228
1229 PR middle-end/57276
1230 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1231 value that corresponds to the given aggval is found in values vector.
1232
11c2aa39
UB
12332013-05-17 Uros Bizjak <ubizjak@gmail.com>
1234
1235 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1236 sse, sse2, sse3, ssse3 and sse4a flags to options.
1237
abecc8c6
DM
12382013-05-17 David Malcolm <dmalcolm@redhat.com>
1239
1240 * gengtype-state.c: (s_expr_writer): New class, to handle
1241 prettifying of output layout of s-expressions.
1242 (state_writer): New class, to write out gtype.state.
1243 (state_written_type_count): Move this variable into member data of
1244 state_writer.
1245 (s_expr_writer::s_expr_writer): New code: constructor for new class
1246 (state_writer::state_writer(): ditto
1247 (s_expr_writer::write_new_line): New function
1248 (s_expr_writer::write_any_indent): ditto
1249 (s_expr_writer::begin_s_expr): ditto
1250 (s_expr_writer::end_s_expr): ditto
1251 (write_state_fileloc): convert to method of state_writer...
1252 (state_writer:: write_state_fileloc): ...and use methods of
1253 s_expr_writer to write indentation into the gtype.state output file
1254 to visually represent the hierarchical structure of the list
1255 structures
1256 (write_state_fields): ditto, renaming to...
1257 (state_writer::write_state_fields)
1258 (write_state_a_string): ditto, renaming to...
1259 (state_writer::write_state_a_string)
1260 (write_state_string_option): ditto, renaming to...
1261 (state_writer::write_state_string_option)
1262 (write_state_type_option): ditto, renaming to...
1263 (state_writer::write_state_type_option)
1264 (write_state_nested_option): ditto, renaming to...
1265 (state_writer::write_state_nested_option)
1266 (write_state_option): ditto, renaming to...
1267 (state_writer::write_state_option)
1268 (write_state_options): ditto, renaming to...
1269 (state_writer::write_state_options)
1270 (write_state_lang_bitmap): ditto, renaming to...
1271 (state_writer::write_state_lang_bitmap)
1272 (write_state_version): ditto, renaming to...
1273 (state_writer::write_state_version)
1274 (write_state_scalar_type): ditto, renaming to...
1275 (state_writer::write_state_scalar_type)
1276 (write_state_string_type): ditto, renaming to...
1277 (state_writer::write_state_string_type)
1278 (write_state_undefined_type): ditto, renaming to...
1279 (state_writer::write_state_undefined_type)
1280 (write_state_struct_union_type): ditto, renaming to...
1281 (state_writer::write_state_struct_union_type)
1282 (write_state_struct_type): ditto, renaming to...
1283 (state_writer::write_state_struct_type)
1284 (write_state_user_struct_type): ditto, renaming to...
1285 (state_writer::write_state_user_struct_type)
1286 (write_state_lang_struct_type): ditto, renaming to...
1287 (state_writer::write_state_lang_struct_type)
1288 (write_state_param_struct_type): ditto, renaming to...
1289 (state_writer::write_state_param_struct_type)
1290 (write_state_pointer_type): ditto, renaming to...
1291 (state_writer::write_state_pointer_type)
1292 (write_state_array_type): ditto, renaming to...
1293 (state_writer::write_state_array_type)
1294 (write_state_gc_used): ditto, renaming to...
1295 (state_writer::write_state_gc_used)
1296 (write_state_common_type_content): ditto, renaming to...
1297 (state_writer::write_state_common_type_content)
1298 (write_state_type): ditto, renaming to...
1299 (state_writer::write_state_type)
1300 (write_state_pair_list): ditto, renaming to...
1301 (state_writer::write_state_pair_list)
1302 (write_state_pair): ditto, renaming to...
1303 (state_writer::write_state_pair)
1304 (write_state_typedefs): ditto, renaming to...
1305 (state_writer::write_state_typedefs)
1306 (write_state_structures): ditto, renaming to...
1307 (state_writer::write_state_structures)
1308 (write_state_param_structs): ditto, renaming to...
1309 (state_writer::write_state_param_structs)
1310 (write_state_variables): ditto, renaming to...
1311 (state_writer::write_state_variables)
1312 (write_state_srcdir): ditto, renaming to...
1313 (state_writer::write_state_srcdir)
1314 (write_state_files_list): ditto, renaming to...
1315 (state_writer::write_state_files_list)
1316 (write_state_languages): ditto, renaming to...
1317 (state_writer::write_state_languages)
1318 (write_state): create a state_writer instance and use it when
1319 writing out the state file
1320
d6545f29
MS
13212013-05-17 Mike Stump <mikestump@comcast.net>
1322
816a3f73 1323 PR rtl-optimization/57304
d6545f29
MS
1324 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1325 accessing DF_REF_REAL_LOC.
1326
38c821cf
JJ
13272013-05-17 Jakub Jelinek <jakub@redhat.com>
1328
1329 PR rtl-optimization/57281
1330 PR rtl-optimization/57300
1331 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1332 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1333 what the other splitter did if the registers are dead.
1334
2a293391
RB
13352013-05-17 Richard Biener <rguenther@suse.de>
1336
1337 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1338 MEM_REF offsets.
1339
17042d2b
JJ
13402013-05-17 Jakub Jelinek <jakub@redhat.com>
1341
1342 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1343 linking.
1344
5b115c1f
MP
13452013-05-17 Marek Polacek <polacek@redhat.com>
1346
11c2aa39
UB
1347 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1348 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 1349
52d84413
JJ
13502013-05-17 Jakub Jelinek <jakub@redhat.com>
1351
68119618
JJ
1352 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1353 vect_external_def oprnd1 with loop_vinfo, try to emit
1354 optional cast, negation and and stmts on the loop preheader
1355 edge instead of into the pattern def seq.
1356
52d84413
JJ
1357 PR tree-optimization/57051
1358 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1359 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1360
17b962bd
NC
13612013-05-16 Nick Clifton <nickc@redhat.com>
1362
1363 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1364 (rl78_is_naked_func): New function.
1365 (rl78_expand_prologue): Skip prologue generation for naked
1366 functions.
1367 (rl78_expand_epilogue): Skip epilogue generation for naked
1368 functions.
1369 * doc/extend.texi (naked): Add RL78 to the list of processors
1370 that supports this attribute.
1371
b1a0f84e
JL
13722013-05-16 Jeff Law <law@redhat.com>
1373
1374 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1375
af0e415b
UB
13762013-05-16 Uros Bizjak <ubizjak@gmail.com>
1377
1378 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1379 cache parameters using detect_caches_amd also for CYRIX,
1380 NSC and TM2 signatures.
1381
19db293a
UB
13822013-05-16 Uros Bizjak <ubizjak@gmail.com>
1383 Dzianis Kahanovich <mahatma@eu.by>
1384
1385 PR target/45359
1386 PR target/46396
1387 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1388 VIA/Centaur processors and determine their cache parameters
1389 using detect_caches_amd.
1390
251a41b9
TJ
13912013-05-16 Teresa Johnson <tejohnson@google.com>
1392
1393 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1394 (rtl_verify_edges): New function.
1395 (rtl_verify_bb_insns): Ditto.
1396 (rtl_verify_bb_pointers): Ditto.
1397 (rtl_verify_bb_insn_chain): Ditto.
1398 (rtl_verify_fallthru): Ditto.
1399 (rtl_verify_bb_layout): Ditto.
1400 (rtl_verify_flow_info_1): Outline checks into new functions.
1401 (rtl_verify_flow_info): Ditto.
1402
f14540b6
SE
14032013-05-16 Steve Ellcey <sellcey@imgtec.com>
1404
1405 * cfghooks.c (copy_bbs): Add update_dominance argument.
1406 * cfghooks.h (copy_bbs): Update prototype.
1407 * tree-cfg.c (gimple_duplicate_sese_region):
1408 Add update_dominance argument.
1409 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1410 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1411 gimple_duplicate_sese_region call.
1412 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1413 Update copy_bbs call.
1414 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1415 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1416
7e9a3abb
JJ
14172013-05-16 Jakub Jelinek <jakub@redhat.com>
1418
1419 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1420 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1421 vect_recog_rotate_pattern.
1422 (vect_recog_rotate_pattern): New function.
1423
427b248d
JM
14242013-05-16 Jason Merrill <jason@redhat.com>
1425
1426 * Makefile.in (LLINKER): New variable.
1427 (mostlyclean): Remove link mutex.
1428 * configure.ac: Handle --enable-link-mutex.
1429 * lock-and-run.sh: New script.
1430
b871e3d2
RR
14312013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1432
1433 PR target/19599
1434 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1435 for NULL decl.
1436
ce858126
RO
14372013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1438
1439 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1440
798d3d04
GY
14412013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1442
1443 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1444 * config/arm/arm.c (next_consecutive_mem): New function.
1445 (gen_movmem_ldrd_strd): Likewise.
1446 * config/arm/arm.md (movmemqi): Update condition and code.
1447 (unaligned_loaddi, unaligned_storedi): New patterns.
1448
0baddc45
RO
14492013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1450
1451 * config.gcc: Obsolete *-*-solaris2.9*.
1452 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1453
aa9d5bcf
RB
14542013-05-16 Richard Biener <rguenther@suse.de>
1455
1456 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1457 earlier, after GRAPHITE transforms and IV canonicalization.
1458
5a0f4dd3
JJ
14592013-05-16 Jakub Jelinek <jakub@redhat.com>
1460
1461 * omp-low.c (extract_omp_for_data): For collapsed loops,
1462 if at least one of the loops is known at compile time to
1463 iterate zero times, set count to 0.
1464 (expand_omp_regimplify_p): New function.
1465 (expand_omp_for_generic): For collapsed loops, if at least
1466 one of the loops isn't known to iterate at least once,
1467 add runtime check with setting count to 0.
1468 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1469 For unsigned types if it isn't known at compile time that
1470 the loop will iterate at least once, add runtime check to bypass
1471 the whole loop if initial condition isn't true.
1472
e3753785
NS
14732013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1474
1475 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1476
43bb4dd1
MG
14772013-05-16 Marc Glisse <marc.glisse@inria.fr>
1478
1479 PR middle-end/57286
1480 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1481 transformations to avoid an infinite loop.
1482
3571dde6
MP
14832013-05-16 Marek Polacek <polacek@redhat.com>
1484
1485 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1486
b8b3f0ca
LE
14872013-05-15 Leif Ekblad <leif@rdos.net>
1488
1489 * config/i386/i386.c (ix86_decompose_address): Use
1490 DEFAULT_TLS_SEG_REG to access TLS segment register.
1491 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1492 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1493 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1494
e299a383
RS
14952013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1496
1497 PR target/57260
1498 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1499 sibling calls to functions that would normally be lazily bound,
1500 unless $gp is call-clobbered.
1501
e7208ea3
UB
15022013-05-15 Uros Bizjak <ubizjak@gmail.com>
1503
19db293a 1504 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 1505 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
1506 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1507 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
1508 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1509 of TARGET_3DNOW.
1510 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1511
e7413f3d
AS
15122013-05-15 Andreas Schwab <schwab@suse.de>
1513
1514 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1515 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1516 third operand.
1517
ad4db775
TJ
15182013-05-15 Teresa Johnson <tejohnson@google.com>
1519
1520 * loop-unroll.c (report_unroll_peel): Check decision before
1521 emitting unroll/peel message.
1522
af205f67
TJ
15232013-05-15 Teresa Johnson <tejohnson@google.com>
1524
1525 * function.h (has_bb_partition): New rtl_data flag.
1526 (bb_reorder_complete): Ditto.
1527 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1528 instead of flag_reorder_blocks_and_partition.
1529 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1530 with some enhancements.
1531 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1532 * bb-reorder.c (connect_traces): Check for has_bb_partition
1533 instead of flag_reorder_blocks_and_partition.
1534 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1535 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1536 verify_hot_cold_block_grouping.
1537 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1538
9adcfa3c
RR
15392013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1540
1541 PR target/19599
1542 * config/arm/predicates.md (call_insn_operand): New predicate.
1543 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1544 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1545 if insn is not a tail call.
1546 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1547 registers.
1548 * config/arm/arm.h (enum reg_class): New caller save register class.
1549 (REG_CLASS_NAMES): Likewise.
1550 (REG_CLASS_CONTENTS): Likewise.
1551 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1552 without decls.
1553
ccb3ad87
RB
15542013-05-15 Richard Biener <rguenther@suse.de>
1555
1556 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1557 of MSG_OPTIMIZED_LOCATIONS.
1558 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1559 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1560 message.
1561 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1562 of MSG_OPTIMIZED_LOCATIONS.
1563 (execute_vect_slp): Likewise.
1564 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1565 (vect_create_cond_for_alias_checks): Likewise.
1566 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1567 (vect_recog_widen_mult_pattern): Likewise.
1568 (vect_recog_widen_sum_pattern): Likewise.
1569 (vect_recog_over_widening_pattern): Likewise.
1570 (vect_recog_widen_shift_pattern): Likewise.
1571 (vect_recog_vector_vector_shift_pattern): Likewise.
1572 (vect_recog_divmod_pattern): Likewise.
1573 (vect_recog_mixed_size_cond_pattern): Likewise.
1574 (vect_recog_bool_pattern): Likewise.
1575 (vect_pattern_recog_1): Likewise.
1576
48b1474e
MJ
15772013-05-15 Martin Jambor <mjambor@suse.cz>
1578
1579 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1580 non-functions to builtin_unreachable.
1581 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1582 correct when new direct edges were discovered.
1583
9de04252
MJ
15842013-05-15 Martin Jambor <mjambor@suse.cz>
1585
1586 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1587 header, print symbol order instead of node uid, print more information
1588 about indirect edge targets.
1589 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1590 uids.
1591 (ipa_make_edge_direct_to_target): Likewise.
1592 (remove_described_reference): Likewise.
1593 (propagate_controlled_uses): Likewise.
1594 (ipa_print_node_params): Also print symbol order.
1595 (ipcp_transform_function): Print symbol order instead of node uids.
1596 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1597 (cgraph_get_create_real_symbol_node): Likewise.
1598 * ipa-cp.c (print_lattice): Likewise.
1599 (print_all_lattices): Likewise.
1600 (determine_versionability): Likewise.
1601 (initialize_node_lattices): Likewise.
1602 (estimate_local_effects): Likewise.
1603 (update_profiling_info): Likewise.
1604 (create_specialized_node): Likewise.
1605 (perhaps_add_new_callers): Likewise.
1606 (decide_about_value): Likewise.
1607 (decide_whether_version_node): Likewise.
1608 (identify_dead_nodes): Likewise.
1609 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1610 (dump_inline_summary): Likewise.
1611 (estimate_node_size_and_time): Likewise.
1612 (inline_analyze_function): Likewise.
1613 * ipa-inline.c (report_inline_failed_reason): Likewise.
1614 (want_early_inline_function_p): Likewise.
1615 (edge_badness): Likewise.
1616 (update_edge_key): Likewise.
1617 (inline_small_functions): Likewise. Add dumping of order to two other
1618 dumps.
1619 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1620 instead of node uids.
1621 (propagate_pure_const): Likewise.
1622 (propagate_pure_const): Likewise.
1623 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1624 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1625 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1626 of node uids.
1627 * tree-pretty-print.c (dump_function_header): Likewise.
1628 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1629 Print symbol order instead of node uids.
1630
1dd03b91
AK
16312013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1632
1633 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1634 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1635
fdf6a7b9
RB
16362013-05-15 Richard Biener <rguenther@suse.de>
1637
1638 PR tree-optimization/57275
1639 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1640 return value for fail to do runtime alias checks for gather loads.
1641
2d6e4603
JH
16422013-05-15 Jan Hubicka <jh@suse.cz>
1643
1644 PR lto/57038
1645 PR lto/47375
e7208ea3
UB
1646 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1647 weakrefs are not external.
1648 (lto_symtab_merge_decls): Fix thinko when dealing with
1649 non-lto_symtab decls.
2d6e4603
JH
1650 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1651 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1652 * varpool.c (dump_varpool_node): Dump more flags.
1653
83f44b39
GG
16542013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1655
1656 * config/i386/i386.c (processor_alias_table): Add instruction
1657 FSGSBASE for AMD bdver3 architecture.
1658
2e55d062
JJ
16592013-05-14 Jakub Jelinek <jakub@redhat.com>
1660
1661 * tree.c (warn_deprecated_use): Print file:line using locus color.
1662 * diagnostic.c (diagnostic_report_current_module): Print file:line
1663 and file:line:column using locus color.
1664
0bfdb81e
MS
16652013-05-14 Mike Stump <mikestump@comcast.net>
1666
1667 * gdbinit.in: Add __null.
1668
a508ef22
MS
16692013-05-14 Mike Stump <mikestump@comcast.net>
1670
1671 * recog.h: Rename struct recog_data to Recog_data.
1672 * recog.c: Likewise.
1673 * reload.c (can_reload_into): Likewise.
1674 * config/picochip/picochip.c: Likewise.
1675
e7180acb
MS
16762013-05-14 Mike Stump <mikestump@comcast.net>
1677
1678 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1679
61216c26
SB
16802013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1681
fd6beed4
SB
1682 * resource.h (struct resources): Remove unch_memory member.
1683 (CLEAR_RESOURCE): Don't clear unch_memory.
1684 * resource.c (mark_referenced_resources): Don't set it.
1685 (mark_set_resources): Likewise.
1686 (mark_target_live_regs): Don't clear it.
1687 (init_resource_info): Likewise.
1688 * reorg.c (resource_conflicts_p): Don't compare it.
1689 (redundant_insn): Don't set it.
1690
61216c26
SB
1691 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1692 Remove prototypes.
1693 * emit-rtl.c (next_label): Remove unused function.
1694 (skip_consecutive_labels, link_cc0_insns): Move to ...
1695 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1696 only place where these functions are used, and make them static.
1697
418d1b87
MG
16982013-05-14 Marc Glisse <marc.glisse@inria.fr>
1699
1700 * fold-const.c (fold_negate_expr): Handle vectors.
1701 (fold_truth_not_expr): Make it static.
1702 (fold_invert_truthvalue): New static function.
1703 (invert_truthvalue_loc): Handle vectors. Do not call
1704 fold_truth_not_expr directly.
1705 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1706 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1707 (fold_comparison): Handle vector constants.
1708 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1709 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1710 * tree.h (fold_truth_not_expr): Remove declaration.
1711
fc21784d
JG
17122013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1713
1714 * config/aarch64/aarch64-simd.md
1715 (aarch64_vcond_internal<mode>): Rename to...
1716 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1717 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1718 float modes. Clarify all iterator modes.
1719 (vcond<mode><mode>): Use new name for vcond expanders.
1720 (vcond<v_cmp_result><mode>): Likewise.
1721 (vcondu<mode><mode>: Likewise.
1722 * config/aarch64/iterators.md (VDQF_COND): New.
1723
d4c52634
MG
17242013-05-14 Marc Glisse <marc.glisse@inria.fr>
1725
1726 PR bootstrap/57266
1727 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1728 variable for the shift amount. Check that we shift by non-negative
1729 amounts.
1730
2b261262
CLT
17312013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1732
1733 PR target/42017
1734 * config/arm/arm.h (EPILOGUE_USES): Only return true
1735 for LR_REGNUM after epilogue_completed.
1736
6e022d7b
JR
17372013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1738
1739 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1740 is error_mark_node.
6e022d7b 1741
56cf7859
RO
17422013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743
1744 PR target/57261
1745 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1746 and Solaris 11+/x86 with gld.
1747 * configure: Regenerate.
1748
75776c6d
JJ
17492013-05-14 Jakub Jelinek <jakub@redhat.com>
1750
1751 * expmed.c (expand_shift_1): Canonicalize rotates by
1752 constant bitsize / 2 to bitsize - 1.
7f998021 1753 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
1754 case ROTATERT>: Likewise.
1755
1756 Revert:
1757 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1758
1759 * config/i386/i386.md (rotateinv): New code attr.
1760 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1761 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1762 roll $31, %eax, etc.
1763
df35498a
RB
17642013-05-14 Richard Biener <rguenther@suse.de>
1765
1766 PR middle-end/57235
1767 * tree-eh.c (sink_clobbers): Give up for successors with
1768 multiple predecessors and no virtual uses.
1769
cc6e7ece
EB
17702013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1771
1772 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1773 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1774
f778dd4d
JJ
17752013-05-14 Jakub Jelinek <jakub@redhat.com>
1776
1777 PR middle-end/57251
1778 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1779 the case when both op0 and op1 have VOIDmode.
1780
bad4df9b
KP
17812013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1782
1783 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1784 in multiply-accumulate mode.
1785
56f3e9ac
GW
17862013-05-13 Guozhi Wei <carrot@google.com>
1787
1788 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1789
a3d7ab92
KT
17902013-05-13 Kai Tietz <ktietz@redhat.com>
1791
1792 PR target/56975
1793 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1794 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1795 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1796 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1797 (ix86_expand_prologue): Likewise.
1798 (ix86_expand_split_stack_prologue): Likewise.
1799 (legitimate_pic_address_disp_p): Likewise.
1800 (legitimize_pic_address): Likewise.
1801 (legitimize_tls_address): Likewise.
1802 (legitimize_pe_coff_symbol): Likewise.
1803 (output_pic_addr_const): Likewise.
1804 (construct_plt_address): Likewise.
1805 (ix86_expand_call): Likewise.
1806 (x86_output_mi_thunk): Likewise.
1807 (x86_function_profiler): Likewise.
1808
c59b7e28
SN
18092013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1810
1811 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1812 similar switch cases.
1813 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1814 (aarch64_simd_mov_to_<mode>low): Delete.
1815 (aarch64_simd_mov_to_<mode>high): Delete.
1816 (move_lo_quad_<mode>): Add w<-r alternative.
1817 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1818 (aarch64_simd_mov_from_*): Update type attribute.
1819 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1820 statement.
1821
5f28524a
JH
18222013-05-13 Jan Hubicka <jh@suse.cz>
1823
1824 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1825 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1826 ix86_expand_epilogue, emit_i387_cw_initialization,
1827 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1828 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1829
ae6fa899
JJ
18302013-05-13 Jakub Jelinek <jakub@redhat.com>
1831
1832 PR tree-optimization/45216
1833 PR tree-optimization/57157
1834 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1835 the (-Y) & (B - 1) variant if OP is |.
1836 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1837 return shifted. Use (-op1) & (prec - 1) as other_amount
1838 instead of prec - op1.
1839
4502fe8d
MJ
18402013-05-13 Martin Jambor <mjambor@suse.cz>
1841
1842 PR middle-end/42371
1843 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1844 (ipa_constant_data): New type.
1845 (ipa_jump_func): Use ipa_constant_data to hold information about
1846 constant jump functions.
1847 (ipa_get_jf_constant): Adjust to jump function type changes.
1848 (ipa_get_jf_constant_rdesc): New function.
1849 (ipa_param_descriptor): New field controlled_uses.
1850 (ipa_get_controlled_uses): New function.
1851 (ipa_set_controlled_uses): Likewise.
1852 * ipa-ref.h (ipa_find_reference): Declare.
1853 * ipa-prop.c (ipa_cst_ref_desc): New type.
1854 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1855 changes.
1856 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1857 New parameter cs. Adjust all callers.
1858 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1859 (remove_described_reference): New function.
1860 (jfunc_rdesc_usable): Likewise.
1861 (try_make_edge_direct_simple_call): Decrement controlled use count,
1862 attempt to remove reference if it hits zero.
1863 (combine_controlled_uses_counters): New function.
1864 (propagate_controlled_uses): Likewise.
1865 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1866 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1867 (ipa_print_node_params): Print described use counter.
1868 (ipa_write_jump_function): Adjust to jump function type changes.
1869 (ipa_read_jump_function): New parameter CS, pass it to
1870 ipa_set_jf_constant. Adjust caller.
1871 (ipa_write_node_info): Stream controlled use count
1872 (ipa_read_node_info): Likewise.
1873 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1874 asserting.
1875 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1876 count. Remove cloning-added reference if it reaches zero.
1877 * ipa-ref.c (ipa_find_reference): New function.
1878
0864bfc2
GG
18792013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1880
e7208ea3 1881 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
1882 alignment values for AMD BD and BT architectures.
1883
640bfeb2
MG
18842013-05-13 Marc Glisse <marc.glisse@inria.fr>
1885
1886 * tree-vect-generic.c (uniform_vector_p): Move ...
1887 * tree.c (uniform_vector_p): ... here.
1888 * tree.h (uniform_vector_p): Declare it.
1889 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1890 into a scalar.
1891
3a60f32b
JJ
18922013-05-13 Jakub Jelinek <jakub@redhat.com>
1893
198fe1bf
JJ
1894 PR tree-optimization/57230
1895 * tree-ssa-strlen.c (handle_char_store): Record length for
1896 array store from STRING_CST.
1897
3a60f32b
JJ
1898 PR tree-optimization/57230
1899 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1900 check.
1901
566be57c
JR
19022013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1903
1904 * config/epiphany/epiphany.c (epiphany_init): Check size of
1905 NUM_MODES_FOR_MODE_SWITCHING.
1906 (epiphany_expand_prologue):
1907 Remove CONFIG_REGNUM initial value handling code.
1908 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1909 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 1910 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
1911 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1912 Don't return 1 for FP_MODE_NONE.
1913 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1914 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1915 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1916 * config/epiphany/epiphany.md (save_config): New pattern.
1917
0f2c2331
UB
19182013-05-12 Uros Bizjak <ubizjak@gmail.com>
1919
1920 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1921
5b3f93c7
UB
19222013-05-10 Uros Bizjak <ubizjak@gmail.com>
1923
1924 * config/i386/i386.md (memory): Handle sseishft1.
1925 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1926 (*vec_extractv2di_1): Ditto.
1927
1f873f0e
VM
19282013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1929
1930 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1931 saved registers.
1932
341427fa 19332013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
1934
1935 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1936 Add mthumb/march=armv7-a multilib.
1937 Add mthumb/march=armv7-r multilib.
1938 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1939
9e69bdde
RC
19402013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1941
1942 * config/v850/t-rtems: Add more multilibs.
1943
9ff09a22
RB
19442013-05-10 Richard Biener <rguenther@suse.de>
1945
1946 PR tree-optimization/57214
1947 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1948 not propagate from SSA names that occur in abnormal PHI nodes.
1949
a5e0cd1d
MG
19502013-05-10 Marc Glisse <marc.glisse@inria.fr>
1951
1952 * stor-layout.c (element_precision): New function.
1953 * machmode.h (element_precision): Declare it.
1954 * tree.c (build_minus_one_cst): New function.
1955 (element_precision): Likewise.
1956 * tree.h (build_minus_one_cst): Declare new function.
1957 (element_precision): Likewise.
1958 * fold-const.c (operand_equal_p): Use element_precision.
1959 (fold_binary_loc): Handle vector types.
1960 * convert.c (convert_to_integer): Use element_precision.
1961 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1962 separately.
1963
cb2558bc
RS
19642013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1965
1966 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1967 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1968 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1969 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1970 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1971 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1972 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1973 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1974 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1975 (Uuw8): New constraints.
1976 (Usb4): Move into alphabetical order.
1977 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1978 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1979 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1980 previously unnamed patterns.
1981 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1982 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1983 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1984 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1985 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1986 of specific lengths.
1987
cb3b8d33
JJ
19882013-05-10 Jakub Jelinek <jakub@redhat.com>
1989
6f93c008
JJ
1990 * config/i386/i386.md (rotateinv): New code attr.
1991 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1992 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1993 roll $31, %eax, etc.
1994
cb3b8d33
JJ
1995 PR tree-optimization/45216
1996 PR tree-optimization/57157
1997 * tree-ssa-forwprop.c (simplify_rotate): New function.
1998 (ssa_forward_propagate_and_combine): Call it.
1999
afb119be
RB
20002013-05-10 Richard Biener <rguenther@suse.de>
2001
2002 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2003 disable peeling when we version for aliasing.
2004 (vector_alignment_reachable_p): Honor explicit user alignment.
2005 (vect_supportable_dr_alignment): Likewise.
2006 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2007 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2008 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2009 then peeling to arrange for the cost-model check to come first.
2010
01ae4861
AM
20112013-05-10 Alan Modra <amodra@gmail.com>
2012
2013 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2014 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2015 * configure: Regenerate.
2016
ebc9a431
AM
20172013-05-10 Alan Modra <amodra@gmail.com>
2018
2019 PR target/55033
2020 * varasm.c (default_elf_select_section): Move !DECL_P check..
2021 (get_named_section): ..to here before calling get_section_name.
2022 Adjust assertion.
2023 (default_section_type_flags): Add DECL_P check.
2024 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2025 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2026
d4bca93c
JR
20272013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2028
2029 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2030 When using gen_stack_adjust_str with a register offset, add a
2031 REG_FRAME_RELATED_EXPR note.
2032
60ca9a65
UB
20332013-05-09 Uros Bizjak <ubizjak@gmail.com>
2034
2035 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2036 (*vec_extractv4si_zext_mem): Ditto.
2037 (*vec_extractv2di): Add 0->x and x->x alternatives.
2038 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2039 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2040
a3409c02
JM
20412013-05-09 Jason Merrill <jason@redhat.com>
2042
0138d6b2
JM
2043 N3639 C++1y VLA support
2044 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2045 DECL_VALUE_EXPR.
2046
a3409c02
JM
2047 * tree.c (build_constructor_va): New.
2048 * tree.h: Declare it.
2049
66e6b990
MJ
20502013-05-09 Martin Jambor <mjambor@suse.cz>
2051
2052 PR lto/57084
2053 * gimple-fold.c (canonicalize_constructor_val): Call
2054 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2055
64cfa6c0
JH
20562013-05-09 Jan Hubicka <jh@suse.cz>
2057 Richard Biener <rguenther@suse.de>
2058
2059 PR lto/54095
2060 * symtab.c (symtab_make_decl_local): Do not add private names.
2061
c3167b00
JH
20622013-05-09 Jan Hubicka <jh@suse.cz>
2063
2064 PR lto/54095
2065 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2066 (unlink_from_assembler_name_hash): Likewise.
2067 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2068 symtab_unregister_node, symtab_initialize_asm_name_hash,
2069 change_decl_assembler_name): Update.
2070
12dc6974
SN
20712013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2072
2073 * config/aarch64/aarch64.md: New movtf split.
2074 (*movtf_aarch64): Update.
2075 (aarch64_movdi_tilow): Handle TF modes and rename to
2076 aarch64_movdi_<mode>low.
2077 (aarch64_movdi_tihigh): Handle TF modes and rename to
2078 aarch64_movdi_<mode>high
2079 (aarch64_movtihigh_di): Handle TF modes and rename to
2080 aarch64_mov<mode>high_di
2081 (aarch64_movtilow_di): Handle TF modes and rename to
2082 aarch64_mov<mode>low_di
2083 (aarch64_movtilow_tilow): Remove spurious whitespace.
2084 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2085 splits.
2086 (aarch64_print_operand): Update.
2087
227eb343
AM
20882013-05-09 Alan Modra <amodra@gmail.com>
2089
2090 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2091 powerpc64le.
2092 * configure: Regenerate.
2093
0b013847
UB
20942013-05-08 Uros Bizjak <ubizjak@gmail.com>
2095
2096 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2097 splitter preparation statements.
2098 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2099 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2100 adjust_address_nv.
2101
1dc3d6e9
BS
21022013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2103
2104 * gimple-ssa-strength-reduction.c (count_candidates): Change
2105 return value to int.
2106 (analyze_candidates_and_replace): Change type of length to int.
2107
e61e7d28
UB
21082013-05-08 Uros Bizjak <ubizjak@gmail.com>
2109
2110 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2111 (*vec_extract<mode>): Use VI12_128 mode iterator.
2112 (*vec_extract<mode>_mem): Ditto.
2113 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2114 attribute.
2115
4fbfcf44
DN
21162013-05-08 Diego Novillo <dnovillo@google.com>
2117
2118 PR bootstrap/54659
2119
2120 Revert:
4fbfcf44
DN
2121 2012-08-17 Diego Novillo <dnovillo@google.com>
2122
e61e7d28
UB
2123 PR bootstrap/54281
2124 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2125 * config.in: Regenerate.
2126 * configure: Regenerate.
2127 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 2128
702d8703
JH
21292013-05-08 Jan Hubicka <jh@suse.cz>
2130
2131 PR lto/54095
2132 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2133 * cgraph.h (symtab_node_base): Add unique_name.
2134 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2135 input_overwrite_node, input_varpool_node): Stream unique_name.
2136 * cgraphclones.c (cgraph_create_virtual_clone,
2137 cgraph_function_versioning): Set unique_name.
2138 * ipa.c (function_and_variable_visibility): Set unique_name.
2139
8b28cf47
BS
21402013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2141
2142 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2143 (alloc_cand_and_find_basis): Restrict conditional candidate
2144 processing to CAND_MULTs.
2145
e86074fd
JH
21462013-05-08 Jan Hubicka <jh@suse.cz>
2147
2148 PR lto/54095
2149 lto-symtab.c (lto_symtab_symbol_p): New function.
2150 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2151 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2152 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2153 Skip static symbols.
2154
44398cbe
PC
21552013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2156
2157 PR tree-optimization/57200
2158 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2159 Only call inform if the preceding warning_at returns true.
2160
f6bc1c4a
HS
21612013-05-07 Han Shen <shenhan@google.com>
2162
2163 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2164 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2165 * common.opt (fstack-protector-strong): New option.
2166 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2167 * doc/invoke.texi (Optimization Options): Document
2168 "-fstack-protector-strong".
2169 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2170
4ffecb1f
SB
21712013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2172
2173 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2174
5a107a0f
VM
21752013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2176
2177 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2178 it is not lhs of the insn.
2179 (setup_reg_equiv): Remove insn having equiv memory which it is not
2180 lhs of the insn.
2181 * lra-constraints.c (process_address): Try to improve generation
2182 code for address base + disp.
2183 (lra_constraints): Make correct the code for checking insn setting
2184 up backward equivalence. Remove insn only if it is in the init
2185 insn list.
2186 * lra-eliminations.c (update_reg_eliminate): Change return value.
2187 (lra_eliminate): Use the result.
2188
3f5783ea
UB
21892013-05-07 Uros Bizjak <ubizjak@gmail.com>
2190
2191 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2192 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2193 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2194 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2195 register target operands.
2196 (*vec_extractv8hi_sse2): New pattern.
2197 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2198 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2199 (*vec_extract<mode>_mem): New insn and split pattern.
2200
8a5800b8
CL
22012013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2202
2203 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2204 (TARGET_ASAN_SHADOW_OFFSET): Define.
2205 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2206 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2207
7bf55a70
BS
22082013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2209
2210 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2211 (incr_vec_index): Return -1 if increment not found.
2212 (create_add_on_incoming_edge): Assert if increment not found.
2213 (record_increment): Limit number of increments recorded.
2214 (all_phi_incrs_profitable): Return false if an increment not found.
2215 (replace_profitable_candidates): Don't process increments that were
2216 not recorded.
2217 (analyze_candidates_and_replace): Limit size of incr_vec.
2218
3f8825c0
RB
22192013-05-07 Richard Biener <rguenther@suse.de>
2220
2221 * calls.c (special_function_p): setjmp-like functions are leaf.
2222 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2223 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2224
fd4842cd
SN
22252013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2226
2227 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2228 (aarch64_simd_mov<mode>): New expander.
2229 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2230 (aarch64_simd_mov_to_<mode>high): Likewise.
2231 (aarch64_simd_mov_from_<mode>low): Likewise.
2232 (aarch64_simd_mov_from_<mode>high): Likewise.
2233 (aarch64_dup_lane<mode>): Update.
2234 (aarch64_dup_lanedi): New instruction pattern.
2235 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2236 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2237
a7a7d10e
BS
22382013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2239
2240 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2241 (replace_mult_candidate): Remove unnecessary argument; remove
2242 unnecessary parameter from call to introduce_cast_before_cand.
2243 (replace_unconditional_candidate): Remove unnecessary parameter
2244 from call to replace_mult_candidate.
2245 (replace_conditional_candidate): Likewise.
2246 (insert_initializers): Use make_temp_ssa_name.
2247 (introduce_cast_before_cand): Remove unnecessary argument; use
2248 make_temp_ssa_name.
2249 (replace_one_candidate): Remove unnecessary argument; remove
2250 unnecessary parameter from calls to introduce_cast_before_cand.
2251 (replace_profitable_candidates): Remove unnecessary parameters
2252 from calls to replace_one_candidate.
2253
29105868
BS
22542013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2255
2256 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2257 phi def as possibly hiding a basis for a CAND_ADD whose operands
2258 have been commuted in the analysis.
2259 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2260
4095f9fa
N
22612013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2262
2263 * config/aarch64/aarch64.md
2264 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2265 shift value between 0-4.
2266
39e843e8
RB
22672013-05-07 Richard Biener <rguenther@suse.de>
2268
2269 * double-int.h (rshift): New overload.
2270 * double-int.c (rshift): New function.
2271 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2272 (create_reference_ops_from_ref): Remove.
2273 (vn_reference_insert): Use shared ops for constructing the
2274 reference and copy it.
2275
0a1a83cb
RB
22762013-05-07 Richard Biener <rguenther@suse.de>
2277
2278 PR middle-end/57190
2279 * tree-eh.c (sink_clobbers): Properly propagate
2280 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2281
43303d6f
JJ
22822013-05-07 Jakub Jelinek <jakub@redhat.com>
2283
ba7e83f8
JJ
2284 PR tree-optimization/57149
2285 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2286 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2287 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2288 uninit_undefined_value_p instead of ssa_undefined_value_p.
2289
43303d6f
JJ
2290 PR debug/57184
2291 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2292 for modifier == EXPAND_INITIALIZER.
2293
14523c25
AB
22942013-05-07 Anton Blanchard <anton@samba.org>
2295
2296 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2297 for powerpc64 little endian.
2298 * configure: Regenerate.
2299
cb7c8be9
GS
23002013-05-06 Graham Stott <grahams@btinternet.com>
2301
2302 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2303 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2304 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2305 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2306
23072013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
2308
2309 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2310 codes which allow non-lvalues.
2311
9a0ee7b0
MG
23122013-05-06 Marc Glisse <marc.glisse@inria.fr>
2313
2314 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2315 components are all 1s.
2316 (integer_minus_onep): New function.
2317 * tree.h (integer_minus_onep): Declare it.
2318 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2319 integer_minus_onep instead of integer_all_onesp.
2320
f2c17ea9
OE
23212013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2322
2323 PR target/52933
2324 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2325 variations of these patterns.
2326
f75e6a51
UB
23272013-05-06 Uros Bizjak <ubizjak@gmail.com>
2328
2329 * config/i386/i386.md (isa): Add x64_sse4 member.
2330 (enabled): Handle x64_sse4.
2331 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2332 instruction for 64bit SSE4_1 targets. Update insn attributes.
2333 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2334 instruction for SSE4_1 targets. Update insn attributes.
2335 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2336 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2337 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2338 const_1 selector.
2339 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2340 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2341 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2342
a986d468
OE
23432013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2344
2345 PR target/57108
2346 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2347
382522cb
MK
23482013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2349
2350 * final.c (do_assembler_dialects): Don't handle curly braces and
2351 vertical bar escaped by % as dialect delimiters.
2352 (output_asm_insn): Print curly braces and vertical bar if escaped
2353 by % and ASSEMBLER_DIALECT defined.
2354 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2355 * doc/tm.texi: Regenerated.
2356
fb0d5c60
SB
23572013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2358
fb0d5c60
SB
2359 * config/mips/mips.c: Include tree-pass.h.
2360 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2361 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2362 (pass_mips_machine_reorg2): New machine specific pass.
2363 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2364 (mips_option_override): Register the new pass.
2365 * rtl.h (cleanup_barriers): Remove prototype.
2366 (dbr_schedule): Likewise.
2367 * jump.c (cleanup_barriers): Make static.
2368 * reorg.c (dbr_schedule): Likewise.
2369
aa06a978
RB
23702013-05-06 Richard Biener <rguenther@suse.de>
2371
2372 PR tree-optimization/57185
2373 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2374 SSA names properly.
2375
0b953bec
UB
23762013-05-06 Uros Bizjak <ubizjak@gmail.com>
2377
2378 PR target/57106
2379 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2380 between "first_arg" and "insn", not "last" and "insn".
2381
28708525
WS
23822013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2383
2384 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2385 (find_candidates_in_block): Re-enable slsr_process_phi.
2386 (create_phi_basis): Fix double counting of candidate adjustment.
2387
0107dca2
RB
23882013-05-06 Richard Biener <rguenther@suse.de>
2389
2390 PR middle-end/57147
2391 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2392 the edge is also fallthru, preserve it and just clear the
2393 abnormal flag.
2394 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2395 also complex, preserve that and just clear the fallthru flag.
2396 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2397 update virtual operands.
2398
470d4d13
AM
23992013-05-06 Alan Modra <amodra@gmail.com>
2400
2401 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2402 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2403 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2404 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2405 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2406 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2407
8f1dbf8d
AM
24082013-05-06 Alan Modra <amodra@gmail.com>
2409
2410 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2411 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2412 (DEFAULT_ASM_ENDIAN): Define.
2413 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2414 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2415 Update -K PIC clause from sysv4.h.
2416 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2417 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2418
54890767
AM
24192013-05-06 Alan Modra <amodra@gmail.com>
2420
2421 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2422 twice for little-endian.
2423 (ashrdi3_no_power, ashrdi3): Support little-endian.
2424
2353515d
OE
24252013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2426
2427 PR target/55303
2428 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2429 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2430 related expanders.
2431 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2432 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2433 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2434 New predicates.
2435
33e67557
SB
24362013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2437 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2438
2439 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2440 * config/pa/pa.opt: Make mbig-switch a no-op.
2441 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2442 (CASE_VECTOR_MODE): Always return SImode.
2443 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2444 for the !TARGET_BIG_SWITCH case.
2445 * config/pa/pa-linux.h: Likewise.
2446 * config/pa/pa-openbsd.h: Likewise.
2447 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2448 * config/pa/pa.md (short_jump): Remove define_insn.
2449 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2450 (casesi0): Remove define_insn.
2451 (type): Remove btable_branch.
2452 (pa_combine_type): Likewise.
2453 (in_nullified_branch_delay): Likewise.
2454 (in_call_delay): Likewise.
2455 (define_delay): Likewise.
2456 (define_insn_reservation "Z3"): Likewise.
2457 (define_insn_reservation "Z4"): Likewise.
2458 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2459 (pa_adjust_insn_length): Remove adjustment for btable branches.
2460 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2461 and mno-big-switch
2462
3095685e
UB
24632013-05-05 Uros Bizjak <ubizjak@gmail.com>
2464
2465 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2466 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2467 Add m->r,x alternatives.
2468 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2469 splitters using SWI48x mode iterator.
2470 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2471 TARGET_64BIT. Add m->x alternative.
2472 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2473 Add o->x alternative. Enable for TARGET_SSE.
2474 (sse_storeq): Remove expander.
2475 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2476 with memory input operand.
2477 (*vec_extractv2di_1 splitter): New.
2478 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2479 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2480
4b36ae28
SB
24812013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2482
2483 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2484 (INT_LOWPART): Delete.
2485 (extract_MB): Adjust.
2486 (extract_ME): Adjust.
2487 (print_operand): Adjust.
2488
da226db2
SB
24892013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2490
2491 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2492 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2493 (reg_or_logical_cint_operand, easy_fp_constant,
2494 logical_const_operand): Delete "CONST_DOUBLE" case.
2495 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2496 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 2497 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
2498 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2499 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2500 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2501 test.
2502 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2503 CONST_DOUBLE DImode/VOIDmode case.
2504 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2505 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2506 CONST_DOUBLE VOIDmode case.
2507 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2508 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2509 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2510 Delete CONST_DOUBLE case.
2511 (splitters for mov FMOVE64 const_double): Delete
2512 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2513 "HOST_BITS_PER_WIDE_INT >= 64" test.
2514 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2515 case.
2516 (mov DI const_double): Delete.
2517
40de22d6
JJ
25182013-05-04 Jakub Jelinek <jakub@redhat.com>
2519
2520 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2521 on op shows all bits zero in mode of a lowpart subreg, return zero.
2522
5ec6aff2
MM
25232013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2524
2525 PR target/57150
2526 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2527 to save TFmode registers and DImode to save TImode registers for
2528 caller save operations.
2529 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2530 mark being partially clobbered since they only use the first
2531 double word.
2532
2533 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2534 and TDmode only use the upper 64-bits of each VSX register.
2535
2cefad90
BS
25362013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2537
2538 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2539 (find_candidates_in_block): Disable slsr_process_phi.
2540
d6d7eee1
GW
25412013-05-03 Guozhi Wei <carrot@google.com>
2542
2543 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
2544 constructor to ...
2545 (build_init_ctor): ... here.
d6d7eee1 2546
9b92d12b
BS
25472013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2548
2549 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2550 (slsr_cand_d): Redefine def_phi.
2551 (stride_status, phi_adjust_status, count_phis_status): New enums.
2552 (find_phi_def): New.
2553 (find_basis_for_base_expr): New.
2554 (find_basis_for_candidate): Handle hidden bases.
2555 (alloc_cand_and_find_basis): Handle phi candidates.
2556 (slsr_process_phi): New.
2557 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2558 (create_mul_imm_cand): Likewise.
2559 (create_add_ssa_cand): Exclude phi base candidates.
2560 (create_add_imm_cand): Likewise.
2561 (slsr_process_cast): Likewise.
2562 (slsr_process_copy): Likewise.
2563 (find_candidates_in_block): Handle phi candidates.
2564 (dump_candidate): Likewise.
2565 (unconditional_cands): Delete.
2566 (unconditional_cands_with_known_stride_p): Delete.
2567 (phi_dependent_cand_p): New.
2568 (cand_increment): Handle phi-dependent candidates.
2569 (replace_dependent): Delete.
2570 (replace_mult_candidate): New.
2571 (replace_unconditional_candidate): New.
2572 (incr_vec_index): Move to avoid forward reference.
2573 (create_add_on_incoming_edge): New.
2574 (create_phi_basis): New.
2575 (replace_dependents): Delete.
2576 (replace_conditional_candidate): New.
2577 (phi_add_costs): New.
2578 (replace_uncond_cands_and_profitable_phis): New.
2579 (record_increment): Handle phi adjustments.
2580 (record_phi_increments): New.
2581 (record_increments): Handle phi adjustments.
2582 (phi_incr_cost): New.
2583 (lowest_cost_path): Handle phis.
2584 (total_savings): Likewise.
2585 (analyze_increments): Likewise.
2586 (ncd_with_phi): New.
2587 (ncd_of_cand_and_phis): New.
2588 (nearest_common_dominator_for_cands): Handle phi increments.
2589 (all_phi_incrs_profitable): New.
2590 (replace_profitable_candidates): Handle phi-dependent candidates.
2591 (analyze_candidates_and_replace): Likewise.
2592
68f073d4
TJ
25932013-05-03 Teresa Johnson <tejohnson@google.com>
2594
2595 PR bootstrap/57154
2596 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2597 do not exceed REG_BR_PROB_BASE.
2598
a4ee7cb9
JL
25992013-05-03 Jeff Law <law@redhat.com>
2600
ade67f70 2601 PR tree-optimization/57144
a4ee7cb9
JL
2602 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2603 operand of the condition will bit into the new type when eliminating
2604 a cast feeding a condition.
2605
47954c4e
JJ
26062013-05-03 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR rtl-optimization/57130
3095685e
UB
2609 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2610 of COMPARE as in_code to the recursive call if needed.
47954c4e 2611
3c21604f
UB
26122013-05-03 Uros Bizjak <ubizjak@gmail.com>
2613
2614 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2615 (enabled): Handle new members.
2616 * config/i386/sse.md (*vec_concatv2si): Merge from
2617 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2618 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2619
95c03b36
JR
26202013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2621
2622 PR tree-optimization/57027
2623 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2624 for fnms opportunity, check we got the prerequisite kind
2625 of tree / gimple before using accessor functions.
2626
07bfc9ec
RB
26272013-05-03 Richard Biener <rguenther@suse.de>
2628
2629 * double-int.h (lshift): New overload without precision
2630 and arith argument.
2631 (operator *=, operator +=, operator -=): Move ...
2632 * double-int.c (operator *=, operator +=, operator -=): ... here
2633 and implement more efficiently.
2634 (mul_double_with_sign): Remove.
2635 (lshift_double): Adjust to take unsinged shift argument, push
2636 dispatching code to callers.
2637 (mul_double_wide_with_sign): Add early out for callers that
2638 are not interested in high parts or overflow.
2639 (lshift): New function.
2640 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2641 dispatch code here.
2642 (lrotate, rrotate): Use logical shifts.
2643 * expr.c (get_inner_reference): Use lshift.
2644 * fixed-value.c (do_fixed_divide): Likewise.
2645 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2646 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2647 (indirect_refs_may_alias_p): Likewise.
2648 (stmt_kills_ref_p_1): Likewise.
2649
7769bb64
VP
26502013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2651
2652 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2653
1d0c8e5c
VP
26542013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2655
2656 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2657 scalar form of FABD instruction.
2658
f15feaf9
VM
26592013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2660
2661 * lra-constraints.c (process_alt_operands): Add checking alt
2662 number to choose the best alternative.
2663
d90e76d4
RB
26642013-05-02 Richard Biener <rguenther@suse.de>
2665
2666 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2667 bitmap and its handling.
2668 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2669
9f8e7a96
RB
26702013-05-02 Richard Biener <rguenther@suse.de>
2671
2672 PR middle-end/57140
2673 * tree-inline.c (copy_loops): Properly handle removed loops.
2674 (copy_cfg_body): Mark destination loops for fixup if source
2675 loops needed fixup.
2676
f3a81b39
GY
26772013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2678
2679 PR target/56732
2680 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2681 generating simple_return for naked functions.
2682
7b920a9a
MJ
26832013-05-02 Martin Jambor <mjambor@suse.cz>
2684
2685 PR middle-end/56988
2686 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2687 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2688 flags match.
2689 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2690 ipa_agg_replacement_value structures.
2691 (known_aggs_to_agg_replacement_list): Likewise.
2692 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2693 (read_agg_replacement_chain): Likewise.
2694 (ipcp_transform_function): Also check that by_ref flags match.
2695
2c41c19d
RB
26962013-05-02 Richard Biener <rguenther@suse.de>
2697
2698 * graphds.h (struct graph): Add obstack member.
2699 * graphds.c (new_graph): Initialize obstack and allocate
2700 vertices from it.
2701 (add_edge): Allocate edge from the obstack.
3c21604f 2702 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2703
8b47039c
TJ
27042013-05-02 Teresa Johnson <tejohnson@google.com>
2705
2706 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2707 divides.
2708 * cfg.c (update_bb_profile_for_threading): Ditto.
2709 * tree-inline.c (copy_bb): Ditto.
2710 (copy_edges_for_bb): Ditto.
2711 (initialize_cfun): Ditto.
2712 (copy_cfg_body): Ditto.
2713 (expand_call_inline): Ditto.
2714 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2715 (estimate_node_size_and_time): Ditto.
2716 (inline_merge_summary): Ditto.
2717 * cgraphclones.c (cgraph_clone_edge): Ditto.
2718 (cgraph_clone_node): Ditto.
2719 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2720 (compute_trg_info): Ditto.
2721
da65928c
IB
27222013-05-02 Ian Bolton <ian.bolton@arm.com>
2723
2724 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2725 S reg when fp attribute set.
2726 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2727
add3c965
IB
27282013-05-02 Ian Bolton <ian.bolton@arm.com>
2729
2730 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2731 New pattern.
2732 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2733 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2734 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2735
fdd43ac4
RB
27362013-05-02 Richard Biener <rguenther@suse.de>
2737
2738 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2739 (struct instantiate_cache_entry): New type.
2740 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2741 (struct instantiate_cache_type): New type.
2742 (set_instantiated_value, get_instantiated_value): Remove.
2743 (get_instantiated_value_entry): New function.
2744 (instantiate_scev_name): Use the new cache and adjust.
2745 (instantiate_scev_poly): Adjust.
2746 (instantiate_scev_binary): Likewise.
2747 (instantiate_array_ref): Likewise.
2748 (instantiate_scev_convert): Likewise.
2749 (instantiate_scev_not): Likewise.
2750 (instantiate_scev_3): Likewise.
2751 (instantiate_scev_2): Likewise.
2752 (instantiate_scev_r): Likewise.
2753 (instantiate_scev): Likewise.
2754 (resolve_mixers): Likewise.
2755
36ff9dfb
VM
27562013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2757
2758 PR target/57091
2759 * lra-constraints.c (best_small_class_operands_num): Remove.
2760 (process_alt_operands): Remove small_class_operands_num. Take
2761 small classes operands into losers and only if the operand is not
2762 matched. Modify debugging output.
2763 (curr_insn_transform): Remove best_small_class_operands_num.
2764 Print insn name.
2765
36054fab
JG
27662013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2767
2768 * config/aarch64/aarch64-builtins.c
2769 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2770 * config/aarch64/aarch64-simd-builtins.def
2771 (reduc_splus_): Add new modes.
2772 (reduc_uplus_): New.
2773 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2774 (reduc_uplus_v4sf): Likewise.
2775 (reduc_splus_v4sf): Likewise.
2776 (aarch64_addv<mode>): Likewise.
2777 (reduc_uplus_<mode>): Likewise.
2778 (reduc_splus_<mode>): Likewise.
2779 (aarch64_addvv2di): Likewise.
2780 (reduc_uplus_v2di): Likewise.
2781 (reduc_splus_v2di): Likewise.
2782 (aarch64_addvv2si): Likewise.
2783 (reduc_uplus_v2si): Likewise.
2784 (reduc_splus_v2si): Likewise.
2785 (reduc_<sur>plus_<mode>): New.
2786 (reduc_<sur>plus_v2di): Likewise.
2787 (reduc_<sur>plus_v2si): Likewise.
2788 (reduc_<sur>plus_v4sf): Likewise.
2789 (aarch64_addpv4sf): Likewise.
2790 * config/aarch64/arm_neon.h
2791 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2792 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2793 add UNSPEC_SADDV, UNSPEC_UADDV.
2794 (SUADDV): New.
2795 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2796
6dce23a8
JG
27972013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2798
2799 * config/aarch64/arm_neon.h
2800 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2801
1598945b
JG
28022013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2803
2804 * config/aarch64/aarch64-builtins
2805 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2806
998eaf97
JG
28072013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2808
2809 * config/aarch64/aarch64-simd-builtins.def
2810 (reduc_smax_): New.
2811 (reduc_smin_): Likewise.
2812 (reduc_umax_): Likewise.
2813 (reduc_umin_): Likewise.
2814 (reduc_smax_nan_): Likewise.
2815 (reduc_smin_nan_): Likewise.
2816 (fmax): Remove.
2817 (fmin): Likewise.
2818 (smax): Update for V2SF, V4SF and V2DF modes.
2819 (smin): Likewise.
2820 (smax_nan): New.
2821 (smin_nan): Likewise.
2822 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2823 (<su><maxmin><mode>3): ...This, refactor.
2824 (s<maxmin><mode>3): New.
2825 (<maxmin_uns><mode>3): Likewise.
2826 (reduc_<maxmin_uns>_<mode>): Refactor.
2827 (reduc_<maxmin_uns>_v4sf): Likewise.
2828 (reduc_<maxmin_uns>_v2si): Likewise.
2829 (aarch64_<fmaxmin><mode>: Remove.
2830 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2831 new builtin names.
2832 (vmin<q>_f<32,64>): Likewise.
2833 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2834 (FMAXMIN): New.
2835 (su): Add mappings for smax, smin, umax, umin.
2836 (maxmin): New.
2837 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2838 (FMAXMIN): Rename as...
2839 (FMAXMIN_UNS): ...This.
2840 (maxminv): Remove.
2841 (fmaxminv): Likewise.
2842 (fmaxmin): Likewise.
2843 (maxmin_uns): New.
2844 (maxmin_uns_op): Likewise.
2845
bd11644e
JG
28462013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2847
2848 * config/aarch64/arm_neon.h
2849 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2850 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2851 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2852
75dd5ace
JG
28532013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2854
2855 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2856 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2857
7c19979f
JG
28582013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2859
2860 * config/aarch64/aarch64-simd.md
2861 (vcond<mode>_internal): Handle special cases for constant masks.
2862 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2863 (vcondu<mode><mode>): Likewise.
2864 (vcond<v_cmp_result><mode>): New.
2865
bb60efd9
JG
28662013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2867
2868 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2869 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2870 * config/aarch64/aarch64-simd-builtins.def
2871 (cmeq): Update to BUILTIN_VALLDI.
2872 (cmgt): Likewise.
2873 (cmge): Likewise.
2874 (cmle): Likewise.
2875 (cmlt): Likewise.
2876 * config/aarch64/arm_neon.h
2877 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2878 to builtins or C as appropriate.
2879
889b9412
JG
28802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2881
2882 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2883 (cmgeu): ...This.
2884 (cmhi): Rename to...
2885 (cmgtu): ...This.
2886 * config/aarch64/aarch64-simd.md
2887 (simd_mode): Add SF.
2888 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2889 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2890 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2891 (cstore<mode>_neg): ...This.
2892 * config/aarch64/iterators.md
2893 (VALLF): new.
2894 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2895 (COMPARISONS): New.
2896 (UCOMPARISONS): Likewise.
2897 (optab): Add missing comparisons.
2898 (n_optab): New.
2899 (cmp_1): Likewise.
2900 (cmp_2): Likewise.
2901 (CMP): Likewise.
2902 (cmp): Remove.
2903 (VCMP_S): Likewise.
2904 (VCMP_U): Likewise.
2905 (V_cmp_result): Add DF, SF modes.
2906 (v_cmp_result): Likewise.
2907 (v): Likewise.
2908 (vmtype): Likewise.
2909 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2910
0a7dbb76
GY
29112013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2912
2913 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2914 define_insn to define_insn_and_split.
2915 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2916 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2917 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2918 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2919 (thumb2_negscc): Likewise.
2920
fb614ca6
GY
29212013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2922
2923 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2924
9e64a0bf
GY
29252013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2926
2927 * config/arm/thumb2.md: Remove trailing whitespaces.
2928
d6b28156
RS
29292013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2930
2931 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2932 Use gen_int_mode rather than GEN_INT.
2933
f91674c3
L
29342013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2935
b0dec607 2936 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
2937 debug_gimple_stmt.
2938
3551257c
RB
29392013-04-30 Richard Biener <rguenther@suse.de>
2940
2941 PR middle-end/57122
3c21604f 2942 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 2943
4c1aff1c
RB
29442013-04-30 Richard Biener <rguenther@suse.de>
2945
2946 PR middle-end/57107
2947 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2948
54b8379a
AB
29492013-04-30 Andrey Belevantsev <abel@ispras.ru>
2950
2951 PR rtl-optimization/56957
2952 PR rtl-optimization/57105
54b8379a
AB
2953 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2954 variable. Use just INSN_UID for determining whether an insn
2955 should be only disconnected from the insn stream.
2956 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2957
abc27962
JJ
29582013-04-30 Jakub Jelinek <jakub@redhat.com>
2959
2960 PR tree-optimization/57104
2961 * tsan.c (instrument_expr): Don't instrument accesses to
2962 DECL_HARD_REGISTER VAR_DECLs.
2963
0fc822d0
RB
29642013-04-30 Richard Biener <rguenther@suse.de>
2965
2966 * function.h (loops_for_fn): New inline function.
2967 (set_loops_for_fn): Likewise.
2968 * cfgloop.h (place_new_loop): Add struct function parameter.
2969 (get_loop): Likewise.
2970 (get_loops): Likewise.
2971 (number_of_loops): Likewise.
2972 (fel_next): Adjust.
2973 (fel_init): Likewise.
2974 * cfg.c (get_loop_copy): Adjust.
2975 * cfgloop.c (flow_loops_dump): Likewise.
2976 (record_loop_exits): Likewise.
2977 (verify_loop_structure): Likewise.
2978 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2979 (estimate_reg_pressure_cost): Likewise.
2980 (mark_loop_exit_edges): Likewise.
2981 * cfgloopmanip.c (place_new_loop): Likewise.
2982 (add_loop): Likewise.
2983 (duplicate_loop): Likewise.
2984 * graph.c (draw_cfg_nodes): Likewise.
2985 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2986 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2987 (extract_affine_chrec): Likewise.
2988 (build_scop_iteration_domain): Likewise.
2989 * graphite.c (graphite_initialize): Likewise.
2990 * ira-build.c (create_loop_tree_nodes): Likewise.
2991 (more_one_region_p): Likewise.
2992 (rebuild_regno_allocno_maps): Likewise.
2993 (mark_loops_for_removal): Likewise.
2994 (mark_all_loops_for_removal): Likewise.
2995 (remove_unnecessary_regions): Likewise.
2996 (ira_build): Likewise.
2997 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2998 * loop-init.c (fix_loop_structure): Likewise.
2999 (gate_rtl_move_loop_invariants): Likewise.
3000 (gate_rtl_unswitch): Likewise.
3001 (gate_rtl_unroll_and_peel_loops): Likewise.
3002 (rtl_doloop): Likewise.
3003 * lto-streamer-in.c (input_cfg): Likewise.
3004 * lto-streamer-out.c (output_cfg): Likewise.
3005 * modulo-sched.c (sms_schedule): Likewise.
3006 * predict.c (tree_estimate_probability): Likewise.
3007 (tree_estimate_probability_driver): Likewise.
3008 (estimate_loops): Likewise.
3009 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3010 (move_sese_region_to_fn): Likewise.
3011 (debug_loop_num): Likewise.
3012 * tree-chrec.c (chrec_evaluate): Likewise.
3013 (hide_evolution_in_other_loops_than_loop): Likewise.
3014 (chrec_component_in_loop_num): Likewise.
3015 (reset_evolution_in_loop): Likewise.
3016 (evolution_function_is_invariant_rec_p): Likewise.
3017 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3018 * tree-inline.c (copy_loops): Likewise.
3019 (copy_cfg_body): Likewise.
3020 (tree_function_versioning): Likewise.
3021 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3022 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3023 Likewise.
3024 (add_to_evolution_1): Likewise.
3025 (scev_const_prop): Likewise.
3026 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3027 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3028 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3029 (tree_ssa_lim_initialize): Likewise.
3030 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3031 (verify_loop_closed_ssa): Likewise.
3032 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3033 (tree_ssa_loop_im): Likewise.
3034 (tree_ssa_loop_unswitch): Likewise.
3035 (tree_vectorize): Likewise.
3036 (check_data_deps): Likewise.
3037 (tree_ssa_loop_ivcanon): Likewise.
3038 (tree_ssa_loop_bounds): Likewise.
3039 (tree_complete_unroll): Likewise.
3040 (tree_complete_unroll_inner): Likewise.
3041 (tree_parallelize_loops): Likewise.
3042 (tree_ssa_loop_prefetch): Likewise.
3043 (tree_ssa_loop_ivopts): Likewise.
3044 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3045 * tree-vectorizer.c (vectorize_loops): Likewise.
3046
37953bd3
MF
30472013-04-29 Mike Frysinger <vapier@gentoo.org>
3048
3049 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3050 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3051 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3052 with EABI_LINK_SPEC.
3053
f9ed28db
UB
30542013-04-29 Uros Bizjak <ubizjak@gmail.com>
3055
3056 PR target/44578
3057 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3058 alternative.
3059
deca73f5
VM
30602013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3061
3062 PR target/57097
37953bd3 3063 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
3064 using memory for pseudos. Print cost dump for alternatives.
3065 Modify cost values for conflicts with early clobbers.
3066 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3067
fdca7d03
UB
30682013-04-29 Uros Bizjak <ubizjak@gmail.com>
3069
3070 PR target/57098
3071 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3072
0b064172
IB
30732013-04-29 Ian Bolton <ian.bolton@arm.com>
3074
3075 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3076 from/to S register.
3077 (movdi_aarch64): Support LDR/STR from/to D register.
3078
473cec55
IB
30792013-04-29 Ian Bolton <ian.bolton@arm.com>
3080
3081 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3082 or higher by default.
3083
a6f30e66
RB
30842013-04-29 Richard Biener <rguenther@suse.de>
3085
3086 PR middle-end/57075
3087 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3088 even if not adding abnormal edges for calls that can make
3089 abnormal gotos.
3090
0c2b2040
RB
30912013-04-29 Richard Biener <rguenther@suse.de>
3092
3093 PR middle-end/57103
3094 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3095 TREE_BLOCK.
3096 (move_stmt_r): Remove redundant checking.
3097
f41f80f9
TJ
30982013-04-29 Teresa Johnson <tejohnson@google.com>
3099
3100 PR bootstrap/57077
3101 * basic-block.h (apply_scale): New function.
3102 (apply_probability): Use apply_scale.
3103 * gimple-streamer-in.c (input_bb): Ditto.
3104 * lto-streamer-in.c (input_cfg): Ditto.
3105 * lto-cgraph.c (merge_profile_summaries): Ditto.
3106 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 3107 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
3108 (copy_edges_for_bb): Ditto.
3109 (copy_cfg_body): Ditto.
3110
315bbd2e
TV
31112013-04-29 Tom de Vries <tom@codesourcery.com>
3112
3113 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3114 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3115 (tail_merge_optimize): Handle current_loops == NULL.
3116
ebbd90d8
JL
31172013-04-26 Jeff Law <law@redhat.com>
3118
3119 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3120 (simplify_cond_using_ranges): Generalize code to simplify
3121 COND_EXPRs where one argument is a constant and the other
3122 is an SSA_NAME created by an integral type conversion.
3123
8b9b57eb
KT
31242013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3125
3126 * config/arm/arm.md (store_minmaxsi): Use only when
3127 optimize_insn_for_size_p.
3128
9498e5dc
CB
31292013-04-29 Christian Bruel <christian.bruel@st.com>
3130
3131 PR target/57108
3132 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3133
6093bc06
RB
31342013-04-29 Richard Biener <rguenther@suse.de>
3135
3136 PR middle-end/57089
fdca7d03
UB
3137 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3138 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
3139 (expand_omp_for_generic): Properly add loops.
3140 (expand_omp_for_static_nochunk): Likewise.
3141 (expand_omp_for_static_chunk): Likewise.
3142 (expand_omp_for): For the degenerate case fixup loops.
3143 (expand_omp_sections): Fix default bb placement in loops.
3144 (expand_omp_atomic_pipeline): Properly add loops.
3145
84aacbfd
KT
31462013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3147
3148 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3149
8dee4479
TV
31502013-04-29 Tom de Vries <tom@codesourcery.com>
3151
3152 * tree-ssa-tail-merge.c: Update header comment.
3153
47934dc4
JG
31542013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3155
3156 * config/aarch64/arm_neon.h
3157 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3158 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3159 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3160 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3161 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3162 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3163 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3164 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3165
384be29f
JG
31662013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3167
3168 * config/aarch64/aarch64-simd.md
3169 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3170 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3171 fix_trunc, fixuns_trunc.
3172 (ftrunc<VDQF:mode>2): New.
3173 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3174 (fix_trunc_optab): New.
3175
0386b123
JG
31762013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3177
3178 * config/aarch64/aarch64-builtins.c
3179 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3180 iceilf, lround, iroundf.
3181
00fcb892
UB
31822013-04-29 Uros Bizjak <ubizjak@gmail.com>
3183
3184 PR target/54349
3185 * config/i386/i386.h (enum ix86_tune_indices)
3186 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3187 New, split from X86_TUNE_INTER_UNIT_MOVES.
3188 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3189 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3190 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3191 (TARGET_INTER_UNIT_MOVES): Remove.
3192 * config/i386/i386.c (initial_ix86_tune_features): Update.
3193 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3194 (ix86_expand_convert_uns_didf_sse): Use
3195 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3196 (ix86_expand_vector_init_one_nonzero): Ditto.
3197 (ix86_expand_vector_init_interleave): Ditto.
3198 (inline_secondary_memory_needed): Return true for moves from SSE class
3199 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3200 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3201 * config/i386/constraints.md (Yi, Ym): Depend on
3202 TARGET_INTER_UNIT_MOVES_TO_VEC.
3203 (Yj, Yn): New constraints.
3204 * config/i386/i386.md (*movdi_internal): Change constraints of
3205 operand 1 from Yi to Yj and from Ym to Yn.
3206 (*movsi_internal): Ditto.
3207 (*movdf_internal): Ditto.
3208 (*movsf_internal): Ditto.
3209 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3210 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3211 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3212 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3213 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3214 * config/i386/sse.md (movdi_to_sse): Ditto.
3215 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3216 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3217 TARGET_INTER_UNIT_MOVES.
3218 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3219 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3220 instead of TARGET_INTER_UNIT_MOVES.
3221 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3222 operand 1 from Yi to Yj and from Ym to Yn.
3223
4c871069
JG
32242013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3225
3226 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3227 (float_truncate_hi_): Likewise.
3228 (float_extend_lo_): Likewise.
3229 (float_truncate_lo_): Likewise.
3230 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3231 (aarch64_float_extend_lo_v2df): Likewise.
3232 (vec_unpacks_hi_v4sf): Likewise.
3233 (aarch64_float_truncate_lo_v2sf): Likewise.
3234 (aarch64_float_truncate_hi_v4sf): Likewise.
3235 (vec_pack_trunc_v2df): Likewise.
3236 (vec_pack_trunc_df): Likewise.
3237
1709ff9b
JG
32382013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3239
3240 * config/aarch64/aarch64-builtins.c
3241 (aarch64_fold_builtin): Fold float conversions.
3242 * config/aarch64/aarch64-simd-builtins.def
3243 (floatv2si, floatv4si, floatv2di): New.
3244 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3245 * config/aarch64/aarch64-simd.md
3246 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3247 * config/aarch64/iterators.md (FLOATUORS): New.
3248 (optab): Add float, floatuns.
3249 (su_optab): Likewise.
3250
ce966824
JG
32512013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3252
3253 * config/aarch64/aarch64-builtins.c
3254 (aarch64_builtin_vectorized_function): Use new names for
3255 fcvt builtins.
3256 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3257 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3258 (fcvtzu): Split as...
3259 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3260 (fcvtas): Split as...
3261 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3262 (fcvtau): Split as...
3263 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3264 (fcvtps): Split as...
3265 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3266 (fcvtpu): Split as...
3267 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3268 (fcvtms): Split as...
3269 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3270 (fcvtmu): Split as...
3271 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3272 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3273 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3274 (lfrintnusf, lfrintnudf): Likewise.
3275 * config/aarch64/aarch64-simd.md
3276 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3277 define_insn.
3278 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3279 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3280 (fcvt_pattern): Likewise.
3281
b9de24fe
JG
32822013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3283
3284 * config/aarch64/aarch64-simd.md
3285 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3286 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3287
77a205be
JG
32882013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3289
3290 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3291 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3292 (vrnd<a,m,n,p>_f32): Implement using builtins.
3293 (vrnd<i,x><q>_f<32, 64>): New.
3294
0659ce6f
JG
32952013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3296
3297 * config/aarch64/aarch64-builtins.c
3298 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3299 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3300 (frintz): Rename to...
3301 (btrunc): ...this.
3302 (frintp): Rename to...
3303 (ceil): ...this.
3304 (frintm): Rename to...
3305 (floor): ...this.
3306 (frinti): Rename to...
3307 (nearbyint): ...this.
3308 (frintx): Rename to...
3309 (rint): ...this.
3310 (frinta): Rename to...
3311 (round): ...this.
3312 * config/aarch64/aarch64-simd.md
3313 (aarch64_frint<frint_suffix><mode>): Delete.
3314 (<frint_pattern><mode>2): Convert to insn.
3315 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3316 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3317 (frint_pattern): Likewise.
3318 (frint_suffix): Likewise.
3319
ea78906a
RB
33202013-04-29 Richard Biener <rguenther@suse.de>
3321
3322 PR tree-optimization/57081
3323 * loop-init.c: Include tree-flow.h.
3324 (loop_optimizer_finalize): Free number of iteration estimates.
3325 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3326
baee1763
JJ
33272013-04-29 Jakub Jelinek <jakub@redhat.com>
3328
94dc5332
JJ
3329 PR tree-optimization/57083
3330 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3331 non-singleton shift count range, zero extend low_bound for uns case.
3332
baee1763
JJ
3333 * config/i386/predicates.md (general_vector_operand): New predicate.
3334 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3335 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3336 if they aren't nonimmediate operands. If their original values
3337 satisfy const_vector_equal_evenodd_p, don't shift them.
3338 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3339 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3340 if not nonimmediate_operand.
3341 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3342 instead of register_operand.
3343 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3344
a9073727 33452013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
3346
3347 * stor-layout.c (finalize_size_functions): Allocate a structure and
3348 reset cfun before dumping the functions.
3349
ba8011e6
JJ
33502013-04-27 Jakub Jelinek <jakub@redhat.com>
3351
d6fde69e
JJ
3352 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3353
ba8011e6
JJ
3354 PR target/56866
3355 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3356 use xop_pmacsdqh if uns_p.
3357 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3358 the immediate rotate count.
3359
2c62cbaa
VM
33602013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3361
3362 * rtl.h (struct rtx_def): Add comment for field jump.
3363 (LRA_SUBREG_P): New macro.
3364 * recog.c (register_operand): Check LRA_SUBREG_P.
3365 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3366 stack frame.
3367 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3368 (lra_final_code_change): Skip subreg change for operators.
3369 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3370 if there are no operand changes.
3371 * lra-constraints.c (curr_insn_set): New.
3372 (match_reload): Set LRA_SUBREG_P.
3373 (emit_spill_move): Ditto.
3374 (check_and_process_move): Use curr_insn_set. Process only single
3375 set insns. Don't initialize sec_mem_p and change_p.
3376 (simplify_operand_subreg): Use LRA_SUBREG_P.
3377 (reg_in_class_p): New function.
3378 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3379 of #ifdef. Add code to remove cycling.
3380 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3381 non-null disp. Reload inner instead of disp when base and index
3382 are null. Try to put lo_sum into register.
3383 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3384 (check_and_process_move): Move code for move cost check to
3385 simple_move_p. Remove equiv_substitution.
3386 (simple_move_p): New function.
3387 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3388 curr_insn_set. Call check_and_process_move only for single set
3389 insns. Use the new function. Move call of check_and_process_move
3390 after operand equiv substitution and address process.
3391
e7d764f3
JJ
33922013-04-26 Jakub Jelinek <jakub@redhat.com>
3393
3394 PR go/57045
3395 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3396 with nonlocal goto receivers or returns twice calls, ignore
3397 unininitialized values from abnormal edges to nl goto receiver
3398 or returns twice call.
3399
41e10689
JJ
34002013-04-26 Jakub Jelinek <jakub@redhat.com>
3401
3402 PR tree-optimization/57051
3403 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3404 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3405 bitsize.
3406
d7ed20db
RB
34072013-04-26 Richard Biener <rguenther@suse.de>
3408
3409 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3410 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3411 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3412 (fixup_loop_arrays_after_move): New function.
3413 (move_sese_region_to_fn): Properly outline the loop tree parts
3414 of the SESE region.
3415
df93505e
UB
34162013-04-26 Uros Bizjak <ubizjak@gmail.com>
3417
3418 * config/i386/i386.md (type, unit): Fix long lines.
3419
dd366ec3
RB
34202013-04-26 Richard Biener <rguenther@suse.de>
3421
3422 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3423 (lto-streamer-out.o): Likewise.
3424 * cfgloop.c (init_loops_structure): Export, add struct function
3425 argument and adjust.
3426 (flow_loops_find): Adjust.
3427 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3428 (init_loops_structure): Declare.
3429 * lto-streamer-in.c: Include cfgloop.h.
3430 (input_cfg): Input the loop tree.
3431 * lto-streamer-out.c: Include cfgloop.h.
3432 (output_cfg): Output the loop tree.
3433 (output_struct_function_base): Do not drop PROP_loops.
3434
a9e0d843
RB
34352013-03-26 Richard Biener <rguenther@suse.de>
3436
3437 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3438 (pass_build_cfg): Provide PROP_loops.
3439 (move_sese_region_to_fn): Remove loops that are outlined into fn
3440 for now.
3441 * tree-inline.c: Include cfgloop.h.
3442 (initialize_cfun): Do not drop PROP_loops.
3443 (copy_loops): New function.
3444 (copy_cfg_body): Copy loop structure.
3445 (tree_function_versioning): Initialize destination loop tree.
3446 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3447 (pass_parallelize_loops): Do IL verification.
3448 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3449 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3450 the CFG make sure we fixup loops as well.
3451 * tree-ssa-tail-merge.c: Include cfgloop.h.
3452 (replace_block_by): When merging loop latches mark loops for fixup.
3453 * lto-streamer-out.c (output_struct_function_base): Drop
3454 PROP_loops for now.
3455 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3456 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3457 * ipa-split.c: Include cfgloop.h.
3458 (split_function): Add the new return block to the loop tree root.
3459 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3460 whether we have removed the forwarder block.
3461 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3462 * cfgloop.h (place_new_loop): Declare.
3463 * cfgloopmanip.c (place_new_loop): Export.
3464 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3465 (tree-switch-conversion.o): Likewise.
3466 (tree-complex.o): Likewise.
3467 (tree-inline.o): Likewise.
3468 (tree-ssa-tailmerge.o): Likewise.
3469 (ipa-split.o): Likewise.
3470 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3471 (tree-ssa-copy.o): Likewise.
3472 * tree-switch-conversion.c: Include cfgloop.h
3473 (process_switch): If we emit a bit-test cascade, schedule loops
3474 for fixup.
3475 * tree-complex.c: Include cfgloop.h.
3476 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3477 * asan.c: Include cfgloop.h.
3478 (create_cond_insert_point): Properly add new basic-blocks to
3479 loops, schedule loop fixup.
3480 * cfgloop.c (verify_loop_structure): Check that looks are not
3481 marked for fixup.
3482 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3483 to loops.
3484 (expand_omp_for_generic): Likewise.
3485 (expand_omp_sections): Likewise.
3486 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3487 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3488 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3489 is initialized, not when loops are present.
3490 * tree-parloops.c (parallelize_loops): Remove checking here.
3491 * passes.c (init_optimization_passes): Schedule a copy-propagation
3492 pass before complete unrolling of inner loops.
3493
e78e8a0b
JJ
34942013-04-26 Jakub Jelinek <jakub@redhat.com>
3495
a2e836b2
JJ
3496 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3497 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3498 (colorize_init): Add argument to _WIN32 version.
3499 * toplev.c: Include diagnostic-color.h.
3500 (process_options): Default to -fdiagnostics-color=auto if
3501 GCC_COLORS env var is in the environment.
3502 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
3503 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3504 env var is in the environment, the default is auto rather than never.
a2e836b2 3505
e78e8a0b
JJ
3506 * diagnostic.h (file_name_as_prefix): Add context argument.
3507 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3508 the string as locus.
3509 * langhooks.c (lhd_print_error_function): Adjust caller.
3510
013e5ef9
LC
35112013-04-25 Lawrence Crowl <crowl@google.com>
3512
3513 * var-tracking.c (shared_hash_def::htab):
3514 Change type to hash_table. Update dependent calls and types.
3515
4a8fb1a1
LC
35162013-04-25 Lawrence Crowl <crowl@google.com>
3517
3518 * Makefile.in: Update as needed below.
3519
3520 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3521 Move declaration to after the type's method definitons.
3522
3523 * attribs.c (htab_t scoped_attributes::attribute_hash):
3524 Change type to hash_table. Update dependent calls and types.
3525
3526 * bitmap.c (htab_t bitmap_desc_hash):
3527 Change type to hash_table. Update dependent calls and types.
3528
3529 * cselib.c (htab_t cselib_hash_table):
3530 Change type to hash_table. Update dependent calls and types.
3531
3532 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3533 (hash_string_slot_node): Move implementation into lto-streamer.h
3534 struct string_slot_hasher.
3535 (eq_string_slot_node): Likewise.
3536
3537 * data-streamer-out.c: Update output_block::string_hash_table
3538 dependent calls and types.
3539
3540 * dwarf2cfi.c (htab_t trace_index):
3541 Change type to hash_table. Update dependent calls and types.
3542
3543 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3544 Change type to hash_table. Update dependent calls and types.
3545 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3546 (htab_t optimize_external_refs::map): Likewise.
3547 (htab_t output_comp_unit::extern_map): Likewise.
3548 (htab_t output_comdat_type_unit::extern_map): Likewise.
3549 (htab_t output_macinfo::macinfo_htab): Likewise.
3550 (htab_t optimize_location_lists::htab): Likewise.
3551 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3552
3553 * except.c (htab_t ehspec_hash_type):
3554 Change type to hash_table. Update dependent calls and types.
3555 (assign_filter_values::ttypes): Likewise.
3556 (assign_filter_values::ehspec): Likewise.
3557 (sjlj_assign_call_site_values::ar_hash): Likewise.
3558 (convert_to_eh_region_ranges::ar_hash): Likewise.
3559
3560 * gcse.c (htab_t pre_ldst_table):
3561 Change type to hash_table. Update dependent calls and types.
3562
3563 * ggc-common.c (htab_t saving_htab):
3564 Change type to hash_table. Update dependent calls and types.
3565 (htab_t loc_hash): Likewise.
3566 (htab_t ptr_hash): Likewise.
3567 (call_count): Rename ggc_call_count.
3568 (call_alloc): Rename ggc_call_alloc.
3569 (loc_descriptor): Rename make_loc_descriptor.
3570 (add_statistics): Rename ggc_add_statistics.
3571
3572 * ggc-common.c (saving_htab):
3573 Change type to hash_table. Update dependent calls and types.
3574
3575 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3576 (push_gimplify_context): Likewise.
3577 (pop_gimplify_context): Likewise.
3578 (struct gimple_temp_hash_elt): Added.
3579 (struct gimplify_hasher): Likewise.
3580 (struct gimplify_ctx.temp_htab):
3581 Change type to hash_table. Update dependent calls and types.
3582
3583 * gimple-fold.c: Include gimplify-ctx.h.
3584
3585 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3586 Change type to hash_table. Update dependent calls and types.
3587 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3588 avoid potential global name collision.
3589
3590 * gimplify.c: Include gimplify-ctx.h.
3591 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3592 (htab_t gimplify_ctx::temp_htab):
3593 Update dependent calls and types for new type hash_table.
3594 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3595 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3596
3597 * gimplify-ctx.h: New.
3598 (struct gimple_temp_hash_elt): Move from gimplify.c.
3599 (class gimplify_hasher): New.
3600 (struct gimplify_ctx): Move from gimple.h.
3601 (htab_t gimplify_ctx::temp_htab):
3602 Change type to hash_table. Update dependent calls and types.
3603
3604 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3605 (htab_t ivs_params::newivs_index):
3606 Change type to hash_table. Update dependent calls and types.
3607 (htab_t ivs_params::params_index): Likewise.
3608 (htab_t print_generated_program::params_index): Likewise.
3609 (htab_t gloog::newivs_index): Likewise.
3610 (htab_t gloog::params_index): Likewise.
3611
3612 * graphite.c: Include graphite-htab.h.
3613 4htab_t graphite_transform_loops::bb_pbb_mapping):
3614 Change type to hash_table. Update dependent calls and types.
3615
3616 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3617 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3618 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3619
3620 * graphite-dependences.c: Include graphite-htab.h.
3621 (loop_is_parallel_p): Change hash table type of parameter.
3622
3623 * graphite-htab.h: New.
3624 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3625 (extern find_pbb_via_hash): Move from graphite-poly.h.
3626 (extern loop_is_parallel_p): Move from graphite-poly.h.
3627 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3628
3629 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3630 (extern loop_is_parallel_p): Move to graphite-htab.h.
3631 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3632
3633 * haifa-sched.c (htab_t delay_htab):
3634 Change type to hash_table. Update dependent calls and types.
3635 (htab_t delay_htab_i2): Likewise.
3636
3637 * ira-color.c (htab_t allocno_hard_regs_htab):
3638 Change type to hash_table. Update dependent calls and types.
3639
3640 * ira-costs.c (htab_t cost_classes_htab):
3641 Change type to hash_table. Update dependent calls and types.
3642
3643 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3644 Change type to hash_table. Update dependent calls and types.
3645
3646 * loop-iv.c (htab_t bivs):
3647 Change type to hash_table. Update dependent calls and types.
3648
3649 * loop-unroll.c (htab_t opt_info::insns_to_split):
3650 Change type to hash_table. Update dependent calls and types.
3651 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3652
3653 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3654 (struct string_slot_hasher): New.
3655 (htab_t output_block::string_hash_table):
3656 Change type to hash_table. Update dependent calls and types.
3657
3658 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3659 (htab_t file_name_hash_table):
3660 Change type to hash_table. Update dependent calls and types.
3661
3662 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3663 calls and types.
3664
3665 * lto-streamer.c (htab_t tree_htab):
3666 Change type to hash_table. Update dependent calls and types.
3667
3668 * omp-low.c: Include gimplify-ctx.h.
3669
3670 * passes.c (htab_t name_to_pass_map):
3671 Change type to hash_table. Update dependent calls and types.
3672 (pass_traverse): Rename to passes_pass_traverse.
3673
3674 * plugin.c (htab_t event_tab):
3675 Change type to hash_table. Update dependent calls and types.
3676
3677 * postreload-gcse.c (htab_t expr_table):
3678 Change type to hash_table. Update dependent calls and types.
3679 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3680
3681 * sese.c (debug_rename_map_1): Make extern.
3682 (htab_t copy_bb_and_scalar_dependences::rename_map):
3683 Change type to hash_table. Update dependent calls and types.
3684
3685 * sese.h (extern debug_rename_map): Move to .c file.
3686
3687 * store-motion.c (htab_t store_motion_mems_table):
3688 Change type to hash_table. Update dependent calls and types.
3689
3690 * trans-mem.c (htab_t tm_new_mem_hash):
3691 Change type to hash_table. Update dependent calls and types.
3692
3693 * tree-browser.c (htab_t TB_up_ht):
3694 Change type to hash_table. Update dependent calls and types.
3695
3696 * tree-cfg.c (htab_t discriminator_per_locus):
3697 Change type to hash_table. Update dependent calls and types.
3698
3699 * tree-complex.c: Include tree-hasher.h
3700 (htab_t complex_variable_components):
3701 Change type to hash_table. Update dependent calls and types.
3702
3703 * tree-eh.c (htab_t finally_tree):
3704 Change type to hash_table. Update dependent calls and types.
3705
3706 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3707 struct int_tree_hasher.
3708 (extern int_tree_map_eq): Likewise.
3709 (uid_decl_map_hash): Removed.
3710 (extern decl_tree_map_eq): Likewise.
3711
3712 * tree-hasher.h: New.
3713 (struct int_tree_hasher): New.
3714 (typedef int_tree_htab_type): New.
3715
3716 * tree-inline.c: Include gimplify-ctx.h.
3717
3718 * tree-mudflap.c: Include gimplify-ctx.h.
3719
3720 * tree-parloops.c: Include tree-hasher.h.
3721 (htab_t eliminate_local_variables_stmt::decl_address):
3722 Change type to hash_table. Update dependent calls and types.
3723 (htab_t separate_decls_in_region::decl_copies): Likewise.
3724
3725 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3726 Change type to hash_table. Update dependent calls and types.
3727
3728 * tree-sra.c (candidates):
3729 Change type to hash_table. Update dependent calls and types.
3730
3731 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3732 in tree-flow.h.
3733 (int_tree_map_hash): Likewise.
3734
3735 * tree-ssa-dom.c (htab_t avail_exprs):
3736 Change type to hash_table. Update dependent calls and types.
3737
3738 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3739 Change type to hash_table. Update dependent calls and types.
3740
3741 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3742 Change type to hash_table. Update dependent calls and types.
3743
3744 * tree-ssa-phiopt.c (seen_ssa_names):
3745 Change type to hash_table. Update dependent calls and types.
3746
3747 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3748 Change type to hash_table. Update dependent calls and types.
3749
3750 * tree-ssa-uncprop.c (equiv):
3751 Change type to hash_table. Update dependent calls and types.
3752
c5a44004
JJ
37532013-04-25 Jakub Jelinek <jakub@redhat.com>
3754
3755 PR rtl-optimization/57003
3756 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3757 call note_stores with kill_clobbered_value callback again after
3758 killing regs_invalidated_by_call.
3759
09962a4a
JG
37602013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3761
3762 * config/aarch64/aarch64-simd.md
3763 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3764 (aarch64_simd_bsl<mode>): Likewise.
3765 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3766
ea28bb0b
MP
37672013-04-25 Marek Polacek <polacek@redhat.com>
3768
3769 PR tree-optimization/57066
3c21604f 3770 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3771
96659611
JG
37722013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3773
3774 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3775
9697e620
JG
37762013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3777
3778 * config/aarch64/aarch64-builtins.c
3779 (aarch64_fold_builtin): New.
3780 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3781 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3782 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3783 * config/aarch64/arm_neon.h
3784 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3785
0ac198d3
JG
37862013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3787 Tejas Belagod <tejas.belagod@arm.com>
3788
3789 * config/aarch64/aarch64-builtins.c
3790 (aarch64_gimple_fold_builtin): New.
3791 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3792 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3793 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3794 (addvv4sf): Update.
3795 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3796
58cff58c
N
37972013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3798
df93505e 3799 * config/aarch64/aarch64.md
58cff58c
N
3800 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3801
7e0228bf
N
38022013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3803
3804 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3805 (*ngcsi_uxtw): New pattern.
3806
5819f96f 38072013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3808 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3809
3810 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3811 (TB_DREG): Add T_V4HF.
3812 (v4hf_UP): New macro.
3813 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3814 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3815 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3816 built-ins.
df93505e 3817 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3818 (arm_vector_mode_supported_p): Handle V4HF.
3819 (arm_mangle_map): Handle V4HFmode.
3820 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3821 * config/arm/arm_neon_builtins.def: Add entries for
3822 vcvtv4hfv4sf, vcvtv4sfv4hf.
3823 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3824 (neon_vcvtv4hfv4sf): Likewise.
3825 * config/arm/neon-gen.ml: Handle half-precision floating point
3826 features.
3827 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3828 * config/arm/arm_neon.h: Regenerate.
3829 * config/arm/neon.ml (type elts): Add F16.
3830 (type vectype): Add T_float16x4, T_floatHF.
3831 (type vecmode): Add V4HF.
3832 (type features): Add Requires_FP_bit feature.
3833 (elt_width): Handle F16.
3834 (elt_class): Likewise.
3835 (elt_of_class_width): Likewise.
3836 (mode_of_elt): Refactor.
3837 (type_for_elt): Handle F16, fix error messages.
3838 (vectype_size): Handle T_float16x4.
3839 (vcvt_sh): New function.
3840 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3841 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3842 (string_of_mode): Handle V4HF.
3843 * doc/arm-neon-intrinsics.texi: Regenerate.
3844
1ef395e4
JG
38452013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3846
3847 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3848 format specifier in 'X' case.
3849
41c34e94
AM
38502013-04-25 Alan Modra <amodra@gmail.com>
3851
3852 PR target/57052
3853 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3854 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3855 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3856 Repeat for many other rotate/shift and mask patterns using subregs.
3857 Name lshiftrt insns.
3858 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3859 on WORDS_BIG_ENDIAN.
3860
b9a7eb5d
AM
38612013-04-25 Alan Modra <amodra@gmail.com>
3862
3863 * config.gcc: Support little-endian powerpc-linux targets.
3864 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3865 (LINK_OS_LINUX_SPEC): Define.
3866 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3867 Preserve MASK_LITTLE_ENDIAN.
3868 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3869 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3870 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3871 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3872 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3873 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3874 Correct fp word order for little-endian. Don't shift toc entries
3875 smaller than a word for little-endian.
3876 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3877 (bswapdi2 splits): Correct low-part subreg for little-endian.
3878 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3879 low/high where such is correct only for be.
3880 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3881 little-endian for -mcall-aixdesc.
3882
87f73374
AM
38832013-04-25 Alan Modra <amodra@gmail.com>
3884
3885 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3886 replace_equiv_address_nv.
3887
cabf91cd
AM
38882013-04-25 Alan Modra <amodra@gmail.com>
3889
3890 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3891
0ae24cc8
VM
38922013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3893
3894 Revert:
3895 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3896 * rtl.h (struct rtx_def): ...
cabf91cd 3897
77bce07c
VM
38982013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3899
3900 PR rtl-optimizations/57046
3901 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3902 for multi-reg splits.
3903
0db63e7f
L
39042013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3905
3906 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3907
3362b6b6
SA
39082013-04-24 Sterling Augustine <saugustine@google.com>
3909
3910 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3911 (comp_dir_string, debug_str_dwo_section): New.
3912 (DEBUG_STR_DWO_SECTION): Rename to ...
3913 (DEBUG_DWO_STR_SECTION): ... this.
3914 (DEBUG_NORM_STR_SECTION): Delete.
3915 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3916 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3917 (find_AT_string): Move most logic to ...
3918 (find_AT_string_in_table): ... here. New.
3919 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3920 add_skeleton_AT_string. Delete logic.
3921 (output_skeleton_debug_sections): Remove call to
3922 add_top_level_skeleton_die_attrs.
3923 (add_comp_dir_attribute): Move logic to comp_dir_string.
3924 (dwarf2out_init): Initialize debug_str_dwo_section.
3925 (output_indirect_string): Call find_string_form.
3926 (output_indirect_strings): Rewrite.
3927 (prune_unused_types): Empty skeleton_debug_str_hash.
3928 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3929 (dwarf2out_finish): Call output_indirect_strings.
3930
e93e18e9
PC
39312013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3932
3933 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3934
f6ce35ac
VM
39352013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3936
cabf91cd 3937 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
3938 (LRA_SUBREG_P): New macro.
3939 * recog.c (register_operand): Check LRA_SUBREG_P.
3940 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3941 stack frame.
3942 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3943 (lra_final_code_change): Skip subreg change for operators.
3944 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3945 if there are no operand changes.
3946 * lra-constraints.c (curr_insn_set): New.
3947 (match_reload): Set LRA_SUBREG_P.
3948 (emit_spill_move): Ditto.
3949 (check_and_process_move): Use curr_insn_set. Process only single
3950 set insns. Don't initialize sec_mem_p and change_p.
3951 (simplify_operand_subreg): Use LRA_SUBREG_P.
3952 (reg_in_class_p): New function.
3953 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3954 of #ifdef. Add code to remove cycling.
3955 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3956 non-null disp. Reload inner instead of disp when base and index
3957 are null. Try to put lo_sum into register.
3958 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 3959 (check_and_process_move): Move code for move cost check to
f6ce35ac 3960 simple_move_p. Remove equiv_substitution.
cabf91cd 3961 (simple_move_p): New function.
f6ce35ac
VM
3962 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3963 curr_insn_set. Call check_and_process_move only for single set
3964 insns. Use the new function. Move call of check_and_process_move
3965 after operand equiv substitution and address process.
3966
38047d90
JG
39672013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3968
3969 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3970 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3971 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3972
13f39b2e
PC
39732013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3974
3975 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3976
97c116dc
MP
39772013-04-24 Marek Polacek <polacek@redhat.com>
3978
3979 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3980 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3981 (select_loops_exit_conditions): Likewise.
3982 (number_of_iterations_for_all_loops): Likewise.
3983 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3984 (scev_analysis): Likewise.
3985
83082391
CM
39862013-04-02 Catherine Moore <clm@codesourcery.com>
3987 Chao-ying Fu <fu@mips.com>
3988
cabf91cd
AM
3989 * config/mips/micromips.md (jraddiusp): New pattern.
3990 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3991 instruction if possible.
83082391 3992
19e34aa2
AM
39932013-04-24 Alan Modra <amodra@gmail.com>
3994
3995 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3996
fdb6603c
JB
39972013-04-24 Julian Brown <julian@codesourcery.com>
3998 Chung-Lin Tang <cltang@codesourcery.com>
3999
4000 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
4001 dependency behavior in enumeration type DIE generation. Add TODO note
4002 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 4003
bf190e8d
LC
40042013-04-23 Lawrence Crowl <crowl@google.com>
4005
4006 * Makefile.in: Update as needed below.
4007
4008 * hash-table.h (class hash_table):
4009 Correct many methods with parameter types compare_type to the correct
4010 value_type. (Correct code was unlikely to notice the change.)
4011 (hash_table::elements_with_deleted) New.
4012 (class hashtable::iterator): New.
4013 (hashtable::begin()): New.
4014 (hashtable::end()): New.
4015 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4016
4017 * statistics.c (statistics_hashes):
4018 Change type to hash_table. Update dependent calls and types.
4019
4020 * tree-into-ssa.c (var_infos):
4021 Change type to hash_table. Update dependent calls and types.
4022
4023 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4024 Change type to hash_table. Update dependent calls and types.
4025
4026 * tree-ssa-loop-im.c (struct mem_ref.refs):
4027 Change type to hash_table. Update dependent calls and types.
4028
4029 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4030 Change type to hash_table. Update dependent calls and types.
4031
4032 * tree-ssa-sccvn.c (vn_tables_s::nary):
4033 Change type to hash_table. Update dependent calls and types.
4034 (vn_tables_s::phis): Likewise.
4035 (vn_tables_s::references): Likewise.
4036
4037 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4038 (vn_reference_eq): Update parameter and return types.
4039
4040 * tree-ssa-structalias.c (pointer_equiv_class_table):
4041 Change type to hash_table. Update dependent calls and types.
4042 (location_equiv_class_table): Likewise.
4043
4044 * tree-vect-data-refs.c: Consequential changes for making
4045 peeling a hash_table.
4046
4047 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4048 (destroy_loop_vec_info): Dependent hash_table update.
4049
4050 * tree-vectorizer.h (peeling_htab):
4051 Change type to hash_table. Update dependent calls and types.
4052
d70a81dd
SC
40532013-04-23 Shiva Chen <shiva0217@gmail.com>
4054
cabf91cd
AM
4055 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4056 to check the register content is equal or not.
4057 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4058 to assign register content record.
4059 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 4060 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
4061 * lra-int.h (struct lra_reg): Add offset member.
4062 (lra_reg_val_equal_p): New static inline function.
4063 (lra_update_reg_val_offset): New static inline function.
4064 (lra_assign_reg_val): New static inline function.
4065 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4066 to assign register content record.
4067 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 4068
b894a1f3
CM
40692013-04-23 Catherine Moore <clm@codesourcery.com>
4070
4071 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4072 operands. Record compression.
4073
ecd14de9
XDL
40742013-04-23 Xinliang David Li <davidxl@google.com>
4075
4076 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4077
92e776e9
RB
40782013-04-23 Richard Biener <rguenther@suse.de>
4079
4080 PR middle-end/57036
4081 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4082 parameter, only add abnormal goto edges from the copied body
4083 if the call could perform abnormal gotos.
4084 (copy_cfg_body): Adjust.
4085
a15ee567
SN
40862013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4087
4088 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4089
08c52234
AS
40902013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4091
4092 * coretypes.h (gimple_stmt_iterator): Add struct to make
4093 compatible with C.
4094
999c1171
RB
40952013-04-23 Richard Biener <rguenther@suse.de>
4096
4097 PR tree-optimization/57026
4098 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4099 from SSA names occuring in abnormal PHI nodes.
4100
53669259
AK
41012013-04-22 Andi Kleen <ak@linux.intel.com>
4102
4103 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4104
1a0ad150
AK
41052013-04-22 Andi Kleen <ak@linux.intel.com>
4106
4107 * lto/lto.c (print_lto_report_1): Declare early.
4108 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4109
057f8f20
AK
41102013-04-22 Andi Kleen <ak@linux.intel.com>
4111
4112 * common.opt (-flto-report-wpa): Add.
4113 * doc/invoke.texi (-flto-report-wpa): Add.
4114 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4115 (lto_main): dito.
4116
473b1e05
XDL
41172013-04-22 Xinliang David Li <davidxl@google.com>
4118
4119 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4120 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4121 * Makefile.in: New dependency
4122
cabf91cd 4123 David Daney <ddaney.cavm@gmail.com>
b1485a33 4124
cabf91cd
AM
4125 * configure.ac (gcc_cv_as_micromips_support): Use the
4126 --fatal-warnings option.
4127 * configure: Regenerate.
b1485a33 4128
829d0168
MP
41292013-04-22 Marek Polacek <polacek@redhat.com>
4130
4131 PR sanitizer/56990
4132 * tsan.c (instrument_expr): Don't instrument expression
4133 in case its size is zero.
4134
6d9b7208
UB
41352013-04-22 Uros Bizjak <ubizjak@gmail.com>
4136
4137 PR target/57032
4138 Revert:
4139 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4140
4141 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4142
ea679d55
JG
41432013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4144
4145 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4146 (gimple_stmt_iterator): New typedef.
4147 * gimple.h (gimple_stmt_iterator): Rename to...
4148 (gimple_stmt_iterator_d): ... This.
4149 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4150 trees be valid for GIMPLE and GENERIC.
4151 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4152 * gimple-fold.c (gimple_fold_call): Call target hook
4153 gimple_fold_builtin.
4154 * hooks.c (hook_bool_gsiptr_false): New.
4155 * hooks.h (hook_bool_gsiptr_false): New.
4156 * target.def (fold_stmt): New.
4157 * doc/tm.texi: Regenerate.
4158
88a581da
VM
41592013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4160
4161 PR target/57018
4162 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4163 a set sp if no stack realignment.
4164
92be22dc
NC
41652013-04-22 Nick Clifton <nickc@redhat.com>
4166
4167 * config.gcc (tilegx-linux): Extend extra_objs rather than
4168 overwriting it.
4169 (tilepro-linux): Likewise.
4170
0ddec79f
JG
41712013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4172
4173 * config/aarch64/aarch64-builtins.c
4174 (CF): Remove.
4175 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4176 (VAR<1-12>): Add MAP parameter.
4177 (BUILTIN_*): Likewise.
4178 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4179 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4180 (aarch64_ushl_n<mode>): Likewise.
4181 (aarch64_sshr_n<mode>): Likewise.
4182 (aarch64_ushr_n<mode>): Likewise.
4183 (aarch64_<maxmin><mode>): Likewise.
4184 (aarch64_sqrt<mode>): Likewise.
4185 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4186 (vshr<q>_n_*): Likewise.
4187
0050faf8
JG
41882013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4189
4190 * config/aarch64/aarch64-builtins.c
4191 (aarch64_simd_builtin_type_mode): Handle SF types.
4192 (sf_UP): Define.
4193 (BUILTIN_GPF): Define.
4194 (aarch64_init_simd_builtins): Handle SF types.
4195 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4196 (frecps): Likewise.
4197 (frecpx): Likewise.
4198 * config/aarch64/aarch64-simd.md
4199 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4200 (aarch64_frecpe<mode>): New.
4201 (aarch64_frecps<mode>): Likewise.
4202 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4203 (v8type): Add frecp<esx>.
4204 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4205 (aarch64_frecps<mode>): Likewise.
4206 * config/aarch64/iterators.md (FRECP): New.
4207 (frecp_suffix): Likewise.
4208 * config/aarch64/arm_neon.h
4209 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4210
0fad3dbc 42112013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
4212
4213 PR target/56995
4214 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4215 (REG_CLASS_NAMES): Idem.
4216 (REG_CLASS_CONTENTS): Idem.
4217 (REGCLASS_HAS_FP_REG): Idem.
4218 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4219 (sh_conditional_register_usage): Idem.
4220
3e8a33f9
JL
42212013-04-21 Jeff Law <law@redhat.com>
4222
4223 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4224 (ssa_forward_propagate_and_combine): Use it.
4225
f38e1b0a
VM
42262013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4227
4228 * lra.c: Update the flow chart diagram.
4229
682303da
VM
42302013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4231
4232 PR rtl-optimization/56847
4233 * lra-constraints.c (process_alt_operands): Discourage alternative
4234 with non-matche doffsettable memory constraint fro memory with
4235 known offset.
4236
f6b64c35
RB
42372013-04-19 Richard Biener <rguenther@suse.de>
4238
4239 PR tree-optimization/56982
4240 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4241 function.
4242 * gimplify.c (gimplify_call_expr): Notice special calls.
4243 (gimplify_modify_expr): Likewise.
4244 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4245 abnormal control flow receivers.
4246 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4247 in the same way as cfun->has_nonlocal_labels.
4248 (gimple_purge_dead_abnormal_call_edges): Likewise.
4249 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4250 receivers start a basic-block.
4251
01d8bf07
RB
42522013-04-19 Richard Biener <rguenther@suse.de>
4253
4254 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4255 member ...
4256 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4257 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4258 (SLP_TREE_LOAD_PERMUTATION): Add.
4259 (vect_transform_slp_perm_load): Adjust prototype.
4260 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4261 (vect_free_slp_instance): Likewise.
4262 (vect_create_new_slp_node): Likewise.
4263 (vect_supported_slp_permutation_p): Remove.
4264 (vect_slp_rearrange_stmts): Adjust.
4265 (vect_supported_load_permutation_p): Likewise. Inline
4266 vect_supported_slp_permutation_p here.
4267 (vect_analyze_slp_instance): Compute load permutations per
4268 slp node instead of per instance.
4269 (vect_get_slp_defs): Adjust.
4270 (vect_transform_slp_perm_load): Likewise.
4271 (vect_schedule_slp_instance): Remove redundant code.
4272 (vect_schedule_slp): Remove hack for PR56270, add it ...
4273 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4274 CSE loads for SLP. Adjust.
4275
ede22fc3
GY
42762013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4277
4278 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4279 spelling in two comments.
4280
67bc84fb
GY
42812013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4282
4283 PR target/56797
4284 * config/arm/arm.c (load_multiple_sequence): Require SP
4285 as base register for loads if SP is in the register list.
4286
e248d83f
MJ
42872013-04-19 Martin Jambor <mjambor@suse.cz>
4288
4289 PR tree-optimization/56718
4290 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4291 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4292 and made public. Adjusted all callers.
4293 (ipa_intraprocedural_devirtualization): New function.
4294 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4295 (ipa_intraprocedural_devirtualization): Likewise.
4296 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4297
4891e8f8
RB
42982013-04-19 Richard Biener <rguenther@suse.de>
4299
4300 PR tree-optimization/57000
4301 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4302
dad89f7c
TG
43032013-04-19 Terry Guo <terry.guo@arm.com>
4304
4305 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4306 Replace with ...
4307 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4308 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4309 (cortex_m4_fmacs): Use new reservations.
4310 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4311
72ea0d47
VM
43122013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4313
f1e6512c 4314 PR rtl-optimization/56999
72ea0d47
VM
4315 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4316 related code.
4317 (lra_coalesce): Remove split_origin_bitmap and related code.
4318 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4319 ranges if necessary.
4320
780a5b71
UB
43212013-04-18 Uros Bizjak <ubizjak@gmail.com>
4322
4323 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4324 New array.
4325 (ix86_expand_call): Remove clobbered_registers array and use
4326 x86_64_ms_sysv_extra_clobbered_registers instead.
4327 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4328 Declare here.
4329 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4330 predicate.
4331 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4332 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4333 (*call_value_rex64_ms_sysv): Ditto.
4334
6f5a366a
CC
43352013-04-18 Cary Coutant <ccoutant@google.com>
4336
4337 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4338 parent instead of die_mark.
4339
475b8f37
DN
43402013-04-18 Diego Novillo <dnovillo@google.com>
4341
4342 * gimple.c (create_gimple_tmp): New.
4343 (get_expr_type): New.
4344 (build_assign): New.
4345 (build_type_cast): New.
4346 * gimple.h (enum ssa_mode): Define.
4347 (gimple_seq_set_location): New.
4348 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 4349 to use build_assign and build_type_cast.
475b8f37 4350
08940f33
RB
43512013-04-18 Richard Biener <rguenther@suse.de>
4352
4353 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4354 handle negative step. Remove redundant checks.
4355 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4356 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4357 for negative step and grouped loads fail to vectorize.
4358
0e0f87d4
SB
43592013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4360
4361 * emit-rtl.c (reset_insn_used_flags): New function.
4362 (reset_all_used_flags): Use it.
4363 (verify_insn_sharing): New function.
4364 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4365
4c445590
JJ
43662013-04-18 Jakub Jelinek <jakub@redhat.com>
4367
4368 PR tree-optimization/56984
4369 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4370 and (x >> M) >= N don't register any assertion if N << M is the
4371 minimum value.
4372
6873ecab
SB
43732013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4374
4375 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4376 do not delete_insn insns that have not yet been emitted, only
4377 unlink them with remove_insn.
4378 * df-scan.c (df_insn_delete): Revert r197492.
4379
3ccb989e
SB
43802013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4381
4382 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4383 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4384
43852013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
4386
4387 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4388 define_insn_and_split.
4389 (and_scc,ior_scc,negscc): Likewise.
4390 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4391
3ccb989e 43922013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
4393
4394 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4395 can benefit from using a sequence of LDRD instructions in epilogue
4396 instead of a single LDM instruction.
4397
6d10a203
MLI
43982013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4399
4400 PR 45688
4401 * doc/extend.texi: Fix typo.
4402
6983e6b5
RB
44032013-04-17 Richard Biener <rguenther@suse.de>
4404
4405 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4406 (vect_build_slp_tree): ... here.
4407 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4408 match. Remove special-casing of mismatched complex loads.
4409 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4410 re-try the match with swapped commutative operands.
4411 (vect_supported_load_permutation_p): Remove special-casing of
4412 mismatched complex loads.
4413 (vect_analyze_slp_instance): Adjust.
4414
ef23e6a2
RB
44152013-04-17 Richard Biener <rguenther@suse.de>
4416
4417 PR rtl-optimization/56921
4418 * cfgloop.h (struct loop): Add simple_loop_desc member.
4419 (struct niter_desc): Mark with GTY(()).
4420 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4421 * loop-iv.c (get_simple_loop_desc): Likewise.
4422 (free_simple_loop_desc): Likewise.
4423
4424 Revert
4425 2013-04-16 Richard Biener <rguenther@suse.de>
4426
4427 PR rtl-optimization/56921
4428 * loop-init.c (pass_rtl_move_loop_invariants): Add
4429 TODO_do_not_ggc_collect to todo_flags_finish.
4430 (pass_rtl_unswitch): Same.
4431 (pass_rtl_unroll_and_peel_loops): Same.
4432 (pass_rtl_doloop): Same.
4433
fc6f94f5
EB
44342013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4435
4436 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4437 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4438 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4439 references.
4440 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4441 * tree-streamer.c (record_common_node): Adjust reference in comment.
4442
10a88311
TG
44432013-04-17 Terry Guo <terry.guo@arm.com>
4444
4445 * config/arm/cortex-m4.md: Add a new bypass.
4446
6d9b7208 44472013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
4448
4449 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4450 New pattern.
4451 (*subs_<optab><mode>_multp2): New pattern.
4452 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4453 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4454
6d9b7208 44552013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
4456
4457 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4458 (*subs_mul_imm_<mode>): New pattern.
4459
18a6701e
DE
44602013-04-16 David Edelsohn <dje.gcc@gmail.com>
4461
4462 PR target/56948
4463 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4464 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4465 (vsx_movti_32bit): Change j->wa to O->wa.
4466
07c37b2f
RB
44672013-04-16 Richard Biener <rguenther@suse.de>
4468
4469 PR rtl-optimization/56921
4470 * loop-init.c (pass_rtl_move_loop_invariants): Add
4471 TODO_do_not_ggc_collect to todo_flags_finish.
4472 (pass_rtl_unswitch): Same.
4473 (pass_rtl_unroll_and_peel_loops): Same.
4474 (pass_rtl_doloop): Same.
4475
0e0f87d4 44762013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
4477
4478 * config/arm/arm.c (emit_multi_reg_push): New declaration
4479 for an existing function.
4480 (arm_emit_strd_push): New function.
4481 (arm_expand_prologue): Used here.
4482 (arm_emit_ldrd_pop): New function.
4483 (arm_expand_epilogue): Used here.
4484 (arm_get_frame_offsets): Update condition.
4485 (arm_emit_multi_reg_pop): Add a special case for load of a single
4486 register with writeback.
4487
5e8e2af4
UB
44882013-04-16 Uros Bizjak <ubizjak@gmail.com>
4489
4490 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4491 description.
4492
9fd9ccf7
RB
44932013-04-16 Richard Biener <rguenther@suse.de>
4494
4495 PR tree-optimization/56756
4496 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4497 (first_mem_ref_loc): New.
4498 (execute_sm): Place the load temporarily before a previous
4499 access instead of in the latch edge to ensure its SSA dependencies
4500 are defined at points dominating the load.
4501
96fba521
SB
45022013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4503
4c8af858
SB
4504 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4505 correct fix by moving header and footer insn to the footer of
4506 the merged basic block. Clear BB_END of the merged-away block.
4507
96fba521
SB
4508 PR middle-end/43631
4509 * emit-rtl.c (make_note_raw): New function.
4510 (link_insn_into_chain): New static inline function.
4511 (add_insn): Use it.
4512 (add_insn_before, add_insn_after): Factor insn chain linking code...
4513 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4514 using link_insn_into_chain.
4515 (note_outside_basic_block_p): New helper function for emit_note_after
4516 and emit_note_before.
4517 (emit_note_after): Use nobb variant of add_insn_after if the note
4518 should not be contained in a basic block.
4519 (emit_note_before): Use nobb variant of add_insn_before if the note
4520 should not be contained in a basic block.
4521 (emit_note_copy): Use make_note_raw.
4522 (emit_note): Likewise.
4523 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4524 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4525 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4526 the moved barrier the tail of the basic block it follows.
4527 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4528
7b8265ba
JJ
45292013-04-15 Jakub Jelinek <jakub@redhat.com>
4530
4531 PR tree-optimization/56962
4532 * gimple-ssa-strength-reduction.c (record_increment): Only set
4533 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4534 either rhs1 or rhs2 is equal to c->base_expr.
4535
5185d248
RB
45362013-04-15 Richard Biener <rguenther@suse.de>
4537
4538 PR tree-optimization/56933
4539 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4540 member.
4541 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4542 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4543 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4544 dependence check ...
4545 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4546 ... here.
4547 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4548 GROUP_READ_WRITE_DEPENDENCE.
4549
a24243a0
AK
45502013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4551
4552 * emit-rtl.c (reset_all_used_flags): New function.
4553 (verify_rtl_sharing): Call reset_all_used_flags before and after
4554 performing the checks.
4555
1c50eada
KT
45562013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4557
4558 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4559 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4560 * config/arm/constraints.md (De): New constraint.
4561 * config/arm/neon.md (anddi3_neon): Delete.
4562 (neon_vand<mode>): Expand to standard anddi3 pattern.
4563 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4564 Move earlier in the file.
4565 (neon_inv_logic_op2): Likewise.
4566 (arm_anddi_operand_neon): New predicate.
4567
e927b6ad
RO
45682013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4569
4570 * configure.ac (gcc_cv_ld_as_needed): Set
4571 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4572 Use -z ignore, -z record on *-*-solaris2*.
4573 (HAVE_LD_AS_NEEDED): Update comment.
4574 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4575 * configure: Regenerate.
4576 * config.in: Regenerate.
4577 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4578 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4579 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4580 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4581 equivalents. Fix markup.
4582 * doc/tm.texi: Regenerate.
4583
e0ea8797
AH
45842013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4585
4586 * config/i386/i386.opt: New option mstack-protector-guard=.
4587 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4588 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4589 TARGET_SSP_TLS_GUARD.
4590 * config/i386/i386.c (ix86_option_override_internal): Set
4591 ix86_stack_protector_guard.
4592 * config/i386/i386.md (stack_protect_set): Enable for
4593 TARGET_SSP_TLS_GUARD only.
4594 (stack_protect_set_<mode>): Ditto.
4595 (stack_protect_test): Ditto.
4596 (stack_protect_test_<mode>): Ditto.
4597 * doc/invoke.texi (i386 Option): Document.
4598
811b72f9
EB
45992013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4600
4601 PR target/56890
4602 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4603 (S_MODES): Set H_MODE bit.
4604 (SF_MODES): Set only S_MODE and SF_MODE bits.
4605 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4606 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4607 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4608 <MODE_FLOAT>: Likewise.
4609
5529fdd6
JY
46102013-04-15 Joey Ye <joey.ye@arm.com>
4611
4612 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4613
517b1da2
JY
46142013-04-15 Joey Ye <joey.ye@arm.com>
4615
4616 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4617 for real far jump.
4618 (thumb_far_jump_used_p): Count instruction size and set
4619 far_jump_used.
4620
01007ae0
EB
46212013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4622
4623 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4624 * resource.c (mark_target_live_regs): Reformat conditional block.
4625
c46f6580
SB
46262013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4627
4628 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4629 notes, they are emitted only just before final.
4630 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4631
1f397f45
SB
46322013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4633
4634 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4635 * cfgrtl.c (delete_insn): Call it here instead.
4636 * lra-spills.c (lra_final_code_change): Use delete_insn.
4637 * haifa-sched.c (sched_remove_insn): Likewise.
4638 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4639 returning to the nop pool.
4640 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4641 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4642
58a51369
SB
46432013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4644
4645 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4646 * doc/tm.texi: Regenerated.
4647
33159866
UB
46482013-04-12 Uros Bizjak <ubizjak@gmail.com>
4649
4650 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4651 QImode checks.
4652
226e378f
SB
46532013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4654
4655 * df-core.c (df_find_def): Compare register numbers.
4656 (df_find_use): Likewise.
4657
fafb9b18
VM
46582013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4659
4660 PR target/56903
4661 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4662 lra_in_progress for return.
4663
9a946fd6
GY
46642013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4665
4666 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4667 define_insn into define_insn_and_split and emit movsicc patterns.
4668
41b83758
GY
46692013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4670
4671 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4672
d3afd9aa
RB
46732013-04-12 Richard Biener <rguenther@suse.de>
4674
4675 * tree-pass.h (TODO_do_not_ggc_collect): New.
4676 * passes.c (execute_one_ipa_transform_pass): Honor
4677 TODO_do_not_ggc_collect.
4678 (execute_one_pass): Likewise.
4679
4680 Revert
4681 2013-04-10 Richard Biener <rguenther@suse.de>
4682
4683 * passes.c (init_optimization_passes): Remove reload pass.
4684 * ira.c (do_reload): Merge into ...
4685 (ira): ... this.
4686 (rest_of_handle_reload): Remove.
4687 (pass_reload): Likewise.
4688 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4689 of reload for vzeroupper pass placement.
4690
06f9b387
JJ
46912013-04-12 Jakub Jelinek <jakub@redhat.com>
4692
4693 PR tree-optimization/56918
4694 PR tree-optimization/56920
4695 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4696 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4697 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4698 use wide_mul_with_sign method.
4699
953094d2
RB
47002013-04-12 Richard Biener <rguenther@suse.de>
4701
4702 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4703 not be considered a gimple constant.
4704
bb506982
MG
47052013-04-12 Marc Glisse <marc.glisse@inria.fr>
4706
4707 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4708 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4709 operations.
4710
4b84d650
JJ
47112013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4712 Jakub Jelinek <jakub@redhat.com>
4713
4714 * opts.c: Include diagnostic-color.h.
4715 (common_handle_option): Handle OPT_fdiagnostics_color_.
4716 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4717 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4718 (diagnostic-color.o): New.
4719 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4720 (diagnostic_color_rule): New enum.
4721 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4722 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4723 the location string.
4724 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4725 either NULL, or color kind.
4726 * diagnostic-color.c: New file.
4727 * diagnostic-color.h: New file.
4728 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4729 arguments.
4730 * doc/invoke.texi (-fdiagnostics-color): Document.
4731 * pretty-print.h (pp_show_color): Define.
4732 (struct pretty_print_info): Add show_color field.
4733 * diagnostic.c: Include diagnostic-color.h.
4734 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4735 macros. Colorize error:, warning: etc. strings and also the location
4736 string.
4737 (diagnostic_show_locus): Colorize the caret line.
4738 * pretty-print.c: Include diagnostic-color.h.
4739 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4740 inside of %< %> quotes or quoted through q format modifier.
4741
067a1e71
AK
47422013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4743
33159866 4744 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4745
33159866 47462013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4747
4748 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4749 code in CC_NZ mode.
4750 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4751 pattern.
4752
7b55f98f
MP
47532013-04-11 Marek Polacek <polacek@redhat.com>
4754
4755 PR tree-optimization/48184
33159866 4756 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4757
966b587e
EB
47582013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4759
4760 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4761 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4762 (skip_simple_arithmetic): Tidy up.
4763 * tree.h (skip_simple_constant_arithmetic): Declare.
4764
33159866 47652013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4766
4767 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4768
1d42c1ec
RB
47692013-04-11 Richard Biener <rguenther@suse.de>
4770
4771 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4772 generate vector constants.
4773
4ba5ea11
RB
47742013-04-11 Richard Biener <rguenther@suse.de>
4775
4776 PR tree-optimization/56878
4777 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4778 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4779 New function.
4780 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4781 Prefer to align the DR with the most invariant base address.
4782
f0defe58
SKS
47832013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4784
4785 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4786 comment.
4787
d07458be
JG
47882013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4789
4790 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4791 floating-point vector comparisons against 0.
4792
146b8692
JJ
47932013-04-11 Jakub Jelinek <jakub@redhat.com>
4794
4795 PR tree-optimization/56899
4796 * fold-const.c (extract_muldiv_1): Apply distributive law
4797 only if TYPE_OVERFLOW_WRAPS (ctype).
4798
b8578ff7
BC
47992013-04-11 Bin Cheng <bin.cheng@arm.com>
4800
4801 PR target/56124
4802 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4803 loading has side effect.
4804
0ea8a6f9
SB
48052013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4806
4807 * config/sparc/sparc.c: Include tree-pass.h.
4808 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4809 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4810 head of file. Change return type. Split off gate function.
4811 (sparc_gate_work_around_errata): New function.
4812 (pass_work_around_errata): New pass definition.
4813 (insert_pass_work_around_errata) New pass insert definition to
4814 insert pass_work_around_errata just after delayed-branch scheduling.
4815 (sparc_option_override): Insert the pass.
4816 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4817
42e37616
DM
48182013-04-10 David S. Miller <davem@davemloft.net>
4819
89deeb3b
DM
4820 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4821 or -mcpu=hypersparc.
4822
42e37616
DM
4823 * target.def (cstore_mode): New hook.
4824 * target.h: Include insn-codes.h
4825 * targhooks.c: Likewise.
4826 (default_cstore_mode): New function.
4827 * targhooks.h: Declare it.
4828 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4829 * doc/tm.texi: Rebuild.
4830 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4831 target hook, rather than inspecting the insn_data.
4832 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4833 (TARGET_CSTORE_MODE): Redefine.
4834 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4835 result patterns.
4836 * config/sparc/predicates.md (cstore_result_operand): New special
4837 predicate.
4838 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4839 Use it for operand 0.
4840 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4841 (*snesi_special): Likewise.
4842 (*snesi_zero): Likewise.
4843 (*seqsi_zero): Likewise.
4844 (*sltu_insn): Likewise.
4845 (*sgeu_insn): Likewise.
4846 (*seqdi_special): Make operand 0 and comparison operation be of
4847 DImode.
4848 (*snedi_special): Likewise.
4849 (*snedi_special_vis3): Likewise.
4850 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4851 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4852 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4853 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4854 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4855 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4856 (*sltu_extend_sp64): Likewise.
4857 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4858 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4859 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4860 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4861 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4862
95ca411e
YZ
48632013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4864
4865 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4866 (aarch64_start_file): Use the new function.
4867
6782438d 48682013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 4869 Jason Merrill <jason@redhat.com>
6782438d
SKS
4870
4871 * common.opt: Add -gdwarf.
4872 * opts.c (common_handle_option): Handle it.
4873 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4874
bb313b93
RB
48752013-04-10 Richard Biener <rguenther@suse.de>
4876
4877 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4878 (execute_one_ipa_transform_pass): But unconditionally here.
4879 (execute_one_pass): And here.
4880 (init_optimization_passes): Remove reload pass.
4881 * tree-pass.h (TODO_ggc_collect): Remove.
4882 (pass_reload): Likewise.
4883 * ira.c (do_reload): Merge into ...
4884 (ira): ... this.
4885 (rest_of_handle_reload): Remove.
4886 (pass_reload): Likewise.
4887 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4888 of reload for vzeroupper pass placement.
4889 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4890 and todo_flags_finish of all passes.
4891
793d9a16
RB
48922013-04-10 Richard Biener <rguenther@suse.de>
4893
4894 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4895 first_const_oprnd field, rename first_def_type to first_op_type.
4896 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4897 (vect_get_and_check_slp_defs): Always use the type of the
4898 operand. Allow mixed vect_external_def, vect_constant_def types.
4899 (vect_get_constant_vectors): Handle mixed vect_external_def,
4900 vect_constant_def types.
4901
ee8a9b7b
JR
49022013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4903
4904 PR tree-optimization/55524
4905 * tree-ssa-math-opts.c
4906 (convert_mult_to_fma): Don't use an fms construct
4907 when we don't have an fms operation, but fnma, and it looks
4908 likely that we'll be able to use the latter.
4909
6957a6f6
ZZ
49102013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4911
4912 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4913 function.
4914 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4915 inline fail caused by overwritable functions.
4916
34ab4a5b
CJW
49172013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4918
4919 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4920 unnecessary bits in the constant power of two case.
4921
abf9bfbc
RB
49222013-04-10 Richard Biener <rguenther@suse.de>
4923
4924 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4925 broken code swapping operands.
4926 (vect_build_slp_tree): Do not compute load permutations here.
4927 (vect_analyze_slp_instance): Compute load permutations here,
4928 after building the SLP tree.
4929
f408477e
CB
49302013-04-09 Christian Bruel <christian.bruel@st.com>
4931
4932 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4933 of next/prev_real_insn.
4934
5ac42672
JH
49352013-04-09 Jan Hubicka <jh@suse.cz>
4936
abf9bfbc
RB
4937 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4938 Drop aliased parameter.
5ac42672
JH
4939 (function_and_variable_visibility): Do not handle alias pairs.
4940 * cgraph.c (varpool_externally_visible_p): Update prototype.
4941 * varpool.c (varpool_add_new_variable): Update.
4942
5017f1d2
KT
49432013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4944
4945 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4946
48eecbee
SB
49472013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4948
a949cf1c
SB
4949 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4950
48eecbee
SB
4951 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4952
75ef8e3d
MP
49532013-04-09 Marek Polacek <polacek@redhat.com>
4954
4955 PR tree-optimization/48762
33159866 4956 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 4957
23847df4
RB
49582013-04-09 Richard Biener <rguenther@suse.de>
4959
4960 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4961 dealing with cost.
4962 (vect_build_slp_tree): Likewise.
4963 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4964 calculating the cost of a SLP instance.
4965 (vect_analyze_slp_instance): Use it from here, after building
4966 the SLP tree.
4967
ea3a0fde
JJ
49682013-04-09 Jakub Jelinek <jakub@redhat.com>
4969
4970 PR middle-end/56883
4971 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4972 expand_omp_for_static_chunk): Use simple_p = true in
4973 force_gimple_operand_gsi calls when assigning to addressable decls.
4974
a32dfe9d
JL
49752013-04-09 Jeff Law <law@redhat.com>
4976
4977 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4978 when the boolean was created by converting a wider object which
4979 had a boolean range.
4980
d755c7ef
RB
49812013-04-09 Richard Biener <rguenther@suse.de>
4982
4983 * tree-vectorizer.h (slp_void_p): Remove.
4984 (slp_tree): Typedef before _slp_tree declaration.
4985 (struct _slp_tree): Use a vector of slp_tree as children.
4986 (vect_get_place_in_interleaving_chain): Remove.
4987 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4988 Move ...
4989 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4990 and make static.
4991 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4992 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4993 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4994 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4995 Use slp_node instead of slp_void_p and adjust.
4996
3d741091
RB
49972013-04-09 Richard Biener <rguenther@suse.de>
4998
4999 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5000 work that is not necessary.
5001
39307ba7
JJ
50022013-04-09 Jakub Jelinek <jakub@redhat.com>
5003
5004 PR tree-optimization/56854
5005 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5006 forward into clobber stmts if it would change MEM_REF lhs into
5007 non-MEM_REF.
5008
343881fd
MK
50092013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5010
5011 * tree.c (type_hash_lookup, type_hash_add): Make static.
5012 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5013
3922658a
RB
50142013-04-09 Richard Biener <rguenther@suse.de>
5015
5016 * tree.h (unsave_expr_now): Remove.
5017 * tree-inline.c (mark_local_for_remap_r): Remove.
5018 (unsave_expr_1): Likewise.
5019 (unsave_r): Likewise.
5020 (unsave_expr_now): Likewise.
5021 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5022 (propagate_tree_value): Likewise.
5023
9fb6b620
SB
50242013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5025
5026 * doc/rtl.texi (sequence): Rewrite documentation to match the
5027 current use of SEQUENCE rtl objects.
5028 * rtl.def (SEQUENCE): Likewise.
5029
5030 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5031 Update documentation.
5032 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5033 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5034
5035 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5036
8ddb5a29
TJ
50372013-04-08 Teresa Johnson <tejohnson@google.com>
5038
5039 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5040 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 5041 methods.
8ddb5a29
TJ
5042 (estimate_edge_size_and_time): Add comment to suggest using rounding
5043 methods.
5044 (estimate_node_size_and_time): Ditto.
5045 (remap_edge_change_prob): Use helper rounding divide methods.
5046 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5047 (gimple_mod_pow2_value_transform): Ditto.
5048 (gimple_mod_subtract_transform): Ditto.
5049 (gimple_ic_transform): Ditto.
5050 (gimple_stringops_transform): Ditto.
5051 * stmt.c (conditional_probability): Ditto.
5052 (emit_case_dispatch_table): Ditto.
5053 * lto-cgraph.c (merge_profile_summaries): Ditto.
5054 * tree-optimize.c (execute_fixup_cfg): Ditto.
5055 * cfgcleanup.c (try_forward_edges): Ditto.
5056 * cfgloopmanip.c (scale_loop_profile): Ditto.
5057 (loopify): Ditto.
5058 (duplicate_loop_to_header_edge): Ditto.
5059 (lv_adjust_loop_entry_edge): Ditto.
5060 * tree-vect-loop.c (vect_transform_loop): Ditto.
5061 * profile.c (compute_branch_probabilities): Ditto.
5062 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5063 * lto-streamer-in.c (input_cfg): Ditto.
5064 * gimple-streamer-in.c (input_bb): Ditto.
5065 * ipa-cp.c (update_profiling_info): Ditto.
5066 (update_specialized_profile): Ditto.
5067 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5068 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 5069 rounding methods.
8ddb5a29
TJ
5070 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5071 (compute_trg_info): Ditto.
5072 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5073 (purge_dead_edges): Ditto.
5074 * loop-unswitch.c (unswitch_loop): Ditto.
5075 * cgraphclones.c (cgraph_clone_edge): Ditto.
5076 (cgraph_clone_node): Ditto.
5077 * tree-inline.c (copy_bb): Ditto.
5078 (copy_edges_for_bb): Ditto.
5079 (initialize_cfun): Ditto.
5080 (copy_cfg_body): Ditto.
5081 (expand_call_inline): Ditto.
5082
661e6bd7
KT
50832013-04-08 Kai Tietz <ktietz@redhat.com>
5084
5085 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5086 TARGET_CYGWIN64 by TARGET_64BIT.
5087
105766f3
JR
50882013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5089
5090 * config/epiphany/epiphany.md (GPR_1): New constant.
5091 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5092 * config/epiphany/epiphany.c (gen_compare_reg):
5093 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5094 is already in place.
5095 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5096 Don't require being called during rtl expansion; If y operlaps r0,
5097 return 0.
5098 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5099 (epiphany_expand_epilogue): Likewise.
5100
8afab237
JR
5101 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5102 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 5103 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 5104
fa7707d6
JR
5105 * config/epiphany/constraints.md (CnL): New constraint.
5106 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5107 * config/epiphany/predicates.md (add_operand): Allow 1024.
5108
5138e18d
JR
5109 * config/epiphany/epiphany.md (logical_op): New code iterator.
5110 (op_mnc): New code attribute.
5111 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5112 (mov_f+1, mov_f+2): New peephole2 patterns.
5113
2ccc703d
JR
5114 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5115 (cstoresi4): Also allow re-use of zero result when doing a NE
5116 comparison to a non-zero operand.
aefb0819 5117 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 5118
093ac0a5
JR
5119 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5120 Use gen_addsi3_i / gen_subsi3_i.
5121
f223bb13
JJ
51222013-04-08 Jakub Jelinek <jakub@redhat.com>
5123
5124 PR c++/34949
5125 PR c++/50243
5126 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5127 contain anything but clobbers, at most one __builtin_stack_restore,
5128 optionally debug stmts and final resx, and if it has at least one
5129 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5130 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5131 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5132 which isn't defaut definition, remove them.
5133 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5134 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5135 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5136 with MEM_REF LHS with SSA_NAME address.
5137
4481581f
JL
51382013-04-08 Jeff Law <law@redhat.com>
5139
5140 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 5141
451dabda
RB
51422013-04-08 Richard Biener <rguenther@suse.de>
5143
5144 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5145 extra newline.
5146 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5147 determined vector type.
5148 (vect_analyze_data_refs): Likewise.
5149 (vect_get_new_vect_var): Adjust.
5150 (vect_create_destination_var): Preserve SSA name versions.
5151 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5152 not dump anything here.
5153
3b088b47
JR
51542013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5155
5156 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5157 Add member lr_slot_known.
5158 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5159 if necessary.
5160 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5161 Remove code that sets lr_slot_offset according to what a previous
5162 version of epiphany_emit_save_restore used to do.
5163 (epiphany_emit_save_restore): When doing an lr save or restore,
5164 set/verify lr_slot_known and lr_slot_offset.
5165
d8484d41
XQ
51662013-04-08 Xinyu Qi <xyqi@marvell.com>
5167
33159866
UB
5168 PR target/54338
5169 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
5170 in ALL_REGS.
5171
481be1c4
RB
51722013-04-08 Richard Biener <rguenther@suse.de>
5173
5174 * alias.c (find_base_term): Fix thinko in previous change.
5175
401f3a81
JJ
51762013-04-08 Jakub Jelinek <jakub@redhat.com>
5177
5178 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5179 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5180 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5181 if possible to compute val.
5182 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5183 For QImode integers don't require anything about precision. Use
5184 const_with_all_bytes_same to find out if the constant doesn't have
5185 repeated bytes in it.
5186
03ed99a8
AK
51872013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5188
5189 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5190 within mode size.
5191
781b2e62
MP
51922013-04-08 Marek Polacek <polacek@redhat.com>
5193
5194 PR rtl-optimization/48182
5195 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5196 value to 1.
5197
27e430a2
JDA
51982013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5199
5200 PR target/55487
5201 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5202 nuses, make sure we have a label.
5203
4902aa64
BS
52042013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5205
5206 PR target/56843
5207 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5208 (rs6000_emit_swdiv_low_precision): Remove.
5209 (rs6000_emit_swdiv): Rewrite to handle between one and four
5210 iterations of Newton-Raphson generally; modify required number of
5211 iterations for some cases.
5212 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5213
7bca81dc
SB
52142013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5215
5216 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5217 set-but-unused variable.
5218
5219 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5220 basic blocks of released function bodies garbage-collectable.
5221
5222 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5223 (struct rtl_opt_pass): Add TODO_df_finish.
5224
5225 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5226
4542a38a
GY
52272013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5228
5229 * config/arm/constraints.md (q): New constraint.
5230 * config/arm/ldrdstrd.md: New file.
5231 * config/arm/arm.md (ldrdstrd.md) New include.
5232 (arm_movdi): Use "q" instead of "r" constraint
5233 for double-word memory access.
5234 (movdf_soft_insn): Likewise.
5235 * config/arm/vfp.md (movdi_vfp): Likewise.
5236 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 5237 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
5238 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5239 (mem_ok_for_ldrd_strd): Likewise.
5240 (output_move_double): Update assertion.
5241
2385b218
GY
52422013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5243
5244 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5245
75fe1cb5
GY
52462013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5247
5248 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5249 define_insn_and_split.
5250 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5251
dd660e8e
GY
52522013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5253
5254 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5255 define_insn_and_split.
33159866 5256 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
5257 (shiftsi3_compare): New pattern.
5258 (rrx): New pattern.
5259 * config/arm/unspecs.md (UNSPEC_RRX): New.
5260
045e472c
GY
52612013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5262
5263 * config/arm/arm.md (negdi_extendsidi): New pattern.
5264 (negdi_zero_extendsidi): Likewise.
5265
3f3bf1a8
GY
52662013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5267
5268 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5269 define_insn_and_split.
5270 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5271 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5272
b0b49556
GY
52732013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5274
5275 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5276 define_insn_and_split.
5277 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5278 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5279
d633dd84
GY
52802013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5281
5282 * config/arm/arm.md (subsi3_carryin): New pattern.
5283 (subsi3_carryin_const): Likewise.
5284 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5285 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5286
f4499066
GY
52872013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5288
5289 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5290
ceef6fd9
GY
52912013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5292
5293 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 5294 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 5295
ddbdd8a7
KT
52962013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5297
5298 * config/arm/arm.c (arm_expand_builtin): Change fcode
5299 type to unsigned int.
5300
8456d78a
RR
53012013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5302
5303 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5304
526c230f
ILT
53052013-04-04 Ian Lance Taylor <iant@google.com>
5306
33159866
UB
5307 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5308 language standard.
526c230f 5309
3cfbe04d
SB
53102013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5311
5312 PR middle-end/56729
5313 * df-scan.c (df_insn_delete): Disable failing assert.
5314
dfa3f8d0
KT
53152013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5316
5317 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5318 New function prototype.
5319 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5320 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5321 (arm_builtin_vectorized_function): New function.
5322
f7837758
KT
53232013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5324
5325 * config/arm/arm_neon_builtins.def: New file.
5326 * config/arm/arm.c (neon_builtin_data): Move contents to
5327 arm_neon_builtins.def.
5328 (enum arm_builtins): Include neon builtin definitions.
5329 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 5330 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 5331
39c1b6db
MP
53322013-04-04 Marek Polacek <polacek@redhat.com>
5333
5334 PR tree-optimization/48186
5335 * predict.c (maybe_hot_frequency_p): Return false if
5336 HOT_BB_FREQUENCY_FRACTION is 0.
5337 (cgraph_maybe_hot_edge_p): Likewise.
5338
314f64eb
RB
53392013-04-04 Richard Biener <rguenther@suse.de>
5340
5341 PR tree-optimization/56826
5342 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5343 more accurately.
5344
51a905b2
RB
53452013-04-04 Richard Biener <rguenther@suse.de>
5346
5347 PR tree-optimization/56213
5348 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 5349 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 5350
f1bf4f3a
RB
53512013-04-04 Richard Biener <rguenther@suse.de>
5352
5353 PR tree-optimization/56837
5354 * tree-loop-distribution.c (classify_partition): For non-zero
5355 values require that the value has the same precision as its
5356 mode to be useful as memset value.
5357
0bca7ded
NC
53582013-04-03 Nick Clifton <nickc@redhat.com>
5359
33159866 5360 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
5361 (fmssf4): Use fmsf.s on E3V5 architectures.
5362 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5363 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5364
b4019227
JL
53652013-04-03 Jeff Law <law@redhat.com>
5366
5367 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5368 (lra-eliminations.o): Likewise.
5369
f57ddb5b
TJ
53702013-04-03 Teresa Johnson <tejohnson@google.com>
5371
5372 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 5373 compute_working_sets here from profile.c.
f57ddb5b 5374 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
5375 (gcov_working_set_t): Moved typedef here from basic-block.h
5376 (compute_working_set): Declare.
f57ddb5b
TJ
5377 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5378 (get_working_sets): Renamed from compute_working_set,
33159866 5379 replace most of body with call to new compute_working_sets.
f57ddb5b 5380 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
5381 to get_working_sets.
5382 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 5383 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 5384 to get_working_sets.
f57ddb5b
TJ
5385 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5386 * gcov-dump.c (dump_working_sets): New function.
5387
5e0919f1
KZ
53882013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5389
5390 * hwint.c (sext_hwi, zext_hwi): New functions.
5391 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5392 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5393 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5394 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5395 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5396 (sext_hwi, zext_hwi): New functions.
0bca7ded 5397
be672e08
JL
53982013-04-03 Jeff Law <law@redhat.com>
5399
5400 PR tree-optimization/56799
33159866
UB
5401 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5402 back test for widening conversion erroneously dropped in prior change.
be672e08 5403
9d821fa5
KT
54042013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5405
5406 PR target/56809
5407 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5408 instead of next_real_insn.
5409
71c581e7
MP
54102013-04-03 Marek Polacek <polacek@redhat.com>
5411
5412 PR sanitizer/55702
33159866 5413 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 5414
4a32ef80
KT
54152013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5416
5417 PR target/56809
5418 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5419 next_real_insn.
5420 (thumb1_output_casesi): Likewise.
5421 (thumb2_output_casesi): Likewise.
5422
1b2253d4
RB
54232013-04-03 Richard Biener <rguenther@suse.de>
5424
5425 PR tree-optimization/56817
5426 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5427 Split out ...
5428 (tree_unroll_loops_completely_1): ... new function to manually
5429 walk the loop tree, properly defering outer loops of unrolled
5430 loops to later iterations.
5431
38000232
MG
54322013-04-03 Marc Glisse <marc.glisse@inria.fr>
5433
5434 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5435 (vectorizable_load): Likewise.
5436 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5437 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5438
3fa35298
MG
54392013-04-03 Marc Glisse <marc.glisse@inria.fr>
5440
5441 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5442 BIT_FIELD_REF.
5443
b3d45ff0
UW
54442013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5445
5446 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5447
ec9202a8
BC
54482013-04-03 Bin Cheng <bin.cheng@arm.com>
5449
5450 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5451
6805bd36
MG
54522013-04-03 Marc Glisse <marc.glisse@inria.fr>
5453
5454 PR tree-optimization/56790
33159866
UB
5455 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5456 folding.
6805bd36 5457
da694a77
MG
54582013-04-03 Marc Glisse <marc.glisse@inria.fr>
5459
5460 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5461 Handle VEC_MERGE.
5462 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5463 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5464 equal arguments.
5465
4e7d7b3d
JJ
54662013-04-03 Jakub Jelinek <jakub@redhat.com>
5467
5468 PR c/19449
5469 * tree.h (force_folding_builtin_constant_p): New decl.
5470 * builtins.c (force_folding_builtin_constant_p): New variable.
5471 (fold_builtin_constant_p): Fold immediately also if
5472 force_folding_builtin_constant_p.
5473
e6c9d234
RB
54742013-04-03 Richard Biener <rguenther@suse.de>
5475
5476 PR tree-optimization/56812
5477 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5478 DRs of the same interleaving chain are independent.
5479
984d07dd
JM
54802013-04-02 Jason Merrill <jason@redhat.com>
5481
5482 * gdbinit.in (pbb): Use debug fn.
5483
622849c9
LC
54842013-04-02 Lawrence Crowl <crowl@google.com>
5485
5486 * sese.h (struct ivtype_map_elt_s): Remove unused.
5487 (extern debug_ivtype_map): Remove unused.
5488 (extern eq_ivtype_map_elts): Remove unused.
5489 * sese.c (debug_ivtype_map): Removed unused.
5490 (debug_ivtype_map_1): Removed unused.
5491 (debug_ivtype_elt): Remove unused.
5492 (eq_ivtype_map_elts): Remove unused.
5493
5494
82c0e1a0
KT
54952013-04-02 Kai Tietz <ktietz@redhat.com>
5496
5497 PR target/52790
5498 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5499 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
5500 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5501 function.
82c0e1a0
KT
5502 (legitimize_pe_coff_symbol): Likewise.
5503 (is_imported_p): New helper-function.
5504 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5505 for Windows x64 targets.
5506 (ix86_expand_prologue): Optimize for pe-coff targets.
5507 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5508 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5509 medium/large code-model.
5510 (legitimize_pic_address): Likewise.
5511 (legitimize_tls_address): Likewise.
5512 (ix86_expand_call): Likewise.
5513 (x86_output_mi_thunk): Likewise.
5514 (get_dllimport_decl): Add new beimport argument.
5515 (construct_plt_address): Don't assert for x64 pe-coff targets.
5516 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5517 targets.
5518 (SYMBOL_FLAG_STUBVAR): New macro.
5519 (SYMBOL_REF_STUBVAR_P): Likewise.
5520 * config/i386/winnt.c (stub_list): New structure.
5521 (stub_head): New local variable.
5522 (i386_pe_record_stub): New function.
5523 (i386_pe_file_end): Emit refptr-stubs.
5524
5d751b0c
JJ
55252013-04-02 Jakub Jelinek <jakub@redhat.com>
5526
09bb4c99
JJ
5527 PR rtl-optimization/56745
5528 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5529 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5530
a1d8947a
JJ
5531 PR c++/34949
5532 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5533 and both of them are MEM_REFs, just compare first argument for
5534 equality and attempt to deal even with differing offsets.
5535
5d751b0c
JJ
5536 PR c++/34949
5537 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5538 of gimple_clobber_p to be MEM_REF.
5539 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5540 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5541 after gimplification.
5542 * asan.c (get_mem_ref_of_assignment): Don't instrument
5543 gimple_clobber_p stmts.
5544 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5545 gimple_clobber_p stmt if they have MEM_REF lhs and
5546 are dead because of another gimple_clobber_p stmt.
5547 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5548 gimple_clobber_p stmts like debug stmts.
5549 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5550 that refer to unused VAR_DECLs or uninitialized values.
5551 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5552 gimple_clobber_p stmts if they refer to removed parameters.
5553 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5554 formatting.
5555
e594716a
UB
55562013-04-02 Uros Bizjak <ubizjak@gmail.com>
5557
5558 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5559 using SWI48 mode attribute.
5560
7a80735b
WM
55612013-04-02 Wei Mi <wmi@google.com>
5562
5563 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5564 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5565 *<rotate_insn><mode>3_mask in i386.md.
5566
f423a9e4
AI
55672013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5568
5569 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5570
90eb75f2
RB
55712013-04-02 Richard Biener <rguenther@suse.de>
5572
5573 PR tree-optimization/56778
5574 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5575 Runtime alias tests are not supported for gather loads.
5576 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5577 stmts referenced from SSA operands before updating SSA form.
5578
d8c69a92
IC
55792013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5580 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5581
5582 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
5583 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5584 * config/arm/cortex-a53.md: New file.
5585 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5586 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5587 * config/arm/arm.c (arm_issue_rate): Likewise.
5588 * config/arm/arm-tune.md: Regenerate
5589 * config/arm/arm-tables.opt: Regenerate.
5590 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 5591
239eb04c
ZC
55922013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5593
5594 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5595 non-static link.
5596
c902d3c8
SN
55972013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5598
d8c69a92
IC
5599 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5600 scalar load/store operations using B/H registers.
c902d3c8
SN
5601 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5602
051d0e2f
SN
56032013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5604
5605 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5606 scalar move.
5607 * config/aarch64/aarch64.c
5608 (aarch64_simd_scalar_immediate_valid_for_move): New.
5609 * config/aarch64/aarch64-protos.h
5610 (aarch64_simd_scalar_immediate_valid_for_move): New.
5611 * config/aarch64/constraints.md (Dh, Dq): New.
5612 * config/aarch64/iterators.md (hq): New.
5613
0ee1e3d9
EB
56142013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5615
5616 * reorg.c (get_branch_condition): Deal with conditional returns.
5617 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5618
136fb3f7
WM
56192013-04-01 Wei Mi <wmi@google.com>
5620
5621 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5622 Truncate operand 2 using %b asm operand modifier.
5623 (*<shift_insn><mode>3_mask): Ditto.
5624 (*<rotate_insn><mode>3_mask): Ditto.
5625
6388c738
SB
56262013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5627
5628 PR middle-end/56798
5629 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5630
f7a4d826
KK
56312013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5632
5633 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5634 of next_real_insn.
5635 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5636
4b943a49
LC
56372013-03-30 Lawrence Crowl <crowl@google.com>
5638
5639 * dse.c (clear_alias_sets): Remove never set.
5640 (disqualified_clear_alias_sets): Remove never set.
5641 (clear_alias_mode_pool): Remove never set.
5642 (dse_step0): Remove condition that is never true.
5643 (canon_address): Remove condition that is never true.
5644 (dse_step7): Remove condition that is never true.
5645 (rest_of_handle_dse): Remove condition that is never true.
5646 (rest_of_handle_dse::did_global): Remove never read from above.
5647 (dse_step2_spill): Remove never called from above.
5648 (dse_step5_spill): Remove never called from above.
5649
39718607
SB
56502013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5651
da5c6bde
SB
5652 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5653 JUMP_TABLE_DATA changes.
5654 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5655 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5656 (Insns) <jump_table_data>: New entry.
5657 * doc/tm.texi: Regenerate.
5658
39718607
SB
5659 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5660
5661 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5662 for table jump at the end of a basic block using tablejump_p.
5663 * targhooks.c (default_invalid_within_doloop): Likewise.
5664 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5665 target hook implementation that is identical to the default hook.
5666 (rs6000_invalid_within_doloop): Remove.
5667
5668 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5669 unused variable from tablejump_p call.
5670
5671 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5672 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5673 (INSN_DELETED_P): Likewise.
5674 (emit_jump_table_data): New prototype.
5675 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5676 after 4th as unused.
5677 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5678 * sched-vis.c (print_insn): Likewise.
5679 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5680 insn for compatibility with back ends that use next_active_insn to
5681 identify jump table data.
5682 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5683 (remove_insn): Likewise.
5684 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5685 to be emitted.
5686 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5687 (emit_jump_table_data): New function.
5688
5689 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5690 basic block, a JUMP_TABLE_DATA never is.
5691 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5692 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5693 off from code handling real insns.
5694 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5695 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5696 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5697 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5698 is not a NONDEBUG_INSN_P.
5699 * ira-costs.c (scan_one_insn): Likewise.
5700 * jump.c (mark_all_labels): Likewise.
5701 (mark_jump_label_1): Likewise.
5702 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5703 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5704 a basic block.
5705 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5706 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5707 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5708 JUMP_TABLE_DATA_P insns.
5709 (calculate_elim_costs_all_insns): Likewise.
5710 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5711 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5712 (delete_output_reload): Code style fixups.
5713 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5714 insn flags on this non-insn.
5715 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5716 as scheduling barriers, for pre-change compatibility.
5717 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5718 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5719
5720 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5721 redundant JUMP_TABLE_DATA_P test.
5722 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5723 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5724 (frv_for_each_packet): Likewise.
5725 * config/i386/i386.c (min_insn_size): Likewise.
5726 (ix86_avoid_jump_mispredicts): Likewise.
5727 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5728 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5729 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5730 (mips16_insn_length): Robustify.
5731 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5732 (mips16_split_long_branches): Likewise.
5733 * config/pa/pa.c (pa_combine_instructions): Likewise.
5734 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5735 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5736 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5737 as contributing to pool range lengths.
5738 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5739 Remove redundant JUMP_TABLE_DATA_P test.
5740 (sh_loop_align): Likewise.
5741 (split_branches): Likewise.
5742 (sh_insn_length_adjustment): Likewise.
5743 * config/spu/spu.c (get_branch_target): Likewise.
5744
0208f7da
JH
57452013-03-29 Jan Hubicka <jh@suse.cz>
5746
5747 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5748 gcov streaming; stream hot bb threshold to ltrans.
5749 * predict.c (get_hot_bb_threshold): Break out from ....
5750 (maybe_hot_count_p): ... here.
5751 (set_hot_bb_threshold): New function.
5752 * lto-section-in.c (lto_section_name): Add profile.
5753 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5754 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5755 and data-streamer.h
5756 (histogram_entry): New structure.
5757 (histogram, histogram_pool): New global vars.
5758 (histogram_hash): New structure.
5759 (histogram_hash::hash): New method.
5760 (histogram_hash::equal): Likewise.
5761 (account_time_size): New function.
5762 (cmp_counts): New function.
5763 (dump_histogram): New function.
5764 (ipa_profile_generate_summary): New function.
5765 (ipa_profile_write_summary): New function.
5766 (ipa_profile_read_summary): New function.
5767 (ipa_profile): Decide on threshold.
e594716a
UB
5768 (pass_ipa_profile): Add ipa_profile_write_summary and
5769 ipa_profile_read_summary.
0208f7da
JH
5770 * Makefile.in (ipa.o): Update dependencies.
5771 * lto-streamer.h (LTO_section_ipa_profile): New section.
5772
5a6ccc94
GDR
57732013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5774
5775 * tree.h (VAR_P): New.
5776
39385fa6
PC
57772013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5778
5779 PR lto/56777
5780 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5781
34f0d87a
SB
57822013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5783
5784 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5785 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5786 (control_flow_insn_p): Likewise.
5787 * cfgrtl.c (duplicate_insn_chain): Likewise.
5788 * final.c (get_attr_length_1): Likewise.
5789 (shorten_branches): Likewise.
5790 (final_scan_insn): Likewise.
5791 * function.c (instantiate_virtual_regs): Likewise.
5792 * gcse.c (insert_insn_end_basic_block): Likewise.
5793 * ira-costs.c (scan_one_insn): Likewise.
5794 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5795 * lra.c (check_rtl): Likewise.
5796 * reload1.c (elimination_costs_in_insn): Likewise.
5797 * reorg.c (follow_jumps): Likewise.
5798
5799 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5800 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5801 (thumb_far_jump_used_p): Likewise.
5802 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5803 (workaround_speculation): Likewise.
5804 (add_sched_insns_for_speculation): Likewise.
5805 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5806 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5807 (frv_for_each_packet): Likewise.
5808 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5809 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5810 (final_emit_insn_group_barriers): Likewise.
5811 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5812 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5813 (mips16_insn_length): Likewise.
5814 * config/pa/pa.c (pa_reorg): Likewise.
5815 (pa_combine_instructions): Likewise.
5816 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5817 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5818 (sh_reorg): Likewise.
5819 (split_branches): Likewise.
5820 * config/spu/spu.c (get_branch_target): Likewise.
5821
5822 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5823 JUMP_TABLE_DATA_P.
5824
4ac761b0
KY
58252013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5826
39385fa6 5827 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5828 Fix declaration name.
5829
58a49189
LC
58302013-03-28 Lawrence Crowl <crowl@google.com>
5831
5832 * graphds.h (struct graph.indicies): Remove unused.
5833 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5834 (SCOP_ORIGINAL_PDDRS): Remove unused.
5835 * sese.h (extern insert_loop_close_phis): Removed unused.
5836 (extern insert_guard_phis): Removed unused.
5837 (extern ivtype_map_elt_info): Removed unused.
5838 (new_ivtype_map_elt): Removed unused.
5839 * sese.c (ivtype_map_elt_info): Removed unused.
5840
7b3b6ae4
LC
58412013-03-28 Lawrence Crowl <crowl@google.com>
5842
5843 * Makefile.in: Add several missing include dependences.
5844 (DUMPFILE_H): New.
5845 (test-dump.o): New. This object is not added to any executable,
5846 but is present for ad-hoc testing.
5847 * bitmap.c
5848 (debug (const bitmap_head_def &)): New.
5849 (debug (const bitmap_head_def *)): New.
5850 * bitmap.h
5851 (extern debug (const bitmap_head_def &)): New.
5852 (extern debug (const bitmap_head_def *)): New.
5853 * cfg.c
5854 (debug (edge_def &)): New.
5855 (debug (edge_def *)): New.
5856 * cfghooks.c
5857 (debug (basic_block_def &)): New.
5858 (debug (basic_block_def *)): New.
5859 * dumpfile.h
5860 (dump_node (const_tree, int, FILE *)): Correct source file.
5861 * dwarf2out.c
5862 (debug (die_struct &)): New.
5863 (debug (die_struct *)): New.
5864 * dwarf2out.h
5865 (extern debug (die_struct &)): New.
5866 (extern debug (die_struct *)): New.
5867 * gimple-pretty-print.c
5868 (debug (gimple_statement_d &)): New.
5869 (debug (gimple_statement_d *)): New.
5870 * gimple-pretty-print.h
5871 (extern debug (gimple_statement_d &)): New.
5872 (extern debug (gimple_statement_d *)): New.
5873 * ira-build.c
5874 (debug (ira_allocno_copy &)): New.
5875 (debug (ira_allocno_copy *)): New.
5876 (debug (ira_allocno &)): New.
5877 (debug (ira_allocno *)): New.
5878 * ira-int.h
5879 (extern debug (ira_allocno_copy &)): New.
5880 (extern debug (ira_allocno_copy *)): New.
5881 (extern debug (ira_allocno &)): New.
5882 (extern debug (ira_allocno *)): New.
5883 * ira-lives.c
5884 (debug (live_range &)): New.
5885 (debug (live_range *)): New.
5886 * lra-int.h
5887 (debug (lra_live_range &)): New.
5888 (debug (lra_live_range *)): New.
5889 * lra-lives.c
5890 (debug (lra_live_range &)): New.
5891 (debug (lra_live_range *)): New.
5892 * omega.c
5893 (debug (omega_pb_d &)): New.
5894 (debug (omega_pb_d *)): New.
5895 * omega.h
5896 (extern debug (omega_pb_d &)): New.
5897 (extern debug (omega_pb_d *)): New.
5898 * print-rtl.c
5899 (debug (const rtx_def &)): New.
5900 (debug (const rtx_def *)): New.
5901 * print-tree.c
5902 (debug_tree (tree): Move within file.
5903 (debug_raw (const tree_node &)): New.
5904 (debug_raw (const tree_node *)): New.
5905 (dump_tree_via_hooks (const tree_node *, int)): New.
5906 (debug (const tree_node &)): New.
5907 (debug (const tree_node *)): New.
5908 (debug_verbose (const tree_node &)): New.
5909 (debug_verbose (const tree_node *)): New.
5910 (debug_head (const tree_node &)): New.
5911 (debug_head (const tree_node *)): New.
5912 (debug_body (const tree_node &)): New.
5913 (debug_body (const tree_node *)): New.
5914 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5915 (debug (vec<tree, va_gc> &)): New.
5916 (debug (vec<tree, va_gc> *)): New.
5917 * rtl.h
5918 (extern debug (const rtx_def &)): New.
5919 (extern debug (const rtx_def *)): New.
5920 * sbitmap.c
5921 (debug_raw (simple_bitmap_def &)): New.
5922 (debug_raw (simple_bitmap_def *)): New.
5923 (debug (simple_bitmap_def &)): New.
5924 (debug (simple_bitmap_def *)): New.
5925 * sbitmap.h
5926 (extern debug (simple_bitmap_def &)): New.
5927 (extern debug (simple_bitmap_def *)): New.
5928 (extern debug_raw (simple_bitmap_def &)): New.
5929 (extern debug_raw (simple_bitmap_def *)): New.
5930 * sel-sched-dump.c
5931 (debug (vinsn_def &)): New.
5932 (debug (vinsn_def *)): New.
5933 (debug_verbose (vinsn_def &)): New.
5934 (debug_verbose (vinsn_def *)): New.
5935 (debug (expr_def &)): New.
5936 (debug (expr_def *)): New.
5937 (debug_verbose (expr_def &)): New.
5938 (debug_verbose (expr_def *)): New.
5939 (debug (vec<rtx> &)): New.
5940 (debug (vec<rtx> *)): New.
5941 * sel-sched-dump.h
5942 (extern debug (vinsn_def &)): New.
5943 (extern debug (vinsn_def *)): New.
5944 (extern debug_verbose (vinsn_def &)): New.
5945 (extern debug_verbose (vinsn_def *)): New.
5946 (extern debug (expr_def &)): New.
5947 (extern debug (expr_def *)): New.
5948 (extern debug_verbose (expr_def &)): New.
5949 (extern debug_verbose (expr_def *)): New.
5950 (extern debug (vec<rtx> &)): New.
5951 (extern debug (vec<rtx> *)): New.
5952 * sel-sched-ir.h
5953 (_list_iter_cond_expr): Make inline instead of static.
5954 * sreal.c
5955 (debug (sreal &)): New.
5956 (debug (sreal *)): New.
5957 * sreal.h
5958 (extern debug (sreal &)): New.
5959 (extern debug (sreal *)): New.
5960 * tree.h
5961 (extern debug_raw (const tree_node &)): New.
5962 (extern debug_raw (const tree_node *)): New.
5963 (extern debug (const tree_node &)): New.
5964 (extern debug (const tree_node *)): New.
5965 (extern debug_verbose (const tree_node &)): New.
5966 (extern debug_verbose (const tree_node *)): New.
5967 (extern debug_head (const tree_node &)): New.
5968 (extern debug_head (const tree_node *)): New.
5969 (extern debug_body (const tree_node &)): New.
5970 (extern debug_body (const tree_node *)): New.
5971 (extern debug (vec<tree, va_gc> &)): New.
5972 (extern debug (vec<tree, va_gc> *)): New.
5973 * tree-cfg.c
5974 (debug (struct loop &)): New.
5975 (debug (struct loop *)): New.
5976 (debug_verbose (struct loop &)): New.
5977 (debug_verbose (struct loop *)): New.
5978 * tree-dump.c: Add header dependence.
5979 * tree-flow.h
5980 (extern debug (struct loop &)): New.
5981 (extern debug (struct loop *)): New.
5982 (extern debug_verbose (struct loop &)): New.
5983 (extern debug_verbose (struct loop *)): New.
5984 * tree-data-ref.c
5985 (debug (data_reference &)): New.
5986 (debug (data_reference *)): New.
5987 (debug (vec<data_reference_p> &)): New.
5988 (debug (vec<data_reference_p> *)): New.
5989 (debug (vec<ddr_p> &)): New.
5990 (debug (vec<ddr_p> *)): New.
5991 * tree-data-ref.h
5992 (extern debug (data_reference &)): New.
5993 (extern debug (data_reference *)): New.
5994 (extern debug (vec<data_reference_p> &)): New.
5995 (extern debug (vec<data_reference_p> *)): New.
5996 (extern debug (vec<ddr_p> &)): New.
5997 (extern debug (vec<ddr_p> *)): New.
5998 * tree-ssa-alias.c
5999 (debug (pt_solution &)): New.
6000 (debug (pt_solution *)): New.
6001 * tree-ssa-alias.h
6002 (extern debug (pt_solution &)): New.
6003 (extern debug (pt_solution *)): New.
6004 * tree-ssa-alias.c
6005 (debug (_var_map &)): New.
6006 (debug (_var_map *)): New.
6007 (debug (tree_live_info_d &)): New.
6008 (debug (tree_live_info_d *)): New.
6009 * tree-ssa-alias.h
6010 (extern debug (_var_map &)): New.
6011 (extern debug (_var_map *)): New.
6012 (extern debug (tree_live_info_d &)): New.
6013 (extern debug (tree_live_info_d *)): New.
6014
be77e1e5
JH
60152013-03-28 Jan Hubicka <jh@suse.cz>
6016
6017 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6018
777e6976
IB
60192013-03-28 Ian Bolton <ian.bolton@arm.com>
6020
6021 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6022 record only when desired or required.
6023
9cd347ae
UB
60242013-03-28 Uros Bizjak <ubizjak@gmail.com>
6025
6026 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6027 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6028
33159866 60292013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
6030
6031 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6032 (*andsi3_compare0_uxtw): New pattern.
6033 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6034 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6035
89ab31c1
JH
60362013-03-28 Jan Hubicka <jh@suse.cz>
6037
6038 * data-streamer-in.c (streamer_read_gcov_count): New function.
6039 * gimple-streamer-out.c: Include value-prof.h.
6040 (output_gimple_stmt): Output histogram.
6041 (output_bb): Use streamer_write_gcov_count.
6042 * value-prof.c: Include data-streamer.h
6043 (dump_histogram_value): Add HIST_TYPE_MAX.
6044 (stream_out_histogram_value): New function.
6045 (stream_in_histogram_value): New function.
6046 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6047 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6048 * data-streamer-out.c (streamer_write_gcov_count): New function.
6049 (streamer_write_gcov_count_stream): New function.
6050 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6051 (lto_output_node): Likewise.
6052 (input_node, input_edge): Likewise.
6053 * lto-streamer-out.c (output_cfg): Update streaming.
6054 * lto-streamer-in.c (input_cfg): Likewise.
6055 * data-streamer.h (streamer_write_gcov_count,
6056 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6057 * gimple-streamer-in.c: Include value-prof.h
6058 (input_gimple_stmt): Input histograms.
6059 (input_bb): Update profile streaming.
6060
e594716a 60612013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 6062
33159866 6063 * genmodes.c (emit_max_int): New function.
8697be17 6064 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
6065 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6066 Added doc.
8697be17 6067 * machmode.def: Fixed comment.
89ab31c1 6068
e594716a 60692013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
6070
6071 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
6072 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6073
74946978
MP
60742013-03-28 Marek Polacek <polacek@redhat.com>
6075 Richard Biener <rguenther@suse.de>
6076
6077 PR tree-optimization/56695
6078 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6079 build signed result of a vector comparison.
6080 * tree-cfg.c (verify_gimple_comparison): Check that a result
6081 of a vector comparison has signed type.
6082
a64b9c26
RB
60832013-03-28 Richard Biener <rguenther@suse.de>
6084
6085 PR tree-optimization/37021
6086 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6087 do not restrict gaps between groups.
6088 * tree-vect-stmts.c (vectorizable_load): Properly account for
6089 a gap between groups.
6090
a9dc2a2f
EB
60912013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6092
6093 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6094 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6095 is not enabled.
6096
53cb97f9
GP
60972013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6098
6099 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6100 * doc/extend.texi (Named Address Spaces): Ditto.
6101 (Variable Attributes): Ditto.
6102
b802ae5c
KT
61032013-03-27 Kai Tietz <ktietz@redhat.com>
6104
eddae10a
KT
6105 * config.build: Add support for cygwin x64 target.
6106 * config.gcc: Likewise.
6107 * config.host: Likewise.
6108 * configure.ac: Likewise
6109 * configure: Regenerated.
b802ae5c 6110
8269de54
KT
61112013-03-27 Kai Tietz <ktietz@redhat.com>
6112
6113 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6114 * config/i386/t-cygwin-w64: New file.
6115 * config/i386/cygwin-w64.h: New file.
6116 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6117 and add support for x64-cygwin target.
6118 (CPP_SPEC): Likewise.
6119 (CXX_WRAP_SPEC_LIST): Undefine before define.
6120 (LIBGCJ_SONAME): Use 15 as version.
6121
f49b33cb
RB
61222013-03-27 Richard Biener <rguenther@suse.de>
6123
6124 PR tree-optimization/56716
6125 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6126 dumping for ref nodes.
6127
b37a6ce5
MJ
61282013-03-27 Martin Jambor <mjambor@suse.cz>
6129
6130 PR tree-optimization/55334
6131 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6132 restricted pointers to arrays.
6133
9469b9b2
GDR
61342013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6135
6136 * Makefile.in (.SUFFIXES): Add .cc.
6137 (.c.o): Apply same recipe for implicit rule .cc.o.
6138
7d24f650
RB
61392013-03-27 Richard Biener <rguenther@suse.de>
6140
6141 PR tree-optimization/37021
6142 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6143 REALPART/IMAGPART_EXPRs around the supported refs.
6144 * tree-ssa-structalias.c (find_func_aliases): Assume that
6145 floating-point values are not used to transfer pointers.
6146
2f251a05
AI
61472013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6148
39385fa6
PC
6149 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6150 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6151 * doc/tm.texi: Regenerate.
6152 * targhooks.h (default_has_ifunc_p): New.
6153 * targhooks.c (default_has_ifunc_p): Ditto.
6154 * config/linux-protos.h: New file.
6155 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
6156 this hook for linux which disables support of indirect functions in
6157 android.
39385fa6
PC
6158 * config/linux-android.c: New file.
6159 * config/t-linux-android.c: Ditto.
6160 * config.gcc: Added new object file linux-android.o.
6161 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 6162 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 6163 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
6164 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6165 doesn't support indirect functions.
6166 * configure: Regenerate.
6167
78b4e425
BC
61682013-03-27 Bin Cheng <bin.cheng@arm.com>
6169
6170 PR target/56102
6171 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6172 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6173 mult-word mode.
6174
a5ba7b92
AK
61752013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6176
6177 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6178
be624986
TG
61792013-03-27 Terry Guo <terry.guo@arm.com>
6180
6181 * config/arm/arm-cores.def: Added core cortex-r7.
6182 * config/arm/arm-tune.md: Regenerated.
6183 * config/arm/arm-tables.opt: Regenerated.
6184 * doc/invoke.texi: Added entry for core cortex-r7.
6185
0a514f47
WL
61862013-03-27 Walter Lee <walt@tilera.com>
6187
6188 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6189 double-decrement of next_scratch_regno.
6190
9332b0d2
WL
61912013-03-27 Walter Lee <walt@tilera.com>
6192
801d9b2a 6193 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
6194 input operands.
6195 (insn_v1mulus): Ditto.
6196 (insn_v2muls): Ditto.
6197
f54ea5dd
WL
61982013-03-27 Walter Lee <walt@tilera.com>
6199
e594716a 6200 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
6201 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6202
bf60f4ca
WL
62032013-03-27 Walter Lee <walt@tilera.com>
6204
e594716a 6205 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
6206 (*sibcall_value): Ditto.
6207
e3b51eeb
WL
62082013-03-27 Walter Lee <walt@tilera.com>
6209
6210 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6211 (insn_mnz_v8qi): ... this ...
6212 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6213 vector equivalent.
6214 (insn_v<n>mnz): Replaced by ...
6215 (insn_v1mnz): ... this ...
6216 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6217 equivalent.
6218 (insn_mz_<mode>): Replaced by ...
6219 (insn_mz_v8qi): ... this ...
6220 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6221 vector equivalent.
6222 (insn_v<n>mz): Replaced by ...
6223 (insn_v1mz): ... this ...
6224 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6225 equivalent.
6226
4fc7b145
EB
62272013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6228
6229 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6230
6f33817e
RM
62312013-03-26 Roland McGrath <mcgrathr@google.com>
6232
6233 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6234 than fprintf with a non-constant, non-format string.
6235
93a4145b
UB
62362013-03-26 Uros Bizjak <ubizjak@gmail.com>
6237
6238 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6239 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6240 operand 0 predicate.
6241 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6242 attribute. Use general_x64nomem_operand as operand 1 predicate.
6243 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6244 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6245 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6246 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6247 (mov<mode>_insv_1): Remove expander. Merge insn with
6248 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6249 Use general_x64nomem_operand as operand 1 predicate.
6250 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6251 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6252 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6253 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6254 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6255 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6256 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6257 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6258 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6259 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6260 (general_x64nomem_operand): Ditto.
6261
c6a9ed5a 62622013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
6263
6264 * config/rtems.opt: Add -pthread option.
6265
31b0a960
RB
62662013-03-26 Richard Biener <rguenther@suse.de>
6267
93a4145b
UB
6268 * alias.c (find_base_term): Avoid redundant and not used recursion.
6269 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
6270 (true_dependence_1): Compute and pass base terms to base_alias_check.
6271 (write_dependence_p): Likewise.
6272 (may_alias_p): Likewise.
6273
79517551
SN
62742013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6275
6276 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6277 PC-relative load in SI modes and above only.
6278
a76213b9
XQ
62792013-03-26 Xinyu Qi <xyqi@marvell.com>
6280
6281 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
6282 * config/arm/iwmmxt.md (WCGR0): Update.
6283 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 6284
37ff9355
UB
62852013-03-26 Uros Bizjak <ubizjak@gmail.com>
6286
6287 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6288 Use x64 and nox64 isa attributes.
6289
30b0317c
RB
62902013-03-26 Richard Biener <rguenther@suse.de>
6291
6292 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6293 alignment computations and rely on get_object_alignment_1
6294 for the !TYPE_P case.
6295 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6296
cbcdb140
WL
62972013-03-26 Walter Lee <walt@tilera.com>
6298
6299 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6300 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6301
dd884525 63022013-03-25 Jeff Law <law@redhat.com>
be672e08 6303
33159866
UB
6304 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6305 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
6306 wrong version of prior patch.
6307
0051d3ec
WL
63082013-03-25 Walter Lee <walt@tilera.com>
6309
6310 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6311 TILEGX_INSN_SHUFFLEBYTES1.
6312 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6313 shufflebytes1.
6314 (tilegx_builtins): Ditto.
6315 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6316
065a3605
WL
63172013-03-25 Walter Lee <walt@tilera.com>
6318
6319 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
6320 (floatunssisf2): New pattern.
6321 (floatsidf2): New pattern.
6322 (floatunssidf2): New pattern.
065a3605 6323
5b2a3c82
WL
63242013-03-25 Walter Lee <walt@tilera.com>
6325
6326 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6327 tests for constraint J, K, N, P.
6328
192ea533
WL
63292013-03-25 Walter Lee <walt@tilera.com>
6330
6331 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6332 Use indirect/pcrel encoding.
6333 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6334 Ditto.
6335
855e0d0b
SE
63362013-03-25 Steve Ellcey <sellcey@mips.com>
6337
6338 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6339 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6340 * config/mips/mips.c (mips_option_override): Set IMADD default.
6341 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6342 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6343 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6344 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6345 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6346
39e45653
JL
63472013-03-25 Jeff Law <law@redhat.com>
6348
6349 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6350 slightly to avoid creating and folding useless trees. Simplify
6351 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6352
7482c470
UB
63532013-03-25 Uros Bizjak <ubizjak@gmail.com>
6354
6355 * config/i386/i386.md (*zero_extendsidi2): Merge with
6356 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6357 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6358 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6359 targets. Clarify comment.
6360
4a53743e
MJ
63612013-03-25 Martin Jambor <mjambor@suse.cz>
6362
6363 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6364 pass-through jump functions differently.
6365 (ipa_read_jump_function): Likewise. Also use setter functions to set
6366 up jump functions.
6367
162712de
MJ
63682013-03-25 Martin Jambor <mjambor@suse.cz>
6369
6370 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6371 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6372 process it.
6373 (ipa_get_indirect_edge_target): New function.
6374 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6375 ipa_get_indirect_edge_target. Update all callers.
6376 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6377 ipa_get_indirect_edge_target_1 instead of calling
6378 ipa_get_indirect_edge_target.
6379 (create_specialized_node): Pass aggvlas to
6380 ipcp_discover_new_direct_edges.
6381
a5a4c20a
KT
63822013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6383
6384 * config/arm/arm.md (f_sels, f_seld): New types.
6385 (*cmov<mode>): New pattern.
6386 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6387 predicate.
6388
f992b9fc
KT
63892013-03-25 Kai Tietz <ktietz@redhat.com>
6390
6391 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6392 POSIX-printf for mingw-hosted builds.
6393
c16fd676
RB
63942013-03-25 Richard Biener <rguenther@suse.de>
6395
6396 PR middle-end/56694
6397 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6398 must-not-throw stmt location.
6399
5ad29f12
KT
64002013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6401
6402 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6403 Emit load-acquire versions when acq is true.
6404 (arm_emit_store_exclusive): Add rel parameter.
6405 Emit store-release versions when rel is true.
6406 (arm_split_compare_and_swap): Use acquire-release instructions
6407 instead.
6408 of barriers when appropriate.
6409 (arm_split_atomic_op): Likewise.
6410 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6411 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6412 (VUNSPEC_SLX): Likewise.
6413 (VUNSPEC_LDA): Likewise.
6414 (VUNSPEC_STL): Likewise.
6415 * config/arm/sync.md (atomic_load<mode>): New pattern.
6416 (atomic_store<mode>): Likewise.
6417 (arm_load_acquire_exclusive<mode>): Likewise.
6418 (arm_load_acquire_exclusivesi): Likewise.
6419 (arm_load_acquire_exclusivedi): Likewise.
6420 (arm_store_release_exclusive<mode>): Likewise.
6421
03a7dddb
CM
64222013-03-25 Catherine Moore <clm@codesourcery.com>
6423
6424 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6425 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6426 * config/mip/predicates.md (lwsp_swsp_operand,
6427 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6428 sb16_operand, db4_operand, db7_operand, ib3_operand,
6429 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6430 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6431 andi16_operand): New predicates.
6432 * config/mips/mips.md (compression): New attribute.
6433 (enabled): New attribute.
6434 (length): Consider compression in computing length.
6435 (shift_compression): New code attribute.
6436 (*add<mode>3): New operands. Record compression.
6437 (sub<mode>3): Likewise.
6438 (one_cmpl<mode>2): Likewise.
6439 (*and<mode>3): Likewise.
6440 (*ior<mode>3): Likewise.
6441 (unnamed pattern for xor): Likewise.
6442 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6443 (*<optab><mode>3): Likewise.
6444 (*mov<mode>_internal: Likewise.
6445 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6446 (mips_unsigned_immediate_p): New.
6447 (umips_lwsp_swsp_address_p): New.
6448 (m16_based_address_p): New.
6449 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6450 (mips_unsigned_immediate_p): New prototype.
6451 (lwsp_swsp_address_p): New prototype.
6452 (m16_based_address_p): New prototype.
6453 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6454 (mips_signed_immediate_p): New function.
6455 (m16_based_address_p): New function.
6456 (lwsp_swsp_address_p): New function.
6457 (mips_print_operand_punctuation): Recognize short delay slot insns
6458 for microMIPS.add<mode>3"
6459
f35c297f 64602013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 6461
f35c297f
KT
6462 PR target/56720
6463 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6464 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6465
051b9446
RB
64662013-03-25 Richard Biener <rguenther@suse.de>
6467
6468 PR tree-optimization/56689
6469 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6470 any edge.
6471
374001cb
RB
64722013-03-25 Richard Biener <rguenther@suse.de>
6473
6474 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6475 of bitmap.
6476 (memory_references): Likewise.
6477 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6478 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6479 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6480 (gather_mem_refs_in_loops): Fold into ...
6481 (analyze_memory_references): ... this. Move initialization
6482 to tree_ssa_lim_initialize.
6483 (fill_always_executed_in): Rename to ...
6484 (fill_always_executed_in_1): ... this.
6485 (fill_always_executed_in): Move contains_call computation to
6486 this new function from ...
6487 (tree_ssa_lim_initialize): ... here.
6488 (tree_ssa_lim): Call fill_always_executed_in.
6489
57895947
EB
64902013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6491
6492 * postreload.c (reload_combine): Fix code detecting returns.
6493
1e1b18c1
EB
64942013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6495
6496 * function.c (emit_use_return_register_into_block): On cc0 targets,
6497 do not emit the sequence between cc0 setter and user.
6498
9216baf1
KT
64992013-03-25 Kai Tietz <ktietz@redhat.com>
6500
1e1b18c1
EB
6501 * config/i386/predicates.md (local_symbolic_operand): Interpret
6502 dll-imported symbols as none-local.
9216baf1 6503
76421b44
RB
65042013-03-25 Richard Biener <rguenther@suse.de>
6505
6506 * tree-ssa-loop-im.c (struct depend): Remove.
6507 (struct lim_aux_data): Make depends a vec of gimples.
6508 (free_lim_aux_data): Adjust.
6509 (add_dependency): Likewise.
6510 (set_level): Likewise.
6511
d154bfa2
RB
65122013-03-25 Richard Biener <rguenther@suse.de>
6513
6514 PR middle-end/56434
6515 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6516 the pointer returned by calls with ECF_MALLOC set.
6517
2cd9804e
UB
65182013-03-24 Uros Bizjak <ubizjak@gmail.com>
6519
acef5fe0
UB
6520 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6521
65222013-03-24 Uros Bizjak <ubizjak@gmail.com>
6523
6524 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
6525 using MMXMODE mode iterator.
6526 (*move<mode>_internal): Merge with *movv2sf_internal and
6527 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6528
225ccc68
SB
65292013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6530
85c0f02d
SB
6531 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6532 (record_last_mem_set_info): Likewise.
6533
225ccc68
SB
6534 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6535 of XNEWVEC followed by memset.
6536 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6537
b64925dc
SB
65382013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6539
6540 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6541 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6542 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6543 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6544 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6545 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6546 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6547 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6548 BARRIER_P instead of GET_CODE.
6549
b9aaf52e
EB
65502013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6551
6552 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6553 inaccuracy in the probing code.
6554
6555 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6556 (ctrapdi4): Likewise.
6557
66de4d7c
EB
65582013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6559
6560 * calls.c (expand_call): Add missing guard to code handling return
6561 of non-BLKmode structures in MSB.
6562 * function.c (expand_function_end): Likewise.
6563
4f25c8fb
EB
65642013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6565
6566 * combine.c (try_combine): Adjust comment. Do not add the set of
6567 insn #0 if the destination indirectly is set or dies in insn #2.
6568 Tidy up code to distribute a new note.
6569
23b7850d
UB
65702013-03-22 Uros Bizjak <ubizjak@gmail.com>
6571
6572 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6573 also for alternatives 16 and 17.
6574
bed852cf
UB
65752013-03-22 Uros Bizjak <ubizjak@gmail.com>
6576
6577 * config/i386/sse.md (*mov<mode>_internal): Merge with
6578 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6579 Emit insn template depending on type attribute. Use
6580 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6581 movd instead of movq mnemonic for interunit moves. Rewrite mode
6582 attribute calculation. Remove unit attribute calculation.
6583 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6584 Set prefix_data16 attribute for DImode ssemov types.
6585 Use Ym instead of y for SSE-MMX conversion alternatives.
6586 Reorder operand constraints.
6587
1e8a7937
SB
65882013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6589
6590 * df.h (df_insn_delete): Adjust prototype.
6591 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6592 and let it decide whether mark the basic block dirty.
6593 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6594 * df-scan.c (df_insn_info_delete): New helper function, split
6595 off from df_insn_delete.
6596 (df_scan_free_bb_info): Use it.
6597 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6598 Likewise.
6599 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6600 that the insn is actually an insn and it has a non-NULL basic block.
6601 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6602
e14d094c
RB
66032013-03-22 Richard Biener <rguenther@suse.de>
6604
6605 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6606 dep_ref members.
6607 (mem_ref_alloc): Do not allocate them.
6608 (refs_independent_p): Do not query or maintain a cache.
6609
e9cf7316
RB
66102013-03-22 Richard Biener <rguenther@suse.de>
6611
6612 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6613 (gather_mem_refs_in_loops): Do not compute it.
6614 (analyze_memory_references): Do not allocate it.
6615 (tree_ssa_lim_finalize): Do not free it.
6616 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6617
f046e81b
RB
66182013-03-22 Richard Biener <rguenther@suse.de>
6619
6620 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 6621
a05c0ddf
IB
66222013-03-22 Ian Bolton <ian.bolton@arm.com>
6623
6624 * config/aarch64/aarch64.c (aarch64_print_operand): New
6625 format specifier for printing a constant in hex.
6626 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6627 format specifier for printing second operand.
6628
c00217fc
RB
66292013-03-22 Richard Biener <rguenther@suse.de>
6630
6631 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6632 bitmaps.
6633 (gather_mem_refs_in_loops): Perform store accumulation here.
6634 (create_vop_ref_mapping_loop): Remove.
6635 (create_vop_ref_mapping): Likewise.
6636 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6637 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6638 (record_indep_loop): Remove.
6639 (record_dep_loop): New function.
6640 (ref_indep_loop_p_1): Adjust to only walk over references
6641 in the loop, not its subloops.
6642 (ref_indep_loop_p): Rename to ...
6643 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6644 maintaining a more fine-grained cache.
6645 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6646 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6647
15d19bf8
RB
66482013-03-22 Richard Biener <rguenther@suse.de>
6649
6650 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6651 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6652 aggregate mem_ref_loc.
6653 (free_mem_ref_locs): Inline into ...
6654 (memref_free): ... this and adjust.
6655 (mem_ref_alloc): Adjust.
6656 (mem_ref_locs_alloc): Remove.
6657 (record_mem_ref_loc): Adjust.
6658 (get_all_locs_in_loop): Rewrite into ...
6659 (for_all_locs_in_loop): ... this iterator.
6660 (rewrite_mem_ref_loc): New functor.
6661 (rewrite_mem_refs): Use for_all_locs_in_loop.
6662 (sm_set_flag_if_changed): New functor.
6663 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6664 (ref_always_accessed): New functor.
6665 (ref_always_accessed_p): Use for_all_locs_in_loop.
6666
6f37411d
MG
66672013-03-21 Marc Glisse <marc.glisse@inria.fr>
6668
6669 * tree-pass.h (PROP_gimple_lvec): New.
6670 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6671 (init_optimization_passes): Move pass_lower_vector.
6672 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6673 PROP_gimple_lvec.
6674 (pass_lower_vector): Provide PROP_gimple_lvec.
6675 (pass_lower_vector_ssa): Likewise.
6676 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6677
511ef689
MW
66782013-03-21 Mark Wielaard <mjw@redhat.com>
6679
6680 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6681
cc1df30b
UB
66822013-03-21 Uros Bizjak <ubizjak@gmail.com>
6683
6684 * config/i386/i386.md (*movdi_internal): Disparage slightly
6685 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6686 conversion alternatives.
6687
c845cfe1
JJ
66882013-03-21 Jakub Jelinek <jakub@redhat.com>
6689
37e99116
JJ
6690 PR middle-end/48087
6691 * diagnostic.def (DK_WERROR): New kind.
6692 * diagnostic.h (werrorcount): Define.
6693 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6694 promoted to DK_ERROR, increment DK_WERROR counter instead of
6695 DK_ERROR counter.
6696 * toplev.c (toplev_main): Call print_ignored_options even if
6697 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6698 even if just werrorcount is non-zero.
6699
c845cfe1
JJ
6700 PR debug/55608
6701 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6702 on failure.
6703 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6704 (string_cst_pool_decl): New function.
6705 (optimize_one_addr_into_implicit_ptr): New function.
6706 (resolve_addr_in_expr): Optimize DWARF location expression
6707 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6708 which doesn't live in memory, but has DW_AT_location or
6709 DW_AT_const_value, or refers to a string literal, into
6710 DW_OP_GNU_implicit_pointer.
6711 (optimize_location_into_implicit_ptr): New function.
6712 (resolve_addr): If removing DW_AT_location of a variable because
6713 it was DW_OP_addr of address of the variable, but the variable doesn't
6714 live in memory, try to emit const value attribute for the initializer.
6715
08e0cda6
MG
67162013-03-21 Marc Glisse <marc.glisse@inria.fr>
6717
6718 * tree.h (VECTOR_TYPE_P): New macro.
6719 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6720 TYPE_MODE): Use it.
6721 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6722 VEC_COND_EXPR cannot be lvalues.
6723 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6724
d08633b4
MG
67252013-03-21 Marc Glisse <marc.glisse@inria.fr>
6726
6727 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6728 Restrict the transformation to equal modes.
6729
e6647190
RB
67302013-03-21 Richard Biener <rguenther@suse.de>
6731
6732 PR tree-optimization/39326
6733 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6734 (MEM_ANALYZABLE): Adjust.
6735 (record_mem_ref_loc): Move bitmap ops ...
6736 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6737 unanalyzable refs, do not record locations for it.
6738 (analyze_memory_references): Allocate ref zero as shared
6739 unanalyzable ref.
6740 (refs_independent_p): Do not test for unanalyzed mems here.
6741 (ref_indep_loop_p_1): Special-case disambiguation against
6742 the unanalyzed ref.
cc1df30b 6743 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6744
65074f54
CL
67452013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6746
6747 * config/arm/arm-protos.h (tune_params): Add
6748 prefer_neon_for_64bits field.
6749 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6750 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6751 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6752 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6753 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6754 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6755 (arm_option_override): Handle -mneon-for-64bits new option.
6756 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6757 (prefer_neon_for_64bits): Declare new variable.
6758 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6759 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6760 (arch_enabled): Handle new arch types. Remove support for onlya8
6761 and nota8.
6762 (one_cmpldi2): Use new arch names.
bc5faa5b 6763 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6764 * config/arm/arm.opt (mneon-for-64bits): Add option.
6765 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6766 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6767 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6768 of onlya8.
6769 * doc/invoke.texi (-mneon-for-64bits): Document.
6770
5a2d2a79
RB
67712013-03-21 Richard Biener <rguenther@suse.de>
6772
6773 PR tree-optimization/39326
6774 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6775 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6776 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6777
5abe1e05
RB
67782013-03-21 Richard Biener <rguenther@suse.de>
6779
6780 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6781 (vect_insert_into_interleaving_chain): Likewise.
6782 (vect_drs_dependent_in_basic_block): Inline ...
6783 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6784 split out from ...
6785 (vect_analyze_data_ref_dependence): ... here. Simplify.
6786 (vect_check_interleaving): Simplify.
6787 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6788 (vect_slp_analyze_data_ref_dependences): ... this new function.
6789 (dr_group_sort_cmp): New function.
6790 (vect_analyze_data_ref_accesses): Compute data-reference groups
6791 here instead of in vect_analyze_data_ref_dependence. Use
6792 a more efficient algorithm.
6793 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6794 vect_slp_analyze_data_ref_dependences. Call
6795 vect_analyze_data_ref_accesses earlier.
6796 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6797 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6798 (vect_slp_analyze_data_ref_dependences): New prototype.
6799
cad1735b
RB
68002013-03-21 Richard Biener <rguenther@suse.de>
6801
6802 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6803 ref is stored in the loop.
6804 (find_refs_for_sm): Walk only over all stores.
6805 (store_motion_loop): Allocate from lim_bitmap_obstack.
6806 (store_motion): Likewise.
6807
141310ef
RB
68082013-03-21 Richard Biener <rguenther@suse.de>
6809
6810 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6811 Update virtual SSA form.
6812
5022315a
RO
68132013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6814
6815 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6816 * configure: Regenerate.
6817 * config.in: Regenerate.
6818 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6819 if !HAVE_LD_EH_FRAME_CIEV3.
6820
50d4421c
RB
68212013-03-21 Richard Biener <rguenther@suse.de>
6822
6823 * tree-cfg.c (verify_expr_no_block): New function.
6824 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6825 nor DECL_VALUE_EXPR have locations with associated blocks.
6826 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6827 (clear_unused_block_pointer): Remove code dealing with
6828 blocks in DECL_DEBUG_EXPR locations.
6829
839b422f
RB
68302013-03-21 Richard Biener <rguenther@suse.de>
6831
6832 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6833 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6834 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6835 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6836 instead of DECL_DEBUG_EXPR_IS_FROM.
6837 * gimplify.c (gimplify_modify_expr): Likewise.
6838 * tree-cfg.c (verify_expr_location_1): Likewise.
6839 * tree-complex.c (create_one_component_var): Likewise.
6840 * tree-sra.c (create_access_replacement): Likewise.
6841 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6842 (clear_unused_block_pointer): Likewise.
6843 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6844 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6845 * var-tracking.c (var_debug_decl): Likewise.
6846 (track_expr_p): Likewise.
6847 * tree-inline.c (add_local_variables): Likewise. Set
6848 DECL_HAS_DEBUG_EXPR_P after copying it.
6849 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6850 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6851
fe04878d
UB
68522013-03-21 Uros Bizjak <ubizjak@gmail.com>
6853
6854 PR bootstrap/56656
6855 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6856 * configure: Regenerate.
6857 * config.in: Regenerate.
6858 * config/i386/i386.md (*movdf_internal): Use
6859 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6860 movd instead of movq mnemonic for interunit moves.
6861 (*movdi_internal): Ditto.
6862
bd059b26 68632013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
6864
6865 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6866 (abd<mode>_3): New pattern.
6867 (aba<mode>_3): New pattern.
6868 (fabd<mode>_3): New pattern.
6869
bd059b26 68702013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
6871
6872 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6873 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6874 occurrence of REGISTER_PREFIX as its empty string.
6875
4f1f78b9
JL
68762013-03-20 Jeff Law <law@redhat.com>
6877
6878 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6879 addititional equivalences for equality comparisons between an SSA_NAME
6880 and a constant where the SSA_NAME was set from a widening conversion.
6881
327a1118
WL
68822013-03-20 Walter Lee <walt@tilera.com>
6883
6884 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6885
813e0036
UB
68862013-03-20 Uros Bizjak <ubizjak@gmail.com>
6887
6888 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6889 depending on type attribute.
6890 (*movti_internal): Ditto.
6891 (*movtf_internal): Ditto.
6892 (*movxf_internal): Ditto.
6893 (*movdf_internal): Ditto.
6894 (*movsf_internal): Ditto.
6895
7cf34aae
UB
68962013-03-20 Uros Bizjak <ubizjak@gmail.com>
6897
6898 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6899 maybe_vex for sselog1 and ssemov types.
6900 (*movdi_internal): Reorder operand constraints.
6901 (*movsi_internal): Ditto. Set prefix attribute to
6902 maybe_vex for sselog1 and ssemov types.
6903 (*movtf_internal): Set prefix attribute to maybe_vex
6904 for sselog1 and ssemov types.
6905 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6906 DImode ssemov types. Reorder operand constraints.
6907 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6908 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6909 attribute for SImode ssemov types. Reorder operand constraints.
6910
19321415
MJ
69112013-03-20 Martin Jambor <mjambor@suse.cz>
6912
6913 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6914 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6915
c6d5ff83
MM
69162013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6917
6918 * config/rs6000/predicates.md (indexed_address, update_address_mem
6919 update_indexed_address_mem): New predicates.
6920 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6921 attribute for load/store instructions.
6922 * config/rs6000/dfp.md (movsd_store): Likewise.
6923 (movsd_load): Likewise.
6924 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6925 (unnamed HI->DI extend define_insn): Likewise.
6926 (unnamed SI->DI extend define_insn): Likewise.
6927 (unnamed QI->SI extend define_insn): Likewise.
6928 (unnamed QI->HI extend define_insn): Likewise.
6929 (unnamed HI->SI extend define_insn): Likewise.
6930 (unnamed HI->SI extend define_insn): Likewise.
6931 (extendsfdf2_fpr): Likewise.
6932 (movsi_internal1): Likewise.
6933 (movsi_internal1_single): Likewise.
6934 (movhi_internal): Likewise.
6935 (movqi_internal): Likewise.
6936 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6937 attribute for load/store instructions.
6938 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6939 instructions.
6940 (mov<mode>_softfloat): Likewise.
6941 (mov<mode>_hardfloat32): Likewise.
6942 (mov<mode>_hardfloat64): Likewise.
6943 (mov<mode>_softfloat64): Likewise.
6944 (movdi_internal32): Likewise.
6945 (movdi_internal64): Likewise.
6946 (probe_stack_<mode>): Likewise.
6947
69482013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6949
6950 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6951 floating point, and decimal floating point to reload iterator.
6952
6953 * config/rs6000/constraints.md (wl constraint): New constraints to
6954 return FLOAT_REGS if certain options are used to reduce the number
6955 of separate patterns that exist in the file.
6956 (wx constraint): Likewise.
6957 (wz constraint): Likewise.
6958
6959 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6960 -mdebug=reg, print wg, wl, wx, and wz constraints.
6961 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6962 Initialize the reload functions for 64-bit binary/decimal floating
6963 point types.
6964 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6965 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6966 create the buffer on the stack to overcome not having a 32-bit
6967 load and store.
6968 (rs6000_emit_move): Likewise.
6969 (rs6000_secondary_memory_needed_rtx): Likewise.
6970 (rs6000_alloc_sdmode_stack_slot): Likewise.
6971 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6972 via xxlxor, just like DFmode 0.0.
6973
6974 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6975 define as 1 if we are running on a power7 or newer.
6976 (enum r6000_reg_class_enum): Add new constraints.
6977
6978 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6979 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6980 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 6981 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
6982 (movsd splitter): Likewise.
6983 (movsd_hardfloat): Likewise.
6984 (movsd_softfloat): Likewise.
6985
6986 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6987 binary and decimal floating point moves.
6988 (fmove_ok): New attributes to combine binary and decimal floating
6989 point moves, and to combine power6x (mfpgpr) moves along normal
6990 floating moves.
6991 (real_value_to_target): Likewise.
6992 (f32_lr): Likewise.
6993 (f32_lm): Likewise.
6994 (f32_li): Likewise.
6995 (f32_sr): Likewise.
6996 (f32_sm): Likewise.
6997 (f32_si): Likewise.
6998 (movsf): Combine binary and decimal floating point moves. Combine
6999 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 7000 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
7001 (mov<mode> for SFmode/SDmode); Likewise.
7002 (SFmode/SDmode splitters): Likewise.
7003 (movsf_hardfloat): Likewise.
7004 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7005 (movsf_softfloat): Likewise.
7006 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7007
7008 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7009 wx and wz constraints.
7010
7011 * config/rs6000/constraints.md (wg constraint): New constraint to
7012 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7013
7014 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7015 constraint.
7016
7017 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7018 -mdebug=reg, print wg, wl, wx, and wz constraints.
7019 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7020 Initialize the reload functions for 64-bit binary/decimal floating
7021 point types.
7022 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7023 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7024 create the buffer on the stack to overcome not having a 32-bit
7025 load and store.
7026 (rs6000_emit_move): Likewise.
7027 (rs6000_secondary_memory_needed_rtx): Likewise.
7028 (rs6000_alloc_sdmode_stack_slot): Likewise.
7029 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7030 via xxlxor, just like DFmode 0.0.
7031
c6d5ff83
MM
7032 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7033 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7034 with other moves by using conditional constraits (wg). Use LFIWZX
7035 and STFIWX for loading SDmode on power7.
7036 (movdd splitters): Likewise.
7037 (movdd_hardfloat32): Likewise.
7038 (movdd_softfloat32): Likewise.
7039 (movdd_hardfloat64_mfpgpr): Likewise.
7040 (movdd_hardfloat64): Likewise.
7041 (movdd_softfloat64): Likewise.
7042
7043 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7044 64-bit binary and decimal floating point moves.
7045 (FMOVE64X): Likewise.
7046 (movdf): Combine 64-bit binary and decimal floating point moves.
7047 Combine power6x (mfpgpr) moves with other moves by using
7048 conditional constraits (wg).
7049 (mov<mode> for DFmode/DDmode): Likewise.
7050 (DFmode/DDmode splitters): Likewise.
7051 (movdf_hardfloat32): Likewise.
7052 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7053 (movdf_softfloat32): Likewise.
7054 (movdf_hardfloat64_mfpgpr): Likewise.
7055 (movdf_hardfloat64): Likewise.
7056 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7057 (movdf_softfloat64): Likewise.
7058 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7059 (reload_<mode>_load): Move to later in the file so they aren't in
7060 the middle of the floating point move insns.
7061 (reload_<mode>_store): Likewise.
7062
7063 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7064 constraint.
7065
7066 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7067 constraint if -mdebug=reg.
bd059b26
UB
7068 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7069 Enable using dd reload support if needed.
c6d5ff83
MM
7070
7071 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7072 binary and decimal floating point moves in rs6000.md.
7073 (movtd_internal): Likewise.
7074
7075 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7076 decimal floating point moves.
7077 (movtf): Likewise.
7078 (movtf_internal): Likewise.
7079 (mov<mode>_internal, TDmode/TFmode): Likewise.
7080 (movtf_softfloat): Likewise.
7081 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7082
7083 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7084 movdi_internal64, using wg constraint for move direct operations.
7085 (movdi_internal64): Likewise.
7086
7087 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7088 MODES_TIEABLE_P for selected modes. Print the numerical value of
7089 the various virtual registers. Use GPR/FPR first/last values,
7090 instead of hard coding the register numbers. Print which modes
7091 have reload functions registered.
bd059b26
UB
7092 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7093 settings before/after setting cpu, target and subtarget settings.
7094 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7095 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
7096 (rs6000_secondary_reload_fail): Likewise.
7097 (rs6000_secondary_reload_inner): Likewise.
7098
7099 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7100 macros for first/last GPR and FPR registers.
7101 (LAST_GPR_REGNO): Likewise.
7102 (FIRST_FPR_REGNO): Likewise.
7103 (LAST_FPR_REGNO): Likewise.
7104
7105 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7106 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7107 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7108 (vcond<mode><mode>): Likewise.
7109 (vcondu<mode><mode>): Likewise.
7110 (vector_gtu<mode>): Likewise.
7111 (vector_gte<mode>): Likewise.
7112 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 7113 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
7114 (ior<mode>3): Likewise.
7115 (and<mode>3): Likewise.
7116 (one_cmpl<mode>2): Likewise.
7117 (nor<mode>3): Likewise.
7118 (andc<mode>3): Likewise.
7119
7120 * config/rs6000/constraints.md (wt constraint): New constraint
7121 that returns VSX_REGS if TImode is allowed in VSX registers.
7122
7123 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7124 constant under VSX.
7125
7126 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7127 similar to TImode, but it is restricted to being in the GPRs.
7128
7129 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7130 TImode to occupy a single VSX register.
7131
7132 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7133 -mvsx-timode for power7/power8.
7134 (power7 cpu): Likewise.
7135 (power8 cpu): Likewise.
7136
7137 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7138 sure that TFmode/TDmode take up two registers if they are ever
7139 allowed in the upper VSX registers.
7140 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7141 registers.
7142 (rs6000_init_hard_regno_mode_ok): Likewise.
7143 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7144 constraint. Print if LRA is turned on.
7145 (rs6000_option_override_internal): Give an error if -mvsx-timode
7146 and VSX is not enabled.
7147 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7148 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7149 to reg+offset addressing. Use PTImode when checking offset
7150 addresses for validity.
7151 (reg_offset_addressing_ok_p): Likewise.
7152 (rs6000_legitimate_offset_address_p): Likewise.
7153 (rs6000_legitimize_address): Likewise.
7154 (rs6000_legitimize_reload_address): Likewise.
7155 (rs6000_legitimate_address_p): Likewise.
7156 (rs6000_eliminate_indexed_memrefs): Likewise.
7157 (rs6000_emit_move): Likewise.
7158 (rs6000_secondary_reload): Likewise.
7159 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7160 reloads to fpr registers to continue to use reg+offset addressing,
7161 but 64-bit reloads to altivec registers need reg+reg addressing.
7162 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7163 it. Treat LO_SUM like a PLUS operation.
7164 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 7165 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
7166 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7167 registers to share a register with a smaller sized type, since VSX
7168 puts scalars in the upper 64-bits.
7169 (print_operand): Add support for PTImode.
7170 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7171 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7172 registers, but don't have arithmetic support.
7173 (rs6000_memory_move_cost): Add test for VSX.
7174 (rs6000_opt_masks): Add -mvsx-timode.
7175
7176 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7177 for TImode.
7178 (VSs): Likewise.
7179 (VSr): Use wt constraint for TImode.
7180 (VSv): Drop TImode support.
7181 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7182 (vsx_movti_64bit): Likewise.
7183 (vsx_movti_32bit): Likewise.
7184 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7185 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7186 one '?' on the appropriate output constraint. Do not allow TImode
7187 logical operations on 32-bit systems.
7188 (vsx_ior<mode>3): Likewise.
7189 (vsx_xor<mode>3): Likewise.
7190 (vsx_one_cmpl<mode>2): Likewise.
7191 (vsx_nor<mode>3): Likewise.
7192 (vsx_andc<mode>3): Likewise.
7193 (vsx_concat_<mode>): Likewise.
7194 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7195
7196 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7197 OPTION_MASK_VSX_TIMODE.
7198 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7199 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7200
7201 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7202 (TI2 iterator): New iterator for TImode, PTImode.
7203 (wd mode attribute): Add values for vector types.
bd059b26
UB
7204 (movti_string): Replace TI move operations with operations for TImode
7205 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
7206 (mov<mode>_string, TImode/PTImode): Likewise.
7207 (movti_ppc64): Likewise.
7208 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7209 (TI mode splitters): Likewise.
7210
7211 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7212 constraint.
7213
1fc5eced
MG
72142013-03-20 Marc Glisse <marc.glisse@inria.fr>
7215
7216 PR tree-optimization/56355
7217 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7218 Also handle integers with undefined overflow.
7219
22c4c869
CM
72202013-03-20 Catherine Moore <clm@codesourcery.com>
7221 Maciej W. Rozycki <macro@codesourcery.com>
7222 Tom de Vries <tom@codesourcery.com>
7223 Nathan Sidwell <nathan@codesourcery.com>
7224 Iain Sandoe <iain@codesourcery.com>
7225 Nathan Froyd <froydnj@codesourcery.com>
7226 Chao-ying Fu <fu@mips.com>
7227
7228 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 7229 Document new function attributes.
22c4c869
CM
7230 * doc/invoke.texi (minterlink-compressed, mmicromips,
7231 m14k, m14ke, m14kec): Document new options.
7232 (minterlink-mips16): Update documentation.
7233 * doc/md.texi (ZC, ZD): Document new constraints.
7234 * configure.ac (gcc_cv_as_micromips): Check if linker
7235 supports the .set micromips directive.
7236 * configure: Regenerate.
7237 * config.in: Regenerate.
7238 * config/mips/mips-tables.opt: Regenerate.
7239 * config/mips/micromips.md: New file.
7240 * constraints.md (ZC, ZD): New constraints.
7241 * config/mips/predicates.md (movep_src_register): New predicate.
7242 (movep_src_operand): New predicate.
7243 (non_volatile_mem_operand): New predicate.
7244 * config/mips/mips.md (multimem): New type.
7245 (length): Differentiate between 17-bit and 18-bit branch offsets.
7246 (MOVEP1, MOVEP2): New mode iterator.
33159866 7247 (mov_<load>l): Use ZC constraint.
22c4c869
CM
7248 (mov_<load>r): Likewise.
7249 (mov_<store>l): Likewise.
7250 (mov_<store>r): Likewise.
7251 (*branch_equality<mode>_inverted): Add microMIPS support.
7252 (*branch_equality<mode>): Likewise.
7253 (*jump_absolute): Likewise.
7254 (indirect_jump_<mode>): Likewise.
7255 (tablejump_<mode>): Likewise.
7256 (<optab>_internal): Likewise.
7257 (sibcall_internal): Likewise.
7258 (sibcall_value_internal): Likewise.
7259 (prefetch): Use constraint ZD.
7260 * config/mips/mips.opt (minterlink-compressed): New option.
7261 (minterlink-mips16): Now an alias for minterlink-compressed.
7262 (mmicromips): New option.
7263 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7264 (compare_and_swap_12): Likewise.
7265 (sync_add<mode>): Likewise.
7266 (sync_<optab>_12): Likewise.
7267 (sync_old_<optab>_12): Likewise.
7268 (sync_new_<optab>_12): Likewise.
7269 (sync_nand_12): Likewise.
7270 (sync_old_nand_12): Likewise.
7271 (sync_new_nand_12): Likewise.
7272 (sync_sub<mode>): Likewise.
7273 (sync_old_add<mode>): Likewise.
7274 (sync_old_sub<mode>): Likewise.
7275 (sync_new_add<mode>): Likewise.
7276 (sync_new_sub<mode>): Likewise.
7277 (sync_<optab><mode>): Likewise.
7278 (sync_old_<optab><mode>): Likewise.
7279 (sync_new_<optab><mode>): Likewise.
7280 (sync_nand<mode>): Likewise.
7281 (sync_old_nand<mode>): Likewise.
7282 (sync_new_nand<mode>): Likewise.
7283 (sync_lock_test_and_set<mode>): Likewise.
7284 (test_and_set_12): Likewise.
7285 (atomic_compare_and_swap<mode>): Likewise.
7286 (atomic_exchange<mode>_llsc): Likewise.
7287 (atomic_fetch_add<mode>_llsc): Likewise.
7288 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7289 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7290 (umips_save_restore_pattern_p): Likewise.
7291 (umips_load_store_pair_p): Likewise.
7292 (umips_output_load_store_pair): Likewise.
7293 (umips_movep_target_p): Likewise.
7294 (umips_12bit_offset_address_p): Likewise.
7295 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7296 (mips_base_mips16): Rename this...
7297 (mips_base_compression_flags): ...to this. Update all uses.
7298 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7299 (mips_mips16_decl_p): Delete.
7300 (mips_nomips16_decl_p): Delete.
33159866 7301 (mips_get_compress_on_flags): New function.
22c4c869
CM
7302 (mips_get_compress_off_flags): New function.
7303 (mips_get_compress_mode): New function.
7304 (mips_get_compress_on_name): New function.
7305 (mips_get_compress_off_name): New function.
7306 (mips_insert_attributes): Support multiple compression types.
7307 (mips_merge_decl_attributes): Likewise.
7308 (umips_12bit_offset_address_p): New function.
7309 (mips_start_function_definition): Emit .set micromips directive.
7310 (mips_call_may_need_jalx_p): New function.
7311 (mips_function_ok_for_sibcall): Add microMIPS support.
7312 (mips_print_operand_punctuation): Support short delay slots and
7313 compact jumps.
7314 (umips_swm_mask, umips_swm_encoding): New.
7315 (umips_build_save_restore): New function.
7316 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7317 (was_mips16_p): Remove.
7318 (old_compression_mode): New.
7319 (mips_set_compression_mode): New function.
7320 (mips_set_current_function): Add microMIPS support.
7321 (mips_option_override): Likewise.
7322 (umips_save_restore_pattern_p): New function.
7323 (umips_output_save_restore): New function.
7324 (umips_load_store_pair_p_1): New function.
7325 (umips_load_store_pair_p): New function.
7326 (umips_output_load_store_pair_1): New function.
7327 (umips_output_load_store_pair): New function.
7328 (umips_movep_target_p) New function.
7329 (mips_prepare_pch_save): Add microMIPS support.
7330 * config/mips/mips.h (TARGET_COMPRESSION): New.
7331 (TARGET_CPU_CPP_BUILTINS): Update macro
7332 to use new compression flags and to support microMIPS.
7333 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7334 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7335 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7336 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7337 (ASM_SPEC): Support mmicromips and mno-micromips.
7338 (M16STORE_REG_P): New macro.
7339 (MIPS_CALL): Support TARGET_MICROMIPS.
7340 (MICROMIPS_J): New macro.
7341 (mips_base_mips16): Rename this...
7342 (mips_base_compression_flags): ...to this.
7343 (UMIPS_12BIT_OFFSET_P): New macro.
7344 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7345 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
73462013-03-20 Richard Biener <rguenther@suse.de>
7347
7348 PR tree-optimization/56661
7349 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7350 the result does not have to be distinct.
7351
54714c68
RB
73522013-03-20 Richard Biener <rguenther@suse.de>
7353
7354 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7355 remap_gimple_op_r.
7356
cca1130d
BS
73572013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7358 Steven Bosscher <steven@gcc.gnu.org>
7359
7360 PR rtl-optimization/56605
7361 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7362
2a930377
UB
73632013-03-20 Uros Bizjak <ubizjak@gmail.com>
7364
7365 PR bootstrap/56656
7366 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7367 that require movd instead of movq.
7368
d6d305fe
RB
73692013-03-20 Richard Biener <rguenther@suse.de>
7370
7371 * tree-ssa-structalias.c (struct variable_info): Add pointer
7372 to the first field of an aggregate with sub-vars. Make
7373 this and the pointer to the next subfield its ID.
7374 (vi_next): New function.
7375 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7376 storedanything_id, integer_id): Increment by one.
7377 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7378 get_call_clobber_vi): Adjust.
7379 (solution_set_expand): Simplify and speedup.
7380 (solution_set_add): Inline into ...
7381 (set_union_with_increment): ... this. Adjust accordingly.
7382 (do_sd_constraint): Likewise.
7383 (do_ds_constraint): Likewise.
7384 (do_complex_constraint): Simplify.
7385 (build_pred_graph): Adjust.
7386 (solve_graph): Likewise. Simplify and speedup.
7387 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7388 get_constraint_for_component_ref, get_constraint_for_1,
7389 first_vi_for_offset, first_or_preceding_vi_for_offset,
7390 create_function_info_for, create_variable_info_for_1,
7391 create_variable_info_for, intra_create_variable_infos): Adjust.
7392 (init_base_vars): Push NULL for ID zero.
7393 (compute_points_to_sets): Adjust.
7394
a271b42d
RB
73952013-03-20 Richard Biener <rguenther@suse.de>
7396
7397 * cfgloop.c (verify_loop_structure): Streamline and avoid
7398 ICEing on corrupt loop tree.
7399 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7400 loop tree.
7401
ebd65954
RB
74022013-03-20 Richard Biener <rguenther@suse.de>
7403
7404 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7405 check whether an SSA update is needed.
7406
4547b7ee
RS
74072013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7408
7409 * config/mips/constraints.md (T): Rename to...
7410 (Yf): ...this.
7411 (U): Rename to...
7412 (Yd): ...this.
7413 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7414 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7415
0b8cdc58
IB
74162013-03-19 Ian Bolton <ian.bolton@arm.com>
7417
7418 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7419 (*subsi3_carryin_uxtw): Likewise.
7420
5977a10d
IB
74212013-03-19 Ian Bolton <ian.bolton@arm.com>
7422
7423 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7424 (*rorsi3_insn_uxtw): Likewise.
7425
bd83ff2c
IB
74262013-03-19 Ian Bolton <ian.bolton@arm.com>
7427
7428 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7429 (*extrsi5_insn_uxtw): Likewise.
7430
ba65123c
RB
74312013-03-19 Richard Biener <rguenther@suse.de>
7432
7433 PR tree-optimization/56273
7434 * passes.c (init_optimization_passes): Move second VRP after DOM.
7435
2eac0476
UB
74362013-03-19 Uros Bizjak <ubizjak@gmail.com>
7437
7438 * config/i386/i386.md (*movti_internal): Merge from
7439 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7440 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7441 nox64 isa attributes.
7442
6e55eda7
RB
74432013-03-18 Richard Biener <rguenther@suse.de>
7444
7445 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7446 (unite): Likewise.
7447 (merge_node_constraints): Likewise.
7448 (build_succ_graph): Likewise.
7449 (valid_graph_edge): Inline into single caller.
7450 (unify_nodes): Likewise. Use bitmap_set_bit return value
7451 and cache varinfo.
7452 (scc_visit): Fix formatting and variable use.
7453 (do_sd_constraint): Use gcc_checking_assert.
7454 (do_ds_constraint): Likewise.
7455 (do_complex_constraint): Likewise.
7456 (condense_visit): Likewise. Cleanup.
7457 (dump_pred_graph): New function.
7458 (perform_var_substitution): Dump the pred-graph before
7459 variable substitution.
7460 (find_equivalent_node): Use gcc_checking_assert.
7461 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7462
4bdd44c4
RB
74632013-03-18 Richard Biener <rguenther@suse.de>
7464
7465 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7466 Remove cond_expr_stmt_list argument and do not gimplify the
7467 built expression.
7468 (vect_loop_versioning): Adjust.
7469 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7470 Cleanup to use less temporaries.
7471 (vect_create_data_ref_ptr): Cleanup.
7472
38c56a5b
JJ
74732013-03-18 Jakub Jelinek <jakub@redhat.com>
7474
7475 PR tree-optimization/56635
7476 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7477 require types_compatible_p types.
7478
20b2e6a0
NC
74792013-03-18 Nick Clifton <nickc@redhat.com>
7480
a6178a25
NC
7481 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7482 spurious backslash.
7483
20b2e6a0
NC
7484 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7485 Add missing line to comment describing function.
7486
92608d0e
RB
74872013-03-18 Richard Biener <rguenther@suse.de>
7488
7489 PR tree-optimization/56210
7490 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7491 Handle string / character search functions.
7492 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7493
31348d52
RB
74942013-03-18 Richard Biener <rguenther@suse.de>
7495
7496 PR middle-end/56483
7497 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7498 and implement properly.
7499 * gimple.h (gimple_cond_single_var_p): Remove.
7500
fcac74a1
RB
75012013-03-18 Richard Biener <rguenther@suse.de>
7502
7503 * tree-data-ref.h (find_data_references_in_loop): Declare.
7504 * tree-data-ref.c (get_references_in_stmt): Use a stack
7505 vector pre-allocated in the callers.
7506 (find_data_references_in_stmt): Adjust.
7507 (graphite_find_data_references_in_stmt): Likewise.
7508 (create_rdg_vertices): Likewise.
7509 (find_data_references_in_loop): Export.
7510 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7511 Compute dependences here...
7512 (vect_analyze_data_refs): ...not here. When we encounter
7513 a non-vectorizable data reference in basic-block vectorization
7514 truncate the data reference vector. Do not bother to
7515 fixup data-dependence information for gather loads.
7516 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7517 of data references, as reported.
7518
0d5a1b56
RB
75192013-03-18 Richard Biener <rguenther@suse.de>
7520
7521 PR tree-optimization/3713
7522 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7523 has_constants and expr.
7524 (stmt_has_constants): Properly valueize SSA names when deciding
7525 whether the stmt has constants.
7526
789c34e3
RB
75272013-03-18 Richard Biener <rguenther@suse.de>
7528
7529 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7530 whole function when there is nothing to do.
7531 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7532 * tree-vectorizer.c (vectorize_loops): Update virtual and
7533 loop-closed SSA once.
7534 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7535
076b4605
RB
75362013-03-18 Richard Biener <rguenther@suse.de>
7537
7538 PR middle-end/56113
7539 * domwalk.c (bb_postorder): New global static.
7540 (cmp_bb_postorder): New function.
7541 (walk_dominator_tree): Replace scheme imposing an order for
7542 visiting dominator sons by one sorting them at the time they
7543 are pushed on the stack.
7544
bdb01696
RB
75452013-03-18 Richard Biener <rguenther@suse.de>
7546
7547 PR tree-optimization/39326
7548 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7549 (struct mem_ref): Replace mem member with ao_ref typed member.
7550 (MEM_ANALYZABLE): Adjust.
7551 (memref_eq): Likewise.
7552 (mem_ref_alloc): Likewise.
7553 (gather_mem_refs_stmt): Likewise.
7554 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7555 (execute_sm_if_changed_flag_set): Adjust.
7556 (execute_sm): Likewise.
7557 (ref_always_accessed_p): Likewise.
7558 (refs_independent_p): Likewise.
7559 (can_sm_ref_p): Likewise.
7560
12d2dc5e
JJ
75612013-03-18 Jakub Jelinek <jakub@redhat.com>
7562
7563 PR c/56566
7564 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7565 return 1 even for !unsignedp.
7566
286fb677
UB
75672013-03-17 Uros Bizjak <ubizjak@gmail.com>
7568
7569 * config/i386/i386.md (isa): Add x64 and nox64.
7570 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7571 (*pushtf): Enable *roF alternative for x64 isa only.
7572 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7573 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7574 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7575 (*movtf_internal): Merge from *movtf_internal_rex64 and
7576 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7577 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7578 nox64 isa attributes.
7579 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7580 nox64 isa attributes.
7581 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7582
88b97037
UB
75832013-03-17 Uros Bizjak <ubizjak@gmail.com>
7584
7585 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7586
9f4f1735
JJ
75872013-03-17 Jakub Jelinek <jakub@redhat.com>
7588
7589 PR target/56640
7590 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7591 class names. Remove trailing comma after "ALL_REGS".
7592
48f4a6fa
JH
75932013-03-16 Jan Hubicka <jh@suse.cz>
7594
7595 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7596 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7597 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7598 of cgraph_get_create_node.
7599 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7600
98e81123
JM
76012013-03-16 Jason Merrill <jason@redhat.com>
7602
7603 PR debug/49090
7604 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7605 with DW_AT_default_value.
7606
8a298c04
JJ
76072013-03-16 Jakub Jelinek <jakub@redhat.com>
7608
7609 * BASE-VER: Set to 4.9.0.
7610
4323afa0
AK
76112013-03-14 Andi Kleen <ak@linux.intel.com>
7612
7613 PR target/56619
7614 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7615 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7616 Document _x* TSX intrinsics.
7617
b3c0d469
JJ
76182013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7619 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
7620
7621 * configure.ac: Add MicroBlaze TLS support detection.
7622 * configure: Regenerate.
88b97037
UB
7623 * config/microblaze/microblaze-protos.h
7624 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7625 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7626 * config/microblaze/microblaze.c (microblaze_address_type): Add
7627 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
7628 (microblaze_address_info): Add tls_reloc.
7629 (TARGET_HAVE_TLS): Define.
7630 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7631 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
7632 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7633 load_tls_operand, microblaze_call_tls_get_addr,
7634 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7635 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7636 (get_base_reg): Use microblaze_tls_symbol_p.
7637 (microblaze_classify_address): Handle TLS.
88b97037
UB
7638 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7639 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7640 (microblaze_legitimize_address): Handle TLS.
7641 (microblaze_address_insns): Handle ADDRESS_TLS.
7642 (pic_address_needs_scratch): Handle TLS.
7643 (print_operand_address): Handle TLS.
7644 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7645 (microblaze_expand_move): Handle TLS.
88b97037
UB
7646 (microblaze_legitimate_constant_p): Check
7647 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7648 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7649 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7650 (PIC_OFFSET_TABLE_REGNUM): Set.
7651 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7652 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7653 (addsi3, movsi_internal2, movdf_internal): Update constraints
7654 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7655 (move_operand): Redefine as move_src_operand,
7656 check microblaze_tls_referenced_p.
8cc9a5a5 7657
d803a491
IB
76582013-03-14 Ian Bolton <ian.bolton@arm.com>
7659
7660 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7661 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7662
a8504f22
IB
76632013-03-14 Ian Bolton <ian.bolton@arm.com>
7664
7665 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7666 CC mode for AND.
7667
df2dfaea
JJ
76682013-03-14 Jakub Jelinek <jakub@redhat.com>
7669
fbd28bc3
JJ
7670 PR tree-optimization/53265
7671 * common.opt (Waggressive-loop-optimizations): New option.
7672 * tree-ssa-loop-niter.c: Include tree-pass.h.
7673 (do_warn_aggressive_loop_optimizations): New function.
7674 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7675 if number_of_latch_executions returned constant.
7676 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7677 early. If number_of_latch_executions returned constant, set
7678 nb_iterations_upper_bound back to it.
7679 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7680 field.
7681 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7682 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7683
df2dfaea
JJ
7684 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7685 (MULTILIB_OSDIRNAMES): Set.
7686 * genmultilib: If defaultosdirname doesn't start with :: , set
7687 defaultosdirname2 instead, clear it and emit two . multilib_raw
7688 entries instead of just one.
7689
ee0d2b68
KK
76902013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7691
7692 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7693 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7694 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7695 (SUBTARGET_OVERRIDE_OPTIONS): New.
7696
decc676e
OE
76972013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7698
7699 PR target/49880
7700 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7701 (musermode): Convert to Var(TARGET_USERMODE).
7702 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7703 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7704 * config/sh/sh.c (sh_option_override): Use
7705 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7706 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7707 condition.
7708 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7709 TARGET_SH4.
7710 (udivsi3_i4_single, divsi3_i4_single): Use
7711 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7712
f4b719c7
DK
77132013-03-13 Dave Korn <dave.korn.cygwin@....>
7714
7715 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7716 default setting.
7717
c40eced0
RB
77182013-03-13 Richard Biener <rguenther@suse.de>
7719
7720 PR tree-optimization/56608
7721 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7722 calls when vectorizing basic-blocks.
7723
1bfa5973
JJ
77242013-03-13 Jakub Jelinek <jakub@redhat.com>
7725
7726 PR plugins/45078
7727 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7728 tm_file.
7729
6fcf5434
JJ
77302013-03-12 Jakub Jelinek <jakub@redhat.com>
7731
7732 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7733
4f38fa8c
JH
77342013-03-11 Jan Hubicka <jh@suse.cz>
7735
7736 PR lto/56557
7737 * lto-streamer-out.c (output_symbol_p): Skip references from
7738 constructors of external variables.
7739
c5c5ba89
JH
77402013-03-11 Jan Hubicka <jh@suse.cz>
7741
7742 PR middle-end/56571
7743 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7744 from pseudos.
7745 * emit-rtl.c (verify_rtx_sharing): Likewise.
7746 (copy_insn_1): Likewise.
7747 * rtl.c (copy_rtx): Likewise.
7748
c2a939b1
GJL
77492013-03-11 Georg-Johann Lay <avr@gjlay.de>
7750
7751 PR target/56591
7752 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7753 output_operand_lossage message.
88b97037 7754
3c3279fb
RE
77552013-03-11 Richard Earnshaw <rearnsha@arm.com>
7756
7757 PR target/56470
7758 * arm.c (shift_op): Validate RTL pattern on the fly.
7759 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7760 the RTL.
7761
aef5ef9d
JDA
77622013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7763
7764 PR target/56347
7765 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7766 new call patterns that clobber %fr12.
7767 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7768 split and postreload patterns.
7769 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7770 registers %fr12 and %fr12R as call used.
7771
456610d3
SB
77722013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7773
7774 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7775 (canon_address, record_store, replace_read, check_mem_read_rtx,
7776 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7777 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7778 rest_of_handle_dse): Likewise.
7779
4b1baac8
RS
77802013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7781
7782 PR middle-end/56524
7783 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7784 Add base_optabs.
7785 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7786 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7787 (save_optabs_if_changed): Replace with...
7788 (init_tree_optimization_optabs): ...this.
7789 * optabs.c (save_optabs_if_changed): Rename to...
7790 (init_tree_optimization_optabs): ...this. Take the optimization node
7791 as argument. Do nothing if the base optabs are already correct.
7792 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7793 to recompute optabs.
7794 * function.h (function): Remove optabs field.
7795 * function.c (invoke_set_current_function_hook): Call
7796 init_tree_optimization_optabs. Use the result to initialize
7797 this_fn_optabs.
7798
b7a78683
AH
77992013-02-27 Aldy Hernandez <aldyh@redhat.com>
7800
7801 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7802 if GTMA_HAS_NO_INSTRUMENTATION.
7803 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7804 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7805 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7806 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7807 GTMA_HAS_NO_INSTRUMENTATION.
7808
6384c29b
JJ
78092013-03-08 Jakub Jelinek <jakub@redhat.com>
7810
7811 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7812 libasan_preinit.o.
7813
ecd4f20a
MP
78142013-03-08 Marek Polacek <polacek@redhat.com>
7815 Jakub Jelinek <jakub@redhat.com>
7816
7817 PR tree-optimization/56478
7818 * predict.c (is_comparison_with_loop_invariant_p): Change the
7819 type of loop_step to tree.
7820 (predict_loops): Adjust.
7821 (predict_iv_comparison): Perform the computations on double_ints.
7822
64366d35
RB
78232013-03-08 Richard Biener <rguenther@suse.de>
7824
7825 PR tree-optimization/56570
7826 * tree-cfg.c (verify_expr_location_1): Verify locations for
7827 DECL_DEBUG_EXPR.
7828 * tree-sra.c (create_access_replacement): Strip locations
7829 from DECL_DEBUG_EXPRs.
7830
a9d5a059
RB
78312013-03-08 Richard Biener <rguenther@suse.de>
7832
7833 * tree-inline.c (expand_call_inline): Do not associate
7834 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7835 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7836
b7aa4e9a
RB
78372013-03-08 Richard Biener <rguenther@suse.de>
7838
7839 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7840 or block changes with -Og. Fix for location / block encoding
7841 changes and PHI arguments with locations.
7842
c4c2f9fa
SB
78432013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7844
7845 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7846 for all counters.
7847 (struct output_info): Likewise.
7848 (register_overhead): Remove bad gcc_assert.
7849 (bitmap_find_bit): If there is only a single bitmap element, do not
7850 count a miss as a search.
7851 (print_statistics): Update for counter type changes.
7852 (dump_bitmap_statistics): Likewise. Print headers such that they
7853 are properly lined up with the printed counters.
7854
5bf6606a
JJ
78552013-03-07 Jakub Jelinek <jakub@redhat.com>
7856
7857 PR tree-optimization/56559
7858 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7859 check that it has only a single use.
7860
2c653d46
RB
78612013-03-07 Richard Biener <rguenther@suse.de>
7862
7863 * doc/invoke.texi (fwhole-program): Discourage use in combination
7864 with -flto.
7865
a72d8780
JJ
78662013-03-06 Jakub Jelinek <jakub@redhat.com>
7867
01a454df
JJ
7868 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7869
c1781047
JJ
7870 PR tree-optimization/56539
7871 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7872 instead of GSI_CONTINUE_LINKING as last argument to
7873 force_gimple_operand_gsi. Adjust function comment.
7874
9772c47a
JJ
7875 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7876 aarch64-cores.def.
7877
a72d8780
JJ
7878 PR middle-end/56548
7879 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7880 promoted mode, convert the result back to the original mode.
7881
fa5556de
RB
78822013-03-06 Richard Biener <rguenther@suse.de>
7883
7884 PR middle-end/56294
7885 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7886 (insert_updated_phi_nodes_compare_uids): New function.
7887 (update_ssa): Sort symbols_to_rename after UID before
7888 traversing it to insert PHI nodes.
7889
010403d1
RB
78902013-03-06 Richard Biener <rguenther@suse.de>
7891
7892 PR middle-end/50494
7893 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7894 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7895
7896 Revert
7897 2013-02-13 Richard Biener <rguenther@suse.de>
7898
7899 PR lto/50494
7900 * varasm.c (output_constant_def_1): Get the decl representing
7901 the constant as argument.
7902 (output_constant_def): Wrap output_constant_def_1.
7903 (make_decl_rtl): Use output_constant_def_1 with the decl
7904 representing the constant.
7905 (build_constant_desc): Optionally re-use a decl already
7906 representing the constant.
7907 (tree_output_constant_def): Adjust.
7908
3c27ce4c
JY
79092013-03-06 Joey Ye <joey.ye@arm.com>
7910
7911 PR lto/50293
7912 * gcc.c (convert_white_space): New function.
7913 (main): Handles white space in function name.
7914
8f6d1c86
OE
79152013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7916
7917 PR target/56529
7918 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7919 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7920 to SH_DIV_CALL_TABLE for TARGET_SH2.
7921 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7922 list.
7923 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7924 call-table options.
7925
798a209f
SA
79262013-03-05 Sterling Augustine <saugustine@google.com>
7927 Cary Coutant <ccoutant@google.com>
7928
7929 PR debug/55364
7930 * dwarf2out.c (resolve_addr): Don't call
7931 remove_loc_list_addr_table_entries a second time for the same
7932 expression.
7933
6cfa417f 79342013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 7935
6cfa417f
JJ
7936 PR debug/56510
7937 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7938 (avoid_complex_debug_insns): New function.
7939 (expand_debug_locations): Call it.
7940
7941 PR rtl-optimization/56484
7942 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7943 lifetimes of hard registers on small register class machines.
7944
79452013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7946
7947 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 7948 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 7949 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
7950 fast_interrupt.
7951 (microblaze_fast_interrupt_function_p): New function.
7952 (microblaze_is_interrupt_handler): Rename to
7953 microblaze_is_interrupt_variant and add fast_interrupt check.
7954 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7955 (save_restore_insns): Likewise.
7956 (compute_frame_size): Likewise.
7957 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7958 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
7959 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7960 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
7961 microblaze_is_interrupt_variant.
7962
731aefac
KT
79632013-03-05 Kai Tietz <ktietz@redhat.com>
7964
7965 * sdbout.c (sdbout_one_type): Switch to current function's section
7966 supporting cold/hot.
7967
a72d8780 79682013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
7969
7970 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7971 -mxl-reorder.
7972
334e71e8
JJ
79732013-03-05 Jakub Jelinek <jakub@redhat.com>
7974
0b50e654
JJ
7975 PR middle-end/56461
7976 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7977 if VALGRIND_GET_VBITS is defined, temporarily make object
7978 memory all defined, and restore previous valgrind addressability
7979 and definability afterwards. Free this_object at the end.
7980
4ccf8f43
JJ
7981 PR middle-end/56461
7982 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7983 right before calling lra_create_live_ranges, also call it
7984 when clearing live_p. Only call lra_clear_live_ranges
7985 at the end if live_p.
7986
334e71e8
JJ
7987 PR middle-end/56461
7988 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7989
9ca966ca
RB
79902013-03-05 Richard Biener <rguenther@suse.de>
7991
7992 PR tree-optimization/56521
7993 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7994 value-id.
7995
d273b176
SB
79962013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7997
7998 PR c++/55135
7999 * except.h (remove_unreachable_eh_regions): New prototype.
8000 * except.c (remove_eh_handler_splicer): New function, split out
8001 of remove_eh_handler.
8002 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8003 warning about running it on many EH regions one at a time.
8004 (remove_unreachable_eh_regions_worker): New function, walk the
8005 EH tree in depth-first order and remove non-marked regions.
8006 (remove_unreachable_eh_regions): New function.
8007 * tree-eh.c (mark_reachable_handlers): New function, split out
8008 from remove_unreachable_handlers.
8009 (remove_unreachable_handlers): Use mark_reachable_handlers and
8010 remove_unreachable_eh_regions.
8011 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8012 and remove_unreachable_eh_regions.
8013
5e7f1aef
RB
80142013-03-05 Richard Biener <rguenther@suse.de>
8015
8016 PR middle-end/56525
8017 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8018 not freeing them until the end.
8019
f276b762
AK
80202013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8021
8022 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8023
12a43ab8
RB
80242013-03-05 Richard Biener <rguenther@suse.de>
8025
8026 PR tree-optimization/56270
8027 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8028 of loads after scheduling an SLP instance.
8029
93675444
JJ
80302013-03-05 Jakub Jelinek <jakub@redhat.com>
8031
db4138e3
JJ
8032 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8033 tic6x.exp.
8034 (check_gcc_parallelize): Run guality.exp as a separate job from
8035 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8036 struct-layout-1.exp with stackalign.exp.
8037
dd3d1ec0
JJ
8038 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8039
b8d381a3
JJ
8040 PR middle-end/56461
8041 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8042 load_index sbitmap even if some bit in it isn't set.
8043
b4f9786b
JJ
8044 PR middle-end/56461
8045 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8046 (discover_iteration_bound_by_body_walk): Change queues to
8047 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8048 spelling in comment. Call safe_push on queues[bound_index] directly.
8049 Release queues[queue_index] in every iteration unconditionally.
8050 Release bounds vector.
8051
93675444
JJ
8052 PR middle-end/56461
8053 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8054 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8055 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8056 inner_phis vector.
8057
3e492e9c
RB
80582013-03-05 Richard Biener <rguenther@suse.de>
8059
8060 PR lto/56515
8061 * tree-inline.c (remap_blocks_to_null): New function.
8062 (expand_call_inline): When expanding a call stmt without
8063 an associated block inline remap all callee blocks to NULL.
8064
a5d1569a
JJ
80652013-03-05 Jakub Jelinek <jakub@redhat.com>
8066
86efb5cd
JJ
8067 PR rtl-optimization/56494
8068 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8069 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8070 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8071
85f5dbea
JJ
8072 PR middle-end/56461
8073 * sel-sched-ir.c (free_sched_pools): Release
8074 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8075 if succs_info_pool.max_top isn't -1.
8076
a5d1569a
JJ
8077 PR bootstrap/56509
8078 * opts.c (opts_obstack, opts_concat): Moved to...
8079 * opts-common.c (opts_obstack, opts_concat): ... here.
8080
4432aa6c
JJ
80812013-03-04 Jakub Jelinek <jakub@redhat.com>
8082
8083 PR middle-end/56461
8084 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8085
f3a1fb91
MJ
80862013-03-04 Martin Jambor <mjambor@suse.cz>
8087
8088 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8089 all appropriate places.
8090
22110e6c
EB
80912013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8092
8093 PR tree-optimization/56424
8094 * ipa-split.c (split_function): Do not set the RSO flag if result is
8095 not by reference and its type is a register type.
8096
a72d8780 80972013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 8098
88b97037 8099 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 8100 (microblaze_legitimate_pic_operand): Likewise
88b97037 8101 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
8102 new function microblaze_legitimate_pic_operand
8103 * config/microblaze/microblaze-protos.h
8104 (microblaze_legitimate_pic_operand): Declare.
8105
a72d8780 81062013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 8107
a72d8780 8108 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 8109 New predicate for supported rtx code types.
a72d8780 8110 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
8111 call_insn_simple_operand predicate.
8112
541d9ac8
JJ
81132013-03-04 Jakub Jelinek <jakub@redhat.com>
8114
5eb010bc
JJ
8115 PR middle-end/56461
8116 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8117 partitions.ordered_remove.
8118
30862efc
JJ
8119 PR middle-end/56461
8120 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8121 vec_oprnds0.create (1) for modifier == NONE.
8122
8930f723
JJ
8123 PR middle-end/56461
8124 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8125 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8126 vec_oprnds1 right before pushing anything to it for
8127 scalar_shift_arg.
8128
541d9ac8
JJ
8129 PR middle-end/56461
8130 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8131 set nbbs to 0 instead of having separate code path.
8132 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8133 instead of false as last argument if returning NULL.
8134
7aa7f2e3
SL
81352013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8136
8137 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8138 the attribute is now called "target" instead of "option".
8139 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8140 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8141 attribute/pragma name for TARGET_OPTION_VALID_P and
8142 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8143 * doc/tm.texi: Regenerated.
8144
8930f723 81452013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 8146
8930f723 8147 * config/microblaze/microblaze.c:
cb8a1637 8148 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
8149 * config/microblaze/microblaze.h: Add -mxl-reorder to
8150 DRIVER_SELF_SPECS.
8151 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8152 instructions emitted if TARGET_REORDER.
88b97037
UB
8153 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8154 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 8155 separately.
cb8a1637 8156
4dc1d68c
XDL
81572013-03-01 Xinliang David Li <davidxl@google.com>
8158
8159 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8160 walk length.
8161
689eaba3
JJ
81622013-03-01 Jakub Jelinek <jakub@redhat.com>
8163
9d676bf6
JJ
8164 PR middle-end/56461
8165 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8166 vector even when returning true. Fix up function comment formatting.
8167
caff7edf
JJ
8168 PR middle-end/56461
8169 * ira-build.c (ira_loop_nodes_count): New variable.
8170 (create_loop_tree_nodes): Initialize it.
8171 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8172
b6b9227d
JJ
8173 PR middle-end/56461
8174 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8175 method on dr_chain and result_chain.
8176 * tree-vect-stmts.c (vectorizable_store): Only call
8177 result_chain.create if j == 0.
8178
689eaba3
JJ
8179 PR middle-end/56461
8180 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8181 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8182 before overwriting it.
8183
40bf31ed
TB
81842013-03-01 Tobias Burnus <burnus@net-b.de>
8185
8186 * doc/extended.texi (C Extensions): Change order in @menu
8187 to match @node.
8188 (Other MIPS Built-in Functions): Move last MIPS entry before
8189 "picoChip Built-in Functions".
8190 (SH Built-in Functions): Move after RX Built-in Functions.
8191 * doc/gcc.texi (Introduction): Change order in @menu
8192 to match @node.
8193 * doc/md.texi (Constraints): Ditto.
8194 * gty.texi (Type Information): Ditto.
8195 (User-provided marking routines for template types): Make
8196 subsection.
8197 * doc/invoke.texi (AArch64 Options): Move before
8198 "Adapteva Epiphany Options".
8199
e664c61c
KS
82002013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8201 Jakub Jelinek <jakub@redhat.com>
8202
8203 PR sanitizer/56454
8204 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8205 no_address_safety_analysis attribute.
8206 * doc/extend.texi (no_address_safety_attribute): Rename to
8207 no_sanitize_address attribute, mention no_address_safety_analysis
8208 attribute as deprecated alias.
8209
37b5ec8f
JJ
82102013-02-28 Jakub Jelinek <jakub@redhat.com>
8211
8212 PR middle-end/56461
8213 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8214 type to vec<vec<tree> > *.
8215 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8216 to be vec<tree> instead of vec<tree> *, set vec_defs
8217 to vNULL and call vec_defs.create (number_of_vects), adjust other
8218 uses of vec_defs.
8219 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8220 vectorizable_condition): Adjust vect_get_slp_defs callers.
8221
ba96cdfb
JG
82222013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8223
8224 * config/aarch64/aarch64.c
8225 (aarch64_float_const_representable): Remove unused variable.
8226
6f549691
JG
82272013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8228
8229 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8230
af55e82d
JG
82312013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8232
8233 * config/aarch64/aarch64-builtins.c
8234 (aarch64_init_simd_builtins): Make static.
8235
1df3f464
JG
82362013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8237
8238 * config/aarch64/aarch64.c
8239 (aarch64_simd_make_constant): Make static.
8240
f8f42513
MJ
82412013-02-28 Martin Jambor <mjambor@suse.cz>
8242
8243 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8244 with no initialization to the RHS of debug statements.
8245
b48b3fc4
MJ
82462013-02-28 Martin Jambor <mjambor@suse.cz>
8247
8248 PR tree-optimization/56294
8249 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8250 Adjust dumping.
8251 (get_access_replacement): Do not call create_access_replacement.
8252 Assert a replacement exists.
8253 (get_repl_default_def_ssa_name): Create the replacement declaration
8254 itself.
8255
c3ae224c
RR
82562013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8257
8258 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8259 final_end_function.
8260
45fa0eef
MP
82612013-02-28 Marek Polacek <polacek@redhat.com>
8262
8263 PR rtl-optimization/56466
8264 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8265 if we're changing a loop.
8266 (peel_loops_completely): Likewise.
8267
502c067d
PC
82682013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8269
8270 PR c++/55813
8271 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8272
ff24afc8
GJL
82732013-02-28 Georg-Johann Lay <avr@gjlay.de>
8274
8275 PR target/56445
8276 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8277 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8278 INTX_FTYPE_FX, FX_FTYPE_INTX.
8279 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8280
c7b1fc1b
GJL
82812013-02-28 Georg-Johann Lay <avr@gjlay.de>
8282
8283 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8284 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8285 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8286 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8287 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8288 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8289 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8290 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8291 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8292 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8293 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8294 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8295 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8296 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8297 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8298 (avrxmega6): Increase max flash segments from 5 to 6.
8299 * config/avr/t-multilib: Regenerate.
8300 * config/avr/avr-tables.opt: Regenerate.
8301 * doc/avr-mmcu.texi: Regenerate.
8302
4a0e3cfe
GJL
83032013-02-28 Georg-Johann Lay <avr@gjlay.de>
8304
8305 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8306 (avr_device_to_arch): Rename to avr_device_to_ld.
8307 (avr_device_to_as): New prototype.
8308 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8309 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8310 * config/avr/driver-avr.c (avr_device_to_as): New.
8311 (avr_device_to_arch): Rename to avr_device_to_ld.
8312
97785e52
JJ
83132013-02-27 Jakub Jelinek <jakub@redhat.com>
8314
3f292312
JJ
8315 PR middle-end/56461
8316 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8317 method on dr_chain and result_chain.
8318
a344216b
JJ
8319 PR middle-end/56461
8320 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8321 pointer_set_destroy on not_executed_last_iteration.
8322
f121ad02 8323 PR middle-end/56461
88b97037 8324 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 8325
307f83a3
JJ
8326 PR middle-end/56461
8327 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8328 FOR_EACH_DEFINED_FUNCTION when freeing state.
8329
e19624ee
JJ
8330 PR middle-end/56461
8331 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8332 pool_free.
8333 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8334 overwriting it.
8335
90e709fd
JJ
8336 PR middle-end/56461
8337 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8338 known_aggs[i].items and release known_aggs vector.
8339
97785e52
JJ
8340 PR middle-end/56461
8341 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8342
83432013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 8344
97785e52
JJ
8345 * config/microblaze/microblaze.c (microblaze_emit_compare):
8346 Use xor for EQ/NE comparisions.
8347 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8348 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 8349
6fa5e0ed
JJ
83502013-02-27 Jakub Jelinek <jakub@redhat.com>
8351
8352 PR middle-end/56461
8353 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8354 vector.
8355 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8356 vec_safe_push, always update *slot.
8357 (redirect_edge_var_map_clear): Use vec_free.
8358 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8359 (free_var_map_entry): Use vec_free.
8360 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8361 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8362
436a956a
AB
83632013-02-27 Andrey Belevantsev <abel@ispras.ru>
8364
8365 PR middle-end/45472
436a956a
AB
8366 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8367 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
8368 Reorder tests for speculativeness in the logical and operator.
8369
f5c2caca
JJ
83702013-02-27 Jakub Jelinek <jakub@redhat.com>
8371
0fcb564b
JJ
8372 * incpath.c (add_standard_paths): Use reconcat instead of concat
8373 where appropriate and avoid leaking memory.
8374
dc357798
JJ
8375 * opts.h: Include obstack.h.
8376 (opts_concat): New prototype.
8377 (opts_obstack): New declaration.
8378 * opts.c (opts_concat): New function.
8379 (opts_obstack): New variable.
8380 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8381 (finish_options): Use opts_concat instead of concat
8382 and XOBNEWVEC instead of XNEWVEC.
8383 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8384 generate_option): Likewise.
8385 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8386 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8387
f5c2caca
JJ
8388 PR target/56455
8389 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8390 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8391
d0163673
JJ
83922013-02-26 Jakub Jelinek <jakub@redhat.com>
8393
8394 PR middle-end/56461
8395 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8396
b5ad2b8e
JR
83972013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8398
8399 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8400 (arm_block_move_unaligned_straight): Likewise.
8401 (arm_adjust_block_mem): Likewise.
8402
9b639e2c
JR
84032013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8404
8405 PR target/48901
8406 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8407 temp, cond and label.
8408 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8409
e13a0ccb
JR
8410 PR target/52500
8411 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8412 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8413
fbe4f171
JR
8414 PR target/52501
8415 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8416 of prologue/epilogue functions.
8417
ae006543
JR
8418 PR target/52550
8419 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8420 Remove unused variable cfa_offset.
8421 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8422
c81369fa
JR
8423 PR target/54639
8424 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8425 type promotion to unsigned.
8426
f8a8fea7
JR
8427 PR target/54640
8428 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8429 for HOST_WIDE_INT of 32 bit / same size as int.
8430 (arm_block_move_unaligned_straight): Likewise.
8431 (arm_adjust_block_mem): Likewise.
8432
f8be5169
JR
8433 PR target/54662
8434 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8435 ALL_CFLAGS.
8436
f1ad3354
MP
84372013-02-26 Marek Polacek <polacek@redhat.com>
8438
8439 PR tree-optimization/56426
88b97037 8440 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 8441
a6af0f42
RB
84422013-02-26 Richard Biener <rguenther@suse.de>
8443
8444 PR target/56444
8445 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8446 unused variable loops.
8447
aca43c6c
JJ
84482013-02-26 Jakub Jelinek <jakub@redhat.com>
8449
cecbe5d9
JJ
8450 PR tree-optimization/56448
8451 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8452 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8453 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8454 later operands of the references, or even first operand for
8455 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8456
aca43c6c
JJ
8457 PR tree-optimization/56443
8458 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8459 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8460 to type_for_mode langhook.
8461
53e2e141
MT
84622013-02-25 Matt Turner <mattst88@gmail.com>
8463
8464 * doc/invoke.texi: Document r4700.
8465
259ee451
RB
84662013-02-25 Richard Biener <rguenther@suse.de>
8467
8468 PR tree-optimization/56175
8469 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8470 split out from ...
8471 (simplify_bitwise_binary): ... here. Also guard the conversion
8472 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8473
6d65e8f1
CM
84742013-02-25 Catherine Moore <clm@codesourcery.com>
8475
8476 Revert:
8477 2013-02-24 Catherine Moore <clm@codesourcery.com>
8478 Maciej W. Rozycki <macro@codesourcery.com>
8479 Tom de Vries <tom@codesourcery.com>
a72d8780 8480 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
8481 Iain Sandoe <iain@codesourcery.com>
8482 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8483 Chao-ying Fu <fu@mips.com>
88b97037 8484
6d65e8f1 8485 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8486 Document new function attributes.
6d65e8f1
CM
8487 * doc/invoke.texi (minterlink-compressed, mmicromips,
8488 m14k, m14ke, m14kec): Document new options.
8489 (minterlink-mips16): Update documentation.
8490 * doc/md.texi (ZC, ZD): Document new constraints.
8491 * configure.ac (gcc_cv_as_micromips): Check if linker
8492 supports the .set micromips directive.
8493 * configure: Regenerate.
8494 * config.in: Regenerate.
8495 * config/mips/mips-tables.opt: Regenerate.
8496 * config/mips/micromips.md: New file.
8497 * constraints.md (ZC, AD): New constraints.
8498 * config/mips/predicates.md (movep_src_register): New predicate.
8499 (movep_src_operand): New predicate.
8500 (non_volatile_mem_operand): New predicate.
8501 * config/mips/mips.md (multimem): New type.
8502 (length): Differentiate between 17-bit and 18-bit branch offsets.
8503 (MOVEP1, MOVEP2): New mode iterator.
8504 (mov_<load>l): Use ZC constraint.
8505 (mov_<load>r): Likewise.
8506 (mov_<store>l): Likewise.
8507 (mov_<store>r): Likewise.
8508 (*branch_equality<mode>_inverted): Add microMIPS support.
8509 (*branch_equality<mode>): Likewise.
8510 (*jump_absolute): Likewise.
8511 (indirect_jump_<mode>): Likewise.
8512 (tablejump_<mode>): Likewise.
8513 (<optab>_internal): Likewise.
8514 (sibcall_internal): Likewise.
8515 (sibcall_value_internal): Likewise.
8516 (prefetch): Use constraint ZD.
8517 * config/mips/mips.opt (minterlink-compressed): New option.
8518 (minterlink-mips16): Now an alias for minterlink-compressed.
8519 (mmicromips): New option.
8520 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8521 (compare_and_swap_12): Likewise.
8522 (sync_add<mode>): Likewise.
8523 (sync_<optab>_12): Likewise.
8524 (sync_old_<optab>_12): Likewise.
8525 (sync_new_<optab>_12): Likewise.
8526 (sync_nand_12): Likewise.
8527 (sync_old_nand_12): Likewise.
8528 (sync_new_nand_12): Likewise.
8529 (sync_sub<mode>): Likewise.
8530 (sync_old_add<mode>): Likewise.
8531 (sync_old_sub<mode>): Likewise.
8532 (sync_new_add<mode>): Likewise.
8533 (sync_new_sub<mode>): Likewise.
8534 (sync_<optab><mode>): Likewise.
8535 (sync_old_<optab><mode>): Likewise.
8536 (sync_new_<optab><mode>): Likewise.
8537 (sync_nand<mode>): Likewise.
8538 (sync_old_nand<mode>): Likewise.
8539 (sync_new_nand<mode>): Likewise.
8540 (sync_lock_test_and_set<mode>): Likewise.
8541 (test_and_set_12): Likewise.
8542 (atomic_compare_and_swap<mode>): Likewise.
8543 (atomic_exchange<mode>_llsc): Likewise.
8544 (atomic_fetch_add<mode>_llsc): Likewise.
8545 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8546 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8547 (umips_save_restore_pattern_p): Likewise.
8548 (umips_load_store_pair_p): Likewise.
8549 (umips_output_load_store_pair): Likewise.
8550 (umips_movep_target_p): Likewise.
8551 (umips_12bit_offset_address_p): Likewise.
8552 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8553 (mips_base_mips16): Rename this...
8554 (mips_base_compression_flags): ...to this. Update all uses.
8555 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8556 (mips_mips16_decl_p): Delete.
8557 (mips_nomips16_decl_p): Delete.
8558 (mips_get_compress_on_flags): New function.
8559 (mips_get_compress_off_flags): New function.
8560 (mips_get_compress_mode): New function.
8561 (mips_get_compress_on_name): New function.
8562 (mips_get_compress_off_name): New function.
8563 (mips_insert_attributes): Support multiple compression types.
8564 (mips_merge_decl_attributes): Likewise.
8565 (umips_12bit_offset_address_p): New function.
8566 (mips_start_function_definition): Emit .set micromips directive.
8567 (mips_call_may_need_jalx_p): New function.
8568 (mips_function_ok_for_sibcall): Add microMIPS support.
8569 (mips_print_operand_punctuation): Support short delay slots and
8570 compact jumps.
8571 (umips_swm_mask, umips_swm_encoding): New.
8572 (umips_build_save_restore): New function.
8573 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8574 (was_mips16_p): Remove.
8575 (old_compression_mode): New.
8576 (mips_set_compression_mode): New function.
8577 (mips_set_current_function): Add microMIPS support.
8578 (mips_option_override): Likewise.
8579 (umips_save_restore_pattern_p): New function.
8580 (umips_output_save_restore): New function.
8581 (umips_load_store_pair_p_1): New function.
8582 (umips_load_store_pair_p): New function.
8583 (umips_output_load_store_pair_1): New function.
8584 (umips_output_load_store_pair): New function.
8585 (umips_movep_target_p) New function.
8586 (mips_prepare_pch_save): Add microMIPS support.
8587 * config/mips/mips.h (TARGET_COMPRESSION): New.
8588 (TARGET_CPU_CPP_BUILTINS): Update macro
8589 to use new compression flags and to support microMIPS.
8590 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8591 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8592 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8593 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8594 (ASM_SPEC): Support mmicromips and mno-micromips.
8595 (M16STORE_REG_P): New macro.
8596 (MIPS_CALL): Support TARGET_MICROMIPS.
8597 (MICROMIPS_J): New macro.
8598 (mips_base_mips16): Rename this...
8599 (mips_base_compression_flags): ...to this.
8600 (UMIPS_12BIT_OFFSET_P): New macro.
8601 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8602 (MULTILIB_DIRNAMES): Likewise.
8603
5e5df392
TV
86042013-02-25 Tom de Vries <tom@codesourcery.com>
8605
8606 PR rtl-optimization/56131
8607 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8608 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8609 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8610
3fdb53c1
TB
86112013-02-25 Tobias Burnus <burnus@net-b.de>
8612
8613 * doc/invoke.texi (-fsanitize=): Move from optimization
8614 to debugging options.
8615
ed358aea
AB
86162013-02-25 Andrey Belevantsev <abel@ispras.ru>
8617
8618 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8619
f45e9053
AB
86202013-02-25 Andrey Belevantsev <abel@ispras.ru>
8621 Alexander Monakov <amonakov@ispras.ru>
8622
8623 PR middle-end/56077
8624 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8625 flush pending lists also on non-jumps. Adjust comment.
8626
6941b508
CM
86272013-02-24 Catherine Moore <clm@codesourcery.com>
8628 Maciej W. Rozycki <macro@codesourcery.com>
8629 Tom de Vries <tom@codesourcery.com>
a72d8780 8630 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
8631 Iain Sandoe <iain@codesourcery.com>
8632 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8633 Chao-ying Fu <fu@mips.com>
6941b508
CM
8634
8635 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8636 Document new function attributes.
6941b508
CM
8637 * doc/invoke.texi (minterlink-compressed, mmicromips,
8638 m14k, m14ke, m14kec): Document new options.
8639 (minterlink-mips16): Update documentation.
8640 * doc/md.texi (ZC, ZD): Document new constraints.
8641 * configure.ac (gcc_cv_as_micromips): Check if linker
8642 supports the .set micromips directive.
8643 * configure: Regenerate.
8644 * config.in: Regenerate.
8645 * config/mips/mips-tables.opt: Regenerate.
8646 * config/mips/micromips.md: New file.
8647 * constraints.md (ZC, AD): New constraints.
8648 * config/mips/predicates.md (movep_src_register): New predicate.
8649 (movep_src_operand): New predicate.
8650 (non_volatile_mem_operand): New predicate.
8651 * config/mips/mips.md (multimem): New type.
8652 (length): Differentiate between 17-bit and 18-bit branch offsets.
8653 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8654 (mov_<load>l): Use ZC constraint.
6941b508
CM
8655 (mov_<load>r): Likewise.
8656 (mov_<store>l): Likewise.
8657 (mov_<store>r): Likewise.
8658 (*branch_equality<mode>_inverted): Add microMIPS support.
8659 (*branch_equality<mode>): Likewise.
8660 (*jump_absolute): Likewise.
8661 (indirect_jump_<mode>): Likewise.
8662 (tablejump_<mode>): Likewise.
8663 (<optab>_internal): Likewise.
8664 (sibcall_internal): Likewise.
8665 (sibcall_value_internal): Likewise.
8666 (prefetch): Use constraint ZD.
8667 * config/mips/mips.opt (minterlink-compressed): New option.
8668 (minterlink-mips16): Now an alias for minterlink-compressed.
8669 (mmicromips): New option.
8670 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8671 (compare_and_swap_12): Likewise.
8672 (sync_add<mode>): Likewise.
8673 (sync_<optab>_12): Likewise.
8674 (sync_old_<optab>_12): Likewise.
8675 (sync_new_<optab>_12): Likewise.
8676 (sync_nand_12): Likewise.
8677 (sync_old_nand_12): Likewise.
8678 (sync_new_nand_12): Likewise.
8679 (sync_sub<mode>): Likewise.
8680 (sync_old_add<mode>): Likewise.
8681 (sync_old_sub<mode>): Likewise.
8682 (sync_new_add<mode>): Likewise.
8683 (sync_new_sub<mode>): Likewise.
8684 (sync_<optab><mode>): Likewise.
8685 (sync_old_<optab><mode>): Likewise.
8686 (sync_new_<optab><mode>): Likewise.
8687 (sync_nand<mode>): Likewise.
8688 (sync_old_nand<mode>): Likewise.
8689 (sync_new_nand<mode>): Likewise.
8690 (sync_lock_test_and_set<mode>): Likewise.
8691 (test_and_set_12): Likewise.
8692 (atomic_compare_and_swap<mode>): Likewise.
8693 (atomic_exchange<mode>_llsc): Likewise.
8694 (atomic_fetch_add<mode>_llsc): Likewise.
8695 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8696 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8697 (umips_save_restore_pattern_p): Likewise.
8698 (umips_load_store_pair_p): Likewise.
8699 (umips_output_load_store_pair): Likewise.
8700 (umips_movep_target_p): Likewise.
8701 (umips_12bit_offset_address_p): Likewise.
8702 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8703 (mips_base_mips16): Rename this...
8704 (mips_base_compression_flags): ...to this. Update all uses.
8705 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8706 (mips_mips16_decl_p): Delete.
8707 (mips_nomips16_decl_p): Delete.
3fdb53c1 8708 (mips_get_compress_on_flags): New function.
6941b508
CM
8709 (mips_get_compress_off_flags): New function.
8710 (mips_get_compress_mode): New function.
8711 (mips_get_compress_on_name): New function.
8712 (mips_get_compress_off_name): New function.
8713 (mips_insert_attributes): Support multiple compression types.
8714 (mips_merge_decl_attributes): Likewise.
8715 (umips_12bit_offset_address_p): New function.
8716 (mips_start_function_definition): Emit .set micromips directive.
8717 (mips_call_may_need_jalx_p): New function.
8718 (mips_function_ok_for_sibcall): Add microMIPS support.
8719 (mips_print_operand_punctuation): Support short delay slots and
8720 compact jumps.
8721 (umips_swm_mask, umips_swm_encoding): New.
8722 (umips_build_save_restore): New function.
8723 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8724 (was_mips16_p): Remove.
8725 (old_compression_mode): New.
8726 (mips_set_compression_mode): New function.
8727 (mips_set_current_function): Add microMIPS support.
8728 (mips_option_override): Likewise.
8729 (umips_save_restore_pattern_p): New function.
8730 (umips_output_save_restore): New function.
8731 (umips_load_store_pair_p_1): New function.
8732 (umips_load_store_pair_p): New function.
8733 (umips_output_load_store_pair_1): New function.
8734 (umips_output_load_store_pair): New function.
8735 (umips_movep_target_p) New function.
8736 (mips_prepare_pch_save): Add microMIPS support.
8737 * config/mips/mips.h (TARGET_COMPRESSION): New.
8738 (TARGET_CPU_CPP_BUILTINS): Update macro
8739 to use new compression flags and to support microMIPS.
8740 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8741 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8742 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8743 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8744 (ASM_SPEC): Support mmicromips and mno-micromips.
8745 (M16STORE_REG_P): New macro.
8746 (MIPS_CALL): Support TARGET_MICROMIPS.
8747 (MICROMIPS_J): New macro.
8748 (mips_base_mips16): Rename this...
8749 (mips_base_compression_flags): ...to this.
8750 (UMIPS_12BIT_OFFSET_P): New macro.
8751 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8752 (MULTILIB_DIRNAMES): Likewise.
8753
cdebbc6d
JJ
87542013-02-24 Jakub Jelinek <jakub@redhat.com>
8755
8756 PR target/52555
8757 * target-globals.c (save_target_globals): For init_reg_sets and
8758 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8759
18c63565
JG
87602013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8761
8762 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8763 * config/aarch64/t-aarch64
8764 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8765
2194f7a2
VM
87662013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8767
8768 PR inline-asm/56148
8769 * lra-constraints.c (process_alt_operands): Reload operand
8770 conflicting with earlier clobber only if no more other conflicting
8771 operands.
8772
7d613735
JJ
87732013-02-22 Jakub Jelinek <jakub@redhat.com>
8774
8775 PR sanitizer/56393
8776 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8777 if not linking a shared library.
8778
ac8d93a7
SL
87792013-02-22 Seth LaForge <sethml@google.com>
8780
8781 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8782
e0237780
GY
87832013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8784
3fdb53c1
TB
8785 * config/arm/arm.md (split for extendsidi): Update condition.
8786 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8787 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8788 (qhs_zextenddi_cstr): Likewise.
e0237780 8789
d7fde18c
JJ
87902013-02-21 Jakub Jelinek <jakub@redhat.com>
8791
be63b77d
JJ
8792 PR middle-end/56420
8793 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8794 avoid signed wrapping.
8795 (expand_mult): Handle properly multiplication by
8796 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8797 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8798 in the compiler if coeff is HOST_WIDE_INT_MIN.
8799 (expand_divmod): Don't make ext_op1 static, change it's type to
8800 uhwi. Avoid undefined behavior in -INTVAL (op1).
8801
d7fde18c
JJ
8802 PR rtl-optimization/50339
8803 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8804 field.
8805 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8806 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8807 into splitting_ashiftrt field.
8808 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8809 ASHIFTRT.
8810 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8811 choices.
8812
6aad4455
AH
88132013-02-20 Aldy Hernandez <aldyh@redhat.com>
8814
8815 PR middle-end/56108
8816 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8817 are sure to go irrevocable.
8818
38fe784d
HPN
88192013-02-21 Hans-Peter Nilsson <hp@axis.com>
8820
8821 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8822 scalars are valid operands.
8823
0fd44da3
MJ
88242013-02-21 Martin Jambor <mjambor@suse.cz>
8825
8826 PR tree-optimization/56310
8827 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8828 only matching indices and non-negative final offsets.
8829 (intersect_aggregates_with_edge): Pass src_idx to
8830 agg_replacements_to_vector. Pass src_idx insstead of index to
8831 intersect_with_agg_replacements.
8832
7a92038b
MJ
88332013-02-21 Martin Jambor <mjambor@suse.cz>
8834
8835 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8836 instead of hard-wired defaults.
8837
c0da9c37
MR
88382013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8839
8840 * doc/invoke.texi (MIPS Options): Update documentation of the
8841 floating-point multiply-accumulate instruction restrictions.
8842
d247ea0c 88432013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
8844
8845 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8846 asan_shadow_offset on x86_64 linux.
8847
22deefcb
RB
88482013-02-21 Richard Biener <rguenther@suse.de>
8849
8850 PR tree-optimization/56415
8851 Revert
8852 2013-02-11 Richard Biener <rguenther@suse.de>
8853
8854 PR tree-optimization/56273
8855 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8856 first VRP run.
8857
7bcc6e75
JJ
88582013-02-21 Jakub Jelinek <jakub@redhat.com>
8859
a0ad148f
JJ
8860 PR bootstrap/56258
8861 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8862 instead of @itemx.
8863
7bcc6e75
JJ
8864 PR inline-asm/56405
8865 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8866 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8867
a0a7b611
JH
88682013-02-20 Jan Hubicka <jh@suse.cz>
8869
8870 PR tree-optimization/56265
88b97037
UB
8871 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8872 when target is referenced for first time.
a0a7b611 8873
c0e50f72
RB
88742013-02-20 Richard Biener <rguenther@suse.de>
8875
8876 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8877 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8878 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8879 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8880 not return anything.
8881 (rename_ssa_copies): Do not remove unused locals.
8882 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 8883 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
8884 * passes.c (execute_function_todo): Do not schedule unused locals
8885 removal if cleanup_tree_cfg did something.
8886 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8887 about the number of removed locals.
8888
a52ca739
RB
88892013-02-20 Richard Biener <rguenther@suse.de>
8890
8891 PR tree-optimization/56398
88b97037 8892 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 8893
ec9c9d1b
MJ
88942013-02-20 Martin Jambor <mjambor@suse.cz>
8895
8896 PR tree-optimization/55334
8897 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8898 restricted pointers to arrays.
8899
e91c8ed6 89002013-02-20 Richard Biener <rguenther@suse.de>
88b97037 8901 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
8902
8903 PR tree-optimization/56396
8904 * tree-ssa-ccp.c (n_const_val): New static variable.
8905 (get_value): Return NULL for SSA names we don't have a lattice
8906 entry for.
8907 (ccp_initialize): Initialize n_const_val.
8908 * tree-ssa-copy.c (n_copy_of): New static variable.
8909 (init_copy_prop): Initialize n_copy_of.
8910 (get_value): Return NULL_TREE for SSA names we don't have a
8911 lattice entry for.
8912
3d916479
MJ
89132013-02-20 Martin Jambor <mjambor@suse.cz>
8914
8915 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8916
71a86758
RB
89172013-02-20 Richard Biener <rguenther@suse.de>
8918
8919 * genpreds.c (write_lookup_constraint): Do not compare first
8920 letter of the constraint again.
8921
79836a12
RB
89222013-02-20 Richard Biener <rguenther@suse.de>
8923
8924 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8925 and ceil_log2.
8926 (get_use_iv_cost): Terminate hashtable walk when coming across
8927 an empty entry.
8928
bbe4fb2c
IZ
89292013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8930
8931 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8932 reassociation for avx2 targets.
8933
a72d8780 89342012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 8935
c77f83d5
EI
8936 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8937 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 8938 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
8939 version and TARGET_PATTERN_COMPARE check
8940 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 8941
a72d8780 89422012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 8943
a72d8780 8944 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
8945 function before branching.
8946
242387fa
AB
89472012-02-19 Andrey Belevantsev <abel@ispras.ru>
8948
8949 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8950 DUMP_INSN_RTX_UID.
8951 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8952
b4979ab9
AB
89532012-02-19 Andrey Belevantsev <abel@ispras.ru>
8954
8955 PR middle-end/55889
b4979ab9
AB
8956 * sel-sched.c: Include ira.h.
8957 (implicit_clobber_conflict_p): New function.
8958 (moveup_expr): Use it.
88b97037 8959 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 8960
24d63016
RB
89612013-02-19 Richard Biener <rguenther@suse.de>
8962
8963 PR tree-optimization/56384
8964 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8965 (vn_hash_type): Split out from ...
8966 (vn_hash_constant_with_type): ... here.
8967 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8968 (vn_phi_eq): Compare types from vn_phi_s structure.
8969 (vn_phi_lookup): Populate vn_phi_s type.
8970 (vn_phi_insert): Likewise.
8971
a475fd3d
JJ
89722013-02-19 Jakub Jelinek <jakub@redhat.com>
8973
47cc28f5
JJ
8974 PR tree-optimization/56350
8975 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8976 if haven't found reduction or nested cycle operand, rather than
8977 asserting we must find it.
8978
a475fd3d
JJ
8979 PR tree-optimization/56381
8980 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8981 to fold_build3.
8982
89832013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8984 Jakub Jelinek <jakub@redhat.com>
8985
8986 PR target/52555
8987 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8988 (swap_optab_enable): Same.
8989 (init_all_optabs): Use argument instead of global.
88b97037 8990 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
8991 * expr.h (init_all_optabs): Add argument to prototype.
8992 (TREE_OPTIMIZATION_OPTABS): New.
8993 (save_optabs_if_changed): Protoize.
8994 * optabs.h: Declare this_fn_optabs.
8995 * optabs.c (save_optabs_if_changed): New.
8996 Declare this_fn_optabs.
8997 (init_optabs): Add argument to init_all_optabs() call.
8998 * function.c (invoke_set_current_function_hook): Handle per
8999 function optabs.
9000 * function.h (struct function): New field optabs.
9001 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9002 optimization_current_node has changed.
9003 * target-globals.h (save_target_globals_default_opts): Protoize.
9004 * target-globals.c (save_target_globals_default_opts): New.
9005
3f587ca3
JDA
90062013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9007
9008 PR target/56347
9009 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9010 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
9011
9012 PR target/56214
9013 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
9014 and HImode, require all displacements to be an integer multiple of
9015 their mode size.
ceaca33e
JDA
9016 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9017 only allow QImode and HImode when reload is in progress and strict is
9018 true. Likewise for symbolic addresses. Use base14_operand to check
9019 displacements in REG+BASE addresses.
9020
fe0b4796
RB
90212013-02-18 Richard Biener <rguenther@suse.de>
9022
9023 PR tree-optimization/56366
9024 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9025 handle sign-conversion of outer-loop initial induction value.
9026
6aaf596b
RB
90272013-02-18 Richard Biener <rguenther@suse.de>
9028
73db8ff1 9029 PR middle-end/56349
6aaf596b
RB
9030 * cfghooks.c (merge_blocks): If we merge a latch into another
9031 block adjust references to it.
9032 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9033 (verify_loop_structure): Verify that a recorded latch is in fact
9034 a latch.
9035
5e97dfb6
RB
90362013-02-18 Richard Biener <rguenther@suse.de>
9037
9038 PR tree-optimization/56321
9039 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9040 order SSA name release and virtual operand unlinking.
9041
825527e8
EI
90422013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9043
9044 * config/microblaze/microblaze.md (save_stack_block): Define.
9045 (restore_stack_block): Likewise.
9046
debd11d9
EI
90472013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9048
9049 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9050 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9051 * config/microblaze/microblaze.c (microblaze_option_override):
9052 Bail out early for PIC modes when target does not support PIC.
9053
8ec77be0
EI
90542013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9055
88b97037 9056 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
9057 Replace with a microblaze version.
9058 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 9059 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
9060 microblaze.
9061
b41288b3
JJ
90622013-02-16 Jakub Jelinek <jakub@redhat.com>
9063 Dodji Seketeli <dodji@redhat.com>
9064
9065 PR asan/56330
88b97037 9066 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
9067 (instrument_mem_region_access): Do not forget to always put
9068 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9069 0) statement, even for cases where either 'base' or 'base + len'
9070 are not instrumented -- because they have been previously
9071 instrumented. Simplify the logic by putting all the statements
9072 instrument 'base + len' inside a sequence, and then insert that
9073 sequence right before the current insertion point. Then, to
9074 instrument 'base + len', just get an iterator on that statement.
9075 And do not forget to update the pointer to iterator the function
9076 received as argument.
9077
47918951
VM
90782013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9079
9080 PR rtl-optimization/56348
9081 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9082
3fb7c699
SB
90832013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9084
9085 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9086 (clean_graph_dump_file): Pass base to start_graph_dump.
9087
576fe41a
RH
90882013-02-14 Richard Henderson <rth@redhat.com>
9089
9090 PR target/55941
9091 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9092
bb3accfa
SB
90932013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9094
9095 * collect2-aix.h: Define F_LOADONLY.
9096
03143140
RB
90972013-02-14 Richard Biener <rguenther@suse.de>
9098
9099 PR lto/50494
9100 * varasm.c (output_constant_def_1): Get the decl representing
9101 the constant as argument.
9102 (output_constant_def): Wrap output_constant_def_1.
9103 (make_decl_rtl): Use output_constant_def_1 with the decl
9104 representing the constant.
9105 (build_constant_desc): Optionally re-use a decl already
9106 representing the constant.
9107 (tree_output_constant_def): Adjust.
9108
8fb06726
DS
91092013-02-14 Dodji Seketeli <dodji@redhat.com>
9110
9111 Fix an asan crash
9112 * asan.c (instrument_builtin_call): Really put the length of the
9113 second source argument into src1_len.
9114
c4bfe8bf
JJ
91152013-02-13 Jakub Jelinek <jakub@redhat.com>
9116
9117 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9118 argument. If it is false, don't create edge from then_bb to
9119 fallthru_bb.
9120 (insert_if_then_before_iter): Pass true to it.
9121 (build_check_stmt): Pass false to it.
9122 (transform_statements): Flush hash table only on extended basic
9123 block boundaries, rather than at the beginning of every bb.
9124 Don't flush hash table on nonfreeing_call_p calls.
9125 * tree-flow.h (nonfreeing_call_p): New prototype.
9126 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9127
7afe2801
DM
91282013-02-13 David S. Miller <davem@davemloft.net>
9129
9130 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9131
70cc3288
VM
91322013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9133
9134 PR target/56184
9135 * ira.c (max_regno_before_ira): Move from ...
9136 (ira): ... here.
9137 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9138 vec_safe_length.
9139
6422242b
JJ
91402013-02-13 Jakub Jelinek <jakub@redhat.com>
9141
9142 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9143
976a81ee
RB
91442013-02-13 Richard Biener <rguenther@suse.de>
9145
9146 PR lto/56295
9147 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9148 globals in MEM_REFs.
9149
c1874a87
RB
91502013-02-13 Richard Biener <rguenther@suse.de>
9151
9152 * loop-init.c (loop_optimizer_init): Clear loop state when
9153 re-initializing preserved loops.
9154 * loop-unswitch.c (unswitch_single_loop): Return whether
9155 we unswitched the loop. Do not verify loop state here.
88b97037 9156 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 9157
b4ab7d34
KS
91582013-02-13 Kostya Serebryany <kcc@google.com>
9159
88b97037
UB
9160 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9161 on x86_64 linux.
b4ab7d34
KS
9162 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9163
bdcbe80c
DS
91642013-02-12 Dodji Seketeli <dodji@redhat.com>
9165
9166 Avoid instrumenting duplicated memory access in the same basic block
9167 * Makefile.in (asan.o): Add new dependency on hash-table.h
9168 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9169 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9170 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9171 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9172 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9173 (get_mem_ref_of_assignment): New functions.
9174 (get_mem_refs_of_builtin_call): Extract from
9175 instrument_builtin_call and tweak a little bit to make it fit with
9176 the new signature.
9177 (instrument_builtin_call): Use the new
9178 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9179 of is_gimple_builtin_call.
9180 (instrument_derefs, instrument_mem_region_access): Insert the
9181 instrumented memory reference into the hash table.
9182 (maybe_instrument_assignment): Renamed instrument_assignment into
9183 this, and change it to advance the iterator when instrumentation
9184 actually happened and return true in that case. This makes it
9185 homogeneous with maybe_instrument_assignment, and thus give a
9186 chance to callers to be more 'regular'.
9187 (transform_statements): Clear the memory reference hash table
9188 whenever we enter a new BB, when we cross a function call, or when
9189 we are done transforming statements. Use
9190 maybe_instrument_assignment instead of instrumentation. No more
9191 need to special case maybe_instrument_assignment and advance the
9192 iterator after calling it; it's now handled just like
9193 maybe_instrument_call. Update comment.
9194
4861a1f7
RB
91952013-02-13 Richard Biener <rguenther@suse.de>
9196
9197 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9198 Fix loop discovery code.
9199
1c86bd80
VM
92002013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9201
9202 PR inline-asm/56148
9203 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 9204 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
9205 the operand is not reloaded. Prefer to reload conflicting operand
9206 if earlyclobber and matching operands are the same.
9207
7cbda518
RB
92082013-02-12 Richard Biener <rguenther@suse.de>
9209
9210 PR lto/56297
9211 * lto-streamer-out.c (write_symbol): Do not output symbols
9212 for hard register variables.
9213
e68a4ef6
GJL
92142013-02-12 Georg-Johann Lay <avr@gjlay.de>
9215
9216 PR target/54222
9217 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9218 (umulsidi3_insn, mulsidi3_insn): New insns.
9219
a72d8780 92202013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
9221
9222 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9223 (struct tune_params): Add vec_costs field.
9224 * config/arm/arm.c (arm_builtin_vectorization_cost)
9225 (arm_add_stmt_cost): New functions.
9226 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9227 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9228 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9229 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9230 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9231 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9232 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9233
43320568
RB
92342013-02-12 Richard Biener <rguenther@suse.de>
9235
9236 PR lto/56295
9237 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9238 decls again if possible.
9239
a011aa39
RB
92402013-02-12 Richard Biener <rguenther@suse.de>
9241
9242 PR middle-end/56288
9243 * tree-ssa.c (verify_ssa_name): Fix check, move
9244 SSA_NAME_IN_FREE_LIST check up.
9245
6da26889
JJ
92462013-02-12 Jakub Jelinek <jakub@redhat.com>
9247 Steven Bosscher <steven@gcc.gnu.org>
9248
9249 PR rtl-optimization/56151
9250 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9251 equal to op0 or op1, and last_insn pattern is CODE operation
9252 with MEM dest and one of the operands matches that MEM.
9253
f80e0faf
ST
92542013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9255
9256 * doc/extend.texi: Document Function Multiversioning and "default"
9257 parameter string to target attribute.
9258 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9259 target attribute parameter is "default".
9260 (ix86_compare_version_priority): Remove checks for target attribute.
9261 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9262 Remove check for target attribute equal to NULL. Add assert.
9263 (ix86_generate_version_dispatcher_body): Change error to sorry.
9264
6c59ffd1
IS
92652013-02-11 Iain Sandoe <iain@codesourcery.com>
9266 Jack Howarth <howarth@bromo.med.uc.edu>
9267 Patrick Marlier <patrick.marlier@gmail.com>
9268
9269 PR libitm/55693
9270 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9271 define ENDFILE_SPEC as TM_DESTRUCTOR.
9272 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9273
a72d8780 92742013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
9275 Jack Howarth <howarth@bromo.med.uc.edu>
9276 Jakub Jelinek <jakub@redhat.com>
9277
9278 PR sanitizer/55617
9279 * config/darwin.c (cdtor_record): Rename ctor_record.
9280 (sort_cdtor_records): Rename sort_ctor_records.
9281 (finalize_dtors): New routine to sort destructors by
9282 priority before use in assemble_integer.
9283 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9284
b63fe007
UB
92852013-02-11 Uros Bizjak <ubizjak@gmail.com>
9286
9287 PR rtl-optimization/56275
9288 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9289 offset is non-negative and less than cmode size before
9290 calling simplify_subreg.
9291
8e89b5b5
RB
92922013-02-11 Richard Biener <rguenther@suse.de>
9293
9294 PR tree-optimization/56264
9295 * cfgloop.h (fix_loop_structure): Adjust prototype.
9296 * loop-init.c (fix_loop_structure): Return the number of
9297 newly discovered loops.
9298 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9299 are discovered, do a full loop-closed SSA rewrite.
9300
b4a4b56d
RB
93012013-02-11 Richard Biener <rguenther@suse.de>
9302
9303 PR tree-optimization/56273
9304 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9305 first VRP run.
9306 (check_array_ref): Fix missing newline in dumps.
9307 (search_for_addr_array): Likewise.
9308
0c885229
DE
93092013-02-09 David Edelsohn <dje.gcc@gmail.com>
9310
9311 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9312
59ac9a55
JJ
93132013-02-09 Jakub Jelinek <jakub@redhat.com>
9314
9315 PR target/56256
9316 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9317
25bb0bb5
VM
93182013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9319
9320 PR rtl-optimization/56246
0c885229 9321 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
9322 reload pseudo.
9323 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9324 constraints are satisfied.
9325
a698cc03
JL
93262013-02-08 Jeff Law <law@redhat.com>
9327
9328 PR debug/53948
9329 * emit-rtl.c (reg_is_parm_p): New function.
9330 * regs.h (reg_is_parm_p): New prototype.
9331 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9332 callee-clobbered registers.
9333
e1122ddd
MM
93342013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9335
9336 PR target/56043
9337 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9338 If there is no implicit builtin declaration, just return NULL.
9339
19c5f6e6
UB
93402013-02-08 Uros Bizjak <ubizjak@gmail.com>
9341
9342 * config/i386/sse.md (FMAMODEM): New mode iterator.
9343 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9344 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9345
2480f2ca 93462013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 9347
2480f2ca
UB
9348 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9349 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9350 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9351
93522013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9353
9354 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9355 (microblaze*-*-elf): Likewise.
9356 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9357 LINK_SPEC.
9358 * config/microblaze/microblaze-c.c: Add builtin defines for
9359 _LITTLE_ENDIAN and _BIG_ENDIAN.
9360 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9361 add to TARGET_DEFAULT flags.
76ef61fb 9362 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
9363 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9364 * config/microblaze/microblaze.md: Update extendsidi2 and
9365 movdi_internal instructions to use low-order / high-order reg
9366 print_operands.
9367 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9368 options and inversemask / mask of LITTLE_ENDIAN.
9369 * config/microblaze/t-microblaze: Expand multilib options to
9370 include mlittle-endian (le) and update exceptions patterns.
9371
600a5961
JJ
93722013-02-08 Jakub Jelinek <jakub@redhat.com>
9373
5df81313
JJ
9374 PR rtl-optimization/56195
9375 * lra-constraints.c (get_reload_reg): Don't reuse regs
9376 if they have smaller mode than requested, if they have
9377 wider mode than requested, try to return a SUBREG.
9378
600a5961
JJ
9379 PR tree-optimization/56250
9380 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9381 if type is unsigned and code isn't MULT_EXPR.
9382
ff544649
GJL
93832013-02-08 Georg-Johann Lay <avr@gjlay.de>
9384
9385 PR tree-optimization/56064
9386 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9387 bits according to mode.
9388 * fixed-value.h (fixed_from_double_int)
9389 (const_fixed_from_double_int): Adjust comments.
9390
e45cde98
RB
93912013-02-08 Richard Biener <rguenther@suse.de>
9392
9393 PR lto/56231
9394 * lto-streamer.h (struct data_in): Remove current_file, current_line
9395 and current_col members.
9396 * lto-streamer-out.c (lto_output_location): Stream changed bits
9397 en-block for efficiency.
9398 * lto-streamer-in.c (clear_line_info): Remove.
9399 (lto_input_location): Cache current file, line and column
9400 globally via local statics. Read changed bits en-block.
9401 (input_function): Do not call clear_line_info.
9402 (lto_read_body): Likewise.
9403 (lto_input_toplevel_asms): Likewise.
9404
c1ca73d8
MM
94052013-02-08 Michael Matz <matz@suse.de>
9406
9407 PR tree-optimization/52448
9408 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9409 (nt_call_phase): New static.
9410 (add_or_mark_expr): Only mark accesses with newer phase than any
9411 call seen.
9412 (nonfreeing_call_p): New.
9413 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9414 (nt_fini_block): Keep blocks marked as visited.
9415 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9416
57548aa2
RB
94172013-02-08 Richard Biener <rguenther@suse.de>
9418
9419 * ira.c (ira): Free broken dominator information.
9420
8e10366f
UB
94212013-02-08 Uros Bizjak <ubizjak@gmail.com>
9422
9423 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9424
f64fb0fa
MP
94252013-02-08 Marek Polacek <polacek@redhat.com>
9426
8e10366f 9427 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 9428
0375167b
RB
94292013-02-08 Richard Biener <rguenther@suse.de>
9430
9431 PR middle-end/56181
9432 * cfgloop.h (flow_loops_find): Adjust.
9433 (bb_loop_header_p): Declare.
9434 * cfgloop.c (bb_loop_header_p): New function split out from ...
9435 (flow_loops_find): ... here. Adjust function signature,
9436 support incremental loop structure update.
9437 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9438 * cfgloopmanip.c (fix_loop_structure): Move ...
9439 * loop-init.c (fix_loop_structure): ... here.
9440 (apply_loop_flags): Split out from ...
9441 (loop_optimizer_init): ... here.
9442 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9443 in incremental mode, only remove dead loops here.
9444
85d768f3
GJL
94452013-02-08 Georg-Johann Lay <avr@gjlay.de>
9446
9447 PR target/54222
9448 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9449 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9450 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9451 (*round<mode>3.libgcc): New insns for fixed-modes.
9452 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9453 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9454 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9455 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9456 implementations. Define to __builtin_avr_absFX,
9457 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9458 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9459 __builtin_avr_countlsFX, respectively.
9460 * config/avr/avr-c.c (target.h): Include it.
9461 (enum avr_builtin_id): New enum.
9462 (avr_resolve_overloaded_builtin): New static function.
9463 (avr_register_target_pragmas): Use it to set
9464 targetm.resolve_overloaded_builtin.
9465 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9466 tree nodes used by DEF_BUILTIN.
9467 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9468 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9469 <AVR_BUILTIN_xxBITS>: Same.
9470
661bc682
RB
94712013-02-08 Richard Biener <rguenther@suse.de>
9472
9473 * cfgloop.c (verify_loop_structure): Properly handle
9474 a loop exiting to another loop header.
9475 * ira-int.h (ira_loops): Remove.
9476 * ira.c (ira_loops): Remove.
9477 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9478 (do_reload): Use loop_optimizer_finalize.
9479 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9480 number_of_loops to access the loop tree.
9481 (more_one_region_p): Likewise.
9482 (finish_loop_tree_nodes): Likewise.
9483 (rebuild_regno_allocno_maps): Likewise.
9484 (mark_loops_for_removal): Likewise.
9485 (mark_all_loops_for_removal): Likewise.
9486 (remove_unnecessary_regions): Likewise.
9487 (ira_build): Likewise.
9488 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9489
0d5049b2
RB
94902013-02-08 Richard Biener <rguenther@suse.de>
9491
9492 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9493 * ipa-pure-const.c (analyze_function): Avoid calling
9494 mark_irreducible_loops twice.
8e10366f 9495 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 9496
499f32e8
DM
94972013-02-07 David S. Miller <davem@davemloft.net>
9498
9499 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9500 on 'reg'.
9501 * var-tracking.c (vt_add_function_parameter): Test the presence of
9502 HAVE_window_save properly and do not remap argument registers when
9503 we have a leaf function.
9504
6edc3e32
UB
95052013-02-07 Uros Bizjak <ubizjak@gmail.com>
9506
9507 PR bootstrap/56227
9508 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9509 instead of "ll".
9510 * config/i386/i386.c (ix86_print_operand): Ditto.
9511
5306401f
VM
95122013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9513
6edc3e32 9514 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 9515
027ece11
VM
95162013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9517
9518 PR rtl-optimization/56225
9519 * lra-constraints.c (process_alt_operands): Check that reload hard
9520 reg can hold value for strict_low_part.
9521
f980dfdb
JJ
95222013-02-07 Jakub Jelinek <jakub@redhat.com>
9523
9524 PR debug/56154
9525 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9526 dwarf2out_end_function.
9527 (in_first_function_p, maybe_at_text_label_p,
9528 first_loclabel_num_not_at_text_label): New variables.
9529 (dwarf2out_var_location): In the first function find out
6edc3e32 9530 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
9531 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9532 functions.
9533
73dd3123
EB
95342013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9535
9536 PR rtl-optimization/56178
9537 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9538 SUBREG of a register. Tidy up related block of code.
9539 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9540 note if the source is a register or a SUBREG of a register.
9541
e3936f47
JJ
95422013-02-07 Jakub Jelinek <jakub@redhat.com>
9543
9544 PR target/56228
9545 * config/rs6000/rs6000.md (ptrm): New mode attr.
9546 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9547 call_value_indirect_aix<pttrsize>,
9548 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9549 m in constraints.
9550
d96d674b
MH
95512013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9552
9553 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9554 if -bnortl. Convert to strcmp and strncmp.
9555
921f2dee
AM
95562013-02-07 Alan Modra <amodra@gmail.com>
9557
9558 PR target/54009
9559 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9560 addresses won't wrap when offsetting.
9561 (rs6000_secondary_reload): Provide secondary reloads needed for
9562 wrapping LO_SUM addresses.
9563
d09c7dba
TS
95642013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9565
9566 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9567 MACH, just __MACH__.
9568
a44bbd48
RB
95692013-02-06 Richard Biener <rguenther@suse.de>
9570
9571 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9572 instead of calling fix_loop_structure.
9573
6d840d99
JJ
95742013-02-06 Jakub Jelinek <jakub@redhat.com>
9575
9576 PR middle-end/56217
9577 * omp-low.c (use_pointer_for_field): Return false if
9578 lower_send_shared_vars doesn't generate any copy-out code.
9579
0f33baa9
TV
95802013-02-06 Tom de Vries <tom@codesourcery.com>
9581
9582 PR rtl-optimization/56131
9583 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9584 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9585 of the label is NULL. Add comment.
9586
11f1e3ab
JJ
95872013-02-05 Jakub Jelinek <jakub@redhat.com>
9588
31502f9f
JJ
9589 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9590
a74db9bd
JJ
9591 PR sanitizer/55374
9592 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9593 (STATIC_LIBTSAN_LIBS): Likewise.
9594 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9595 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9596 is defined, don't add anything else beyond that.
9597 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9598 (LINK_COMMAND_SPEC): Use them.
9599
11f1e3ab
JJ
9600 PR tree-optimization/56205
9601 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9602 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9603 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9604
14ac6aa2
RB
96052013-02-05 Richard Biener <rguenther@suse.de>
9606
9607 PR tree-optimization/53342
9608 PR tree-optimization/53185
9609 * tree-vectorizer.h (vect_check_strided_load): Remove.
9610 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9611 not disallow peeling for vectorized strided loads.
9612 (vect_check_strided_load): Make static and simplify.
9613 (vect_analyze_data_refs): Adjust.
9614 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9615 correctly when vectorizing strided loads.
9616
6f22445a
RB
96172013-02-05 Richard Biener <rguenther@suse.de>
9618
9619 * doc/install.texi: Refer to ISL, not PPL.
9620
39f9719e
JH
96212013-02-05 Jan Hubicka <jh@suse.cz>
9622
ec4224ac
JH
9623 PR tree-optimization/55789
9624 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9625
96262013-02-05 Jan Hubicka <jh@suse.cz>
9627
9628 PR tree-optimization/55789
39f9719e
JH
9629 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9630 the dead call anyway.
9631
956d3b33
EB
96322013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9633
9634 PR sanitizer/55374
9635 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9636
96372013-02-04 Alexander Potapenko <glider@google.com>
9638 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9639 Jakub Jelinek <jakub@redhat.com>
9640
9641 PR sanitizer/55617
9642 * config/darwin.c (sort_ctor_records): Stabilized qsort
9643 on constructor priority by using original position.
9644 (finalize_ctors): New routine to sort constructors by
9645 priority before use in assemble_integer.
9646 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9647
7ac3af38
JJ
96482013-02-04 Jakub Jelinek <jakub@redhat.com>
9649
9650 PR libstdc++/54314
9651 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9652 about visibility on artificial decls.
9653 * config/sol2.c (solaris_assemble_visibility): Likewise.
9654
152689dc
KT
96552013-02-04 Kai Tietz <ktietz@redhat.com>
9656
9657 PR target/56186
9658 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9659 argument and improve checking of return-argument types for 16-byte
9660 modes.
9661 (ix86_function_value_1): Add additional valtype argument on call
9662 of function_value_64.
9663 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9664 handling infunction_value_64 function.
9665
2b5987b5
MGD
96662013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9667
7ac3af38 9668 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9669
14597080
RB
96702013-02-04 Richard Biener <rguenther@suse.de>
9671
9672 PR tree-optimization/56188
9673 * tree-ssa-structalias.c (label_visit): Consider case with
9674 initially non-empty points-to set.
9675 (perform_var_substitution): Dump node mapping and clean up.
9676
ed73881e
RG
96772013-02-04 Richard Guenther <rguenther@suse.de>
9678
9679 PR lto/56168
9680 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9681 node prevail as last resort.
9682 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9683 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9684
139a0707
RB
96852013-02-04 Richard Biener <rguenther@suse.de>
9686
9687 PR tree-optimization/56113
9688 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9689 Merge into ...
9690 (equiv_class_lookup_or_add): ... this.
9691 (label_visit): Adjust and fix error in previous patch.
9692 (perform_var_substitution): Adjust.
9693
50fe8924
OE
96942013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9695
9696 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9697 * config/sh/sh4-300.md: Likewise.
9698 * config/sh/sh4a.md: Likewise.
9699 * config/sh/constraints.md: Likewise.
9700 * config/sh/sh.md: Likewise.
9701 * config/sh/netbsd-elf.h: Likewise.
9702 * config/sh/predicates.md: Likewise.
9703 * config/sh/sh-protos.h: Likewise.
9704 * config/sh/ushmedia.h: Likewise.
9705 * config/sh/linux.h: Likewise.
9706 * config/sh/sh.c: Likewise.
9707 * config/sh/superh.h: Likewise.
9708 * config/sh/elf.h: Likewise.
9709 * config/sh/sh4.md: Likewise.
9710 * config/sh/sh.h: Likewise.
9711
1a04ac2b
JDA
97122013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9713
9714 * config/pa/constraints.md: Adjust unused letters. Change "T"
9715 constraint to match_test floating_point_store_memory_operand().
9716 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9717 (base14_operand): New.
9718 (floating_point_store_memory_operand): New.
9719 (integer_store_memory_operand): Revise to use base14_operand and
9720 reg_plus_base_memory_operand.
9721 (move_dest_operand): Allow symbolic_memory_operands.
9722 (symbolic_memory_operand): Check for LO_SOM.
9723 (symbolic_operand): Change default case to break.
9724 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9725 CONST_DOUBLE values to be reloaded by putting them into memory when
9726 the destination is a floating point register.
9727 (movdf): Remove code to handle CONST_DOUBLE.
9728 (movsf): Likewise.
9729 (reload_indf_r1): New.
9730 (reload_insf_r1): New.
9731 Consistently use "Q" and "T" constraints with integer and floating
9732 point move instructions, respectively.
9733 (movdi): Remove FAIL.
9734 Change predicate for source operand unamed DImode move from
9735 general_operand to move_src_operand.
9736 (umulsidi3): Change predicate for destination operand to
9737 register_operand.
9738 Likewise for similar unamed patterns.
9739 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9740 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9741 (hppa_legitimize_address): Simplify mask calculation.
9742 (pa_emit_move_sequence): Revised handling of secondary reloads from
9743 REG+D addresses for floating point loads and stores. Directly handle
9744 loading CONST0_RTX (mode) to a floating point register.
9745 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9746 to floating point registers. Don't restrict secondary reloads to
9747 floating point registers to integer modes. Revise some comments and
9748 cleanup some code.
9749 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9750 (pa_legitimate_address_p): New.
9751 (pa_legitimize_reload_address): New.
9752 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9753 (STRICT_REG_OK_FOR_BASE_P): New.
9754 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9755 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9756
3bf65591
DE
97572013-02-03 David Edelsohn <dje.gcc@gmail.com>
9758 Andrew Dixie <andrewd@gentrack.com>
9759
9760 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9761 flag set.
9762
c0a8a3e6
RS
97632013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9764
9765 * expmed.c (extract_bit_field_1): Pass the full width of the
9766 structure to get_best_reg_extraction_insn.
9767
99113dff
DE
97682013-02-01 David Edelsohn <dje.gcc@gmail.com>
9769
9770 PR target/54601
9771 * configure.ac (use_cxa_atexit): Add AIX.
9772 * configure: Regenerate.
9773
9774 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9775
ddd84654
JJ
97762013-02-01 Jakub Jelinek <jakub@redhat.com>
9777
9778 PR debug/54793
9779 * final.c (need_profile_function): New variable.
9780 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9781 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9782 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9783 notes, targetm.asm_out.function_prologue doesn't emit anything,
9784 HAVE_prologue and profiler should be emitted before prologue,
9785 set need_profile_function instead of emitting it.
9786 (final_scan_insn): If need_profile_function, emit
9787 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9788 NOTE_INSN_FUNCTION_BEG note.
9789
97902013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9791
9792 * config/rs6000/rs6000.md (smulditi3): New.
9793 (umulditi3): New.
9794
ff2a9d88
RH
9795 * config/alpha/alpha.md (umulditi3): New.
9796
14d52b90
DE
97972013-02-01 David Edelsohn <dje.gcc@gmail.com>
9798
9799 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9800 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9801
8c7ca45c
RB
98022013-02-01 Richard Biener <rguenther@suse.de>
9803
9804 PR tree-optimization/56113
9805 * tree-ssa-structalias.c (label_visit): Reduce work for
9806 single-predecessor nodes.
9807
9f419393
EB
98082013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9809
9810 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9811 range isn't testing for zero.
9812
c5f4be84
SB
98132013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9814
9815 PR middle-end/56113
9816 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9817
dbdbd982
NC
98182013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9819 Nick Clifton <nickc@redhat.com>
9820
9821 * config/v850/constraints.md (Q): Define as a memory constraint.
9822 * config/v850/predicates.md (label_ref_operand): New predicate.
9823 (e3v5_shift_operand): New predicate.
9824 (ior_operator): New predicate.
9825 * config/v850/t-v850: Add e3v5 multilib.
9826 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9827 (v850_gen_movdi): Prototype.
9828 * config/v850/v850.c: Add support for e3v5 architecture.
9829 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9830 TARGET_V850E_UP.
9831 (construct_save_jarl): Add e3v5 long JARL support.
9832 (v850_adjust_insn_length): New function. Adjust length of call
9833 insns when using e3v5 instructions.
9834 (v850_gen_movdi): New function: Generate instructions to move a
9835 DImode value.
9836 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9837 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9838 (TARGET_USE_FPU): Enable for e3v5.
9839 (CONST_OK_FOR_W): New macro.
9840 (ADJUST_INSN_LENGTH): Define.
9841 * config/v850/v850.md (UNSPEC_LOOP): Define.
9842 (attr cpu): Add v850e3v5.
9843 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9844 (movdi): New pattern.
9845 (movdi_internal): New pattern.
9846 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9847 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9848 (cstoresf4): Likewise.
9849 (cstoredf4): Likewise.
9850 (insv): New pattern.
9851 (rotlso3_a): New pattern.
9852 (rotlsi3_b): New pattern
9853 (rotlsi3_v850e3v5): New pattern.
9854 (doloop_begin): New pattern.
9855 (fix_loop_counter): New pattern.
9856 (doloop_end): New pattern.
9857 (branch_normal): Add e3v5 long branch support.
9858 (branch_invert): Likewise.
9859 (branch_z_normal): Likewise.
9860 (branch_z_invert): Likewise.
9861 (branch_nz_normal): Likewise.
9862 (branch_nz_invert): Likewise.
9863 (call_internal_short): Add e3v5 register-indirect JARL support.
9864 (call_internal_long): Likewise.
9865 (call_value_internal_short): Likewise.
9866 (call_value_internal_long): Likewise.
9867 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9868 (mloop): New option.
9869 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 9870 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 9871
73861a41
PK
98722013-01-31 Paul Koning <ni1d@arrl.net>
9873
9874 PR debug/55059
9875 PR debug/54508
9876 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9877 children if parent is a class.
9878 (prune_unused_types_prune): Don't add DW_AT_declaration.
9879
e44978dc
RB
98802013-01-31 Richard Biener <rguenther@suse.de>
9881
9882 PR tree-optimization/56157
9883 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9884 match up operand with SLP child.
9885
90b10dec
JM
98862013-01-31 Jason Merrill <jason@redhat.com>
9887
04d2dadd 9888 PR debug/54410
90b10dec
JM
9889 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9890 parameters the first time.
9891 (gen_scheduled_generic_parms_dies): Check completeness here.
9892
6e616110
RB
98932013-01-31 Richard Biener <rguenther@suse.de>
9894
9895 PR middle-end/53073
9896 * common.opt (faggressive-loop-optimizations): New flag,
9897 enabled by default.
9898 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9899 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9900 infer_loop_bounds_from_undefined by it.
9901
636f59cf
RB
99022013-01-31 Richard Biener <rguenther@suse.de>
9903
9904 PR tree-optimization/56150
9905 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9906 visit virtual operands.
9907 (find_uses_to_rename_bb): Likewise.
9908
99092013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
9910
9911 PR tree-optimization/56150
9912 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9913 mixed store non-store stmts.
9914
32887460
JJ
99152013-01-30 Jakub Jelinek <jakub@redhat.com>
9916
e60e09a0
JJ
9917 PR sanitizer/55374
9918 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9919 LIBASAN_EARLY_SPEC is defined.
9920 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9921 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9922 before %o.
9923 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9924
32887460
JJ
9925 PR c++/55742
9926 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9927 invalid args instead of ICEing on it.
9928 (ix86_valid_target_attribute_tree): Return error_mark_node if
9929 ix86_valid_target_attribute_inner_p failed.
9930 (ix86_valid_target_attribute_p): Return false only if
9931 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9932 target("default") attribute.
9933 (sorted_attr_string): Change argument from const char * to tree,
9934 merge in all target attribute arguments rather than just one.
9935 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9936 instead of free. Avoid using strcat.
9937 (ix86_mangle_function_version_assembler_name): Mangle
9938 target("default") as if no target attribute is present. Adjust
9939 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9940 instead of xmalloc and XDELETEVEC instead of free.
9941 (ix86_function_versions): Don't return true if one of the decls
9942 doesn't have target attribute. If they don't and one of the decls
9943 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9944 sorted_attr_string caller. Use XDELETEVEC instead of free.
9945 (ix86_supports_function_versions): Remove.
9946 (make_name): Fix up formatting.
9947 (make_dispatcher_decl): Remove resolver_name and its initialization.
9948 Avoid leaking memory.
9949 (is_function_default_version): Return true if there is
9950 target("default") attribute rather than no target attribute at all.
9951 (make_resolver_func): Avoid leaking memory.
9952 (ix86_generate_version_dispatcher_body): Likewise.
9953 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9954 * target.def (supports_function_versions): Remove.
9955 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9956 * doc/tm.texi: Regenerated.
9957
73cca0cc
VM
99582013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9959
9960 PR rtl-optimization/56144
9961 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9962 for values with side effects.
9963
11452e7b
RB
99642013-01-30 Richard Biener <rguenther@suse.de>
9965
9966 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9967 (sparseset_pop): Likewise.
9968 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9969 to be able to use quick_push in the worker loop.
9970
01cb1ef5
MP
99712013-01-30 Marek Polacek <polacek@redhat.com>
9972
9973 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9974
e892936e
RB
99752013-01-30 Richard Biener <rguenther@suse.de>
9976
9977 PR lto/56147
6edc3e32 9978 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 9979
cc06c01d
GJL
99802013-01-30 Georg-Johann Lay <avr@gjlay.de>
9981
9982 PR tree-optimization/56064
9983 * fixed-value.c (fixed_from_double_int): New function.
9984 * fixed-value.h (fixed_from_double_int): New prototype.
9985 (const_fixed_from_double_int): New static inline function.
9986 * fold-const.c (native_interpret_fixed): New static function.
9987 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9988 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9989 (native_encode_fixed): New static function.
9990 (native_encode_expr) <FIXED_CST>: Use it.
9991 (native_interpret_int): Move double_int worker code to...
9992 * double-int.c (double_int::from_buffer): ...this new static method.
9993 * double-int.h (double_int::from_buffer): Prototype it.
9994
d394a308
RB
99952013-01-30 Richard Biener <rguenther@suse.de>
9996
9997 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9998 New pointer-map and obstack.
9999 (init_alias_vars): Allocate pointer-map and obstack.
10000 (delete_points_to_sets): Free them.
10001 (find_what_var_points_to): Cache result.
10002 (find_what_p_points_to): Adjust for changed interface of
10003 find_what_var_points_to.
10004 (compute_points_to_sets): Likewise.
10005 (ipa_pta_execute): Likewise.
10006
20804d96
RO
100072013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10008
10009 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10010 * configure: Regenerate.
10011 * config.in: Regenerate.
10012 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10013 #nobits/#progbits if supported.
10014
a7ad88a2
OE
100152013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10016
10017 PR target/56121
10018 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10019 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10020 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10021
7af79f92
GY
100222013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10023
91bfca59
OE
10024 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10025 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 10026
753bcf7b
GY
100272013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10028
91bfca59
OE
10029 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10030 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 10031
8cbc2ea8
GY
100322013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10033
91bfca59
OE
10034 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10035 declaration.
10036 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10037 * config/arm/cortex-a7.md: New bypasses using
10038 arm_mac_accumulator_is_result.
8cbc2ea8 10039
697a3325
GY
100402013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10041
91bfca59 10042 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 10043 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
10044 (cortex_a7_fpfmad): New reservation.
10045 (cortex_a7_fpmacs): Use ffmas and update required units.
10046 (cortex_a7_fpmuld): Update required units and latency.
10047 (cortex_a7_fpmacd): Likewise.
10048 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10049 (cortex_a7_neon). Likewise.
10050 (bypass) Update participating units.
697a3325 10051
29637783
GY
100522013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10053
91bfca59
OE
10054 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10055 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10056 from fmac to ffma.
10057 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10058 (vfp_fmul): Use ffmad.
10059 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10060 (cortex_r4_fmacd): Use ffmad.
10061 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10062 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10063 (cortex_a9_fmacd): Use ffmad.
10064 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10065 (cortex_a8_vfp_macd): Use ffmad.
10066 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10067 (cortex_a5_fpmacd): Use ffmad.
10068 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10069 (cortex_a15_vfp_macd): Use ffmad.
10070 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 10071
2ee8a2d5
JM
100722013-01-29 Jason Merrill <jason@redhat.com>
10073
10074 PR libstdc++/54314
10075 * varasm.c (default_assemble_visibility): Don't warn about
10076 visibility on artificial decls.
10077
78d087bc
RB
100782013-01-29 Richard Biener <rguenther@suse.de>
10079
10080 PR tree-optimization/56113
10081 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10082 the bitmap leader.
10083 (label_visit): Free duplicate bitmaps and record the leader instead.
10084 (perform_var_substitution): Adjust.
10085
83ba4d6f
RB
100862013-01-29 Richard Biener <rguenther@suse.de>
10087
10088 PR tree-optimization/55270
10089 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10090 the CFG, schedule loops for fixup.
10091
66dfe13f
NC
100922013-01-29 Nick Clifton <nickc@redhat.com>
10093
10094 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10095 SP_REG.
10096
5a579c3b
LE
100972013-01-28 Leif Ekblad <leif@rdos.net>
10098
10099 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10100 * config/i386/i386.h (TARGET_RDOS): New macro.
10101 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10102 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10103 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10104 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10105 DEFAULT_LARGE_SECTION_THRESHOLD.
10106 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10107 * config/i386/rdos.h: New file.
10108 * config/i386/rdos64.h: New file.
10109
51e44392
BS
101102013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10111
10112 PR other/54814
10113 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10114 TEST_HARD_REG_BIT.
10115
db1fb332
JJ
101162013-01-28 Jakub Jelinek <jakub@redhat.com>
10117
10118 PR rtl-optimization/56117
10119 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10120 call cselib_lookup_from_insn on the MEM before calling
10121 add_insn_mem_dependence.
10122
16917761
RB
101232013-01-28 Richard Biener <rguenther@suse.de>
10124
10125 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10126 to a stmt that didn't have one.
10127 (copy_phis_for_bb): Likewise for PHI arguments.
10128 (copy_debug_stmt): Likewise for debug stmts.
10129
b9fc0497
RB
101302013-01-28 Richard Biener <rguenther@suse.de>
10131
10132 PR tree-optimization/56034
6edc3e32 10133 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
10134 (partition_builtin_p): Adjust.
10135 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10136 it is the last partition.
10137 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10138 up the vertex for the definition.
10139 (classify_partition): Classify whether a partition is a
10140 PKIND_REDUCTION, thus has uses outside of the loop.
10141 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10142 Merge all PKIND_REDUCTION partitions into the last partition.
10143 (tree_loop_distribution): Seed partitions from reductions as well.
10144
aa710d25
JJ
101452013-01-28 Jakub Jelinek <jakub@redhat.com>
10146
0bfbca58
JJ
10147 PR tree-optimization/56125
10148 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10149 pow(x,c) into sqrt(x) * powi(x, n/2) or
10150 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10151 optimizing for size.
10152 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10153 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10154 integer.
10155
aa710d25
JJ
10156 PR tree-optimization/56094
10157 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10158 to UNKNOWN_LOCATION while gimplifying expr.
10159
77dc5297
UB
101602013-01-27 Uros Bizjak <ubizjak@gmail.com>
10161
10162 PR target/56114
10163 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10164 operand 0 in movabs insn template for -masm=intel asm alternative.
10165 (*movabs<mode>_2): Ditto for operand 1.
10166
0bfbca58 101672013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
10168
10169 PR target/54663
10170 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10171 of microblaze-c.o
10172
0bfbca58 101732013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
10174
10175 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10176 tm_file.
10177
0bfbca58 101782013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
10179
10180 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10181 Undef to avoid warning.
10182
478f60f9
MH
101832013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10184
10185 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10186 * configure: Regenerate.
10187
d7fa6ee2
JJ
101882013-01-25 Jakub Jelinek <jakub@redhat.com>
10189
10190 PR tree-optimization/56098
10191 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10192 for stmts with volatile ops.
10193 (cond_store_replacement): Don't optimize if assign has volatile ops.
10194 (cond_if_else_store_replacement_1): Don't optimize if either
10195 then_assign or else_assign have volatile ops.
10196 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10197 volatile ops.
10198
f8fe87bd
GJL
101992013-01-25 Georg-Johann Lay <avr@gjlay.de>
10200
10201 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10202
28398d0d
GJL
102032013-01-25 Georg-Johann Lay <avr@gjlay.de>
10204
10205 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10206 missing ':' in asm example.
10207
b7d7d917
TB
102082013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10209
10210 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10211 entries into lane and laneq entries.
77dc5297
UB
10212 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10213 Remove AdvSIMD scalar modes.
b7d7d917
TB
10214 (aarch64_sq<r>dmulh_laneq<mode>): New.
10215 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10216 modes.
10217 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10218 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10219 * config/aarch64/iterators.md (VCOND): New.
10220 (VCONQ): New.
10221
556f9906
GJL
102222013-01-25 Georg-Johann Lay <avr@gjlay.de>
10223
10224 PR target/54222
10225 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10226 Add NULL LIBNAME argument to existing definitions.
10227 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10228 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10229 * config/avr/avr.c (DEF_BUILTIN): Same.
10230 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10231 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10232 implementation is available (DECL_ASSEMBLER_NAME is set).
10233 (avr_fold_absfx): New static function.
10234 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10235 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10236 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10237 AVR_BUILTIN_ABSLLK.
10238 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10239 (abshk, absk, abslk, absllk): Provide as static inline functions.
10240
1f546bbb
MP
102412013-01-25 Marek Polacek <polacek@redhat.com>
10242
10243 PR tree-optimization/56035
10244 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10245
7e184bd7
UB
102462012-01-24 Uros Bizjak <ubizjak@gmail.com>
10247
10248 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10249 (*movtf_internal_rex64): Add (!o,C) alternative
10250 (*movxf_internal_rex64): Ditto.
10251 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10252
f5ba49ac
SM
102532013-01-24 Shenghou Ma <minux.ma@gmail.com>
10254
10255 * doc/invoke.texi: fix typo.
10256 * doc/objc.texi: fix typo.
10257
a6343728
RS
102582013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10259
10260 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10261 for the first two alternatives.
10262
cd030c07
DN
102632013-01-24 Diego Novillo <dnovillo@google.com>
10264
77dc5297 10265 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
10266 (ggc-zone.o): Remove.
10267 * configure.ac: Remove option --with-gc.
10268 * configure: Re-generate.
10269 * doc/install.texi: Remove documentation for --with-gc.
10270 * gengtype.c (write_enum_defn): Remove. Update all users.
10271 (write_Types_process_field): Remove generation of gt_e_* argument.
10272 (output_type_enum): Remove. Update all users.
10273 (write_enum_defn): Remove. Update all users.
10274 (enum alloc_zone): Remove. Update all users.
77dc5297 10275 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
10276 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10277 Update all callers.
10278 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 10279 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
10280 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10281 Update all users.
aaf1e810 10282 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
10283 (struct alloc_zone): Remove.
10284 (ggc_internal_alloc_zone_stat): Remove.
10285 (ggc_internal_cleared_alloc_zone_stat): Remove.
10286 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
10287 (ggc_pch_count_object): Remove last argument. Update all users.
10288 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
10289 (struct alloc_zone): Remove.
10290 * ggc-zone.c: Remove.
77dc5297 10291 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
10292 (struct alloc_zone): Remove.
10293 (ggc_alloc_typed_stat): Remove.
10294 (ggc_alloc_typed): Remove.
10295 (ggc_splay_alloc): Remove first argument.
10296 (rtl_zone): Remove. Update all users.
10297 (tree_zone): Remove. Update all users.
10298 (tree_id_zone): Remove. Update all users.
10299 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 10300 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 10301 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 10302 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 10303
a861ffa4
GJL
103042013-01-24 Georg-Johann Lay <avr@gjlay.de>
10305
10306 * config/avr/avr.c (avr_out_fract): Make register numbers that
10307 might be outside of source operand signed.
10308
593c0ddd
UB
103092013-01-24 Uros Bizjak <ubizjak@gmail.com>
10310
10311 * config/i386/constraints.md (Yf): New constraint.
10312 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10313 of f constraint to conditionaly disable x87 register preferences.
10314 (*movdf_internal): Ditto.
10315 (*movsf_internal): Ditto.
10316
e86c0101
SB
103172013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10318
10319 PR inline-asm/55934
10320 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10321 that have operands with impossible constraints.
10322 Add a FIXME for a speed-up opportunity.
10323 * lra-constraints.c (process_alt_operands): Verify that a class
10324 selected from constraints on asms is valid for the operand mode.
10325 (curr_insn_transform): Remove incorrect comment.
10326
f6fee35f
DE
103272013-01-23 David Edelsohn <dje.gcc@gmail.com>
10328
10329 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10330 TOC operand is a valid symbol ref in the constant pool.
10331
103322013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 10333
aaf1e810 10334 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 10335
dc62d7d1
GJL
103362013-01-23 Georg-Johann Lay <avr@gjlay.de>
10337
10338 PR target/54222
10339 * config/avr/stdfix.h: New file.
10340 * t-avr (stdfix-gcc.h): New rule to build it.
10341 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10342
2660d12d
KS
103432013-01-23 Kostya Serebryany <kcc@google.com>
10344
77dc5297
UB
10345 * config/darwin.h: remove dependency on
10346 CoreFoundation (asan on Mac OS).
2660d12d 10347
a70418fc
JJ
103482013-01-23 Jakub Jelinek <jakub@redhat.com>
10349
10350 PR target/49069
10351 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10352 instead of cmpdi_operand for first comparison operand.
10353 Don't assert that comparison operands aren't both constants.
10354
47876a2a
JW
103552013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10356
10357 * doc/install.texi (Downloading the Source): Update references to
10358 downloading separate components.
10359
103602013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
10361
10362 * doc/extend.texi (__int128): Improve grammar.
10363
47876a2a 103642013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
10365
10366 PR target/56028
10367 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10368 alternative to (o,r).
10369 (*movdi_internal_rex64): Remove (!o,n) alternative.
10370 (DImode immediate->memory splitter): Remove.
10371 (DImode immediate->memory peephole2): Remove.
10372 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10373 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10374 alternative to (!o,*r).
10375 (*movtf_internal_sse): New pattern.
10376 (*movxf_internal_rex64): New pattern.
10377 (*movxf_internal): Disable for TARGET_64BIT.
10378 (*movdf_internal_rex64): Remove (!o,F) alternative.
10379
3a984f10
JJ
103802013-01-22 Jakub Jelinek <jakub@redhat.com>
10381
502498d5
JJ
10382 PR middle-end/56074
10383 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10384 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10385 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10386 stmt locations where LOCATION_LOCUS of the stmt location is
10387 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10388
3a984f10
JJ
10389 PR target/55686
10390 * config/i386/i386.md (UNSPEC_STOS): New.
10391 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10392 *strsetqi_1): Add UNSPEC_STOS.
10393
fa817f7f
PC
103942013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10395
10396 PR c++/56067
10397 * doc/invoke.texi: Remove left over -Wsynth example.
10398
8f498c1b
JJ
103992013-01-21 Jakub Jelinek <jakub@redhat.com>
10400
10401 PR tree-optimization/56051
10402 * fold-const.c (fold_binary_loc): Don't fold
10403 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10404 a narrowing conversion, or widening conversion from signed
10405 to unsigned.
10406
47876a2a 104072013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
10408
10409 PR rtl-optimization/56023
10410 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10411 dependent on debug instruction.
10412
5b9db1bc
MJ
104132013-01-21 Martin Jambor <mjambor@suse.cz>
10414
10415 PR middle-end/56022
10416 * function.c (allocate_struct_function): Call
10417 invoke_set_current_function_hook earlier.
10418
e8bb7d68
JJ
104192013-01-21 Jakub Jelinek <jakub@redhat.com>
10420
10421 * reload1.c (init_reload): Only initialize reload_obstack
10422 during the first call.
10423
616a4e32
MP
104242013-01-21 Marek Polacek <polacek@redhat.com>
10425
10426 * cfgloop.c (verify_loop_structure): Fix up grammar.
10427
4401981b
YHH
104282013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10429
10430 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10431 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10432
8e87740b
RR
104332013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10434
10435 PR target/56058
10436 * config/arm/marvell-pj4.md: Update copyright year.
10437 Fix up use of alu to alu_reg and simple_alu_imm.
10438
47876a2a 104392013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
10440
10441 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10442
89d56d79
VM
104432013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10444
10445 PR target/55433
10446 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 10447 insn for secondary memory move when memory mode should be different.
89d56d79 10448
fe603553
JDA
104492013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10450
10451 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10452 atomic_storedi_1): New patterns.
10453
01284895
VK
104542013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10455
10456 btver2 pipeline descriptions.
10457 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10458 descriptions.
10459 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 10460 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
10461 type attributes.
10462 * config/i386/btver2.md: New file describing btver2 pipelines.
10463
5630e3e1
JL
104642013-01-19 Andrew Pinski <apinski@cavium.com>
10465
10466 PR tree-optimization/52631
10467 * tree-ssa-sccvn (visit_use): Before looking up the original
10468 statement, try looking up the simplified expression.
10469
650ae806
AG
104702013-01-19 Anthony Green <green@moxielogic.com>
10471
10472 * config/moxie/moxie.c (moxie_expand_prologue): Set
10473 current_function_static_stack_size.
10474
e300ec2d
JJ
104752013-01-18 Jakub Jelinek <jakub@redhat.com>
10476
10477 PR tree-optimization/56029
10478 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10479 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10480
a3d7af04
SS
104812013-01-18 Sharad Singhai <singhai@google.com>
10482
10483 PR tree-optimization/55995
10484 * dumpfile.c (dump_loc): Print location only if available.
10485 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10486
66aa7879
VM
104872013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10488
10489 PR target/55433
10490 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10491 secondary memory move.
10492 (inherit_reload_reg): Use rclass instead of cl for
10493 check_secondary_memory_needed_p.
10494
3f0fee7b
JJ
104952013-01-18 Jakub Jelinek <jakub@redhat.com>
10496
10497 PR middle-end/56015
10498 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 10499 the case where writing real complex part of target modifies op1.
3f0fee7b 10500
70c67693
JG
105012013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10502
10503 * config/aarch64/aarch64-simd.md
10504 (aarch64_vcond_internal<mode>): Handle unordered cases.
10505 * config/aarch64/iterators.md (v_cmp_result): New.
10506
df8de9b3
YHH
105072013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10508 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10509
10510 * config/arm/marvell-pj4.md: New file.
10511 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10512 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10513 (generic_vfp): Likewise.
10514 * config/arm/arm-cores.def: Add marvell-pj4.
10515 * config/arm/arm-tune.md: Regenerate.
10516 * config/arm/arm-tables.opt: Regenerate.
10517 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10518 * doc/invoke.texi: Document marvell-pj4.
10519
be30c356
TB
105202013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10521
10522 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10523
0bfbca58 105242013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
10525
10526 PR debug/54114
10527 PR debug/54402
10528 PR debug/49888
10529 * var-tracking.c (negative_power_of_two_p): New.
10530 (global_get_addr_cache, local_get_addr_cache): New.
10531 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10532 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10533 heading comment.
10534 (vt_stack_offset_p): Remove.
10535 (vt_canon_true_dep): Always canonicalize loc's address.
10536 (clobber_overlapping_mems): Make sure we have a MEM.
10537 (local_get_addr_clear_given_value): New.
10538 (val_reset): Clear local cached entries.
10539 (compute_bb_dataflow): Create and release the local cache.
10540 Disable duplicate MEMs clobbering.
10541 (emit_notes_in_bb): Clobber MEMs likewise.
10542 (vt_emit_notes): Create and release the local cache.
10543 (vt_initialize, vt_finalize): Create and release the global
10544 cache, respectively.
1f6bc337 10545 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 10546
0bfbca58 105472013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
10548
10549 PR libmudflap/53359
10550 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10551 not found in the symtab.
10552
0bfbca58 105532013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 10554
c350ba53 10555 PR debug/56006
3aa03517
AO
10556 PR rtl-optimization/55547
10557 PR rtl-optimization/53827
10558 PR debug/53671
10559 PR debug/49888
10560 * alias.c (offset_overlap_p): New, factored out of...
10561 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10562 the conservative special case for symbolic constants. Don't
10563 adjust zero sizes on alignment.
10564
c664546f
JL
105652013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10566
10567 PR rtl-optimization/52573
10568 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10569 REG_UNUSED for the same register.
10570
1bd3f750
MP
105712013-01-17 Richard Biener <rguenther@suse.de>
10572 Marek Polacek <polacek@redhat.com>
10573
10574 PR rtl-optimization/55833
10575 * loop-unswitch.c (unswitch_loops): Move loop verification...
10576 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10577 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10578 Set it to true when we're removing a loop from hierarchy tree in
10579 an irreducible region.
10580 (fix_bb_placements): Adjust caller.
10581 (fix_loop_placements): Likewise.
10582
e52a8b71
GJL
105832013-01-17 Georg-Johann Lay <avr@gjlay.de>
10584
10585 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10586 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10587 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10588 Remove ID. Adjust comments.
10589 * config/avr/avr-c.c (avr_builtin_name): Remove.
10590 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10591 * config/avr/avr.c (avr_tolower): New static function.
10592 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10593 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10594 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10595 default expansion.
10596
8386a7ea
JH
105972013-01-17 Jan Hubicka <jh@suse.cz>
10598
610fb637 10599 PR tree-optimization/55273
8386a7ea
JH
10600 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10601
47876a2a 106022013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
10603
10604 PR target/55981
10605 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10606 store through atomic_store<mode>_1.
10607 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10608
8222c37e
MJ
106092013-01-17 Martin Jambor <mjambor@suse.cz>
10610
10611 PR tree-optimizations/55264
10612 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10613 for virtual methods.
10614 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10615 virtual methods before inlining is over.
10616 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10617 virtual functions.
10618 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10619 non-virtual.
10620
79f01c76
VM
106212013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10622
10623 PR rtl-optimization/56005
10624 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10625 pending reads for prefetch.
10626
d0b6bb1b
IB
106272013-01-16 Ian Bolton <ian.bolton@arm.com>
10628
aaf1e810 10629 * config/aarch64/aarch64.md
d0b6bb1b
IB
10630 (*cstoresi_neg_uxtw): New pattern.
10631 (*cmovsi_insn_uxtw): New pattern.
10632 (*<optab>si3_uxtw): New pattern.
10633 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10634 (*<optab>si3_insn_uxtw): New pattern.
10635 (*bswapsi2_uxtw): New pattern.
10636
cb9cf03b
RB
106372013-01-16 Richard Biener <rguenther@suse.de>
10638
10639 * tree-inline.c (tree_function_versioning): Remove set but
10640 never used variable.
10641
2cfc56b9
RB
106422013-01-16 Richard Biener <rguenther@suse.de>
10643
10644 PR tree-optimization/55964
10645 * tree-flow.h (rename_variables_in_loop): Remove.
10646 (rename_variables_in_bb): Likewise.
10647 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10648 (copy_loop_before): Adjust and delete update-ssa status.
10649 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10650 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10651 (rename_variables_in_loop): Remove.
10652 (slpeel_update_phis_for_duplicate_loop): Likewise.
10653 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10654 use available cfg machinery instead of duplicating it.
10655 Update PHI nodes and perform poor-mans SSA update here.
10656 (slpeel_tree_peel_loop_to_edge): Adjust.
10657
c25a0c60
RB
106582013-01-16 Richard Biener <rguenther@suse.de>
10659
10660 PR tree-optimization/54767
10661 PR tree-optimization/53465
10662 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10663 (vrp_visit_phi_node): For PHI arguments coming via backedges
10664 drop all symbolical range information.
10665 (execute_vrp): Compute backedges.
10666
04b535af
RB
106672013-01-16 Richard Biener <rguenther@suse.de>
10668
10669 * doc/install.texi: Update CLooG and ISL requirements to
10670 0.18.0 and 0.11.1.
10671
8b0a1e0b
CB
106722013-01-16 Christian Bruel <christian.bruel@st.com>
10673
10674 PR target/55301
10675 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10676 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10677 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10678
106792013-01-16 DJ Delorie <dj@redhat.com>
10680
10681 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10682 (UNSPECV_SP_SWITCH_E): New.
10683 (sp_switch_1): Change to an unspec.
10684 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10685 replace $r15.
10686
106872013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10688
10689 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10690 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10691 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10692 (expand_mem_thread_fence): Ditto.
10693 (expand_mem_signal_fence): Ditto.
10694 (expand_atomic_load): Ditto.
10695 (expand_atomic_store): Ditto.
10696
0bfbca58 106972013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10698
10699 PR rtl-optimization/55547
10700 PR rtl-optimization/53827
10701 PR debug/53671
10702 PR debug/49888
10703 * alias.c (memrefs_conflict_p): Set sizes to negative after
10704 AND adjustments.
10705
305e3ac1
JJ
107062013-01-15 Jakub Jelinek <jakub@redhat.com>
10707
10708 PR target/55940
10709 * function.c (thread_prologue_and_epilogue_insns): Always
10710 add crtl->drap_reg to set_up_by_prologue.set, even if
10711 stack_realign_drap is false.
10712
f78ac4f2
JBG
107132013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10714
10715 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10716 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10717 *call): Fix indention.
10718
a78a8cc4
TV
107192013-01-15 Tom de Vries <tom@codesourcery.com>
10720
10721 PR target/55876
10722 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10723 Update comment.
10724
0e80383f
VM
107252013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10726
305e3ac1 10727 PR rtl-optimization/55153
0e80383f
VM
10728 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10729
207b5956
MJ
107302013-01-15 Martin Jambor <mjambor@suse.cz>
10731
10732 PR tree-optimization/55920
10733 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10734 accesses as grp_to_be_debug_replaced.
10735
a7818b54
JJ
107362013-01-15 Jakub Jelinek <jakub@redhat.com>
10737
10738 PR tree-optimization/55920
10739 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10740 there is non-useless type conversion needed from debug rhs to lhs,
10741 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10742
b0fe107e
JM
107432013-01-15 Joseph Myers <joseph@codesourcery.com>
10744 Mikael Pettersson <mikpe@it.uu.se>
10745
10746 PR target/43961
10747 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10748 Thumb.
10749 (ASM_OUTPUT_CASE_LABEL): Remove.
10750 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10751 * final.c (shorten_branches): Update alignment of labels before
10752 jump tables if CASE_VECTOR_SHORTEN_MODE.
10753
34ab62ee
RB
107542013-01-15 Richard Biener <rguenther@suse.de>
10755
10756 PR bootstrap/55961
10757 * system.h: Do not include gmp.h for building host tools.
10758
783a3a05
RB
107592013-01-15 Richard Biener <rguenther@suse.de>
10760
10761 PR middle-end/55882
10762 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10763 account for bitpos when computing alignment.
10764
3a579e09
VY
107652013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10766
10767 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10768 (ix86_target_macros_internal): Likewise.
10769
10770 * config/i386/i386.c (m_CORE2I7): Removed.
10771 (m_CORE_HASWELL): New macro.
10772 (m_CORE_ALL): Likewise.
10773 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10774 (initial_ix86_arch_features): Likewise.
10775 (processor_target_table): Initializations for Core avx2.
10776 (cpu_names): New names "core-avx2".
10777 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10778 PROCESSOR_CORE_HASWELL.
10779 (ix86_issue_rate): New case.
10780 (ia32_multipass_dfa_lookahead): Likewise.
10781 (ix86_sched_init_global): Likewise.
10782
10783 * config/i386/i386.h (TARGET_HASWELL): New macro.
10784 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10785 (processor_type): New PROCESSOR_HASWELL.
10786
955f5a07
JJ
107872013-01-15 Jakub Jelinek <jakub@redhat.com>
10788
ff784829
JJ
10789 PR tree-optimization/55955
10790 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10791 *SHIFT_EXPR and *ROTATE_EXPR codes.
10792
955f5a07
JJ
10793 PR tree-optimization/48766
10794 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10795 -ftrapv disable -fwrapv.
10796
aeb8b4e9
GJL
107972013-01-14 Georg-Johann Lay <avr@gjlay.de>
10798
10799 PR target/55974
10800 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10801 etc. to 1 and not to __flash.
10802 Use LL suffix for __INT24_MAX__ with -mint8.
10803 Use ULL suffix for __UINT24_MAX__ with -mint8.
10804
1c494c6a
GJL
108052013-01-14 Georg-Johann Lay <avr@gjlay.de>
10806
10807 * config/avr/avr-arch.h
10808 (struct base_arch_s): Use typedef avr_arch_t instead.
10809 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10810 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10811 * config/avr/avr.c: Same.
10812 * config/avr/avr-devices.c: Same.
10813 * config/avr/driver-avr.c: Same.
10814 * config/avr/gen-avr-mmcu-texi.c: Same.
10815 * config/avr/avr-mcus.def: Adjust comment.
10816
a50344cb
TB
108172013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10818
88e784e6
UB
10819 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10820 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10821
47876a2a 108222013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10823 Andi Kleen <ak@linux.intel.com>
10824
10825 PR target/55948
10826 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10827 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10828 memmodel flag.
10829
00892272
GJL
108302013-01-14 Georg-Johann Lay <avr@gjlay.de>
10831
10832 * config/avr/avr-stdint.h: Remove trailing blanks.
10833 * config/avr/avr-log.h: Same.
10834 * config/avr/avr-arch.h: Same.
10835 * config/avr/avr-devices.c: Same.
10836 * config/avr/avr-dimode.md: Same.
10837 * config/avr/predicates.md: Same.
10838 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10839
00892272
GJL
10840 * config/avr/avr-protos.h: Same. And:
10841 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10842 (init_cumulative_args): Rename to avr_init_cumulative_args.
10843 (expand_prologue): Rename to avr_expand_prologue.
10844 (expand_epilogue): Rename to avr_expand_epilogue.
10845 (adjust_insn_length): Rename to avr_adjust_insn_length.
10846 (notice_update_cc): Rename to avr_notice_update_cc.
10847 (final_prescan_insn): Rename to avr_final_prescan_insn.
10848 * config/avr/avr.c: Same.
10849 * config/avr/avr.h: Same.
10850 * config/avr/avr.md: Remove trailing blanks.
10851 (prologue): Use avr_expand_prologue.
10852 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10853
7bb01996
RB
108542013-01-14 Richard Biener <rguenther@suse.de>
10855
10856 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10857 verify_location, collect_subblocks): New functions.
10858 (verify_gimple_in_cfg): Verify that locations only reference
10859 BLOCKs in the functions BLOCK tree.
10860
2724573f
RB
108612013-01-14 Richard Biener <rguenther@suse.de>
10862
10863 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10864 PHI argument.
10865 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10866 unshare reference.
10867 (insert_out_of_ssa_copy_on_edge): Likewise.
10868 (rewrite_close_phi_out_of_ssa): Likewise.
10869 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10870 debug expressions.
10871 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10872 propagated constants.
10873 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10874 can not be shared.
10875
9a0bbab6
GJL
108762013-01-14 Georg-Johann Lay <avr@gjlay.de>
10877
10878 * config/avr/avr-modes.def: Add GPL copyright notice.
10879
45805f17
UB
108802013-01-13 Uros Bizjak <ubizjak@gmail.com>
10881
10882 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10883 MEMMODEL_MASK to determine memory model.
10884 (atomic_store<mode>): Ditto from operands[2].
10885 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10886
9d60be38
JJ
108872013-01-13 Jakub Jelinek <jakub@redhat.com>
10888
10889 PR fortran/55935
45805f17 10890 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
10891 (fold_gimple_assign): Don't call unshare_expr here.
10892 (fold_ctor_reference): Call unshare_expr.
10893
e7f49d92
TG
108942013-01-13 Terry Guo <terry.guo@arm.com>
10895
aaf1e810
EB
10896 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10897 * doc/fragments.texi: Document MULTILIB_REUSE.
10898 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 10899 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 10900 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
10901 (tmpmultilib4): Ditto.
10902 (multilib_reuse): New multilib argument.
10903
fbd03a27
RS
109042013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10905
10906 * Makefile.in: Update copyright.
10907
b3681f13
TV
109082013-01-12 Tom de Vries <tom@codesourcery.com>
10909
10910 PR middle-end/55890
10911 * calls.c (expand_call): Check if arg_nr is valid.
10912
3f287e4b
MM
109132013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10914
10915 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10916 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
10917 documentation. Add missing '__' in front of
10918 __builtin_ia32_packssdw256.
3f287e4b 10919
1abcd5eb
AK
109202013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10921
10922 PR target/55719
10923 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10924 NO_REGS for larl operands.
10925 (s390_reload_larl_operand): Use s390_load_address instead of
10926 emit_move_insn.
10927
980d0812
RB
109282013-01-11 Richard Biener <rguenther@suse.de>
10929
10930 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10931 (verify_node_sharing): ... here.
10932 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10933
7cb9fd07
EB
109342013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10935
10936 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10937 Substitute TREECHECKING.
10938 * configure: Regenerate.
10939 * Makefile.in (TREECHECKING): New.
10940
47876a2a 109412013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
10942
10943 PR tree-optimization/44061
10944 * tree-vrp.c (extract_range_basic): Compute zero as
10945 value-range for __builtin_constant_p of function parameters.
10946
d1e082c2
RS
109472013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10948
45805f17 10949 Update copyright years.
d1e082c2 10950
f85021b0
VM
109512013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10952
9d60be38 10953 PR rtl-optimization/55672
0160442c
VM
10954 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10955 const to be eliminable.
f85021b0 10956
7a8b1ec4
DE
109572013-01-10 David Edelsohn <dje.gcc@gmail.com>
10958
10959 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10960 * configure: Regenerate.
10961
ad2e5b71
RB
109622013-01-10 Richard Biener <rguenther@suse.de>
10963
ddf9322d 10964 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 10965
ffc5b2bb
RB
109662013-01-10 Richard Biener <rguenther@suse.de>
10967
10968 PR bootstrap/55792
10969 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10970 locations for virtual PHI arguments.
10971 (rewrite_update_phi_arguments): Likewise.
10972
e1f674e4
JS
109732013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10974
10975 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10976 on to assembler.
10977
a57fc743
JJ
109782013-01-10 Jakub Jelinek <jakub@redhat.com>
10979
10980 PR tree-optimization/55921
10981 * tree-complex.c (expand_complex_asm): New function.
10982 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10983
0ff4390d
AK
109842013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10985
10986 PR target/55718
10987 * config/s390/s390.c (s390_symref_operand_p)
10988 (s390_loadrelative_operand_p): Merge the two functions.
10989 (s390_check_qrst_address, print_operand_address): Add parameters
10990 to s390_loadrelative_operand_p invokation.
10991 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10992 (s390_reload_larl_operand, s390_secondary_reload): Use
10993 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10994 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10995
6f557e0e
MS
109962013-01-09 Mike Stump <mikestump@comcast.net>
10997
10998 * dse.c (record_store): Remove unnecessary assert.
10999
7770c9e9
JH
110002013-01-09 Jan Hubicka <jh@suse.cz>
11001
11002 PR tree-optimization/55569
11003 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11004 * cfgloop.h (scale_loop_profile): Likewise.
11005
a19b1432
JH
110062013-01-09 Jan Hubicka <jh@suse.cz>
11007
11008 PR lto/45375
ddf9322d
UB
11009 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11010 functions.
a19b1432
JH
11011 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11012
9a002da8
RS
110132013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11014
11015 PR middle-end/55114
11016 * expr.h (maybe_emit_group_store): Declare.
11017 * expr.c (maybe_emit_group_store): New function.
11018 * builtins.c (expand_builtin_int_roundingfn): Call it.
11019 (expand_builtin_int_roundingfn_2): Likewise.
11020
511dcace
VM
110212013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11022
e1f2b729 11023 PR rtl-optimization/55829
511dcace
VM
11024 * lra-constraints.c (match_reload): Add code for absent output.
11025 (curr_insn_transform): Add code for reloads of matched inputs
11026 without output.
11027
7b0fe4f4
UB
110282013-01-09 Uros Bizjak <ubizjak@gmail.com>
11029
11030 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11031 attribute of movddup insn to DF.
11032 (*vec_interleave_lowv2df): Ditto.
11033 (vec_dupv2df): Ditto.
11034
870ca331
JH
110352013-01-09 Jan Hubicka <jh@suse.cz>
11036
11037 PR tree-optimiation/55875
11038 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11039 EVERY_ITERATION parameter.
7b0fe4f4 11040 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
11041 (idx_infer_loop_bounds): Similarly here.
11042 (n_of_executions_at_most): Simplify
11043 to only test for cases where statement is dominated by the
7b0fe4f4 11044 particular bound; handle correctly the "postdominance" test.
870ca331
JH
11045 (scev_probably_wraps_p): Use max loop iterations info
11046 as a global bound first.
11047
6f575fe4 110482013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
11049 Nick Clifton <nickc@redhat.com>
11050
11051 * config/v850/v850.md (cbranchsf4): New pattern.
11052 (cstoresf4): New pattern.
11053 (cbranchdf4): New pattern.
11054 (cstoredf4): New pattern.
11055 (movsicc): Disallow floating point comparisons.
11056 (cmpsf_le_insn): Fix order of operators.
11057 (cmpsf_lt_insn): Likewise.
11058 (cmpsf_eq_insn): Likewise.
11059 (cmpdf_le_insn): Likewise.
11060 (cmpdf_lt_insn): Likewise.
11061 (cmpdf_eq_insn): Likewise.
11062 (cmpsf_ge_insn): Use LE comparison.
11063 (cmpdf_ge_insn): Likewise.
11064 (cmpsf_gt_insn): Use LT comparison.
11065 (cmpdf_gt_insn): Likewise.
11066 (cmpsf_ne_insn): Delete pattern.
11067 (cmpdf_ne_insn): Delete pattern.
11068 * config/v850/v850.c (v850_gen_float_compare): Use
11069 gen_cmpdf_eq_insn for NE comparison.
11070 (v850_float_z_comparison_operator)
11071 (v850_float_nz_comparison_operator): Move from here ...
11072 * config/v850/predicates.md: ... to here. Move GT and GE
11073 comparisons into v850_float_z_comparison_operator.
11074 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11075 Delete prototype.
11076 (v850_float_nz_comparison_operator): Likewise.
11077
f0d54148
JDA
110782013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11079
11080 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11081 with calls to gen_insvsi/gen_insvdi.
11082
8f01beca
VK
110832013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11084
11085 * config/i386/i386.c (initial_ix86_tune_features): Set up
11086 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11087
2aa579ad
JJ
110882013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11089 Jakub Jelinek <jakub@redhat.com>
11090
11091 PR tree-optimization/48189
11092 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11093 If nitercst is 0, don't predict the exit edge.
11094
6edc3e32 110952013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
11096
11097 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11098 in asm_fprintf with reg_names.
11099 (aarch64_print_operand_address): Likewise.
11100 (aarch64_return_addr): Likewise.
11101 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11102
f6f94d94
JDA
111032013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11104
11105 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11106 (INT_U6_BITS): Likewise.
11107 * config/pa/predicates.md (uint6_operand): New predicate.
11108 (shift5_operand, shift6_operand): Likewise.
11109 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11110 arith32_operand.
11111 (lshrdi3): Use shift6_operand.
11112 (shrpsi4, shrpdi4): New insn patterns.
11113 (extzv): Delete expander.
11114 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11115 predicates in unamed zero extract patterns. Tighten common constraint.
11116 (extv): Delete expander.
11117 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11118 predicates in unamed sign extract patterns. Tighten common constraint.
11119 (insv): Delete expander.
11120 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11121 predicates in unamed insert patterns. Tighten common constraint.
11122 Change uint32_operand predicate to uint6_operand predicate in unamed
11123 DImode pattern to insert constant values of type 1...1xxxx.
11124
36b72910
JH
111252013-01-04 Jan Hubicka <jh@suse.cz>
11126
11127 PR tree-optimization/55823
7b0fe4f4
UB
11128 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11129 issue.
36b72910 11130
47876a2a 111312013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
11132 Uros Bizjak <ubizjak@gmail.com>
11133
11134 PR rtl-optimization/55845
11135 * df-problems.c (can_move_insns_across): Stop scanning at
11136 volatile_insn_p source instruction or give up if
11137 across_from .. across_to range contains any volatile_insn_p
11138 instructions.
11139
4369c11e
TB
111402013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11141
7b0fe4f4
UB
11142 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11143 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11144 Declare.
4369c11e 11145 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 11146 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 11147
aeb7e7c1
JJ
111482013-01-08 Jakub Jelinek <jakub@redhat.com>
11149
11150 PR fortran/55341
11151 * asan.c (asan_clear_shadow): New function.
11152 (asan_emit_stack_protection): Use it.
11153
a02ad1aa
TB
111542013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11155
11156 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11157 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11158 with tab instead of space.
11159
f90d87f5
NC
111602013-01-08 Nick Clifton <nickc@redhat.com>
11161
11162 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11163 register bank 0 at the start of an interrupt handler.
83ffd964
NC
11164 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11165 MDBH registers.
f90d87f5 11166
385eb93d
JG
111672013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11168
11169 * config/aarch64/aarch64-simd.md
11170 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11171 (aarch64_simd_bsl): Likewise.
11172 (aarch64_vcond_internal<mode>): Likewise.
11173 (vcond<mode><mode>): Likewise.
11174 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11175 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11176
4dcd1054
JG
111772013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11178
11179 * config/aarch64/aarch64-builtins.c
11180 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11181
4267a4a6
MJ
111822013-01-08 Martin Jambor <mjambor@suse.cz>
11183
11184 PR debug/55579
11185 * tree-sra.c (analyze_access_subtree): Return true also after
11186 potentially creating a debug-only replacement.
11187
5f4e6de3
JJ
111882013-01-08 Jakub Jelinek <jakub@redhat.com>
11189
3138f224
JJ
11190 PR middle-end/55890
11191 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11192
5f4e6de3
JJ
11193 PR tree-optimization/54120
11194 * tree-vrp.c (range_fits_type_p): Don't allow
11195 src_precision < precision from signed vr to unsigned_p
11196 if vr->min or vr->max is negative.
11197 (simplify_float_conversion_using_ranges): Test can_float_p
11198 against CODE_FOR_nothing.
11199
f3ef18ff
JJ
112002013-01-08 Jakub Jelinek <jakub@redhat.com>
11201 Richard Biener <rguenther@suse.de>
11202
11203 PR middle-end/55851
11204 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11205 types instead of just INTEGER_TYPE types.
11206
25c210f9
MK
112072013-01-07 Mark Kettenis <kettenis@openbsd.org>
11208
11209 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11210 TF_SIZE): Define.
f90d87f5 11211
81826a7b
SE
112122013-01-07 Steve Ellcey <sellcey@mips.com>
11213
11214 PR target/42661
11215 * config/mips/mips.opt: Change mad to mmad to match documentation.
11216
35678514
GJL
112172013-01-07 Georg-Johann Lay <avr@gjlay.de>
11218
11219 PR target/55897
11220 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11221 .progmemx.data now.
11222
e5669488
GJL
112232013-01-07 Georg-Johann Lay <avr@gjlay.de>
11224
11225 PR target/55897
11226 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11227 (avr_addrspace_t): Add .section_name field.
11228 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11229 array size.
11230 (avr_addrspace): Same. Initialize .section_name. Remove last
11231 NULL entry. Put __memx into .progmemx.data.
11232 (progmem_section_prefix): Remove.
11233 (avr_asm_init_sections): No need to initialize progmem_section.
11234 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11235 section name prefix.
11236 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11237 retrieve the progmem section.
11238 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11239 boundary to run over avr_addrspace[].
11240 (avr_register_target_pragmas): Ditto.
11241
656e6f37
JJ
112422013-01-06 Jakub Jelinek <jakub@redhat.com>
11243
11244 * varasm.c (output_constant_def_contents): For asan_protect_global
11245 protected strings, adjust DECL_ALIGN if needed, before testing for
11246 anchored symbols.
11247 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11248 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11249 normal decls.
11250 (output_object_block): For asan protected decls, emit asan padding
11251 after their contents.
11252 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11253 (asan_finish_file): Test it here instead.
11254
6edc3e32
UB
112552013-01-07 Nick Clifton <nickc@redhat.com>
11256 Matthias Klose <doko@debian.org>
11257 Doug Kwan <dougkwan@google.com>
11258 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
11259
11260 PR driver/55470
11261 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11262
11263 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11264
11265 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11266
7b0fe4f4 11267 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
11268
11269 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11270
2a095093
GJL
112712013-01-07 Georg-Johann Lay <avr@gjlay.de>
11272
f3b503f4 11273 PR target/54461
2a095093
GJL
11274 * doc/install.texi (Cross-Compiler-Specific Options): Document
11275 --with-avrlibc.
11276
383f9b34
TB
112772013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11278
11279 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11280 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11281 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11282 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11283 vqmovun_high_s64): Fix source operand number and update copyright.
11284
3626621a
RB
112852013-01-07 Richard Biener <rguenther@suse.de>
11286
11287 PR middle-end/55890
11288 * gimple.h (gimple_call_builtin_p): New overload.
11289 * gimple.c (validate_call): New function.
11290 (gimple_call_builtin_p): Likewise.
11291 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11292 Use gimple_call_builtin_p.
11293 (find_func_clobbers): Likewise.
11294 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11295 (strlen_optimize_stmt): Likewise.
11296
8b2ea410
JG
112972013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11298
11299 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11300 (vld1q_dup_*): Likewise.
11301 (vld1_*): Likewise.
11302 (vld1q_*): Likewise.
11303 (vld1_lane_*): Likewise.
11304 (vld1q_lane_*): Likewise.
11305
9713d329
RB
113062013-01-07 Richard Biener <rguenther@suse.de>
11307
11308 * lto-streamer.h (LTO_minor_version): Bump to 2.
11309
3520f7cc
JG
113102013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11311
11312 * config/aarch64/aarch64-protos.h
11313 (aarch64_const_double_zero_rtx_p): Rename to...
11314 (aarch64_float_const_zero_rtx_p): ...this.
11315 (aarch64_float_const_representable_p): New.
11316 (aarch64_output_simd_mov_immediate): Likewise.
11317 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11318 move immediate case.
11319 * config/aarch64/aarch64.c
11320 (aarch64_const_double_zero_rtx_p): Rename to...
11321 (aarch64_float_const_zero_rtx_p): ...this.
11322 (aarch64_print_operand): Allow printing of new constants.
11323 (aarch64_valid_floating_const): New.
11324 (aarch64_legitimate_constant_p): Check for valid floating-point
11325 constants.
11326 (aarch64_simd_valid_immediate): Likewise.
11327 (aarch64_vect_float_const_representable_p): New.
11328 (aarch64_float_const_representable_p): Likewise.
11329 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11330 (aarch64_output_simd_mov_immediate): New.
11331 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11332 (*movdf_aarch64): Likewise.
11333 * config/aarch64/constraints.md (Ufc): New.
11334 (Y): call aarch64_float_const_zero_rtx.
11335 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11336
e167c04d
RB
113372013-01-07 Richard Biener <rguenther@suse.de>
11338
11339 PR tree-optimization/55888
11340 PR tree-optimization/55862
11341 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11342 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11343 not if it is contained therein.
11344
0139aaab
GJL
113452013-01-07 Georg-Johann Lay <avr@gjlay.de>
11346
11347 * config/avr/t-avr: Typo.
11348
4a176b23
GJL
113492013-01-07 Georg-Johann Lay <avr@gjlay.de>
11350
11351 PR55243
11352 * config/avr/t-avr: Don't automatically rebuild
11353 $(srcdir)/config/avr/t-multilib
11354 $(srcdir)/config/avr/avr-tables.opt
11355 $(srcdir)/doc/avr-mmcu.texi
11356 (avr-mcus): New phony target to build them on request.
11357 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11358 * avr/avr-mcus.def: Adjust comments.
11359
c7afdc98
UB
113602013-01-07 Uros Bizjak <ubizjak@gmail.com>
11361
11362 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11363
1ab05c31
RS
113642013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11365
11366 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11367
488e3acc
RS
113682013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11369
11370 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11371
a89599d2
DE
113722013-01-05 David Edelsohn <dje.gcc@gmail.com>
11373
11374 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11375 to generate profiling.
11376 * config/rs6000/aix64.h (LIB_SPEC): Same.
11377
70f09188
AP
113782013-01-04 Andrew Pinski <apinski@cavium.com>
11379
11380 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11381 New function.
11382 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11383
918d445f
UB
113842013-01-04 Uros Bizjak <ubizjak@gmail.com>
11385
11386 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11387 unconditionally.
11388 (ix86_expand_move): Ditto.
11389 (ix86_zero_extend_to_Pmode): Ditto.
11390 (ix86_expand_call): Ditto.
11391 (ix86_expand_special_args_builtin): Ditto.
11392 (ix86_expand_builtin): Ditto.
11393
361618ec
RB
113942013-01-04 Richard Biener <rguenther@suse.de>
11395
11396 PR tree-optimization/55862
11397 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11398 translating them through PHI nodes.
11399
87eab554
MJ
114002013-01-04 Martin Jambor <mjambor@suse.cz>
11401
11402 PR tree-optimization/55755
11403 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11404 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11405
33879b9f
MP
114062013-01-04 Marek Polacek <polacek@redhat.com>
11407
11408 PR middle-end/55859
11409 * opts.c (default_options_optimization): Clarify error message.
11410
3068819a
RB
114112013-01-04 Richard Biener <rguenther@suse.de>
11412
11413 PR middle-end/55863
11414 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11415 reassociation.
11416
0e4ae794
JDA
114172013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11418
11419 PR target/53789
11420 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
11421 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11422 references.
0e4ae794 11423
65c88cef
RH
114242013-01-03 Richard Henderson <rth@redhat.com>
11425
11426 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11427 after eliminating TLS symbols.
11428
8ac16127
MG
114292013-01-03 Marc Glisse <marc.glisse@inria.fr>
11430
11431 PR bootstrap/50167
11432 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11433 * graphite-poly.c (debug_gmp_value): Likewise.
11434
bb664f09
UB
114352013-01-03 Uros Bizjak <ubizjak@gmail.com>
11436
11437 PR target/55712
11438 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11439 selected code model, define __code_mode_small__, __code_model_medium__,
11440 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11441 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11442 xchg temporary register with %k. Declare temporary register as
11443 early clobbered.
11444 [__x86_64__]: For medium and large code models, preserve %rbx register.
11445
bcf1ef00
RB
114462013-01-03 Richard Biener <rguenther@suse.de>
11447
0506634a 11448 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
11449 (dump_subscript): Adjust.
11450 (finalize_ddr_dependent): Do not dump redundant info.
11451 (analyze_siv_subscript): Adjust.
11452 (subscript_dependence_tester): Likewise.
11453 (compute_affine_dependence): Likewise.
11454
59fd17e3
RB
114552013-01-03 Richard Biener <rguenther@suse.de>
11456
11457 Revert
11458 2013-01-03 Richard Biener <rguenther@suse.de>
11459
11460 PR tree-optimization/55857
11461 * tree-vect-stmts.c (vectorizable_load): Do not setup
11462 re-alignment for invariant loads.
11463
11464 2013-01-02 Richard Biener <rguenther@suse.de>
11465
11466 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11467 invariant load do not generate a vector load from the scalar location.
59fd17e3 11468
595c2679
RB
114692013-01-03 Richard Biener <rguenther@suse.de>
11470
11471 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11472 for not vectorizing.
11473 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11474 not build INDIRECT_REFs, call get_name once only.
11475 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11476 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11477
90bb7d7a
RB
114782013-01-03 Richard Biener <rguenther@suse.de>
11479
11480 PR tree-optimization/55857
11481 * tree-vect-stmts.c (vectorizable_load): Do not setup
11482 re-alignment for invariant loads.
11483
f09b77ca
RB
114842013-01-03 Richard Biener <rguenther@suse.de>
11485
11486 PR lto/55848
11487 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11488 prefer a built-in decl.
11489
3461a16e
JJ
114902013-01-03 Jakub Jelinek <jakub@redhat.com>
11491
df8e2b4f
JJ
11492 * gcc.c (process_command): Update copyright notice dates.
11493 * gcov.c (print_version): Likewise.
11494 * gcov-dump.c (print_version): Likewise.
11495
3461a16e
JJ
11496 PR rtl-optimization/55838
11497 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11498 iv0.step, iv1.step and step.
11499
8b5546d6
JJ
115002013-01-03 Jakub Jelinek <jakub@redhat.com>
11501 Marc Glisse <marc.glisse@inria.fr>
11502
11503 PR tree-optimization/55832
11504 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11505 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11506 integer_{one,zero}_node.
11507
8ab1d2e9
JJ
115082013-01-03 Jakub Jelinek <jakub@redhat.com>
11509
11510 PR debug/54402
11511 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11512 * var-tracking.c (reverse_op): Don't add reverse ops to
11513 VALUEs that have already
0506634a 11514 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 11515
5b9ad1d4
GP
115162013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11517
11518 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11519
e25a6711
TJ
115202013-01-02 Teresa Johnson <tejohnson@google.com>
11521
11522 * dumpfile.c (dump_loc): Print filename with location.
11523 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11524 new location_t parameter to emit complete unroll message with
11525 new dump framework.
11526 (canonicalize_loop_induction_variables): Compute loops location
11527 and pass to try_unroll_loop_completely.
11528 * loop-unroll.c (report_unroll_peel): New function.
11529 (peel_loops_completely): Use new dump format with location
11530 for main dumpfile message, and invoke report_unroll_peel on success.
11531 (decide_unrolling_and_peeling): Ditto.
11532 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11533 by report_unroll_peel.
11534 (decide_peel_completely): Ditto.
11535 (decide_unroll_constant_iterations): Ditto.
11536 (decide_unroll_runtime_iterations): Ditto.
11537 (decide_peel_simple): Ditto.
11538 (decide_unroll_stupid): Ditto.
11539 * cfgloop.c (get_loop_location): New function.
11540 * cfgloop.h (get_loop_location): Declare.
11541
77878621
ST
115422013-01-02 Sriraman Tallam <tmsriram@google.com>
11543
11544 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11545 NULL.
11546
9e65d03e
JDA
115472013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11548
11549 PR middle-end/55198
11550 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11551 BLKmode objects when EXPAND_MEMORY is specified.
11552
6a7da30f
ST
115532013-01-02 Sriraman Tallam <tmsriram@google.com>
11554
11555 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11556 in loop predicate.
11557 (fold_builtin_cpu): Do not share cpu model decls across statements.
11558
e78167f2
JM
115592013-01-02 Jason Merrill <jason@redhat.com>
11560
11561 PR c++/55804
11562 * tree.c (build_array_type_1): Revert earlier change.
11563
8c075fb4
YZ
115642013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11565
11566 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11567 "cortex-a57".
11568 * config/aarch64/aarch64-tune.md: Re-generate.
11569
0682ed3e
RB
115702013-01-02 Richard Biener <rguenther@suse.de>
11571
11572 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11573 invariant load do not generate a vector load from the scalar location.
0682ed3e 11574
b8f6a302
RB
115752013-01-02 Richard Biener <rguenther@suse.de>
11576
11577 PR bootstrap/55784
11578 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11579 * configure: Regenerate.
11580
04b80dbb
RS
115812013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11582
11583 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11584 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11585 (expand_builtin_int_roundingfn_2): Keep the original target around
11586 for the fallback case.
11587
635b0b0c
RS
115882013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11589
11590 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11591 to be clear for sign changes.
11592
42d57399
JH
115932013-01-01 Jan Hubicka <jh@suse.cz>
11594
11595 * ipa-inline-analysis.c: Fix formatting.
11596
5bb6669d
JJ
115972013-01-01 Jakub Jelinek <jakub@redhat.com>
11598
11599 PR tree-optimization/55831
11600 * tree-vect-loop.c (get_initial_def_for_induction): Use
11601 gsi_after_labels instead of gsi_start_bb.
ad41bd84 11602\f
86a2db33 11603Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
11604
11605Copying and distribution of this file, with or without modification,
11606are permitted in any medium without royalty provided the copyright
11607notice and this notice are preserved.