]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
[AArch64] -mcmodel=tiny -fPIC use tiny absolute for non binds local.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
38e6c9a6
MS
12013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_classify_symbol):
4 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
5
e3530904
TB
62013-05-31 Tobias Burnus <burnus@net-b.de>
7
8 PR middle-end/57073
9 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
10 further up.
11
b6af05a9
KT
122013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13
14 PR target/56315
15 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
16 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
17 * config/arm/neon.md (iordi3_neon): Remove.
18 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
19 * config/arm/predicates.md (imm_for_neon_logic_operand):
20 Move to earlier in the file.
21 (neon_logic_op2): Likewise.
22 (arm_iordi_operand_neon): New predicate.
23
f800c166
RB
242013-05-31 Richard Biener <rguenther@suse.de>
25
26 PR tree-optimization/57478
27 PR tree-optimization/57453
28 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
29 are life as well.
30
e571fa59
KP
312013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
32
33 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
34 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
35
0fa6e0ef
TB
362013-05-30 Tobias Burnus <burnus@net-b.de>
37 Thomas Koenig <tkoenig@gcc.gnu.org>
38
39 PR middle-end/57073
40 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
41 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
42
4688ddf5
SB
432013-05-30 Steven Bosscher <steven@gcc.gnu.org>
44
0fa6e0ef 45 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 46
3b9ceb4b
VM
472013-05-30 Vladimir Makarov <vmakarov@redhat.com>
48
49 * target.def (register_usage_leveling_p): New hook.
50 * targhooks.c (default_register_usage_leveling_p): New.
51 * targhooks.h (default_register_usage_leveling_p): New prototype.
52 * lra-assigns.c (register_usage_leveling_p): Use the hook.
53 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
54 * doc/tm.texi: Update.
55 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
56
65f9e789
IB
572013-05-30 Ian Bolton <ian.bolton@arm.com>
58
59 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
60 (*insv_reg<mode>): New define_insn.
61
ca035367
JR
622013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
63
64 PR rtl-optimization/57439
65 * postreload.c (move2add_valid_value_p): Check that we have
66 a zero subreg_regno_offset when accessing the register in
67 the requested mode.
68
0b871ccf
YR
692013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
70 Igor Zamyatin <igor.zamyatin@intel.com>
71
72 Silvermont (SLM) architecture pipeline model, tuning and
73 insn selection.
74 * config.gcc: Add slm config options and target.
75
76 * config/i386/slm.md: New.
77
78 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
79
80 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
81 PROCESSOR_SLM.
82 (ix86_target_macros_internal): Likewise.
83
84 * gcc/config/i386/i386.c (slm_cost): New cost.
85 (m_SLM): New macro flag.
86 (initial_ix86_tune_features): Set m_SLM.
87 (x86_accumulate_outgoing_args): Likewise.
88 (x86_arch_always_fancy_math_387): Likewise.
89 (processor_target_table): Add slm cost.
90 (cpu_names): Add slm cpu name.
91 (x86_option_override_internal): Set SLM ISA.
92 (ix86_issue_rate): New case PROCESSOR_SLM.
93 (ia32_multipass_dfa_lookahead): Likewise.
94 (fold_builtin_cpu): Add slm.
95
96 * config/i386/i386.h (TARGET_SLM): New target macro.
97 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
98 (processor_type): Add PROCESSOR_SLM.
99
100 * config/i386/i386.md (cpu): Add new value "slm".
101 (slm.md): Include slm.md.
102
103 * libgcc/config/i386/cpuinfo.c (INTEL_SLM): New enum value.
104
24d5b097
XG
1052013-05-30 Bernd Schmidt <bernds@codesourcery.com>
106 Zhenqiang Chen <zhenqiang.chen@linaro.org>
107
108 * config/arm/arm-protos.h: Add and update function protos.
109 * config/arm/arm.c (use_simple_return_p): New added.
110 (thumb2_expand_return): Check simple_return flag.
111 * config/arm/arm.md: Add simple_return and conditional simple_return.
112 * config/arm/iterators.md: Add iterator for return and simple_return.
113
c1cccc15
ZC
1142013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
115
116 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
117 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
118 (arm_emit_vfp_multi_reg_pop): Likewise.
119 (thumb2_emit_ldrd_pop): Likewise.
120 (arm_expand_epilogue): Add misc REG_CFA notes.
121 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
122
3a4f280b
LC
1232013-05-29 Lawrence Crowl <crowl@google.com>
124
125 * config/arm/t-arm: Update for below.
126
127 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
128 Change type to hash_table. Update dependent calls and types.
129
130 * config/i386/t-cygming: Update for below.
131
132 * config/i386/t-interix: Update for below.
133
134 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
135 Change type to hash_table. Update dependent calls and types.
136 (i386_find_on_wrapper_list::wrappers): Likewise.
137
138 * config/ia64/t-ia64: Update for below.
139
140 * config/ia64/ia64.c (bundle_state_table):
141 Change type to hash_table. Update dependent calls and types.
142
143 * config/mips/mips.c (mips_reorg_process_insns::htab):
144 Change type to hash_table. Update dependent calls and types.
145
146 * config/sol2.c (solaris_comdat_htab):
147 Change type to hash_table. Update dependent calls and types.
148
149 * config/t-sol2: Update for above.
150
1388a0e3
TJ
1512013-05-29 Teresa Johnson <tejohnson@google.com>
152
153 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
154 functions are not yet marked as defined.
155
a5965b52
MM
1562013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
157 Pat Haugen <pthaugen@us.ibm.com>
158 Peter Bergner <bergner@vnet.ibm.com>
159
160 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
161 instructions.
162 (VEC_A): Likewise.
163 (VEC_C): Likewise.
164 (vrotl<mode>3): Likewise.
165 (vashl<mode>3): Likewise.
166 (vlshr<mode>3): Likewise.
167 (vashr<mode>3): Likewise.
168
169 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
170 support for power8 V2DI builtins.
171
172 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
173 power8 V2DI builtins.
174 (vupkhsw): Likewise.
175 (vupklsw): Likewise.
176 (vaddudm): Likewise.
177 (vminsd): Likewise.
178 (vmaxsd): Likewise.
179 (vminud): Likewise.
180 (vmaxud): Likewise.
181 (vpkudum): Likewise.
182 (vpksdss): Likewise.
183 (vpkudus): Likewise.
184 (vpksdus): Likewise.
185 (vrld): Likewise.
186 (vsld): Likewise.
187 (vsrd): Likewise.
188 (vsrad): Likewise.
189 (vsubudm): Likewise.
190 (vcmpequd): Likewise.
191 (vcmpgtsd): Likewise.
192 (vcmpgtud): Likewise.
193 (vcmpequd_p): Likewise.
194 (vcmpgtsd_p): Likewise.
195 (vcmpgtud_p): Likewise.
196 (vupkhsw): Likewise.
197 (vupklsw): Likewise.
198 (vaddudm): Likewise.
199 (vmaxsd): Likewise.
200 (vmaxud): Likewise.
201 (vminsd): Likewise.
202 (vminud): Likewise.
203 (vpksdss): Likewise.
204 (vpksdus): Likewise.
205 (vpkudum): Likewise.
206 (vpkudus): Likewise.
207 (vrld): Likewise.
208 (vsld): Likewise.
209 (vsrad): Likewise.
210 (vsrd): Likewise.
211 (vsubudm): Likewise.
212
213 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
214 support for power8 V2DI instructions.
215
216 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
217 power8 V2DI instructions. Combine pack and unpack insns to use an
218 iterator for each mode. Check whether a particular mode supports
219 Altivec instructions instead of just checking TARGET_ALTIVEC.
220 (UNSPEC_VPKUWUM): Likewise.
221 (UNSPEC_VPKSHSS): Likewise.
222 (UNSPEC_VPKSWSS): Likewise.
223 (UNSPEC_VPKUHUS): Likewise.
224 (UNSPEC_VPKSHUS): Likewise.
225 (UNSPEC_VPKUWUS): Likewise.
226 (UNSPEC_VPKSWUS): Likewise.
227 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
228 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
229 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
230 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
231 (UNSPEC_VUPKHSB): Likewise.
232 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
233 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
234 (UNSPEC_VUPKHSH): Likewise.
235 (UNSPEC_VUPKLSB): Likewise.
236 (UNSPEC_VUPKLSH): Likewise.
237 (VI2): Likewise.
238 (VI_char): Likewise.
239 (VI_scalar): Likewise.
240 (VI_unit): Likewise.
241 (VP): Likewise.
242 (VP_small): Likewise.
243 (VP_small_lc): Likewise.
244 (VU_char): Likewise.
245 (add<mode>3): Likewise.
246 (altivec_vaddcuw): Likewise.
247 (altivec_vaddu<VI_char>s): Likewise.
248 (altivec_vadds<VI_char>s): Likewise.
249 (sub<mode>3): Likewise.
250 (altivec_vsubcuw): Likewise.
251 (altivec_vsubu<VI_char>s): Likewise.
252 (altivec_vsubs<VI_char>s): Likewise.
253 (altivec_vavgs<VI_char>): Likewise.
254 (altivec_vcmpbfp): Likewise.
255 (altivec_eq<mode>): Likewise.
256 (altivec_gt<mode>): Likewise.
257 (altivec_gtu<mode>): Likewise.
258 (umax<mode>3): Likewise.
259 (smax<mode>3): Likewise.
260 (umin<mode>3): Likewise.
261 (smin<mode>3): Likewise.
262 (altivec_vpkuhum): Likewise.
263 (altivec_vpkuwum): Likewise.
264 (altivec_vpkshss): Likewise.
265 (altivec_vpkswss): Likewise.
266 (altivec_vpkuhus): Likewise.
267 (altivec_vpkshus): Likewise.
268 (altivec_vpkuwus): Likewise.
269 (altivec_vpkswus): Likewise.
270 (altivec_vpks<VI_char>ss): Likewise.
271 (altivec_vpks<VI_char>us): Likewise.
272 (altivec_vpku<VI_char>us): Likewise.
273 (altivec_vpku<VI_char>um): Likewise.
274 (altivec_vrl<VI_char>): Likewise.
275 (altivec_vsl<VI_char>): Likewise.
276 (altivec_vsr<VI_char>): Likewise.
277 (altivec_vsra<VI_char>): Likewise.
278 (altivec_vsldoi_<mode>): Likewise.
279 (altivec_vupkhsb): Likewise.
280 (altivec_vupkhs<VU_char>): Likewise.
281 (altivec_vupkls<VU_char>): Likewise.
282 (altivec_vupkhsh): Likewise.
283 (altivec_vupklsb): Likewise.
284 (altivec_vupklsh): Likewise.
285 (altivec_vcmpequ<VI_char>_p): Likewise.
286 (altivec_vcmpgts<VI_char>_p): Likewise.
287 (altivec_vcmpgtu<VI_char>_p): Likewise.
288 (abs<mode>2): Likewise.
289 (vec_unpacks_hi_v16qi): Likewise.
290 (vec_unpacks_hi_v8hi): Likewise.
291 (vec_unpacks_lo_v16qi): Likewise.
292 (vec_unpacks_hi_<VP_small_lc>): Likewise.
293 (vec_unpacks_lo_v8hi): Likewise.
294 (vec_unpacks_lo_<VP_small_lc>): Likewise.
295 (vec_pack_trunc_v8h): Likewise.
296 (vec_pack_trunc_v4si): Likewise.
297 (vec_pack_trunc_<mode>): Likewise.
298
299 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
300 V2DI builtins.
301 (vec_vmaxsd): Likewise.
302 (vec_vmaxud): Likewise.
303 (vec_vminsd): Likewise.
304 (vec_vminud): Likewise.
305 (vec_vpksdss): Likewise.
306 (vec_vpksdus): Likewise.
307 (vec_vpkudum): Likewise.
308 (vec_vpkudus): Likewise.
309 (vec_vrld): Likewise.
310 (vec_vsld): Likewise.
311 (vec_vsrad): Likewise.
312 (vec_vsrd): Likewise.
313 (vec_vsubudm): Likewise.
314 (vec_vupkhsw): Likewise.
315 (vec_vupklsw): Likewise.
316
e70670cf
JH
3172013-05-29 Jan Hubicka <jh@suse.cz>
318
319 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
320 flags; reorder rest of fields in more consistent way.
321 (varpool_node): Remove analyzed, finalized and alias.
322 (cgraph_ndoe): Likewise.
323 (symtab_alias_ultimate_target): New function.
324 (cgraph_function_node): Move offline.
325 (cgraph_reset_node): Declare.
326 (cgraph_comdat_can_be_unshared_p): Remove.
327 (varpool_remove_initializer): Declare.
328 (varpool_first_defined_variable, varpool_next_defined_variable
329 cgraph_first_defined_function, cgraph_next_defined_function): Update.
330 (cgraph_function_with_gimple_body_p): Update.
331 (varpool_all_refs_explicit_p): Update.
332 (symtab_alias_target): New function.
333 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
334 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
335 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
336 (varpool_variable_node): Likewise.
337 * cgraph.c (cgraph_create_function_alias): Update.
338 (cgraph_add_thunk): Update.
339 (cgraph_remove_node): Update.
340 (dump_cgraph_node): Do not dump removed flags.
341 (cgraph_function_body_availability): Update.
342 (cgraph_propagate_frequency): Update.
343 (verify_cgraph_node): Check sanity of local flag.
344 (cgraph_function_node): Move here from cgraph.h; revamp for
345 cgraph_function_or_thunk_node.
346 * lto-symtab.c (lto_varpool_replace_node): Update.
347 (lto_symtab_resolve_can_prevail_p): Update.
348 (lto_symtab_merge_cgraph_nodes): Update.
349 * ipa-cp.c (determine_versionability, initialize_node_lattices,
350 propagate_constants_accross_call, devirtualization_time_bonus,
351 ipcp_propagate_stage): Update.
352 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
353 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
354 * ipa-reference.c (propagate): Update.
355 (write_node_summary_p): Update.
356 * toplev.c (wrapup_global_declaration_2): Update.
357 * cgraphunit.c (cgraph_analyze_function): Rename to ...
358 (analyze_function) ... this one.
359 (cgraph_process_new_functions): Update.
360 (cgraph_reset_node): Export.
361 (cgraph_finalize_function): Update.
362 (cgraph_add_new_function): Update.
363 (process_function_and_variable_attributes): Update.
364 (varpool_finalize_decl): Update.
365 (symbol_finalized): Remove.
366 (symbol_finalized_and_needed): Rename to ...
367 (symbol_defined_and_needed): ... update.
368 (cgraph_analyze_functions): Update.
369 (handle_alias_pairs): Update.
370 (mark_functions_to_output): Update.
371 (assemble_thunk): Update.
372 (output_in_order): Update.
373 (output_weakrefs): Update.
374 (finalize_compilation_unit): Update.
375 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
376 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
377 input_node, input_varpool_node): Update.
378 * dbxout.c (dbxout_expand_expr): Update.
379 * cgraphclones.c (cgraph_clone_node): Update.
380 (cgraph_copy_node_for_versioning): Update.
381 (cgraph_materialize_clone): Update.
382 (cgraph_materialize_all_clones): Update.
383 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
384 propagate_pure_const, propagate_nothrow): Update.
385 * lto-streamer-out.c (lto_output, write_symbol): Update.
386 * ipa-utils.c (ipa_reverse_postorder): Update.
387 * ipa-inline.c (can_inline_edge_p): Update.
388 (update_caller_keys, ipa_inline): Update.
389 * dwarf2out.c (reference_to_unused,
390 premark_types_used_by_global_vars_helper): Update.
391 * tree-eh.c (tree_could_trap_p): Update.
392 * ipa-split.c (consider_split, execute_split_functions): Update.
393 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
394 has_addr_references_p): Update;
395 move ahead in file for better readability.
396 (process_references): Simplify.
397 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
398 bodies are removed.
399 (cgraph_comdat_can_be_unshared_p): Make static.
400 (cgraph_externally_visible_p): Update.
401 (varpool_externally_visible_p): Update.
402 (function_and_variable_visibility): Update.
403 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
404 ipa_tm_mark_force_output_node): Update.
405 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
406 estimate_edge_devirt_benefit, inline_generate_summary,
407 inline_write_summary): Update.
408 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
409 * ipa-prop.c (ipa_compute_jump_functions): Update.
410 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
411 read_replacements_section): Update.
412 * varasm.c (mark_decl_referenced): Update.
413 (assemble_alias, dump_tm_clone_pairs): Update.
414 * tree-inline.c (copy_bb): Update.
415 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
416 Update.
417 * symtab.c (dump_symtab_base): Print new flags.
418 (verify_symtab_base): Verify new flags.
419 (symtab_alias_ultimate_target): New function.
420 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
421 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
422 Update.
423 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
424 * i386.c (ix86_get_function_versions_dispatcher,
425 ix86_generate_version_dispatcher_body): Update.
426 (fold_builtin_cpu): Use varpool_add_new_variable.
427 * varpool.c (varpool_remove_initializer): Break out from ...
428 (varpool_remove_node): ... this one.
429 (dump_varpool_node, varpool_node_for_asm,
430 cgraph_variable_initializer_availability, varpool_analyze_node,
431 varpool_assemble_decl, varpool_remove_unreferenced_decls,
432 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
433
182802ad
JH
4342013-05-29 Jan Hubicka <jh@suse.cz>
435
436 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
437
8190b609
ER
4382013-05-29 Easwaran Raman <eraman@google.com>
439
440 PR tree-optimization/57442
441 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
442 when control exits the main loop.
443
69f5aa9b
SKS
4442013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
445
446 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
447 and RX600.
448 * rx/rx.opt: Add macro for rx100 with string rx100 and value
449 RX100.
450 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
451 * rx/t-rx: Add rx100 under multi library matches option for nofpu
452 option.
453
4b847da9
BS
4542013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
455
456 PR tree-optimization/57441
457 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
458 Don't limit size of incr_vec to number of candidates.
459
4fc43c39
SE
4602013-05-29 Steve Ellcey <sellcey@imgtec.com>
461
462 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
463 and mips16 directories.
464 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
465 mips16.
466 (MULTILIB_DIRNAMES): Ditto.
467 (MULTILIB_EXCEPTIONS): Add new exceptions.
468 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
469 (MULTILIB_DIRNAMES): Ditto.
470 (MULTILIB_EXCEPTIONS): Add new exceptions.
471
a5350ddc
CSS
4722012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
473 Marcus Shawcroft <marcus.shawcroft@arm.com>
474
475 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
476 SYMBOL_TINY_ABSOLUTE.
477 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
478 SYMBOL_TINY_ABSOLUTE.
479 (aarch64_expand_mov_immediate): Likewise.
480 (aarch64_classify_symbol): Likewise.
481 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
482 Permit SYMBOL_TINY_ABSOLUTE.
483 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
484
17f4d4bf
CSS
4852013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
486 Marcus Shawcroft <marcus.shawcroft@arm.com>
487
488 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
489 Refactor if/switch. Replace gcc_assert with if.
490
c0186656
GG
4912013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
492
493 * config/i386/i386.c (initial_ix86_tune_features): Enable
494 FP Reassociation for AMD bdver1 and bdver2.
495
d20188f3
MJ
4962013-05-29 Martin Jambor <mjambor@suse.cz>
497
498 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
499 and IMAGPART_EXPR do not occur within other handled_components.
500
292cba13
RB
5012013-05-29 Richard Biener <rguenther@suse.de>
502
503 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
504 access on whether the use is in the BB we currently try to
505 vectorize.
506 (vect_bb_vectorization_profitable_p): Pass the BB we currently
507 vectorize to vect_bb_slp_scalar_cost.
508
6eddf228
RB
5092013-05-29 Richard Biener <rguenther@suse.de>
510
511 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
512 computing scalar cost offsetted by stmts that are kept live
513 by scalar uses.
514 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
515 for computation of scalar cost.
516
7df36117
SE
5172013-05-28 Steve Ellcey <sellcey@mips.com>
518
519 * config/mips/mips-cpus.def (mips32r2): Change processor type.
520
36536d79
BI
5212013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
522
523 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
524 array notation built-in reduction functions.
525 * doc/passes.texi (Passes): Added documentation about changes done
526 for Cilk Plus.
527 * doc/invoke.texi (C Dialect Options): Added documentation about
528 the -fcilkplus flag.
529 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
530 (BUILTINS_DEF): Depend on cilkplus.def.
531 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
532 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
533 * cilkplus.def: New file.
534
b49eefa5
JR
5352013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
536
537 PR rtl-optimization/57439
538 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
539
9daf6dbb
ER
5402013-05-28 Easwaran Raman <eraman@google.com>
541
542 PR tree-optimization/57337
543 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
544 (find_insert_point): Correctly identify the insertion point
545 when two statements with the same UID is compared.
546
fbd7e877
RB
5472013-05-28 Richard Biener <rguenther@suse.de>
548
549 PR tree-optimization/56787
550 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
551 from the list of data references.
552 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
553 clobbers.
554 (vect_analyze_loop_operations): Likewise.
555 (vect_transform_loop): Remove clobbers.
556
bbba1117
MJ
5572013-05-28 Martin Jambor <mjambor@suse.cz>
558
559 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
560 and REALPART_EXPRs have scalar type.
561
bd388c2a
RB
5622013-05-28 Richard Biener <rguenther@suse.de>
563
564 PR tree-optimization/57411
565 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
566 virtual operands.
567 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
568 virtual operand propagation.
569
2f56a311
EB
5702013-05-28 Eric Botcazou <ebotcazou@adacore.com>
571
572 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
573 destination register for bmasksi_vis.
574 (vector_init_bshuffle): Likewise.
575 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
576
5c3eacbb
EB
5772013-05-28 Eric Botcazou <ebotcazou@adacore.com>
578
579 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
580 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
581 mode if the instruction isn't available in the original mode.
582 * config/sparc/sparc.opt (mfix-ut699): New option.
583 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
584 (divdf3): Turn into expander.
585 (divdf3_nofix): New insn.
586 (divdf3_fix): Likewise.
587 (divsf3): Disable if -mfix-ut699.
588 (sqrtdf2): Turn into expander.
589 (sqrtdf2_nofix): New insn.
590 (sqrtdf2_fix): Likewise.
591 (sqrtsf2): Disable if -mfix-ut699.
592
a1756c0a
RB
5932013-05-27 Richard Biener <rguenther@suse.de>
594
595 PR middle-end/57412
596 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
597 block for the new loop.
598
5a892248
RB
5992013-05-27 Richard Biener <rguenther@suse.de>
600
601 PR tree-optimization/57343
602 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
603 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
604 (number_of_iterations_cond): Do not build the folded tree.
605
d1de852b
RB
6062013-05-27 Richard Biener <rguenther@suse.de>
607
608 Revert
609 PR middle-end/57381
610 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
611 OEP_CONSTANT_ADDRESS_OF retained.
612
613 PR tree-optimization/57417
614 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
615 for unchanged base.
616 (set_ssa_val_to): Compare addresses using
617 get_addr_base_and_unit_offset.
618
7894bc6b
JR
6192013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
620
621 PR rtl-optimization/56833
622 * postreload.c (move2add_record_mode): New function.
623 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
624 (move2add_use_add2_insn): Use move2add_record_sym_value.
625 (move2add_use_add3_insn): Likewise.
626 (reload_cse_move2add): Use move2add_valid_value_p and
627 move2add_record_mode. Invalidate call-clobbered and REG_INC
628 affected regs by setting reg_mode to VOIDmode.
629 (move2add_note_store): Don't pretend the inside of a SUBREG is
630 the actual destination. Invalidate single/leading registers by
631 setting reg_mode to VOIDmode.
632 Use move2add_record_sym_value, move2add_valid_value_p and
633 move2add_record_mode.
634
b03be25f
RB
6352013-05-27 Richard Biener <rguenther@suse.de>
636
637 PR tree-optimization/57396
638 * tree-affine.c (double_int_constant_multiple_p): Properly
639 return false for val == 0 and div != 0.
640
44e88db2
RS
6412013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
642
643 * config/mips/mips.h: Use #elif in preprocessor conditions.
644
3b859704
RS
6452013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
646
647 PR target/53916
648 * config/mips/constraints.md (kl): New constraint.
649 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
650 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
651 constraint for operand 0. Split after CSE for MIPS16. Emit a move
652 from LO for MIPS16.
653 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
654
c979d5f5
RS
6552013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
656
657 PR target/55777
658 * config/mips/mips.c (mips_can_inline_p): New function.
659 (TARGET_CAN_INLINE_P): Define.
660
8e90de43
SB
6612013-05-25 Steven Bosscher <steven@gcc.gnu.org>
662
663 * sched-int.h (ds_t, dw_t): Make unsigned int.
664 Fix documentation that describes how all the ds_t bits are used.
665 Reserve the last bit for delayed-branch scheduling.
666 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
667 (BITS_PER_DEP_WEAK): Fix definition and documentation.
668 (gen_dep_weak_1): Remove prototype.
669 * sched-deps.c (get_dep_weak_1): Make static.
670 * target.def (speculate_insn, needs_block_p, gen_spec_check,
671 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
672 * doc/tm.texi: Regenerate.
673 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
674
cb5cb194
SB
6752013-05-24 Steven Bosscher <steven@gcc.gnu.org>
676
677 PR debug/56950
678 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
679
5bd93ff6
NS
6802013-05-24 Nathan Sidwell <nathan@codesourcery.com>
681 Sandra Loosemore <sandra@codesourcery.com>
682
683 * config.gcc (powerpc-*): Allow native for with-cpu.
684
2343af65
JL
6852013-05-24 Jeff Law <law@redhat.com>
686
687 PR tree-optimization/57124
688 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
689 conversion feeding a condition if the range has an overflow
690 if -fstrict-overflow. Add warnings for when we do make the
691 transformation.
692
3ad695b9
DC
6932013-05-24 Dehao Chen <dehao@google.com>
694
04960246 695 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
696 (locus_discrim_hasher): Likewise.
697 (locus_discrim_hasher::hash): Likewise.
698 (locus_discrim_hasher::equal): Likewise.
699
82338059
MJ
7002013-05-24 Martin Jambor <mjambor@suse.cz>
701
702 PR tree-optimization/57294
703 * cgraph.h (ipa_record_stmt_references): Declare.
704 * cgraphbuild.c (ipa_record_stmt_references): New function.
705 (build_cgraph_edges): Use ipa_record_stmt_references.
706 (rebuild_cgraph_edges): Likewise.
707 (cgraph_rebuild_references): Likewise.
708 * ipa-prop.c (ipa_modify_call_arguments): Discard references
709 associated with the old statement and build references from the
710 newly built statements.
711 * ipa-ref.c (ipa_remove_stmt_references): New function.
712 * ipa-ref.h (ipa_remove_stmt_references): Declare.
713
1ccd4874
VM
7142013-05-24 Vladimir Makarov <vmakarov@redhat.com>
715
716 * lra-constraints.c (emit_spill_move): Use smaller mode for
717 mem-mem moves.
718 (check_and_process_move): Consider mem-reg moves for secondary
719 too.
720 (curr_insn_transform): Don't lose insns emitted before for
721 secondary memory moves.
722 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
723 reg set up in the current insn.
724
25e25c73
DC
7252013-05-24 Dehao Chen <dehao@google.com>
726
04960246 727 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
728 hash function.
729 (locus_descrim_hasher::equal): Likewise.
04960246 730 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
731 (make_edges): Likewise.
732 (next_discriminator_for_locus): Likewise.
733 (same_line_p): Likewise.
734 (assign_discriminators): Likewise.
735 (make_cond_expr_edges): Likewise.
736 (make_gimple_switch_edges): Likewise.
737 (make_goto_expr_edges): Likewise.
738 (make_gimple_asm_edges): Likewise.
739
50d38551
IB
7402013-05-24 Ian Bolton <ian.bolton@arm.com>
741
742 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
743 X format specifier to only display bottom 16 bits.
744 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
745 immediate to match for operand 2, since it will be masked.
746
aea0101d
RB
7472013-05-24 Richard Biener <rguenther@suse.de>
748
749 PR tree-optimization/57287
750 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
751 all SSA names that occur in abnormal PHIs.
752
634e03d3
AI
7532013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
754
755 PR tree-ssa/57385
756 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
757 that index is not negative.
758
b17c024f
EB
7592013-05-24 Eric Botcazou <ebotcazou@adacore.com>
760
761 PR rtl-optimization/55177
762 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
763 (simplify_byte_swapping_operation): New.
764 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
765 (simplify_relational_operation_1): Deal with BSWAP.
766
46aeac1b
RH
7672013-05-23 Richard Henderson <rth@redhat.com>
768
769 PR target/56742
770 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
771 (ix86_reorg): Call it.
772
70cc1536
UB
7732013-05-23 Uros Bizjak <ubizjak@gmail.com>
774
775 PR target/57379
776 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
777 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
778 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
779
b3851501
CB
7802013-05-23 Christian Bruel <christian.bruel@st.com>
781
782 PR debug/57351
783 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
784
4e194912
CSS
7852013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
786 Marcus Shawcroft <marcus.shawcroft@arm.com>
787
788 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
789 * config/aarch64/constraints.md (Usa): Remove.
790 * doc/md.texi (AArch64 Usa): Remove.
791
83f8c414
CSS
7922013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
793 Marcus Shawcroft <marcus.shawcroft@arm.com>
794
795 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
796 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
797 * config/aarch64/predicates.md (aarch64_const_address): Remove.
798 (aarch64_mov_operand): Use aarch64_mov_operand_p.
799
b5574232
VP
8002013-05-23 Vidya Praveen <vidyapraveen@arm.com>
801
802 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
803 instruction (AdvSIMD).
804 * config/aarch64/aarch64-builtins.c
805 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
806 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
807
76c36cb1 8082013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
809
810 PR middle-end/57347
811 * tree.h (contains_bitfld_component_ref_p): Declare.
812 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
813 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
814 caller.
7d2fb524
MJ
815 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
816 not access a bit-field. Assert all final offsets are byte-aligned.
817
ce521ae6
RB
8182013-05-23 Richard Biener <rguenther@suse.de>
819
820 PR tree-optimization/57380
821 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
822 least one invariant or re-used load.
823 * passes.c (init_optimization_passes): Move pass_phiprop before
824 pass_forwprop.
825
75c7257f
JG
8262013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
827
828 * config/aarch64/aarch64-simd.md
829 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
830
af6d44b5
RB
8312013-05-23 Richard Biener <rguenther@suse.de>
832
833 PR middle-end/57381
834 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
835 OEP_CONSTANT_ADDRESS_OF retained.
836
bd3647bf
JJ
8372013-05-23 Jakub Jelinek <jakub@redhat.com>
838
839 PR middle-end/57344
70cc1536
UB
840 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
841 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 842
a55757ea
RB
8432013-05-23 Richard Biener <rguenther@suse.de>
844
845 PR rtl-optimization/57341
846 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
847 instead of true_dependence.
848
cfb00b41
DM
8492013-05-22 David Malcolm <dmalcolm@redhat.com>
850
dd1c676f
DM
851 * bb-reorder.c (branch_threshold): Make const.
852 (exec_threshold): Ditto.
cfb00b41 853
f62511da
MM
8542013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
855 Pat Haugen <pthaugen@us.ibm.com>
856 Peter Bergner <bergner@vnet.ibm.com>
857
858 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
859 documentation for the power8 crypto builtins.
860
861 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
862
863 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
864 macros for defining power8 builtin functions.
865 (BU_P8V_AV_2): Likewise.
866 (BU_P8V_AV_P): Likewise.
867 (BU_P8V_VSX_1): Likewise.
868 (BU_P8V_OVERLOAD_1): Likewise.
869 (BU_P8V_OVERLOAD_2): Likewise.
870 (BU_CRYPTO_1): Likewise.
871 (BU_CRYPTO_2): Likewise.
872 (BU_CRYPTO_3): Likewise.
873 (BU_CRYPTO_OVERLOAD_1): Likewise.
874 (BU_CRYPTO_OVERLOAD_2): Likewise.
875 (XSCVSPDP): Fix typo, point to the correct instruction.
876 (VCIPHER): Add power8 crypto builtins.
877 (VCIPHERLAST): Likewise.
878 (VNCIPHER): Likewise.
879 (VNCIPHERLAST): Likewise.
880 (VPMSUMB): Likewise.
881 (VPMSUMH): Likewise.
882 (VPMSUMW): Likewise.
883 (VPERMXOR_V2DI): Likewise.
884 (VPERMXOR_V4SI: Likewise.
885 (VPERMXOR_V8HI: Likewise.
886 (VPERMXOR_V16QI: Likewise.
887 (VSHASIGMAW): Likewise.
888 (VSHASIGMAD): Likewise.
889 (VPMSUM): Likewise.
890 (VPERMXOR): Likewise.
891 (VSHASIGMA): Likewise.
892
893 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
894 __CRYPTO__ if the crypto instructions are available.
895 (altivec_overloaded_builtins): Add support for overloaded power8
896 builtins.
897
898 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
899 support for power8 crypto builtins.
900 (builtin_function_type): Likewise.
901 (altivec_init_builtins): Add support for builtins that take vector
902 long long (V2DI) arguments.
903
904 * config/rs6000/crypto.md: New file, define power8 crypto
905 instructions.
906
9072013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
908 Pat Haugen <pthaugen@us.ibm.com>
909 Peter Bergner <bergner@vnet.ibm.com>
910
911 * doc/invoke.texi (Option Summary): Add power8 options.
912 (RS/6000 and PowerPC Options): Likewise.
913
914 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
915 constraints.md instead of rs6000.h. Reorder w* constraints. Add
916 wm, wn, wr documentation.
917
918 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
919 registers if direct move instructions are enabled.
920 (wn): New constraint for no registers.
921 (wq): New constraint for quad word even GPR registers.
922 (wr): New constraint if 64-bit instructions are enabled.
923 (wv): New constraint if power8 vector instructions are enabled.
924 (wQ): New constraint for quad word memory locations.
925
926 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
927 constraint for 0..15 for crypto instructions.
928 (gpc_reg_operand): If VSX allow registers in VSX registers as well
929 as GPR and floating point registers.
930 (int_reg_operand): New predicate to match only GPR registers.
931 (base_reg_operand): New predicate to match base registers.
932 (quad_int_reg_operand): New predicate to match even GPR registers
933 for quad memory operations.
934 (vsx_reg_or_cint_operand): New predicate to allow vector logical
935 operations in both GPR and VSX registers.
936 (quad_memory_operand): New predicate for quad memory operations.
937 (reg_or_indexed_operand): New predicate for direct move support.
938
939 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
940 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
941 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
942 (POWERPC_MASKS): Add power8 options.
943 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
944 various options.
945
946 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
947 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
948
949 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
950 (-mpower8-fusion): New power8 options.
951 (-mpower8-fusion-sign): Likewise.
952 (-mpower8-vector): Likewise.
953 (-mcrypto): Likewise.
954 (-mdirect-move): Likewise.
955 (-mquad-memory): Likewise.
956
957 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
958 power8.
959 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
960 registers.
70cc1536 961 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
962 (rs6000_debug_vector_unit): Add p8_vector.
963 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
964 definitions. Also print fusion state.
965 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
966 (rs6000_builtin_mask_calculate): Add power8 builtin support.
967 (rs6000_option_override_internal): Add support for power8.
968 (rs6000_common_init_builtins): Add debugging for skipped builtins
969 if -mdebug=builtin.
970 (rs6000_adjust_cost): Add power8 support.
971 (rs6000_issue_rate): Likewise.
972 (insn_must_be_first_in_group): Likewise.
973 (insn_must_be_last_in_group): Likewise.
974 (force_new_group): Likewise.
975 (rs6000_register_move_cost): Likewise.
976 (rs6000_opt_masks): Likewise.
977
978 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
979 power8 capable assembler, default to power7 options.
980 (TARGET_DIRECT_MOVE): Likewise.
981 (TARGET_CRYPTO): Likewise.
982 (TARGET_P8_VECTOR): Likewise.
983 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
984 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
985 (VECTOR_MEM_P8_VECTOR_P): Likewise.
986 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
987 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
988 (TARGET_XSCVDPSPN): Likewise.
989 (TARGET_XSCVSPDPN): Likewsie.
990 (TARGET_SYNC_HI_QI): Likewise.
991 (TARGET_SYNC_TI): Likewise.
992 (MASK_CRYPTO): Likewise.
993 (MASK_DIRECT_MOVE): Likewise.
994 (MASK_P8_FUSION): Likewise.
995 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
996 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
997 temporary used by some of the direct move instructions to get two FP
998 temporary registers does not force creation of a stack frame.
f62511da
MM
999 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1000 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1001 that any VSX registers are tieable, even if they are also an
1002 Altivec vector mode.
1003 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1004 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1005 (RS6000_BTM_CRYPTO): Likewise.
1006 (RS6000_BTM_COMMON): Likewise.
1007
1008 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1009 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1010 (enum rs6000_vector): Add power8 vector support.
1011
73a1a707
RR
10122013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1013
1014 PR target/19599
1015 PR target/57340
1016 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1017 (any_sibcall_could_use_r3): this and handle indirect calls.
1018 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1019
d28073d4
BS
10202013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1021
1022 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1023
bee0b10c
RB
10242013-05-22 Richard Biener <rguenther@suse.de>
1025
1026 PR middle-end/57349
1027 * profile.c (branch_prob): Do not split blocks that are
1028 abnormally receiving from ECF_RETURNS_TWICE functions.
1029
98409b51
RS
10302013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1031
1032 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1033 address mode. Move pointer mode initialization to the same place.
1034
c0602ab8
MZ
10352013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1036
1037 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1038 while it has any effect.
1039
4f7a634e
ER
10402013-05-21 Easwaran Raman <eraman@google.com>
1041
1042 PR tree-optimization/57322
9daf6dbb
ER
1043 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1044 UID of the statement added to the BB to be 1.
4f7a634e 1045
a4ce1258
JJ
10462013-05-21 Jakub Jelinek <jakub@redhat.com>
1047
1048 PR tree-optimization/57331
70cc1536
UB
1049 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1050 of conversion from pointer type to integral type with integer.
a4ce1258 1051
1b14621a
MJ
10522013-05-21 Martin Jambor <mjambor@suse.cz>
1053
1054 PR lto/57289
1055 * ipa-prop.c (ipa_read_node_info): Process param_used and
1056 controlled_uses in the same order as when writing.
1057
e60661f0
MG
10582013-05-21 Magnus Granberg <baldrick@free.fr>
1059
1060 PR plugins/56754
ee49aa34 1061 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 1062
4a61be9a
RB
10632013-05-21 Richard Biener <rguenther@suse.de>
1064
1065 PR tree-optimization/57318
1066 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1067 estimate stmts with side-effects as likely eliminated.
1068
c52da5f7
RB
10692013-05-21 Richard Biener <rguenther@suse.de>
1070
1071 PR tree-optimization/57330
1072 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1073 preserve the call stmts fntype.
1074
7ec67e2a
RB
10752013-05-21 Richard Biener <rguenther@suse.de>
1076
1077 PR tree-optimization/57303
1078 * tree-ssa-sink.c (statement_sink_location): Improve killing
1079 stmt detection and properly handle self-assignments.
1080
b112d513
CB
10812013-05-21 Christian Bruel <christian.bruel@st.com>
1082
1083 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1084 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1085 registers. Set register size out of the PARALLEL loop.
1086
14c2ec26
OE
10872013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1088
1089 PR target/56547
1090 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1091 (*fmasf4, *fmasf4_media): New insns.
1092
da734fa1
RS
10932013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1094
1095 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1096 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1097 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1098 (mips_idiv_insns): Update the comments to say that the returned
1099 instruction counts are in units of BASE_INSN_LENGTH.
1100 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1101 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1102 using 2 rather than 4 as the length of indirect MIPS16 and
1103 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1104 length of a NOP. Don't divide MIPS16 lengths by 2.
1105 (mips16_split_long_branches): Assume a branch is long if the
1106 length is greater than 4 rather than 8.
1107 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1108 rather than multiplying them by 2. Multiply instruction counts
1109 by BASE_INSN_LENGTH rather than 4.
1110 (*jump_mips16, tls_get_tp_mips16_<mode>)
1111 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1112
13719e8b
RS
11132013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1114
1115 * config/mips/mips.md (extended_mips16): Remove branch case.
1116 (length): Remove duplicated extended_mips16 test.
1117
c3850d14
RS
11182013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1119
1120 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1121
8da2e059
RS
11222013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1123
1124 * recog.h (Recog_data): Rename to...
1125 (recog_data_d): ...this.
1126 (recog_data): Update accordingly.
1127 * recog.c (recog_data): Likewise.
1128 * reload.c (save_recog_data): Likewise.
1129 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1130 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1131
2df013f3
JB
11322013-05-17 Julian Brown <julian@codesourcery.com>
1133
1134 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1135 found in a REG_EQUAL note, invalidate it.
1136
933f507d
ER
11372013-05-17 Easwaran Raman <eraman@google.com>
1138
1139 * tree-ssa-reassoc.c (find_insert_point): New function.
1140 (insert_stmt_after): Likewise.
1141 (get_def_stmt): Likewise.
1142 (ensure_ops_are_available): Likewise.
1143 (not_dominated_by): Likewise.
1144 (rewrite_expr_tree): Do not move statements beyond what is
1145 necessary. Remove call to swap_ops_for_binary_stmt...
1146 (reassociate_bb): ... and move it here.
1147 (build_and_add_sum): Assign UIDs for new statements.
1148 (linearize_expr): Likewise.
1149 (do_reassoc): Renumber gimple statement UIDs.
1150
e01c7cca
JH
11512013-05-17 Jan Hubicka <jh@suse.cz>
1152
1153 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1154 weakrefs.
1155 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
1156 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1157 weakrefs.
e01c7cca
JH
1158 (output_weakrefs): Update.
1159
c3272a92
PCC
11602013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1161 Martin Jambor <mjambor@suse.cz>
1162
1163 PR middle-end/57276
1164 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1165 value that corresponds to the given aggval is found in values vector.
1166
11c2aa39
UB
11672013-05-17 Uros Bizjak <ubizjak@gmail.com>
1168
1169 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1170 sse, sse2, sse3, ssse3 and sse4a flags to options.
1171
abecc8c6
DM
11722013-05-17 David Malcolm <dmalcolm@redhat.com>
1173
1174 * gengtype-state.c: (s_expr_writer): New class, to handle
1175 prettifying of output layout of s-expressions.
1176 (state_writer): New class, to write out gtype.state.
1177 (state_written_type_count): Move this variable into member data of
1178 state_writer.
1179 (s_expr_writer::s_expr_writer): New code: constructor for new class
1180 (state_writer::state_writer(): ditto
1181 (s_expr_writer::write_new_line): New function
1182 (s_expr_writer::write_any_indent): ditto
1183 (s_expr_writer::begin_s_expr): ditto
1184 (s_expr_writer::end_s_expr): ditto
1185 (write_state_fileloc): convert to method of state_writer...
1186 (state_writer:: write_state_fileloc): ...and use methods of
1187 s_expr_writer to write indentation into the gtype.state output file
1188 to visually represent the hierarchical structure of the list
1189 structures
1190 (write_state_fields): ditto, renaming to...
1191 (state_writer::write_state_fields)
1192 (write_state_a_string): ditto, renaming to...
1193 (state_writer::write_state_a_string)
1194 (write_state_string_option): ditto, renaming to...
1195 (state_writer::write_state_string_option)
1196 (write_state_type_option): ditto, renaming to...
1197 (state_writer::write_state_type_option)
1198 (write_state_nested_option): ditto, renaming to...
1199 (state_writer::write_state_nested_option)
1200 (write_state_option): ditto, renaming to...
1201 (state_writer::write_state_option)
1202 (write_state_options): ditto, renaming to...
1203 (state_writer::write_state_options)
1204 (write_state_lang_bitmap): ditto, renaming to...
1205 (state_writer::write_state_lang_bitmap)
1206 (write_state_version): ditto, renaming to...
1207 (state_writer::write_state_version)
1208 (write_state_scalar_type): ditto, renaming to...
1209 (state_writer::write_state_scalar_type)
1210 (write_state_string_type): ditto, renaming to...
1211 (state_writer::write_state_string_type)
1212 (write_state_undefined_type): ditto, renaming to...
1213 (state_writer::write_state_undefined_type)
1214 (write_state_struct_union_type): ditto, renaming to...
1215 (state_writer::write_state_struct_union_type)
1216 (write_state_struct_type): ditto, renaming to...
1217 (state_writer::write_state_struct_type)
1218 (write_state_user_struct_type): ditto, renaming to...
1219 (state_writer::write_state_user_struct_type)
1220 (write_state_lang_struct_type): ditto, renaming to...
1221 (state_writer::write_state_lang_struct_type)
1222 (write_state_param_struct_type): ditto, renaming to...
1223 (state_writer::write_state_param_struct_type)
1224 (write_state_pointer_type): ditto, renaming to...
1225 (state_writer::write_state_pointer_type)
1226 (write_state_array_type): ditto, renaming to...
1227 (state_writer::write_state_array_type)
1228 (write_state_gc_used): ditto, renaming to...
1229 (state_writer::write_state_gc_used)
1230 (write_state_common_type_content): ditto, renaming to...
1231 (state_writer::write_state_common_type_content)
1232 (write_state_type): ditto, renaming to...
1233 (state_writer::write_state_type)
1234 (write_state_pair_list): ditto, renaming to...
1235 (state_writer::write_state_pair_list)
1236 (write_state_pair): ditto, renaming to...
1237 (state_writer::write_state_pair)
1238 (write_state_typedefs): ditto, renaming to...
1239 (state_writer::write_state_typedefs)
1240 (write_state_structures): ditto, renaming to...
1241 (state_writer::write_state_structures)
1242 (write_state_param_structs): ditto, renaming to...
1243 (state_writer::write_state_param_structs)
1244 (write_state_variables): ditto, renaming to...
1245 (state_writer::write_state_variables)
1246 (write_state_srcdir): ditto, renaming to...
1247 (state_writer::write_state_srcdir)
1248 (write_state_files_list): ditto, renaming to...
1249 (state_writer::write_state_files_list)
1250 (write_state_languages): ditto, renaming to...
1251 (state_writer::write_state_languages)
1252 (write_state): create a state_writer instance and use it when
1253 writing out the state file
1254
d6545f29
MS
12552013-05-17 Mike Stump <mikestump@comcast.net>
1256
816a3f73 1257 PR rtl-optimization/57304
d6545f29
MS
1258 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1259 accessing DF_REF_REAL_LOC.
1260
38c821cf
JJ
12612013-05-17 Jakub Jelinek <jakub@redhat.com>
1262
1263 PR rtl-optimization/57281
1264 PR rtl-optimization/57300
1265 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1266 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1267 what the other splitter did if the registers are dead.
1268
2a293391
RB
12692013-05-17 Richard Biener <rguenther@suse.de>
1270
1271 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1272 MEM_REF offsets.
1273
17042d2b
JJ
12742013-05-17 Jakub Jelinek <jakub@redhat.com>
1275
1276 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1277 linking.
1278
5b115c1f
MP
12792013-05-17 Marek Polacek <polacek@redhat.com>
1280
11c2aa39
UB
1281 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1282 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 1283
52d84413
JJ
12842013-05-17 Jakub Jelinek <jakub@redhat.com>
1285
68119618
JJ
1286 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1287 vect_external_def oprnd1 with loop_vinfo, try to emit
1288 optional cast, negation and and stmts on the loop preheader
1289 edge instead of into the pattern def seq.
1290
52d84413
JJ
1291 PR tree-optimization/57051
1292 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1293 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1294
17b962bd
NC
12952013-05-16 Nick Clifton <nickc@redhat.com>
1296
1297 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1298 (rl78_is_naked_func): New function.
1299 (rl78_expand_prologue): Skip prologue generation for naked
1300 functions.
1301 (rl78_expand_epilogue): Skip epilogue generation for naked
1302 functions.
1303 * doc/extend.texi (naked): Add RL78 to the list of processors
1304 that supports this attribute.
1305
b1a0f84e
JL
13062013-05-16 Jeff Law <law@redhat.com>
1307
1308 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1309
af0e415b
UB
13102013-05-16 Uros Bizjak <ubizjak@gmail.com>
1311
1312 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1313 cache parameters using detect_caches_amd also for CYRIX,
1314 NSC and TM2 signatures.
1315
19db293a
UB
13162013-05-16 Uros Bizjak <ubizjak@gmail.com>
1317 Dzianis Kahanovich <mahatma@eu.by>
1318
1319 PR target/45359
1320 PR target/46396
1321 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1322 VIA/Centaur processors and determine their cache parameters
1323 using detect_caches_amd.
1324
251a41b9
TJ
13252013-05-16 Teresa Johnson <tejohnson@google.com>
1326
1327 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1328 (rtl_verify_edges): New function.
1329 (rtl_verify_bb_insns): Ditto.
1330 (rtl_verify_bb_pointers): Ditto.
1331 (rtl_verify_bb_insn_chain): Ditto.
1332 (rtl_verify_fallthru): Ditto.
1333 (rtl_verify_bb_layout): Ditto.
1334 (rtl_verify_flow_info_1): Outline checks into new functions.
1335 (rtl_verify_flow_info): Ditto.
1336
f14540b6
SE
13372013-05-16 Steve Ellcey <sellcey@imgtec.com>
1338
1339 * cfghooks.c (copy_bbs): Add update_dominance argument.
1340 * cfghooks.h (copy_bbs): Update prototype.
1341 * tree-cfg.c (gimple_duplicate_sese_region):
1342 Add update_dominance argument.
1343 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1344 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1345 gimple_duplicate_sese_region call.
1346 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1347 Update copy_bbs call.
1348 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1349 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1350
7e9a3abb
JJ
13512013-05-16 Jakub Jelinek <jakub@redhat.com>
1352
1353 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1354 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1355 vect_recog_rotate_pattern.
1356 (vect_recog_rotate_pattern): New function.
1357
427b248d
JM
13582013-05-16 Jason Merrill <jason@redhat.com>
1359
1360 * Makefile.in (LLINKER): New variable.
1361 (mostlyclean): Remove link mutex.
1362 * configure.ac: Handle --enable-link-mutex.
1363 * lock-and-run.sh: New script.
1364
b871e3d2
RR
13652013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1366
1367 PR target/19599
1368 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1369 for NULL decl.
1370
ce858126
RO
13712013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1372
1373 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1374
798d3d04
GY
13752013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1376
1377 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1378 * config/arm/arm.c (next_consecutive_mem): New function.
1379 (gen_movmem_ldrd_strd): Likewise.
1380 * config/arm/arm.md (movmemqi): Update condition and code.
1381 (unaligned_loaddi, unaligned_storedi): New patterns.
1382
0baddc45
RO
13832013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1384
1385 * config.gcc: Obsolete *-*-solaris2.9*.
1386 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1387
aa9d5bcf
RB
13882013-05-16 Richard Biener <rguenther@suse.de>
1389
1390 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1391 earlier, after GRAPHITE transforms and IV canonicalization.
1392
5a0f4dd3
JJ
13932013-05-16 Jakub Jelinek <jakub@redhat.com>
1394
1395 * omp-low.c (extract_omp_for_data): For collapsed loops,
1396 if at least one of the loops is known at compile time to
1397 iterate zero times, set count to 0.
1398 (expand_omp_regimplify_p): New function.
1399 (expand_omp_for_generic): For collapsed loops, if at least
1400 one of the loops isn't known to iterate at least once,
1401 add runtime check with setting count to 0.
1402 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1403 For unsigned types if it isn't known at compile time that
1404 the loop will iterate at least once, add runtime check to bypass
1405 the whole loop if initial condition isn't true.
1406
e3753785
NS
14072013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1408
1409 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1410
43bb4dd1
MG
14112013-05-16 Marc Glisse <marc.glisse@inria.fr>
1412
1413 PR middle-end/57286
1414 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1415 transformations to avoid an infinite loop.
1416
3571dde6
MP
14172013-05-16 Marek Polacek <polacek@redhat.com>
1418
1419 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1420
b8b3f0ca
LE
14212013-05-15 Leif Ekblad <leif@rdos.net>
1422
1423 * config/i386/i386.c (ix86_decompose_address): Use
1424 DEFAULT_TLS_SEG_REG to access TLS segment register.
1425 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1426 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1427 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1428
e299a383
RS
14292013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1430
1431 PR target/57260
1432 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1433 sibling calls to functions that would normally be lazily bound,
1434 unless $gp is call-clobbered.
1435
e7208ea3
UB
14362013-05-15 Uros Bizjak <ubizjak@gmail.com>
1437
19db293a 1438 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 1439 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
1440 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1441 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
1442 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1443 of TARGET_3DNOW.
1444 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1445
e7413f3d
AS
14462013-05-15 Andreas Schwab <schwab@suse.de>
1447
1448 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1449 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1450 third operand.
1451
ad4db775
TJ
14522013-05-15 Teresa Johnson <tejohnson@google.com>
1453
1454 * loop-unroll.c (report_unroll_peel): Check decision before
1455 emitting unroll/peel message.
1456
af205f67
TJ
14572013-05-15 Teresa Johnson <tejohnson@google.com>
1458
1459 * function.h (has_bb_partition): New rtl_data flag.
1460 (bb_reorder_complete): Ditto.
1461 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1462 instead of flag_reorder_blocks_and_partition.
1463 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1464 with some enhancements.
1465 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1466 * bb-reorder.c (connect_traces): Check for has_bb_partition
1467 instead of flag_reorder_blocks_and_partition.
1468 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1469 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1470 verify_hot_cold_block_grouping.
1471 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1472
9adcfa3c
RR
14732013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1474
1475 PR target/19599
1476 * config/arm/predicates.md (call_insn_operand): New predicate.
1477 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1478 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1479 if insn is not a tail call.
1480 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1481 registers.
1482 * config/arm/arm.h (enum reg_class): New caller save register class.
1483 (REG_CLASS_NAMES): Likewise.
1484 (REG_CLASS_CONTENTS): Likewise.
1485 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1486 without decls.
1487
ccb3ad87
RB
14882013-05-15 Richard Biener <rguenther@suse.de>
1489
1490 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1491 of MSG_OPTIMIZED_LOCATIONS.
1492 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1493 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1494 message.
1495 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1496 of MSG_OPTIMIZED_LOCATIONS.
1497 (execute_vect_slp): Likewise.
1498 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1499 (vect_create_cond_for_alias_checks): Likewise.
1500 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1501 (vect_recog_widen_mult_pattern): Likewise.
1502 (vect_recog_widen_sum_pattern): Likewise.
1503 (vect_recog_over_widening_pattern): Likewise.
1504 (vect_recog_widen_shift_pattern): Likewise.
1505 (vect_recog_vector_vector_shift_pattern): Likewise.
1506 (vect_recog_divmod_pattern): Likewise.
1507 (vect_recog_mixed_size_cond_pattern): Likewise.
1508 (vect_recog_bool_pattern): Likewise.
1509 (vect_pattern_recog_1): Likewise.
1510
48b1474e
MJ
15112013-05-15 Martin Jambor <mjambor@suse.cz>
1512
1513 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1514 non-functions to builtin_unreachable.
1515 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1516 correct when new direct edges were discovered.
1517
9de04252
MJ
15182013-05-15 Martin Jambor <mjambor@suse.cz>
1519
1520 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1521 header, print symbol order instead of node uid, print more information
1522 about indirect edge targets.
1523 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1524 uids.
1525 (ipa_make_edge_direct_to_target): Likewise.
1526 (remove_described_reference): Likewise.
1527 (propagate_controlled_uses): Likewise.
1528 (ipa_print_node_params): Also print symbol order.
1529 (ipcp_transform_function): Print symbol order instead of node uids.
1530 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1531 (cgraph_get_create_real_symbol_node): Likewise.
1532 * ipa-cp.c (print_lattice): Likewise.
1533 (print_all_lattices): Likewise.
1534 (determine_versionability): Likewise.
1535 (initialize_node_lattices): Likewise.
1536 (estimate_local_effects): Likewise.
1537 (update_profiling_info): Likewise.
1538 (create_specialized_node): Likewise.
1539 (perhaps_add_new_callers): Likewise.
1540 (decide_about_value): Likewise.
1541 (decide_whether_version_node): Likewise.
1542 (identify_dead_nodes): Likewise.
1543 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1544 (dump_inline_summary): Likewise.
1545 (estimate_node_size_and_time): Likewise.
1546 (inline_analyze_function): Likewise.
1547 * ipa-inline.c (report_inline_failed_reason): Likewise.
1548 (want_early_inline_function_p): Likewise.
1549 (edge_badness): Likewise.
1550 (update_edge_key): Likewise.
1551 (inline_small_functions): Likewise. Add dumping of order to two other
1552 dumps.
1553 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1554 instead of node uids.
1555 (propagate_pure_const): Likewise.
1556 (propagate_pure_const): Likewise.
1557 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1558 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1559 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1560 of node uids.
1561 * tree-pretty-print.c (dump_function_header): Likewise.
1562 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1563 Print symbol order instead of node uids.
1564
1dd03b91
AK
15652013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1566
1567 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1568 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1569
fdf6a7b9
RB
15702013-05-15 Richard Biener <rguenther@suse.de>
1571
1572 PR tree-optimization/57275
1573 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1574 return value for fail to do runtime alias checks for gather loads.
1575
2d6e4603
JH
15762013-05-15 Jan Hubicka <jh@suse.cz>
1577
1578 PR lto/57038
1579 PR lto/47375
e7208ea3
UB
1580 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1581 weakrefs are not external.
1582 (lto_symtab_merge_decls): Fix thinko when dealing with
1583 non-lto_symtab decls.
2d6e4603
JH
1584 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1585 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1586 * varpool.c (dump_varpool_node): Dump more flags.
1587
83f44b39
GG
15882013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1589
1590 * config/i386/i386.c (processor_alias_table): Add instruction
1591 FSGSBASE for AMD bdver3 architecture.
1592
2e55d062
JJ
15932013-05-14 Jakub Jelinek <jakub@redhat.com>
1594
1595 * tree.c (warn_deprecated_use): Print file:line using locus color.
1596 * diagnostic.c (diagnostic_report_current_module): Print file:line
1597 and file:line:column using locus color.
1598
0bfdb81e
MS
15992013-05-14 Mike Stump <mikestump@comcast.net>
1600
1601 * gdbinit.in: Add __null.
1602
a508ef22
MS
16032013-05-14 Mike Stump <mikestump@comcast.net>
1604
1605 * recog.h: Rename struct recog_data to Recog_data.
1606 * recog.c: Likewise.
1607 * reload.c (can_reload_into): Likewise.
1608 * config/picochip/picochip.c: Likewise.
1609
e7180acb
MS
16102013-05-14 Mike Stump <mikestump@comcast.net>
1611
1612 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1613
61216c26
SB
16142013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1615
fd6beed4
SB
1616 * resource.h (struct resources): Remove unch_memory member.
1617 (CLEAR_RESOURCE): Don't clear unch_memory.
1618 * resource.c (mark_referenced_resources): Don't set it.
1619 (mark_set_resources): Likewise.
1620 (mark_target_live_regs): Don't clear it.
1621 (init_resource_info): Likewise.
1622 * reorg.c (resource_conflicts_p): Don't compare it.
1623 (redundant_insn): Don't set it.
1624
61216c26
SB
1625 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1626 Remove prototypes.
1627 * emit-rtl.c (next_label): Remove unused function.
1628 (skip_consecutive_labels, link_cc0_insns): Move to ...
1629 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1630 only place where these functions are used, and make them static.
1631
418d1b87
MG
16322013-05-14 Marc Glisse <marc.glisse@inria.fr>
1633
1634 * fold-const.c (fold_negate_expr): Handle vectors.
1635 (fold_truth_not_expr): Make it static.
1636 (fold_invert_truthvalue): New static function.
1637 (invert_truthvalue_loc): Handle vectors. Do not call
1638 fold_truth_not_expr directly.
1639 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1640 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1641 (fold_comparison): Handle vector constants.
1642 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1643 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1644 * tree.h (fold_truth_not_expr): Remove declaration.
1645
fc21784d
JG
16462013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1647
1648 * config/aarch64/aarch64-simd.md
1649 (aarch64_vcond_internal<mode>): Rename to...
1650 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1651 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1652 float modes. Clarify all iterator modes.
1653 (vcond<mode><mode>): Use new name for vcond expanders.
1654 (vcond<v_cmp_result><mode>): Likewise.
1655 (vcondu<mode><mode>: Likewise.
1656 * config/aarch64/iterators.md (VDQF_COND): New.
1657
d4c52634
MG
16582013-05-14 Marc Glisse <marc.glisse@inria.fr>
1659
1660 PR bootstrap/57266
1661 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1662 variable for the shift amount. Check that we shift by non-negative
1663 amounts.
1664
2b261262
CLT
16652013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1666
1667 PR target/42017
1668 * config/arm/arm.h (EPILOGUE_USES): Only return true
1669 for LR_REGNUM after epilogue_completed.
1670
6e022d7b
JR
16712013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1672
1673 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1674 is error_mark_node.
6e022d7b 1675
56cf7859
RO
16762013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1677
1678 PR target/57261
1679 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1680 and Solaris 11+/x86 with gld.
1681 * configure: Regenerate.
1682
75776c6d
JJ
16832013-05-14 Jakub Jelinek <jakub@redhat.com>
1684
1685 * expmed.c (expand_shift_1): Canonicalize rotates by
1686 constant bitsize / 2 to bitsize - 1.
1687 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
1688 case ROTATERT>: Likewise.
1689
1690 Revert:
1691 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1692
1693 * config/i386/i386.md (rotateinv): New code attr.
1694 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1695 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1696 roll $31, %eax, etc.
1697
df35498a
RB
16982013-05-14 Richard Biener <rguenther@suse.de>
1699
1700 PR middle-end/57235
1701 * tree-eh.c (sink_clobbers): Give up for successors with
1702 multiple predecessors and no virtual uses.
1703
cc6e7ece
EB
17042013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1705
1706 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1707 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1708
f778dd4d
JJ
17092013-05-14 Jakub Jelinek <jakub@redhat.com>
1710
1711 PR middle-end/57251
1712 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1713 the case when both op0 and op1 have VOIDmode.
1714
bad4df9b
KP
17152013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1716
1717 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1718 in multiply-accumulate mode.
1719
56f3e9ac
GW
17202013-05-13 Guozhi Wei <carrot@google.com>
1721
1722 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1723
a3d7ab92
KT
17242013-05-13 Kai Tietz <ktietz@redhat.com>
1725
1726 PR target/56975
1727 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1728 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1729 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1730 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1731 (ix86_expand_prologue): Likewise.
1732 (ix86_expand_split_stack_prologue): Likewise.
1733 (legitimate_pic_address_disp_p): Likewise.
1734 (legitimize_pic_address): Likewise.
1735 (legitimize_tls_address): Likewise.
1736 (legitimize_pe_coff_symbol): Likewise.
1737 (output_pic_addr_const): Likewise.
1738 (construct_plt_address): Likewise.
1739 (ix86_expand_call): Likewise.
1740 (x86_output_mi_thunk): Likewise.
1741 (x86_function_profiler): Likewise.
1742
c59b7e28
SN
17432013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1744
1745 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1746 similar switch cases.
1747 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1748 (aarch64_simd_mov_to_<mode>low): Delete.
1749 (aarch64_simd_mov_to_<mode>high): Delete.
1750 (move_lo_quad_<mode>): Add w<-r alternative.
1751 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1752 (aarch64_simd_mov_from_*): Update type attribute.
1753 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1754 statement.
1755
5f28524a
JH
17562013-05-13 Jan Hubicka <jh@suse.cz>
1757
1758 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1759 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1760 ix86_expand_epilogue, emit_i387_cw_initialization,
1761 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1762 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1763
ae6fa899
JJ
17642013-05-13 Jakub Jelinek <jakub@redhat.com>
1765
1766 PR tree-optimization/45216
1767 PR tree-optimization/57157
1768 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1769 the (-Y) & (B - 1) variant if OP is |.
1770 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1771 return shifted. Use (-op1) & (prec - 1) as other_amount
1772 instead of prec - op1.
1773
4502fe8d
MJ
17742013-05-13 Martin Jambor <mjambor@suse.cz>
1775
1776 PR middle-end/42371
1777 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1778 (ipa_constant_data): New type.
1779 (ipa_jump_func): Use ipa_constant_data to hold information about
1780 constant jump functions.
1781 (ipa_get_jf_constant): Adjust to jump function type changes.
1782 (ipa_get_jf_constant_rdesc): New function.
1783 (ipa_param_descriptor): New field controlled_uses.
1784 (ipa_get_controlled_uses): New function.
1785 (ipa_set_controlled_uses): Likewise.
1786 * ipa-ref.h (ipa_find_reference): Declare.
1787 * ipa-prop.c (ipa_cst_ref_desc): New type.
1788 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1789 changes.
1790 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1791 New parameter cs. Adjust all callers.
1792 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1793 (remove_described_reference): New function.
1794 (jfunc_rdesc_usable): Likewise.
1795 (try_make_edge_direct_simple_call): Decrement controlled use count,
1796 attempt to remove reference if it hits zero.
1797 (combine_controlled_uses_counters): New function.
1798 (propagate_controlled_uses): Likewise.
1799 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1800 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1801 (ipa_print_node_params): Print described use counter.
1802 (ipa_write_jump_function): Adjust to jump function type changes.
1803 (ipa_read_jump_function): New parameter CS, pass it to
1804 ipa_set_jf_constant. Adjust caller.
1805 (ipa_write_node_info): Stream controlled use count
1806 (ipa_read_node_info): Likewise.
1807 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1808 asserting.
1809 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1810 count. Remove cloning-added reference if it reaches zero.
1811 * ipa-ref.c (ipa_find_reference): New function.
1812
0864bfc2
GG
18132013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1814
e7208ea3 1815 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
1816 alignment values for AMD BD and BT architectures.
1817
640bfeb2
MG
18182013-05-13 Marc Glisse <marc.glisse@inria.fr>
1819
1820 * tree-vect-generic.c (uniform_vector_p): Move ...
1821 * tree.c (uniform_vector_p): ... here.
1822 * tree.h (uniform_vector_p): Declare it.
1823 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1824 into a scalar.
1825
3a60f32b
JJ
18262013-05-13 Jakub Jelinek <jakub@redhat.com>
1827
198fe1bf
JJ
1828 PR tree-optimization/57230
1829 * tree-ssa-strlen.c (handle_char_store): Record length for
1830 array store from STRING_CST.
1831
3a60f32b
JJ
1832 PR tree-optimization/57230
1833 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1834 check.
1835
566be57c
JR
18362013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1837
1838 * config/epiphany/epiphany.c (epiphany_init): Check size of
1839 NUM_MODES_FOR_MODE_SWITCHING.
1840 (epiphany_expand_prologue):
1841 Remove CONFIG_REGNUM initial value handling code.
1842 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1843 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 1844 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
1845 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1846 Don't return 1 for FP_MODE_NONE.
1847 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1848 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1849 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1850 * config/epiphany/epiphany.md (save_config): New pattern.
1851
0f2c2331
UB
18522013-05-12 Uros Bizjak <ubizjak@gmail.com>
1853
1854 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1855
5b3f93c7
UB
18562013-05-10 Uros Bizjak <ubizjak@gmail.com>
1857
1858 * config/i386/i386.md (memory): Handle sseishft1.
1859 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1860 (*vec_extractv2di_1): Ditto.
1861
1f873f0e
VM
18622013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1863
1864 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1865 saved registers.
1866
341427fa 18672013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
1868
1869 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1870 Add mthumb/march=armv7-a multilib.
1871 Add mthumb/march=armv7-r multilib.
1872 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1873
9e69bdde
RC
18742013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1875
1876 * config/v850/t-rtems: Add more multilibs.
1877
9ff09a22
RB
18782013-05-10 Richard Biener <rguenther@suse.de>
1879
1880 PR tree-optimization/57214
1881 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1882 not propagate from SSA names that occur in abnormal PHI nodes.
1883
a5e0cd1d
MG
18842013-05-10 Marc Glisse <marc.glisse@inria.fr>
1885
1886 * stor-layout.c (element_precision): New function.
1887 * machmode.h (element_precision): Declare it.
1888 * tree.c (build_minus_one_cst): New function.
1889 (element_precision): Likewise.
1890 * tree.h (build_minus_one_cst): Declare new function.
1891 (element_precision): Likewise.
1892 * fold-const.c (operand_equal_p): Use element_precision.
1893 (fold_binary_loc): Handle vector types.
1894 * convert.c (convert_to_integer): Use element_precision.
1895 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1896 separately.
1897
cb2558bc
RS
18982013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1899
1900 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1901 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1902 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1903 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1904 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1905 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1906 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1907 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1908 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1909 (Uuw8): New constraints.
1910 (Usb4): Move into alphabetical order.
1911 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1912 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1913 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1914 previously unnamed patterns.
1915 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1916 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1917 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1918 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1919 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1920 of specific lengths.
1921
cb3b8d33
JJ
19222013-05-10 Jakub Jelinek <jakub@redhat.com>
1923
6f93c008
JJ
1924 * config/i386/i386.md (rotateinv): New code attr.
1925 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1926 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1927 roll $31, %eax, etc.
1928
cb3b8d33
JJ
1929 PR tree-optimization/45216
1930 PR tree-optimization/57157
1931 * tree-ssa-forwprop.c (simplify_rotate): New function.
1932 (ssa_forward_propagate_and_combine): Call it.
1933
afb119be
RB
19342013-05-10 Richard Biener <rguenther@suse.de>
1935
1936 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1937 disable peeling when we version for aliasing.
1938 (vector_alignment_reachable_p): Honor explicit user alignment.
1939 (vect_supportable_dr_alignment): Likewise.
1940 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1941 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1942 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1943 then peeling to arrange for the cost-model check to come first.
1944
01ae4861
AM
19452013-05-10 Alan Modra <amodra@gmail.com>
1946
1947 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1948 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1949 * configure: Regenerate.
1950
ebc9a431
AM
19512013-05-10 Alan Modra <amodra@gmail.com>
1952
1953 PR target/55033
1954 * varasm.c (default_elf_select_section): Move !DECL_P check..
1955 (get_named_section): ..to here before calling get_section_name.
1956 Adjust assertion.
1957 (default_section_type_flags): Add DECL_P check.
1958 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1959 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1960
d4bca93c
JR
19612013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1962
1963 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1964 When using gen_stack_adjust_str with a register offset, add a
1965 REG_FRAME_RELATED_EXPR note.
1966
60ca9a65
UB
19672013-05-09 Uros Bizjak <ubizjak@gmail.com>
1968
1969 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1970 (*vec_extractv4si_zext_mem): Ditto.
1971 (*vec_extractv2di): Add 0->x and x->x alternatives.
1972 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1973 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1974
a3409c02
JM
19752013-05-09 Jason Merrill <jason@redhat.com>
1976
0138d6b2
JM
1977 N3639 C++1y VLA support
1978 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1979 DECL_VALUE_EXPR.
1980
a3409c02
JM
1981 * tree.c (build_constructor_va): New.
1982 * tree.h: Declare it.
1983
66e6b990
MJ
19842013-05-09 Martin Jambor <mjambor@suse.cz>
1985
1986 PR lto/57084
1987 * gimple-fold.c (canonicalize_constructor_val): Call
1988 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1989
64cfa6c0
JH
19902013-05-09 Jan Hubicka <jh@suse.cz>
1991 Richard Biener <rguenther@suse.de>
1992
1993 PR lto/54095
1994 * symtab.c (symtab_make_decl_local): Do not add private names.
1995
c3167b00
JH
19962013-05-09 Jan Hubicka <jh@suse.cz>
1997
1998 PR lto/54095
1999 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2000 (unlink_from_assembler_name_hash): Likewise.
2001 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2002 symtab_unregister_node, symtab_initialize_asm_name_hash,
2003 change_decl_assembler_name): Update.
2004
12dc6974
SN
20052013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2006
2007 * config/aarch64/aarch64.md: New movtf split.
2008 (*movtf_aarch64): Update.
2009 (aarch64_movdi_tilow): Handle TF modes and rename to
2010 aarch64_movdi_<mode>low.
2011 (aarch64_movdi_tihigh): Handle TF modes and rename to
2012 aarch64_movdi_<mode>high
2013 (aarch64_movtihigh_di): Handle TF modes and rename to
2014 aarch64_mov<mode>high_di
2015 (aarch64_movtilow_di): Handle TF modes and rename to
2016 aarch64_mov<mode>low_di
2017 (aarch64_movtilow_tilow): Remove spurious whitespace.
2018 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2019 splits.
2020 (aarch64_print_operand): Update.
2021
227eb343
AM
20222013-05-09 Alan Modra <amodra@gmail.com>
2023
2024 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2025 powerpc64le.
2026 * configure: Regenerate.
2027
0b013847
UB
20282013-05-08 Uros Bizjak <ubizjak@gmail.com>
2029
2030 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2031 splitter preparation statements.
2032 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2033 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2034 adjust_address_nv.
2035
1dc3d6e9
BS
20362013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2037
2038 * gimple-ssa-strength-reduction.c (count_candidates): Change
2039 return value to int.
2040 (analyze_candidates_and_replace): Change type of length to int.
2041
e61e7d28
UB
20422013-05-08 Uros Bizjak <ubizjak@gmail.com>
2043
2044 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2045 (*vec_extract<mode>): Use VI12_128 mode iterator.
2046 (*vec_extract<mode>_mem): Ditto.
2047 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2048 attribute.
2049
4fbfcf44
DN
20502013-05-08 Diego Novillo <dnovillo@google.com>
2051
2052 PR bootstrap/54659
2053
2054 Revert:
4fbfcf44
DN
2055 2012-08-17 Diego Novillo <dnovillo@google.com>
2056
e61e7d28
UB
2057 PR bootstrap/54281
2058 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2059 * config.in: Regenerate.
2060 * configure: Regenerate.
2061 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 2062
702d8703
JH
20632013-05-08 Jan Hubicka <jh@suse.cz>
2064
2065 PR lto/54095
2066 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2067 * cgraph.h (symtab_node_base): Add unique_name.
2068 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2069 input_overwrite_node, input_varpool_node): Stream unique_name.
2070 * cgraphclones.c (cgraph_create_virtual_clone,
2071 cgraph_function_versioning): Set unique_name.
2072 * ipa.c (function_and_variable_visibility): Set unique_name.
2073
8b28cf47
BS
20742013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2075
2076 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2077 (alloc_cand_and_find_basis): Restrict conditional candidate
2078 processing to CAND_MULTs.
2079
e86074fd
JH
20802013-05-08 Jan Hubicka <jh@suse.cz>
2081
2082 PR lto/54095
2083 lto-symtab.c (lto_symtab_symbol_p): New function.
2084 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2085 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2086 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2087 Skip static symbols.
2088
44398cbe
PC
20892013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2090
2091 PR tree-optimization/57200
2092 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2093 Only call inform if the preceding warning_at returns true.
2094
f6bc1c4a
HS
20952013-05-07 Han Shen <shenhan@google.com>
2096
2097 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2098 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2099 * common.opt (fstack-protector-strong): New option.
2100 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2101 * doc/invoke.texi (Optimization Options): Document
2102 "-fstack-protector-strong".
2103 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2104
4ffecb1f
SB
21052013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2106
2107 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2108
5a107a0f
VM
21092013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2110
2111 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2112 it is not lhs of the insn.
2113 (setup_reg_equiv): Remove insn having equiv memory which it is not
2114 lhs of the insn.
2115 * lra-constraints.c (process_address): Try to improve generation
2116 code for address base + disp.
2117 (lra_constraints): Make correct the code for checking insn setting
2118 up backward equivalence. Remove insn only if it is in the init
2119 insn list.
2120 * lra-eliminations.c (update_reg_eliminate): Change return value.
2121 (lra_eliminate): Use the result.
2122
3f5783ea
UB
21232013-05-07 Uros Bizjak <ubizjak@gmail.com>
2124
2125 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2126 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2127 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2128 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2129 register target operands.
2130 (*vec_extractv8hi_sse2): New pattern.
2131 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2132 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2133 (*vec_extract<mode>_mem): New insn and split pattern.
2134
8a5800b8
CL
21352013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2136
2137 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2138 (TARGET_ASAN_SHADOW_OFFSET): Define.
2139 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2140 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2141
7bf55a70
BS
21422013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2143
2144 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2145 (incr_vec_index): Return -1 if increment not found.
2146 (create_add_on_incoming_edge): Assert if increment not found.
2147 (record_increment): Limit number of increments recorded.
2148 (all_phi_incrs_profitable): Return false if an increment not found.
2149 (replace_profitable_candidates): Don't process increments that were
2150 not recorded.
2151 (analyze_candidates_and_replace): Limit size of incr_vec.
2152
3f8825c0
RB
21532013-05-07 Richard Biener <rguenther@suse.de>
2154
2155 * calls.c (special_function_p): setjmp-like functions are leaf.
2156 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2157 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2158
fd4842cd
SN
21592013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2160
2161 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2162 (aarch64_simd_mov<mode>): New expander.
2163 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2164 (aarch64_simd_mov_to_<mode>high): Likewise.
2165 (aarch64_simd_mov_from_<mode>low): Likewise.
2166 (aarch64_simd_mov_from_<mode>high): Likewise.
2167 (aarch64_dup_lane<mode>): Update.
2168 (aarch64_dup_lanedi): New instruction pattern.
2169 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2170 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2171
a7a7d10e
BS
21722013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2173
2174 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2175 (replace_mult_candidate): Remove unnecessary argument; remove
2176 unnecessary parameter from call to introduce_cast_before_cand.
2177 (replace_unconditional_candidate): Remove unnecessary parameter
2178 from call to replace_mult_candidate.
2179 (replace_conditional_candidate): Likewise.
2180 (insert_initializers): Use make_temp_ssa_name.
2181 (introduce_cast_before_cand): Remove unnecessary argument; use
2182 make_temp_ssa_name.
2183 (replace_one_candidate): Remove unnecessary argument; remove
2184 unnecessary parameter from calls to introduce_cast_before_cand.
2185 (replace_profitable_candidates): Remove unnecessary parameters
2186 from calls to replace_one_candidate.
2187
29105868
BS
21882013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2189
2190 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2191 phi def as possibly hiding a basis for a CAND_ADD whose operands
2192 have been commuted in the analysis.
2193 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2194
4095f9fa
N
21952013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2196
2197 * config/aarch64/aarch64.md
2198 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2199 shift value between 0-4.
2200
39e843e8
RB
22012013-05-07 Richard Biener <rguenther@suse.de>
2202
2203 * double-int.h (rshift): New overload.
2204 * double-int.c (rshift): New function.
2205 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2206 (create_reference_ops_from_ref): Remove.
2207 (vn_reference_insert): Use shared ops for constructing the
2208 reference and copy it.
2209
0a1a83cb
RB
22102013-05-07 Richard Biener <rguenther@suse.de>
2211
2212 PR middle-end/57190
2213 * tree-eh.c (sink_clobbers): Properly propagate
2214 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2215
43303d6f
JJ
22162013-05-07 Jakub Jelinek <jakub@redhat.com>
2217
ba7e83f8
JJ
2218 PR tree-optimization/57149
2219 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2220 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2221 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2222 uninit_undefined_value_p instead of ssa_undefined_value_p.
2223
43303d6f
JJ
2224 PR debug/57184
2225 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2226 for modifier == EXPAND_INITIALIZER.
2227
14523c25
AB
22282013-05-07 Anton Blanchard <anton@samba.org>
2229
2230 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2231 for powerpc64 little endian.
2232 * configure: Regenerate.
2233
cb7c8be9
GS
22342013-05-06 Graham Stott <grahams@btinternet.com>
2235
2236 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2237 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2238 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2239 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2240
22412013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
2242
2243 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2244 codes which allow non-lvalues.
2245
9a0ee7b0
MG
22462013-05-06 Marc Glisse <marc.glisse@inria.fr>
2247
2248 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2249 components are all 1s.
2250 (integer_minus_onep): New function.
2251 * tree.h (integer_minus_onep): Declare it.
2252 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2253 integer_minus_onep instead of integer_all_onesp.
2254
f2c17ea9
OE
22552013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2256
2257 PR target/52933
2258 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2259 variations of these patterns.
2260
f75e6a51
UB
22612013-05-06 Uros Bizjak <ubizjak@gmail.com>
2262
2263 * config/i386/i386.md (isa): Add x64_sse4 member.
2264 (enabled): Handle x64_sse4.
2265 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2266 instruction for 64bit SSE4_1 targets. Update insn attributes.
2267 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2268 instruction for SSE4_1 targets. Update insn attributes.
2269 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2270 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2271 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2272 const_1 selector.
2273 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2274 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2275 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2276
a986d468
OE
22772013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2278
2279 PR target/57108
2280 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2281
382522cb
MK
22822013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2283
2284 * final.c (do_assembler_dialects): Don't handle curly braces and
2285 vertical bar escaped by % as dialect delimiters.
2286 (output_asm_insn): Print curly braces and vertical bar if escaped
2287 by % and ASSEMBLER_DIALECT defined.
2288 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2289 * doc/tm.texi: Regenerated.
2290
fb0d5c60
SB
22912013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2292
fb0d5c60
SB
2293 * config/mips/mips.c: Include tree-pass.h.
2294 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2295 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2296 (pass_mips_machine_reorg2): New machine specific pass.
2297 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2298 (mips_option_override): Register the new pass.
2299 * rtl.h (cleanup_barriers): Remove prototype.
2300 (dbr_schedule): Likewise.
2301 * jump.c (cleanup_barriers): Make static.
2302 * reorg.c (dbr_schedule): Likewise.
2303
aa06a978
RB
23042013-05-06 Richard Biener <rguenther@suse.de>
2305
2306 PR tree-optimization/57185
2307 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2308 SSA names properly.
2309
0b953bec
UB
23102013-05-06 Uros Bizjak <ubizjak@gmail.com>
2311
2312 PR target/57106
2313 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2314 between "first_arg" and "insn", not "last" and "insn".
2315
28708525
WS
23162013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2317
2318 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2319 (find_candidates_in_block): Re-enable slsr_process_phi.
2320 (create_phi_basis): Fix double counting of candidate adjustment.
2321
0107dca2
RB
23222013-05-06 Richard Biener <rguenther@suse.de>
2323
2324 PR middle-end/57147
2325 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2326 the edge is also fallthru, preserve it and just clear the
2327 abnormal flag.
2328 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2329 also complex, preserve that and just clear the fallthru flag.
2330 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2331 update virtual operands.
2332
470d4d13
AM
23332013-05-06 Alan Modra <amodra@gmail.com>
2334
2335 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2336 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2337 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2338 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2339 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2340 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2341
8f1dbf8d
AM
23422013-05-06 Alan Modra <amodra@gmail.com>
2343
2344 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2345 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2346 (DEFAULT_ASM_ENDIAN): Define.
2347 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2348 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2349 Update -K PIC clause from sysv4.h.
2350 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2351 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2352
54890767
AM
23532013-05-06 Alan Modra <amodra@gmail.com>
2354
2355 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2356 twice for little-endian.
2357 (ashrdi3_no_power, ashrdi3): Support little-endian.
2358
2353515d
OE
23592013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2360
2361 PR target/55303
2362 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2363 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2364 related expanders.
2365 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2366 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2367 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2368 New predicates.
2369
33e67557
SB
23702013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2371 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2372
2373 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2374 * config/pa/pa.opt: Make mbig-switch a no-op.
2375 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2376 (CASE_VECTOR_MODE): Always return SImode.
2377 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2378 for the !TARGET_BIG_SWITCH case.
2379 * config/pa/pa-linux.h: Likewise.
2380 * config/pa/pa-openbsd.h: Likewise.
2381 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2382 * config/pa/pa.md (short_jump): Remove define_insn.
2383 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2384 (casesi0): Remove define_insn.
2385 (type): Remove btable_branch.
2386 (pa_combine_type): Likewise.
2387 (in_nullified_branch_delay): Likewise.
2388 (in_call_delay): Likewise.
2389 (define_delay): Likewise.
2390 (define_insn_reservation "Z3"): Likewise.
2391 (define_insn_reservation "Z4"): Likewise.
2392 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2393 (pa_adjust_insn_length): Remove adjustment for btable branches.
2394 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2395 and mno-big-switch
2396
3095685e
UB
23972013-05-05 Uros Bizjak <ubizjak@gmail.com>
2398
2399 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2400 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2401 Add m->r,x alternatives.
2402 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2403 splitters using SWI48x mode iterator.
2404 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2405 TARGET_64BIT. Add m->x alternative.
2406 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2407 Add o->x alternative. Enable for TARGET_SSE.
2408 (sse_storeq): Remove expander.
2409 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2410 with memory input operand.
2411 (*vec_extractv2di_1 splitter): New.
2412 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2413 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2414
4b36ae28
SB
24152013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2416
2417 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2418 (INT_LOWPART): Delete.
2419 (extract_MB): Adjust.
2420 (extract_ME): Adjust.
2421 (print_operand): Adjust.
2422
da226db2
SB
24232013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2424
2425 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2426 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2427 (reg_or_logical_cint_operand, easy_fp_constant,
2428 logical_const_operand): Delete "CONST_DOUBLE" case.
2429 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2430 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 2431 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
2432 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2433 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2434 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2435 test.
2436 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2437 CONST_DOUBLE DImode/VOIDmode case.
2438 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2439 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2440 CONST_DOUBLE VOIDmode case.
2441 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2442 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2443 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2444 Delete CONST_DOUBLE case.
2445 (splitters for mov FMOVE64 const_double): Delete
2446 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2447 "HOST_BITS_PER_WIDE_INT >= 64" test.
2448 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2449 case.
2450 (mov DI const_double): Delete.
2451
40de22d6
JJ
24522013-05-04 Jakub Jelinek <jakub@redhat.com>
2453
2454 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2455 on op shows all bits zero in mode of a lowpart subreg, return zero.
2456
5ec6aff2
MM
24572013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2458
2459 PR target/57150
2460 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2461 to save TFmode registers and DImode to save TImode registers for
2462 caller save operations.
2463 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2464 mark being partially clobbered since they only use the first
2465 double word.
2466
2467 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2468 and TDmode only use the upper 64-bits of each VSX register.
2469
2cefad90
BS
24702013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2471
2472 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2473 (find_candidates_in_block): Disable slsr_process_phi.
2474
d6d7eee1
GW
24752013-05-03 Guozhi Wei <carrot@google.com>
2476
2477 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
2478 constructor to ...
2479 (build_init_ctor): ... here.
d6d7eee1 2480
9b92d12b
BS
24812013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2482
2483 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2484 (slsr_cand_d): Redefine def_phi.
2485 (stride_status, phi_adjust_status, count_phis_status): New enums.
2486 (find_phi_def): New.
2487 (find_basis_for_base_expr): New.
2488 (find_basis_for_candidate): Handle hidden bases.
2489 (alloc_cand_and_find_basis): Handle phi candidates.
2490 (slsr_process_phi): New.
2491 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2492 (create_mul_imm_cand): Likewise.
2493 (create_add_ssa_cand): Exclude phi base candidates.
2494 (create_add_imm_cand): Likewise.
2495 (slsr_process_cast): Likewise.
2496 (slsr_process_copy): Likewise.
2497 (find_candidates_in_block): Handle phi candidates.
2498 (dump_candidate): Likewise.
2499 (unconditional_cands): Delete.
2500 (unconditional_cands_with_known_stride_p): Delete.
2501 (phi_dependent_cand_p): New.
2502 (cand_increment): Handle phi-dependent candidates.
2503 (replace_dependent): Delete.
2504 (replace_mult_candidate): New.
2505 (replace_unconditional_candidate): New.
2506 (incr_vec_index): Move to avoid forward reference.
2507 (create_add_on_incoming_edge): New.
2508 (create_phi_basis): New.
2509 (replace_dependents): Delete.
2510 (replace_conditional_candidate): New.
2511 (phi_add_costs): New.
2512 (replace_uncond_cands_and_profitable_phis): New.
2513 (record_increment): Handle phi adjustments.
2514 (record_phi_increments): New.
2515 (record_increments): Handle phi adjustments.
2516 (phi_incr_cost): New.
2517 (lowest_cost_path): Handle phis.
2518 (total_savings): Likewise.
2519 (analyze_increments): Likewise.
2520 (ncd_with_phi): New.
2521 (ncd_of_cand_and_phis): New.
2522 (nearest_common_dominator_for_cands): Handle phi increments.
2523 (all_phi_incrs_profitable): New.
2524 (replace_profitable_candidates): Handle phi-dependent candidates.
2525 (analyze_candidates_and_replace): Likewise.
2526
68f073d4
TJ
25272013-05-03 Teresa Johnson <tejohnson@google.com>
2528
2529 PR bootstrap/57154
2530 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2531 do not exceed REG_BR_PROB_BASE.
2532
a4ee7cb9
JL
25332013-05-03 Jeff Law <law@redhat.com>
2534
ade67f70 2535 PR tree-optimization/57144
a4ee7cb9
JL
2536 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2537 operand of the condition will bit into the new type when eliminating
2538 a cast feeding a condition.
2539
47954c4e
JJ
25402013-05-03 Jakub Jelinek <jakub@redhat.com>
2541
2542 PR rtl-optimization/57130
3095685e
UB
2543 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2544 of COMPARE as in_code to the recursive call if needed.
47954c4e 2545
3c21604f
UB
25462013-05-03 Uros Bizjak <ubizjak@gmail.com>
2547
2548 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2549 (enabled): Handle new members.
2550 * config/i386/sse.md (*vec_concatv2si): Merge from
2551 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2552 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2553
95c03b36
JR
25542013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2555
2556 PR tree-optimization/57027
2557 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2558 for fnms opportunity, check we got the prerequisite kind
2559 of tree / gimple before using accessor functions.
2560
07bfc9ec
RB
25612013-05-03 Richard Biener <rguenther@suse.de>
2562
2563 * double-int.h (lshift): New overload without precision
2564 and arith argument.
2565 (operator *=, operator +=, operator -=): Move ...
2566 * double-int.c (operator *=, operator +=, operator -=): ... here
2567 and implement more efficiently.
2568 (mul_double_with_sign): Remove.
2569 (lshift_double): Adjust to take unsinged shift argument, push
2570 dispatching code to callers.
2571 (mul_double_wide_with_sign): Add early out for callers that
2572 are not interested in high parts or overflow.
2573 (lshift): New function.
2574 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2575 dispatch code here.
2576 (lrotate, rrotate): Use logical shifts.
2577 * expr.c (get_inner_reference): Use lshift.
2578 * fixed-value.c (do_fixed_divide): Likewise.
2579 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2580 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2581 (indirect_refs_may_alias_p): Likewise.
2582 (stmt_kills_ref_p_1): Likewise.
2583
7769bb64
VP
25842013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2585
2586 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2587
1d0c8e5c
VP
25882013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2589
2590 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2591 scalar form of FABD instruction.
2592
f15feaf9
VM
25932013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2594
2595 * lra-constraints.c (process_alt_operands): Add checking alt
2596 number to choose the best alternative.
2597
d90e76d4
RB
25982013-05-02 Richard Biener <rguenther@suse.de>
2599
2600 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2601 bitmap and its handling.
2602 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2603
9f8e7a96
RB
26042013-05-02 Richard Biener <rguenther@suse.de>
2605
2606 PR middle-end/57140
2607 * tree-inline.c (copy_loops): Properly handle removed loops.
2608 (copy_cfg_body): Mark destination loops for fixup if source
2609 loops needed fixup.
2610
f3a81b39
GY
26112013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2612
2613 PR target/56732
2614 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2615 generating simple_return for naked functions.
2616
7b920a9a
MJ
26172013-05-02 Martin Jambor <mjambor@suse.cz>
2618
2619 PR middle-end/56988
2620 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2621 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2622 flags match.
2623 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2624 ipa_agg_replacement_value structures.
2625 (known_aggs_to_agg_replacement_list): Likewise.
2626 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2627 (read_agg_replacement_chain): Likewise.
2628 (ipcp_transform_function): Also check that by_ref flags match.
2629
2c41c19d
RB
26302013-05-02 Richard Biener <rguenther@suse.de>
2631
2632 * graphds.h (struct graph): Add obstack member.
2633 * graphds.c (new_graph): Initialize obstack and allocate
2634 vertices from it.
2635 (add_edge): Allocate edge from the obstack.
3c21604f 2636 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2637
8b47039c
TJ
26382013-05-02 Teresa Johnson <tejohnson@google.com>
2639
2640 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2641 divides.
2642 * cfg.c (update_bb_profile_for_threading): Ditto.
2643 * tree-inline.c (copy_bb): Ditto.
2644 (copy_edges_for_bb): Ditto.
2645 (initialize_cfun): Ditto.
2646 (copy_cfg_body): Ditto.
2647 (expand_call_inline): Ditto.
2648 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2649 (estimate_node_size_and_time): Ditto.
2650 (inline_merge_summary): Ditto.
2651 * cgraphclones.c (cgraph_clone_edge): Ditto.
2652 (cgraph_clone_node): Ditto.
2653 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2654 (compute_trg_info): Ditto.
2655
da65928c
IB
26562013-05-02 Ian Bolton <ian.bolton@arm.com>
2657
2658 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2659 S reg when fp attribute set.
2660 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2661
add3c965
IB
26622013-05-02 Ian Bolton <ian.bolton@arm.com>
2663
2664 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2665 New pattern.
2666 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2667 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2668 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2669
fdd43ac4
RB
26702013-05-02 Richard Biener <rguenther@suse.de>
2671
2672 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2673 (struct instantiate_cache_entry): New type.
2674 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2675 (struct instantiate_cache_type): New type.
2676 (set_instantiated_value, get_instantiated_value): Remove.
2677 (get_instantiated_value_entry): New function.
2678 (instantiate_scev_name): Use the new cache and adjust.
2679 (instantiate_scev_poly): Adjust.
2680 (instantiate_scev_binary): Likewise.
2681 (instantiate_array_ref): Likewise.
2682 (instantiate_scev_convert): Likewise.
2683 (instantiate_scev_not): Likewise.
2684 (instantiate_scev_3): Likewise.
2685 (instantiate_scev_2): Likewise.
2686 (instantiate_scev_r): Likewise.
2687 (instantiate_scev): Likewise.
2688 (resolve_mixers): Likewise.
2689
36ff9dfb
VM
26902013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2691
2692 PR target/57091
2693 * lra-constraints.c (best_small_class_operands_num): Remove.
2694 (process_alt_operands): Remove small_class_operands_num. Take
2695 small classes operands into losers and only if the operand is not
2696 matched. Modify debugging output.
2697 (curr_insn_transform): Remove best_small_class_operands_num.
2698 Print insn name.
2699
36054fab
JG
27002013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2701
2702 * config/aarch64/aarch64-builtins.c
2703 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2704 * config/aarch64/aarch64-simd-builtins.def
2705 (reduc_splus_): Add new modes.
2706 (reduc_uplus_): New.
2707 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2708 (reduc_uplus_v4sf): Likewise.
2709 (reduc_splus_v4sf): Likewise.
2710 (aarch64_addv<mode>): Likewise.
2711 (reduc_uplus_<mode>): Likewise.
2712 (reduc_splus_<mode>): Likewise.
2713 (aarch64_addvv2di): Likewise.
2714 (reduc_uplus_v2di): Likewise.
2715 (reduc_splus_v2di): Likewise.
2716 (aarch64_addvv2si): Likewise.
2717 (reduc_uplus_v2si): Likewise.
2718 (reduc_splus_v2si): Likewise.
2719 (reduc_<sur>plus_<mode>): New.
2720 (reduc_<sur>plus_v2di): Likewise.
2721 (reduc_<sur>plus_v2si): Likewise.
2722 (reduc_<sur>plus_v4sf): Likewise.
2723 (aarch64_addpv4sf): Likewise.
2724 * config/aarch64/arm_neon.h
2725 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2726 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2727 add UNSPEC_SADDV, UNSPEC_UADDV.
2728 (SUADDV): New.
2729 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2730
6dce23a8
JG
27312013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2732
2733 * config/aarch64/arm_neon.h
2734 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2735
1598945b
JG
27362013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2737
2738 * config/aarch64/aarch64-builtins
2739 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2740
998eaf97
JG
27412013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2742
2743 * config/aarch64/aarch64-simd-builtins.def
2744 (reduc_smax_): New.
2745 (reduc_smin_): Likewise.
2746 (reduc_umax_): Likewise.
2747 (reduc_umin_): Likewise.
2748 (reduc_smax_nan_): Likewise.
2749 (reduc_smin_nan_): Likewise.
2750 (fmax): Remove.
2751 (fmin): Likewise.
2752 (smax): Update for V2SF, V4SF and V2DF modes.
2753 (smin): Likewise.
2754 (smax_nan): New.
2755 (smin_nan): Likewise.
2756 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2757 (<su><maxmin><mode>3): ...This, refactor.
2758 (s<maxmin><mode>3): New.
2759 (<maxmin_uns><mode>3): Likewise.
2760 (reduc_<maxmin_uns>_<mode>): Refactor.
2761 (reduc_<maxmin_uns>_v4sf): Likewise.
2762 (reduc_<maxmin_uns>_v2si): Likewise.
2763 (aarch64_<fmaxmin><mode>: Remove.
2764 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2765 new builtin names.
2766 (vmin<q>_f<32,64>): Likewise.
2767 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2768 (FMAXMIN): New.
2769 (su): Add mappings for smax, smin, umax, umin.
2770 (maxmin): New.
2771 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2772 (FMAXMIN): Rename as...
2773 (FMAXMIN_UNS): ...This.
2774 (maxminv): Remove.
2775 (fmaxminv): Likewise.
2776 (fmaxmin): Likewise.
2777 (maxmin_uns): New.
2778 (maxmin_uns_op): Likewise.
2779
bd11644e
JG
27802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2781
2782 * config/aarch64/arm_neon.h
2783 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2784 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2785 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2786
75dd5ace
JG
27872013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2788
2789 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2790 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2791
7c19979f
JG
27922013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2793
2794 * config/aarch64/aarch64-simd.md
2795 (vcond<mode>_internal): Handle special cases for constant masks.
2796 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2797 (vcondu<mode><mode>): Likewise.
2798 (vcond<v_cmp_result><mode>): New.
2799
bb60efd9
JG
28002013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2801
2802 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2803 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2804 * config/aarch64/aarch64-simd-builtins.def
2805 (cmeq): Update to BUILTIN_VALLDI.
2806 (cmgt): Likewise.
2807 (cmge): Likewise.
2808 (cmle): Likewise.
2809 (cmlt): Likewise.
2810 * config/aarch64/arm_neon.h
2811 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2812 to builtins or C as appropriate.
2813
889b9412
JG
28142013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2815
2816 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2817 (cmgeu): ...This.
2818 (cmhi): Rename to...
2819 (cmgtu): ...This.
2820 * config/aarch64/aarch64-simd.md
2821 (simd_mode): Add SF.
2822 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2823 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2824 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2825 (cstore<mode>_neg): ...This.
2826 * config/aarch64/iterators.md
2827 (VALLF): new.
2828 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2829 (COMPARISONS): New.
2830 (UCOMPARISONS): Likewise.
2831 (optab): Add missing comparisons.
2832 (n_optab): New.
2833 (cmp_1): Likewise.
2834 (cmp_2): Likewise.
2835 (CMP): Likewise.
2836 (cmp): Remove.
2837 (VCMP_S): Likewise.
2838 (VCMP_U): Likewise.
2839 (V_cmp_result): Add DF, SF modes.
2840 (v_cmp_result): Likewise.
2841 (v): Likewise.
2842 (vmtype): Likewise.
2843 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2844
0a7dbb76
GY
28452013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2846
2847 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2848 define_insn to define_insn_and_split.
2849 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2850 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2851 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2852 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2853 (thumb2_negscc): Likewise.
2854
fb614ca6
GY
28552013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2856
2857 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2858
9e64a0bf
GY
28592013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2860
2861 * config/arm/thumb2.md: Remove trailing whitespaces.
2862
d6b28156
RS
28632013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2864
2865 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2866 Use gen_int_mode rather than GEN_INT.
2867
f91674c3
L
28682013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2869
b0dec607 2870 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
2871 debug_gimple_stmt.
2872
3551257c
RB
28732013-04-30 Richard Biener <rguenther@suse.de>
2874
2875 PR middle-end/57122
3c21604f 2876 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 2877
4c1aff1c
RB
28782013-04-30 Richard Biener <rguenther@suse.de>
2879
2880 PR middle-end/57107
2881 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2882
54b8379a
AB
28832013-04-30 Andrey Belevantsev <abel@ispras.ru>
2884
2885 PR rtl-optimization/56957
2886 PR rtl-optimization/57105
54b8379a
AB
2887 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2888 variable. Use just INSN_UID for determining whether an insn
2889 should be only disconnected from the insn stream.
2890 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2891
abc27962
JJ
28922013-04-30 Jakub Jelinek <jakub@redhat.com>
2893
2894 PR tree-optimization/57104
2895 * tsan.c (instrument_expr): Don't instrument accesses to
2896 DECL_HARD_REGISTER VAR_DECLs.
2897
0fc822d0
RB
28982013-04-30 Richard Biener <rguenther@suse.de>
2899
2900 * function.h (loops_for_fn): New inline function.
2901 (set_loops_for_fn): Likewise.
2902 * cfgloop.h (place_new_loop): Add struct function parameter.
2903 (get_loop): Likewise.
2904 (get_loops): Likewise.
2905 (number_of_loops): Likewise.
2906 (fel_next): Adjust.
2907 (fel_init): Likewise.
2908 * cfg.c (get_loop_copy): Adjust.
2909 * cfgloop.c (flow_loops_dump): Likewise.
2910 (record_loop_exits): Likewise.
2911 (verify_loop_structure): Likewise.
2912 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2913 (estimate_reg_pressure_cost): Likewise.
2914 (mark_loop_exit_edges): Likewise.
2915 * cfgloopmanip.c (place_new_loop): Likewise.
2916 (add_loop): Likewise.
2917 (duplicate_loop): Likewise.
2918 * graph.c (draw_cfg_nodes): Likewise.
2919 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2920 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2921 (extract_affine_chrec): Likewise.
2922 (build_scop_iteration_domain): Likewise.
2923 * graphite.c (graphite_initialize): Likewise.
2924 * ira-build.c (create_loop_tree_nodes): Likewise.
2925 (more_one_region_p): Likewise.
2926 (rebuild_regno_allocno_maps): Likewise.
2927 (mark_loops_for_removal): Likewise.
2928 (mark_all_loops_for_removal): Likewise.
2929 (remove_unnecessary_regions): Likewise.
2930 (ira_build): Likewise.
2931 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2932 * loop-init.c (fix_loop_structure): Likewise.
2933 (gate_rtl_move_loop_invariants): Likewise.
2934 (gate_rtl_unswitch): Likewise.
2935 (gate_rtl_unroll_and_peel_loops): Likewise.
2936 (rtl_doloop): Likewise.
2937 * lto-streamer-in.c (input_cfg): Likewise.
2938 * lto-streamer-out.c (output_cfg): Likewise.
2939 * modulo-sched.c (sms_schedule): Likewise.
2940 * predict.c (tree_estimate_probability): Likewise.
2941 (tree_estimate_probability_driver): Likewise.
2942 (estimate_loops): Likewise.
2943 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2944 (move_sese_region_to_fn): Likewise.
2945 (debug_loop_num): Likewise.
2946 * tree-chrec.c (chrec_evaluate): Likewise.
2947 (hide_evolution_in_other_loops_than_loop): Likewise.
2948 (chrec_component_in_loop_num): Likewise.
2949 (reset_evolution_in_loop): Likewise.
2950 (evolution_function_is_invariant_rec_p): Likewise.
2951 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2952 * tree-inline.c (copy_loops): Likewise.
2953 (copy_cfg_body): Likewise.
2954 (tree_function_versioning): Likewise.
2955 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2956 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2957 Likewise.
2958 (add_to_evolution_1): Likewise.
2959 (scev_const_prop): Likewise.
2960 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2961 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2962 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2963 (tree_ssa_lim_initialize): Likewise.
2964 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2965 (verify_loop_closed_ssa): Likewise.
2966 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2967 (tree_ssa_loop_im): Likewise.
2968 (tree_ssa_loop_unswitch): Likewise.
2969 (tree_vectorize): Likewise.
2970 (check_data_deps): Likewise.
2971 (tree_ssa_loop_ivcanon): Likewise.
2972 (tree_ssa_loop_bounds): Likewise.
2973 (tree_complete_unroll): Likewise.
2974 (tree_complete_unroll_inner): Likewise.
2975 (tree_parallelize_loops): Likewise.
2976 (tree_ssa_loop_prefetch): Likewise.
2977 (tree_ssa_loop_ivopts): Likewise.
2978 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2979 * tree-vectorizer.c (vectorize_loops): Likewise.
2980
37953bd3
MF
29812013-04-29 Mike Frysinger <vapier@gentoo.org>
2982
2983 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2984 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2985 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2986 with EABI_LINK_SPEC.
2987
f9ed28db
UB
29882013-04-29 Uros Bizjak <ubizjak@gmail.com>
2989
2990 PR target/44578
2991 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2992 alternative.
2993
deca73f5
VM
29942013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2995
2996 PR target/57097
37953bd3 2997 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
2998 using memory for pseudos. Print cost dump for alternatives.
2999 Modify cost values for conflicts with early clobbers.
3000 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3001
fdca7d03
UB
30022013-04-29 Uros Bizjak <ubizjak@gmail.com>
3003
3004 PR target/57098
3005 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3006
0b064172
IB
30072013-04-29 Ian Bolton <ian.bolton@arm.com>
3008
3009 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3010 from/to S register.
3011 (movdi_aarch64): Support LDR/STR from/to D register.
3012
473cec55
IB
30132013-04-29 Ian Bolton <ian.bolton@arm.com>
3014
3015 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3016 or higher by default.
3017
a6f30e66
RB
30182013-04-29 Richard Biener <rguenther@suse.de>
3019
3020 PR middle-end/57075
3021 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3022 even if not adding abnormal edges for calls that can make
3023 abnormal gotos.
3024
0c2b2040
RB
30252013-04-29 Richard Biener <rguenther@suse.de>
3026
3027 PR middle-end/57103
3028 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3029 TREE_BLOCK.
3030 (move_stmt_r): Remove redundant checking.
3031
f41f80f9
TJ
30322013-04-29 Teresa Johnson <tejohnson@google.com>
3033
3034 PR bootstrap/57077
3035 * basic-block.h (apply_scale): New function.
3036 (apply_probability): Use apply_scale.
3037 * gimple-streamer-in.c (input_bb): Ditto.
3038 * lto-streamer-in.c (input_cfg): Ditto.
3039 * lto-cgraph.c (merge_profile_summaries): Ditto.
3040 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 3041 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
3042 (copy_edges_for_bb): Ditto.
3043 (copy_cfg_body): Ditto.
3044
315bbd2e
TV
30452013-04-29 Tom de Vries <tom@codesourcery.com>
3046
3047 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3048 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3049 (tail_merge_optimize): Handle current_loops == NULL.
3050
ebbd90d8
JL
30512013-04-26 Jeff Law <law@redhat.com>
3052
3053 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3054 (simplify_cond_using_ranges): Generalize code to simplify
3055 COND_EXPRs where one argument is a constant and the other
3056 is an SSA_NAME created by an integral type conversion.
3057
8b9b57eb
KT
30582013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3059
3060 * config/arm/arm.md (store_minmaxsi): Use only when
3061 optimize_insn_for_size_p.
3062
9498e5dc
CB
30632013-04-29 Christian Bruel <christian.bruel@st.com>
3064
3065 PR target/57108
3066 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3067
6093bc06
RB
30682013-04-29 Richard Biener <rguenther@suse.de>
3069
3070 PR middle-end/57089
fdca7d03
UB
3071 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3072 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
3073 (expand_omp_for_generic): Properly add loops.
3074 (expand_omp_for_static_nochunk): Likewise.
3075 (expand_omp_for_static_chunk): Likewise.
3076 (expand_omp_for): For the degenerate case fixup loops.
3077 (expand_omp_sections): Fix default bb placement in loops.
3078 (expand_omp_atomic_pipeline): Properly add loops.
3079
84aacbfd
KT
30802013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3081
3082 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3083
8dee4479
TV
30842013-04-29 Tom de Vries <tom@codesourcery.com>
3085
3086 * tree-ssa-tail-merge.c: Update header comment.
3087
47934dc4
JG
30882013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3089
3090 * config/aarch64/arm_neon.h
3091 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3092 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3093 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3094 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3095 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3096 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3097 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3098 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3099
384be29f
JG
31002013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3101
3102 * config/aarch64/aarch64-simd.md
3103 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3104 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3105 fix_trunc, fixuns_trunc.
3106 (ftrunc<VDQF:mode>2): New.
3107 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3108 (fix_trunc_optab): New.
3109
0386b123
JG
31102013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3111
3112 * config/aarch64/aarch64-builtins.c
3113 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3114 iceilf, lround, iroundf.
3115
00fcb892
UB
31162013-04-29 Uros Bizjak <ubizjak@gmail.com>
3117
3118 PR target/54349
3119 * config/i386/i386.h (enum ix86_tune_indices)
3120 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3121 New, split from X86_TUNE_INTER_UNIT_MOVES.
3122 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3123 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3124 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3125 (TARGET_INTER_UNIT_MOVES): Remove.
3126 * config/i386/i386.c (initial_ix86_tune_features): Update.
3127 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3128 (ix86_expand_convert_uns_didf_sse): Use
3129 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3130 (ix86_expand_vector_init_one_nonzero): Ditto.
3131 (ix86_expand_vector_init_interleave): Ditto.
3132 (inline_secondary_memory_needed): Return true for moves from SSE class
3133 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3134 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3135 * config/i386/constraints.md (Yi, Ym): Depend on
3136 TARGET_INTER_UNIT_MOVES_TO_VEC.
3137 (Yj, Yn): New constraints.
3138 * config/i386/i386.md (*movdi_internal): Change constraints of
3139 operand 1 from Yi to Yj and from Ym to Yn.
3140 (*movsi_internal): Ditto.
3141 (*movdf_internal): Ditto.
3142 (*movsf_internal): Ditto.
3143 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3144 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3145 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3146 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3147 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3148 * config/i386/sse.md (movdi_to_sse): Ditto.
3149 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3150 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3151 TARGET_INTER_UNIT_MOVES.
3152 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3153 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3154 instead of TARGET_INTER_UNIT_MOVES.
3155 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3156 operand 1 from Yi to Yj and from Ym to Yn.
3157
4c871069
JG
31582013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3159
3160 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3161 (float_truncate_hi_): Likewise.
3162 (float_extend_lo_): Likewise.
3163 (float_truncate_lo_): Likewise.
3164 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3165 (aarch64_float_extend_lo_v2df): Likewise.
3166 (vec_unpacks_hi_v4sf): Likewise.
3167 (aarch64_float_truncate_lo_v2sf): Likewise.
3168 (aarch64_float_truncate_hi_v4sf): Likewise.
3169 (vec_pack_trunc_v2df): Likewise.
3170 (vec_pack_trunc_df): Likewise.
3171
1709ff9b
JG
31722013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3173
3174 * config/aarch64/aarch64-builtins.c
3175 (aarch64_fold_builtin): Fold float conversions.
3176 * config/aarch64/aarch64-simd-builtins.def
3177 (floatv2si, floatv4si, floatv2di): New.
3178 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3179 * config/aarch64/aarch64-simd.md
3180 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3181 * config/aarch64/iterators.md (FLOATUORS): New.
3182 (optab): Add float, floatuns.
3183 (su_optab): Likewise.
3184
ce966824
JG
31852013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3186
3187 * config/aarch64/aarch64-builtins.c
3188 (aarch64_builtin_vectorized_function): Use new names for
3189 fcvt builtins.
3190 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3191 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3192 (fcvtzu): Split as...
3193 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3194 (fcvtas): Split as...
3195 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3196 (fcvtau): Split as...
3197 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3198 (fcvtps): Split as...
3199 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3200 (fcvtpu): Split as...
3201 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3202 (fcvtms): Split as...
3203 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3204 (fcvtmu): Split as...
3205 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3206 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3207 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3208 (lfrintnusf, lfrintnudf): Likewise.
3209 * config/aarch64/aarch64-simd.md
3210 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3211 define_insn.
3212 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3213 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3214 (fcvt_pattern): Likewise.
3215
b9de24fe
JG
32162013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3217
3218 * config/aarch64/aarch64-simd.md
3219 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3220 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3221
77a205be
JG
32222013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3223
3224 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3225 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3226 (vrnd<a,m,n,p>_f32): Implement using builtins.
3227 (vrnd<i,x><q>_f<32, 64>): New.
3228
0659ce6f
JG
32292013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3230
3231 * config/aarch64/aarch64-builtins.c
3232 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3233 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3234 (frintz): Rename to...
3235 (btrunc): ...this.
3236 (frintp): Rename to...
3237 (ceil): ...this.
3238 (frintm): Rename to...
3239 (floor): ...this.
3240 (frinti): Rename to...
3241 (nearbyint): ...this.
3242 (frintx): Rename to...
3243 (rint): ...this.
3244 (frinta): Rename to...
3245 (round): ...this.
3246 * config/aarch64/aarch64-simd.md
3247 (aarch64_frint<frint_suffix><mode>): Delete.
3248 (<frint_pattern><mode>2): Convert to insn.
3249 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3250 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3251 (frint_pattern): Likewise.
3252 (frint_suffix): Likewise.
3253
ea78906a
RB
32542013-04-29 Richard Biener <rguenther@suse.de>
3255
3256 PR tree-optimization/57081
3257 * loop-init.c: Include tree-flow.h.
3258 (loop_optimizer_finalize): Free number of iteration estimates.
3259 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3260
baee1763
JJ
32612013-04-29 Jakub Jelinek <jakub@redhat.com>
3262
94dc5332
JJ
3263 PR tree-optimization/57083
3264 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3265 non-singleton shift count range, zero extend low_bound for uns case.
3266
baee1763
JJ
3267 * config/i386/predicates.md (general_vector_operand): New predicate.
3268 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3269 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3270 if they aren't nonimmediate operands. If their original values
3271 satisfy const_vector_equal_evenodd_p, don't shift them.
3272 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3273 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3274 if not nonimmediate_operand.
3275 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3276 instead of register_operand.
3277 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3278
a9073727 32792013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
3280
3281 * stor-layout.c (finalize_size_functions): Allocate a structure and
3282 reset cfun before dumping the functions.
3283
ba8011e6
JJ
32842013-04-27 Jakub Jelinek <jakub@redhat.com>
3285
d6fde69e
JJ
3286 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3287
ba8011e6
JJ
3288 PR target/56866
3289 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3290 use xop_pmacsdqh if uns_p.
3291 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3292 the immediate rotate count.
3293
2c62cbaa
VM
32942013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3295
3296 * rtl.h (struct rtx_def): Add comment for field jump.
3297 (LRA_SUBREG_P): New macro.
3298 * recog.c (register_operand): Check LRA_SUBREG_P.
3299 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3300 stack frame.
3301 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3302 (lra_final_code_change): Skip subreg change for operators.
3303 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3304 if there are no operand changes.
3305 * lra-constraints.c (curr_insn_set): New.
3306 (match_reload): Set LRA_SUBREG_P.
3307 (emit_spill_move): Ditto.
3308 (check_and_process_move): Use curr_insn_set. Process only single
3309 set insns. Don't initialize sec_mem_p and change_p.
3310 (simplify_operand_subreg): Use LRA_SUBREG_P.
3311 (reg_in_class_p): New function.
3312 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3313 of #ifdef. Add code to remove cycling.
3314 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3315 non-null disp. Reload inner instead of disp when base and index
3316 are null. Try to put lo_sum into register.
3317 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3318 (check_and_process_move): Move code for move cost check to
3319 simple_move_p. Remove equiv_substitution.
3320 (simple_move_p): New function.
3321 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3322 curr_insn_set. Call check_and_process_move only for single set
3323 insns. Use the new function. Move call of check_and_process_move
3324 after operand equiv substitution and address process.
3325
e7d764f3
JJ
33262013-04-26 Jakub Jelinek <jakub@redhat.com>
3327
3328 PR go/57045
3329 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3330 with nonlocal goto receivers or returns twice calls, ignore
3331 unininitialized values from abnormal edges to nl goto receiver
3332 or returns twice call.
3333
41e10689
JJ
33342013-04-26 Jakub Jelinek <jakub@redhat.com>
3335
3336 PR tree-optimization/57051
3337 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3338 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3339 bitsize.
3340
d7ed20db
RB
33412013-04-26 Richard Biener <rguenther@suse.de>
3342
3343 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3344 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3345 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3346 (fixup_loop_arrays_after_move): New function.
3347 (move_sese_region_to_fn): Properly outline the loop tree parts
3348 of the SESE region.
3349
df93505e
UB
33502013-04-26 Uros Bizjak <ubizjak@gmail.com>
3351
3352 * config/i386/i386.md (type, unit): Fix long lines.
3353
dd366ec3
RB
33542013-04-26 Richard Biener <rguenther@suse.de>
3355
3356 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3357 (lto-streamer-out.o): Likewise.
3358 * cfgloop.c (init_loops_structure): Export, add struct function
3359 argument and adjust.
3360 (flow_loops_find): Adjust.
3361 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3362 (init_loops_structure): Declare.
3363 * lto-streamer-in.c: Include cfgloop.h.
3364 (input_cfg): Input the loop tree.
3365 * lto-streamer-out.c: Include cfgloop.h.
3366 (output_cfg): Output the loop tree.
3367 (output_struct_function_base): Do not drop PROP_loops.
3368
a9e0d843
RB
33692013-03-26 Richard Biener <rguenther@suse.de>
3370
3371 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3372 (pass_build_cfg): Provide PROP_loops.
3373 (move_sese_region_to_fn): Remove loops that are outlined into fn
3374 for now.
3375 * tree-inline.c: Include cfgloop.h.
3376 (initialize_cfun): Do not drop PROP_loops.
3377 (copy_loops): New function.
3378 (copy_cfg_body): Copy loop structure.
3379 (tree_function_versioning): Initialize destination loop tree.
3380 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3381 (pass_parallelize_loops): Do IL verification.
3382 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3383 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3384 the CFG make sure we fixup loops as well.
3385 * tree-ssa-tail-merge.c: Include cfgloop.h.
3386 (replace_block_by): When merging loop latches mark loops for fixup.
3387 * lto-streamer-out.c (output_struct_function_base): Drop
3388 PROP_loops for now.
3389 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3390 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3391 * ipa-split.c: Include cfgloop.h.
3392 (split_function): Add the new return block to the loop tree root.
3393 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3394 whether we have removed the forwarder block.
3395 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3396 * cfgloop.h (place_new_loop): Declare.
3397 * cfgloopmanip.c (place_new_loop): Export.
3398 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3399 (tree-switch-conversion.o): Likewise.
3400 (tree-complex.o): Likewise.
3401 (tree-inline.o): Likewise.
3402 (tree-ssa-tailmerge.o): Likewise.
3403 (ipa-split.o): Likewise.
3404 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3405 (tree-ssa-copy.o): Likewise.
3406 * tree-switch-conversion.c: Include cfgloop.h
3407 (process_switch): If we emit a bit-test cascade, schedule loops
3408 for fixup.
3409 * tree-complex.c: Include cfgloop.h.
3410 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3411 * asan.c: Include cfgloop.h.
3412 (create_cond_insert_point): Properly add new basic-blocks to
3413 loops, schedule loop fixup.
3414 * cfgloop.c (verify_loop_structure): Check that looks are not
3415 marked for fixup.
3416 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3417 to loops.
3418 (expand_omp_for_generic): Likewise.
3419 (expand_omp_sections): Likewise.
3420 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3421 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3422 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3423 is initialized, not when loops are present.
3424 * tree-parloops.c (parallelize_loops): Remove checking here.
3425 * passes.c (init_optimization_passes): Schedule a copy-propagation
3426 pass before complete unrolling of inner loops.
3427
e78e8a0b
JJ
34282013-04-26 Jakub Jelinek <jakub@redhat.com>
3429
a2e836b2
JJ
3430 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3431 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3432 (colorize_init): Add argument to _WIN32 version.
3433 * toplev.c: Include diagnostic-color.h.
3434 (process_options): Default to -fdiagnostics-color=auto if
3435 GCC_COLORS env var is in the environment.
3436 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
3437 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3438 env var is in the environment, the default is auto rather than never.
a2e836b2 3439
e78e8a0b
JJ
3440 * diagnostic.h (file_name_as_prefix): Add context argument.
3441 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3442 the string as locus.
3443 * langhooks.c (lhd_print_error_function): Adjust caller.
3444
013e5ef9
LC
34452013-04-25 Lawrence Crowl <crowl@google.com>
3446
3447 * var-tracking.c (shared_hash_def::htab):
3448 Change type to hash_table. Update dependent calls and types.
3449
4a8fb1a1
LC
34502013-04-25 Lawrence Crowl <crowl@google.com>
3451
3452 * Makefile.in: Update as needed below.
3453
3454 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3455 Move declaration to after the type's method definitons.
3456
3457 * attribs.c (htab_t scoped_attributes::attribute_hash):
3458 Change type to hash_table. Update dependent calls and types.
3459
3460 * bitmap.c (htab_t bitmap_desc_hash):
3461 Change type to hash_table. Update dependent calls and types.
3462
3463 * cselib.c (htab_t cselib_hash_table):
3464 Change type to hash_table. Update dependent calls and types.
3465
3466 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3467 (hash_string_slot_node): Move implementation into lto-streamer.h
3468 struct string_slot_hasher.
3469 (eq_string_slot_node): Likewise.
3470
3471 * data-streamer-out.c: Update output_block::string_hash_table
3472 dependent calls and types.
3473
3474 * dwarf2cfi.c (htab_t trace_index):
3475 Change type to hash_table. Update dependent calls and types.
3476
3477 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3478 Change type to hash_table. Update dependent calls and types.
3479 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3480 (htab_t optimize_external_refs::map): Likewise.
3481 (htab_t output_comp_unit::extern_map): Likewise.
3482 (htab_t output_comdat_type_unit::extern_map): Likewise.
3483 (htab_t output_macinfo::macinfo_htab): Likewise.
3484 (htab_t optimize_location_lists::htab): Likewise.
3485 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3486
3487 * except.c (htab_t ehspec_hash_type):
3488 Change type to hash_table. Update dependent calls and types.
3489 (assign_filter_values::ttypes): Likewise.
3490 (assign_filter_values::ehspec): Likewise.
3491 (sjlj_assign_call_site_values::ar_hash): Likewise.
3492 (convert_to_eh_region_ranges::ar_hash): Likewise.
3493
3494 * gcse.c (htab_t pre_ldst_table):
3495 Change type to hash_table. Update dependent calls and types.
3496
3497 * ggc-common.c (htab_t saving_htab):
3498 Change type to hash_table. Update dependent calls and types.
3499 (htab_t loc_hash): Likewise.
3500 (htab_t ptr_hash): Likewise.
3501 (call_count): Rename ggc_call_count.
3502 (call_alloc): Rename ggc_call_alloc.
3503 (loc_descriptor): Rename make_loc_descriptor.
3504 (add_statistics): Rename ggc_add_statistics.
3505
3506 * ggc-common.c (saving_htab):
3507 Change type to hash_table. Update dependent calls and types.
3508
3509 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3510 (push_gimplify_context): Likewise.
3511 (pop_gimplify_context): Likewise.
3512 (struct gimple_temp_hash_elt): Added.
3513 (struct gimplify_hasher): Likewise.
3514 (struct gimplify_ctx.temp_htab):
3515 Change type to hash_table. Update dependent calls and types.
3516
3517 * gimple-fold.c: Include gimplify-ctx.h.
3518
3519 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3520 Change type to hash_table. Update dependent calls and types.
3521 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3522 avoid potential global name collision.
3523
3524 * gimplify.c: Include gimplify-ctx.h.
3525 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3526 (htab_t gimplify_ctx::temp_htab):
3527 Update dependent calls and types for new type hash_table.
3528 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3529 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3530
3531 * gimplify-ctx.h: New.
3532 (struct gimple_temp_hash_elt): Move from gimplify.c.
3533 (class gimplify_hasher): New.
3534 (struct gimplify_ctx): Move from gimple.h.
3535 (htab_t gimplify_ctx::temp_htab):
3536 Change type to hash_table. Update dependent calls and types.
3537
3538 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3539 (htab_t ivs_params::newivs_index):
3540 Change type to hash_table. Update dependent calls and types.
3541 (htab_t ivs_params::params_index): Likewise.
3542 (htab_t print_generated_program::params_index): Likewise.
3543 (htab_t gloog::newivs_index): Likewise.
3544 (htab_t gloog::params_index): Likewise.
3545
3546 * graphite.c: Include graphite-htab.h.
3547 4htab_t graphite_transform_loops::bb_pbb_mapping):
3548 Change type to hash_table. Update dependent calls and types.
3549
3550 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3551 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3552 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3553
3554 * graphite-dependences.c: Include graphite-htab.h.
3555 (loop_is_parallel_p): Change hash table type of parameter.
3556
3557 * graphite-htab.h: New.
3558 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3559 (extern find_pbb_via_hash): Move from graphite-poly.h.
3560 (extern loop_is_parallel_p): Move from graphite-poly.h.
3561 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3562
3563 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3564 (extern loop_is_parallel_p): Move to graphite-htab.h.
3565 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3566
3567 * haifa-sched.c (htab_t delay_htab):
3568 Change type to hash_table. Update dependent calls and types.
3569 (htab_t delay_htab_i2): Likewise.
3570
3571 * ira-color.c (htab_t allocno_hard_regs_htab):
3572 Change type to hash_table. Update dependent calls and types.
3573
3574 * ira-costs.c (htab_t cost_classes_htab):
3575 Change type to hash_table. Update dependent calls and types.
3576
3577 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3578 Change type to hash_table. Update dependent calls and types.
3579
3580 * loop-iv.c (htab_t bivs):
3581 Change type to hash_table. Update dependent calls and types.
3582
3583 * loop-unroll.c (htab_t opt_info::insns_to_split):
3584 Change type to hash_table. Update dependent calls and types.
3585 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3586
3587 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3588 (struct string_slot_hasher): New.
3589 (htab_t output_block::string_hash_table):
3590 Change type to hash_table. Update dependent calls and types.
3591
3592 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3593 (htab_t file_name_hash_table):
3594 Change type to hash_table. Update dependent calls and types.
3595
3596 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3597 calls and types.
3598
3599 * lto-streamer.c (htab_t tree_htab):
3600 Change type to hash_table. Update dependent calls and types.
3601
3602 * omp-low.c: Include gimplify-ctx.h.
3603
3604 * passes.c (htab_t name_to_pass_map):
3605 Change type to hash_table. Update dependent calls and types.
3606 (pass_traverse): Rename to passes_pass_traverse.
3607
3608 * plugin.c (htab_t event_tab):
3609 Change type to hash_table. Update dependent calls and types.
3610
3611 * postreload-gcse.c (htab_t expr_table):
3612 Change type to hash_table. Update dependent calls and types.
3613 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3614
3615 * sese.c (debug_rename_map_1): Make extern.
3616 (htab_t copy_bb_and_scalar_dependences::rename_map):
3617 Change type to hash_table. Update dependent calls and types.
3618
3619 * sese.h (extern debug_rename_map): Move to .c file.
3620
3621 * store-motion.c (htab_t store_motion_mems_table):
3622 Change type to hash_table. Update dependent calls and types.
3623
3624 * trans-mem.c (htab_t tm_new_mem_hash):
3625 Change type to hash_table. Update dependent calls and types.
3626
3627 * tree-browser.c (htab_t TB_up_ht):
3628 Change type to hash_table. Update dependent calls and types.
3629
3630 * tree-cfg.c (htab_t discriminator_per_locus):
3631 Change type to hash_table. Update dependent calls and types.
3632
3633 * tree-complex.c: Include tree-hasher.h
3634 (htab_t complex_variable_components):
3635 Change type to hash_table. Update dependent calls and types.
3636
3637 * tree-eh.c (htab_t finally_tree):
3638 Change type to hash_table. Update dependent calls and types.
3639
3640 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3641 struct int_tree_hasher.
3642 (extern int_tree_map_eq): Likewise.
3643 (uid_decl_map_hash): Removed.
3644 (extern decl_tree_map_eq): Likewise.
3645
3646 * tree-hasher.h: New.
3647 (struct int_tree_hasher): New.
3648 (typedef int_tree_htab_type): New.
3649
3650 * tree-inline.c: Include gimplify-ctx.h.
3651
3652 * tree-mudflap.c: Include gimplify-ctx.h.
3653
3654 * tree-parloops.c: Include tree-hasher.h.
3655 (htab_t eliminate_local_variables_stmt::decl_address):
3656 Change type to hash_table. Update dependent calls and types.
3657 (htab_t separate_decls_in_region::decl_copies): Likewise.
3658
3659 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3660 Change type to hash_table. Update dependent calls and types.
3661
3662 * tree-sra.c (candidates):
3663 Change type to hash_table. Update dependent calls and types.
3664
3665 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3666 in tree-flow.h.
3667 (int_tree_map_hash): Likewise.
3668
3669 * tree-ssa-dom.c (htab_t avail_exprs):
3670 Change type to hash_table. Update dependent calls and types.
3671
3672 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3673 Change type to hash_table. Update dependent calls and types.
3674
3675 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3676 Change type to hash_table. Update dependent calls and types.
3677
3678 * tree-ssa-phiopt.c (seen_ssa_names):
3679 Change type to hash_table. Update dependent calls and types.
3680
3681 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3682 Change type to hash_table. Update dependent calls and types.
3683
3684 * tree-ssa-uncprop.c (equiv):
3685 Change type to hash_table. Update dependent calls and types.
3686
c5a44004
JJ
36872013-04-25 Jakub Jelinek <jakub@redhat.com>
3688
3689 PR rtl-optimization/57003
3690 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3691 call note_stores with kill_clobbered_value callback again after
3692 killing regs_invalidated_by_call.
3693
09962a4a
JG
36942013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3695
3696 * config/aarch64/aarch64-simd.md
3697 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3698 (aarch64_simd_bsl<mode>): Likewise.
3699 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3700
ea28bb0b
MP
37012013-04-25 Marek Polacek <polacek@redhat.com>
3702
3703 PR tree-optimization/57066
3c21604f 3704 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3705
96659611
JG
37062013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3707
3708 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3709
9697e620
JG
37102013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3711
3712 * config/aarch64/aarch64-builtins.c
3713 (aarch64_fold_builtin): New.
3714 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3715 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3716 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3717 * config/aarch64/arm_neon.h
3718 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3719
0ac198d3
JG
37202013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3721 Tejas Belagod <tejas.belagod@arm.com>
3722
3723 * config/aarch64/aarch64-builtins.c
3724 (aarch64_gimple_fold_builtin): New.
3725 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3726 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3727 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3728 (addvv4sf): Update.
3729 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3730
58cff58c
N
37312013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3732
df93505e 3733 * config/aarch64/aarch64.md
58cff58c
N
3734 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3735
7e0228bf
N
37362013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3737
3738 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3739 (*ngcsi_uxtw): New pattern.
3740
5819f96f 37412013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3742 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3743
3744 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3745 (TB_DREG): Add T_V4HF.
3746 (v4hf_UP): New macro.
3747 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3748 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3749 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3750 built-ins.
df93505e 3751 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3752 (arm_vector_mode_supported_p): Handle V4HF.
3753 (arm_mangle_map): Handle V4HFmode.
3754 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3755 * config/arm/arm_neon_builtins.def: Add entries for
3756 vcvtv4hfv4sf, vcvtv4sfv4hf.
3757 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3758 (neon_vcvtv4hfv4sf): Likewise.
3759 * config/arm/neon-gen.ml: Handle half-precision floating point
3760 features.
3761 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3762 * config/arm/arm_neon.h: Regenerate.
3763 * config/arm/neon.ml (type elts): Add F16.
3764 (type vectype): Add T_float16x4, T_floatHF.
3765 (type vecmode): Add V4HF.
3766 (type features): Add Requires_FP_bit feature.
3767 (elt_width): Handle F16.
3768 (elt_class): Likewise.
3769 (elt_of_class_width): Likewise.
3770 (mode_of_elt): Refactor.
3771 (type_for_elt): Handle F16, fix error messages.
3772 (vectype_size): Handle T_float16x4.
3773 (vcvt_sh): New function.
3774 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3775 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3776 (string_of_mode): Handle V4HF.
3777 * doc/arm-neon-intrinsics.texi: Regenerate.
3778
1ef395e4
JG
37792013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3780
3781 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3782 format specifier in 'X' case.
3783
41c34e94
AM
37842013-04-25 Alan Modra <amodra@gmail.com>
3785
3786 PR target/57052
3787 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3788 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3789 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3790 Repeat for many other rotate/shift and mask patterns using subregs.
3791 Name lshiftrt insns.
3792 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3793 on WORDS_BIG_ENDIAN.
3794
b9a7eb5d
AM
37952013-04-25 Alan Modra <amodra@gmail.com>
3796
3797 * config.gcc: Support little-endian powerpc-linux targets.
3798 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3799 (LINK_OS_LINUX_SPEC): Define.
3800 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3801 Preserve MASK_LITTLE_ENDIAN.
3802 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3803 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3804 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3805 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3806 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3807 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3808 Correct fp word order for little-endian. Don't shift toc entries
3809 smaller than a word for little-endian.
3810 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3811 (bswapdi2 splits): Correct low-part subreg for little-endian.
3812 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3813 low/high where such is correct only for be.
3814 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3815 little-endian for -mcall-aixdesc.
3816
87f73374
AM
38172013-04-25 Alan Modra <amodra@gmail.com>
3818
3819 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3820 replace_equiv_address_nv.
3821
cabf91cd
AM
38222013-04-25 Alan Modra <amodra@gmail.com>
3823
3824 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3825
0ae24cc8
VM
38262013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3827
3828 Revert:
3829 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3830 * rtl.h (struct rtx_def): ...
cabf91cd 3831
77bce07c
VM
38322013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3833
3834 PR rtl-optimizations/57046
3835 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3836 for multi-reg splits.
3837
0db63e7f
L
38382013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3839
3840 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3841
3362b6b6
SA
38422013-04-24 Sterling Augustine <saugustine@google.com>
3843
3844 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3845 (comp_dir_string, debug_str_dwo_section): New.
3846 (DEBUG_STR_DWO_SECTION): Rename to ...
3847 (DEBUG_DWO_STR_SECTION): ... this.
3848 (DEBUG_NORM_STR_SECTION): Delete.
3849 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3850 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3851 (find_AT_string): Move most logic to ...
3852 (find_AT_string_in_table): ... here. New.
3853 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3854 add_skeleton_AT_string. Delete logic.
3855 (output_skeleton_debug_sections): Remove call to
3856 add_top_level_skeleton_die_attrs.
3857 (add_comp_dir_attribute): Move logic to comp_dir_string.
3858 (dwarf2out_init): Initialize debug_str_dwo_section.
3859 (output_indirect_string): Call find_string_form.
3860 (output_indirect_strings): Rewrite.
3861 (prune_unused_types): Empty skeleton_debug_str_hash.
3862 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3863 (dwarf2out_finish): Call output_indirect_strings.
3864
e93e18e9
PC
38652013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3866
3867 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3868
f6ce35ac
VM
38692013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3870
cabf91cd 3871 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
3872 (LRA_SUBREG_P): New macro.
3873 * recog.c (register_operand): Check LRA_SUBREG_P.
3874 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3875 stack frame.
3876 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3877 (lra_final_code_change): Skip subreg change for operators.
3878 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3879 if there are no operand changes.
3880 * lra-constraints.c (curr_insn_set): New.
3881 (match_reload): Set LRA_SUBREG_P.
3882 (emit_spill_move): Ditto.
3883 (check_and_process_move): Use curr_insn_set. Process only single
3884 set insns. Don't initialize sec_mem_p and change_p.
3885 (simplify_operand_subreg): Use LRA_SUBREG_P.
3886 (reg_in_class_p): New function.
3887 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3888 of #ifdef. Add code to remove cycling.
3889 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3890 non-null disp. Reload inner instead of disp when base and index
3891 are null. Try to put lo_sum into register.
3892 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 3893 (check_and_process_move): Move code for move cost check to
f6ce35ac 3894 simple_move_p. Remove equiv_substitution.
cabf91cd 3895 (simple_move_p): New function.
f6ce35ac
VM
3896 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3897 curr_insn_set. Call check_and_process_move only for single set
3898 insns. Use the new function. Move call of check_and_process_move
3899 after operand equiv substitution and address process.
3900
38047d90
JG
39012013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3902
3903 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3904 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3905 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3906
13f39b2e
PC
39072013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3908
3909 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3910
97c116dc
MP
39112013-04-24 Marek Polacek <polacek@redhat.com>
3912
3913 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3914 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3915 (select_loops_exit_conditions): Likewise.
3916 (number_of_iterations_for_all_loops): Likewise.
3917 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3918 (scev_analysis): Likewise.
3919
83082391
CM
39202013-04-02 Catherine Moore <clm@codesourcery.com>
3921 Chao-ying Fu <fu@mips.com>
3922
cabf91cd
AM
3923 * config/mips/micromips.md (jraddiusp): New pattern.
3924 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3925 instruction if possible.
83082391 3926
19e34aa2
AM
39272013-04-24 Alan Modra <amodra@gmail.com>
3928
3929 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3930
fdb6603c
JB
39312013-04-24 Julian Brown <julian@codesourcery.com>
3932 Chung-Lin Tang <cltang@codesourcery.com>
3933
3934 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
3935 dependency behavior in enumeration type DIE generation. Add TODO note
3936 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 3937
bf190e8d
LC
39382013-04-23 Lawrence Crowl <crowl@google.com>
3939
3940 * Makefile.in: Update as needed below.
3941
3942 * hash-table.h (class hash_table):
3943 Correct many methods with parameter types compare_type to the correct
3944 value_type. (Correct code was unlikely to notice the change.)
3945 (hash_table::elements_with_deleted) New.
3946 (class hashtable::iterator): New.
3947 (hashtable::begin()): New.
3948 (hashtable::end()): New.
3949 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3950
3951 * statistics.c (statistics_hashes):
3952 Change type to hash_table. Update dependent calls and types.
3953
3954 * tree-into-ssa.c (var_infos):
3955 Change type to hash_table. Update dependent calls and types.
3956
3957 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3958 Change type to hash_table. Update dependent calls and types.
3959
3960 * tree-ssa-loop-im.c (struct mem_ref.refs):
3961 Change type to hash_table. Update dependent calls and types.
3962
3963 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3964 Change type to hash_table. Update dependent calls and types.
3965
3966 * tree-ssa-sccvn.c (vn_tables_s::nary):
3967 Change type to hash_table. Update dependent calls and types.
3968 (vn_tables_s::phis): Likewise.
3969 (vn_tables_s::references): Likewise.
3970
3971 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3972 (vn_reference_eq): Update parameter and return types.
3973
3974 * tree-ssa-structalias.c (pointer_equiv_class_table):
3975 Change type to hash_table. Update dependent calls and types.
3976 (location_equiv_class_table): Likewise.
3977
3978 * tree-vect-data-refs.c: Consequential changes for making
3979 peeling a hash_table.
3980
3981 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3982 (destroy_loop_vec_info): Dependent hash_table update.
3983
3984 * tree-vectorizer.h (peeling_htab):
3985 Change type to hash_table. Update dependent calls and types.
3986
d70a81dd
SC
39872013-04-23 Shiva Chen <shiva0217@gmail.com>
3988
cabf91cd
AM
3989 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3990 to check the register content is equal or not.
3991 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3992 to assign register content record.
3993 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 3994 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
3995 * lra-int.h (struct lra_reg): Add offset member.
3996 (lra_reg_val_equal_p): New static inline function.
3997 (lra_update_reg_val_offset): New static inline function.
3998 (lra_assign_reg_val): New static inline function.
3999 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4000 to assign register content record.
4001 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 4002
b894a1f3
CM
40032013-04-23 Catherine Moore <clm@codesourcery.com>
4004
4005 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4006 operands. Record compression.
4007
ecd14de9
XDL
40082013-04-23 Xinliang David Li <davidxl@google.com>
4009
4010 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4011
92e776e9
RB
40122013-04-23 Richard Biener <rguenther@suse.de>
4013
4014 PR middle-end/57036
4015 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4016 parameter, only add abnormal goto edges from the copied body
4017 if the call could perform abnormal gotos.
4018 (copy_cfg_body): Adjust.
4019
a15ee567
SN
40202013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4021
4022 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4023
08c52234
AS
40242013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4025
4026 * coretypes.h (gimple_stmt_iterator): Add struct to make
4027 compatible with C.
4028
999c1171
RB
40292013-04-23 Richard Biener <rguenther@suse.de>
4030
4031 PR tree-optimization/57026
4032 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4033 from SSA names occuring in abnormal PHI nodes.
4034
53669259
AK
40352013-04-22 Andi Kleen <ak@linux.intel.com>
4036
4037 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4038
1a0ad150
AK
40392013-04-22 Andi Kleen <ak@linux.intel.com>
4040
4041 * lto/lto.c (print_lto_report_1): Declare early.
4042 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4043
057f8f20
AK
40442013-04-22 Andi Kleen <ak@linux.intel.com>
4045
4046 * common.opt (-flto-report-wpa): Add.
4047 * doc/invoke.texi (-flto-report-wpa): Add.
4048 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4049 (lto_main): dito.
4050
473b1e05
XDL
40512013-04-22 Xinliang David Li <davidxl@google.com>
4052
4053 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4054 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4055 * Makefile.in: New dependency
4056
cabf91cd 4057 David Daney <ddaney.cavm@gmail.com>
b1485a33 4058
cabf91cd
AM
4059 * configure.ac (gcc_cv_as_micromips_support): Use the
4060 --fatal-warnings option.
4061 * configure: Regenerate.
b1485a33 4062
829d0168
MP
40632013-04-22 Marek Polacek <polacek@redhat.com>
4064
4065 PR sanitizer/56990
4066 * tsan.c (instrument_expr): Don't instrument expression
4067 in case its size is zero.
4068
6d9b7208
UB
40692013-04-22 Uros Bizjak <ubizjak@gmail.com>
4070
4071 PR target/57032
4072 Revert:
4073 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4074
4075 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4076
ea679d55
JG
40772013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4078
4079 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4080 (gimple_stmt_iterator): New typedef.
4081 * gimple.h (gimple_stmt_iterator): Rename to...
4082 (gimple_stmt_iterator_d): ... This.
4083 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4084 trees be valid for GIMPLE and GENERIC.
4085 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4086 * gimple-fold.c (gimple_fold_call): Call target hook
4087 gimple_fold_builtin.
4088 * hooks.c (hook_bool_gsiptr_false): New.
4089 * hooks.h (hook_bool_gsiptr_false): New.
4090 * target.def (fold_stmt): New.
4091 * doc/tm.texi: Regenerate.
4092
88a581da
VM
40932013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4094
4095 PR target/57018
4096 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4097 a set sp if no stack realignment.
4098
92be22dc
NC
40992013-04-22 Nick Clifton <nickc@redhat.com>
4100
4101 * config.gcc (tilegx-linux): Extend extra_objs rather than
4102 overwriting it.
4103 (tilepro-linux): Likewise.
4104
0ddec79f
JG
41052013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4106
4107 * config/aarch64/aarch64-builtins.c
4108 (CF): Remove.
4109 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4110 (VAR<1-12>): Add MAP parameter.
4111 (BUILTIN_*): Likewise.
4112 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4113 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4114 (aarch64_ushl_n<mode>): Likewise.
4115 (aarch64_sshr_n<mode>): Likewise.
4116 (aarch64_ushr_n<mode>): Likewise.
4117 (aarch64_<maxmin><mode>): Likewise.
4118 (aarch64_sqrt<mode>): Likewise.
4119 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4120 (vshr<q>_n_*): Likewise.
4121
0050faf8
JG
41222013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4123
4124 * config/aarch64/aarch64-builtins.c
4125 (aarch64_simd_builtin_type_mode): Handle SF types.
4126 (sf_UP): Define.
4127 (BUILTIN_GPF): Define.
4128 (aarch64_init_simd_builtins): Handle SF types.
4129 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4130 (frecps): Likewise.
4131 (frecpx): Likewise.
4132 * config/aarch64/aarch64-simd.md
4133 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4134 (aarch64_frecpe<mode>): New.
4135 (aarch64_frecps<mode>): Likewise.
4136 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4137 (v8type): Add frecp<esx>.
4138 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4139 (aarch64_frecps<mode>): Likewise.
4140 * config/aarch64/iterators.md (FRECP): New.
4141 (frecp_suffix): Likewise.
4142 * config/aarch64/arm_neon.h
4143 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4144
0fad3dbc 41452013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
4146
4147 PR target/56995
4148 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4149 (REG_CLASS_NAMES): Idem.
4150 (REG_CLASS_CONTENTS): Idem.
4151 (REGCLASS_HAS_FP_REG): Idem.
4152 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4153 (sh_conditional_register_usage): Idem.
4154
3e8a33f9
JL
41552013-04-21 Jeff Law <law@redhat.com>
4156
4157 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4158 (ssa_forward_propagate_and_combine): Use it.
4159
f38e1b0a
VM
41602013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4161
4162 * lra.c: Update the flow chart diagram.
4163
682303da
VM
41642013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4165
4166 PR rtl-optimization/56847
4167 * lra-constraints.c (process_alt_operands): Discourage alternative
4168 with non-matche doffsettable memory constraint fro memory with
4169 known offset.
4170
f6b64c35
RB
41712013-04-19 Richard Biener <rguenther@suse.de>
4172
4173 PR tree-optimization/56982
4174 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4175 function.
4176 * gimplify.c (gimplify_call_expr): Notice special calls.
4177 (gimplify_modify_expr): Likewise.
4178 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4179 abnormal control flow receivers.
4180 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4181 in the same way as cfun->has_nonlocal_labels.
4182 (gimple_purge_dead_abnormal_call_edges): Likewise.
4183 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4184 receivers start a basic-block.
4185
01d8bf07
RB
41862013-04-19 Richard Biener <rguenther@suse.de>
4187
4188 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4189 member ...
4190 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4191 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4192 (SLP_TREE_LOAD_PERMUTATION): Add.
4193 (vect_transform_slp_perm_load): Adjust prototype.
4194 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4195 (vect_free_slp_instance): Likewise.
4196 (vect_create_new_slp_node): Likewise.
4197 (vect_supported_slp_permutation_p): Remove.
4198 (vect_slp_rearrange_stmts): Adjust.
4199 (vect_supported_load_permutation_p): Likewise. Inline
4200 vect_supported_slp_permutation_p here.
4201 (vect_analyze_slp_instance): Compute load permutations per
4202 slp node instead of per instance.
4203 (vect_get_slp_defs): Adjust.
4204 (vect_transform_slp_perm_load): Likewise.
4205 (vect_schedule_slp_instance): Remove redundant code.
4206 (vect_schedule_slp): Remove hack for PR56270, add it ...
4207 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4208 CSE loads for SLP. Adjust.
4209
ede22fc3
GY
42102013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4211
4212 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4213 spelling in two comments.
4214
67bc84fb
GY
42152013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4216
4217 PR target/56797
4218 * config/arm/arm.c (load_multiple_sequence): Require SP
4219 as base register for loads if SP is in the register list.
4220
e248d83f
MJ
42212013-04-19 Martin Jambor <mjambor@suse.cz>
4222
4223 PR tree-optimization/56718
4224 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4225 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4226 and made public. Adjusted all callers.
4227 (ipa_intraprocedural_devirtualization): New function.
4228 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4229 (ipa_intraprocedural_devirtualization): Likewise.
4230 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4231
4891e8f8
RB
42322013-04-19 Richard Biener <rguenther@suse.de>
4233
4234 PR tree-optimization/57000
4235 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4236
dad89f7c
TG
42372013-04-19 Terry Guo <terry.guo@arm.com>
4238
4239 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4240 Replace with ...
4241 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4242 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4243 (cortex_m4_fmacs): Use new reservations.
4244 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4245
72ea0d47
VM
42462013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4247
f1e6512c 4248 PR rtl-optimization/56999
72ea0d47
VM
4249 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4250 related code.
4251 (lra_coalesce): Remove split_origin_bitmap and related code.
4252 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4253 ranges if necessary.
4254
780a5b71
UB
42552013-04-18 Uros Bizjak <ubizjak@gmail.com>
4256
4257 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4258 New array.
4259 (ix86_expand_call): Remove clobbered_registers array and use
4260 x86_64_ms_sysv_extra_clobbered_registers instead.
4261 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4262 Declare here.
4263 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4264 predicate.
4265 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4266 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4267 (*call_value_rex64_ms_sysv): Ditto.
4268
6f5a366a
CC
42692013-04-18 Cary Coutant <ccoutant@google.com>
4270
4271 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4272 parent instead of die_mark.
4273
475b8f37
DN
42742013-04-18 Diego Novillo <dnovillo@google.com>
4275
4276 * gimple.c (create_gimple_tmp): New.
4277 (get_expr_type): New.
4278 (build_assign): New.
4279 (build_type_cast): New.
4280 * gimple.h (enum ssa_mode): Define.
4281 (gimple_seq_set_location): New.
4282 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 4283 to use build_assign and build_type_cast.
475b8f37 4284
08940f33
RB
42852013-04-18 Richard Biener <rguenther@suse.de>
4286
4287 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4288 handle negative step. Remove redundant checks.
4289 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4290 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4291 for negative step and grouped loads fail to vectorize.
4292
0e0f87d4
SB
42932013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4294
4295 * emit-rtl.c (reset_insn_used_flags): New function.
4296 (reset_all_used_flags): Use it.
4297 (verify_insn_sharing): New function.
4298 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4299
4c445590
JJ
43002013-04-18 Jakub Jelinek <jakub@redhat.com>
4301
4302 PR tree-optimization/56984
4303 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4304 and (x >> M) >= N don't register any assertion if N << M is the
4305 minimum value.
4306
6873ecab
SB
43072013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4308
4309 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4310 do not delete_insn insns that have not yet been emitted, only
4311 unlink them with remove_insn.
4312 * df-scan.c (df_insn_delete): Revert r197492.
4313
3ccb989e
SB
43142013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4315
4316 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4317 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4318
43192013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
4320
4321 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4322 define_insn_and_split.
4323 (and_scc,ior_scc,negscc): Likewise.
4324 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4325
3ccb989e 43262013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
4327
4328 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4329 can benefit from using a sequence of LDRD instructions in epilogue
4330 instead of a single LDM instruction.
4331
6d10a203
MLI
43322013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4333
4334 PR 45688
4335 * doc/extend.texi: Fix typo.
4336
6983e6b5
RB
43372013-04-17 Richard Biener <rguenther@suse.de>
4338
4339 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4340 (vect_build_slp_tree): ... here.
4341 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4342 match. Remove special-casing of mismatched complex loads.
4343 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4344 re-try the match with swapped commutative operands.
4345 (vect_supported_load_permutation_p): Remove special-casing of
4346 mismatched complex loads.
4347 (vect_analyze_slp_instance): Adjust.
4348
ef23e6a2
RB
43492013-04-17 Richard Biener <rguenther@suse.de>
4350
4351 PR rtl-optimization/56921
4352 * cfgloop.h (struct loop): Add simple_loop_desc member.
4353 (struct niter_desc): Mark with GTY(()).
4354 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4355 * loop-iv.c (get_simple_loop_desc): Likewise.
4356 (free_simple_loop_desc): Likewise.
4357
4358 Revert
4359 2013-04-16 Richard Biener <rguenther@suse.de>
4360
4361 PR rtl-optimization/56921
4362 * loop-init.c (pass_rtl_move_loop_invariants): Add
4363 TODO_do_not_ggc_collect to todo_flags_finish.
4364 (pass_rtl_unswitch): Same.
4365 (pass_rtl_unroll_and_peel_loops): Same.
4366 (pass_rtl_doloop): Same.
4367
fc6f94f5
EB
43682013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4369
4370 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4371 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4372 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4373 references.
4374 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4375 * tree-streamer.c (record_common_node): Adjust reference in comment.
4376
10a88311
TG
43772013-04-17 Terry Guo <terry.guo@arm.com>
4378
4379 * config/arm/cortex-m4.md: Add a new bypass.
4380
6d9b7208 43812013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
4382
4383 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4384 New pattern.
4385 (*subs_<optab><mode>_multp2): New pattern.
4386 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4387 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4388
6d9b7208 43892013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
4390
4391 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4392 (*subs_mul_imm_<mode>): New pattern.
4393
18a6701e
DE
43942013-04-16 David Edelsohn <dje.gcc@gmail.com>
4395
4396 PR target/56948
4397 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4398 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4399 (vsx_movti_32bit): Change j->wa to O->wa.
4400
07c37b2f
RB
44012013-04-16 Richard Biener <rguenther@suse.de>
4402
4403 PR rtl-optimization/56921
4404 * loop-init.c (pass_rtl_move_loop_invariants): Add
4405 TODO_do_not_ggc_collect to todo_flags_finish.
4406 (pass_rtl_unswitch): Same.
4407 (pass_rtl_unroll_and_peel_loops): Same.
4408 (pass_rtl_doloop): Same.
4409
0e0f87d4 44102013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
4411
4412 * config/arm/arm.c (emit_multi_reg_push): New declaration
4413 for an existing function.
4414 (arm_emit_strd_push): New function.
4415 (arm_expand_prologue): Used here.
4416 (arm_emit_ldrd_pop): New function.
4417 (arm_expand_epilogue): Used here.
4418 (arm_get_frame_offsets): Update condition.
4419 (arm_emit_multi_reg_pop): Add a special case for load of a single
4420 register with writeback.
4421
5e8e2af4
UB
44222013-04-16 Uros Bizjak <ubizjak@gmail.com>
4423
4424 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4425 description.
4426
9fd9ccf7
RB
44272013-04-16 Richard Biener <rguenther@suse.de>
4428
4429 PR tree-optimization/56756
4430 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4431 (first_mem_ref_loc): New.
4432 (execute_sm): Place the load temporarily before a previous
4433 access instead of in the latch edge to ensure its SSA dependencies
4434 are defined at points dominating the load.
4435
96fba521
SB
44362013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4437
4c8af858
SB
4438 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4439 correct fix by moving header and footer insn to the footer of
4440 the merged basic block. Clear BB_END of the merged-away block.
4441
96fba521
SB
4442 PR middle-end/43631
4443 * emit-rtl.c (make_note_raw): New function.
4444 (link_insn_into_chain): New static inline function.
4445 (add_insn): Use it.
4446 (add_insn_before, add_insn_after): Factor insn chain linking code...
4447 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4448 using link_insn_into_chain.
4449 (note_outside_basic_block_p): New helper function for emit_note_after
4450 and emit_note_before.
4451 (emit_note_after): Use nobb variant of add_insn_after if the note
4452 should not be contained in a basic block.
4453 (emit_note_before): Use nobb variant of add_insn_before if the note
4454 should not be contained in a basic block.
4455 (emit_note_copy): Use make_note_raw.
4456 (emit_note): Likewise.
4457 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4458 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4459 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4460 the moved barrier the tail of the basic block it follows.
4461 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4462
7b8265ba
JJ
44632013-04-15 Jakub Jelinek <jakub@redhat.com>
4464
4465 PR tree-optimization/56962
4466 * gimple-ssa-strength-reduction.c (record_increment): Only set
4467 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4468 either rhs1 or rhs2 is equal to c->base_expr.
4469
5185d248
RB
44702013-04-15 Richard Biener <rguenther@suse.de>
4471
4472 PR tree-optimization/56933
4473 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4474 member.
4475 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4476 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4477 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4478 dependence check ...
4479 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4480 ... here.
4481 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4482 GROUP_READ_WRITE_DEPENDENCE.
4483
a24243a0
AK
44842013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4485
4486 * emit-rtl.c (reset_all_used_flags): New function.
4487 (verify_rtl_sharing): Call reset_all_used_flags before and after
4488 performing the checks.
4489
1c50eada
KT
44902013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4491
4492 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4493 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4494 * config/arm/constraints.md (De): New constraint.
4495 * config/arm/neon.md (anddi3_neon): Delete.
4496 (neon_vand<mode>): Expand to standard anddi3 pattern.
4497 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4498 Move earlier in the file.
4499 (neon_inv_logic_op2): Likewise.
4500 (arm_anddi_operand_neon): New predicate.
4501
e927b6ad
RO
45022013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4503
4504 * configure.ac (gcc_cv_ld_as_needed): Set
4505 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4506 Use -z ignore, -z record on *-*-solaris2*.
4507 (HAVE_LD_AS_NEEDED): Update comment.
4508 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4509 * configure: Regenerate.
4510 * config.in: Regenerate.
4511 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4512 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4513 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4514 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4515 equivalents. Fix markup.
4516 * doc/tm.texi: Regenerate.
4517
e0ea8797
AH
45182013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4519
4520 * config/i386/i386.opt: New option mstack-protector-guard=.
4521 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4522 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4523 TARGET_SSP_TLS_GUARD.
4524 * config/i386/i386.c (ix86_option_override_internal): Set
4525 ix86_stack_protector_guard.
4526 * config/i386/i386.md (stack_protect_set): Enable for
4527 TARGET_SSP_TLS_GUARD only.
4528 (stack_protect_set_<mode>): Ditto.
4529 (stack_protect_test): Ditto.
4530 (stack_protect_test_<mode>): Ditto.
4531 * doc/invoke.texi (i386 Option): Document.
4532
811b72f9
EB
45332013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4534
4535 PR target/56890
4536 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4537 (S_MODES): Set H_MODE bit.
4538 (SF_MODES): Set only S_MODE and SF_MODE bits.
4539 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4540 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4541 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4542 <MODE_FLOAT>: Likewise.
4543
5529fdd6
JY
45442013-04-15 Joey Ye <joey.ye@arm.com>
4545
4546 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4547
517b1da2
JY
45482013-04-15 Joey Ye <joey.ye@arm.com>
4549
4550 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4551 for real far jump.
4552 (thumb_far_jump_used_p): Count instruction size and set
4553 far_jump_used.
4554
01007ae0
EB
45552013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4556
4557 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4558 * resource.c (mark_target_live_regs): Reformat conditional block.
4559
c46f6580
SB
45602013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4561
4562 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4563 notes, they are emitted only just before final.
4564 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4565
1f397f45
SB
45662013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4567
4568 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4569 * cfgrtl.c (delete_insn): Call it here instead.
4570 * lra-spills.c (lra_final_code_change): Use delete_insn.
4571 * haifa-sched.c (sched_remove_insn): Likewise.
4572 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4573 returning to the nop pool.
4574 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4575 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4576
58a51369
SB
45772013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4578
4579 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4580 * doc/tm.texi: Regenerated.
4581
33159866
UB
45822013-04-12 Uros Bizjak <ubizjak@gmail.com>
4583
4584 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4585 QImode checks.
4586
226e378f
SB
45872013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4588
4589 * df-core.c (df_find_def): Compare register numbers.
4590 (df_find_use): Likewise.
4591
fafb9b18
VM
45922013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4593
4594 PR target/56903
4595 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4596 lra_in_progress for return.
4597
9a946fd6
GY
45982013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4599
4600 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4601 define_insn into define_insn_and_split and emit movsicc patterns.
4602
41b83758
GY
46032013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4604
4605 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4606
d3afd9aa
RB
46072013-04-12 Richard Biener <rguenther@suse.de>
4608
4609 * tree-pass.h (TODO_do_not_ggc_collect): New.
4610 * passes.c (execute_one_ipa_transform_pass): Honor
4611 TODO_do_not_ggc_collect.
4612 (execute_one_pass): Likewise.
4613
4614 Revert
4615 2013-04-10 Richard Biener <rguenther@suse.de>
4616
4617 * passes.c (init_optimization_passes): Remove reload pass.
4618 * ira.c (do_reload): Merge into ...
4619 (ira): ... this.
4620 (rest_of_handle_reload): Remove.
4621 (pass_reload): Likewise.
4622 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4623 of reload for vzeroupper pass placement.
4624
06f9b387
JJ
46252013-04-12 Jakub Jelinek <jakub@redhat.com>
4626
4627 PR tree-optimization/56918
4628 PR tree-optimization/56920
4629 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4630 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4631 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4632 use wide_mul_with_sign method.
4633
953094d2
RB
46342013-04-12 Richard Biener <rguenther@suse.de>
4635
4636 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4637 not be considered a gimple constant.
4638
bb506982
MG
46392013-04-12 Marc Glisse <marc.glisse@inria.fr>
4640
4641 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4642 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4643 operations.
4644
4b84d650
JJ
46452013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4646 Jakub Jelinek <jakub@redhat.com>
4647
4648 * opts.c: Include diagnostic-color.h.
4649 (common_handle_option): Handle OPT_fdiagnostics_color_.
4650 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4651 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4652 (diagnostic-color.o): New.
4653 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4654 (diagnostic_color_rule): New enum.
4655 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4656 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4657 the location string.
4658 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4659 either NULL, or color kind.
4660 * diagnostic-color.c: New file.
4661 * diagnostic-color.h: New file.
4662 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4663 arguments.
4664 * doc/invoke.texi (-fdiagnostics-color): Document.
4665 * pretty-print.h (pp_show_color): Define.
4666 (struct pretty_print_info): Add show_color field.
4667 * diagnostic.c: Include diagnostic-color.h.
4668 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4669 macros. Colorize error:, warning: etc. strings and also the location
4670 string.
4671 (diagnostic_show_locus): Colorize the caret line.
4672 * pretty-print.c: Include diagnostic-color.h.
4673 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4674 inside of %< %> quotes or quoted through q format modifier.
4675
067a1e71
AK
46762013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4677
33159866 4678 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4679
33159866 46802013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4681
4682 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4683 code in CC_NZ mode.
4684 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4685 pattern.
4686
7b55f98f
MP
46872013-04-11 Marek Polacek <polacek@redhat.com>
4688
4689 PR tree-optimization/48184
33159866 4690 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4691
966b587e
EB
46922013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4693
4694 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4695 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4696 (skip_simple_arithmetic): Tidy up.
4697 * tree.h (skip_simple_constant_arithmetic): Declare.
4698
33159866 46992013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4700
4701 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4702
1d42c1ec
RB
47032013-04-11 Richard Biener <rguenther@suse.de>
4704
4705 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4706 generate vector constants.
4707
4ba5ea11
RB
47082013-04-11 Richard Biener <rguenther@suse.de>
4709
4710 PR tree-optimization/56878
4711 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4712 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4713 New function.
4714 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4715 Prefer to align the DR with the most invariant base address.
4716
f0defe58
SKS
47172013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4718
4719 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4720 comment.
4721
d07458be
JG
47222013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4723
4724 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4725 floating-point vector comparisons against 0.
4726
146b8692
JJ
47272013-04-11 Jakub Jelinek <jakub@redhat.com>
4728
4729 PR tree-optimization/56899
4730 * fold-const.c (extract_muldiv_1): Apply distributive law
4731 only if TYPE_OVERFLOW_WRAPS (ctype).
4732
b8578ff7
BC
47332013-04-11 Bin Cheng <bin.cheng@arm.com>
4734
4735 PR target/56124
4736 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4737 loading has side effect.
4738
0ea8a6f9
SB
47392013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4740
4741 * config/sparc/sparc.c: Include tree-pass.h.
4742 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4743 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4744 head of file. Change return type. Split off gate function.
4745 (sparc_gate_work_around_errata): New function.
4746 (pass_work_around_errata): New pass definition.
4747 (insert_pass_work_around_errata) New pass insert definition to
4748 insert pass_work_around_errata just after delayed-branch scheduling.
4749 (sparc_option_override): Insert the pass.
4750 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4751
42e37616
DM
47522013-04-10 David S. Miller <davem@davemloft.net>
4753
89deeb3b
DM
4754 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4755 or -mcpu=hypersparc.
4756
42e37616
DM
4757 * target.def (cstore_mode): New hook.
4758 * target.h: Include insn-codes.h
4759 * targhooks.c: Likewise.
4760 (default_cstore_mode): New function.
4761 * targhooks.h: Declare it.
4762 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4763 * doc/tm.texi: Rebuild.
4764 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4765 target hook, rather than inspecting the insn_data.
4766 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4767 (TARGET_CSTORE_MODE): Redefine.
4768 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4769 result patterns.
4770 * config/sparc/predicates.md (cstore_result_operand): New special
4771 predicate.
4772 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4773 Use it for operand 0.
4774 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4775 (*snesi_special): Likewise.
4776 (*snesi_zero): Likewise.
4777 (*seqsi_zero): Likewise.
4778 (*sltu_insn): Likewise.
4779 (*sgeu_insn): Likewise.
4780 (*seqdi_special): Make operand 0 and comparison operation be of
4781 DImode.
4782 (*snedi_special): Likewise.
4783 (*snedi_special_vis3): Likewise.
4784 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4785 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4786 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4787 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4788 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4789 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4790 (*sltu_extend_sp64): Likewise.
4791 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4792 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4793 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4794 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4795 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4796
95ca411e
YZ
47972013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4798
4799 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4800 (aarch64_start_file): Use the new function.
4801
6782438d 48022013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 4803 Jason Merrill <jason@redhat.com>
6782438d
SKS
4804
4805 * common.opt: Add -gdwarf.
4806 * opts.c (common_handle_option): Handle it.
4807 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4808
bb313b93
RB
48092013-04-10 Richard Biener <rguenther@suse.de>
4810
4811 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4812 (execute_one_ipa_transform_pass): But unconditionally here.
4813 (execute_one_pass): And here.
4814 (init_optimization_passes): Remove reload pass.
4815 * tree-pass.h (TODO_ggc_collect): Remove.
4816 (pass_reload): Likewise.
4817 * ira.c (do_reload): Merge into ...
4818 (ira): ... this.
4819 (rest_of_handle_reload): Remove.
4820 (pass_reload): Likewise.
4821 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4822 of reload for vzeroupper pass placement.
4823 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4824 and todo_flags_finish of all passes.
4825
793d9a16
RB
48262013-04-10 Richard Biener <rguenther@suse.de>
4827
4828 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4829 first_const_oprnd field, rename first_def_type to first_op_type.
4830 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4831 (vect_get_and_check_slp_defs): Always use the type of the
4832 operand. Allow mixed vect_external_def, vect_constant_def types.
4833 (vect_get_constant_vectors): Handle mixed vect_external_def,
4834 vect_constant_def types.
4835
ee8a9b7b
JR
48362013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4837
4838 PR tree-optimization/55524
4839 * tree-ssa-math-opts.c
4840 (convert_mult_to_fma): Don't use an fms construct
4841 when we don't have an fms operation, but fnma, and it looks
4842 likely that we'll be able to use the latter.
4843
6957a6f6
ZZ
48442013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4845
4846 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4847 function.
4848 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4849 inline fail caused by overwritable functions.
4850
34ab4a5b
CJW
48512013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4852
4853 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4854 unnecessary bits in the constant power of two case.
4855
abf9bfbc
RB
48562013-04-10 Richard Biener <rguenther@suse.de>
4857
4858 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4859 broken code swapping operands.
4860 (vect_build_slp_tree): Do not compute load permutations here.
4861 (vect_analyze_slp_instance): Compute load permutations here,
4862 after building the SLP tree.
4863
f408477e
CB
48642013-04-09 Christian Bruel <christian.bruel@st.com>
4865
4866 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4867 of next/prev_real_insn.
4868
5ac42672
JH
48692013-04-09 Jan Hubicka <jh@suse.cz>
4870
abf9bfbc
RB
4871 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4872 Drop aliased parameter.
5ac42672
JH
4873 (function_and_variable_visibility): Do not handle alias pairs.
4874 * cgraph.c (varpool_externally_visible_p): Update prototype.
4875 * varpool.c (varpool_add_new_variable): Update.
4876
5017f1d2
KT
48772013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4878
4879 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4880
48eecbee
SB
48812013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4882
a949cf1c
SB
4883 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4884
48eecbee
SB
4885 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4886
75ef8e3d
MP
48872013-04-09 Marek Polacek <polacek@redhat.com>
4888
4889 PR tree-optimization/48762
33159866 4890 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 4891
23847df4
RB
48922013-04-09 Richard Biener <rguenther@suse.de>
4893
4894 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4895 dealing with cost.
4896 (vect_build_slp_tree): Likewise.
4897 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4898 calculating the cost of a SLP instance.
4899 (vect_analyze_slp_instance): Use it from here, after building
4900 the SLP tree.
4901
ea3a0fde
JJ
49022013-04-09 Jakub Jelinek <jakub@redhat.com>
4903
4904 PR middle-end/56883
4905 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4906 expand_omp_for_static_chunk): Use simple_p = true in
4907 force_gimple_operand_gsi calls when assigning to addressable decls.
4908
a32dfe9d
JL
49092013-04-09 Jeff Law <law@redhat.com>
4910
4911 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4912 when the boolean was created by converting a wider object which
4913 had a boolean range.
4914
d755c7ef
RB
49152013-04-09 Richard Biener <rguenther@suse.de>
4916
4917 * tree-vectorizer.h (slp_void_p): Remove.
4918 (slp_tree): Typedef before _slp_tree declaration.
4919 (struct _slp_tree): Use a vector of slp_tree as children.
4920 (vect_get_place_in_interleaving_chain): Remove.
4921 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4922 Move ...
4923 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4924 and make static.
4925 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4926 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4927 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4928 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4929 Use slp_node instead of slp_void_p and adjust.
4930
3d741091
RB
49312013-04-09 Richard Biener <rguenther@suse.de>
4932
4933 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4934 work that is not necessary.
4935
39307ba7
JJ
49362013-04-09 Jakub Jelinek <jakub@redhat.com>
4937
4938 PR tree-optimization/56854
4939 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4940 forward into clobber stmts if it would change MEM_REF lhs into
4941 non-MEM_REF.
4942
343881fd
MK
49432013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4944
4945 * tree.c (type_hash_lookup, type_hash_add): Make static.
4946 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4947
3922658a
RB
49482013-04-09 Richard Biener <rguenther@suse.de>
4949
4950 * tree.h (unsave_expr_now): Remove.
4951 * tree-inline.c (mark_local_for_remap_r): Remove.
4952 (unsave_expr_1): Likewise.
4953 (unsave_r): Likewise.
4954 (unsave_expr_now): Likewise.
4955 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4956 (propagate_tree_value): Likewise.
4957
9fb6b620
SB
49582013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4959
4960 * doc/rtl.texi (sequence): Rewrite documentation to match the
4961 current use of SEQUENCE rtl objects.
4962 * rtl.def (SEQUENCE): Likewise.
4963
4964 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4965 Update documentation.
4966 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4967 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4968
4969 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4970
8ddb5a29
TJ
49712013-04-08 Teresa Johnson <tejohnson@google.com>
4972
4973 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4974 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 4975 methods.
8ddb5a29
TJ
4976 (estimate_edge_size_and_time): Add comment to suggest using rounding
4977 methods.
4978 (estimate_node_size_and_time): Ditto.
4979 (remap_edge_change_prob): Use helper rounding divide methods.
4980 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4981 (gimple_mod_pow2_value_transform): Ditto.
4982 (gimple_mod_subtract_transform): Ditto.
4983 (gimple_ic_transform): Ditto.
4984 (gimple_stringops_transform): Ditto.
4985 * stmt.c (conditional_probability): Ditto.
4986 (emit_case_dispatch_table): Ditto.
4987 * lto-cgraph.c (merge_profile_summaries): Ditto.
4988 * tree-optimize.c (execute_fixup_cfg): Ditto.
4989 * cfgcleanup.c (try_forward_edges): Ditto.
4990 * cfgloopmanip.c (scale_loop_profile): Ditto.
4991 (loopify): Ditto.
4992 (duplicate_loop_to_header_edge): Ditto.
4993 (lv_adjust_loop_entry_edge): Ditto.
4994 * tree-vect-loop.c (vect_transform_loop): Ditto.
4995 * profile.c (compute_branch_probabilities): Ditto.
4996 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4997 * lto-streamer-in.c (input_cfg): Ditto.
4998 * gimple-streamer-in.c (input_bb): Ditto.
4999 * ipa-cp.c (update_profiling_info): Ditto.
5000 (update_specialized_profile): Ditto.
5001 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5002 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 5003 rounding methods.
8ddb5a29
TJ
5004 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5005 (compute_trg_info): Ditto.
5006 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5007 (purge_dead_edges): Ditto.
5008 * loop-unswitch.c (unswitch_loop): Ditto.
5009 * cgraphclones.c (cgraph_clone_edge): Ditto.
5010 (cgraph_clone_node): Ditto.
5011 * tree-inline.c (copy_bb): Ditto.
5012 (copy_edges_for_bb): Ditto.
5013 (initialize_cfun): Ditto.
5014 (copy_cfg_body): Ditto.
5015 (expand_call_inline): Ditto.
5016
661e6bd7
KT
50172013-04-08 Kai Tietz <ktietz@redhat.com>
5018
5019 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5020 TARGET_CYGWIN64 by TARGET_64BIT.
5021
105766f3
JR
50222013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5023
5024 * config/epiphany/epiphany.md (GPR_1): New constant.
5025 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5026 * config/epiphany/epiphany.c (gen_compare_reg):
5027 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5028 is already in place.
5029 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5030 Don't require being called during rtl expansion; If y operlaps r0,
5031 return 0.
5032 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5033 (epiphany_expand_epilogue): Likewise.
5034
8afab237
JR
5035 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5036 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 5037 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 5038
fa7707d6
JR
5039 * config/epiphany/constraints.md (CnL): New constraint.
5040 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5041 * config/epiphany/predicates.md (add_operand): Allow 1024.
5042
5138e18d
JR
5043 * config/epiphany/epiphany.md (logical_op): New code iterator.
5044 (op_mnc): New code attribute.
5045 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5046 (mov_f+1, mov_f+2): New peephole2 patterns.
5047
2ccc703d
JR
5048 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5049 (cstoresi4): Also allow re-use of zero result when doing a NE
5050 comparison to a non-zero operand.
aefb0819 5051 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 5052
093ac0a5
JR
5053 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5054 Use gen_addsi3_i / gen_subsi3_i.
5055
f223bb13
JJ
50562013-04-08 Jakub Jelinek <jakub@redhat.com>
5057
5058 PR c++/34949
5059 PR c++/50243
5060 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5061 contain anything but clobbers, at most one __builtin_stack_restore,
5062 optionally debug stmts and final resx, and if it has at least one
5063 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5064 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5065 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5066 which isn't defaut definition, remove them.
5067 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5068 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5069 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5070 with MEM_REF LHS with SSA_NAME address.
5071
4481581f
JL
50722013-04-08 Jeff Law <law@redhat.com>
5073
5074 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 5075
451dabda
RB
50762013-04-08 Richard Biener <rguenther@suse.de>
5077
5078 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5079 extra newline.
5080 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5081 determined vector type.
5082 (vect_analyze_data_refs): Likewise.
5083 (vect_get_new_vect_var): Adjust.
5084 (vect_create_destination_var): Preserve SSA name versions.
5085 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5086 not dump anything here.
5087
3b088b47
JR
50882013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5089
5090 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5091 Add member lr_slot_known.
5092 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5093 if necessary.
5094 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5095 Remove code that sets lr_slot_offset according to what a previous
5096 version of epiphany_emit_save_restore used to do.
5097 (epiphany_emit_save_restore): When doing an lr save or restore,
5098 set/verify lr_slot_known and lr_slot_offset.
5099
d8484d41
XQ
51002013-04-08 Xinyu Qi <xyqi@marvell.com>
5101
33159866
UB
5102 PR target/54338
5103 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
5104 in ALL_REGS.
5105
481be1c4
RB
51062013-04-08 Richard Biener <rguenther@suse.de>
5107
5108 * alias.c (find_base_term): Fix thinko in previous change.
5109
401f3a81
JJ
51102013-04-08 Jakub Jelinek <jakub@redhat.com>
5111
5112 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5113 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5114 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5115 if possible to compute val.
5116 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5117 For QImode integers don't require anything about precision. Use
5118 const_with_all_bytes_same to find out if the constant doesn't have
5119 repeated bytes in it.
5120
03ed99a8
AK
51212013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5122
5123 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5124 within mode size.
5125
781b2e62
MP
51262013-04-08 Marek Polacek <polacek@redhat.com>
5127
5128 PR rtl-optimization/48182
5129 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5130 value to 1.
5131
27e430a2
JDA
51322013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5133
5134 PR target/55487
5135 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5136 nuses, make sure we have a label.
5137
4902aa64
BS
51382013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5139
5140 PR target/56843
5141 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5142 (rs6000_emit_swdiv_low_precision): Remove.
5143 (rs6000_emit_swdiv): Rewrite to handle between one and four
5144 iterations of Newton-Raphson generally; modify required number of
5145 iterations for some cases.
5146 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5147
7bca81dc
SB
51482013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5149
5150 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5151 set-but-unused variable.
5152
5153 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5154 basic blocks of released function bodies garbage-collectable.
5155
5156 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5157 (struct rtl_opt_pass): Add TODO_df_finish.
5158
5159 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5160
4542a38a
GY
51612013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5162
5163 * config/arm/constraints.md (q): New constraint.
5164 * config/arm/ldrdstrd.md: New file.
5165 * config/arm/arm.md (ldrdstrd.md) New include.
5166 (arm_movdi): Use "q" instead of "r" constraint
5167 for double-word memory access.
5168 (movdf_soft_insn): Likewise.
5169 * config/arm/vfp.md (movdi_vfp): Likewise.
5170 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 5171 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
5172 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5173 (mem_ok_for_ldrd_strd): Likewise.
5174 (output_move_double): Update assertion.
5175
2385b218
GY
51762013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5177
5178 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5179
75fe1cb5
GY
51802013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5181
5182 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5183 define_insn_and_split.
5184 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5185
dd660e8e
GY
51862013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5187
5188 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5189 define_insn_and_split.
33159866 5190 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
5191 (shiftsi3_compare): New pattern.
5192 (rrx): New pattern.
5193 * config/arm/unspecs.md (UNSPEC_RRX): New.
5194
045e472c
GY
51952013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5196
5197 * config/arm/arm.md (negdi_extendsidi): New pattern.
5198 (negdi_zero_extendsidi): Likewise.
5199
3f3bf1a8
GY
52002013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5201
5202 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5203 define_insn_and_split.
5204 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5205 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5206
b0b49556
GY
52072013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5208
5209 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5210 define_insn_and_split.
5211 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5212 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5213
d633dd84
GY
52142013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5215
5216 * config/arm/arm.md (subsi3_carryin): New pattern.
5217 (subsi3_carryin_const): Likewise.
5218 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5219 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5220
f4499066
GY
52212013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5222
5223 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5224
ceef6fd9
GY
52252013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5226
5227 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 5228 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 5229
ddbdd8a7
KT
52302013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5231
5232 * config/arm/arm.c (arm_expand_builtin): Change fcode
5233 type to unsigned int.
5234
8456d78a
RR
52352013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5236
5237 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5238
526c230f
ILT
52392013-04-04 Ian Lance Taylor <iant@google.com>
5240
33159866
UB
5241 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5242 language standard.
526c230f 5243
3cfbe04d
SB
52442013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5245
5246 PR middle-end/56729
5247 * df-scan.c (df_insn_delete): Disable failing assert.
5248
dfa3f8d0
KT
52492013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5250
5251 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5252 New function prototype.
5253 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5254 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5255 (arm_builtin_vectorized_function): New function.
5256
f7837758
KT
52572013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5258
5259 * config/arm/arm_neon_builtins.def: New file.
5260 * config/arm/arm.c (neon_builtin_data): Move contents to
5261 arm_neon_builtins.def.
5262 (enum arm_builtins): Include neon builtin definitions.
5263 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 5264 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 5265
39c1b6db
MP
52662013-04-04 Marek Polacek <polacek@redhat.com>
5267
5268 PR tree-optimization/48186
5269 * predict.c (maybe_hot_frequency_p): Return false if
5270 HOT_BB_FREQUENCY_FRACTION is 0.
5271 (cgraph_maybe_hot_edge_p): Likewise.
5272
314f64eb
RB
52732013-04-04 Richard Biener <rguenther@suse.de>
5274
5275 PR tree-optimization/56826
5276 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5277 more accurately.
5278
51a905b2
RB
52792013-04-04 Richard Biener <rguenther@suse.de>
5280
5281 PR tree-optimization/56213
5282 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 5283 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 5284
f1bf4f3a
RB
52852013-04-04 Richard Biener <rguenther@suse.de>
5286
5287 PR tree-optimization/56837
5288 * tree-loop-distribution.c (classify_partition): For non-zero
5289 values require that the value has the same precision as its
5290 mode to be useful as memset value.
5291
0bca7ded
NC
52922013-04-03 Nick Clifton <nickc@redhat.com>
5293
33159866 5294 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
5295 (fmssf4): Use fmsf.s on E3V5 architectures.
5296 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5297 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5298
b4019227
JL
52992013-04-03 Jeff Law <law@redhat.com>
5300
5301 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5302 (lra-eliminations.o): Likewise.
5303
f57ddb5b
TJ
53042013-04-03 Teresa Johnson <tejohnson@google.com>
5305
5306 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 5307 compute_working_sets here from profile.c.
f57ddb5b 5308 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
5309 (gcov_working_set_t): Moved typedef here from basic-block.h
5310 (compute_working_set): Declare.
f57ddb5b
TJ
5311 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5312 (get_working_sets): Renamed from compute_working_set,
33159866 5313 replace most of body with call to new compute_working_sets.
f57ddb5b 5314 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
5315 to get_working_sets.
5316 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 5317 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 5318 to get_working_sets.
f57ddb5b
TJ
5319 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5320 * gcov-dump.c (dump_working_sets): New function.
5321
5e0919f1
KZ
53222013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5323
5324 * hwint.c (sext_hwi, zext_hwi): New functions.
5325 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5326 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5327 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5328 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5329 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5330 (sext_hwi, zext_hwi): New functions.
0bca7ded 5331
be672e08
JL
53322013-04-03 Jeff Law <law@redhat.com>
5333
5334 PR tree-optimization/56799
33159866
UB
5335 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5336 back test for widening conversion erroneously dropped in prior change.
be672e08 5337
9d821fa5
KT
53382013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5339
5340 PR target/56809
5341 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5342 instead of next_real_insn.
5343
71c581e7
MP
53442013-04-03 Marek Polacek <polacek@redhat.com>
5345
5346 PR sanitizer/55702
33159866 5347 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 5348
4a32ef80
KT
53492013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5350
5351 PR target/56809
5352 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5353 next_real_insn.
5354 (thumb1_output_casesi): Likewise.
5355 (thumb2_output_casesi): Likewise.
5356
1b2253d4
RB
53572013-04-03 Richard Biener <rguenther@suse.de>
5358
5359 PR tree-optimization/56817
5360 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5361 Split out ...
5362 (tree_unroll_loops_completely_1): ... new function to manually
5363 walk the loop tree, properly defering outer loops of unrolled
5364 loops to later iterations.
5365
38000232
MG
53662013-04-03 Marc Glisse <marc.glisse@inria.fr>
5367
5368 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5369 (vectorizable_load): Likewise.
5370 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5371 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5372
3fa35298
MG
53732013-04-03 Marc Glisse <marc.glisse@inria.fr>
5374
5375 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5376 BIT_FIELD_REF.
5377
b3d45ff0
UW
53782013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5379
5380 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5381
ec9202a8
BC
53822013-04-03 Bin Cheng <bin.cheng@arm.com>
5383
5384 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5385
6805bd36
MG
53862013-04-03 Marc Glisse <marc.glisse@inria.fr>
5387
5388 PR tree-optimization/56790
33159866
UB
5389 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5390 folding.
6805bd36 5391
da694a77
MG
53922013-04-03 Marc Glisse <marc.glisse@inria.fr>
5393
5394 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5395 Handle VEC_MERGE.
5396 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5397 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5398 equal arguments.
5399
4e7d7b3d
JJ
54002013-04-03 Jakub Jelinek <jakub@redhat.com>
5401
5402 PR c/19449
5403 * tree.h (force_folding_builtin_constant_p): New decl.
5404 * builtins.c (force_folding_builtin_constant_p): New variable.
5405 (fold_builtin_constant_p): Fold immediately also if
5406 force_folding_builtin_constant_p.
5407
e6c9d234
RB
54082013-04-03 Richard Biener <rguenther@suse.de>
5409
5410 PR tree-optimization/56812
5411 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5412 DRs of the same interleaving chain are independent.
5413
984d07dd
JM
54142013-04-02 Jason Merrill <jason@redhat.com>
5415
5416 * gdbinit.in (pbb): Use debug fn.
5417
622849c9
LC
54182013-04-02 Lawrence Crowl <crowl@google.com>
5419
5420 * sese.h (struct ivtype_map_elt_s): Remove unused.
5421 (extern debug_ivtype_map): Remove unused.
5422 (extern eq_ivtype_map_elts): Remove unused.
5423 * sese.c (debug_ivtype_map): Removed unused.
5424 (debug_ivtype_map_1): Removed unused.
5425 (debug_ivtype_elt): Remove unused.
5426 (eq_ivtype_map_elts): Remove unused.
5427
5428
82c0e1a0
KT
54292013-04-02 Kai Tietz <ktietz@redhat.com>
5430
5431 PR target/52790
5432 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5433 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
5434 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5435 function.
82c0e1a0
KT
5436 (legitimize_pe_coff_symbol): Likewise.
5437 (is_imported_p): New helper-function.
5438 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5439 for Windows x64 targets.
5440 (ix86_expand_prologue): Optimize for pe-coff targets.
5441 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5442 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5443 medium/large code-model.
5444 (legitimize_pic_address): Likewise.
5445 (legitimize_tls_address): Likewise.
5446 (ix86_expand_call): Likewise.
5447 (x86_output_mi_thunk): Likewise.
5448 (get_dllimport_decl): Add new beimport argument.
5449 (construct_plt_address): Don't assert for x64 pe-coff targets.
5450 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5451 targets.
5452 (SYMBOL_FLAG_STUBVAR): New macro.
5453 (SYMBOL_REF_STUBVAR_P): Likewise.
5454 * config/i386/winnt.c (stub_list): New structure.
5455 (stub_head): New local variable.
5456 (i386_pe_record_stub): New function.
5457 (i386_pe_file_end): Emit refptr-stubs.
5458
5d751b0c
JJ
54592013-04-02 Jakub Jelinek <jakub@redhat.com>
5460
09bb4c99
JJ
5461 PR rtl-optimization/56745
5462 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5463 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5464
a1d8947a
JJ
5465 PR c++/34949
5466 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5467 and both of them are MEM_REFs, just compare first argument for
5468 equality and attempt to deal even with differing offsets.
5469
5d751b0c
JJ
5470 PR c++/34949
5471 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5472 of gimple_clobber_p to be MEM_REF.
5473 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5474 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5475 after gimplification.
5476 * asan.c (get_mem_ref_of_assignment): Don't instrument
5477 gimple_clobber_p stmts.
5478 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5479 gimple_clobber_p stmt if they have MEM_REF lhs and
5480 are dead because of another gimple_clobber_p stmt.
5481 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5482 gimple_clobber_p stmts like debug stmts.
5483 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5484 that refer to unused VAR_DECLs or uninitialized values.
5485 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5486 gimple_clobber_p stmts if they refer to removed parameters.
5487 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5488 formatting.
5489
e594716a
UB
54902013-04-02 Uros Bizjak <ubizjak@gmail.com>
5491
5492 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5493 using SWI48 mode attribute.
5494
7a80735b
WM
54952013-04-02 Wei Mi <wmi@google.com>
5496
5497 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5498 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5499 *<rotate_insn><mode>3_mask in i386.md.
5500
f423a9e4
AI
55012013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5502
5503 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5504
90eb75f2
RB
55052013-04-02 Richard Biener <rguenther@suse.de>
5506
5507 PR tree-optimization/56778
5508 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5509 Runtime alias tests are not supported for gather loads.
5510 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5511 stmts referenced from SSA operands before updating SSA form.
5512
d8c69a92
IC
55132013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5514 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5515
5516 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
5517 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5518 * config/arm/cortex-a53.md: New file.
5519 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5520 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5521 * config/arm/arm.c (arm_issue_rate): Likewise.
5522 * config/arm/arm-tune.md: Regenerate
5523 * config/arm/arm-tables.opt: Regenerate.
5524 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 5525
239eb04c
ZC
55262013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5527
5528 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5529 non-static link.
5530
c902d3c8
SN
55312013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5532
d8c69a92
IC
5533 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5534 scalar load/store operations using B/H registers.
c902d3c8
SN
5535 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5536
051d0e2f
SN
55372013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5538
5539 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5540 scalar move.
5541 * config/aarch64/aarch64.c
5542 (aarch64_simd_scalar_immediate_valid_for_move): New.
5543 * config/aarch64/aarch64-protos.h
5544 (aarch64_simd_scalar_immediate_valid_for_move): New.
5545 * config/aarch64/constraints.md (Dh, Dq): New.
5546 * config/aarch64/iterators.md (hq): New.
5547
0ee1e3d9
EB
55482013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5549
5550 * reorg.c (get_branch_condition): Deal with conditional returns.
5551 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5552
136fb3f7
WM
55532013-04-01 Wei Mi <wmi@google.com>
5554
5555 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5556 Truncate operand 2 using %b asm operand modifier.
5557 (*<shift_insn><mode>3_mask): Ditto.
5558 (*<rotate_insn><mode>3_mask): Ditto.
5559
6388c738
SB
55602013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5561
5562 PR middle-end/56798
5563 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5564
f7a4d826
KK
55652013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5566
5567 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5568 of next_real_insn.
5569 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5570
4b943a49
LC
55712013-03-30 Lawrence Crowl <crowl@google.com>
5572
5573 * dse.c (clear_alias_sets): Remove never set.
5574 (disqualified_clear_alias_sets): Remove never set.
5575 (clear_alias_mode_pool): Remove never set.
5576 (dse_step0): Remove condition that is never true.
5577 (canon_address): Remove condition that is never true.
5578 (dse_step7): Remove condition that is never true.
5579 (rest_of_handle_dse): Remove condition that is never true.
5580 (rest_of_handle_dse::did_global): Remove never read from above.
5581 (dse_step2_spill): Remove never called from above.
5582 (dse_step5_spill): Remove never called from above.
5583
39718607
SB
55842013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5585
da5c6bde
SB
5586 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5587 JUMP_TABLE_DATA changes.
5588 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5589 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5590 (Insns) <jump_table_data>: New entry.
5591 * doc/tm.texi: Regenerate.
5592
39718607
SB
5593 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5594
5595 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5596 for table jump at the end of a basic block using tablejump_p.
5597 * targhooks.c (default_invalid_within_doloop): Likewise.
5598 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5599 target hook implementation that is identical to the default hook.
5600 (rs6000_invalid_within_doloop): Remove.
5601
5602 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5603 unused variable from tablejump_p call.
5604
5605 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5606 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5607 (INSN_DELETED_P): Likewise.
5608 (emit_jump_table_data): New prototype.
5609 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5610 after 4th as unused.
5611 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5612 * sched-vis.c (print_insn): Likewise.
5613 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5614 insn for compatibility with back ends that use next_active_insn to
5615 identify jump table data.
5616 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5617 (remove_insn): Likewise.
5618 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5619 to be emitted.
5620 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5621 (emit_jump_table_data): New function.
5622
5623 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5624 basic block, a JUMP_TABLE_DATA never is.
5625 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5626 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5627 off from code handling real insns.
5628 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5629 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5630 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5631 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5632 is not a NONDEBUG_INSN_P.
5633 * ira-costs.c (scan_one_insn): Likewise.
5634 * jump.c (mark_all_labels): Likewise.
5635 (mark_jump_label_1): Likewise.
5636 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5637 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5638 a basic block.
5639 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5640 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5641 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5642 JUMP_TABLE_DATA_P insns.
5643 (calculate_elim_costs_all_insns): Likewise.
5644 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5645 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5646 (delete_output_reload): Code style fixups.
5647 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5648 insn flags on this non-insn.
5649 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5650 as scheduling barriers, for pre-change compatibility.
5651 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5652 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5653
5654 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5655 redundant JUMP_TABLE_DATA_P test.
5656 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5657 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5658 (frv_for_each_packet): Likewise.
5659 * config/i386/i386.c (min_insn_size): Likewise.
5660 (ix86_avoid_jump_mispredicts): Likewise.
5661 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5662 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5663 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5664 (mips16_insn_length): Robustify.
5665 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5666 (mips16_split_long_branches): Likewise.
5667 * config/pa/pa.c (pa_combine_instructions): Likewise.
5668 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5669 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5670 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5671 as contributing to pool range lengths.
5672 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5673 Remove redundant JUMP_TABLE_DATA_P test.
5674 (sh_loop_align): Likewise.
5675 (split_branches): Likewise.
5676 (sh_insn_length_adjustment): Likewise.
5677 * config/spu/spu.c (get_branch_target): Likewise.
5678
0208f7da
JH
56792013-03-29 Jan Hubicka <jh@suse.cz>
5680
5681 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5682 gcov streaming; stream hot bb threshold to ltrans.
5683 * predict.c (get_hot_bb_threshold): Break out from ....
5684 (maybe_hot_count_p): ... here.
5685 (set_hot_bb_threshold): New function.
5686 * lto-section-in.c (lto_section_name): Add profile.
5687 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5688 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5689 and data-streamer.h
5690 (histogram_entry): New structure.
5691 (histogram, histogram_pool): New global vars.
5692 (histogram_hash): New structure.
5693 (histogram_hash::hash): New method.
5694 (histogram_hash::equal): Likewise.
5695 (account_time_size): New function.
5696 (cmp_counts): New function.
5697 (dump_histogram): New function.
5698 (ipa_profile_generate_summary): New function.
5699 (ipa_profile_write_summary): New function.
5700 (ipa_profile_read_summary): New function.
5701 (ipa_profile): Decide on threshold.
e594716a
UB
5702 (pass_ipa_profile): Add ipa_profile_write_summary and
5703 ipa_profile_read_summary.
0208f7da
JH
5704 * Makefile.in (ipa.o): Update dependencies.
5705 * lto-streamer.h (LTO_section_ipa_profile): New section.
5706
5a6ccc94
GDR
57072013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5708
5709 * tree.h (VAR_P): New.
5710
39385fa6
PC
57112013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5712
5713 PR lto/56777
5714 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5715
34f0d87a
SB
57162013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5717
5718 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5719 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5720 (control_flow_insn_p): Likewise.
5721 * cfgrtl.c (duplicate_insn_chain): Likewise.
5722 * final.c (get_attr_length_1): Likewise.
5723 (shorten_branches): Likewise.
5724 (final_scan_insn): Likewise.
5725 * function.c (instantiate_virtual_regs): Likewise.
5726 * gcse.c (insert_insn_end_basic_block): Likewise.
5727 * ira-costs.c (scan_one_insn): Likewise.
5728 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5729 * lra.c (check_rtl): Likewise.
5730 * reload1.c (elimination_costs_in_insn): Likewise.
5731 * reorg.c (follow_jumps): Likewise.
5732
5733 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5734 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5735 (thumb_far_jump_used_p): Likewise.
5736 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5737 (workaround_speculation): Likewise.
5738 (add_sched_insns_for_speculation): Likewise.
5739 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5740 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5741 (frv_for_each_packet): Likewise.
5742 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5743 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5744 (final_emit_insn_group_barriers): Likewise.
5745 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5746 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5747 (mips16_insn_length): Likewise.
5748 * config/pa/pa.c (pa_reorg): Likewise.
5749 (pa_combine_instructions): Likewise.
5750 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5751 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5752 (sh_reorg): Likewise.
5753 (split_branches): Likewise.
5754 * config/spu/spu.c (get_branch_target): Likewise.
5755
5756 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5757 JUMP_TABLE_DATA_P.
5758
4ac761b0
KY
57592013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5760
39385fa6 5761 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5762 Fix declaration name.
5763
58a49189
LC
57642013-03-28 Lawrence Crowl <crowl@google.com>
5765
5766 * graphds.h (struct graph.indicies): Remove unused.
5767 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5768 (SCOP_ORIGINAL_PDDRS): Remove unused.
5769 * sese.h (extern insert_loop_close_phis): Removed unused.
5770 (extern insert_guard_phis): Removed unused.
5771 (extern ivtype_map_elt_info): Removed unused.
5772 (new_ivtype_map_elt): Removed unused.
5773 * sese.c (ivtype_map_elt_info): Removed unused.
5774
7b3b6ae4
LC
57752013-03-28 Lawrence Crowl <crowl@google.com>
5776
5777 * Makefile.in: Add several missing include dependences.
5778 (DUMPFILE_H): New.
5779 (test-dump.o): New. This object is not added to any executable,
5780 but is present for ad-hoc testing.
5781 * bitmap.c
5782 (debug (const bitmap_head_def &)): New.
5783 (debug (const bitmap_head_def *)): New.
5784 * bitmap.h
5785 (extern debug (const bitmap_head_def &)): New.
5786 (extern debug (const bitmap_head_def *)): New.
5787 * cfg.c
5788 (debug (edge_def &)): New.
5789 (debug (edge_def *)): New.
5790 * cfghooks.c
5791 (debug (basic_block_def &)): New.
5792 (debug (basic_block_def *)): New.
5793 * dumpfile.h
5794 (dump_node (const_tree, int, FILE *)): Correct source file.
5795 * dwarf2out.c
5796 (debug (die_struct &)): New.
5797 (debug (die_struct *)): New.
5798 * dwarf2out.h
5799 (extern debug (die_struct &)): New.
5800 (extern debug (die_struct *)): New.
5801 * gimple-pretty-print.c
5802 (debug (gimple_statement_d &)): New.
5803 (debug (gimple_statement_d *)): New.
5804 * gimple-pretty-print.h
5805 (extern debug (gimple_statement_d &)): New.
5806 (extern debug (gimple_statement_d *)): New.
5807 * ira-build.c
5808 (debug (ira_allocno_copy &)): New.
5809 (debug (ira_allocno_copy *)): New.
5810 (debug (ira_allocno &)): New.
5811 (debug (ira_allocno *)): New.
5812 * ira-int.h
5813 (extern debug (ira_allocno_copy &)): New.
5814 (extern debug (ira_allocno_copy *)): New.
5815 (extern debug (ira_allocno &)): New.
5816 (extern debug (ira_allocno *)): New.
5817 * ira-lives.c
5818 (debug (live_range &)): New.
5819 (debug (live_range *)): New.
5820 * lra-int.h
5821 (debug (lra_live_range &)): New.
5822 (debug (lra_live_range *)): New.
5823 * lra-lives.c
5824 (debug (lra_live_range &)): New.
5825 (debug (lra_live_range *)): New.
5826 * omega.c
5827 (debug (omega_pb_d &)): New.
5828 (debug (omega_pb_d *)): New.
5829 * omega.h
5830 (extern debug (omega_pb_d &)): New.
5831 (extern debug (omega_pb_d *)): New.
5832 * print-rtl.c
5833 (debug (const rtx_def &)): New.
5834 (debug (const rtx_def *)): New.
5835 * print-tree.c
5836 (debug_tree (tree): Move within file.
5837 (debug_raw (const tree_node &)): New.
5838 (debug_raw (const tree_node *)): New.
5839 (dump_tree_via_hooks (const tree_node *, int)): New.
5840 (debug (const tree_node &)): New.
5841 (debug (const tree_node *)): New.
5842 (debug_verbose (const tree_node &)): New.
5843 (debug_verbose (const tree_node *)): New.
5844 (debug_head (const tree_node &)): New.
5845 (debug_head (const tree_node *)): New.
5846 (debug_body (const tree_node &)): New.
5847 (debug_body (const tree_node *)): New.
5848 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5849 (debug (vec<tree, va_gc> &)): New.
5850 (debug (vec<tree, va_gc> *)): New.
5851 * rtl.h
5852 (extern debug (const rtx_def &)): New.
5853 (extern debug (const rtx_def *)): New.
5854 * sbitmap.c
5855 (debug_raw (simple_bitmap_def &)): New.
5856 (debug_raw (simple_bitmap_def *)): New.
5857 (debug (simple_bitmap_def &)): New.
5858 (debug (simple_bitmap_def *)): New.
5859 * sbitmap.h
5860 (extern debug (simple_bitmap_def &)): New.
5861 (extern debug (simple_bitmap_def *)): New.
5862 (extern debug_raw (simple_bitmap_def &)): New.
5863 (extern debug_raw (simple_bitmap_def *)): New.
5864 * sel-sched-dump.c
5865 (debug (vinsn_def &)): New.
5866 (debug (vinsn_def *)): New.
5867 (debug_verbose (vinsn_def &)): New.
5868 (debug_verbose (vinsn_def *)): New.
5869 (debug (expr_def &)): New.
5870 (debug (expr_def *)): New.
5871 (debug_verbose (expr_def &)): New.
5872 (debug_verbose (expr_def *)): New.
5873 (debug (vec<rtx> &)): New.
5874 (debug (vec<rtx> *)): New.
5875 * sel-sched-dump.h
5876 (extern debug (vinsn_def &)): New.
5877 (extern debug (vinsn_def *)): New.
5878 (extern debug_verbose (vinsn_def &)): New.
5879 (extern debug_verbose (vinsn_def *)): New.
5880 (extern debug (expr_def &)): New.
5881 (extern debug (expr_def *)): New.
5882 (extern debug_verbose (expr_def &)): New.
5883 (extern debug_verbose (expr_def *)): New.
5884 (extern debug (vec<rtx> &)): New.
5885 (extern debug (vec<rtx> *)): New.
5886 * sel-sched-ir.h
5887 (_list_iter_cond_expr): Make inline instead of static.
5888 * sreal.c
5889 (debug (sreal &)): New.
5890 (debug (sreal *)): New.
5891 * sreal.h
5892 (extern debug (sreal &)): New.
5893 (extern debug (sreal *)): New.
5894 * tree.h
5895 (extern debug_raw (const tree_node &)): New.
5896 (extern debug_raw (const tree_node *)): New.
5897 (extern debug (const tree_node &)): New.
5898 (extern debug (const tree_node *)): New.
5899 (extern debug_verbose (const tree_node &)): New.
5900 (extern debug_verbose (const tree_node *)): New.
5901 (extern debug_head (const tree_node &)): New.
5902 (extern debug_head (const tree_node *)): New.
5903 (extern debug_body (const tree_node &)): New.
5904 (extern debug_body (const tree_node *)): New.
5905 (extern debug (vec<tree, va_gc> &)): New.
5906 (extern debug (vec<tree, va_gc> *)): New.
5907 * tree-cfg.c
5908 (debug (struct loop &)): New.
5909 (debug (struct loop *)): New.
5910 (debug_verbose (struct loop &)): New.
5911 (debug_verbose (struct loop *)): New.
5912 * tree-dump.c: Add header dependence.
5913 * tree-flow.h
5914 (extern debug (struct loop &)): New.
5915 (extern debug (struct loop *)): New.
5916 (extern debug_verbose (struct loop &)): New.
5917 (extern debug_verbose (struct loop *)): New.
5918 * tree-data-ref.c
5919 (debug (data_reference &)): New.
5920 (debug (data_reference *)): New.
5921 (debug (vec<data_reference_p> &)): New.
5922 (debug (vec<data_reference_p> *)): New.
5923 (debug (vec<ddr_p> &)): New.
5924 (debug (vec<ddr_p> *)): New.
5925 * tree-data-ref.h
5926 (extern debug (data_reference &)): New.
5927 (extern debug (data_reference *)): New.
5928 (extern debug (vec<data_reference_p> &)): New.
5929 (extern debug (vec<data_reference_p> *)): New.
5930 (extern debug (vec<ddr_p> &)): New.
5931 (extern debug (vec<ddr_p> *)): New.
5932 * tree-ssa-alias.c
5933 (debug (pt_solution &)): New.
5934 (debug (pt_solution *)): New.
5935 * tree-ssa-alias.h
5936 (extern debug (pt_solution &)): New.
5937 (extern debug (pt_solution *)): New.
5938 * tree-ssa-alias.c
5939 (debug (_var_map &)): New.
5940 (debug (_var_map *)): New.
5941 (debug (tree_live_info_d &)): New.
5942 (debug (tree_live_info_d *)): New.
5943 * tree-ssa-alias.h
5944 (extern debug (_var_map &)): New.
5945 (extern debug (_var_map *)): New.
5946 (extern debug (tree_live_info_d &)): New.
5947 (extern debug (tree_live_info_d *)): New.
5948
be77e1e5
JH
59492013-03-28 Jan Hubicka <jh@suse.cz>
5950
5951 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5952
777e6976
IB
59532013-03-28 Ian Bolton <ian.bolton@arm.com>
5954
5955 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5956 record only when desired or required.
5957
9cd347ae
UB
59582013-03-28 Uros Bizjak <ubizjak@gmail.com>
5959
5960 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5961 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5962
33159866 59632013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
5964
5965 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5966 (*andsi3_compare0_uxtw): New pattern.
5967 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5968 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5969
89ab31c1
JH
59702013-03-28 Jan Hubicka <jh@suse.cz>
5971
5972 * data-streamer-in.c (streamer_read_gcov_count): New function.
5973 * gimple-streamer-out.c: Include value-prof.h.
5974 (output_gimple_stmt): Output histogram.
5975 (output_bb): Use streamer_write_gcov_count.
5976 * value-prof.c: Include data-streamer.h
5977 (dump_histogram_value): Add HIST_TYPE_MAX.
5978 (stream_out_histogram_value): New function.
5979 (stream_in_histogram_value): New function.
5980 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5981 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5982 * data-streamer-out.c (streamer_write_gcov_count): New function.
5983 (streamer_write_gcov_count_stream): New function.
5984 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5985 (lto_output_node): Likewise.
5986 (input_node, input_edge): Likewise.
5987 * lto-streamer-out.c (output_cfg): Update streaming.
5988 * lto-streamer-in.c (input_cfg): Likewise.
5989 * data-streamer.h (streamer_write_gcov_count,
5990 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5991 * gimple-streamer-in.c: Include value-prof.h
5992 (input_gimple_stmt): Input histograms.
5993 (input_bb): Update profile streaming.
5994
e594716a 59952013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 5996
33159866 5997 * genmodes.c (emit_max_int): New function.
8697be17 5998 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
5999 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6000 Added doc.
8697be17 6001 * machmode.def: Fixed comment.
89ab31c1 6002
e594716a 60032013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
6004
6005 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
6006 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6007
74946978
MP
60082013-03-28 Marek Polacek <polacek@redhat.com>
6009 Richard Biener <rguenther@suse.de>
6010
6011 PR tree-optimization/56695
6012 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6013 build signed result of a vector comparison.
6014 * tree-cfg.c (verify_gimple_comparison): Check that a result
6015 of a vector comparison has signed type.
6016
a64b9c26
RB
60172013-03-28 Richard Biener <rguenther@suse.de>
6018
6019 PR tree-optimization/37021
6020 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6021 do not restrict gaps between groups.
6022 * tree-vect-stmts.c (vectorizable_load): Properly account for
6023 a gap between groups.
6024
a9dc2a2f
EB
60252013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6026
6027 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6028 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6029 is not enabled.
6030
53cb97f9
GP
60312013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6032
6033 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6034 * doc/extend.texi (Named Address Spaces): Ditto.
6035 (Variable Attributes): Ditto.
6036
b802ae5c
KT
60372013-03-27 Kai Tietz <ktietz@redhat.com>
6038
eddae10a
KT
6039 * config.build: Add support for cygwin x64 target.
6040 * config.gcc: Likewise.
6041 * config.host: Likewise.
6042 * configure.ac: Likewise
6043 * configure: Regenerated.
b802ae5c 6044
8269de54
KT
60452013-03-27 Kai Tietz <ktietz@redhat.com>
6046
6047 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6048 * config/i386/t-cygwin-w64: New file.
6049 * config/i386/cygwin-w64.h: New file.
6050 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6051 and add support for x64-cygwin target.
6052 (CPP_SPEC): Likewise.
6053 (CXX_WRAP_SPEC_LIST): Undefine before define.
6054 (LIBGCJ_SONAME): Use 15 as version.
6055
f49b33cb
RB
60562013-03-27 Richard Biener <rguenther@suse.de>
6057
6058 PR tree-optimization/56716
6059 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6060 dumping for ref nodes.
6061
b37a6ce5
MJ
60622013-03-27 Martin Jambor <mjambor@suse.cz>
6063
6064 PR tree-optimization/55334
6065 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6066 restricted pointers to arrays.
6067
9469b9b2
GDR
60682013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6069
6070 * Makefile.in (.SUFFIXES): Add .cc.
6071 (.c.o): Apply same recipe for implicit rule .cc.o.
6072
7d24f650
RB
60732013-03-27 Richard Biener <rguenther@suse.de>
6074
6075 PR tree-optimization/37021
6076 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6077 REALPART/IMAGPART_EXPRs around the supported refs.
6078 * tree-ssa-structalias.c (find_func_aliases): Assume that
6079 floating-point values are not used to transfer pointers.
6080
2f251a05
AI
60812013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6082
39385fa6
PC
6083 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6084 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6085 * doc/tm.texi: Regenerate.
6086 * targhooks.h (default_has_ifunc_p): New.
6087 * targhooks.c (default_has_ifunc_p): Ditto.
6088 * config/linux-protos.h: New file.
6089 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
6090 this hook for linux which disables support of indirect functions in
6091 android.
39385fa6
PC
6092 * config/linux-android.c: New file.
6093 * config/t-linux-android.c: Ditto.
6094 * config.gcc: Added new object file linux-android.o.
6095 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 6096 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 6097 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
6098 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6099 doesn't support indirect functions.
6100 * configure: Regenerate.
6101
78b4e425
BC
61022013-03-27 Bin Cheng <bin.cheng@arm.com>
6103
6104 PR target/56102
6105 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6106 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6107 mult-word mode.
6108
a5ba7b92
AK
61092013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6110
6111 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6112
be624986
TG
61132013-03-27 Terry Guo <terry.guo@arm.com>
6114
6115 * config/arm/arm-cores.def: Added core cortex-r7.
6116 * config/arm/arm-tune.md: Regenerated.
6117 * config/arm/arm-tables.opt: Regenerated.
6118 * doc/invoke.texi: Added entry for core cortex-r7.
6119
0a514f47
WL
61202013-03-27 Walter Lee <walt@tilera.com>
6121
6122 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6123 double-decrement of next_scratch_regno.
6124
9332b0d2
WL
61252013-03-27 Walter Lee <walt@tilera.com>
6126
801d9b2a 6127 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
6128 input operands.
6129 (insn_v1mulus): Ditto.
6130 (insn_v2muls): Ditto.
6131
f54ea5dd
WL
61322013-03-27 Walter Lee <walt@tilera.com>
6133
e594716a 6134 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
6135 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6136
bf60f4ca
WL
61372013-03-27 Walter Lee <walt@tilera.com>
6138
e594716a 6139 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
6140 (*sibcall_value): Ditto.
6141
e3b51eeb
WL
61422013-03-27 Walter Lee <walt@tilera.com>
6143
6144 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6145 (insn_mnz_v8qi): ... this ...
6146 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6147 vector equivalent.
6148 (insn_v<n>mnz): Replaced by ...
6149 (insn_v1mnz): ... this ...
6150 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6151 equivalent.
6152 (insn_mz_<mode>): Replaced by ...
6153 (insn_mz_v8qi): ... this ...
6154 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6155 vector equivalent.
6156 (insn_v<n>mz): Replaced by ...
6157 (insn_v1mz): ... this ...
6158 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6159 equivalent.
6160
4fc7b145
EB
61612013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6162
6163 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6164
6f33817e
RM
61652013-03-26 Roland McGrath <mcgrathr@google.com>
6166
6167 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6168 than fprintf with a non-constant, non-format string.
6169
93a4145b
UB
61702013-03-26 Uros Bizjak <ubizjak@gmail.com>
6171
6172 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6173 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6174 operand 0 predicate.
6175 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6176 attribute. Use general_x64nomem_operand as operand 1 predicate.
6177 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6178 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6179 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6180 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6181 (mov<mode>_insv_1): Remove expander. Merge insn with
6182 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6183 Use general_x64nomem_operand as operand 1 predicate.
6184 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6185 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6186 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6187 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6188 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6189 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6190 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6191 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6192 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6193 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6194 (general_x64nomem_operand): Ditto.
6195
c6a9ed5a 61962013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
6197
6198 * config/rtems.opt: Add -pthread option.
6199
31b0a960
RB
62002013-03-26 Richard Biener <rguenther@suse.de>
6201
93a4145b
UB
6202 * alias.c (find_base_term): Avoid redundant and not used recursion.
6203 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
6204 (true_dependence_1): Compute and pass base terms to base_alias_check.
6205 (write_dependence_p): Likewise.
6206 (may_alias_p): Likewise.
6207
79517551
SN
62082013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6209
6210 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6211 PC-relative load in SI modes and above only.
6212
a76213b9
XQ
62132013-03-26 Xinyu Qi <xyqi@marvell.com>
6214
6215 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
6216 * config/arm/iwmmxt.md (WCGR0): Update.
6217 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 6218
37ff9355
UB
62192013-03-26 Uros Bizjak <ubizjak@gmail.com>
6220
6221 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6222 Use x64 and nox64 isa attributes.
6223
30b0317c
RB
62242013-03-26 Richard Biener <rguenther@suse.de>
6225
6226 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6227 alignment computations and rely on get_object_alignment_1
6228 for the !TYPE_P case.
6229 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6230
cbcdb140
WL
62312013-03-26 Walter Lee <walt@tilera.com>
6232
6233 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6234 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6235
dd884525 62362013-03-25 Jeff Law <law@redhat.com>
be672e08 6237
33159866
UB
6238 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6239 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
6240 wrong version of prior patch.
6241
0051d3ec
WL
62422013-03-25 Walter Lee <walt@tilera.com>
6243
6244 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6245 TILEGX_INSN_SHUFFLEBYTES1.
6246 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6247 shufflebytes1.
6248 (tilegx_builtins): Ditto.
6249 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6250
065a3605
WL
62512013-03-25 Walter Lee <walt@tilera.com>
6252
6253 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
6254 (floatunssisf2): New pattern.
6255 (floatsidf2): New pattern.
6256 (floatunssidf2): New pattern.
065a3605 6257
5b2a3c82
WL
62582013-03-25 Walter Lee <walt@tilera.com>
6259
6260 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6261 tests for constraint J, K, N, P.
6262
192ea533
WL
62632013-03-25 Walter Lee <walt@tilera.com>
6264
6265 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6266 Use indirect/pcrel encoding.
6267 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6268 Ditto.
6269
855e0d0b
SE
62702013-03-25 Steve Ellcey <sellcey@mips.com>
6271
6272 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6273 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6274 * config/mips/mips.c (mips_option_override): Set IMADD default.
6275 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6276 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6277 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6278 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6279 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6280
39e45653
JL
62812013-03-25 Jeff Law <law@redhat.com>
6282
6283 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6284 slightly to avoid creating and folding useless trees. Simplify
6285 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6286
7482c470
UB
62872013-03-25 Uros Bizjak <ubizjak@gmail.com>
6288
6289 * config/i386/i386.md (*zero_extendsidi2): Merge with
6290 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6291 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6292 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6293 targets. Clarify comment.
6294
4a53743e
MJ
62952013-03-25 Martin Jambor <mjambor@suse.cz>
6296
6297 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6298 pass-through jump functions differently.
6299 (ipa_read_jump_function): Likewise. Also use setter functions to set
6300 up jump functions.
6301
162712de
MJ
63022013-03-25 Martin Jambor <mjambor@suse.cz>
6303
6304 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6305 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6306 process it.
6307 (ipa_get_indirect_edge_target): New function.
6308 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6309 ipa_get_indirect_edge_target. Update all callers.
6310 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6311 ipa_get_indirect_edge_target_1 instead of calling
6312 ipa_get_indirect_edge_target.
6313 (create_specialized_node): Pass aggvlas to
6314 ipcp_discover_new_direct_edges.
6315
a5a4c20a
KT
63162013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6317
6318 * config/arm/arm.md (f_sels, f_seld): New types.
6319 (*cmov<mode>): New pattern.
6320 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6321 predicate.
6322
f992b9fc
KT
63232013-03-25 Kai Tietz <ktietz@redhat.com>
6324
6325 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6326 POSIX-printf for mingw-hosted builds.
6327
c16fd676
RB
63282013-03-25 Richard Biener <rguenther@suse.de>
6329
6330 PR middle-end/56694
6331 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6332 must-not-throw stmt location.
6333
5ad29f12
KT
63342013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6335
6336 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6337 Emit load-acquire versions when acq is true.
6338 (arm_emit_store_exclusive): Add rel parameter.
6339 Emit store-release versions when rel is true.
6340 (arm_split_compare_and_swap): Use acquire-release instructions
6341 instead.
6342 of barriers when appropriate.
6343 (arm_split_atomic_op): Likewise.
6344 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6345 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6346 (VUNSPEC_SLX): Likewise.
6347 (VUNSPEC_LDA): Likewise.
6348 (VUNSPEC_STL): Likewise.
6349 * config/arm/sync.md (atomic_load<mode>): New pattern.
6350 (atomic_store<mode>): Likewise.
6351 (arm_load_acquire_exclusive<mode>): Likewise.
6352 (arm_load_acquire_exclusivesi): Likewise.
6353 (arm_load_acquire_exclusivedi): Likewise.
6354 (arm_store_release_exclusive<mode>): Likewise.
6355
03a7dddb
CM
63562013-03-25 Catherine Moore <clm@codesourcery.com>
6357
6358 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6359 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6360 * config/mip/predicates.md (lwsp_swsp_operand,
6361 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6362 sb16_operand, db4_operand, db7_operand, ib3_operand,
6363 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6364 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6365 andi16_operand): New predicates.
6366 * config/mips/mips.md (compression): New attribute.
6367 (enabled): New attribute.
6368 (length): Consider compression in computing length.
6369 (shift_compression): New code attribute.
6370 (*add<mode>3): New operands. Record compression.
6371 (sub<mode>3): Likewise.
6372 (one_cmpl<mode>2): Likewise.
6373 (*and<mode>3): Likewise.
6374 (*ior<mode>3): Likewise.
6375 (unnamed pattern for xor): Likewise.
6376 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6377 (*<optab><mode>3): Likewise.
6378 (*mov<mode>_internal: Likewise.
6379 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6380 (mips_unsigned_immediate_p): New.
6381 (umips_lwsp_swsp_address_p): New.
6382 (m16_based_address_p): New.
6383 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6384 (mips_unsigned_immediate_p): New prototype.
6385 (lwsp_swsp_address_p): New prototype.
6386 (m16_based_address_p): New prototype.
6387 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6388 (mips_signed_immediate_p): New function.
6389 (m16_based_address_p): New function.
6390 (lwsp_swsp_address_p): New function.
6391 (mips_print_operand_punctuation): Recognize short delay slot insns
6392 for microMIPS.add<mode>3"
6393
f35c297f 63942013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 6395
f35c297f
KT
6396 PR target/56720
6397 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6398 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6399
051b9446
RB
64002013-03-25 Richard Biener <rguenther@suse.de>
6401
6402 PR tree-optimization/56689
6403 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6404 any edge.
6405
374001cb
RB
64062013-03-25 Richard Biener <rguenther@suse.de>
6407
6408 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6409 of bitmap.
6410 (memory_references): Likewise.
6411 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6412 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6413 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6414 (gather_mem_refs_in_loops): Fold into ...
6415 (analyze_memory_references): ... this. Move initialization
6416 to tree_ssa_lim_initialize.
6417 (fill_always_executed_in): Rename to ...
6418 (fill_always_executed_in_1): ... this.
6419 (fill_always_executed_in): Move contains_call computation to
6420 this new function from ...
6421 (tree_ssa_lim_initialize): ... here.
6422 (tree_ssa_lim): Call fill_always_executed_in.
6423
57895947
EB
64242013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6425
6426 * postreload.c (reload_combine): Fix code detecting returns.
6427
1e1b18c1
EB
64282013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6429
6430 * function.c (emit_use_return_register_into_block): On cc0 targets,
6431 do not emit the sequence between cc0 setter and user.
6432
9216baf1
KT
64332013-03-25 Kai Tietz <ktietz@redhat.com>
6434
1e1b18c1
EB
6435 * config/i386/predicates.md (local_symbolic_operand): Interpret
6436 dll-imported symbols as none-local.
9216baf1 6437
76421b44
RB
64382013-03-25 Richard Biener <rguenther@suse.de>
6439
6440 * tree-ssa-loop-im.c (struct depend): Remove.
6441 (struct lim_aux_data): Make depends a vec of gimples.
6442 (free_lim_aux_data): Adjust.
6443 (add_dependency): Likewise.
6444 (set_level): Likewise.
6445
d154bfa2
RB
64462013-03-25 Richard Biener <rguenther@suse.de>
6447
6448 PR middle-end/56434
6449 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6450 the pointer returned by calls with ECF_MALLOC set.
6451
2cd9804e
UB
64522013-03-24 Uros Bizjak <ubizjak@gmail.com>
6453
acef5fe0
UB
6454 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6455
64562013-03-24 Uros Bizjak <ubizjak@gmail.com>
6457
6458 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
6459 using MMXMODE mode iterator.
6460 (*move<mode>_internal): Merge with *movv2sf_internal and
6461 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6462
225ccc68
SB
64632013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6464
85c0f02d
SB
6465 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6466 (record_last_mem_set_info): Likewise.
6467
225ccc68
SB
6468 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6469 of XNEWVEC followed by memset.
6470 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6471
b64925dc
SB
64722013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6473
6474 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6475 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6476 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6477 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6478 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6479 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6480 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6481 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6482 BARRIER_P instead of GET_CODE.
6483
b9aaf52e
EB
64842013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6485
6486 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6487 inaccuracy in the probing code.
6488
6489 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6490 (ctrapdi4): Likewise.
6491
66de4d7c
EB
64922013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6493
6494 * calls.c (expand_call): Add missing guard to code handling return
6495 of non-BLKmode structures in MSB.
6496 * function.c (expand_function_end): Likewise.
6497
4f25c8fb
EB
64982013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6499
6500 * combine.c (try_combine): Adjust comment. Do not add the set of
6501 insn #0 if the destination indirectly is set or dies in insn #2.
6502 Tidy up code to distribute a new note.
6503
23b7850d
UB
65042013-03-22 Uros Bizjak <ubizjak@gmail.com>
6505
6506 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6507 also for alternatives 16 and 17.
6508
bed852cf
UB
65092013-03-22 Uros Bizjak <ubizjak@gmail.com>
6510
6511 * config/i386/sse.md (*mov<mode>_internal): Merge with
6512 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6513 Emit insn template depending on type attribute. Use
6514 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6515 movd instead of movq mnemonic for interunit moves. Rewrite mode
6516 attribute calculation. Remove unit attribute calculation.
6517 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6518 Set prefix_data16 attribute for DImode ssemov types.
6519 Use Ym instead of y for SSE-MMX conversion alternatives.
6520 Reorder operand constraints.
6521
1e8a7937
SB
65222013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6523
6524 * df.h (df_insn_delete): Adjust prototype.
6525 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6526 and let it decide whether mark the basic block dirty.
6527 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6528 * df-scan.c (df_insn_info_delete): New helper function, split
6529 off from df_insn_delete.
6530 (df_scan_free_bb_info): Use it.
6531 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6532 Likewise.
6533 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6534 that the insn is actually an insn and it has a non-NULL basic block.
6535 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6536
e14d094c
RB
65372013-03-22 Richard Biener <rguenther@suse.de>
6538
6539 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6540 dep_ref members.
6541 (mem_ref_alloc): Do not allocate them.
6542 (refs_independent_p): Do not query or maintain a cache.
6543
e9cf7316
RB
65442013-03-22 Richard Biener <rguenther@suse.de>
6545
6546 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6547 (gather_mem_refs_in_loops): Do not compute it.
6548 (analyze_memory_references): Do not allocate it.
6549 (tree_ssa_lim_finalize): Do not free it.
6550 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6551
f046e81b
RB
65522013-03-22 Richard Biener <rguenther@suse.de>
6553
6554 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 6555
a05c0ddf
IB
65562013-03-22 Ian Bolton <ian.bolton@arm.com>
6557
6558 * config/aarch64/aarch64.c (aarch64_print_operand): New
6559 format specifier for printing a constant in hex.
6560 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6561 format specifier for printing second operand.
6562
c00217fc
RB
65632013-03-22 Richard Biener <rguenther@suse.de>
6564
6565 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6566 bitmaps.
6567 (gather_mem_refs_in_loops): Perform store accumulation here.
6568 (create_vop_ref_mapping_loop): Remove.
6569 (create_vop_ref_mapping): Likewise.
6570 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6571 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6572 (record_indep_loop): Remove.
6573 (record_dep_loop): New function.
6574 (ref_indep_loop_p_1): Adjust to only walk over references
6575 in the loop, not its subloops.
6576 (ref_indep_loop_p): Rename to ...
6577 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6578 maintaining a more fine-grained cache.
6579 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6580 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6581
15d19bf8
RB
65822013-03-22 Richard Biener <rguenther@suse.de>
6583
6584 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6585 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6586 aggregate mem_ref_loc.
6587 (free_mem_ref_locs): Inline into ...
6588 (memref_free): ... this and adjust.
6589 (mem_ref_alloc): Adjust.
6590 (mem_ref_locs_alloc): Remove.
6591 (record_mem_ref_loc): Adjust.
6592 (get_all_locs_in_loop): Rewrite into ...
6593 (for_all_locs_in_loop): ... this iterator.
6594 (rewrite_mem_ref_loc): New functor.
6595 (rewrite_mem_refs): Use for_all_locs_in_loop.
6596 (sm_set_flag_if_changed): New functor.
6597 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6598 (ref_always_accessed): New functor.
6599 (ref_always_accessed_p): Use for_all_locs_in_loop.
6600
6f37411d
MG
66012013-03-21 Marc Glisse <marc.glisse@inria.fr>
6602
6603 * tree-pass.h (PROP_gimple_lvec): New.
6604 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6605 (init_optimization_passes): Move pass_lower_vector.
6606 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6607 PROP_gimple_lvec.
6608 (pass_lower_vector): Provide PROP_gimple_lvec.
6609 (pass_lower_vector_ssa): Likewise.
6610 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6611
511ef689
MW
66122013-03-21 Mark Wielaard <mjw@redhat.com>
6613
6614 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6615
cc1df30b
UB
66162013-03-21 Uros Bizjak <ubizjak@gmail.com>
6617
6618 * config/i386/i386.md (*movdi_internal): Disparage slightly
6619 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6620 conversion alternatives.
6621
c845cfe1
JJ
66222013-03-21 Jakub Jelinek <jakub@redhat.com>
6623
37e99116
JJ
6624 PR middle-end/48087
6625 * diagnostic.def (DK_WERROR): New kind.
6626 * diagnostic.h (werrorcount): Define.
6627 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6628 promoted to DK_ERROR, increment DK_WERROR counter instead of
6629 DK_ERROR counter.
6630 * toplev.c (toplev_main): Call print_ignored_options even if
6631 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6632 even if just werrorcount is non-zero.
6633
c845cfe1
JJ
6634 PR debug/55608
6635 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6636 on failure.
6637 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6638 (string_cst_pool_decl): New function.
6639 (optimize_one_addr_into_implicit_ptr): New function.
6640 (resolve_addr_in_expr): Optimize DWARF location expression
6641 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6642 which doesn't live in memory, but has DW_AT_location or
6643 DW_AT_const_value, or refers to a string literal, into
6644 DW_OP_GNU_implicit_pointer.
6645 (optimize_location_into_implicit_ptr): New function.
6646 (resolve_addr): If removing DW_AT_location of a variable because
6647 it was DW_OP_addr of address of the variable, but the variable doesn't
6648 live in memory, try to emit const value attribute for the initializer.
6649
08e0cda6
MG
66502013-03-21 Marc Glisse <marc.glisse@inria.fr>
6651
6652 * tree.h (VECTOR_TYPE_P): New macro.
6653 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6654 TYPE_MODE): Use it.
6655 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6656 VEC_COND_EXPR cannot be lvalues.
6657 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6658
d08633b4
MG
66592013-03-21 Marc Glisse <marc.glisse@inria.fr>
6660
6661 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6662 Restrict the transformation to equal modes.
6663
e6647190
RB
66642013-03-21 Richard Biener <rguenther@suse.de>
6665
6666 PR tree-optimization/39326
6667 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6668 (MEM_ANALYZABLE): Adjust.
6669 (record_mem_ref_loc): Move bitmap ops ...
6670 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6671 unanalyzable refs, do not record locations for it.
6672 (analyze_memory_references): Allocate ref zero as shared
6673 unanalyzable ref.
6674 (refs_independent_p): Do not test for unanalyzed mems here.
6675 (ref_indep_loop_p_1): Special-case disambiguation against
6676 the unanalyzed ref.
cc1df30b 6677 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6678
65074f54
CL
66792013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6680
6681 * config/arm/arm-protos.h (tune_params): Add
6682 prefer_neon_for_64bits field.
6683 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6684 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6685 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6686 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6687 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6688 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6689 (arm_option_override): Handle -mneon-for-64bits new option.
6690 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6691 (prefer_neon_for_64bits): Declare new variable.
6692 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6693 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6694 (arch_enabled): Handle new arch types. Remove support for onlya8
6695 and nota8.
6696 (one_cmpldi2): Use new arch names.
bc5faa5b 6697 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6698 * config/arm/arm.opt (mneon-for-64bits): Add option.
6699 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6700 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6701 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6702 of onlya8.
6703 * doc/invoke.texi (-mneon-for-64bits): Document.
6704
5a2d2a79
RB
67052013-03-21 Richard Biener <rguenther@suse.de>
6706
6707 PR tree-optimization/39326
6708 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6709 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6710 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6711
5abe1e05
RB
67122013-03-21 Richard Biener <rguenther@suse.de>
6713
6714 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6715 (vect_insert_into_interleaving_chain): Likewise.
6716 (vect_drs_dependent_in_basic_block): Inline ...
6717 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6718 split out from ...
6719 (vect_analyze_data_ref_dependence): ... here. Simplify.
6720 (vect_check_interleaving): Simplify.
6721 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6722 (vect_slp_analyze_data_ref_dependences): ... this new function.
6723 (dr_group_sort_cmp): New function.
6724 (vect_analyze_data_ref_accesses): Compute data-reference groups
6725 here instead of in vect_analyze_data_ref_dependence. Use
6726 a more efficient algorithm.
6727 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6728 vect_slp_analyze_data_ref_dependences. Call
6729 vect_analyze_data_ref_accesses earlier.
6730 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6731 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6732 (vect_slp_analyze_data_ref_dependences): New prototype.
6733
cad1735b
RB
67342013-03-21 Richard Biener <rguenther@suse.de>
6735
6736 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6737 ref is stored in the loop.
6738 (find_refs_for_sm): Walk only over all stores.
6739 (store_motion_loop): Allocate from lim_bitmap_obstack.
6740 (store_motion): Likewise.
6741
141310ef
RB
67422013-03-21 Richard Biener <rguenther@suse.de>
6743
6744 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6745 Update virtual SSA form.
6746
5022315a
RO
67472013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6748
6749 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6750 * configure: Regenerate.
6751 * config.in: Regenerate.
6752 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6753 if !HAVE_LD_EH_FRAME_CIEV3.
6754
50d4421c
RB
67552013-03-21 Richard Biener <rguenther@suse.de>
6756
6757 * tree-cfg.c (verify_expr_no_block): New function.
6758 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6759 nor DECL_VALUE_EXPR have locations with associated blocks.
6760 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6761 (clear_unused_block_pointer): Remove code dealing with
6762 blocks in DECL_DEBUG_EXPR locations.
6763
839b422f
RB
67642013-03-21 Richard Biener <rguenther@suse.de>
6765
6766 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6767 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6768 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6769 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6770 instead of DECL_DEBUG_EXPR_IS_FROM.
6771 * gimplify.c (gimplify_modify_expr): Likewise.
6772 * tree-cfg.c (verify_expr_location_1): Likewise.
6773 * tree-complex.c (create_one_component_var): Likewise.
6774 * tree-sra.c (create_access_replacement): Likewise.
6775 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6776 (clear_unused_block_pointer): Likewise.
6777 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6778 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6779 * var-tracking.c (var_debug_decl): Likewise.
6780 (track_expr_p): Likewise.
6781 * tree-inline.c (add_local_variables): Likewise. Set
6782 DECL_HAS_DEBUG_EXPR_P after copying it.
6783 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6784 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6785
fe04878d
UB
67862013-03-21 Uros Bizjak <ubizjak@gmail.com>
6787
6788 PR bootstrap/56656
6789 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6790 * configure: Regenerate.
6791 * config.in: Regenerate.
6792 * config/i386/i386.md (*movdf_internal): Use
6793 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6794 movd instead of movq mnemonic for interunit moves.
6795 (*movdi_internal): Ditto.
6796
bd059b26 67972013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
6798
6799 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6800 (abd<mode>_3): New pattern.
6801 (aba<mode>_3): New pattern.
6802 (fabd<mode>_3): New pattern.
6803
bd059b26 68042013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
6805
6806 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6807 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6808 occurrence of REGISTER_PREFIX as its empty string.
6809
4f1f78b9
JL
68102013-03-20 Jeff Law <law@redhat.com>
6811
6812 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6813 addititional equivalences for equality comparisons between an SSA_NAME
6814 and a constant where the SSA_NAME was set from a widening conversion.
6815
327a1118
WL
68162013-03-20 Walter Lee <walt@tilera.com>
6817
6818 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6819
813e0036
UB
68202013-03-20 Uros Bizjak <ubizjak@gmail.com>
6821
6822 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6823 depending on type attribute.
6824 (*movti_internal): Ditto.
6825 (*movtf_internal): Ditto.
6826 (*movxf_internal): Ditto.
6827 (*movdf_internal): Ditto.
6828 (*movsf_internal): Ditto.
6829
7cf34aae
UB
68302013-03-20 Uros Bizjak <ubizjak@gmail.com>
6831
6832 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6833 maybe_vex for sselog1 and ssemov types.
6834 (*movdi_internal): Reorder operand constraints.
6835 (*movsi_internal): Ditto. Set prefix attribute to
6836 maybe_vex for sselog1 and ssemov types.
6837 (*movtf_internal): Set prefix attribute to maybe_vex
6838 for sselog1 and ssemov types.
6839 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6840 DImode ssemov types. Reorder operand constraints.
6841 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6842 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6843 attribute for SImode ssemov types. Reorder operand constraints.
6844
19321415
MJ
68452013-03-20 Martin Jambor <mjambor@suse.cz>
6846
6847 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6848 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6849
c6d5ff83
MM
68502013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6851
6852 * config/rs6000/predicates.md (indexed_address, update_address_mem
6853 update_indexed_address_mem): New predicates.
6854 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6855 attribute for load/store instructions.
6856 * config/rs6000/dfp.md (movsd_store): Likewise.
6857 (movsd_load): Likewise.
6858 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6859 (unnamed HI->DI extend define_insn): Likewise.
6860 (unnamed SI->DI extend define_insn): Likewise.
6861 (unnamed QI->SI extend define_insn): Likewise.
6862 (unnamed QI->HI extend define_insn): Likewise.
6863 (unnamed HI->SI extend define_insn): Likewise.
6864 (unnamed HI->SI extend define_insn): Likewise.
6865 (extendsfdf2_fpr): Likewise.
6866 (movsi_internal1): Likewise.
6867 (movsi_internal1_single): Likewise.
6868 (movhi_internal): Likewise.
6869 (movqi_internal): Likewise.
6870 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6871 attribute for load/store instructions.
6872 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6873 instructions.
6874 (mov<mode>_softfloat): Likewise.
6875 (mov<mode>_hardfloat32): Likewise.
6876 (mov<mode>_hardfloat64): Likewise.
6877 (mov<mode>_softfloat64): Likewise.
6878 (movdi_internal32): Likewise.
6879 (movdi_internal64): Likewise.
6880 (probe_stack_<mode>): Likewise.
6881
68822013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6883
6884 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6885 floating point, and decimal floating point to reload iterator.
6886
6887 * config/rs6000/constraints.md (wl constraint): New constraints to
6888 return FLOAT_REGS if certain options are used to reduce the number
6889 of separate patterns that exist in the file.
6890 (wx constraint): Likewise.
6891 (wz constraint): Likewise.
6892
6893 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6894 -mdebug=reg, print wg, wl, wx, and wz constraints.
6895 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6896 Initialize the reload functions for 64-bit binary/decimal floating
6897 point types.
6898 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6899 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6900 create the buffer on the stack to overcome not having a 32-bit
6901 load and store.
6902 (rs6000_emit_move): Likewise.
6903 (rs6000_secondary_memory_needed_rtx): Likewise.
6904 (rs6000_alloc_sdmode_stack_slot): Likewise.
6905 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6906 via xxlxor, just like DFmode 0.0.
6907
6908 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6909 define as 1 if we are running on a power7 or newer.
6910 (enum r6000_reg_class_enum): Add new constraints.
6911
6912 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6913 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6914 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 6915 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
6916 (movsd splitter): Likewise.
6917 (movsd_hardfloat): Likewise.
6918 (movsd_softfloat): Likewise.
6919
6920 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6921 binary and decimal floating point moves.
6922 (fmove_ok): New attributes to combine binary and decimal floating
6923 point moves, and to combine power6x (mfpgpr) moves along normal
6924 floating moves.
6925 (real_value_to_target): Likewise.
6926 (f32_lr): Likewise.
6927 (f32_lm): Likewise.
6928 (f32_li): Likewise.
6929 (f32_sr): Likewise.
6930 (f32_sm): Likewise.
6931 (f32_si): Likewise.
6932 (movsf): Combine binary and decimal floating point moves. Combine
6933 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 6934 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
6935 (mov<mode> for SFmode/SDmode); Likewise.
6936 (SFmode/SDmode splitters): Likewise.
6937 (movsf_hardfloat): Likewise.
6938 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6939 (movsf_softfloat): Likewise.
6940 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6941
6942 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6943 wx and wz constraints.
6944
6945 * config/rs6000/constraints.md (wg constraint): New constraint to
6946 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6947
6948 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6949 constraint.
6950
6951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6952 -mdebug=reg, print wg, wl, wx, and wz constraints.
6953 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6954 Initialize the reload functions for 64-bit binary/decimal floating
6955 point types.
6956 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6957 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6958 create the buffer on the stack to overcome not having a 32-bit
6959 load and store.
6960 (rs6000_emit_move): Likewise.
6961 (rs6000_secondary_memory_needed_rtx): Likewise.
6962 (rs6000_alloc_sdmode_stack_slot): Likewise.
6963 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6964 via xxlxor, just like DFmode 0.0.
6965
c6d5ff83
MM
6966 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6967 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6968 with other moves by using conditional constraits (wg). Use LFIWZX
6969 and STFIWX for loading SDmode on power7.
6970 (movdd splitters): Likewise.
6971 (movdd_hardfloat32): Likewise.
6972 (movdd_softfloat32): Likewise.
6973 (movdd_hardfloat64_mfpgpr): Likewise.
6974 (movdd_hardfloat64): Likewise.
6975 (movdd_softfloat64): Likewise.
6976
6977 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6978 64-bit binary and decimal floating point moves.
6979 (FMOVE64X): Likewise.
6980 (movdf): Combine 64-bit binary and decimal floating point moves.
6981 Combine power6x (mfpgpr) moves with other moves by using
6982 conditional constraits (wg).
6983 (mov<mode> for DFmode/DDmode): Likewise.
6984 (DFmode/DDmode splitters): Likewise.
6985 (movdf_hardfloat32): Likewise.
6986 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6987 (movdf_softfloat32): Likewise.
6988 (movdf_hardfloat64_mfpgpr): Likewise.
6989 (movdf_hardfloat64): Likewise.
6990 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6991 (movdf_softfloat64): Likewise.
6992 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6993 (reload_<mode>_load): Move to later in the file so they aren't in
6994 the middle of the floating point move insns.
6995 (reload_<mode>_store): Likewise.
6996
6997 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6998 constraint.
6999
7000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7001 constraint if -mdebug=reg.
bd059b26
UB
7002 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7003 Enable using dd reload support if needed.
c6d5ff83
MM
7004
7005 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7006 binary and decimal floating point moves in rs6000.md.
7007 (movtd_internal): Likewise.
7008
7009 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7010 decimal floating point moves.
7011 (movtf): Likewise.
7012 (movtf_internal): Likewise.
7013 (mov<mode>_internal, TDmode/TFmode): Likewise.
7014 (movtf_softfloat): Likewise.
7015 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7016
7017 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7018 movdi_internal64, using wg constraint for move direct operations.
7019 (movdi_internal64): Likewise.
7020
7021 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7022 MODES_TIEABLE_P for selected modes. Print the numerical value of
7023 the various virtual registers. Use GPR/FPR first/last values,
7024 instead of hard coding the register numbers. Print which modes
7025 have reload functions registered.
bd059b26
UB
7026 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7027 settings before/after setting cpu, target and subtarget settings.
7028 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7029 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
7030 (rs6000_secondary_reload_fail): Likewise.
7031 (rs6000_secondary_reload_inner): Likewise.
7032
7033 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7034 macros for first/last GPR and FPR registers.
7035 (LAST_GPR_REGNO): Likewise.
7036 (FIRST_FPR_REGNO): Likewise.
7037 (LAST_FPR_REGNO): Likewise.
7038
7039 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7040 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7041 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7042 (vcond<mode><mode>): Likewise.
7043 (vcondu<mode><mode>): Likewise.
7044 (vector_gtu<mode>): Likewise.
7045 (vector_gte<mode>): Likewise.
7046 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 7047 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
7048 (ior<mode>3): Likewise.
7049 (and<mode>3): Likewise.
7050 (one_cmpl<mode>2): Likewise.
7051 (nor<mode>3): Likewise.
7052 (andc<mode>3): Likewise.
7053
7054 * config/rs6000/constraints.md (wt constraint): New constraint
7055 that returns VSX_REGS if TImode is allowed in VSX registers.
7056
7057 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7058 constant under VSX.
7059
7060 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7061 similar to TImode, but it is restricted to being in the GPRs.
7062
7063 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7064 TImode to occupy a single VSX register.
7065
7066 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7067 -mvsx-timode for power7/power8.
7068 (power7 cpu): Likewise.
7069 (power8 cpu): Likewise.
7070
7071 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7072 sure that TFmode/TDmode take up two registers if they are ever
7073 allowed in the upper VSX registers.
7074 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7075 registers.
7076 (rs6000_init_hard_regno_mode_ok): Likewise.
7077 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7078 constraint. Print if LRA is turned on.
7079 (rs6000_option_override_internal): Give an error if -mvsx-timode
7080 and VSX is not enabled.
7081 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7082 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7083 to reg+offset addressing. Use PTImode when checking offset
7084 addresses for validity.
7085 (reg_offset_addressing_ok_p): Likewise.
7086 (rs6000_legitimate_offset_address_p): Likewise.
7087 (rs6000_legitimize_address): Likewise.
7088 (rs6000_legitimize_reload_address): Likewise.
7089 (rs6000_legitimate_address_p): Likewise.
7090 (rs6000_eliminate_indexed_memrefs): Likewise.
7091 (rs6000_emit_move): Likewise.
7092 (rs6000_secondary_reload): Likewise.
7093 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7094 reloads to fpr registers to continue to use reg+offset addressing,
7095 but 64-bit reloads to altivec registers need reg+reg addressing.
7096 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7097 it. Treat LO_SUM like a PLUS operation.
7098 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 7099 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
7100 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7101 registers to share a register with a smaller sized type, since VSX
7102 puts scalars in the upper 64-bits.
7103 (print_operand): Add support for PTImode.
7104 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7105 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7106 registers, but don't have arithmetic support.
7107 (rs6000_memory_move_cost): Add test for VSX.
7108 (rs6000_opt_masks): Add -mvsx-timode.
7109
7110 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7111 for TImode.
7112 (VSs): Likewise.
7113 (VSr): Use wt constraint for TImode.
7114 (VSv): Drop TImode support.
7115 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7116 (vsx_movti_64bit): Likewise.
7117 (vsx_movti_32bit): Likewise.
7118 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7119 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7120 one '?' on the appropriate output constraint. Do not allow TImode
7121 logical operations on 32-bit systems.
7122 (vsx_ior<mode>3): Likewise.
7123 (vsx_xor<mode>3): Likewise.
7124 (vsx_one_cmpl<mode>2): Likewise.
7125 (vsx_nor<mode>3): Likewise.
7126 (vsx_andc<mode>3): Likewise.
7127 (vsx_concat_<mode>): Likewise.
7128 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7129
7130 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7131 OPTION_MASK_VSX_TIMODE.
7132 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7133 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7134
7135 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7136 (TI2 iterator): New iterator for TImode, PTImode.
7137 (wd mode attribute): Add values for vector types.
bd059b26
UB
7138 (movti_string): Replace TI move operations with operations for TImode
7139 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
7140 (mov<mode>_string, TImode/PTImode): Likewise.
7141 (movti_ppc64): Likewise.
7142 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7143 (TI mode splitters): Likewise.
7144
7145 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7146 constraint.
7147
1fc5eced
MG
71482013-03-20 Marc Glisse <marc.glisse@inria.fr>
7149
7150 PR tree-optimization/56355
7151 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7152 Also handle integers with undefined overflow.
7153
22c4c869
CM
71542013-03-20 Catherine Moore <clm@codesourcery.com>
7155 Maciej W. Rozycki <macro@codesourcery.com>
7156 Tom de Vries <tom@codesourcery.com>
7157 Nathan Sidwell <nathan@codesourcery.com>
7158 Iain Sandoe <iain@codesourcery.com>
7159 Nathan Froyd <froydnj@codesourcery.com>
7160 Chao-ying Fu <fu@mips.com>
7161
7162 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 7163 Document new function attributes.
22c4c869
CM
7164 * doc/invoke.texi (minterlink-compressed, mmicromips,
7165 m14k, m14ke, m14kec): Document new options.
7166 (minterlink-mips16): Update documentation.
7167 * doc/md.texi (ZC, ZD): Document new constraints.
7168 * configure.ac (gcc_cv_as_micromips): Check if linker
7169 supports the .set micromips directive.
7170 * configure: Regenerate.
7171 * config.in: Regenerate.
7172 * config/mips/mips-tables.opt: Regenerate.
7173 * config/mips/micromips.md: New file.
7174 * constraints.md (ZC, ZD): New constraints.
7175 * config/mips/predicates.md (movep_src_register): New predicate.
7176 (movep_src_operand): New predicate.
7177 (non_volatile_mem_operand): New predicate.
7178 * config/mips/mips.md (multimem): New type.
7179 (length): Differentiate between 17-bit and 18-bit branch offsets.
7180 (MOVEP1, MOVEP2): New mode iterator.
33159866 7181 (mov_<load>l): Use ZC constraint.
22c4c869
CM
7182 (mov_<load>r): Likewise.
7183 (mov_<store>l): Likewise.
7184 (mov_<store>r): Likewise.
7185 (*branch_equality<mode>_inverted): Add microMIPS support.
7186 (*branch_equality<mode>): Likewise.
7187 (*jump_absolute): Likewise.
7188 (indirect_jump_<mode>): Likewise.
7189 (tablejump_<mode>): Likewise.
7190 (<optab>_internal): Likewise.
7191 (sibcall_internal): Likewise.
7192 (sibcall_value_internal): Likewise.
7193 (prefetch): Use constraint ZD.
7194 * config/mips/mips.opt (minterlink-compressed): New option.
7195 (minterlink-mips16): Now an alias for minterlink-compressed.
7196 (mmicromips): New option.
7197 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7198 (compare_and_swap_12): Likewise.
7199 (sync_add<mode>): Likewise.
7200 (sync_<optab>_12): Likewise.
7201 (sync_old_<optab>_12): Likewise.
7202 (sync_new_<optab>_12): Likewise.
7203 (sync_nand_12): Likewise.
7204 (sync_old_nand_12): Likewise.
7205 (sync_new_nand_12): Likewise.
7206 (sync_sub<mode>): Likewise.
7207 (sync_old_add<mode>): Likewise.
7208 (sync_old_sub<mode>): Likewise.
7209 (sync_new_add<mode>): Likewise.
7210 (sync_new_sub<mode>): Likewise.
7211 (sync_<optab><mode>): Likewise.
7212 (sync_old_<optab><mode>): Likewise.
7213 (sync_new_<optab><mode>): Likewise.
7214 (sync_nand<mode>): Likewise.
7215 (sync_old_nand<mode>): Likewise.
7216 (sync_new_nand<mode>): Likewise.
7217 (sync_lock_test_and_set<mode>): Likewise.
7218 (test_and_set_12): Likewise.
7219 (atomic_compare_and_swap<mode>): Likewise.
7220 (atomic_exchange<mode>_llsc): Likewise.
7221 (atomic_fetch_add<mode>_llsc): Likewise.
7222 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7223 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7224 (umips_save_restore_pattern_p): Likewise.
7225 (umips_load_store_pair_p): Likewise.
7226 (umips_output_load_store_pair): Likewise.
7227 (umips_movep_target_p): Likewise.
7228 (umips_12bit_offset_address_p): Likewise.
7229 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7230 (mips_base_mips16): Rename this...
7231 (mips_base_compression_flags): ...to this. Update all uses.
7232 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7233 (mips_mips16_decl_p): Delete.
7234 (mips_nomips16_decl_p): Delete.
33159866 7235 (mips_get_compress_on_flags): New function.
22c4c869
CM
7236 (mips_get_compress_off_flags): New function.
7237 (mips_get_compress_mode): New function.
7238 (mips_get_compress_on_name): New function.
7239 (mips_get_compress_off_name): New function.
7240 (mips_insert_attributes): Support multiple compression types.
7241 (mips_merge_decl_attributes): Likewise.
7242 (umips_12bit_offset_address_p): New function.
7243 (mips_start_function_definition): Emit .set micromips directive.
7244 (mips_call_may_need_jalx_p): New function.
7245 (mips_function_ok_for_sibcall): Add microMIPS support.
7246 (mips_print_operand_punctuation): Support short delay slots and
7247 compact jumps.
7248 (umips_swm_mask, umips_swm_encoding): New.
7249 (umips_build_save_restore): New function.
7250 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7251 (was_mips16_p): Remove.
7252 (old_compression_mode): New.
7253 (mips_set_compression_mode): New function.
7254 (mips_set_current_function): Add microMIPS support.
7255 (mips_option_override): Likewise.
7256 (umips_save_restore_pattern_p): New function.
7257 (umips_output_save_restore): New function.
7258 (umips_load_store_pair_p_1): New function.
7259 (umips_load_store_pair_p): New function.
7260 (umips_output_load_store_pair_1): New function.
7261 (umips_output_load_store_pair): New function.
7262 (umips_movep_target_p) New function.
7263 (mips_prepare_pch_save): Add microMIPS support.
7264 * config/mips/mips.h (TARGET_COMPRESSION): New.
7265 (TARGET_CPU_CPP_BUILTINS): Update macro
7266 to use new compression flags and to support microMIPS.
7267 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7268 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7269 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7270 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7271 (ASM_SPEC): Support mmicromips and mno-micromips.
7272 (M16STORE_REG_P): New macro.
7273 (MIPS_CALL): Support TARGET_MICROMIPS.
7274 (MICROMIPS_J): New macro.
7275 (mips_base_mips16): Rename this...
7276 (mips_base_compression_flags): ...to this.
7277 (UMIPS_12BIT_OFFSET_P): New macro.
7278 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7279 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
72802013-03-20 Richard Biener <rguenther@suse.de>
7281
7282 PR tree-optimization/56661
7283 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7284 the result does not have to be distinct.
7285
54714c68
RB
72862013-03-20 Richard Biener <rguenther@suse.de>
7287
7288 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7289 remap_gimple_op_r.
7290
cca1130d
BS
72912013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7292 Steven Bosscher <steven@gcc.gnu.org>
7293
7294 PR rtl-optimization/56605
7295 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7296
2a930377
UB
72972013-03-20 Uros Bizjak <ubizjak@gmail.com>
7298
7299 PR bootstrap/56656
7300 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7301 that require movd instead of movq.
7302
d6d305fe
RB
73032013-03-20 Richard Biener <rguenther@suse.de>
7304
7305 * tree-ssa-structalias.c (struct variable_info): Add pointer
7306 to the first field of an aggregate with sub-vars. Make
7307 this and the pointer to the next subfield its ID.
7308 (vi_next): New function.
7309 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7310 storedanything_id, integer_id): Increment by one.
7311 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7312 get_call_clobber_vi): Adjust.
7313 (solution_set_expand): Simplify and speedup.
7314 (solution_set_add): Inline into ...
7315 (set_union_with_increment): ... this. Adjust accordingly.
7316 (do_sd_constraint): Likewise.
7317 (do_ds_constraint): Likewise.
7318 (do_complex_constraint): Simplify.
7319 (build_pred_graph): Adjust.
7320 (solve_graph): Likewise. Simplify and speedup.
7321 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7322 get_constraint_for_component_ref, get_constraint_for_1,
7323 first_vi_for_offset, first_or_preceding_vi_for_offset,
7324 create_function_info_for, create_variable_info_for_1,
7325 create_variable_info_for, intra_create_variable_infos): Adjust.
7326 (init_base_vars): Push NULL for ID zero.
7327 (compute_points_to_sets): Adjust.
7328
a271b42d
RB
73292013-03-20 Richard Biener <rguenther@suse.de>
7330
7331 * cfgloop.c (verify_loop_structure): Streamline and avoid
7332 ICEing on corrupt loop tree.
7333 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7334 loop tree.
7335
ebd65954
RB
73362013-03-20 Richard Biener <rguenther@suse.de>
7337
7338 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7339 check whether an SSA update is needed.
7340
4547b7ee
RS
73412013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7342
7343 * config/mips/constraints.md (T): Rename to...
7344 (Yf): ...this.
7345 (U): Rename to...
7346 (Yd): ...this.
7347 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7348 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7349
0b8cdc58
IB
73502013-03-19 Ian Bolton <ian.bolton@arm.com>
7351
7352 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7353 (*subsi3_carryin_uxtw): Likewise.
7354
5977a10d
IB
73552013-03-19 Ian Bolton <ian.bolton@arm.com>
7356
7357 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7358 (*rorsi3_insn_uxtw): Likewise.
7359
bd83ff2c
IB
73602013-03-19 Ian Bolton <ian.bolton@arm.com>
7361
7362 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7363 (*extrsi5_insn_uxtw): Likewise.
7364
ba65123c
RB
73652013-03-19 Richard Biener <rguenther@suse.de>
7366
7367 PR tree-optimization/56273
7368 * passes.c (init_optimization_passes): Move second VRP after DOM.
7369
2eac0476
UB
73702013-03-19 Uros Bizjak <ubizjak@gmail.com>
7371
7372 * config/i386/i386.md (*movti_internal): Merge from
7373 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7374 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7375 nox64 isa attributes.
7376
6e55eda7
RB
73772013-03-18 Richard Biener <rguenther@suse.de>
7378
7379 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7380 (unite): Likewise.
7381 (merge_node_constraints): Likewise.
7382 (build_succ_graph): Likewise.
7383 (valid_graph_edge): Inline into single caller.
7384 (unify_nodes): Likewise. Use bitmap_set_bit return value
7385 and cache varinfo.
7386 (scc_visit): Fix formatting and variable use.
7387 (do_sd_constraint): Use gcc_checking_assert.
7388 (do_ds_constraint): Likewise.
7389 (do_complex_constraint): Likewise.
7390 (condense_visit): Likewise. Cleanup.
7391 (dump_pred_graph): New function.
7392 (perform_var_substitution): Dump the pred-graph before
7393 variable substitution.
7394 (find_equivalent_node): Use gcc_checking_assert.
7395 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7396
4bdd44c4
RB
73972013-03-18 Richard Biener <rguenther@suse.de>
7398
7399 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7400 Remove cond_expr_stmt_list argument and do not gimplify the
7401 built expression.
7402 (vect_loop_versioning): Adjust.
7403 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7404 Cleanup to use less temporaries.
7405 (vect_create_data_ref_ptr): Cleanup.
7406
38c56a5b
JJ
74072013-03-18 Jakub Jelinek <jakub@redhat.com>
7408
7409 PR tree-optimization/56635
7410 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7411 require types_compatible_p types.
7412
20b2e6a0
NC
74132013-03-18 Nick Clifton <nickc@redhat.com>
7414
a6178a25
NC
7415 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7416 spurious backslash.
7417
20b2e6a0
NC
7418 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7419 Add missing line to comment describing function.
7420
92608d0e
RB
74212013-03-18 Richard Biener <rguenther@suse.de>
7422
7423 PR tree-optimization/56210
7424 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7425 Handle string / character search functions.
7426 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7427
31348d52
RB
74282013-03-18 Richard Biener <rguenther@suse.de>
7429
7430 PR middle-end/56483
7431 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7432 and implement properly.
7433 * gimple.h (gimple_cond_single_var_p): Remove.
7434
fcac74a1
RB
74352013-03-18 Richard Biener <rguenther@suse.de>
7436
7437 * tree-data-ref.h (find_data_references_in_loop): Declare.
7438 * tree-data-ref.c (get_references_in_stmt): Use a stack
7439 vector pre-allocated in the callers.
7440 (find_data_references_in_stmt): Adjust.
7441 (graphite_find_data_references_in_stmt): Likewise.
7442 (create_rdg_vertices): Likewise.
7443 (find_data_references_in_loop): Export.
7444 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7445 Compute dependences here...
7446 (vect_analyze_data_refs): ...not here. When we encounter
7447 a non-vectorizable data reference in basic-block vectorization
7448 truncate the data reference vector. Do not bother to
7449 fixup data-dependence information for gather loads.
7450 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7451 of data references, as reported.
7452
0d5a1b56
RB
74532013-03-18 Richard Biener <rguenther@suse.de>
7454
7455 PR tree-optimization/3713
7456 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7457 has_constants and expr.
7458 (stmt_has_constants): Properly valueize SSA names when deciding
7459 whether the stmt has constants.
7460
789c34e3
RB
74612013-03-18 Richard Biener <rguenther@suse.de>
7462
7463 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7464 whole function when there is nothing to do.
7465 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7466 * tree-vectorizer.c (vectorize_loops): Update virtual and
7467 loop-closed SSA once.
7468 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7469
076b4605
RB
74702013-03-18 Richard Biener <rguenther@suse.de>
7471
7472 PR middle-end/56113
7473 * domwalk.c (bb_postorder): New global static.
7474 (cmp_bb_postorder): New function.
7475 (walk_dominator_tree): Replace scheme imposing an order for
7476 visiting dominator sons by one sorting them at the time they
7477 are pushed on the stack.
7478
bdb01696
RB
74792013-03-18 Richard Biener <rguenther@suse.de>
7480
7481 PR tree-optimization/39326
7482 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7483 (struct mem_ref): Replace mem member with ao_ref typed member.
7484 (MEM_ANALYZABLE): Adjust.
7485 (memref_eq): Likewise.
7486 (mem_ref_alloc): Likewise.
7487 (gather_mem_refs_stmt): Likewise.
7488 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7489 (execute_sm_if_changed_flag_set): Adjust.
7490 (execute_sm): Likewise.
7491 (ref_always_accessed_p): Likewise.
7492 (refs_independent_p): Likewise.
7493 (can_sm_ref_p): Likewise.
7494
12d2dc5e
JJ
74952013-03-18 Jakub Jelinek <jakub@redhat.com>
7496
7497 PR c/56566
7498 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7499 return 1 even for !unsignedp.
7500
286fb677
UB
75012013-03-17 Uros Bizjak <ubizjak@gmail.com>
7502
7503 * config/i386/i386.md (isa): Add x64 and nox64.
7504 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7505 (*pushtf): Enable *roF alternative for x64 isa only.
7506 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7507 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7508 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7509 (*movtf_internal): Merge from *movtf_internal_rex64 and
7510 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7511 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7512 nox64 isa attributes.
7513 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7514 nox64 isa attributes.
7515 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7516
88b97037
UB
75172013-03-17 Uros Bizjak <ubizjak@gmail.com>
7518
7519 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7520
9f4f1735
JJ
75212013-03-17 Jakub Jelinek <jakub@redhat.com>
7522
7523 PR target/56640
7524 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7525 class names. Remove trailing comma after "ALL_REGS".
7526
48f4a6fa
JH
75272013-03-16 Jan Hubicka <jh@suse.cz>
7528
7529 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7530 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7531 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7532 of cgraph_get_create_node.
7533 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7534
98e81123
JM
75352013-03-16 Jason Merrill <jason@redhat.com>
7536
7537 PR debug/49090
7538 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7539 with DW_AT_default_value.
7540
8a298c04
JJ
75412013-03-16 Jakub Jelinek <jakub@redhat.com>
7542
7543 * BASE-VER: Set to 4.9.0.
7544
4323afa0
AK
75452013-03-14 Andi Kleen <ak@linux.intel.com>
7546
7547 PR target/56619
7548 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7549 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7550 Document _x* TSX intrinsics.
7551
b3c0d469
JJ
75522013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7553 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
7554
7555 * configure.ac: Add MicroBlaze TLS support detection.
7556 * configure: Regenerate.
88b97037
UB
7557 * config/microblaze/microblaze-protos.h
7558 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7559 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7560 * config/microblaze/microblaze.c (microblaze_address_type): Add
7561 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
7562 (microblaze_address_info): Add tls_reloc.
7563 (TARGET_HAVE_TLS): Define.
7564 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7565 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
7566 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7567 load_tls_operand, microblaze_call_tls_get_addr,
7568 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7569 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7570 (get_base_reg): Use microblaze_tls_symbol_p.
7571 (microblaze_classify_address): Handle TLS.
88b97037
UB
7572 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7573 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7574 (microblaze_legitimize_address): Handle TLS.
7575 (microblaze_address_insns): Handle ADDRESS_TLS.
7576 (pic_address_needs_scratch): Handle TLS.
7577 (print_operand_address): Handle TLS.
7578 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7579 (microblaze_expand_move): Handle TLS.
88b97037
UB
7580 (microblaze_legitimate_constant_p): Check
7581 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7582 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7583 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7584 (PIC_OFFSET_TABLE_REGNUM): Set.
7585 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7586 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7587 (addsi3, movsi_internal2, movdf_internal): Update constraints
7588 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7589 (move_operand): Redefine as move_src_operand,
7590 check microblaze_tls_referenced_p.
8cc9a5a5 7591
d803a491
IB
75922013-03-14 Ian Bolton <ian.bolton@arm.com>
7593
7594 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7595 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7596
a8504f22
IB
75972013-03-14 Ian Bolton <ian.bolton@arm.com>
7598
7599 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7600 CC mode for AND.
7601
df2dfaea
JJ
76022013-03-14 Jakub Jelinek <jakub@redhat.com>
7603
fbd28bc3
JJ
7604 PR tree-optimization/53265
7605 * common.opt (Waggressive-loop-optimizations): New option.
7606 * tree-ssa-loop-niter.c: Include tree-pass.h.
7607 (do_warn_aggressive_loop_optimizations): New function.
7608 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7609 if number_of_latch_executions returned constant.
7610 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7611 early. If number_of_latch_executions returned constant, set
7612 nb_iterations_upper_bound back to it.
7613 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7614 field.
7615 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7616 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7617
df2dfaea
JJ
7618 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7619 (MULTILIB_OSDIRNAMES): Set.
7620 * genmultilib: If defaultosdirname doesn't start with :: , set
7621 defaultosdirname2 instead, clear it and emit two . multilib_raw
7622 entries instead of just one.
7623
ee0d2b68
KK
76242013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7625
7626 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7627 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7628 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7629 (SUBTARGET_OVERRIDE_OPTIONS): New.
7630
decc676e
OE
76312013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7632
7633 PR target/49880
7634 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7635 (musermode): Convert to Var(TARGET_USERMODE).
7636 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7637 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7638 * config/sh/sh.c (sh_option_override): Use
7639 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7640 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7641 condition.
7642 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7643 TARGET_SH4.
7644 (udivsi3_i4_single, divsi3_i4_single): Use
7645 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7646
f4b719c7
DK
76472013-03-13 Dave Korn <dave.korn.cygwin@....>
7648
7649 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7650 default setting.
7651
c40eced0
RB
76522013-03-13 Richard Biener <rguenther@suse.de>
7653
7654 PR tree-optimization/56608
7655 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7656 calls when vectorizing basic-blocks.
7657
1bfa5973
JJ
76582013-03-13 Jakub Jelinek <jakub@redhat.com>
7659
7660 PR plugins/45078
7661 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7662 tm_file.
7663
6fcf5434
JJ
76642013-03-12 Jakub Jelinek <jakub@redhat.com>
7665
7666 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7667
4f38fa8c
JH
76682013-03-11 Jan Hubicka <jh@suse.cz>
7669
7670 PR lto/56557
7671 * lto-streamer-out.c (output_symbol_p): Skip references from
7672 constructors of external variables.
7673
c5c5ba89
JH
76742013-03-11 Jan Hubicka <jh@suse.cz>
7675
7676 PR middle-end/56571
7677 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7678 from pseudos.
7679 * emit-rtl.c (verify_rtx_sharing): Likewise.
7680 (copy_insn_1): Likewise.
7681 * rtl.c (copy_rtx): Likewise.
7682
c2a939b1
GJL
76832013-03-11 Georg-Johann Lay <avr@gjlay.de>
7684
7685 PR target/56591
7686 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7687 output_operand_lossage message.
88b97037 7688
3c3279fb
RE
76892013-03-11 Richard Earnshaw <rearnsha@arm.com>
7690
7691 PR target/56470
7692 * arm.c (shift_op): Validate RTL pattern on the fly.
7693 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7694 the RTL.
7695
aef5ef9d
JDA
76962013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7697
7698 PR target/56347
7699 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7700 new call patterns that clobber %fr12.
7701 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7702 split and postreload patterns.
7703 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7704 registers %fr12 and %fr12R as call used.
7705
456610d3
SB
77062013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7707
7708 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7709 (canon_address, record_store, replace_read, check_mem_read_rtx,
7710 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7711 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7712 rest_of_handle_dse): Likewise.
7713
4b1baac8
RS
77142013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7715
7716 PR middle-end/56524
7717 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7718 Add base_optabs.
7719 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7720 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7721 (save_optabs_if_changed): Replace with...
7722 (init_tree_optimization_optabs): ...this.
7723 * optabs.c (save_optabs_if_changed): Rename to...
7724 (init_tree_optimization_optabs): ...this. Take the optimization node
7725 as argument. Do nothing if the base optabs are already correct.
7726 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7727 to recompute optabs.
7728 * function.h (function): Remove optabs field.
7729 * function.c (invoke_set_current_function_hook): Call
7730 init_tree_optimization_optabs. Use the result to initialize
7731 this_fn_optabs.
7732
b7a78683
AH
77332013-02-27 Aldy Hernandez <aldyh@redhat.com>
7734
7735 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7736 if GTMA_HAS_NO_INSTRUMENTATION.
7737 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7738 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7739 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7740 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7741 GTMA_HAS_NO_INSTRUMENTATION.
7742
6384c29b
JJ
77432013-03-08 Jakub Jelinek <jakub@redhat.com>
7744
7745 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7746 libasan_preinit.o.
7747
ecd4f20a
MP
77482013-03-08 Marek Polacek <polacek@redhat.com>
7749 Jakub Jelinek <jakub@redhat.com>
7750
7751 PR tree-optimization/56478
7752 * predict.c (is_comparison_with_loop_invariant_p): Change the
7753 type of loop_step to tree.
7754 (predict_loops): Adjust.
7755 (predict_iv_comparison): Perform the computations on double_ints.
7756
64366d35
RB
77572013-03-08 Richard Biener <rguenther@suse.de>
7758
7759 PR tree-optimization/56570
7760 * tree-cfg.c (verify_expr_location_1): Verify locations for
7761 DECL_DEBUG_EXPR.
7762 * tree-sra.c (create_access_replacement): Strip locations
7763 from DECL_DEBUG_EXPRs.
7764
a9d5a059
RB
77652013-03-08 Richard Biener <rguenther@suse.de>
7766
7767 * tree-inline.c (expand_call_inline): Do not associate
7768 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7769 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7770
b7aa4e9a
RB
77712013-03-08 Richard Biener <rguenther@suse.de>
7772
7773 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7774 or block changes with -Og. Fix for location / block encoding
7775 changes and PHI arguments with locations.
7776
c4c2f9fa
SB
77772013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7778
7779 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7780 for all counters.
7781 (struct output_info): Likewise.
7782 (register_overhead): Remove bad gcc_assert.
7783 (bitmap_find_bit): If there is only a single bitmap element, do not
7784 count a miss as a search.
7785 (print_statistics): Update for counter type changes.
7786 (dump_bitmap_statistics): Likewise. Print headers such that they
7787 are properly lined up with the printed counters.
7788
5bf6606a
JJ
77892013-03-07 Jakub Jelinek <jakub@redhat.com>
7790
7791 PR tree-optimization/56559
7792 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7793 check that it has only a single use.
7794
2c653d46
RB
77952013-03-07 Richard Biener <rguenther@suse.de>
7796
7797 * doc/invoke.texi (fwhole-program): Discourage use in combination
7798 with -flto.
7799
a72d8780
JJ
78002013-03-06 Jakub Jelinek <jakub@redhat.com>
7801
01a454df
JJ
7802 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7803
c1781047
JJ
7804 PR tree-optimization/56539
7805 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7806 instead of GSI_CONTINUE_LINKING as last argument to
7807 force_gimple_operand_gsi. Adjust function comment.
7808
9772c47a
JJ
7809 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7810 aarch64-cores.def.
7811
a72d8780
JJ
7812 PR middle-end/56548
7813 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7814 promoted mode, convert the result back to the original mode.
7815
fa5556de
RB
78162013-03-06 Richard Biener <rguenther@suse.de>
7817
7818 PR middle-end/56294
7819 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7820 (insert_updated_phi_nodes_compare_uids): New function.
7821 (update_ssa): Sort symbols_to_rename after UID before
7822 traversing it to insert PHI nodes.
7823
010403d1
RB
78242013-03-06 Richard Biener <rguenther@suse.de>
7825
7826 PR middle-end/50494
7827 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7828 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7829
7830 Revert
7831 2013-02-13 Richard Biener <rguenther@suse.de>
7832
7833 PR lto/50494
7834 * varasm.c (output_constant_def_1): Get the decl representing
7835 the constant as argument.
7836 (output_constant_def): Wrap output_constant_def_1.
7837 (make_decl_rtl): Use output_constant_def_1 with the decl
7838 representing the constant.
7839 (build_constant_desc): Optionally re-use a decl already
7840 representing the constant.
7841 (tree_output_constant_def): Adjust.
7842
3c27ce4c
JY
78432013-03-06 Joey Ye <joey.ye@arm.com>
7844
7845 PR lto/50293
7846 * gcc.c (convert_white_space): New function.
7847 (main): Handles white space in function name.
7848
8f6d1c86
OE
78492013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7850
7851 PR target/56529
7852 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7853 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7854 to SH_DIV_CALL_TABLE for TARGET_SH2.
7855 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7856 list.
7857 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7858 call-table options.
7859
798a209f
SA
78602013-03-05 Sterling Augustine <saugustine@google.com>
7861 Cary Coutant <ccoutant@google.com>
7862
7863 PR debug/55364
7864 * dwarf2out.c (resolve_addr): Don't call
7865 remove_loc_list_addr_table_entries a second time for the same
7866 expression.
7867
6cfa417f 78682013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 7869
6cfa417f
JJ
7870 PR debug/56510
7871 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7872 (avoid_complex_debug_insns): New function.
7873 (expand_debug_locations): Call it.
7874
7875 PR rtl-optimization/56484
7876 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7877 lifetimes of hard registers on small register class machines.
7878
78792013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7880
7881 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 7882 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 7883 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
7884 fast_interrupt.
7885 (microblaze_fast_interrupt_function_p): New function.
7886 (microblaze_is_interrupt_handler): Rename to
7887 microblaze_is_interrupt_variant and add fast_interrupt check.
7888 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7889 (save_restore_insns): Likewise.
7890 (compute_frame_size): Likewise.
7891 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7892 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
7893 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7894 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
7895 microblaze_is_interrupt_variant.
7896
731aefac
KT
78972013-03-05 Kai Tietz <ktietz@redhat.com>
7898
7899 * sdbout.c (sdbout_one_type): Switch to current function's section
7900 supporting cold/hot.
7901
a72d8780 79022013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
7903
7904 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7905 -mxl-reorder.
7906
334e71e8
JJ
79072013-03-05 Jakub Jelinek <jakub@redhat.com>
7908
0b50e654
JJ
7909 PR middle-end/56461
7910 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7911 if VALGRIND_GET_VBITS is defined, temporarily make object
7912 memory all defined, and restore previous valgrind addressability
7913 and definability afterwards. Free this_object at the end.
7914
4ccf8f43
JJ
7915 PR middle-end/56461
7916 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7917 right before calling lra_create_live_ranges, also call it
7918 when clearing live_p. Only call lra_clear_live_ranges
7919 at the end if live_p.
7920
334e71e8
JJ
7921 PR middle-end/56461
7922 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7923
9ca966ca
RB
79242013-03-05 Richard Biener <rguenther@suse.de>
7925
7926 PR tree-optimization/56521
7927 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7928 value-id.
7929
d273b176
SB
79302013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7931
7932 PR c++/55135
7933 * except.h (remove_unreachable_eh_regions): New prototype.
7934 * except.c (remove_eh_handler_splicer): New function, split out
7935 of remove_eh_handler.
7936 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7937 warning about running it on many EH regions one at a time.
7938 (remove_unreachable_eh_regions_worker): New function, walk the
7939 EH tree in depth-first order and remove non-marked regions.
7940 (remove_unreachable_eh_regions): New function.
7941 * tree-eh.c (mark_reachable_handlers): New function, split out
7942 from remove_unreachable_handlers.
7943 (remove_unreachable_handlers): Use mark_reachable_handlers and
7944 remove_unreachable_eh_regions.
7945 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7946 and remove_unreachable_eh_regions.
7947
5e7f1aef
RB
79482013-03-05 Richard Biener <rguenther@suse.de>
7949
7950 PR middle-end/56525
7951 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7952 not freeing them until the end.
7953
f276b762
AK
79542013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7955
7956 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7957
12a43ab8
RB
79582013-03-05 Richard Biener <rguenther@suse.de>
7959
7960 PR tree-optimization/56270
7961 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7962 of loads after scheduling an SLP instance.
7963
93675444
JJ
79642013-03-05 Jakub Jelinek <jakub@redhat.com>
7965
db4138e3
JJ
7966 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7967 tic6x.exp.
7968 (check_gcc_parallelize): Run guality.exp as a separate job from
7969 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7970 struct-layout-1.exp with stackalign.exp.
7971
dd3d1ec0
JJ
7972 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7973
b8d381a3
JJ
7974 PR middle-end/56461
7975 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7976 load_index sbitmap even if some bit in it isn't set.
7977
b4f9786b
JJ
7978 PR middle-end/56461
7979 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7980 (discover_iteration_bound_by_body_walk): Change queues to
7981 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7982 spelling in comment. Call safe_push on queues[bound_index] directly.
7983 Release queues[queue_index] in every iteration unconditionally.
7984 Release bounds vector.
7985
93675444
JJ
7986 PR middle-end/56461
7987 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7988 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7989 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7990 inner_phis vector.
7991
3e492e9c
RB
79922013-03-05 Richard Biener <rguenther@suse.de>
7993
7994 PR lto/56515
7995 * tree-inline.c (remap_blocks_to_null): New function.
7996 (expand_call_inline): When expanding a call stmt without
7997 an associated block inline remap all callee blocks to NULL.
7998
a5d1569a
JJ
79992013-03-05 Jakub Jelinek <jakub@redhat.com>
8000
86efb5cd
JJ
8001 PR rtl-optimization/56494
8002 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8003 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8004 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8005
85f5dbea
JJ
8006 PR middle-end/56461
8007 * sel-sched-ir.c (free_sched_pools): Release
8008 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8009 if succs_info_pool.max_top isn't -1.
8010
a5d1569a
JJ
8011 PR bootstrap/56509
8012 * opts.c (opts_obstack, opts_concat): Moved to...
8013 * opts-common.c (opts_obstack, opts_concat): ... here.
8014
4432aa6c
JJ
80152013-03-04 Jakub Jelinek <jakub@redhat.com>
8016
8017 PR middle-end/56461
8018 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8019
f3a1fb91
MJ
80202013-03-04 Martin Jambor <mjambor@suse.cz>
8021
8022 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8023 all appropriate places.
8024
22110e6c
EB
80252013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8026
8027 PR tree-optimization/56424
8028 * ipa-split.c (split_function): Do not set the RSO flag if result is
8029 not by reference and its type is a register type.
8030
a72d8780 80312013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 8032
88b97037 8033 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 8034 (microblaze_legitimate_pic_operand): Likewise
88b97037 8035 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
8036 new function microblaze_legitimate_pic_operand
8037 * config/microblaze/microblaze-protos.h
8038 (microblaze_legitimate_pic_operand): Declare.
8039
a72d8780 80402013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 8041
a72d8780 8042 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 8043 New predicate for supported rtx code types.
a72d8780 8044 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
8045 call_insn_simple_operand predicate.
8046
541d9ac8
JJ
80472013-03-04 Jakub Jelinek <jakub@redhat.com>
8048
5eb010bc
JJ
8049 PR middle-end/56461
8050 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8051 partitions.ordered_remove.
8052
30862efc
JJ
8053 PR middle-end/56461
8054 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8055 vec_oprnds0.create (1) for modifier == NONE.
8056
8930f723
JJ
8057 PR middle-end/56461
8058 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8059 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8060 vec_oprnds1 right before pushing anything to it for
8061 scalar_shift_arg.
8062
541d9ac8
JJ
8063 PR middle-end/56461
8064 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8065 set nbbs to 0 instead of having separate code path.
8066 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8067 instead of false as last argument if returning NULL.
8068
7aa7f2e3
SL
80692013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8070
8071 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8072 the attribute is now called "target" instead of "option".
8073 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8074 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8075 attribute/pragma name for TARGET_OPTION_VALID_P and
8076 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8077 * doc/tm.texi: Regenerated.
8078
8930f723 80792013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 8080
8930f723 8081 * config/microblaze/microblaze.c:
cb8a1637 8082 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
8083 * config/microblaze/microblaze.h: Add -mxl-reorder to
8084 DRIVER_SELF_SPECS.
8085 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8086 instructions emitted if TARGET_REORDER.
88b97037
UB
8087 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8088 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 8089 separately.
cb8a1637 8090
4dc1d68c
XDL
80912013-03-01 Xinliang David Li <davidxl@google.com>
8092
8093 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8094 walk length.
8095
689eaba3
JJ
80962013-03-01 Jakub Jelinek <jakub@redhat.com>
8097
9d676bf6
JJ
8098 PR middle-end/56461
8099 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8100 vector even when returning true. Fix up function comment formatting.
8101
caff7edf
JJ
8102 PR middle-end/56461
8103 * ira-build.c (ira_loop_nodes_count): New variable.
8104 (create_loop_tree_nodes): Initialize it.
8105 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8106
b6b9227d
JJ
8107 PR middle-end/56461
8108 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8109 method on dr_chain and result_chain.
8110 * tree-vect-stmts.c (vectorizable_store): Only call
8111 result_chain.create if j == 0.
8112
689eaba3
JJ
8113 PR middle-end/56461
8114 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8115 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8116 before overwriting it.
8117
40bf31ed
TB
81182013-03-01 Tobias Burnus <burnus@net-b.de>
8119
8120 * doc/extended.texi (C Extensions): Change order in @menu
8121 to match @node.
8122 (Other MIPS Built-in Functions): Move last MIPS entry before
8123 "picoChip Built-in Functions".
8124 (SH Built-in Functions): Move after RX Built-in Functions.
8125 * doc/gcc.texi (Introduction): Change order in @menu
8126 to match @node.
8127 * doc/md.texi (Constraints): Ditto.
8128 * gty.texi (Type Information): Ditto.
8129 (User-provided marking routines for template types): Make
8130 subsection.
8131 * doc/invoke.texi (AArch64 Options): Move before
8132 "Adapteva Epiphany Options".
8133
e664c61c
KS
81342013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8135 Jakub Jelinek <jakub@redhat.com>
8136
8137 PR sanitizer/56454
8138 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8139 no_address_safety_analysis attribute.
8140 * doc/extend.texi (no_address_safety_attribute): Rename to
8141 no_sanitize_address attribute, mention no_address_safety_analysis
8142 attribute as deprecated alias.
8143
37b5ec8f
JJ
81442013-02-28 Jakub Jelinek <jakub@redhat.com>
8145
8146 PR middle-end/56461
8147 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8148 type to vec<vec<tree> > *.
8149 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8150 to be vec<tree> instead of vec<tree> *, set vec_defs
8151 to vNULL and call vec_defs.create (number_of_vects), adjust other
8152 uses of vec_defs.
8153 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8154 vectorizable_condition): Adjust vect_get_slp_defs callers.
8155
ba96cdfb
JG
81562013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8157
8158 * config/aarch64/aarch64.c
8159 (aarch64_float_const_representable): Remove unused variable.
8160
6f549691
JG
81612013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8162
8163 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8164
af55e82d
JG
81652013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8166
8167 * config/aarch64/aarch64-builtins.c
8168 (aarch64_init_simd_builtins): Make static.
8169
1df3f464
JG
81702013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8171
8172 * config/aarch64/aarch64.c
8173 (aarch64_simd_make_constant): Make static.
8174
f8f42513
MJ
81752013-02-28 Martin Jambor <mjambor@suse.cz>
8176
8177 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8178 with no initialization to the RHS of debug statements.
8179
b48b3fc4
MJ
81802013-02-28 Martin Jambor <mjambor@suse.cz>
8181
8182 PR tree-optimization/56294
8183 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8184 Adjust dumping.
8185 (get_access_replacement): Do not call create_access_replacement.
8186 Assert a replacement exists.
8187 (get_repl_default_def_ssa_name): Create the replacement declaration
8188 itself.
8189
c3ae224c
RR
81902013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8191
8192 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8193 final_end_function.
8194
45fa0eef
MP
81952013-02-28 Marek Polacek <polacek@redhat.com>
8196
8197 PR rtl-optimization/56466
8198 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8199 if we're changing a loop.
8200 (peel_loops_completely): Likewise.
8201
502c067d
PC
82022013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8203
8204 PR c++/55813
8205 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8206
ff24afc8
GJL
82072013-02-28 Georg-Johann Lay <avr@gjlay.de>
8208
8209 PR target/56445
8210 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8211 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8212 INTX_FTYPE_FX, FX_FTYPE_INTX.
8213 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8214
c7b1fc1b
GJL
82152013-02-28 Georg-Johann Lay <avr@gjlay.de>
8216
8217 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8218 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8219 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8220 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8221 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8222 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8223 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8224 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8225 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8226 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8227 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8228 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8229 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8230 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8231 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8232 (avrxmega6): Increase max flash segments from 5 to 6.
8233 * config/avr/t-multilib: Regenerate.
8234 * config/avr/avr-tables.opt: Regenerate.
8235 * doc/avr-mmcu.texi: Regenerate.
8236
4a0e3cfe
GJL
82372013-02-28 Georg-Johann Lay <avr@gjlay.de>
8238
8239 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8240 (avr_device_to_arch): Rename to avr_device_to_ld.
8241 (avr_device_to_as): New prototype.
8242 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8243 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8244 * config/avr/driver-avr.c (avr_device_to_as): New.
8245 (avr_device_to_arch): Rename to avr_device_to_ld.
8246
97785e52
JJ
82472013-02-27 Jakub Jelinek <jakub@redhat.com>
8248
3f292312
JJ
8249 PR middle-end/56461
8250 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8251 method on dr_chain and result_chain.
8252
a344216b
JJ
8253 PR middle-end/56461
8254 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8255 pointer_set_destroy on not_executed_last_iteration.
8256
f121ad02 8257 PR middle-end/56461
88b97037 8258 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 8259
307f83a3
JJ
8260 PR middle-end/56461
8261 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8262 FOR_EACH_DEFINED_FUNCTION when freeing state.
8263
e19624ee
JJ
8264 PR middle-end/56461
8265 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8266 pool_free.
8267 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8268 overwriting it.
8269
90e709fd
JJ
8270 PR middle-end/56461
8271 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8272 known_aggs[i].items and release known_aggs vector.
8273
97785e52
JJ
8274 PR middle-end/56461
8275 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8276
82772013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 8278
97785e52
JJ
8279 * config/microblaze/microblaze.c (microblaze_emit_compare):
8280 Use xor for EQ/NE comparisions.
8281 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8282 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 8283
6fa5e0ed
JJ
82842013-02-27 Jakub Jelinek <jakub@redhat.com>
8285
8286 PR middle-end/56461
8287 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8288 vector.
8289 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8290 vec_safe_push, always update *slot.
8291 (redirect_edge_var_map_clear): Use vec_free.
8292 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8293 (free_var_map_entry): Use vec_free.
8294 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8295 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8296
436a956a
AB
82972013-02-27 Andrey Belevantsev <abel@ispras.ru>
8298
8299 PR middle-end/45472
436a956a
AB
8300 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8301 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
8302 Reorder tests for speculativeness in the logical and operator.
8303
f5c2caca
JJ
83042013-02-27 Jakub Jelinek <jakub@redhat.com>
8305
0fcb564b
JJ
8306 * incpath.c (add_standard_paths): Use reconcat instead of concat
8307 where appropriate and avoid leaking memory.
8308
dc357798
JJ
8309 * opts.h: Include obstack.h.
8310 (opts_concat): New prototype.
8311 (opts_obstack): New declaration.
8312 * opts.c (opts_concat): New function.
8313 (opts_obstack): New variable.
8314 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8315 (finish_options): Use opts_concat instead of concat
8316 and XOBNEWVEC instead of XNEWVEC.
8317 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8318 generate_option): Likewise.
8319 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8320 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8321
f5c2caca
JJ
8322 PR target/56455
8323 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8324 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8325
d0163673
JJ
83262013-02-26 Jakub Jelinek <jakub@redhat.com>
8327
8328 PR middle-end/56461
8329 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8330
b5ad2b8e
JR
83312013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8332
8333 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8334 (arm_block_move_unaligned_straight): Likewise.
8335 (arm_adjust_block_mem): Likewise.
8336
9b639e2c
JR
83372013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8338
8339 PR target/48901
8340 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8341 temp, cond and label.
8342 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8343
e13a0ccb
JR
8344 PR target/52500
8345 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8346 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8347
fbe4f171
JR
8348 PR target/52501
8349 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8350 of prologue/epilogue functions.
8351
ae006543
JR
8352 PR target/52550
8353 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8354 Remove unused variable cfa_offset.
8355 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8356
c81369fa
JR
8357 PR target/54639
8358 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8359 type promotion to unsigned.
8360
f8a8fea7
JR
8361 PR target/54640
8362 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8363 for HOST_WIDE_INT of 32 bit / same size as int.
8364 (arm_block_move_unaligned_straight): Likewise.
8365 (arm_adjust_block_mem): Likewise.
8366
f8be5169
JR
8367 PR target/54662
8368 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8369 ALL_CFLAGS.
8370
f1ad3354
MP
83712013-02-26 Marek Polacek <polacek@redhat.com>
8372
8373 PR tree-optimization/56426
88b97037 8374 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 8375
a6af0f42
RB
83762013-02-26 Richard Biener <rguenther@suse.de>
8377
8378 PR target/56444
8379 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8380 unused variable loops.
8381
aca43c6c
JJ
83822013-02-26 Jakub Jelinek <jakub@redhat.com>
8383
cecbe5d9
JJ
8384 PR tree-optimization/56448
8385 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8386 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8387 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8388 later operands of the references, or even first operand for
8389 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8390
aca43c6c
JJ
8391 PR tree-optimization/56443
8392 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8393 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8394 to type_for_mode langhook.
8395
53e2e141
MT
83962013-02-25 Matt Turner <mattst88@gmail.com>
8397
8398 * doc/invoke.texi: Document r4700.
8399
259ee451
RB
84002013-02-25 Richard Biener <rguenther@suse.de>
8401
8402 PR tree-optimization/56175
8403 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8404 split out from ...
8405 (simplify_bitwise_binary): ... here. Also guard the conversion
8406 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8407
6d65e8f1
CM
84082013-02-25 Catherine Moore <clm@codesourcery.com>
8409
8410 Revert:
8411 2013-02-24 Catherine Moore <clm@codesourcery.com>
8412 Maciej W. Rozycki <macro@codesourcery.com>
8413 Tom de Vries <tom@codesourcery.com>
a72d8780 8414 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
8415 Iain Sandoe <iain@codesourcery.com>
8416 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8417 Chao-ying Fu <fu@mips.com>
88b97037 8418
6d65e8f1 8419 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8420 Document new function attributes.
6d65e8f1
CM
8421 * doc/invoke.texi (minterlink-compressed, mmicromips,
8422 m14k, m14ke, m14kec): Document new options.
8423 (minterlink-mips16): Update documentation.
8424 * doc/md.texi (ZC, ZD): Document new constraints.
8425 * configure.ac (gcc_cv_as_micromips): Check if linker
8426 supports the .set micromips directive.
8427 * configure: Regenerate.
8428 * config.in: Regenerate.
8429 * config/mips/mips-tables.opt: Regenerate.
8430 * config/mips/micromips.md: New file.
8431 * constraints.md (ZC, AD): New constraints.
8432 * config/mips/predicates.md (movep_src_register): New predicate.
8433 (movep_src_operand): New predicate.
8434 (non_volatile_mem_operand): New predicate.
8435 * config/mips/mips.md (multimem): New type.
8436 (length): Differentiate between 17-bit and 18-bit branch offsets.
8437 (MOVEP1, MOVEP2): New mode iterator.
8438 (mov_<load>l): Use ZC constraint.
8439 (mov_<load>r): Likewise.
8440 (mov_<store>l): Likewise.
8441 (mov_<store>r): Likewise.
8442 (*branch_equality<mode>_inverted): Add microMIPS support.
8443 (*branch_equality<mode>): Likewise.
8444 (*jump_absolute): Likewise.
8445 (indirect_jump_<mode>): Likewise.
8446 (tablejump_<mode>): Likewise.
8447 (<optab>_internal): Likewise.
8448 (sibcall_internal): Likewise.
8449 (sibcall_value_internal): Likewise.
8450 (prefetch): Use constraint ZD.
8451 * config/mips/mips.opt (minterlink-compressed): New option.
8452 (minterlink-mips16): Now an alias for minterlink-compressed.
8453 (mmicromips): New option.
8454 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8455 (compare_and_swap_12): Likewise.
8456 (sync_add<mode>): Likewise.
8457 (sync_<optab>_12): Likewise.
8458 (sync_old_<optab>_12): Likewise.
8459 (sync_new_<optab>_12): Likewise.
8460 (sync_nand_12): Likewise.
8461 (sync_old_nand_12): Likewise.
8462 (sync_new_nand_12): Likewise.
8463 (sync_sub<mode>): Likewise.
8464 (sync_old_add<mode>): Likewise.
8465 (sync_old_sub<mode>): Likewise.
8466 (sync_new_add<mode>): Likewise.
8467 (sync_new_sub<mode>): Likewise.
8468 (sync_<optab><mode>): Likewise.
8469 (sync_old_<optab><mode>): Likewise.
8470 (sync_new_<optab><mode>): Likewise.
8471 (sync_nand<mode>): Likewise.
8472 (sync_old_nand<mode>): Likewise.
8473 (sync_new_nand<mode>): Likewise.
8474 (sync_lock_test_and_set<mode>): Likewise.
8475 (test_and_set_12): Likewise.
8476 (atomic_compare_and_swap<mode>): Likewise.
8477 (atomic_exchange<mode>_llsc): Likewise.
8478 (atomic_fetch_add<mode>_llsc): Likewise.
8479 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8480 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8481 (umips_save_restore_pattern_p): Likewise.
8482 (umips_load_store_pair_p): Likewise.
8483 (umips_output_load_store_pair): Likewise.
8484 (umips_movep_target_p): Likewise.
8485 (umips_12bit_offset_address_p): Likewise.
8486 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8487 (mips_base_mips16): Rename this...
8488 (mips_base_compression_flags): ...to this. Update all uses.
8489 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8490 (mips_mips16_decl_p): Delete.
8491 (mips_nomips16_decl_p): Delete.
8492 (mips_get_compress_on_flags): New function.
8493 (mips_get_compress_off_flags): New function.
8494 (mips_get_compress_mode): New function.
8495 (mips_get_compress_on_name): New function.
8496 (mips_get_compress_off_name): New function.
8497 (mips_insert_attributes): Support multiple compression types.
8498 (mips_merge_decl_attributes): Likewise.
8499 (umips_12bit_offset_address_p): New function.
8500 (mips_start_function_definition): Emit .set micromips directive.
8501 (mips_call_may_need_jalx_p): New function.
8502 (mips_function_ok_for_sibcall): Add microMIPS support.
8503 (mips_print_operand_punctuation): Support short delay slots and
8504 compact jumps.
8505 (umips_swm_mask, umips_swm_encoding): New.
8506 (umips_build_save_restore): New function.
8507 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8508 (was_mips16_p): Remove.
8509 (old_compression_mode): New.
8510 (mips_set_compression_mode): New function.
8511 (mips_set_current_function): Add microMIPS support.
8512 (mips_option_override): Likewise.
8513 (umips_save_restore_pattern_p): New function.
8514 (umips_output_save_restore): New function.
8515 (umips_load_store_pair_p_1): New function.
8516 (umips_load_store_pair_p): New function.
8517 (umips_output_load_store_pair_1): New function.
8518 (umips_output_load_store_pair): New function.
8519 (umips_movep_target_p) New function.
8520 (mips_prepare_pch_save): Add microMIPS support.
8521 * config/mips/mips.h (TARGET_COMPRESSION): New.
8522 (TARGET_CPU_CPP_BUILTINS): Update macro
8523 to use new compression flags and to support microMIPS.
8524 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8525 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8526 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8527 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8528 (ASM_SPEC): Support mmicromips and mno-micromips.
8529 (M16STORE_REG_P): New macro.
8530 (MIPS_CALL): Support TARGET_MICROMIPS.
8531 (MICROMIPS_J): New macro.
8532 (mips_base_mips16): Rename this...
8533 (mips_base_compression_flags): ...to this.
8534 (UMIPS_12BIT_OFFSET_P): New macro.
8535 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8536 (MULTILIB_DIRNAMES): Likewise.
8537
5e5df392
TV
85382013-02-25 Tom de Vries <tom@codesourcery.com>
8539
8540 PR rtl-optimization/56131
8541 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8542 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8543 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8544
3fdb53c1
TB
85452013-02-25 Tobias Burnus <burnus@net-b.de>
8546
8547 * doc/invoke.texi (-fsanitize=): Move from optimization
8548 to debugging options.
8549
ed358aea
AB
85502013-02-25 Andrey Belevantsev <abel@ispras.ru>
8551
8552 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8553
f45e9053
AB
85542013-02-25 Andrey Belevantsev <abel@ispras.ru>
8555 Alexander Monakov <amonakov@ispras.ru>
8556
8557 PR middle-end/56077
8558 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8559 flush pending lists also on non-jumps. Adjust comment.
8560
6941b508
CM
85612013-02-24 Catherine Moore <clm@codesourcery.com>
8562 Maciej W. Rozycki <macro@codesourcery.com>
8563 Tom de Vries <tom@codesourcery.com>
a72d8780 8564 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
8565 Iain Sandoe <iain@codesourcery.com>
8566 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8567 Chao-ying Fu <fu@mips.com>
6941b508
CM
8568
8569 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8570 Document new function attributes.
6941b508
CM
8571 * doc/invoke.texi (minterlink-compressed, mmicromips,
8572 m14k, m14ke, m14kec): Document new options.
8573 (minterlink-mips16): Update documentation.
8574 * doc/md.texi (ZC, ZD): Document new constraints.
8575 * configure.ac (gcc_cv_as_micromips): Check if linker
8576 supports the .set micromips directive.
8577 * configure: Regenerate.
8578 * config.in: Regenerate.
8579 * config/mips/mips-tables.opt: Regenerate.
8580 * config/mips/micromips.md: New file.
8581 * constraints.md (ZC, AD): New constraints.
8582 * config/mips/predicates.md (movep_src_register): New predicate.
8583 (movep_src_operand): New predicate.
8584 (non_volatile_mem_operand): New predicate.
8585 * config/mips/mips.md (multimem): New type.
8586 (length): Differentiate between 17-bit and 18-bit branch offsets.
8587 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8588 (mov_<load>l): Use ZC constraint.
6941b508
CM
8589 (mov_<load>r): Likewise.
8590 (mov_<store>l): Likewise.
8591 (mov_<store>r): Likewise.
8592 (*branch_equality<mode>_inverted): Add microMIPS support.
8593 (*branch_equality<mode>): Likewise.
8594 (*jump_absolute): Likewise.
8595 (indirect_jump_<mode>): Likewise.
8596 (tablejump_<mode>): Likewise.
8597 (<optab>_internal): Likewise.
8598 (sibcall_internal): Likewise.
8599 (sibcall_value_internal): Likewise.
8600 (prefetch): Use constraint ZD.
8601 * config/mips/mips.opt (minterlink-compressed): New option.
8602 (minterlink-mips16): Now an alias for minterlink-compressed.
8603 (mmicromips): New option.
8604 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8605 (compare_and_swap_12): Likewise.
8606 (sync_add<mode>): Likewise.
8607 (sync_<optab>_12): Likewise.
8608 (sync_old_<optab>_12): Likewise.
8609 (sync_new_<optab>_12): Likewise.
8610 (sync_nand_12): Likewise.
8611 (sync_old_nand_12): Likewise.
8612 (sync_new_nand_12): Likewise.
8613 (sync_sub<mode>): Likewise.
8614 (sync_old_add<mode>): Likewise.
8615 (sync_old_sub<mode>): Likewise.
8616 (sync_new_add<mode>): Likewise.
8617 (sync_new_sub<mode>): Likewise.
8618 (sync_<optab><mode>): Likewise.
8619 (sync_old_<optab><mode>): Likewise.
8620 (sync_new_<optab><mode>): Likewise.
8621 (sync_nand<mode>): Likewise.
8622 (sync_old_nand<mode>): Likewise.
8623 (sync_new_nand<mode>): Likewise.
8624 (sync_lock_test_and_set<mode>): Likewise.
8625 (test_and_set_12): Likewise.
8626 (atomic_compare_and_swap<mode>): Likewise.
8627 (atomic_exchange<mode>_llsc): Likewise.
8628 (atomic_fetch_add<mode>_llsc): Likewise.
8629 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8630 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8631 (umips_save_restore_pattern_p): Likewise.
8632 (umips_load_store_pair_p): Likewise.
8633 (umips_output_load_store_pair): Likewise.
8634 (umips_movep_target_p): Likewise.
8635 (umips_12bit_offset_address_p): Likewise.
8636 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8637 (mips_base_mips16): Rename this...
8638 (mips_base_compression_flags): ...to this. Update all uses.
8639 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8640 (mips_mips16_decl_p): Delete.
8641 (mips_nomips16_decl_p): Delete.
3fdb53c1 8642 (mips_get_compress_on_flags): New function.
6941b508
CM
8643 (mips_get_compress_off_flags): New function.
8644 (mips_get_compress_mode): New function.
8645 (mips_get_compress_on_name): New function.
8646 (mips_get_compress_off_name): New function.
8647 (mips_insert_attributes): Support multiple compression types.
8648 (mips_merge_decl_attributes): Likewise.
8649 (umips_12bit_offset_address_p): New function.
8650 (mips_start_function_definition): Emit .set micromips directive.
8651 (mips_call_may_need_jalx_p): New function.
8652 (mips_function_ok_for_sibcall): Add microMIPS support.
8653 (mips_print_operand_punctuation): Support short delay slots and
8654 compact jumps.
8655 (umips_swm_mask, umips_swm_encoding): New.
8656 (umips_build_save_restore): New function.
8657 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8658 (was_mips16_p): Remove.
8659 (old_compression_mode): New.
8660 (mips_set_compression_mode): New function.
8661 (mips_set_current_function): Add microMIPS support.
8662 (mips_option_override): Likewise.
8663 (umips_save_restore_pattern_p): New function.
8664 (umips_output_save_restore): New function.
8665 (umips_load_store_pair_p_1): New function.
8666 (umips_load_store_pair_p): New function.
8667 (umips_output_load_store_pair_1): New function.
8668 (umips_output_load_store_pair): New function.
8669 (umips_movep_target_p) New function.
8670 (mips_prepare_pch_save): Add microMIPS support.
8671 * config/mips/mips.h (TARGET_COMPRESSION): New.
8672 (TARGET_CPU_CPP_BUILTINS): Update macro
8673 to use new compression flags and to support microMIPS.
8674 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8675 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8676 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8677 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8678 (ASM_SPEC): Support mmicromips and mno-micromips.
8679 (M16STORE_REG_P): New macro.
8680 (MIPS_CALL): Support TARGET_MICROMIPS.
8681 (MICROMIPS_J): New macro.
8682 (mips_base_mips16): Rename this...
8683 (mips_base_compression_flags): ...to this.
8684 (UMIPS_12BIT_OFFSET_P): New macro.
8685 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8686 (MULTILIB_DIRNAMES): Likewise.
8687
cdebbc6d
JJ
86882013-02-24 Jakub Jelinek <jakub@redhat.com>
8689
8690 PR target/52555
8691 * target-globals.c (save_target_globals): For init_reg_sets and
8692 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8693
18c63565
JG
86942013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8695
8696 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8697 * config/aarch64/t-aarch64
8698 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8699
2194f7a2
VM
87002013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8701
8702 PR inline-asm/56148
8703 * lra-constraints.c (process_alt_operands): Reload operand
8704 conflicting with earlier clobber only if no more other conflicting
8705 operands.
8706
7d613735
JJ
87072013-02-22 Jakub Jelinek <jakub@redhat.com>
8708
8709 PR sanitizer/56393
8710 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8711 if not linking a shared library.
8712
ac8d93a7
SL
87132013-02-22 Seth LaForge <sethml@google.com>
8714
8715 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8716
e0237780
GY
87172013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8718
3fdb53c1
TB
8719 * config/arm/arm.md (split for extendsidi): Update condition.
8720 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8721 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8722 (qhs_zextenddi_cstr): Likewise.
e0237780 8723
d7fde18c
JJ
87242013-02-21 Jakub Jelinek <jakub@redhat.com>
8725
be63b77d
JJ
8726 PR middle-end/56420
8727 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8728 avoid signed wrapping.
8729 (expand_mult): Handle properly multiplication by
8730 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8731 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8732 in the compiler if coeff is HOST_WIDE_INT_MIN.
8733 (expand_divmod): Don't make ext_op1 static, change it's type to
8734 uhwi. Avoid undefined behavior in -INTVAL (op1).
8735
d7fde18c
JJ
8736 PR rtl-optimization/50339
8737 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8738 field.
8739 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8740 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8741 into splitting_ashiftrt field.
8742 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8743 ASHIFTRT.
8744 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8745 choices.
8746
6aad4455
AH
87472013-02-20 Aldy Hernandez <aldyh@redhat.com>
8748
8749 PR middle-end/56108
8750 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8751 are sure to go irrevocable.
8752
38fe784d
HPN
87532013-02-21 Hans-Peter Nilsson <hp@axis.com>
8754
8755 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8756 scalars are valid operands.
8757
0fd44da3
MJ
87582013-02-21 Martin Jambor <mjambor@suse.cz>
8759
8760 PR tree-optimization/56310
8761 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8762 only matching indices and non-negative final offsets.
8763 (intersect_aggregates_with_edge): Pass src_idx to
8764 agg_replacements_to_vector. Pass src_idx insstead of index to
8765 intersect_with_agg_replacements.
8766
7a92038b
MJ
87672013-02-21 Martin Jambor <mjambor@suse.cz>
8768
8769 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8770 instead of hard-wired defaults.
8771
c0da9c37
MR
87722013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8773
8774 * doc/invoke.texi (MIPS Options): Update documentation of the
8775 floating-point multiply-accumulate instruction restrictions.
8776
d247ea0c 87772013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
8778
8779 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8780 asan_shadow_offset on x86_64 linux.
8781
22deefcb
RB
87822013-02-21 Richard Biener <rguenther@suse.de>
8783
8784 PR tree-optimization/56415
8785 Revert
8786 2013-02-11 Richard Biener <rguenther@suse.de>
8787
8788 PR tree-optimization/56273
8789 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8790 first VRP run.
8791
7bcc6e75
JJ
87922013-02-21 Jakub Jelinek <jakub@redhat.com>
8793
a0ad148f
JJ
8794 PR bootstrap/56258
8795 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8796 instead of @itemx.
8797
7bcc6e75
JJ
8798 PR inline-asm/56405
8799 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8800 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8801
a0a7b611
JH
88022013-02-20 Jan Hubicka <jh@suse.cz>
8803
8804 PR tree-optimization/56265
88b97037
UB
8805 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8806 when target is referenced for first time.
a0a7b611 8807
c0e50f72
RB
88082013-02-20 Richard Biener <rguenther@suse.de>
8809
8810 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8811 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8812 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8813 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8814 not return anything.
8815 (rename_ssa_copies): Do not remove unused locals.
8816 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 8817 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
8818 * passes.c (execute_function_todo): Do not schedule unused locals
8819 removal if cleanup_tree_cfg did something.
8820 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8821 about the number of removed locals.
8822
a52ca739
RB
88232013-02-20 Richard Biener <rguenther@suse.de>
8824
8825 PR tree-optimization/56398
88b97037 8826 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 8827
ec9c9d1b
MJ
88282013-02-20 Martin Jambor <mjambor@suse.cz>
8829
8830 PR tree-optimization/55334
8831 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8832 restricted pointers to arrays.
8833
e91c8ed6 88342013-02-20 Richard Biener <rguenther@suse.de>
88b97037 8835 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
8836
8837 PR tree-optimization/56396
8838 * tree-ssa-ccp.c (n_const_val): New static variable.
8839 (get_value): Return NULL for SSA names we don't have a lattice
8840 entry for.
8841 (ccp_initialize): Initialize n_const_val.
8842 * tree-ssa-copy.c (n_copy_of): New static variable.
8843 (init_copy_prop): Initialize n_copy_of.
8844 (get_value): Return NULL_TREE for SSA names we don't have a
8845 lattice entry for.
8846
3d916479
MJ
88472013-02-20 Martin Jambor <mjambor@suse.cz>
8848
8849 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8850
71a86758
RB
88512013-02-20 Richard Biener <rguenther@suse.de>
8852
8853 * genpreds.c (write_lookup_constraint): Do not compare first
8854 letter of the constraint again.
8855
79836a12
RB
88562013-02-20 Richard Biener <rguenther@suse.de>
8857
8858 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8859 and ceil_log2.
8860 (get_use_iv_cost): Terminate hashtable walk when coming across
8861 an empty entry.
8862
bbe4fb2c
IZ
88632013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8864
8865 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8866 reassociation for avx2 targets.
8867
a72d8780 88682012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 8869
c77f83d5
EI
8870 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8871 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 8872 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
8873 version and TARGET_PATTERN_COMPARE check
8874 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 8875
a72d8780 88762012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 8877
a72d8780 8878 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
8879 function before branching.
8880
242387fa
AB
88812012-02-19 Andrey Belevantsev <abel@ispras.ru>
8882
8883 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8884 DUMP_INSN_RTX_UID.
8885 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8886
b4979ab9
AB
88872012-02-19 Andrey Belevantsev <abel@ispras.ru>
8888
8889 PR middle-end/55889
b4979ab9
AB
8890 * sel-sched.c: Include ira.h.
8891 (implicit_clobber_conflict_p): New function.
8892 (moveup_expr): Use it.
88b97037 8893 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 8894
24d63016
RB
88952013-02-19 Richard Biener <rguenther@suse.de>
8896
8897 PR tree-optimization/56384
8898 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8899 (vn_hash_type): Split out from ...
8900 (vn_hash_constant_with_type): ... here.
8901 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8902 (vn_phi_eq): Compare types from vn_phi_s structure.
8903 (vn_phi_lookup): Populate vn_phi_s type.
8904 (vn_phi_insert): Likewise.
8905
a475fd3d
JJ
89062013-02-19 Jakub Jelinek <jakub@redhat.com>
8907
47cc28f5
JJ
8908 PR tree-optimization/56350
8909 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8910 if haven't found reduction or nested cycle operand, rather than
8911 asserting we must find it.
8912
a475fd3d
JJ
8913 PR tree-optimization/56381
8914 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8915 to fold_build3.
8916
89172013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8918 Jakub Jelinek <jakub@redhat.com>
8919
8920 PR target/52555
8921 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8922 (swap_optab_enable): Same.
8923 (init_all_optabs): Use argument instead of global.
88b97037 8924 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
8925 * expr.h (init_all_optabs): Add argument to prototype.
8926 (TREE_OPTIMIZATION_OPTABS): New.
8927 (save_optabs_if_changed): Protoize.
8928 * optabs.h: Declare this_fn_optabs.
8929 * optabs.c (save_optabs_if_changed): New.
8930 Declare this_fn_optabs.
8931 (init_optabs): Add argument to init_all_optabs() call.
8932 * function.c (invoke_set_current_function_hook): Handle per
8933 function optabs.
8934 * function.h (struct function): New field optabs.
8935 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8936 optimization_current_node has changed.
8937 * target-globals.h (save_target_globals_default_opts): Protoize.
8938 * target-globals.c (save_target_globals_default_opts): New.
8939
3f587ca3
JDA
89402013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8941
8942 PR target/56347
8943 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8944 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
8945
8946 PR target/56214
8947 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
8948 and HImode, require all displacements to be an integer multiple of
8949 their mode size.
ceaca33e
JDA
8950 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8951 only allow QImode and HImode when reload is in progress and strict is
8952 true. Likewise for symbolic addresses. Use base14_operand to check
8953 displacements in REG+BASE addresses.
8954
fe0b4796
RB
89552013-02-18 Richard Biener <rguenther@suse.de>
8956
8957 PR tree-optimization/56366
8958 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8959 handle sign-conversion of outer-loop initial induction value.
8960
6aaf596b
RB
89612013-02-18 Richard Biener <rguenther@suse.de>
8962
73db8ff1 8963 PR middle-end/56349
6aaf596b
RB
8964 * cfghooks.c (merge_blocks): If we merge a latch into another
8965 block adjust references to it.
8966 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8967 (verify_loop_structure): Verify that a recorded latch is in fact
8968 a latch.
8969
5e97dfb6
RB
89702013-02-18 Richard Biener <rguenther@suse.de>
8971
8972 PR tree-optimization/56321
8973 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8974 order SSA name release and virtual operand unlinking.
8975
825527e8
EI
89762013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8977
8978 * config/microblaze/microblaze.md (save_stack_block): Define.
8979 (restore_stack_block): Likewise.
8980
debd11d9
EI
89812013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8982
8983 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8984 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8985 * config/microblaze/microblaze.c (microblaze_option_override):
8986 Bail out early for PIC modes when target does not support PIC.
8987
8ec77be0
EI
89882013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8989
88b97037 8990 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
8991 Replace with a microblaze version.
8992 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 8993 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
8994 microblaze.
8995
b41288b3
JJ
89962013-02-16 Jakub Jelinek <jakub@redhat.com>
8997 Dodji Seketeli <dodji@redhat.com>
8998
8999 PR asan/56330
88b97037 9000 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
9001 (instrument_mem_region_access): Do not forget to always put
9002 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9003 0) statement, even for cases where either 'base' or 'base + len'
9004 are not instrumented -- because they have been previously
9005 instrumented. Simplify the logic by putting all the statements
9006 instrument 'base + len' inside a sequence, and then insert that
9007 sequence right before the current insertion point. Then, to
9008 instrument 'base + len', just get an iterator on that statement.
9009 And do not forget to update the pointer to iterator the function
9010 received as argument.
9011
47918951
VM
90122013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9013
9014 PR rtl-optimization/56348
9015 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9016
3fb7c699
SB
90172013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9018
9019 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9020 (clean_graph_dump_file): Pass base to start_graph_dump.
9021
576fe41a
RH
90222013-02-14 Richard Henderson <rth@redhat.com>
9023
9024 PR target/55941
9025 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9026
bb3accfa
SB
90272013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9028
9029 * collect2-aix.h: Define F_LOADONLY.
9030
03143140
RB
90312013-02-14 Richard Biener <rguenther@suse.de>
9032
9033 PR lto/50494
9034 * varasm.c (output_constant_def_1): Get the decl representing
9035 the constant as argument.
9036 (output_constant_def): Wrap output_constant_def_1.
9037 (make_decl_rtl): Use output_constant_def_1 with the decl
9038 representing the constant.
9039 (build_constant_desc): Optionally re-use a decl already
9040 representing the constant.
9041 (tree_output_constant_def): Adjust.
9042
8fb06726
DS
90432013-02-14 Dodji Seketeli <dodji@redhat.com>
9044
9045 Fix an asan crash
9046 * asan.c (instrument_builtin_call): Really put the length of the
9047 second source argument into src1_len.
9048
c4bfe8bf
JJ
90492013-02-13 Jakub Jelinek <jakub@redhat.com>
9050
9051 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9052 argument. If it is false, don't create edge from then_bb to
9053 fallthru_bb.
9054 (insert_if_then_before_iter): Pass true to it.
9055 (build_check_stmt): Pass false to it.
9056 (transform_statements): Flush hash table only on extended basic
9057 block boundaries, rather than at the beginning of every bb.
9058 Don't flush hash table on nonfreeing_call_p calls.
9059 * tree-flow.h (nonfreeing_call_p): New prototype.
9060 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9061
7afe2801
DM
90622013-02-13 David S. Miller <davem@davemloft.net>
9063
9064 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9065
70cc3288
VM
90662013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9067
9068 PR target/56184
9069 * ira.c (max_regno_before_ira): Move from ...
9070 (ira): ... here.
9071 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9072 vec_safe_length.
9073
6422242b
JJ
90742013-02-13 Jakub Jelinek <jakub@redhat.com>
9075
9076 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9077
976a81ee
RB
90782013-02-13 Richard Biener <rguenther@suse.de>
9079
9080 PR lto/56295
9081 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9082 globals in MEM_REFs.
9083
c1874a87
RB
90842013-02-13 Richard Biener <rguenther@suse.de>
9085
9086 * loop-init.c (loop_optimizer_init): Clear loop state when
9087 re-initializing preserved loops.
9088 * loop-unswitch.c (unswitch_single_loop): Return whether
9089 we unswitched the loop. Do not verify loop state here.
88b97037 9090 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 9091
b4ab7d34
KS
90922013-02-13 Kostya Serebryany <kcc@google.com>
9093
88b97037
UB
9094 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9095 on x86_64 linux.
b4ab7d34
KS
9096 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9097
bdcbe80c
DS
90982013-02-12 Dodji Seketeli <dodji@redhat.com>
9099
9100 Avoid instrumenting duplicated memory access in the same basic block
9101 * Makefile.in (asan.o): Add new dependency on hash-table.h
9102 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9103 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9104 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9105 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9106 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9107 (get_mem_ref_of_assignment): New functions.
9108 (get_mem_refs_of_builtin_call): Extract from
9109 instrument_builtin_call and tweak a little bit to make it fit with
9110 the new signature.
9111 (instrument_builtin_call): Use the new
9112 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9113 of is_gimple_builtin_call.
9114 (instrument_derefs, instrument_mem_region_access): Insert the
9115 instrumented memory reference into the hash table.
9116 (maybe_instrument_assignment): Renamed instrument_assignment into
9117 this, and change it to advance the iterator when instrumentation
9118 actually happened and return true in that case. This makes it
9119 homogeneous with maybe_instrument_assignment, and thus give a
9120 chance to callers to be more 'regular'.
9121 (transform_statements): Clear the memory reference hash table
9122 whenever we enter a new BB, when we cross a function call, or when
9123 we are done transforming statements. Use
9124 maybe_instrument_assignment instead of instrumentation. No more
9125 need to special case maybe_instrument_assignment and advance the
9126 iterator after calling it; it's now handled just like
9127 maybe_instrument_call. Update comment.
9128
4861a1f7
RB
91292013-02-13 Richard Biener <rguenther@suse.de>
9130
9131 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9132 Fix loop discovery code.
9133
1c86bd80
VM
91342013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9135
9136 PR inline-asm/56148
9137 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 9138 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
9139 the operand is not reloaded. Prefer to reload conflicting operand
9140 if earlyclobber and matching operands are the same.
9141
7cbda518
RB
91422013-02-12 Richard Biener <rguenther@suse.de>
9143
9144 PR lto/56297
9145 * lto-streamer-out.c (write_symbol): Do not output symbols
9146 for hard register variables.
9147
e68a4ef6
GJL
91482013-02-12 Georg-Johann Lay <avr@gjlay.de>
9149
9150 PR target/54222
9151 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9152 (umulsidi3_insn, mulsidi3_insn): New insns.
9153
a72d8780 91542013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
9155
9156 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9157 (struct tune_params): Add vec_costs field.
9158 * config/arm/arm.c (arm_builtin_vectorization_cost)
9159 (arm_add_stmt_cost): New functions.
9160 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9161 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9162 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9163 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9164 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9165 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9166 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9167
43320568
RB
91682013-02-12 Richard Biener <rguenther@suse.de>
9169
9170 PR lto/56295
9171 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9172 decls again if possible.
9173
a011aa39
RB
91742013-02-12 Richard Biener <rguenther@suse.de>
9175
9176 PR middle-end/56288
9177 * tree-ssa.c (verify_ssa_name): Fix check, move
9178 SSA_NAME_IN_FREE_LIST check up.
9179
6da26889
JJ
91802013-02-12 Jakub Jelinek <jakub@redhat.com>
9181 Steven Bosscher <steven@gcc.gnu.org>
9182
9183 PR rtl-optimization/56151
9184 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9185 equal to op0 or op1, and last_insn pattern is CODE operation
9186 with MEM dest and one of the operands matches that MEM.
9187
f80e0faf
ST
91882013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9189
9190 * doc/extend.texi: Document Function Multiversioning and "default"
9191 parameter string to target attribute.
9192 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9193 target attribute parameter is "default".
9194 (ix86_compare_version_priority): Remove checks for target attribute.
9195 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9196 Remove check for target attribute equal to NULL. Add assert.
9197 (ix86_generate_version_dispatcher_body): Change error to sorry.
9198
6c59ffd1
IS
91992013-02-11 Iain Sandoe <iain@codesourcery.com>
9200 Jack Howarth <howarth@bromo.med.uc.edu>
9201 Patrick Marlier <patrick.marlier@gmail.com>
9202
9203 PR libitm/55693
9204 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9205 define ENDFILE_SPEC as TM_DESTRUCTOR.
9206 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9207
a72d8780 92082013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
9209 Jack Howarth <howarth@bromo.med.uc.edu>
9210 Jakub Jelinek <jakub@redhat.com>
9211
9212 PR sanitizer/55617
9213 * config/darwin.c (cdtor_record): Rename ctor_record.
9214 (sort_cdtor_records): Rename sort_ctor_records.
9215 (finalize_dtors): New routine to sort destructors by
9216 priority before use in assemble_integer.
9217 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9218
b63fe007
UB
92192013-02-11 Uros Bizjak <ubizjak@gmail.com>
9220
9221 PR rtl-optimization/56275
9222 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9223 offset is non-negative and less than cmode size before
9224 calling simplify_subreg.
9225
8e89b5b5
RB
92262013-02-11 Richard Biener <rguenther@suse.de>
9227
9228 PR tree-optimization/56264
9229 * cfgloop.h (fix_loop_structure): Adjust prototype.
9230 * loop-init.c (fix_loop_structure): Return the number of
9231 newly discovered loops.
9232 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9233 are discovered, do a full loop-closed SSA rewrite.
9234
b4a4b56d
RB
92352013-02-11 Richard Biener <rguenther@suse.de>
9236
9237 PR tree-optimization/56273
9238 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9239 first VRP run.
9240 (check_array_ref): Fix missing newline in dumps.
9241 (search_for_addr_array): Likewise.
9242
0c885229
DE
92432013-02-09 David Edelsohn <dje.gcc@gmail.com>
9244
9245 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9246
59ac9a55
JJ
92472013-02-09 Jakub Jelinek <jakub@redhat.com>
9248
9249 PR target/56256
9250 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9251
25bb0bb5
VM
92522013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9253
9254 PR rtl-optimization/56246
0c885229 9255 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
9256 reload pseudo.
9257 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9258 constraints are satisfied.
9259
a698cc03
JL
92602013-02-08 Jeff Law <law@redhat.com>
9261
9262 PR debug/53948
9263 * emit-rtl.c (reg_is_parm_p): New function.
9264 * regs.h (reg_is_parm_p): New prototype.
9265 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9266 callee-clobbered registers.
9267
e1122ddd
MM
92682013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9269
9270 PR target/56043
9271 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9272 If there is no implicit builtin declaration, just return NULL.
9273
19c5f6e6
UB
92742013-02-08 Uros Bizjak <ubizjak@gmail.com>
9275
9276 * config/i386/sse.md (FMAMODEM): New mode iterator.
9277 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9278 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9279
2480f2ca 92802013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 9281
2480f2ca
UB
9282 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9283 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9284 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9285
92862013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9287
9288 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9289 (microblaze*-*-elf): Likewise.
9290 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9291 LINK_SPEC.
9292 * config/microblaze/microblaze-c.c: Add builtin defines for
9293 _LITTLE_ENDIAN and _BIG_ENDIAN.
9294 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9295 add to TARGET_DEFAULT flags.
76ef61fb 9296 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
9297 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9298 * config/microblaze/microblaze.md: Update extendsidi2 and
9299 movdi_internal instructions to use low-order / high-order reg
9300 print_operands.
9301 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9302 options and inversemask / mask of LITTLE_ENDIAN.
9303 * config/microblaze/t-microblaze: Expand multilib options to
9304 include mlittle-endian (le) and update exceptions patterns.
9305
600a5961
JJ
93062013-02-08 Jakub Jelinek <jakub@redhat.com>
9307
5df81313
JJ
9308 PR rtl-optimization/56195
9309 * lra-constraints.c (get_reload_reg): Don't reuse regs
9310 if they have smaller mode than requested, if they have
9311 wider mode than requested, try to return a SUBREG.
9312
600a5961
JJ
9313 PR tree-optimization/56250
9314 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9315 if type is unsigned and code isn't MULT_EXPR.
9316
ff544649
GJL
93172013-02-08 Georg-Johann Lay <avr@gjlay.de>
9318
9319 PR tree-optimization/56064
9320 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9321 bits according to mode.
9322 * fixed-value.h (fixed_from_double_int)
9323 (const_fixed_from_double_int): Adjust comments.
9324
e45cde98
RB
93252013-02-08 Richard Biener <rguenther@suse.de>
9326
9327 PR lto/56231
9328 * lto-streamer.h (struct data_in): Remove current_file, current_line
9329 and current_col members.
9330 * lto-streamer-out.c (lto_output_location): Stream changed bits
9331 en-block for efficiency.
9332 * lto-streamer-in.c (clear_line_info): Remove.
9333 (lto_input_location): Cache current file, line and column
9334 globally via local statics. Read changed bits en-block.
9335 (input_function): Do not call clear_line_info.
9336 (lto_read_body): Likewise.
9337 (lto_input_toplevel_asms): Likewise.
9338
c1ca73d8
MM
93392013-02-08 Michael Matz <matz@suse.de>
9340
9341 PR tree-optimization/52448
9342 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9343 (nt_call_phase): New static.
9344 (add_or_mark_expr): Only mark accesses with newer phase than any
9345 call seen.
9346 (nonfreeing_call_p): New.
9347 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9348 (nt_fini_block): Keep blocks marked as visited.
9349 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9350
57548aa2
RB
93512013-02-08 Richard Biener <rguenther@suse.de>
9352
9353 * ira.c (ira): Free broken dominator information.
9354
8e10366f
UB
93552013-02-08 Uros Bizjak <ubizjak@gmail.com>
9356
9357 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9358
f64fb0fa
MP
93592013-02-08 Marek Polacek <polacek@redhat.com>
9360
8e10366f 9361 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 9362
0375167b
RB
93632013-02-08 Richard Biener <rguenther@suse.de>
9364
9365 PR middle-end/56181
9366 * cfgloop.h (flow_loops_find): Adjust.
9367 (bb_loop_header_p): Declare.
9368 * cfgloop.c (bb_loop_header_p): New function split out from ...
9369 (flow_loops_find): ... here. Adjust function signature,
9370 support incremental loop structure update.
9371 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9372 * cfgloopmanip.c (fix_loop_structure): Move ...
9373 * loop-init.c (fix_loop_structure): ... here.
9374 (apply_loop_flags): Split out from ...
9375 (loop_optimizer_init): ... here.
9376 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9377 in incremental mode, only remove dead loops here.
9378
85d768f3
GJL
93792013-02-08 Georg-Johann Lay <avr@gjlay.de>
9380
9381 PR target/54222
9382 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9383 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9384 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9385 (*round<mode>3.libgcc): New insns for fixed-modes.
9386 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9387 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9388 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9389 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9390 implementations. Define to __builtin_avr_absFX,
9391 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9392 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9393 __builtin_avr_countlsFX, respectively.
9394 * config/avr/avr-c.c (target.h): Include it.
9395 (enum avr_builtin_id): New enum.
9396 (avr_resolve_overloaded_builtin): New static function.
9397 (avr_register_target_pragmas): Use it to set
9398 targetm.resolve_overloaded_builtin.
9399 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9400 tree nodes used by DEF_BUILTIN.
9401 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9402 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9403 <AVR_BUILTIN_xxBITS>: Same.
9404
661bc682
RB
94052013-02-08 Richard Biener <rguenther@suse.de>
9406
9407 * cfgloop.c (verify_loop_structure): Properly handle
9408 a loop exiting to another loop header.
9409 * ira-int.h (ira_loops): Remove.
9410 * ira.c (ira_loops): Remove.
9411 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9412 (do_reload): Use loop_optimizer_finalize.
9413 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9414 number_of_loops to access the loop tree.
9415 (more_one_region_p): Likewise.
9416 (finish_loop_tree_nodes): Likewise.
9417 (rebuild_regno_allocno_maps): Likewise.
9418 (mark_loops_for_removal): Likewise.
9419 (mark_all_loops_for_removal): Likewise.
9420 (remove_unnecessary_regions): Likewise.
9421 (ira_build): Likewise.
9422 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9423
0d5049b2
RB
94242013-02-08 Richard Biener <rguenther@suse.de>
9425
9426 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9427 * ipa-pure-const.c (analyze_function): Avoid calling
9428 mark_irreducible_loops twice.
8e10366f 9429 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 9430
499f32e8
DM
94312013-02-07 David S. Miller <davem@davemloft.net>
9432
9433 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9434 on 'reg'.
9435 * var-tracking.c (vt_add_function_parameter): Test the presence of
9436 HAVE_window_save properly and do not remap argument registers when
9437 we have a leaf function.
9438
6edc3e32
UB
94392013-02-07 Uros Bizjak <ubizjak@gmail.com>
9440
9441 PR bootstrap/56227
9442 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9443 instead of "ll".
9444 * config/i386/i386.c (ix86_print_operand): Ditto.
9445
5306401f
VM
94462013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9447
6edc3e32 9448 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 9449
027ece11
VM
94502013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9451
9452 PR rtl-optimization/56225
9453 * lra-constraints.c (process_alt_operands): Check that reload hard
9454 reg can hold value for strict_low_part.
9455
f980dfdb
JJ
94562013-02-07 Jakub Jelinek <jakub@redhat.com>
9457
9458 PR debug/56154
9459 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9460 dwarf2out_end_function.
9461 (in_first_function_p, maybe_at_text_label_p,
9462 first_loclabel_num_not_at_text_label): New variables.
9463 (dwarf2out_var_location): In the first function find out
6edc3e32 9464 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
9465 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9466 functions.
9467
73dd3123
EB
94682013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9469
9470 PR rtl-optimization/56178
9471 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9472 SUBREG of a register. Tidy up related block of code.
9473 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9474 note if the source is a register or a SUBREG of a register.
9475
e3936f47
JJ
94762013-02-07 Jakub Jelinek <jakub@redhat.com>
9477
9478 PR target/56228
9479 * config/rs6000/rs6000.md (ptrm): New mode attr.
9480 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9481 call_value_indirect_aix<pttrsize>,
9482 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9483 m in constraints.
9484
d96d674b
MH
94852013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9486
9487 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9488 if -bnortl. Convert to strcmp and strncmp.
9489
921f2dee
AM
94902013-02-07 Alan Modra <amodra@gmail.com>
9491
9492 PR target/54009
9493 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9494 addresses won't wrap when offsetting.
9495 (rs6000_secondary_reload): Provide secondary reloads needed for
9496 wrapping LO_SUM addresses.
9497
d09c7dba
TS
94982013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9499
9500 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9501 MACH, just __MACH__.
9502
a44bbd48
RB
95032013-02-06 Richard Biener <rguenther@suse.de>
9504
9505 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9506 instead of calling fix_loop_structure.
9507
6d840d99
JJ
95082013-02-06 Jakub Jelinek <jakub@redhat.com>
9509
9510 PR middle-end/56217
9511 * omp-low.c (use_pointer_for_field): Return false if
9512 lower_send_shared_vars doesn't generate any copy-out code.
9513
0f33baa9
TV
95142013-02-06 Tom de Vries <tom@codesourcery.com>
9515
9516 PR rtl-optimization/56131
9517 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9518 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9519 of the label is NULL. Add comment.
9520
11f1e3ab
JJ
95212013-02-05 Jakub Jelinek <jakub@redhat.com>
9522
31502f9f
JJ
9523 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9524
a74db9bd
JJ
9525 PR sanitizer/55374
9526 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9527 (STATIC_LIBTSAN_LIBS): Likewise.
9528 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9529 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9530 is defined, don't add anything else beyond that.
9531 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9532 (LINK_COMMAND_SPEC): Use them.
9533
11f1e3ab
JJ
9534 PR tree-optimization/56205
9535 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9536 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9537 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9538
14ac6aa2
RB
95392013-02-05 Richard Biener <rguenther@suse.de>
9540
9541 PR tree-optimization/53342
9542 PR tree-optimization/53185
9543 * tree-vectorizer.h (vect_check_strided_load): Remove.
9544 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9545 not disallow peeling for vectorized strided loads.
9546 (vect_check_strided_load): Make static and simplify.
9547 (vect_analyze_data_refs): Adjust.
9548 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9549 correctly when vectorizing strided loads.
9550
6f22445a
RB
95512013-02-05 Richard Biener <rguenther@suse.de>
9552
9553 * doc/install.texi: Refer to ISL, not PPL.
9554
39f9719e
JH
95552013-02-05 Jan Hubicka <jh@suse.cz>
9556
ec4224ac
JH
9557 PR tree-optimization/55789
9558 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9559
95602013-02-05 Jan Hubicka <jh@suse.cz>
9561
9562 PR tree-optimization/55789
39f9719e
JH
9563 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9564 the dead call anyway.
9565
956d3b33
EB
95662013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9567
9568 PR sanitizer/55374
9569 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9570
95712013-02-04 Alexander Potapenko <glider@google.com>
9572 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9573 Jakub Jelinek <jakub@redhat.com>
9574
9575 PR sanitizer/55617
9576 * config/darwin.c (sort_ctor_records): Stabilized qsort
9577 on constructor priority by using original position.
9578 (finalize_ctors): New routine to sort constructors by
9579 priority before use in assemble_integer.
9580 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9581
7ac3af38
JJ
95822013-02-04 Jakub Jelinek <jakub@redhat.com>
9583
9584 PR libstdc++/54314
9585 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9586 about visibility on artificial decls.
9587 * config/sol2.c (solaris_assemble_visibility): Likewise.
9588
152689dc
KT
95892013-02-04 Kai Tietz <ktietz@redhat.com>
9590
9591 PR target/56186
9592 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9593 argument and improve checking of return-argument types for 16-byte
9594 modes.
9595 (ix86_function_value_1): Add additional valtype argument on call
9596 of function_value_64.
9597 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9598 handling infunction_value_64 function.
9599
2b5987b5
MGD
96002013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9601
7ac3af38 9602 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9603
14597080
RB
96042013-02-04 Richard Biener <rguenther@suse.de>
9605
9606 PR tree-optimization/56188
9607 * tree-ssa-structalias.c (label_visit): Consider case with
9608 initially non-empty points-to set.
9609 (perform_var_substitution): Dump node mapping and clean up.
9610
ed73881e
RG
96112013-02-04 Richard Guenther <rguenther@suse.de>
9612
9613 PR lto/56168
9614 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9615 node prevail as last resort.
9616 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9617 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9618
139a0707
RB
96192013-02-04 Richard Biener <rguenther@suse.de>
9620
9621 PR tree-optimization/56113
9622 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9623 Merge into ...
9624 (equiv_class_lookup_or_add): ... this.
9625 (label_visit): Adjust and fix error in previous patch.
9626 (perform_var_substitution): Adjust.
9627
50fe8924
OE
96282013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9629
9630 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9631 * config/sh/sh4-300.md: Likewise.
9632 * config/sh/sh4a.md: Likewise.
9633 * config/sh/constraints.md: Likewise.
9634 * config/sh/sh.md: Likewise.
9635 * config/sh/netbsd-elf.h: Likewise.
9636 * config/sh/predicates.md: Likewise.
9637 * config/sh/sh-protos.h: Likewise.
9638 * config/sh/ushmedia.h: Likewise.
9639 * config/sh/linux.h: Likewise.
9640 * config/sh/sh.c: Likewise.
9641 * config/sh/superh.h: Likewise.
9642 * config/sh/elf.h: Likewise.
9643 * config/sh/sh4.md: Likewise.
9644 * config/sh/sh.h: Likewise.
9645
1a04ac2b
JDA
96462013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9647
9648 * config/pa/constraints.md: Adjust unused letters. Change "T"
9649 constraint to match_test floating_point_store_memory_operand().
9650 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9651 (base14_operand): New.
9652 (floating_point_store_memory_operand): New.
9653 (integer_store_memory_operand): Revise to use base14_operand and
9654 reg_plus_base_memory_operand.
9655 (move_dest_operand): Allow symbolic_memory_operands.
9656 (symbolic_memory_operand): Check for LO_SOM.
9657 (symbolic_operand): Change default case to break.
9658 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9659 CONST_DOUBLE values to be reloaded by putting them into memory when
9660 the destination is a floating point register.
9661 (movdf): Remove code to handle CONST_DOUBLE.
9662 (movsf): Likewise.
9663 (reload_indf_r1): New.
9664 (reload_insf_r1): New.
9665 Consistently use "Q" and "T" constraints with integer and floating
9666 point move instructions, respectively.
9667 (movdi): Remove FAIL.
9668 Change predicate for source operand unamed DImode move from
9669 general_operand to move_src_operand.
9670 (umulsidi3): Change predicate for destination operand to
9671 register_operand.
9672 Likewise for similar unamed patterns.
9673 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9674 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9675 (hppa_legitimize_address): Simplify mask calculation.
9676 (pa_emit_move_sequence): Revised handling of secondary reloads from
9677 REG+D addresses for floating point loads and stores. Directly handle
9678 loading CONST0_RTX (mode) to a floating point register.
9679 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9680 to floating point registers. Don't restrict secondary reloads to
9681 floating point registers to integer modes. Revise some comments and
9682 cleanup some code.
9683 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9684 (pa_legitimate_address_p): New.
9685 (pa_legitimize_reload_address): New.
9686 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9687 (STRICT_REG_OK_FOR_BASE_P): New.
9688 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9689 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9690
3bf65591
DE
96912013-02-03 David Edelsohn <dje.gcc@gmail.com>
9692 Andrew Dixie <andrewd@gentrack.com>
9693
9694 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9695 flag set.
9696
c0a8a3e6
RS
96972013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9698
9699 * expmed.c (extract_bit_field_1): Pass the full width of the
9700 structure to get_best_reg_extraction_insn.
9701
99113dff
DE
97022013-02-01 David Edelsohn <dje.gcc@gmail.com>
9703
9704 PR target/54601
9705 * configure.ac (use_cxa_atexit): Add AIX.
9706 * configure: Regenerate.
9707
9708 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9709
ddd84654
JJ
97102013-02-01 Jakub Jelinek <jakub@redhat.com>
9711
9712 PR debug/54793
9713 * final.c (need_profile_function): New variable.
9714 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9715 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9716 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9717 notes, targetm.asm_out.function_prologue doesn't emit anything,
9718 HAVE_prologue and profiler should be emitted before prologue,
9719 set need_profile_function instead of emitting it.
9720 (final_scan_insn): If need_profile_function, emit
9721 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9722 NOTE_INSN_FUNCTION_BEG note.
9723
97242013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9725
9726 * config/rs6000/rs6000.md (smulditi3): New.
9727 (umulditi3): New.
9728
ff2a9d88
RH
9729 * config/alpha/alpha.md (umulditi3): New.
9730
14d52b90
DE
97312013-02-01 David Edelsohn <dje.gcc@gmail.com>
9732
9733 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9734 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9735
8c7ca45c
RB
97362013-02-01 Richard Biener <rguenther@suse.de>
9737
9738 PR tree-optimization/56113
9739 * tree-ssa-structalias.c (label_visit): Reduce work for
9740 single-predecessor nodes.
9741
9f419393
EB
97422013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9743
9744 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9745 range isn't testing for zero.
9746
c5f4be84
SB
97472013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9748
9749 PR middle-end/56113
9750 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9751
dbdbd982
NC
97522013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9753 Nick Clifton <nickc@redhat.com>
9754
9755 * config/v850/constraints.md (Q): Define as a memory constraint.
9756 * config/v850/predicates.md (label_ref_operand): New predicate.
9757 (e3v5_shift_operand): New predicate.
9758 (ior_operator): New predicate.
9759 * config/v850/t-v850: Add e3v5 multilib.
9760 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9761 (v850_gen_movdi): Prototype.
9762 * config/v850/v850.c: Add support for e3v5 architecture.
9763 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9764 TARGET_V850E_UP.
9765 (construct_save_jarl): Add e3v5 long JARL support.
9766 (v850_adjust_insn_length): New function. Adjust length of call
9767 insns when using e3v5 instructions.
9768 (v850_gen_movdi): New function: Generate instructions to move a
9769 DImode value.
9770 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9771 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9772 (TARGET_USE_FPU): Enable for e3v5.
9773 (CONST_OK_FOR_W): New macro.
9774 (ADJUST_INSN_LENGTH): Define.
9775 * config/v850/v850.md (UNSPEC_LOOP): Define.
9776 (attr cpu): Add v850e3v5.
9777 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9778 (movdi): New pattern.
9779 (movdi_internal): New pattern.
9780 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9781 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9782 (cstoresf4): Likewise.
9783 (cstoredf4): Likewise.
9784 (insv): New pattern.
9785 (rotlso3_a): New pattern.
9786 (rotlsi3_b): New pattern
9787 (rotlsi3_v850e3v5): New pattern.
9788 (doloop_begin): New pattern.
9789 (fix_loop_counter): New pattern.
9790 (doloop_end): New pattern.
9791 (branch_normal): Add e3v5 long branch support.
9792 (branch_invert): Likewise.
9793 (branch_z_normal): Likewise.
9794 (branch_z_invert): Likewise.
9795 (branch_nz_normal): Likewise.
9796 (branch_nz_invert): Likewise.
9797 (call_internal_short): Add e3v5 register-indirect JARL support.
9798 (call_internal_long): Likewise.
9799 (call_value_internal_short): Likewise.
9800 (call_value_internal_long): Likewise.
9801 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9802 (mloop): New option.
9803 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 9804 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 9805
73861a41
PK
98062013-01-31 Paul Koning <ni1d@arrl.net>
9807
9808 PR debug/55059
9809 PR debug/54508
9810 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9811 children if parent is a class.
9812 (prune_unused_types_prune): Don't add DW_AT_declaration.
9813
e44978dc
RB
98142013-01-31 Richard Biener <rguenther@suse.de>
9815
9816 PR tree-optimization/56157
9817 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9818 match up operand with SLP child.
9819
90b10dec
JM
98202013-01-31 Jason Merrill <jason@redhat.com>
9821
04d2dadd 9822 PR debug/54410
90b10dec
JM
9823 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9824 parameters the first time.
9825 (gen_scheduled_generic_parms_dies): Check completeness here.
9826
6e616110
RB
98272013-01-31 Richard Biener <rguenther@suse.de>
9828
9829 PR middle-end/53073
9830 * common.opt (faggressive-loop-optimizations): New flag,
9831 enabled by default.
9832 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9833 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9834 infer_loop_bounds_from_undefined by it.
9835
636f59cf
RB
98362013-01-31 Richard Biener <rguenther@suse.de>
9837
9838 PR tree-optimization/56150
9839 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9840 visit virtual operands.
9841 (find_uses_to_rename_bb): Likewise.
9842
98432013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
9844
9845 PR tree-optimization/56150
9846 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9847 mixed store non-store stmts.
9848
32887460
JJ
98492013-01-30 Jakub Jelinek <jakub@redhat.com>
9850
e60e09a0
JJ
9851 PR sanitizer/55374
9852 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9853 LIBASAN_EARLY_SPEC is defined.
9854 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9855 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9856 before %o.
9857 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9858
32887460
JJ
9859 PR c++/55742
9860 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9861 invalid args instead of ICEing on it.
9862 (ix86_valid_target_attribute_tree): Return error_mark_node if
9863 ix86_valid_target_attribute_inner_p failed.
9864 (ix86_valid_target_attribute_p): Return false only if
9865 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9866 target("default") attribute.
9867 (sorted_attr_string): Change argument from const char * to tree,
9868 merge in all target attribute arguments rather than just one.
9869 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9870 instead of free. Avoid using strcat.
9871 (ix86_mangle_function_version_assembler_name): Mangle
9872 target("default") as if no target attribute is present. Adjust
9873 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9874 instead of xmalloc and XDELETEVEC instead of free.
9875 (ix86_function_versions): Don't return true if one of the decls
9876 doesn't have target attribute. If they don't and one of the decls
9877 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9878 sorted_attr_string caller. Use XDELETEVEC instead of free.
9879 (ix86_supports_function_versions): Remove.
9880 (make_name): Fix up formatting.
9881 (make_dispatcher_decl): Remove resolver_name and its initialization.
9882 Avoid leaking memory.
9883 (is_function_default_version): Return true if there is
9884 target("default") attribute rather than no target attribute at all.
9885 (make_resolver_func): Avoid leaking memory.
9886 (ix86_generate_version_dispatcher_body): Likewise.
9887 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9888 * target.def (supports_function_versions): Remove.
9889 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9890 * doc/tm.texi: Regenerated.
9891
73cca0cc
VM
98922013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9893
9894 PR rtl-optimization/56144
9895 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9896 for values with side effects.
9897
11452e7b
RB
98982013-01-30 Richard Biener <rguenther@suse.de>
9899
9900 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9901 (sparseset_pop): Likewise.
9902 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9903 to be able to use quick_push in the worker loop.
9904
01cb1ef5
MP
99052013-01-30 Marek Polacek <polacek@redhat.com>
9906
9907 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9908
e892936e
RB
99092013-01-30 Richard Biener <rguenther@suse.de>
9910
9911 PR lto/56147
6edc3e32 9912 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 9913
cc06c01d
GJL
99142013-01-30 Georg-Johann Lay <avr@gjlay.de>
9915
9916 PR tree-optimization/56064
9917 * fixed-value.c (fixed_from_double_int): New function.
9918 * fixed-value.h (fixed_from_double_int): New prototype.
9919 (const_fixed_from_double_int): New static inline function.
9920 * fold-const.c (native_interpret_fixed): New static function.
9921 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9922 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9923 (native_encode_fixed): New static function.
9924 (native_encode_expr) <FIXED_CST>: Use it.
9925 (native_interpret_int): Move double_int worker code to...
9926 * double-int.c (double_int::from_buffer): ...this new static method.
9927 * double-int.h (double_int::from_buffer): Prototype it.
9928
d394a308
RB
99292013-01-30 Richard Biener <rguenther@suse.de>
9930
9931 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9932 New pointer-map and obstack.
9933 (init_alias_vars): Allocate pointer-map and obstack.
9934 (delete_points_to_sets): Free them.
9935 (find_what_var_points_to): Cache result.
9936 (find_what_p_points_to): Adjust for changed interface of
9937 find_what_var_points_to.
9938 (compute_points_to_sets): Likewise.
9939 (ipa_pta_execute): Likewise.
9940
20804d96
RO
99412013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9942
9943 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9944 * configure: Regenerate.
9945 * config.in: Regenerate.
9946 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9947 #nobits/#progbits if supported.
9948
a7ad88a2
OE
99492013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9950
9951 PR target/56121
9952 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9953 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9954 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9955
7af79f92
GY
99562013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9957
91bfca59
OE
9958 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9959 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 9960
753bcf7b
GY
99612013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9962
91bfca59
OE
9963 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9964 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 9965
8cbc2ea8
GY
99662013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9967
91bfca59
OE
9968 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9969 declaration.
9970 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9971 * config/arm/cortex-a7.md: New bypasses using
9972 arm_mac_accumulator_is_result.
8cbc2ea8 9973
697a3325
GY
99742013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9975
91bfca59 9976 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 9977 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
9978 (cortex_a7_fpfmad): New reservation.
9979 (cortex_a7_fpmacs): Use ffmas and update required units.
9980 (cortex_a7_fpmuld): Update required units and latency.
9981 (cortex_a7_fpmacd): Likewise.
9982 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9983 (cortex_a7_neon). Likewise.
9984 (bypass) Update participating units.
697a3325 9985
29637783
GY
99862013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9987
91bfca59
OE
9988 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9989 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9990 from fmac to ffma.
9991 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9992 (vfp_fmul): Use ffmad.
9993 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9994 (cortex_r4_fmacd): Use ffmad.
9995 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9996 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9997 (cortex_a9_fmacd): Use ffmad.
9998 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9999 (cortex_a8_vfp_macd): Use ffmad.
10000 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10001 (cortex_a5_fpmacd): Use ffmad.
10002 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10003 (cortex_a15_vfp_macd): Use ffmad.
10004 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 10005
2ee8a2d5
JM
100062013-01-29 Jason Merrill <jason@redhat.com>
10007
10008 PR libstdc++/54314
10009 * varasm.c (default_assemble_visibility): Don't warn about
10010 visibility on artificial decls.
10011
78d087bc
RB
100122013-01-29 Richard Biener <rguenther@suse.de>
10013
10014 PR tree-optimization/56113
10015 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10016 the bitmap leader.
10017 (label_visit): Free duplicate bitmaps and record the leader instead.
10018 (perform_var_substitution): Adjust.
10019
83ba4d6f
RB
100202013-01-29 Richard Biener <rguenther@suse.de>
10021
10022 PR tree-optimization/55270
10023 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10024 the CFG, schedule loops for fixup.
10025
66dfe13f
NC
100262013-01-29 Nick Clifton <nickc@redhat.com>
10027
10028 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10029 SP_REG.
10030
5a579c3b
LE
100312013-01-28 Leif Ekblad <leif@rdos.net>
10032
10033 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10034 * config/i386/i386.h (TARGET_RDOS): New macro.
10035 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10036 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10037 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10038 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10039 DEFAULT_LARGE_SECTION_THRESHOLD.
10040 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10041 * config/i386/rdos.h: New file.
10042 * config/i386/rdos64.h: New file.
10043
51e44392
BS
100442013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10045
10046 PR other/54814
10047 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10048 TEST_HARD_REG_BIT.
10049
db1fb332
JJ
100502013-01-28 Jakub Jelinek <jakub@redhat.com>
10051
10052 PR rtl-optimization/56117
10053 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10054 call cselib_lookup_from_insn on the MEM before calling
10055 add_insn_mem_dependence.
10056
16917761
RB
100572013-01-28 Richard Biener <rguenther@suse.de>
10058
10059 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10060 to a stmt that didn't have one.
10061 (copy_phis_for_bb): Likewise for PHI arguments.
10062 (copy_debug_stmt): Likewise for debug stmts.
10063
b9fc0497
RB
100642013-01-28 Richard Biener <rguenther@suse.de>
10065
10066 PR tree-optimization/56034
6edc3e32 10067 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
10068 (partition_builtin_p): Adjust.
10069 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10070 it is the last partition.
10071 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10072 up the vertex for the definition.
10073 (classify_partition): Classify whether a partition is a
10074 PKIND_REDUCTION, thus has uses outside of the loop.
10075 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10076 Merge all PKIND_REDUCTION partitions into the last partition.
10077 (tree_loop_distribution): Seed partitions from reductions as well.
10078
aa710d25
JJ
100792013-01-28 Jakub Jelinek <jakub@redhat.com>
10080
0bfbca58
JJ
10081 PR tree-optimization/56125
10082 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10083 pow(x,c) into sqrt(x) * powi(x, n/2) or
10084 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10085 optimizing for size.
10086 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10087 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10088 integer.
10089
aa710d25
JJ
10090 PR tree-optimization/56094
10091 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10092 to UNKNOWN_LOCATION while gimplifying expr.
10093
77dc5297
UB
100942013-01-27 Uros Bizjak <ubizjak@gmail.com>
10095
10096 PR target/56114
10097 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10098 operand 0 in movabs insn template for -masm=intel asm alternative.
10099 (*movabs<mode>_2): Ditto for operand 1.
10100
0bfbca58 101012013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
10102
10103 PR target/54663
10104 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10105 of microblaze-c.o
10106
0bfbca58 101072013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
10108
10109 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10110 tm_file.
10111
0bfbca58 101122013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
10113
10114 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10115 Undef to avoid warning.
10116
478f60f9
MH
101172013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10118
10119 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10120 * configure: Regenerate.
10121
d7fa6ee2
JJ
101222013-01-25 Jakub Jelinek <jakub@redhat.com>
10123
10124 PR tree-optimization/56098
10125 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10126 for stmts with volatile ops.
10127 (cond_store_replacement): Don't optimize if assign has volatile ops.
10128 (cond_if_else_store_replacement_1): Don't optimize if either
10129 then_assign or else_assign have volatile ops.
10130 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10131 volatile ops.
10132
f8fe87bd
GJL
101332013-01-25 Georg-Johann Lay <avr@gjlay.de>
10134
10135 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10136
28398d0d
GJL
101372013-01-25 Georg-Johann Lay <avr@gjlay.de>
10138
10139 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10140 missing ':' in asm example.
10141
b7d7d917
TB
101422013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10143
10144 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10145 entries into lane and laneq entries.
77dc5297
UB
10146 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10147 Remove AdvSIMD scalar modes.
b7d7d917
TB
10148 (aarch64_sq<r>dmulh_laneq<mode>): New.
10149 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10150 modes.
10151 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10152 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10153 * config/aarch64/iterators.md (VCOND): New.
10154 (VCONQ): New.
10155
556f9906
GJL
101562013-01-25 Georg-Johann Lay <avr@gjlay.de>
10157
10158 PR target/54222
10159 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10160 Add NULL LIBNAME argument to existing definitions.
10161 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10162 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10163 * config/avr/avr.c (DEF_BUILTIN): Same.
10164 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10165 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10166 implementation is available (DECL_ASSEMBLER_NAME is set).
10167 (avr_fold_absfx): New static function.
10168 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10169 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10170 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10171 AVR_BUILTIN_ABSLLK.
10172 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10173 (abshk, absk, abslk, absllk): Provide as static inline functions.
10174
1f546bbb
MP
101752013-01-25 Marek Polacek <polacek@redhat.com>
10176
10177 PR tree-optimization/56035
10178 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10179
7e184bd7
UB
101802012-01-24 Uros Bizjak <ubizjak@gmail.com>
10181
10182 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10183 (*movtf_internal_rex64): Add (!o,C) alternative
10184 (*movxf_internal_rex64): Ditto.
10185 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10186
f5ba49ac
SM
101872013-01-24 Shenghou Ma <minux.ma@gmail.com>
10188
10189 * doc/invoke.texi: fix typo.
10190 * doc/objc.texi: fix typo.
10191
a6343728
RS
101922013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10193
10194 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10195 for the first two alternatives.
10196
cd030c07
DN
101972013-01-24 Diego Novillo <dnovillo@google.com>
10198
77dc5297 10199 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
10200 (ggc-zone.o): Remove.
10201 * configure.ac: Remove option --with-gc.
10202 * configure: Re-generate.
10203 * doc/install.texi: Remove documentation for --with-gc.
10204 * gengtype.c (write_enum_defn): Remove. Update all users.
10205 (write_Types_process_field): Remove generation of gt_e_* argument.
10206 (output_type_enum): Remove. Update all users.
10207 (write_enum_defn): Remove. Update all users.
10208 (enum alloc_zone): Remove. Update all users.
77dc5297 10209 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
10210 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10211 Update all callers.
10212 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 10213 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
10214 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10215 Update all users.
aaf1e810 10216 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
10217 (struct alloc_zone): Remove.
10218 (ggc_internal_alloc_zone_stat): Remove.
10219 (ggc_internal_cleared_alloc_zone_stat): Remove.
10220 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
10221 (ggc_pch_count_object): Remove last argument. Update all users.
10222 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
10223 (struct alloc_zone): Remove.
10224 * ggc-zone.c: Remove.
77dc5297 10225 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
10226 (struct alloc_zone): Remove.
10227 (ggc_alloc_typed_stat): Remove.
10228 (ggc_alloc_typed): Remove.
10229 (ggc_splay_alloc): Remove first argument.
10230 (rtl_zone): Remove. Update all users.
10231 (tree_zone): Remove. Update all users.
10232 (tree_id_zone): Remove. Update all users.
10233 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 10234 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 10235 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 10236 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 10237
a861ffa4
GJL
102382013-01-24 Georg-Johann Lay <avr@gjlay.de>
10239
10240 * config/avr/avr.c (avr_out_fract): Make register numbers that
10241 might be outside of source operand signed.
10242
593c0ddd
UB
102432013-01-24 Uros Bizjak <ubizjak@gmail.com>
10244
10245 * config/i386/constraints.md (Yf): New constraint.
10246 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10247 of f constraint to conditionaly disable x87 register preferences.
10248 (*movdf_internal): Ditto.
10249 (*movsf_internal): Ditto.
10250
e86c0101
SB
102512013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10252
10253 PR inline-asm/55934
10254 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10255 that have operands with impossible constraints.
10256 Add a FIXME for a speed-up opportunity.
10257 * lra-constraints.c (process_alt_operands): Verify that a class
10258 selected from constraints on asms is valid for the operand mode.
10259 (curr_insn_transform): Remove incorrect comment.
10260
f6fee35f
DE
102612013-01-23 David Edelsohn <dje.gcc@gmail.com>
10262
10263 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10264 TOC operand is a valid symbol ref in the constant pool.
10265
102662013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 10267
aaf1e810 10268 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 10269
dc62d7d1
GJL
102702013-01-23 Georg-Johann Lay <avr@gjlay.de>
10271
10272 PR target/54222
10273 * config/avr/stdfix.h: New file.
10274 * t-avr (stdfix-gcc.h): New rule to build it.
10275 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10276
2660d12d
KS
102772013-01-23 Kostya Serebryany <kcc@google.com>
10278
77dc5297
UB
10279 * config/darwin.h: remove dependency on
10280 CoreFoundation (asan on Mac OS).
2660d12d 10281
a70418fc
JJ
102822013-01-23 Jakub Jelinek <jakub@redhat.com>
10283
10284 PR target/49069
10285 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10286 instead of cmpdi_operand for first comparison operand.
10287 Don't assert that comparison operands aren't both constants.
10288
47876a2a
JW
102892013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10290
10291 * doc/install.texi (Downloading the Source): Update references to
10292 downloading separate components.
10293
102942013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
10295
10296 * doc/extend.texi (__int128): Improve grammar.
10297
47876a2a 102982013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
10299
10300 PR target/56028
10301 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10302 alternative to (o,r).
10303 (*movdi_internal_rex64): Remove (!o,n) alternative.
10304 (DImode immediate->memory splitter): Remove.
10305 (DImode immediate->memory peephole2): Remove.
10306 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10307 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10308 alternative to (!o,*r).
10309 (*movtf_internal_sse): New pattern.
10310 (*movxf_internal_rex64): New pattern.
10311 (*movxf_internal): Disable for TARGET_64BIT.
10312 (*movdf_internal_rex64): Remove (!o,F) alternative.
10313
3a984f10
JJ
103142013-01-22 Jakub Jelinek <jakub@redhat.com>
10315
502498d5
JJ
10316 PR middle-end/56074
10317 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10318 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10319 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10320 stmt locations where LOCATION_LOCUS of the stmt location is
10321 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10322
3a984f10
JJ
10323 PR target/55686
10324 * config/i386/i386.md (UNSPEC_STOS): New.
10325 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10326 *strsetqi_1): Add UNSPEC_STOS.
10327
fa817f7f
PC
103282013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10329
10330 PR c++/56067
10331 * doc/invoke.texi: Remove left over -Wsynth example.
10332
8f498c1b
JJ
103332013-01-21 Jakub Jelinek <jakub@redhat.com>
10334
10335 PR tree-optimization/56051
10336 * fold-const.c (fold_binary_loc): Don't fold
10337 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10338 a narrowing conversion, or widening conversion from signed
10339 to unsigned.
10340
47876a2a 103412013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
10342
10343 PR rtl-optimization/56023
10344 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10345 dependent on debug instruction.
10346
5b9db1bc
MJ
103472013-01-21 Martin Jambor <mjambor@suse.cz>
10348
10349 PR middle-end/56022
10350 * function.c (allocate_struct_function): Call
10351 invoke_set_current_function_hook earlier.
10352
e8bb7d68
JJ
103532013-01-21 Jakub Jelinek <jakub@redhat.com>
10354
10355 * reload1.c (init_reload): Only initialize reload_obstack
10356 during the first call.
10357
616a4e32
MP
103582013-01-21 Marek Polacek <polacek@redhat.com>
10359
10360 * cfgloop.c (verify_loop_structure): Fix up grammar.
10361
4401981b
YHH
103622013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10363
10364 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10365 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10366
8e87740b
RR
103672013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10368
10369 PR target/56058
10370 * config/arm/marvell-pj4.md: Update copyright year.
10371 Fix up use of alu to alu_reg and simple_alu_imm.
10372
47876a2a 103732013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
10374
10375 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10376
89d56d79
VM
103772013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10378
10379 PR target/55433
10380 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 10381 insn for secondary memory move when memory mode should be different.
89d56d79 10382
fe603553
JDA
103832013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10384
10385 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10386 atomic_storedi_1): New patterns.
10387
01284895
VK
103882013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10389
10390 btver2 pipeline descriptions.
10391 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10392 descriptions.
10393 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 10394 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
10395 type attributes.
10396 * config/i386/btver2.md: New file describing btver2 pipelines.
10397
5630e3e1
JL
103982013-01-19 Andrew Pinski <apinski@cavium.com>
10399
10400 PR tree-optimization/52631
10401 * tree-ssa-sccvn (visit_use): Before looking up the original
10402 statement, try looking up the simplified expression.
10403
650ae806
AG
104042013-01-19 Anthony Green <green@moxielogic.com>
10405
10406 * config/moxie/moxie.c (moxie_expand_prologue): Set
10407 current_function_static_stack_size.
10408
e300ec2d
JJ
104092013-01-18 Jakub Jelinek <jakub@redhat.com>
10410
10411 PR tree-optimization/56029
10412 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10413 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10414
a3d7af04
SS
104152013-01-18 Sharad Singhai <singhai@google.com>
10416
10417 PR tree-optimization/55995
10418 * dumpfile.c (dump_loc): Print location only if available.
10419 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10420
66aa7879
VM
104212013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10422
10423 PR target/55433
10424 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10425 secondary memory move.
10426 (inherit_reload_reg): Use rclass instead of cl for
10427 check_secondary_memory_needed_p.
10428
3f0fee7b
JJ
104292013-01-18 Jakub Jelinek <jakub@redhat.com>
10430
10431 PR middle-end/56015
10432 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 10433 the case where writing real complex part of target modifies op1.
3f0fee7b 10434
70c67693
JG
104352013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10436
10437 * config/aarch64/aarch64-simd.md
10438 (aarch64_vcond_internal<mode>): Handle unordered cases.
10439 * config/aarch64/iterators.md (v_cmp_result): New.
10440
df8de9b3
YHH
104412013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10442 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10443
10444 * config/arm/marvell-pj4.md: New file.
10445 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10446 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10447 (generic_vfp): Likewise.
10448 * config/arm/arm-cores.def: Add marvell-pj4.
10449 * config/arm/arm-tune.md: Regenerate.
10450 * config/arm/arm-tables.opt: Regenerate.
10451 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10452 * doc/invoke.texi: Document marvell-pj4.
10453
be30c356
TB
104542013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10455
10456 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10457
0bfbca58 104582013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
10459
10460 PR debug/54114
10461 PR debug/54402
10462 PR debug/49888
10463 * var-tracking.c (negative_power_of_two_p): New.
10464 (global_get_addr_cache, local_get_addr_cache): New.
10465 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10466 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10467 heading comment.
10468 (vt_stack_offset_p): Remove.
10469 (vt_canon_true_dep): Always canonicalize loc's address.
10470 (clobber_overlapping_mems): Make sure we have a MEM.
10471 (local_get_addr_clear_given_value): New.
10472 (val_reset): Clear local cached entries.
10473 (compute_bb_dataflow): Create and release the local cache.
10474 Disable duplicate MEMs clobbering.
10475 (emit_notes_in_bb): Clobber MEMs likewise.
10476 (vt_emit_notes): Create and release the local cache.
10477 (vt_initialize, vt_finalize): Create and release the global
10478 cache, respectively.
1f6bc337 10479 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 10480
0bfbca58 104812013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
10482
10483 PR libmudflap/53359
10484 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10485 not found in the symtab.
10486
0bfbca58 104872013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 10488
c350ba53 10489 PR debug/56006
3aa03517
AO
10490 PR rtl-optimization/55547
10491 PR rtl-optimization/53827
10492 PR debug/53671
10493 PR debug/49888
10494 * alias.c (offset_overlap_p): New, factored out of...
10495 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10496 the conservative special case for symbolic constants. Don't
10497 adjust zero sizes on alignment.
10498
c664546f
JL
104992013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10500
10501 PR rtl-optimization/52573
10502 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10503 REG_UNUSED for the same register.
10504
1bd3f750
MP
105052013-01-17 Richard Biener <rguenther@suse.de>
10506 Marek Polacek <polacek@redhat.com>
10507
10508 PR rtl-optimization/55833
10509 * loop-unswitch.c (unswitch_loops): Move loop verification...
10510 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10511 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10512 Set it to true when we're removing a loop from hierarchy tree in
10513 an irreducible region.
10514 (fix_bb_placements): Adjust caller.
10515 (fix_loop_placements): Likewise.
10516
e52a8b71
GJL
105172013-01-17 Georg-Johann Lay <avr@gjlay.de>
10518
10519 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10520 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10521 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10522 Remove ID. Adjust comments.
10523 * config/avr/avr-c.c (avr_builtin_name): Remove.
10524 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10525 * config/avr/avr.c (avr_tolower): New static function.
10526 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10527 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10528 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10529 default expansion.
10530
8386a7ea
JH
105312013-01-17 Jan Hubicka <jh@suse.cz>
10532
610fb637 10533 PR tree-optimization/55273
8386a7ea
JH
10534 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10535
47876a2a 105362013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
10537
10538 PR target/55981
10539 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10540 store through atomic_store<mode>_1.
10541 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10542
8222c37e
MJ
105432013-01-17 Martin Jambor <mjambor@suse.cz>
10544
10545 PR tree-optimizations/55264
10546 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10547 for virtual methods.
10548 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10549 virtual methods before inlining is over.
10550 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10551 virtual functions.
10552 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10553 non-virtual.
10554
79f01c76
VM
105552013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10556
10557 PR rtl-optimization/56005
10558 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10559 pending reads for prefetch.
10560
d0b6bb1b
IB
105612013-01-16 Ian Bolton <ian.bolton@arm.com>
10562
aaf1e810 10563 * config/aarch64/aarch64.md
d0b6bb1b
IB
10564 (*cstoresi_neg_uxtw): New pattern.
10565 (*cmovsi_insn_uxtw): New pattern.
10566 (*<optab>si3_uxtw): New pattern.
10567 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10568 (*<optab>si3_insn_uxtw): New pattern.
10569 (*bswapsi2_uxtw): New pattern.
10570
cb9cf03b
RB
105712013-01-16 Richard Biener <rguenther@suse.de>
10572
10573 * tree-inline.c (tree_function_versioning): Remove set but
10574 never used variable.
10575
2cfc56b9
RB
105762013-01-16 Richard Biener <rguenther@suse.de>
10577
10578 PR tree-optimization/55964
10579 * tree-flow.h (rename_variables_in_loop): Remove.
10580 (rename_variables_in_bb): Likewise.
10581 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10582 (copy_loop_before): Adjust and delete update-ssa status.
10583 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10584 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10585 (rename_variables_in_loop): Remove.
10586 (slpeel_update_phis_for_duplicate_loop): Likewise.
10587 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10588 use available cfg machinery instead of duplicating it.
10589 Update PHI nodes and perform poor-mans SSA update here.
10590 (slpeel_tree_peel_loop_to_edge): Adjust.
10591
c25a0c60
RB
105922013-01-16 Richard Biener <rguenther@suse.de>
10593
10594 PR tree-optimization/54767
10595 PR tree-optimization/53465
10596 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10597 (vrp_visit_phi_node): For PHI arguments coming via backedges
10598 drop all symbolical range information.
10599 (execute_vrp): Compute backedges.
10600
04b535af
RB
106012013-01-16 Richard Biener <rguenther@suse.de>
10602
10603 * doc/install.texi: Update CLooG and ISL requirements to
10604 0.18.0 and 0.11.1.
10605
8b0a1e0b
CB
106062013-01-16 Christian Bruel <christian.bruel@st.com>
10607
10608 PR target/55301
10609 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10610 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10611 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10612
106132013-01-16 DJ Delorie <dj@redhat.com>
10614
10615 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10616 (UNSPECV_SP_SWITCH_E): New.
10617 (sp_switch_1): Change to an unspec.
10618 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10619 replace $r15.
10620
106212013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10622
10623 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10624 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10625 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10626 (expand_mem_thread_fence): Ditto.
10627 (expand_mem_signal_fence): Ditto.
10628 (expand_atomic_load): Ditto.
10629 (expand_atomic_store): Ditto.
10630
0bfbca58 106312013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10632
10633 PR rtl-optimization/55547
10634 PR rtl-optimization/53827
10635 PR debug/53671
10636 PR debug/49888
10637 * alias.c (memrefs_conflict_p): Set sizes to negative after
10638 AND adjustments.
10639
305e3ac1
JJ
106402013-01-15 Jakub Jelinek <jakub@redhat.com>
10641
10642 PR target/55940
10643 * function.c (thread_prologue_and_epilogue_insns): Always
10644 add crtl->drap_reg to set_up_by_prologue.set, even if
10645 stack_realign_drap is false.
10646
f78ac4f2
JBG
106472013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10648
10649 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10650 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10651 *call): Fix indention.
10652
a78a8cc4
TV
106532013-01-15 Tom de Vries <tom@codesourcery.com>
10654
10655 PR target/55876
10656 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10657 Update comment.
10658
0e80383f
VM
106592013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10660
305e3ac1 10661 PR rtl-optimization/55153
0e80383f
VM
10662 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10663
207b5956
MJ
106642013-01-15 Martin Jambor <mjambor@suse.cz>
10665
10666 PR tree-optimization/55920
10667 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10668 accesses as grp_to_be_debug_replaced.
10669
a7818b54
JJ
106702013-01-15 Jakub Jelinek <jakub@redhat.com>
10671
10672 PR tree-optimization/55920
10673 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10674 there is non-useless type conversion needed from debug rhs to lhs,
10675 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10676
b0fe107e
JM
106772013-01-15 Joseph Myers <joseph@codesourcery.com>
10678 Mikael Pettersson <mikpe@it.uu.se>
10679
10680 PR target/43961
10681 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10682 Thumb.
10683 (ASM_OUTPUT_CASE_LABEL): Remove.
10684 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10685 * final.c (shorten_branches): Update alignment of labels before
10686 jump tables if CASE_VECTOR_SHORTEN_MODE.
10687
34ab62ee
RB
106882013-01-15 Richard Biener <rguenther@suse.de>
10689
10690 PR bootstrap/55961
10691 * system.h: Do not include gmp.h for building host tools.
10692
783a3a05
RB
106932013-01-15 Richard Biener <rguenther@suse.de>
10694
10695 PR middle-end/55882
10696 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10697 account for bitpos when computing alignment.
10698
3a579e09
VY
106992013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10700
10701 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10702 (ix86_target_macros_internal): Likewise.
10703
10704 * config/i386/i386.c (m_CORE2I7): Removed.
10705 (m_CORE_HASWELL): New macro.
10706 (m_CORE_ALL): Likewise.
10707 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10708 (initial_ix86_arch_features): Likewise.
10709 (processor_target_table): Initializations for Core avx2.
10710 (cpu_names): New names "core-avx2".
10711 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10712 PROCESSOR_CORE_HASWELL.
10713 (ix86_issue_rate): New case.
10714 (ia32_multipass_dfa_lookahead): Likewise.
10715 (ix86_sched_init_global): Likewise.
10716
10717 * config/i386/i386.h (TARGET_HASWELL): New macro.
10718 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10719 (processor_type): New PROCESSOR_HASWELL.
10720
955f5a07
JJ
107212013-01-15 Jakub Jelinek <jakub@redhat.com>
10722
ff784829
JJ
10723 PR tree-optimization/55955
10724 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10725 *SHIFT_EXPR and *ROTATE_EXPR codes.
10726
955f5a07
JJ
10727 PR tree-optimization/48766
10728 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10729 -ftrapv disable -fwrapv.
10730
aeb8b4e9
GJL
107312013-01-14 Georg-Johann Lay <avr@gjlay.de>
10732
10733 PR target/55974
10734 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10735 etc. to 1 and not to __flash.
10736 Use LL suffix for __INT24_MAX__ with -mint8.
10737 Use ULL suffix for __UINT24_MAX__ with -mint8.
10738
1c494c6a
GJL
107392013-01-14 Georg-Johann Lay <avr@gjlay.de>
10740
10741 * config/avr/avr-arch.h
10742 (struct base_arch_s): Use typedef avr_arch_t instead.
10743 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10744 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10745 * config/avr/avr.c: Same.
10746 * config/avr/avr-devices.c: Same.
10747 * config/avr/driver-avr.c: Same.
10748 * config/avr/gen-avr-mmcu-texi.c: Same.
10749 * config/avr/avr-mcus.def: Adjust comment.
10750
a50344cb
TB
107512013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10752
88e784e6
UB
10753 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10754 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10755
47876a2a 107562013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10757 Andi Kleen <ak@linux.intel.com>
10758
10759 PR target/55948
10760 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10761 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10762 memmodel flag.
10763
00892272
GJL
107642013-01-14 Georg-Johann Lay <avr@gjlay.de>
10765
10766 * config/avr/avr-stdint.h: Remove trailing blanks.
10767 * config/avr/avr-log.h: Same.
10768 * config/avr/avr-arch.h: Same.
10769 * config/avr/avr-devices.c: Same.
10770 * config/avr/avr-dimode.md: Same.
10771 * config/avr/predicates.md: Same.
10772 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10773
00892272
GJL
10774 * config/avr/avr-protos.h: Same. And:
10775 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10776 (init_cumulative_args): Rename to avr_init_cumulative_args.
10777 (expand_prologue): Rename to avr_expand_prologue.
10778 (expand_epilogue): Rename to avr_expand_epilogue.
10779 (adjust_insn_length): Rename to avr_adjust_insn_length.
10780 (notice_update_cc): Rename to avr_notice_update_cc.
10781 (final_prescan_insn): Rename to avr_final_prescan_insn.
10782 * config/avr/avr.c: Same.
10783 * config/avr/avr.h: Same.
10784 * config/avr/avr.md: Remove trailing blanks.
10785 (prologue): Use avr_expand_prologue.
10786 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10787
7bb01996
RB
107882013-01-14 Richard Biener <rguenther@suse.de>
10789
10790 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10791 verify_location, collect_subblocks): New functions.
10792 (verify_gimple_in_cfg): Verify that locations only reference
10793 BLOCKs in the functions BLOCK tree.
10794
2724573f
RB
107952013-01-14 Richard Biener <rguenther@suse.de>
10796
10797 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10798 PHI argument.
10799 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10800 unshare reference.
10801 (insert_out_of_ssa_copy_on_edge): Likewise.
10802 (rewrite_close_phi_out_of_ssa): Likewise.
10803 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10804 debug expressions.
10805 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10806 propagated constants.
10807 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10808 can not be shared.
10809
9a0bbab6
GJL
108102013-01-14 Georg-Johann Lay <avr@gjlay.de>
10811
10812 * config/avr/avr-modes.def: Add GPL copyright notice.
10813
45805f17
UB
108142013-01-13 Uros Bizjak <ubizjak@gmail.com>
10815
10816 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10817 MEMMODEL_MASK to determine memory model.
10818 (atomic_store<mode>): Ditto from operands[2].
10819 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10820
9d60be38
JJ
108212013-01-13 Jakub Jelinek <jakub@redhat.com>
10822
10823 PR fortran/55935
45805f17 10824 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
10825 (fold_gimple_assign): Don't call unshare_expr here.
10826 (fold_ctor_reference): Call unshare_expr.
10827
e7f49d92
TG
108282013-01-13 Terry Guo <terry.guo@arm.com>
10829
aaf1e810
EB
10830 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10831 * doc/fragments.texi: Document MULTILIB_REUSE.
10832 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 10833 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 10834 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
10835 (tmpmultilib4): Ditto.
10836 (multilib_reuse): New multilib argument.
10837
fbd03a27
RS
108382013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10839
10840 * Makefile.in: Update copyright.
10841
b3681f13
TV
108422013-01-12 Tom de Vries <tom@codesourcery.com>
10843
10844 PR middle-end/55890
10845 * calls.c (expand_call): Check if arg_nr is valid.
10846
3f287e4b
MM
108472013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10848
10849 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10850 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
10851 documentation. Add missing '__' in front of
10852 __builtin_ia32_packssdw256.
3f287e4b 10853
1abcd5eb
AK
108542013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10855
10856 PR target/55719
10857 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10858 NO_REGS for larl operands.
10859 (s390_reload_larl_operand): Use s390_load_address instead of
10860 emit_move_insn.
10861
980d0812
RB
108622013-01-11 Richard Biener <rguenther@suse.de>
10863
10864 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10865 (verify_node_sharing): ... here.
10866 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10867
7cb9fd07
EB
108682013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10869
10870 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10871 Substitute TREECHECKING.
10872 * configure: Regenerate.
10873 * Makefile.in (TREECHECKING): New.
10874
47876a2a 108752013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
10876
10877 PR tree-optimization/44061
10878 * tree-vrp.c (extract_range_basic): Compute zero as
10879 value-range for __builtin_constant_p of function parameters.
10880
d1e082c2
RS
108812013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10882
45805f17 10883 Update copyright years.
d1e082c2 10884
f85021b0
VM
108852013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10886
9d60be38 10887 PR rtl-optimization/55672
0160442c
VM
10888 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10889 const to be eliminable.
f85021b0 10890
7a8b1ec4
DE
108912013-01-10 David Edelsohn <dje.gcc@gmail.com>
10892
10893 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10894 * configure: Regenerate.
10895
ad2e5b71
RB
108962013-01-10 Richard Biener <rguenther@suse.de>
10897
ddf9322d 10898 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 10899
ffc5b2bb
RB
109002013-01-10 Richard Biener <rguenther@suse.de>
10901
10902 PR bootstrap/55792
10903 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10904 locations for virtual PHI arguments.
10905 (rewrite_update_phi_arguments): Likewise.
10906
e1f674e4
JS
109072013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10908
10909 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10910 on to assembler.
10911
a57fc743
JJ
109122013-01-10 Jakub Jelinek <jakub@redhat.com>
10913
10914 PR tree-optimization/55921
10915 * tree-complex.c (expand_complex_asm): New function.
10916 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10917
0ff4390d
AK
109182013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10919
10920 PR target/55718
10921 * config/s390/s390.c (s390_symref_operand_p)
10922 (s390_loadrelative_operand_p): Merge the two functions.
10923 (s390_check_qrst_address, print_operand_address): Add parameters
10924 to s390_loadrelative_operand_p invokation.
10925 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10926 (s390_reload_larl_operand, s390_secondary_reload): Use
10927 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10928 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10929
6f557e0e
MS
109302013-01-09 Mike Stump <mikestump@comcast.net>
10931
10932 * dse.c (record_store): Remove unnecessary assert.
10933
7770c9e9
JH
109342013-01-09 Jan Hubicka <jh@suse.cz>
10935
10936 PR tree-optimization/55569
10937 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10938 * cfgloop.h (scale_loop_profile): Likewise.
10939
a19b1432
JH
109402013-01-09 Jan Hubicka <jh@suse.cz>
10941
10942 PR lto/45375
ddf9322d
UB
10943 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10944 functions.
a19b1432
JH
10945 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10946
9a002da8
RS
109472013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10948
10949 PR middle-end/55114
10950 * expr.h (maybe_emit_group_store): Declare.
10951 * expr.c (maybe_emit_group_store): New function.
10952 * builtins.c (expand_builtin_int_roundingfn): Call it.
10953 (expand_builtin_int_roundingfn_2): Likewise.
10954
511dcace
VM
109552013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10956
e1f2b729 10957 PR rtl-optimization/55829
511dcace
VM
10958 * lra-constraints.c (match_reload): Add code for absent output.
10959 (curr_insn_transform): Add code for reloads of matched inputs
10960 without output.
10961
7b0fe4f4
UB
109622013-01-09 Uros Bizjak <ubizjak@gmail.com>
10963
10964 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10965 attribute of movddup insn to DF.
10966 (*vec_interleave_lowv2df): Ditto.
10967 (vec_dupv2df): Ditto.
10968
870ca331
JH
109692013-01-09 Jan Hubicka <jh@suse.cz>
10970
10971 PR tree-optimiation/55875
10972 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10973 EVERY_ITERATION parameter.
7b0fe4f4 10974 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
10975 (idx_infer_loop_bounds): Similarly here.
10976 (n_of_executions_at_most): Simplify
10977 to only test for cases where statement is dominated by the
7b0fe4f4 10978 particular bound; handle correctly the "postdominance" test.
870ca331
JH
10979 (scev_probably_wraps_p): Use max loop iterations info
10980 as a global bound first.
10981
6f575fe4 109822013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
10983 Nick Clifton <nickc@redhat.com>
10984
10985 * config/v850/v850.md (cbranchsf4): New pattern.
10986 (cstoresf4): New pattern.
10987 (cbranchdf4): New pattern.
10988 (cstoredf4): New pattern.
10989 (movsicc): Disallow floating point comparisons.
10990 (cmpsf_le_insn): Fix order of operators.
10991 (cmpsf_lt_insn): Likewise.
10992 (cmpsf_eq_insn): Likewise.
10993 (cmpdf_le_insn): Likewise.
10994 (cmpdf_lt_insn): Likewise.
10995 (cmpdf_eq_insn): Likewise.
10996 (cmpsf_ge_insn): Use LE comparison.
10997 (cmpdf_ge_insn): Likewise.
10998 (cmpsf_gt_insn): Use LT comparison.
10999 (cmpdf_gt_insn): Likewise.
11000 (cmpsf_ne_insn): Delete pattern.
11001 (cmpdf_ne_insn): Delete pattern.
11002 * config/v850/v850.c (v850_gen_float_compare): Use
11003 gen_cmpdf_eq_insn for NE comparison.
11004 (v850_float_z_comparison_operator)
11005 (v850_float_nz_comparison_operator): Move from here ...
11006 * config/v850/predicates.md: ... to here. Move GT and GE
11007 comparisons into v850_float_z_comparison_operator.
11008 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11009 Delete prototype.
11010 (v850_float_nz_comparison_operator): Likewise.
11011
f0d54148
JDA
110122013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11013
11014 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11015 with calls to gen_insvsi/gen_insvdi.
11016
8f01beca
VK
110172013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11018
11019 * config/i386/i386.c (initial_ix86_tune_features): Set up
11020 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11021
2aa579ad
JJ
110222013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11023 Jakub Jelinek <jakub@redhat.com>
11024
11025 PR tree-optimization/48189
11026 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11027 If nitercst is 0, don't predict the exit edge.
11028
6edc3e32 110292013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
11030
11031 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11032 in asm_fprintf with reg_names.
11033 (aarch64_print_operand_address): Likewise.
11034 (aarch64_return_addr): Likewise.
11035 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11036
f6f94d94
JDA
110372013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11038
11039 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11040 (INT_U6_BITS): Likewise.
11041 * config/pa/predicates.md (uint6_operand): New predicate.
11042 (shift5_operand, shift6_operand): Likewise.
11043 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11044 arith32_operand.
11045 (lshrdi3): Use shift6_operand.
11046 (shrpsi4, shrpdi4): New insn patterns.
11047 (extzv): Delete expander.
11048 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11049 predicates in unamed zero extract patterns. Tighten common constraint.
11050 (extv): Delete expander.
11051 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11052 predicates in unamed sign extract patterns. Tighten common constraint.
11053 (insv): Delete expander.
11054 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11055 predicates in unamed insert patterns. Tighten common constraint.
11056 Change uint32_operand predicate to uint6_operand predicate in unamed
11057 DImode pattern to insert constant values of type 1...1xxxx.
11058
36b72910
JH
110592013-01-04 Jan Hubicka <jh@suse.cz>
11060
11061 PR tree-optimization/55823
7b0fe4f4
UB
11062 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11063 issue.
36b72910 11064
47876a2a 110652013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
11066 Uros Bizjak <ubizjak@gmail.com>
11067
11068 PR rtl-optimization/55845
11069 * df-problems.c (can_move_insns_across): Stop scanning at
11070 volatile_insn_p source instruction or give up if
11071 across_from .. across_to range contains any volatile_insn_p
11072 instructions.
11073
4369c11e
TB
110742013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11075
7b0fe4f4
UB
11076 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11077 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11078 Declare.
4369c11e 11079 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 11080 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 11081
aeb7e7c1
JJ
110822013-01-08 Jakub Jelinek <jakub@redhat.com>
11083
11084 PR fortran/55341
11085 * asan.c (asan_clear_shadow): New function.
11086 (asan_emit_stack_protection): Use it.
11087
a02ad1aa
TB
110882013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11089
11090 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11091 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11092 with tab instead of space.
11093
f90d87f5
NC
110942013-01-08 Nick Clifton <nickc@redhat.com>
11095
11096 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11097 register bank 0 at the start of an interrupt handler.
83ffd964
NC
11098 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11099 MDBH registers.
f90d87f5 11100
385eb93d
JG
111012013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11102
11103 * config/aarch64/aarch64-simd.md
11104 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11105 (aarch64_simd_bsl): Likewise.
11106 (aarch64_vcond_internal<mode>): Likewise.
11107 (vcond<mode><mode>): Likewise.
11108 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11109 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11110
4dcd1054
JG
111112013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11112
11113 * config/aarch64/aarch64-builtins.c
11114 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11115
4267a4a6
MJ
111162013-01-08 Martin Jambor <mjambor@suse.cz>
11117
11118 PR debug/55579
11119 * tree-sra.c (analyze_access_subtree): Return true also after
11120 potentially creating a debug-only replacement.
11121
5f4e6de3
JJ
111222013-01-08 Jakub Jelinek <jakub@redhat.com>
11123
3138f224
JJ
11124 PR middle-end/55890
11125 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11126
5f4e6de3
JJ
11127 PR tree-optimization/54120
11128 * tree-vrp.c (range_fits_type_p): Don't allow
11129 src_precision < precision from signed vr to unsigned_p
11130 if vr->min or vr->max is negative.
11131 (simplify_float_conversion_using_ranges): Test can_float_p
11132 against CODE_FOR_nothing.
11133
f3ef18ff
JJ
111342013-01-08 Jakub Jelinek <jakub@redhat.com>
11135 Richard Biener <rguenther@suse.de>
11136
11137 PR middle-end/55851
11138 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11139 types instead of just INTEGER_TYPE types.
11140
25c210f9
MK
111412013-01-07 Mark Kettenis <kettenis@openbsd.org>
11142
11143 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11144 TF_SIZE): Define.
f90d87f5 11145
81826a7b
SE
111462013-01-07 Steve Ellcey <sellcey@mips.com>
11147
11148 PR target/42661
11149 * config/mips/mips.opt: Change mad to mmad to match documentation.
11150
35678514
GJL
111512013-01-07 Georg-Johann Lay <avr@gjlay.de>
11152
11153 PR target/55897
11154 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11155 .progmemx.data now.
11156
e5669488
GJL
111572013-01-07 Georg-Johann Lay <avr@gjlay.de>
11158
11159 PR target/55897
11160 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11161 (avr_addrspace_t): Add .section_name field.
11162 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11163 array size.
11164 (avr_addrspace): Same. Initialize .section_name. Remove last
11165 NULL entry. Put __memx into .progmemx.data.
11166 (progmem_section_prefix): Remove.
11167 (avr_asm_init_sections): No need to initialize progmem_section.
11168 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11169 section name prefix.
11170 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11171 retrieve the progmem section.
11172 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11173 boundary to run over avr_addrspace[].
11174 (avr_register_target_pragmas): Ditto.
11175
656e6f37
JJ
111762013-01-06 Jakub Jelinek <jakub@redhat.com>
11177
11178 * varasm.c (output_constant_def_contents): For asan_protect_global
11179 protected strings, adjust DECL_ALIGN if needed, before testing for
11180 anchored symbols.
11181 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11182 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11183 normal decls.
11184 (output_object_block): For asan protected decls, emit asan padding
11185 after their contents.
11186 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11187 (asan_finish_file): Test it here instead.
11188
6edc3e32
UB
111892013-01-07 Nick Clifton <nickc@redhat.com>
11190 Matthias Klose <doko@debian.org>
11191 Doug Kwan <dougkwan@google.com>
11192 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
11193
11194 PR driver/55470
11195 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11196
11197 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11198
11199 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11200
7b0fe4f4 11201 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
11202
11203 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11204
2a095093
GJL
112052013-01-07 Georg-Johann Lay <avr@gjlay.de>
11206
f3b503f4 11207 PR target/54461
2a095093
GJL
11208 * doc/install.texi (Cross-Compiler-Specific Options): Document
11209 --with-avrlibc.
11210
383f9b34
TB
112112013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11212
11213 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11214 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11215 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11216 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11217 vqmovun_high_s64): Fix source operand number and update copyright.
11218
3626621a
RB
112192013-01-07 Richard Biener <rguenther@suse.de>
11220
11221 PR middle-end/55890
11222 * gimple.h (gimple_call_builtin_p): New overload.
11223 * gimple.c (validate_call): New function.
11224 (gimple_call_builtin_p): Likewise.
11225 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11226 Use gimple_call_builtin_p.
11227 (find_func_clobbers): Likewise.
11228 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11229 (strlen_optimize_stmt): Likewise.
11230
8b2ea410
JG
112312013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11232
11233 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11234 (vld1q_dup_*): Likewise.
11235 (vld1_*): Likewise.
11236 (vld1q_*): Likewise.
11237 (vld1_lane_*): Likewise.
11238 (vld1q_lane_*): Likewise.
11239
9713d329
RB
112402013-01-07 Richard Biener <rguenther@suse.de>
11241
11242 * lto-streamer.h (LTO_minor_version): Bump to 2.
11243
3520f7cc
JG
112442013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11245
11246 * config/aarch64/aarch64-protos.h
11247 (aarch64_const_double_zero_rtx_p): Rename to...
11248 (aarch64_float_const_zero_rtx_p): ...this.
11249 (aarch64_float_const_representable_p): New.
11250 (aarch64_output_simd_mov_immediate): Likewise.
11251 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11252 move immediate case.
11253 * config/aarch64/aarch64.c
11254 (aarch64_const_double_zero_rtx_p): Rename to...
11255 (aarch64_float_const_zero_rtx_p): ...this.
11256 (aarch64_print_operand): Allow printing of new constants.
11257 (aarch64_valid_floating_const): New.
11258 (aarch64_legitimate_constant_p): Check for valid floating-point
11259 constants.
11260 (aarch64_simd_valid_immediate): Likewise.
11261 (aarch64_vect_float_const_representable_p): New.
11262 (aarch64_float_const_representable_p): Likewise.
11263 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11264 (aarch64_output_simd_mov_immediate): New.
11265 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11266 (*movdf_aarch64): Likewise.
11267 * config/aarch64/constraints.md (Ufc): New.
11268 (Y): call aarch64_float_const_zero_rtx.
11269 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11270
e167c04d
RB
112712013-01-07 Richard Biener <rguenther@suse.de>
11272
11273 PR tree-optimization/55888
11274 PR tree-optimization/55862
11275 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11276 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11277 not if it is contained therein.
11278
0139aaab
GJL
112792013-01-07 Georg-Johann Lay <avr@gjlay.de>
11280
11281 * config/avr/t-avr: Typo.
11282
4a176b23
GJL
112832013-01-07 Georg-Johann Lay <avr@gjlay.de>
11284
11285 PR55243
11286 * config/avr/t-avr: Don't automatically rebuild
11287 $(srcdir)/config/avr/t-multilib
11288 $(srcdir)/config/avr/avr-tables.opt
11289 $(srcdir)/doc/avr-mmcu.texi
11290 (avr-mcus): New phony target to build them on request.
11291 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11292 * avr/avr-mcus.def: Adjust comments.
11293
c7afdc98
UB
112942013-01-07 Uros Bizjak <ubizjak@gmail.com>
11295
11296 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11297
1ab05c31
RS
112982013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11299
11300 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11301
488e3acc
RS
113022013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11303
11304 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11305
a89599d2
DE
113062013-01-05 David Edelsohn <dje.gcc@gmail.com>
11307
11308 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11309 to generate profiling.
11310 * config/rs6000/aix64.h (LIB_SPEC): Same.
11311
70f09188
AP
113122013-01-04 Andrew Pinski <apinski@cavium.com>
11313
11314 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11315 New function.
11316 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11317
918d445f
UB
113182013-01-04 Uros Bizjak <ubizjak@gmail.com>
11319
11320 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11321 unconditionally.
11322 (ix86_expand_move): Ditto.
11323 (ix86_zero_extend_to_Pmode): Ditto.
11324 (ix86_expand_call): Ditto.
11325 (ix86_expand_special_args_builtin): Ditto.
11326 (ix86_expand_builtin): Ditto.
11327
361618ec
RB
113282013-01-04 Richard Biener <rguenther@suse.de>
11329
11330 PR tree-optimization/55862
11331 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11332 translating them through PHI nodes.
11333
87eab554
MJ
113342013-01-04 Martin Jambor <mjambor@suse.cz>
11335
11336 PR tree-optimization/55755
11337 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11338 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11339
33879b9f
MP
113402013-01-04 Marek Polacek <polacek@redhat.com>
11341
11342 PR middle-end/55859
11343 * opts.c (default_options_optimization): Clarify error message.
11344
3068819a
RB
113452013-01-04 Richard Biener <rguenther@suse.de>
11346
11347 PR middle-end/55863
11348 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11349 reassociation.
11350
0e4ae794
JDA
113512013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11352
11353 PR target/53789
11354 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
11355 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11356 references.
0e4ae794 11357
65c88cef
RH
113582013-01-03 Richard Henderson <rth@redhat.com>
11359
11360 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11361 after eliminating TLS symbols.
11362
8ac16127
MG
113632013-01-03 Marc Glisse <marc.glisse@inria.fr>
11364
11365 PR bootstrap/50167
11366 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11367 * graphite-poly.c (debug_gmp_value): Likewise.
11368
bb664f09
UB
113692013-01-03 Uros Bizjak <ubizjak@gmail.com>
11370
11371 PR target/55712
11372 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11373 selected code model, define __code_mode_small__, __code_model_medium__,
11374 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11375 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11376 xchg temporary register with %k. Declare temporary register as
11377 early clobbered.
11378 [__x86_64__]: For medium and large code models, preserve %rbx register.
11379
bcf1ef00
RB
113802013-01-03 Richard Biener <rguenther@suse.de>
11381
0506634a 11382 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
11383 (dump_subscript): Adjust.
11384 (finalize_ddr_dependent): Do not dump redundant info.
11385 (analyze_siv_subscript): Adjust.
11386 (subscript_dependence_tester): Likewise.
11387 (compute_affine_dependence): Likewise.
11388
59fd17e3
RB
113892013-01-03 Richard Biener <rguenther@suse.de>
11390
11391 Revert
11392 2013-01-03 Richard Biener <rguenther@suse.de>
11393
11394 PR tree-optimization/55857
11395 * tree-vect-stmts.c (vectorizable_load): Do not setup
11396 re-alignment for invariant loads.
11397
11398 2013-01-02 Richard Biener <rguenther@suse.de>
11399
11400 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11401 invariant load do not generate a vector load from the scalar location.
59fd17e3 11402
595c2679
RB
114032013-01-03 Richard Biener <rguenther@suse.de>
11404
11405 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11406 for not vectorizing.
11407 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11408 not build INDIRECT_REFs, call get_name once only.
11409 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11410 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11411
90bb7d7a
RB
114122013-01-03 Richard Biener <rguenther@suse.de>
11413
11414 PR tree-optimization/55857
11415 * tree-vect-stmts.c (vectorizable_load): Do not setup
11416 re-alignment for invariant loads.
11417
f09b77ca
RB
114182013-01-03 Richard Biener <rguenther@suse.de>
11419
11420 PR lto/55848
11421 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11422 prefer a built-in decl.
11423
3461a16e
JJ
114242013-01-03 Jakub Jelinek <jakub@redhat.com>
11425
df8e2b4f
JJ
11426 * gcc.c (process_command): Update copyright notice dates.
11427 * gcov.c (print_version): Likewise.
11428 * gcov-dump.c (print_version): Likewise.
11429
3461a16e
JJ
11430 PR rtl-optimization/55838
11431 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11432 iv0.step, iv1.step and step.
11433
8b5546d6
JJ
114342013-01-03 Jakub Jelinek <jakub@redhat.com>
11435 Marc Glisse <marc.glisse@inria.fr>
11436
11437 PR tree-optimization/55832
11438 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11439 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11440 integer_{one,zero}_node.
11441
8ab1d2e9
JJ
114422013-01-03 Jakub Jelinek <jakub@redhat.com>
11443
11444 PR debug/54402
11445 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11446 * var-tracking.c (reverse_op): Don't add reverse ops to
11447 VALUEs that have already
0506634a 11448 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 11449
5b9ad1d4
GP
114502013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11451
11452 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11453
e25a6711
TJ
114542013-01-02 Teresa Johnson <tejohnson@google.com>
11455
11456 * dumpfile.c (dump_loc): Print filename with location.
11457 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11458 new location_t parameter to emit complete unroll message with
11459 new dump framework.
11460 (canonicalize_loop_induction_variables): Compute loops location
11461 and pass to try_unroll_loop_completely.
11462 * loop-unroll.c (report_unroll_peel): New function.
11463 (peel_loops_completely): Use new dump format with location
11464 for main dumpfile message, and invoke report_unroll_peel on success.
11465 (decide_unrolling_and_peeling): Ditto.
11466 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11467 by report_unroll_peel.
11468 (decide_peel_completely): Ditto.
11469 (decide_unroll_constant_iterations): Ditto.
11470 (decide_unroll_runtime_iterations): Ditto.
11471 (decide_peel_simple): Ditto.
11472 (decide_unroll_stupid): Ditto.
11473 * cfgloop.c (get_loop_location): New function.
11474 * cfgloop.h (get_loop_location): Declare.
11475
77878621
ST
114762013-01-02 Sriraman Tallam <tmsriram@google.com>
11477
11478 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11479 NULL.
11480
9e65d03e
JDA
114812013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11482
11483 PR middle-end/55198
11484 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11485 BLKmode objects when EXPAND_MEMORY is specified.
11486
6a7da30f
ST
114872013-01-02 Sriraman Tallam <tmsriram@google.com>
11488
11489 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11490 in loop predicate.
11491 (fold_builtin_cpu): Do not share cpu model decls across statements.
11492
e78167f2
JM
114932013-01-02 Jason Merrill <jason@redhat.com>
11494
11495 PR c++/55804
11496 * tree.c (build_array_type_1): Revert earlier change.
11497
8c075fb4
YZ
114982013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11499
11500 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11501 "cortex-a57".
11502 * config/aarch64/aarch64-tune.md: Re-generate.
11503
0682ed3e
RB
115042013-01-02 Richard Biener <rguenther@suse.de>
11505
11506 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11507 invariant load do not generate a vector load from the scalar location.
0682ed3e 11508
b8f6a302
RB
115092013-01-02 Richard Biener <rguenther@suse.de>
11510
11511 PR bootstrap/55784
11512 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11513 * configure: Regenerate.
11514
04b80dbb
RS
115152013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11516
11517 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11518 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11519 (expand_builtin_int_roundingfn_2): Keep the original target around
11520 for the fallback case.
11521
635b0b0c
RS
115222013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11523
11524 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11525 to be clear for sign changes.
11526
42d57399
JH
115272013-01-01 Jan Hubicka <jh@suse.cz>
11528
11529 * ipa-inline-analysis.c: Fix formatting.
11530
5bb6669d
JJ
115312013-01-01 Jakub Jelinek <jakub@redhat.com>
11532
11533 PR tree-optimization/55831
11534 * tree-vect-loop.c (get_initial_def_for_induction): Use
11535 gsi_after_labels instead of gsi_start_bb.
ad41bd84 11536\f
86a2db33 11537Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
11538
11539Copying and distribution of this file, with or without modification,
11540are permitted in any medium without royalty provided the copyright
11541notice and this notice are preserved.