]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
sanitizer_linux.cc (MemoryMappingLayout::Next): Cherry pick upstream r182922.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
19cc6fac
EB
12013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2
3 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
4 <STRING_CST>: Likewise.
5 <VECTOR_CST>: Likewise.
6
c68a6e08
JW
72013-06-01 Janus Weil <janus@gcc.gnu.org>
8 Mikael Morin <mikael@gcc.gnu.org>
9
10 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
11 * config.in: Regenerated.
12 * configure: Regenerated.
13
38e55e5c
JH
142013-06-01 Jan Hubicka <jh@suse.cz>
15
16 PR middle-end/57366
17 * cgraphunit.c (compile): When weakref is not supported,
18 set up transparent aliases before final output pass.
19 * varasm.c (assemble_alias): Do not try to do it here.
20
eb51d2ff
JH
212013-06-01 Jan Hubicka <jh@suse.cz>
22
23 PR middle-end/57467
24 * passes.c (for_per_function): Skip unanalyzed functions.
25
40a7fe1e
JH
262013-06-01 Jan Hubicka <jh@suse.cz>
27
28 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
29 (lto_symtab_merge_symbols_1): ... this one.
30 (lto_symtab_merge_cgraph_nodes): Rename to ...
31 (lto_symtab_merge_symbols): ... this one; simplify.
32 * cgraph.c (same_body_aliases_done): Rename to ...
33 (cpp_implicit_aliases_done): ... this one.
34 (cgraph_create_function_alias): Update.
35 (cgraph_same_body_alias): Update.
36 (dump_cgraph_node): Remove alias dumping; simplify
37 thunk dumping.
38 (verify_edge_corresponds_to_fndecl): Simplify.
39 * cgraph.h (symtab_node_base): Add cpp_implicit_alias,
40 alias_target.
41 (cgraph_node): Remove same_body_alias.
42 (varpool_node): Remove alias_of and extra_name_alias.
43 (same_body_aliases_done): Rename to ..
44 (cpp_implicit_aliases_done): ... this one.
45 (symtab_alias_ultimate_target): Add default parameter.
46 (symtab_resolve_alias): New function.
47 (fixup_same_cpp_alias_visibility): Declare.
48 (cgraph_function_node): Add default parameter.
49 (cgraph_node_asm_name): Likewise.
50 (cgraph_function_or_thunk_node): Add default parameter; do
51 not ICE when it is NULL.
52 (varpool_variable_node): Likewise.
53 * tree-emutls.c (create_emultls_var): Update.
54 (ipa_lower_emutls): Update.
55 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
56 (cgraph_reset_node): Reset alias info.
57 (cgraph_finalize_function): Update.
58 (fixup_same_cpp_alias_visibility): Move to symtab.c.
59 (analyze_function): Simplify.
60 (cgraph_process_same_body_aliases): Simplify.
61 (analyze_functions): Fixup same body aliases.
62 (handle_alias_pairs): Simplify.
63 (assemble_thunk): Update.
64 (assemble_thunks_and_aliases): Update.
65 (output_weakrefs): Rewrite.
66 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
67 (lto_output_varpool_node): Likewise.
68 (compute_ltrans_boundary): Remve assert.
69 (get_alias_symbol): New functoin.
70 (input_node): Rewrite alias handling.
71 (input_varpool_node): Likewise.
72 * ipa-pure-const.c (propagate_pure_const): Fix formating.
73 * ipa.c (process_references): Handle weakrefs correctly.
74 (symtab_remove_unreachable_nodes): Likewise.
75 * trans-mem.c (get_cg_data): Update.
76 (ipa_tm_create_version_alias): Update.
77 (ipa_tm_execute): Update.
78 * symtab.c (dump_symtab_base): Dump aliases.
79 (verify_symtab_base): Verify aliases.
80 (symtab_node_availability): New function.
81 (symtab_alias_ultimate_target): Simplify.
82 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
83 handle all the fixup cases.
84 (symtab_resolve_alias): New function.
85 * passes.c (ipa_write_summaries): Handle weakrefs.
86 * varpool.c (varpool_analyze_node): Simplify.
87 (assemble_aliases): Update.
88 (varpool_create_variable_alias): Simplify.
89 (varpool_extra_name_alias): Simplify.
90 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
91 (lto_symtab_merge_symbols): ... this one.
92
21759881
DT
932013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
94
95 Revert
96 PR rtl-optimization/57268
97 * sched-deps.c (sched_analyze_2): Flush dependence lists if
98 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
99
daf4e940
TB
1002013-06-01 Tobias Burnus <burnus@net-b.de>
101
102 Partially reverted:
103 2013-05-31 Tobias Burnus <burnus@net-b.de>
104
105 PR middle-end/57073
106 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
107 further up.
108
c359d8d0
DT
1092013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
110
111 PR rtl-optimization/57268
112 * sched-deps.c (sched_analyze_2): Flush dependence lists if
113 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
114
4172215d
EB
1152013-05-31 Eric Botcazou <ebotcazou@adacore.com>
116
117 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
118 unordered comparison operators when -fno-trapping-math is in effect
119 on the e500.
120 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
121 and implement unordered comparison operators properly on the e500.
122
a8c50132
EB
1232013-05-31 Eric Botcazou <ebotcazou@adacore.com>
124
125 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
126 for constant scalar integers.
127 (simplify_relational_operation_1): Likewise.
128
44626634
SB
1292013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
130
131 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
132 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
133 Fix comment.
134
55805e54
YR
1352013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
136 Igor Zamyatin <igor.zamyatin@intel.com>
137
138 Silvermont (SLM) architecture performance tuning.
139 * config/i386/i386.h (enum ix86_tune_indices): Add
140 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
141 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
142
143 * config/i386/i386.c (initial_ix86_tune_features)
144 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
145 (ix86_lea_outperforms): Handle Silvermont tuning.
146 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
147 call.
148 (ix86_use_lea_for_mov): Likewise.
149 (ix86_avoid_lea_for_addr): Likewise.
150 (ix86_lea_for_add_ok): Likewise.
151 (exact_dependency_1): New function.
152 (exact_store_load_dependency): Likewise.
153 (ix86_adjust_cost): Handle Silvermont tuning.
154 (do_reoder_for_imul): Likewise.
155 (swap_top_of_ready_list): New function.
156 (ix86_sched_reorder): Changed to handle Silvermont tuning.
157
158 * config/i386/i386.md (peepholes that split memory operand in fp
159 converts): New.
160
e19c9de2
MS
1612013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
162
163 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
164 Remove un-necessary braces.
165
38e6c9a6
MS
1662013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
167
168 * config/aarch64/aarch64.c (aarch64_classify_symbol):
169 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
170
e3530904
TB
1712013-05-31 Tobias Burnus <burnus@net-b.de>
172
173 PR middle-end/57073
174 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
175 further up.
176
b6af05a9
KT
1772013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
178
179 PR target/56315
180 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
181 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
182 * config/arm/neon.md (iordi3_neon): Remove.
183 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
184 * config/arm/predicates.md (imm_for_neon_logic_operand):
185 Move to earlier in the file.
186 (neon_logic_op2): Likewise.
187 (arm_iordi_operand_neon): New predicate.
188
f800c166
RB
1892013-05-31 Richard Biener <rguenther@suse.de>
190
191 PR tree-optimization/57478
192 PR tree-optimization/57453
193 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
194 are life as well.
195
e571fa59
KP
1962013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
197
198 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
199 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
200
0fa6e0ef
TB
2012013-05-30 Tobias Burnus <burnus@net-b.de>
202 Thomas Koenig <tkoenig@gcc.gnu.org>
203
204 PR middle-end/57073
205 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
206 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
207
4688ddf5
SB
2082013-05-30 Steven Bosscher <steven@gcc.gnu.org>
209
0fa6e0ef 210 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 211
3b9ceb4b
VM
2122013-05-30 Vladimir Makarov <vmakarov@redhat.com>
213
214 * target.def (register_usage_leveling_p): New hook.
215 * targhooks.c (default_register_usage_leveling_p): New.
216 * targhooks.h (default_register_usage_leveling_p): New prototype.
217 * lra-assigns.c (register_usage_leveling_p): Use the hook.
218 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
219 * doc/tm.texi: Update.
220 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
221
65f9e789
IB
2222013-05-30 Ian Bolton <ian.bolton@arm.com>
223
224 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
225 (*insv_reg<mode>): New define_insn.
226
ca035367
JR
2272013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
228
229 PR rtl-optimization/57439
230 * postreload.c (move2add_valid_value_p): Check that we have
231 a zero subreg_regno_offset when accessing the register in
232 the requested mode.
233
0b871ccf
YR
2342013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
235 Igor Zamyatin <igor.zamyatin@intel.com>
236
237 Silvermont (SLM) architecture pipeline model, tuning and
238 insn selection.
239 * config.gcc: Add slm config options and target.
240
241 * config/i386/slm.md: New.
242
243 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
244
245 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
246 PROCESSOR_SLM.
247 (ix86_target_macros_internal): Likewise.
248
249 * gcc/config/i386/i386.c (slm_cost): New cost.
250 (m_SLM): New macro flag.
251 (initial_ix86_tune_features): Set m_SLM.
252 (x86_accumulate_outgoing_args): Likewise.
253 (x86_arch_always_fancy_math_387): Likewise.
254 (processor_target_table): Add slm cost.
255 (cpu_names): Add slm cpu name.
256 (x86_option_override_internal): Set SLM ISA.
257 (ix86_issue_rate): New case PROCESSOR_SLM.
258 (ia32_multipass_dfa_lookahead): Likewise.
259 (fold_builtin_cpu): Add slm.
260
261 * config/i386/i386.h (TARGET_SLM): New target macro.
262 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
263 (processor_type): Add PROCESSOR_SLM.
264
265 * config/i386/i386.md (cpu): Add new value "slm".
266 (slm.md): Include slm.md.
267
268 * libgcc/config/i386/cpuinfo.c (INTEL_SLM): New enum value.
269
24d5b097
XG
2702013-05-30 Bernd Schmidt <bernds@codesourcery.com>
271 Zhenqiang Chen <zhenqiang.chen@linaro.org>
272
273 * config/arm/arm-protos.h: Add and update function protos.
274 * config/arm/arm.c (use_simple_return_p): New added.
275 (thumb2_expand_return): Check simple_return flag.
276 * config/arm/arm.md: Add simple_return and conditional simple_return.
277 * config/arm/iterators.md: Add iterator for return and simple_return.
278
c1cccc15
ZC
2792013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
280
281 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
282 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
283 (arm_emit_vfp_multi_reg_pop): Likewise.
284 (thumb2_emit_ldrd_pop): Likewise.
285 (arm_expand_epilogue): Add misc REG_CFA notes.
286 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
287
3a4f280b
LC
2882013-05-29 Lawrence Crowl <crowl@google.com>
289
290 * config/arm/t-arm: Update for below.
291
292 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
293 Change type to hash_table. Update dependent calls and types.
294
295 * config/i386/t-cygming: Update for below.
296
297 * config/i386/t-interix: Update for below.
298
299 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
300 Change type to hash_table. Update dependent calls and types.
301 (i386_find_on_wrapper_list::wrappers): Likewise.
302
303 * config/ia64/t-ia64: Update for below.
304
305 * config/ia64/ia64.c (bundle_state_table):
306 Change type to hash_table. Update dependent calls and types.
307
308 * config/mips/mips.c (mips_reorg_process_insns::htab):
309 Change type to hash_table. Update dependent calls and types.
310
311 * config/sol2.c (solaris_comdat_htab):
312 Change type to hash_table. Update dependent calls and types.
313
314 * config/t-sol2: Update for above.
315
1388a0e3
TJ
3162013-05-29 Teresa Johnson <tejohnson@google.com>
317
318 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
319 functions are not yet marked as defined.
320
a5965b52
MM
3212013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
322 Pat Haugen <pthaugen@us.ibm.com>
323 Peter Bergner <bergner@vnet.ibm.com>
324
325 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
326 instructions.
327 (VEC_A): Likewise.
328 (VEC_C): Likewise.
329 (vrotl<mode>3): Likewise.
330 (vashl<mode>3): Likewise.
331 (vlshr<mode>3): Likewise.
332 (vashr<mode>3): Likewise.
333
334 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
335 support for power8 V2DI builtins.
336
337 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
338 power8 V2DI builtins.
339 (vupkhsw): Likewise.
340 (vupklsw): Likewise.
341 (vaddudm): Likewise.
342 (vminsd): Likewise.
343 (vmaxsd): Likewise.
344 (vminud): Likewise.
345 (vmaxud): Likewise.
346 (vpkudum): Likewise.
347 (vpksdss): Likewise.
348 (vpkudus): Likewise.
349 (vpksdus): Likewise.
350 (vrld): Likewise.
351 (vsld): Likewise.
352 (vsrd): Likewise.
353 (vsrad): Likewise.
354 (vsubudm): Likewise.
355 (vcmpequd): Likewise.
356 (vcmpgtsd): Likewise.
357 (vcmpgtud): Likewise.
358 (vcmpequd_p): Likewise.
359 (vcmpgtsd_p): Likewise.
360 (vcmpgtud_p): Likewise.
361 (vupkhsw): Likewise.
362 (vupklsw): Likewise.
363 (vaddudm): Likewise.
364 (vmaxsd): Likewise.
365 (vmaxud): Likewise.
366 (vminsd): Likewise.
367 (vminud): Likewise.
368 (vpksdss): Likewise.
369 (vpksdus): Likewise.
370 (vpkudum): Likewise.
371 (vpkudus): Likewise.
372 (vrld): Likewise.
373 (vsld): Likewise.
374 (vsrad): Likewise.
375 (vsrd): Likewise.
376 (vsubudm): Likewise.
377
378 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
379 support for power8 V2DI instructions.
380
381 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
382 power8 V2DI instructions. Combine pack and unpack insns to use an
383 iterator for each mode. Check whether a particular mode supports
384 Altivec instructions instead of just checking TARGET_ALTIVEC.
385 (UNSPEC_VPKUWUM): Likewise.
386 (UNSPEC_VPKSHSS): Likewise.
387 (UNSPEC_VPKSWSS): Likewise.
388 (UNSPEC_VPKUHUS): Likewise.
389 (UNSPEC_VPKSHUS): Likewise.
390 (UNSPEC_VPKUWUS): Likewise.
391 (UNSPEC_VPKSWUS): Likewise.
392 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
393 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
394 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
395 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
396 (UNSPEC_VUPKHSB): Likewise.
397 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
398 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
399 (UNSPEC_VUPKHSH): Likewise.
400 (UNSPEC_VUPKLSB): Likewise.
401 (UNSPEC_VUPKLSH): Likewise.
402 (VI2): Likewise.
403 (VI_char): Likewise.
404 (VI_scalar): Likewise.
405 (VI_unit): Likewise.
406 (VP): Likewise.
407 (VP_small): Likewise.
408 (VP_small_lc): Likewise.
409 (VU_char): Likewise.
410 (add<mode>3): Likewise.
411 (altivec_vaddcuw): Likewise.
412 (altivec_vaddu<VI_char>s): Likewise.
413 (altivec_vadds<VI_char>s): Likewise.
414 (sub<mode>3): Likewise.
415 (altivec_vsubcuw): Likewise.
416 (altivec_vsubu<VI_char>s): Likewise.
417 (altivec_vsubs<VI_char>s): Likewise.
418 (altivec_vavgs<VI_char>): Likewise.
419 (altivec_vcmpbfp): Likewise.
420 (altivec_eq<mode>): Likewise.
421 (altivec_gt<mode>): Likewise.
422 (altivec_gtu<mode>): Likewise.
423 (umax<mode>3): Likewise.
424 (smax<mode>3): Likewise.
425 (umin<mode>3): Likewise.
426 (smin<mode>3): Likewise.
427 (altivec_vpkuhum): Likewise.
428 (altivec_vpkuwum): Likewise.
429 (altivec_vpkshss): Likewise.
430 (altivec_vpkswss): Likewise.
431 (altivec_vpkuhus): Likewise.
432 (altivec_vpkshus): Likewise.
433 (altivec_vpkuwus): Likewise.
434 (altivec_vpkswus): Likewise.
435 (altivec_vpks<VI_char>ss): Likewise.
436 (altivec_vpks<VI_char>us): Likewise.
437 (altivec_vpku<VI_char>us): Likewise.
438 (altivec_vpku<VI_char>um): Likewise.
439 (altivec_vrl<VI_char>): Likewise.
440 (altivec_vsl<VI_char>): Likewise.
441 (altivec_vsr<VI_char>): Likewise.
442 (altivec_vsra<VI_char>): Likewise.
443 (altivec_vsldoi_<mode>): Likewise.
444 (altivec_vupkhsb): Likewise.
445 (altivec_vupkhs<VU_char>): Likewise.
446 (altivec_vupkls<VU_char>): Likewise.
447 (altivec_vupkhsh): Likewise.
448 (altivec_vupklsb): Likewise.
449 (altivec_vupklsh): Likewise.
450 (altivec_vcmpequ<VI_char>_p): Likewise.
451 (altivec_vcmpgts<VI_char>_p): Likewise.
452 (altivec_vcmpgtu<VI_char>_p): Likewise.
453 (abs<mode>2): Likewise.
454 (vec_unpacks_hi_v16qi): Likewise.
455 (vec_unpacks_hi_v8hi): Likewise.
456 (vec_unpacks_lo_v16qi): Likewise.
457 (vec_unpacks_hi_<VP_small_lc>): Likewise.
458 (vec_unpacks_lo_v8hi): Likewise.
459 (vec_unpacks_lo_<VP_small_lc>): Likewise.
460 (vec_pack_trunc_v8h): Likewise.
461 (vec_pack_trunc_v4si): Likewise.
462 (vec_pack_trunc_<mode>): Likewise.
463
464 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
465 V2DI builtins.
466 (vec_vmaxsd): Likewise.
467 (vec_vmaxud): Likewise.
468 (vec_vminsd): Likewise.
469 (vec_vminud): Likewise.
470 (vec_vpksdss): Likewise.
471 (vec_vpksdus): Likewise.
472 (vec_vpkudum): Likewise.
473 (vec_vpkudus): Likewise.
474 (vec_vrld): Likewise.
475 (vec_vsld): Likewise.
476 (vec_vsrad): Likewise.
477 (vec_vsrd): Likewise.
478 (vec_vsubudm): Likewise.
479 (vec_vupkhsw): Likewise.
480 (vec_vupklsw): Likewise.
481
e70670cf
JH
4822013-05-29 Jan Hubicka <jh@suse.cz>
483
484 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
485 flags; reorder rest of fields in more consistent way.
486 (varpool_node): Remove analyzed, finalized and alias.
487 (cgraph_ndoe): Likewise.
488 (symtab_alias_ultimate_target): New function.
489 (cgraph_function_node): Move offline.
490 (cgraph_reset_node): Declare.
491 (cgraph_comdat_can_be_unshared_p): Remove.
492 (varpool_remove_initializer): Declare.
493 (varpool_first_defined_variable, varpool_next_defined_variable
494 cgraph_first_defined_function, cgraph_next_defined_function): Update.
495 (cgraph_function_with_gimple_body_p): Update.
496 (varpool_all_refs_explicit_p): Update.
497 (symtab_alias_target): New function.
498 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
499 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
500 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
501 (varpool_variable_node): Likewise.
502 * cgraph.c (cgraph_create_function_alias): Update.
503 (cgraph_add_thunk): Update.
504 (cgraph_remove_node): Update.
505 (dump_cgraph_node): Do not dump removed flags.
506 (cgraph_function_body_availability): Update.
507 (cgraph_propagate_frequency): Update.
508 (verify_cgraph_node): Check sanity of local flag.
509 (cgraph_function_node): Move here from cgraph.h; revamp for
510 cgraph_function_or_thunk_node.
511 * lto-symtab.c (lto_varpool_replace_node): Update.
512 (lto_symtab_resolve_can_prevail_p): Update.
513 (lto_symtab_merge_cgraph_nodes): Update.
514 * ipa-cp.c (determine_versionability, initialize_node_lattices,
515 propagate_constants_accross_call, devirtualization_time_bonus,
516 ipcp_propagate_stage): Update.
517 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
518 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
519 * ipa-reference.c (propagate): Update.
520 (write_node_summary_p): Update.
521 * toplev.c (wrapup_global_declaration_2): Update.
522 * cgraphunit.c (cgraph_analyze_function): Rename to ...
523 (analyze_function) ... this one.
524 (cgraph_process_new_functions): Update.
525 (cgraph_reset_node): Export.
526 (cgraph_finalize_function): Update.
527 (cgraph_add_new_function): Update.
528 (process_function_and_variable_attributes): Update.
529 (varpool_finalize_decl): Update.
530 (symbol_finalized): Remove.
531 (symbol_finalized_and_needed): Rename to ...
532 (symbol_defined_and_needed): ... update.
533 (cgraph_analyze_functions): Update.
534 (handle_alias_pairs): Update.
535 (mark_functions_to_output): Update.
536 (assemble_thunk): Update.
537 (output_in_order): Update.
538 (output_weakrefs): Update.
539 (finalize_compilation_unit): Update.
540 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
541 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
542 input_node, input_varpool_node): Update.
543 * dbxout.c (dbxout_expand_expr): Update.
544 * cgraphclones.c (cgraph_clone_node): Update.
545 (cgraph_copy_node_for_versioning): Update.
546 (cgraph_materialize_clone): Update.
547 (cgraph_materialize_all_clones): Update.
548 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
549 propagate_pure_const, propagate_nothrow): Update.
550 * lto-streamer-out.c (lto_output, write_symbol): Update.
551 * ipa-utils.c (ipa_reverse_postorder): Update.
552 * ipa-inline.c (can_inline_edge_p): Update.
553 (update_caller_keys, ipa_inline): Update.
554 * dwarf2out.c (reference_to_unused,
555 premark_types_used_by_global_vars_helper): Update.
556 * tree-eh.c (tree_could_trap_p): Update.
557 * ipa-split.c (consider_split, execute_split_functions): Update.
558 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
559 has_addr_references_p): Update;
560 move ahead in file for better readability.
561 (process_references): Simplify.
562 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
563 bodies are removed.
564 (cgraph_comdat_can_be_unshared_p): Make static.
565 (cgraph_externally_visible_p): Update.
566 (varpool_externally_visible_p): Update.
567 (function_and_variable_visibility): Update.
568 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
569 ipa_tm_mark_force_output_node): Update.
570 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
571 estimate_edge_devirt_benefit, inline_generate_summary,
572 inline_write_summary): Update.
573 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
574 * ipa-prop.c (ipa_compute_jump_functions): Update.
575 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
576 read_replacements_section): Update.
577 * varasm.c (mark_decl_referenced): Update.
578 (assemble_alias, dump_tm_clone_pairs): Update.
579 * tree-inline.c (copy_bb): Update.
580 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
581 Update.
582 * symtab.c (dump_symtab_base): Print new flags.
583 (verify_symtab_base): Verify new flags.
584 (symtab_alias_ultimate_target): New function.
585 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
586 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
587 Update.
588 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
589 * i386.c (ix86_get_function_versions_dispatcher,
590 ix86_generate_version_dispatcher_body): Update.
591 (fold_builtin_cpu): Use varpool_add_new_variable.
592 * varpool.c (varpool_remove_initializer): Break out from ...
593 (varpool_remove_node): ... this one.
594 (dump_varpool_node, varpool_node_for_asm,
595 cgraph_variable_initializer_availability, varpool_analyze_node,
596 varpool_assemble_decl, varpool_remove_unreferenced_decls,
597 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
598
182802ad
JH
5992013-05-29 Jan Hubicka <jh@suse.cz>
600
601 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
602
8190b609
ER
6032013-05-29 Easwaran Raman <eraman@google.com>
604
605 PR tree-optimization/57442
606 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
607 when control exits the main loop.
608
69f5aa9b
SKS
6092013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
610
611 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
612 and RX600.
613 * rx/rx.opt: Add macro for rx100 with string rx100 and value
614 RX100.
615 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
616 * rx/t-rx: Add rx100 under multi library matches option for nofpu
617 option.
618
4b847da9
BS
6192013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
620
621 PR tree-optimization/57441
622 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
623 Don't limit size of incr_vec to number of candidates.
624
4fc43c39
SE
6252013-05-29 Steve Ellcey <sellcey@imgtec.com>
626
627 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
628 and mips16 directories.
629 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
630 mips16.
631 (MULTILIB_DIRNAMES): Ditto.
632 (MULTILIB_EXCEPTIONS): Add new exceptions.
633 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
634 (MULTILIB_DIRNAMES): Ditto.
635 (MULTILIB_EXCEPTIONS): Add new exceptions.
636
a5350ddc
CSS
6372012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
638 Marcus Shawcroft <marcus.shawcroft@arm.com>
639
640 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
641 SYMBOL_TINY_ABSOLUTE.
642 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
643 SYMBOL_TINY_ABSOLUTE.
644 (aarch64_expand_mov_immediate): Likewise.
645 (aarch64_classify_symbol): Likewise.
646 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
647 Permit SYMBOL_TINY_ABSOLUTE.
648 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
649
17f4d4bf
CSS
6502013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
651 Marcus Shawcroft <marcus.shawcroft@arm.com>
652
653 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
654 Refactor if/switch. Replace gcc_assert with if.
655
c0186656
GG
6562013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
657
658 * config/i386/i386.c (initial_ix86_tune_features): Enable
659 FP Reassociation for AMD bdver1 and bdver2.
660
d20188f3
MJ
6612013-05-29 Martin Jambor <mjambor@suse.cz>
662
663 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
664 and IMAGPART_EXPR do not occur within other handled_components.
665
292cba13
RB
6662013-05-29 Richard Biener <rguenther@suse.de>
667
668 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
669 access on whether the use is in the BB we currently try to
670 vectorize.
671 (vect_bb_vectorization_profitable_p): Pass the BB we currently
672 vectorize to vect_bb_slp_scalar_cost.
673
6eddf228
RB
6742013-05-29 Richard Biener <rguenther@suse.de>
675
676 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
677 computing scalar cost offsetted by stmts that are kept live
678 by scalar uses.
679 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
680 for computation of scalar cost.
681
7df36117
SE
6822013-05-28 Steve Ellcey <sellcey@mips.com>
683
684 * config/mips/mips-cpus.def (mips32r2): Change processor type.
685
36536d79
BI
6862013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
687
688 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
689 array notation built-in reduction functions.
690 * doc/passes.texi (Passes): Added documentation about changes done
691 for Cilk Plus.
692 * doc/invoke.texi (C Dialect Options): Added documentation about
693 the -fcilkplus flag.
694 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
695 (BUILTINS_DEF): Depend on cilkplus.def.
696 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
697 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
698 * cilkplus.def: New file.
699
b49eefa5
JR
7002013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
701
702 PR rtl-optimization/57439
703 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
704
9daf6dbb
ER
7052013-05-28 Easwaran Raman <eraman@google.com>
706
707 PR tree-optimization/57337
708 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
709 (find_insert_point): Correctly identify the insertion point
710 when two statements with the same UID is compared.
711
fbd7e877
RB
7122013-05-28 Richard Biener <rguenther@suse.de>
713
714 PR tree-optimization/56787
715 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
716 from the list of data references.
717 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
718 clobbers.
719 (vect_analyze_loop_operations): Likewise.
720 (vect_transform_loop): Remove clobbers.
721
bbba1117
MJ
7222013-05-28 Martin Jambor <mjambor@suse.cz>
723
724 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
725 and REALPART_EXPRs have scalar type.
726
bd388c2a
RB
7272013-05-28 Richard Biener <rguenther@suse.de>
728
729 PR tree-optimization/57411
730 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
731 virtual operands.
732 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
733 virtual operand propagation.
734
2f56a311
EB
7352013-05-28 Eric Botcazou <ebotcazou@adacore.com>
736
737 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
738 destination register for bmasksi_vis.
739 (vector_init_bshuffle): Likewise.
740 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
741
5c3eacbb
EB
7422013-05-28 Eric Botcazou <ebotcazou@adacore.com>
743
744 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
745 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
746 mode if the instruction isn't available in the original mode.
747 * config/sparc/sparc.opt (mfix-ut699): New option.
748 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
749 (divdf3): Turn into expander.
750 (divdf3_nofix): New insn.
751 (divdf3_fix): Likewise.
752 (divsf3): Disable if -mfix-ut699.
753 (sqrtdf2): Turn into expander.
754 (sqrtdf2_nofix): New insn.
755 (sqrtdf2_fix): Likewise.
756 (sqrtsf2): Disable if -mfix-ut699.
757
a1756c0a
RB
7582013-05-27 Richard Biener <rguenther@suse.de>
759
760 PR middle-end/57412
761 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
762 block for the new loop.
763
5a892248
RB
7642013-05-27 Richard Biener <rguenther@suse.de>
765
766 PR tree-optimization/57343
767 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
768 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
769 (number_of_iterations_cond): Do not build the folded tree.
770
d1de852b
RB
7712013-05-27 Richard Biener <rguenther@suse.de>
772
773 Revert
774 PR middle-end/57381
775 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
776 OEP_CONSTANT_ADDRESS_OF retained.
777
778 PR tree-optimization/57417
779 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
780 for unchanged base.
781 (set_ssa_val_to): Compare addresses using
782 get_addr_base_and_unit_offset.
783
7894bc6b
JR
7842013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
785
786 PR rtl-optimization/56833
787 * postreload.c (move2add_record_mode): New function.
788 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
789 (move2add_use_add2_insn): Use move2add_record_sym_value.
790 (move2add_use_add3_insn): Likewise.
791 (reload_cse_move2add): Use move2add_valid_value_p and
792 move2add_record_mode. Invalidate call-clobbered and REG_INC
793 affected regs by setting reg_mode to VOIDmode.
794 (move2add_note_store): Don't pretend the inside of a SUBREG is
795 the actual destination. Invalidate single/leading registers by
796 setting reg_mode to VOIDmode.
797 Use move2add_record_sym_value, move2add_valid_value_p and
798 move2add_record_mode.
799
b03be25f
RB
8002013-05-27 Richard Biener <rguenther@suse.de>
801
802 PR tree-optimization/57396
803 * tree-affine.c (double_int_constant_multiple_p): Properly
804 return false for val == 0 and div != 0.
805
44e88db2
RS
8062013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
807
808 * config/mips/mips.h: Use #elif in preprocessor conditions.
809
3b859704
RS
8102013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
811
812 PR target/53916
813 * config/mips/constraints.md (kl): New constraint.
814 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
815 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
816 constraint for operand 0. Split after CSE for MIPS16. Emit a move
817 from LO for MIPS16.
818 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
819
c979d5f5
RS
8202013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
821
822 PR target/55777
823 * config/mips/mips.c (mips_can_inline_p): New function.
824 (TARGET_CAN_INLINE_P): Define.
825
8e90de43
SB
8262013-05-25 Steven Bosscher <steven@gcc.gnu.org>
827
828 * sched-int.h (ds_t, dw_t): Make unsigned int.
829 Fix documentation that describes how all the ds_t bits are used.
830 Reserve the last bit for delayed-branch scheduling.
831 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
832 (BITS_PER_DEP_WEAK): Fix definition and documentation.
833 (gen_dep_weak_1): Remove prototype.
834 * sched-deps.c (get_dep_weak_1): Make static.
835 * target.def (speculate_insn, needs_block_p, gen_spec_check,
836 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
837 * doc/tm.texi: Regenerate.
838 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
839
cb5cb194
SB
8402013-05-24 Steven Bosscher <steven@gcc.gnu.org>
841
842 PR debug/56950
843 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
844
5bd93ff6
NS
8452013-05-24 Nathan Sidwell <nathan@codesourcery.com>
846 Sandra Loosemore <sandra@codesourcery.com>
847
848 * config.gcc (powerpc-*): Allow native for with-cpu.
849
2343af65
JL
8502013-05-24 Jeff Law <law@redhat.com>
851
852 PR tree-optimization/57124
853 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
854 conversion feeding a condition if the range has an overflow
855 if -fstrict-overflow. Add warnings for when we do make the
856 transformation.
857
3ad695b9
DC
8582013-05-24 Dehao Chen <dehao@google.com>
859
04960246 860 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
861 (locus_discrim_hasher): Likewise.
862 (locus_discrim_hasher::hash): Likewise.
863 (locus_discrim_hasher::equal): Likewise.
864
82338059
MJ
8652013-05-24 Martin Jambor <mjambor@suse.cz>
866
867 PR tree-optimization/57294
868 * cgraph.h (ipa_record_stmt_references): Declare.
869 * cgraphbuild.c (ipa_record_stmt_references): New function.
870 (build_cgraph_edges): Use ipa_record_stmt_references.
871 (rebuild_cgraph_edges): Likewise.
872 (cgraph_rebuild_references): Likewise.
873 * ipa-prop.c (ipa_modify_call_arguments): Discard references
874 associated with the old statement and build references from the
875 newly built statements.
876 * ipa-ref.c (ipa_remove_stmt_references): New function.
877 * ipa-ref.h (ipa_remove_stmt_references): Declare.
878
1ccd4874
VM
8792013-05-24 Vladimir Makarov <vmakarov@redhat.com>
880
55805e54 881 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 882 mem-mem moves.
55805e54 883 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 884 too.
55805e54 885 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
886 secondary memory moves.
887 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
888 reg set up in the current insn.
889
25e25c73
DC
8902013-05-24 Dehao Chen <dehao@google.com>
891
04960246 892 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
893 hash function.
894 (locus_descrim_hasher::equal): Likewise.
04960246 895 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
896 (make_edges): Likewise.
897 (next_discriminator_for_locus): Likewise.
898 (same_line_p): Likewise.
899 (assign_discriminators): Likewise.
900 (make_cond_expr_edges): Likewise.
901 (make_gimple_switch_edges): Likewise.
902 (make_goto_expr_edges): Likewise.
903 (make_gimple_asm_edges): Likewise.
904
50d38551
IB
9052013-05-24 Ian Bolton <ian.bolton@arm.com>
906
907 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
908 X format specifier to only display bottom 16 bits.
909 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
910 immediate to match for operand 2, since it will be masked.
911
aea0101d
RB
9122013-05-24 Richard Biener <rguenther@suse.de>
913
914 PR tree-optimization/57287
915 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
916 all SSA names that occur in abnormal PHIs.
917
634e03d3
AI
9182013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
919
920 PR tree-ssa/57385
921 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
922 that index is not negative.
923
b17c024f
EB
9242013-05-24 Eric Botcazou <ebotcazou@adacore.com>
925
926 PR rtl-optimization/55177
927 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
928 (simplify_byte_swapping_operation): New.
929 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
930 (simplify_relational_operation_1): Deal with BSWAP.
931
46aeac1b
RH
9322013-05-23 Richard Henderson <rth@redhat.com>
933
934 PR target/56742
935 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
936 (ix86_reorg): Call it.
937
70cc1536
UB
9382013-05-23 Uros Bizjak <ubizjak@gmail.com>
939
940 PR target/57379
941 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
942 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
943 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
944
b3851501
CB
9452013-05-23 Christian Bruel <christian.bruel@st.com>
946
947 PR debug/57351
948 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
949
4e194912
CSS
9502013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
951 Marcus Shawcroft <marcus.shawcroft@arm.com>
952
953 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
954 * config/aarch64/constraints.md (Usa): Remove.
955 * doc/md.texi (AArch64 Usa): Remove.
956
83f8c414
CSS
9572013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
958 Marcus Shawcroft <marcus.shawcroft@arm.com>
959
960 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
961 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
962 * config/aarch64/predicates.md (aarch64_const_address): Remove.
963 (aarch64_mov_operand): Use aarch64_mov_operand_p.
964
b5574232
VP
9652013-05-23 Vidya Praveen <vidyapraveen@arm.com>
966
967 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
968 instruction (AdvSIMD).
969 * config/aarch64/aarch64-builtins.c
970 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
971 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
972
76c36cb1 9732013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
974
975 PR middle-end/57347
976 * tree.h (contains_bitfld_component_ref_p): Declare.
977 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
978 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
979 caller.
7d2fb524
MJ
980 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
981 not access a bit-field. Assert all final offsets are byte-aligned.
982
ce521ae6
RB
9832013-05-23 Richard Biener <rguenther@suse.de>
984
985 PR tree-optimization/57380
986 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
987 least one invariant or re-used load.
988 * passes.c (init_optimization_passes): Move pass_phiprop before
989 pass_forwprop.
990
75c7257f
JG
9912013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
992
993 * config/aarch64/aarch64-simd.md
994 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
995
af6d44b5
RB
9962013-05-23 Richard Biener <rguenther@suse.de>
997
998 PR middle-end/57381
999 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1000 OEP_CONSTANT_ADDRESS_OF retained.
1001
bd3647bf
JJ
10022013-05-23 Jakub Jelinek <jakub@redhat.com>
1003
1004 PR middle-end/57344
70cc1536
UB
1005 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1006 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 1007
a55757ea
RB
10082013-05-23 Richard Biener <rguenther@suse.de>
1009
1010 PR rtl-optimization/57341
1011 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1012 instead of true_dependence.
1013
cfb00b41
DM
10142013-05-22 David Malcolm <dmalcolm@redhat.com>
1015
dd1c676f
DM
1016 * bb-reorder.c (branch_threshold): Make const.
1017 (exec_threshold): Ditto.
cfb00b41 1018
f62511da
MM
10192013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1020 Pat Haugen <pthaugen@us.ibm.com>
1021 Peter Bergner <bergner@vnet.ibm.com>
1022
1023 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1024 documentation for the power8 crypto builtins.
1025
1026 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1027
1028 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1029 macros for defining power8 builtin functions.
1030 (BU_P8V_AV_2): Likewise.
1031 (BU_P8V_AV_P): Likewise.
1032 (BU_P8V_VSX_1): Likewise.
1033 (BU_P8V_OVERLOAD_1): Likewise.
1034 (BU_P8V_OVERLOAD_2): Likewise.
1035 (BU_CRYPTO_1): Likewise.
1036 (BU_CRYPTO_2): Likewise.
1037 (BU_CRYPTO_3): Likewise.
1038 (BU_CRYPTO_OVERLOAD_1): Likewise.
1039 (BU_CRYPTO_OVERLOAD_2): Likewise.
1040 (XSCVSPDP): Fix typo, point to the correct instruction.
1041 (VCIPHER): Add power8 crypto builtins.
1042 (VCIPHERLAST): Likewise.
1043 (VNCIPHER): Likewise.
1044 (VNCIPHERLAST): Likewise.
1045 (VPMSUMB): Likewise.
1046 (VPMSUMH): Likewise.
1047 (VPMSUMW): Likewise.
1048 (VPERMXOR_V2DI): Likewise.
1049 (VPERMXOR_V4SI: Likewise.
1050 (VPERMXOR_V8HI: Likewise.
1051 (VPERMXOR_V16QI: Likewise.
1052 (VSHASIGMAW): Likewise.
1053 (VSHASIGMAD): Likewise.
1054 (VPMSUM): Likewise.
1055 (VPERMXOR): Likewise.
1056 (VSHASIGMA): Likewise.
1057
1058 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1059 __CRYPTO__ if the crypto instructions are available.
1060 (altivec_overloaded_builtins): Add support for overloaded power8
1061 builtins.
1062
1063 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1064 support for power8 crypto builtins.
1065 (builtin_function_type): Likewise.
1066 (altivec_init_builtins): Add support for builtins that take vector
1067 long long (V2DI) arguments.
1068
1069 * config/rs6000/crypto.md: New file, define power8 crypto
1070 instructions.
1071
10722013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1073 Pat Haugen <pthaugen@us.ibm.com>
1074 Peter Bergner <bergner@vnet.ibm.com>
1075
1076 * doc/invoke.texi (Option Summary): Add power8 options.
1077 (RS/6000 and PowerPC Options): Likewise.
1078
1079 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1080 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1081 wm, wn, wr documentation.
1082
1083 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1084 registers if direct move instructions are enabled.
1085 (wn): New constraint for no registers.
1086 (wq): New constraint for quad word even GPR registers.
1087 (wr): New constraint if 64-bit instructions are enabled.
1088 (wv): New constraint if power8 vector instructions are enabled.
1089 (wQ): New constraint for quad word memory locations.
1090
1091 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1092 constraint for 0..15 for crypto instructions.
1093 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1094 as GPR and floating point registers.
1095 (int_reg_operand): New predicate to match only GPR registers.
1096 (base_reg_operand): New predicate to match base registers.
1097 (quad_int_reg_operand): New predicate to match even GPR registers
1098 for quad memory operations.
1099 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1100 operations in both GPR and VSX registers.
1101 (quad_memory_operand): New predicate for quad memory operations.
1102 (reg_or_indexed_operand): New predicate for direct move support.
1103
1104 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1105 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1106 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1107 (POWERPC_MASKS): Add power8 options.
1108 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1109 various options.
1110
1111 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1112 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1113
1114 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1115 (-mpower8-fusion): New power8 options.
1116 (-mpower8-fusion-sign): Likewise.
1117 (-mpower8-vector): Likewise.
1118 (-mcrypto): Likewise.
1119 (-mdirect-move): Likewise.
1120 (-mquad-memory): Likewise.
1121
1122 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1123 power8.
1124 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1125 registers.
70cc1536 1126 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
1127 (rs6000_debug_vector_unit): Add p8_vector.
1128 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1129 definitions. Also print fusion state.
1130 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1131 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1132 (rs6000_option_override_internal): Add support for power8.
1133 (rs6000_common_init_builtins): Add debugging for skipped builtins
1134 if -mdebug=builtin.
1135 (rs6000_adjust_cost): Add power8 support.
1136 (rs6000_issue_rate): Likewise.
1137 (insn_must_be_first_in_group): Likewise.
1138 (insn_must_be_last_in_group): Likewise.
1139 (force_new_group): Likewise.
1140 (rs6000_register_move_cost): Likewise.
1141 (rs6000_opt_masks): Likewise.
1142
1143 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1144 power8 capable assembler, default to power7 options.
1145 (TARGET_DIRECT_MOVE): Likewise.
1146 (TARGET_CRYPTO): Likewise.
1147 (TARGET_P8_VECTOR): Likewise.
1148 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1149 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1150 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1151 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1152 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1153 (TARGET_XSCVDPSPN): Likewise.
1154 (TARGET_XSCVSPDPN): Likewsie.
1155 (TARGET_SYNC_HI_QI): Likewise.
1156 (TARGET_SYNC_TI): Likewise.
1157 (MASK_CRYPTO): Likewise.
1158 (MASK_DIRECT_MOVE): Likewise.
1159 (MASK_P8_FUSION): Likewise.
1160 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
1161 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1162 temporary used by some of the direct move instructions to get two FP
1163 temporary registers does not force creation of a stack frame.
f62511da
MM
1164 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1165 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1166 that any VSX registers are tieable, even if they are also an
1167 Altivec vector mode.
1168 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1169 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1170 (RS6000_BTM_CRYPTO): Likewise.
1171 (RS6000_BTM_COMMON): Likewise.
1172
1173 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1174 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1175 (enum rs6000_vector): Add power8 vector support.
1176
73a1a707
RR
11772013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1178
1179 PR target/19599
1180 PR target/57340
1181 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1182 (any_sibcall_could_use_r3): this and handle indirect calls.
1183 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1184
d28073d4
BS
11852013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1186
1187 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1188
bee0b10c
RB
11892013-05-22 Richard Biener <rguenther@suse.de>
1190
1191 PR middle-end/57349
1192 * profile.c (branch_prob): Do not split blocks that are
1193 abnormally receiving from ECF_RETURNS_TWICE functions.
1194
98409b51
RS
11952013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1196
1197 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1198 address mode. Move pointer mode initialization to the same place.
1199
c0602ab8
MZ
12002013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1201
1202 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1203 while it has any effect.
1204
4f7a634e
ER
12052013-05-21 Easwaran Raman <eraman@google.com>
1206
1207 PR tree-optimization/57322
9daf6dbb
ER
1208 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1209 UID of the statement added to the BB to be 1.
4f7a634e 1210
a4ce1258
JJ
12112013-05-21 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR tree-optimization/57331
70cc1536
UB
1214 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1215 of conversion from pointer type to integral type with integer.
a4ce1258 1216
1b14621a
MJ
12172013-05-21 Martin Jambor <mjambor@suse.cz>
1218
1219 PR lto/57289
1220 * ipa-prop.c (ipa_read_node_info): Process param_used and
1221 controlled_uses in the same order as when writing.
1222
e60661f0
MG
12232013-05-21 Magnus Granberg <baldrick@free.fr>
1224
1225 PR plugins/56754
ee49aa34 1226 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 1227
4a61be9a
RB
12282013-05-21 Richard Biener <rguenther@suse.de>
1229
1230 PR tree-optimization/57318
1231 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1232 estimate stmts with side-effects as likely eliminated.
1233
c52da5f7
RB
12342013-05-21 Richard Biener <rguenther@suse.de>
1235
1236 PR tree-optimization/57330
1237 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1238 preserve the call stmts fntype.
1239
7ec67e2a
RB
12402013-05-21 Richard Biener <rguenther@suse.de>
1241
1242 PR tree-optimization/57303
1243 * tree-ssa-sink.c (statement_sink_location): Improve killing
1244 stmt detection and properly handle self-assignments.
1245
b112d513
CB
12462013-05-21 Christian Bruel <christian.bruel@st.com>
1247
55805e54
YR
1248 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1249 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
1250 registers. Set register size out of the PARALLEL loop.
1251
14c2ec26
OE
12522013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1253
1254 PR target/56547
1255 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1256 (*fmasf4, *fmasf4_media): New insns.
1257
da734fa1
RS
12582013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1259
1260 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1261 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1262 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1263 (mips_idiv_insns): Update the comments to say that the returned
1264 instruction counts are in units of BASE_INSN_LENGTH.
1265 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1266 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1267 using 2 rather than 4 as the length of indirect MIPS16 and
1268 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1269 length of a NOP. Don't divide MIPS16 lengths by 2.
1270 (mips16_split_long_branches): Assume a branch is long if the
1271 length is greater than 4 rather than 8.
1272 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1273 rather than multiplying them by 2. Multiply instruction counts
1274 by BASE_INSN_LENGTH rather than 4.
1275 (*jump_mips16, tls_get_tp_mips16_<mode>)
1276 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1277
13719e8b
RS
12782013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1279
1280 * config/mips/mips.md (extended_mips16): Remove branch case.
1281 (length): Remove duplicated extended_mips16 test.
1282
c3850d14
RS
12832013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1284
1285 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1286
8da2e059
RS
12872013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1288
1289 * recog.h (Recog_data): Rename to...
1290 (recog_data_d): ...this.
1291 (recog_data): Update accordingly.
1292 * recog.c (recog_data): Likewise.
1293 * reload.c (save_recog_data): Likewise.
1294 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1295 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1296
2df013f3
JB
12972013-05-17 Julian Brown <julian@codesourcery.com>
1298
1299 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1300 found in a REG_EQUAL note, invalidate it.
1301
933f507d
ER
13022013-05-17 Easwaran Raman <eraman@google.com>
1303
1304 * tree-ssa-reassoc.c (find_insert_point): New function.
1305 (insert_stmt_after): Likewise.
1306 (get_def_stmt): Likewise.
1307 (ensure_ops_are_available): Likewise.
1308 (not_dominated_by): Likewise.
1309 (rewrite_expr_tree): Do not move statements beyond what is
1310 necessary. Remove call to swap_ops_for_binary_stmt...
1311 (reassociate_bb): ... and move it here.
1312 (build_and_add_sum): Assign UIDs for new statements.
1313 (linearize_expr): Likewise.
1314 (do_reassoc): Renumber gimple statement UIDs.
1315
e01c7cca
JH
13162013-05-17 Jan Hubicka <jh@suse.cz>
1317
1318 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1319 weakrefs.
1320 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
1321 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1322 weakrefs.
e01c7cca
JH
1323 (output_weakrefs): Update.
1324
c3272a92
PCC
13252013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1326 Martin Jambor <mjambor@suse.cz>
1327
1328 PR middle-end/57276
1329 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1330 value that corresponds to the given aggval is found in values vector.
1331
11c2aa39
UB
13322013-05-17 Uros Bizjak <ubizjak@gmail.com>
1333
1334 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1335 sse, sse2, sse3, ssse3 and sse4a flags to options.
1336
abecc8c6
DM
13372013-05-17 David Malcolm <dmalcolm@redhat.com>
1338
1339 * gengtype-state.c: (s_expr_writer): New class, to handle
1340 prettifying of output layout of s-expressions.
1341 (state_writer): New class, to write out gtype.state.
1342 (state_written_type_count): Move this variable into member data of
1343 state_writer.
1344 (s_expr_writer::s_expr_writer): New code: constructor for new class
1345 (state_writer::state_writer(): ditto
1346 (s_expr_writer::write_new_line): New function
1347 (s_expr_writer::write_any_indent): ditto
1348 (s_expr_writer::begin_s_expr): ditto
1349 (s_expr_writer::end_s_expr): ditto
1350 (write_state_fileloc): convert to method of state_writer...
1351 (state_writer:: write_state_fileloc): ...and use methods of
1352 s_expr_writer to write indentation into the gtype.state output file
1353 to visually represent the hierarchical structure of the list
1354 structures
1355 (write_state_fields): ditto, renaming to...
1356 (state_writer::write_state_fields)
1357 (write_state_a_string): ditto, renaming to...
1358 (state_writer::write_state_a_string)
1359 (write_state_string_option): ditto, renaming to...
1360 (state_writer::write_state_string_option)
1361 (write_state_type_option): ditto, renaming to...
1362 (state_writer::write_state_type_option)
1363 (write_state_nested_option): ditto, renaming to...
1364 (state_writer::write_state_nested_option)
1365 (write_state_option): ditto, renaming to...
1366 (state_writer::write_state_option)
1367 (write_state_options): ditto, renaming to...
1368 (state_writer::write_state_options)
1369 (write_state_lang_bitmap): ditto, renaming to...
1370 (state_writer::write_state_lang_bitmap)
1371 (write_state_version): ditto, renaming to...
1372 (state_writer::write_state_version)
1373 (write_state_scalar_type): ditto, renaming to...
1374 (state_writer::write_state_scalar_type)
1375 (write_state_string_type): ditto, renaming to...
1376 (state_writer::write_state_string_type)
1377 (write_state_undefined_type): ditto, renaming to...
1378 (state_writer::write_state_undefined_type)
1379 (write_state_struct_union_type): ditto, renaming to...
1380 (state_writer::write_state_struct_union_type)
1381 (write_state_struct_type): ditto, renaming to...
1382 (state_writer::write_state_struct_type)
1383 (write_state_user_struct_type): ditto, renaming to...
1384 (state_writer::write_state_user_struct_type)
1385 (write_state_lang_struct_type): ditto, renaming to...
1386 (state_writer::write_state_lang_struct_type)
1387 (write_state_param_struct_type): ditto, renaming to...
1388 (state_writer::write_state_param_struct_type)
1389 (write_state_pointer_type): ditto, renaming to...
1390 (state_writer::write_state_pointer_type)
1391 (write_state_array_type): ditto, renaming to...
1392 (state_writer::write_state_array_type)
1393 (write_state_gc_used): ditto, renaming to...
1394 (state_writer::write_state_gc_used)
1395 (write_state_common_type_content): ditto, renaming to...
1396 (state_writer::write_state_common_type_content)
1397 (write_state_type): ditto, renaming to...
1398 (state_writer::write_state_type)
1399 (write_state_pair_list): ditto, renaming to...
1400 (state_writer::write_state_pair_list)
1401 (write_state_pair): ditto, renaming to...
1402 (state_writer::write_state_pair)
1403 (write_state_typedefs): ditto, renaming to...
1404 (state_writer::write_state_typedefs)
1405 (write_state_structures): ditto, renaming to...
1406 (state_writer::write_state_structures)
1407 (write_state_param_structs): ditto, renaming to...
1408 (state_writer::write_state_param_structs)
1409 (write_state_variables): ditto, renaming to...
1410 (state_writer::write_state_variables)
1411 (write_state_srcdir): ditto, renaming to...
1412 (state_writer::write_state_srcdir)
1413 (write_state_files_list): ditto, renaming to...
1414 (state_writer::write_state_files_list)
1415 (write_state_languages): ditto, renaming to...
1416 (state_writer::write_state_languages)
1417 (write_state): create a state_writer instance and use it when
1418 writing out the state file
1419
d6545f29
MS
14202013-05-17 Mike Stump <mikestump@comcast.net>
1421
816a3f73 1422 PR rtl-optimization/57304
d6545f29
MS
1423 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1424 accessing DF_REF_REAL_LOC.
1425
38c821cf
JJ
14262013-05-17 Jakub Jelinek <jakub@redhat.com>
1427
1428 PR rtl-optimization/57281
1429 PR rtl-optimization/57300
1430 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1431 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1432 what the other splitter did if the registers are dead.
1433
2a293391
RB
14342013-05-17 Richard Biener <rguenther@suse.de>
1435
1436 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1437 MEM_REF offsets.
1438
17042d2b
JJ
14392013-05-17 Jakub Jelinek <jakub@redhat.com>
1440
1441 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1442 linking.
1443
5b115c1f
MP
14442013-05-17 Marek Polacek <polacek@redhat.com>
1445
11c2aa39
UB
1446 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1447 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 1448
52d84413
JJ
14492013-05-17 Jakub Jelinek <jakub@redhat.com>
1450
68119618
JJ
1451 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1452 vect_external_def oprnd1 with loop_vinfo, try to emit
1453 optional cast, negation and and stmts on the loop preheader
1454 edge instead of into the pattern def seq.
1455
52d84413
JJ
1456 PR tree-optimization/57051
1457 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1458 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1459
17b962bd
NC
14602013-05-16 Nick Clifton <nickc@redhat.com>
1461
1462 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1463 (rl78_is_naked_func): New function.
1464 (rl78_expand_prologue): Skip prologue generation for naked
1465 functions.
1466 (rl78_expand_epilogue): Skip epilogue generation for naked
1467 functions.
1468 * doc/extend.texi (naked): Add RL78 to the list of processors
1469 that supports this attribute.
1470
b1a0f84e
JL
14712013-05-16 Jeff Law <law@redhat.com>
1472
1473 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1474
af0e415b
UB
14752013-05-16 Uros Bizjak <ubizjak@gmail.com>
1476
1477 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1478 cache parameters using detect_caches_amd also for CYRIX,
1479 NSC and TM2 signatures.
1480
19db293a
UB
14812013-05-16 Uros Bizjak <ubizjak@gmail.com>
1482 Dzianis Kahanovich <mahatma@eu.by>
1483
1484 PR target/45359
1485 PR target/46396
1486 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1487 VIA/Centaur processors and determine their cache parameters
1488 using detect_caches_amd.
1489
251a41b9
TJ
14902013-05-16 Teresa Johnson <tejohnson@google.com>
1491
1492 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1493 (rtl_verify_edges): New function.
1494 (rtl_verify_bb_insns): Ditto.
1495 (rtl_verify_bb_pointers): Ditto.
1496 (rtl_verify_bb_insn_chain): Ditto.
1497 (rtl_verify_fallthru): Ditto.
1498 (rtl_verify_bb_layout): Ditto.
1499 (rtl_verify_flow_info_1): Outline checks into new functions.
1500 (rtl_verify_flow_info): Ditto.
1501
f14540b6
SE
15022013-05-16 Steve Ellcey <sellcey@imgtec.com>
1503
1504 * cfghooks.c (copy_bbs): Add update_dominance argument.
1505 * cfghooks.h (copy_bbs): Update prototype.
1506 * tree-cfg.c (gimple_duplicate_sese_region):
1507 Add update_dominance argument.
1508 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1509 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1510 gimple_duplicate_sese_region call.
1511 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1512 Update copy_bbs call.
1513 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1514 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1515
7e9a3abb
JJ
15162013-05-16 Jakub Jelinek <jakub@redhat.com>
1517
1518 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1519 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1520 vect_recog_rotate_pattern.
1521 (vect_recog_rotate_pattern): New function.
1522
427b248d
JM
15232013-05-16 Jason Merrill <jason@redhat.com>
1524
1525 * Makefile.in (LLINKER): New variable.
1526 (mostlyclean): Remove link mutex.
1527 * configure.ac: Handle --enable-link-mutex.
1528 * lock-and-run.sh: New script.
1529
b871e3d2
RR
15302013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1531
1532 PR target/19599
1533 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1534 for NULL decl.
1535
ce858126
RO
15362013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1537
1538 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1539
798d3d04
GY
15402013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1541
1542 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1543 * config/arm/arm.c (next_consecutive_mem): New function.
1544 (gen_movmem_ldrd_strd): Likewise.
1545 * config/arm/arm.md (movmemqi): Update condition and code.
1546 (unaligned_loaddi, unaligned_storedi): New patterns.
1547
0baddc45
RO
15482013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1549
1550 * config.gcc: Obsolete *-*-solaris2.9*.
1551 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1552
aa9d5bcf
RB
15532013-05-16 Richard Biener <rguenther@suse.de>
1554
1555 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1556 earlier, after GRAPHITE transforms and IV canonicalization.
1557
5a0f4dd3
JJ
15582013-05-16 Jakub Jelinek <jakub@redhat.com>
1559
1560 * omp-low.c (extract_omp_for_data): For collapsed loops,
1561 if at least one of the loops is known at compile time to
1562 iterate zero times, set count to 0.
1563 (expand_omp_regimplify_p): New function.
1564 (expand_omp_for_generic): For collapsed loops, if at least
1565 one of the loops isn't known to iterate at least once,
1566 add runtime check with setting count to 0.
1567 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1568 For unsigned types if it isn't known at compile time that
1569 the loop will iterate at least once, add runtime check to bypass
1570 the whole loop if initial condition isn't true.
1571
e3753785
NS
15722013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1573
1574 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1575
43bb4dd1
MG
15762013-05-16 Marc Glisse <marc.glisse@inria.fr>
1577
1578 PR middle-end/57286
1579 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1580 transformations to avoid an infinite loop.
1581
3571dde6
MP
15822013-05-16 Marek Polacek <polacek@redhat.com>
1583
1584 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1585
b8b3f0ca
LE
15862013-05-15 Leif Ekblad <leif@rdos.net>
1587
1588 * config/i386/i386.c (ix86_decompose_address): Use
1589 DEFAULT_TLS_SEG_REG to access TLS segment register.
1590 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1591 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1592 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1593
e299a383
RS
15942013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1595
1596 PR target/57260
1597 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1598 sibling calls to functions that would normally be lazily bound,
1599 unless $gp is call-clobbered.
1600
e7208ea3
UB
16012013-05-15 Uros Bizjak <ubizjak@gmail.com>
1602
19db293a 1603 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 1604 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
1605 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1606 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
1607 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1608 of TARGET_3DNOW.
1609 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1610
e7413f3d
AS
16112013-05-15 Andreas Schwab <schwab@suse.de>
1612
1613 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1614 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1615 third operand.
1616
ad4db775
TJ
16172013-05-15 Teresa Johnson <tejohnson@google.com>
1618
1619 * loop-unroll.c (report_unroll_peel): Check decision before
1620 emitting unroll/peel message.
1621
af205f67
TJ
16222013-05-15 Teresa Johnson <tejohnson@google.com>
1623
1624 * function.h (has_bb_partition): New rtl_data flag.
1625 (bb_reorder_complete): Ditto.
1626 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1627 instead of flag_reorder_blocks_and_partition.
1628 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1629 with some enhancements.
1630 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1631 * bb-reorder.c (connect_traces): Check for has_bb_partition
1632 instead of flag_reorder_blocks_and_partition.
1633 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1634 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1635 verify_hot_cold_block_grouping.
1636 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1637
9adcfa3c
RR
16382013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1639
1640 PR target/19599
1641 * config/arm/predicates.md (call_insn_operand): New predicate.
1642 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1643 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1644 if insn is not a tail call.
1645 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1646 registers.
1647 * config/arm/arm.h (enum reg_class): New caller save register class.
1648 (REG_CLASS_NAMES): Likewise.
1649 (REG_CLASS_CONTENTS): Likewise.
1650 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1651 without decls.
1652
ccb3ad87
RB
16532013-05-15 Richard Biener <rguenther@suse.de>
1654
1655 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1656 of MSG_OPTIMIZED_LOCATIONS.
1657 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1658 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1659 message.
1660 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1661 of MSG_OPTIMIZED_LOCATIONS.
1662 (execute_vect_slp): Likewise.
1663 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1664 (vect_create_cond_for_alias_checks): Likewise.
1665 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1666 (vect_recog_widen_mult_pattern): Likewise.
1667 (vect_recog_widen_sum_pattern): Likewise.
1668 (vect_recog_over_widening_pattern): Likewise.
1669 (vect_recog_widen_shift_pattern): Likewise.
1670 (vect_recog_vector_vector_shift_pattern): Likewise.
1671 (vect_recog_divmod_pattern): Likewise.
1672 (vect_recog_mixed_size_cond_pattern): Likewise.
1673 (vect_recog_bool_pattern): Likewise.
1674 (vect_pattern_recog_1): Likewise.
1675
48b1474e
MJ
16762013-05-15 Martin Jambor <mjambor@suse.cz>
1677
1678 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1679 non-functions to builtin_unreachable.
1680 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1681 correct when new direct edges were discovered.
1682
9de04252
MJ
16832013-05-15 Martin Jambor <mjambor@suse.cz>
1684
1685 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1686 header, print symbol order instead of node uid, print more information
1687 about indirect edge targets.
1688 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1689 uids.
1690 (ipa_make_edge_direct_to_target): Likewise.
1691 (remove_described_reference): Likewise.
1692 (propagate_controlled_uses): Likewise.
1693 (ipa_print_node_params): Also print symbol order.
1694 (ipcp_transform_function): Print symbol order instead of node uids.
1695 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1696 (cgraph_get_create_real_symbol_node): Likewise.
1697 * ipa-cp.c (print_lattice): Likewise.
1698 (print_all_lattices): Likewise.
1699 (determine_versionability): Likewise.
1700 (initialize_node_lattices): Likewise.
1701 (estimate_local_effects): Likewise.
1702 (update_profiling_info): Likewise.
1703 (create_specialized_node): Likewise.
1704 (perhaps_add_new_callers): Likewise.
1705 (decide_about_value): Likewise.
1706 (decide_whether_version_node): Likewise.
1707 (identify_dead_nodes): Likewise.
1708 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1709 (dump_inline_summary): Likewise.
1710 (estimate_node_size_and_time): Likewise.
1711 (inline_analyze_function): Likewise.
1712 * ipa-inline.c (report_inline_failed_reason): Likewise.
1713 (want_early_inline_function_p): Likewise.
1714 (edge_badness): Likewise.
1715 (update_edge_key): Likewise.
1716 (inline_small_functions): Likewise. Add dumping of order to two other
1717 dumps.
1718 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1719 instead of node uids.
1720 (propagate_pure_const): Likewise.
1721 (propagate_pure_const): Likewise.
1722 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1723 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1724 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1725 of node uids.
1726 * tree-pretty-print.c (dump_function_header): Likewise.
1727 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1728 Print symbol order instead of node uids.
1729
1dd03b91
AK
17302013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1731
1732 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1733 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1734
fdf6a7b9
RB
17352013-05-15 Richard Biener <rguenther@suse.de>
1736
1737 PR tree-optimization/57275
1738 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1739 return value for fail to do runtime alias checks for gather loads.
1740
2d6e4603
JH
17412013-05-15 Jan Hubicka <jh@suse.cz>
1742
1743 PR lto/57038
1744 PR lto/47375
e7208ea3
UB
1745 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1746 weakrefs are not external.
1747 (lto_symtab_merge_decls): Fix thinko when dealing with
1748 non-lto_symtab decls.
2d6e4603
JH
1749 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1750 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1751 * varpool.c (dump_varpool_node): Dump more flags.
1752
83f44b39
GG
17532013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1754
1755 * config/i386/i386.c (processor_alias_table): Add instruction
1756 FSGSBASE for AMD bdver3 architecture.
1757
2e55d062
JJ
17582013-05-14 Jakub Jelinek <jakub@redhat.com>
1759
1760 * tree.c (warn_deprecated_use): Print file:line using locus color.
1761 * diagnostic.c (diagnostic_report_current_module): Print file:line
1762 and file:line:column using locus color.
1763
0bfdb81e
MS
17642013-05-14 Mike Stump <mikestump@comcast.net>
1765
1766 * gdbinit.in: Add __null.
1767
a508ef22
MS
17682013-05-14 Mike Stump <mikestump@comcast.net>
1769
1770 * recog.h: Rename struct recog_data to Recog_data.
1771 * recog.c: Likewise.
1772 * reload.c (can_reload_into): Likewise.
1773 * config/picochip/picochip.c: Likewise.
1774
e7180acb
MS
17752013-05-14 Mike Stump <mikestump@comcast.net>
1776
1777 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1778
61216c26
SB
17792013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1780
fd6beed4
SB
1781 * resource.h (struct resources): Remove unch_memory member.
1782 (CLEAR_RESOURCE): Don't clear unch_memory.
1783 * resource.c (mark_referenced_resources): Don't set it.
1784 (mark_set_resources): Likewise.
1785 (mark_target_live_regs): Don't clear it.
1786 (init_resource_info): Likewise.
1787 * reorg.c (resource_conflicts_p): Don't compare it.
1788 (redundant_insn): Don't set it.
1789
61216c26
SB
1790 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1791 Remove prototypes.
1792 * emit-rtl.c (next_label): Remove unused function.
1793 (skip_consecutive_labels, link_cc0_insns): Move to ...
1794 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1795 only place where these functions are used, and make them static.
1796
418d1b87
MG
17972013-05-14 Marc Glisse <marc.glisse@inria.fr>
1798
1799 * fold-const.c (fold_negate_expr): Handle vectors.
1800 (fold_truth_not_expr): Make it static.
1801 (fold_invert_truthvalue): New static function.
1802 (invert_truthvalue_loc): Handle vectors. Do not call
1803 fold_truth_not_expr directly.
1804 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1805 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1806 (fold_comparison): Handle vector constants.
1807 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1808 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1809 * tree.h (fold_truth_not_expr): Remove declaration.
1810
fc21784d
JG
18112013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1812
1813 * config/aarch64/aarch64-simd.md
1814 (aarch64_vcond_internal<mode>): Rename to...
1815 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1816 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1817 float modes. Clarify all iterator modes.
1818 (vcond<mode><mode>): Use new name for vcond expanders.
1819 (vcond<v_cmp_result><mode>): Likewise.
1820 (vcondu<mode><mode>: Likewise.
1821 * config/aarch64/iterators.md (VDQF_COND): New.
1822
d4c52634
MG
18232013-05-14 Marc Glisse <marc.glisse@inria.fr>
1824
1825 PR bootstrap/57266
1826 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1827 variable for the shift amount. Check that we shift by non-negative
1828 amounts.
1829
2b261262
CLT
18302013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1831
1832 PR target/42017
1833 * config/arm/arm.h (EPILOGUE_USES): Only return true
1834 for LR_REGNUM after epilogue_completed.
1835
6e022d7b
JR
18362013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1837
1838 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1839 is error_mark_node.
6e022d7b 1840
56cf7859
RO
18412013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1842
1843 PR target/57261
1844 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1845 and Solaris 11+/x86 with gld.
1846 * configure: Regenerate.
1847
75776c6d
JJ
18482013-05-14 Jakub Jelinek <jakub@redhat.com>
1849
1850 * expmed.c (expand_shift_1): Canonicalize rotates by
1851 constant bitsize / 2 to bitsize - 1.
7f998021 1852 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
1853 case ROTATERT>: Likewise.
1854
1855 Revert:
1856 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1857
1858 * config/i386/i386.md (rotateinv): New code attr.
1859 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1860 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1861 roll $31, %eax, etc.
1862
df35498a
RB
18632013-05-14 Richard Biener <rguenther@suse.de>
1864
1865 PR middle-end/57235
1866 * tree-eh.c (sink_clobbers): Give up for successors with
1867 multiple predecessors and no virtual uses.
1868
cc6e7ece
EB
18692013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1870
1871 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1872 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1873
f778dd4d
JJ
18742013-05-14 Jakub Jelinek <jakub@redhat.com>
1875
1876 PR middle-end/57251
1877 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1878 the case when both op0 and op1 have VOIDmode.
1879
bad4df9b
KP
18802013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1881
1882 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1883 in multiply-accumulate mode.
1884
56f3e9ac
GW
18852013-05-13 Guozhi Wei <carrot@google.com>
1886
1887 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1888
a3d7ab92
KT
18892013-05-13 Kai Tietz <ktietz@redhat.com>
1890
1891 PR target/56975
1892 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1893 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1894 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1895 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1896 (ix86_expand_prologue): Likewise.
1897 (ix86_expand_split_stack_prologue): Likewise.
1898 (legitimate_pic_address_disp_p): Likewise.
1899 (legitimize_pic_address): Likewise.
1900 (legitimize_tls_address): Likewise.
1901 (legitimize_pe_coff_symbol): Likewise.
1902 (output_pic_addr_const): Likewise.
1903 (construct_plt_address): Likewise.
1904 (ix86_expand_call): Likewise.
1905 (x86_output_mi_thunk): Likewise.
1906 (x86_function_profiler): Likewise.
1907
c59b7e28
SN
19082013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1909
1910 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1911 similar switch cases.
1912 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1913 (aarch64_simd_mov_to_<mode>low): Delete.
1914 (aarch64_simd_mov_to_<mode>high): Delete.
1915 (move_lo_quad_<mode>): Add w<-r alternative.
1916 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1917 (aarch64_simd_mov_from_*): Update type attribute.
1918 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1919 statement.
1920
5f28524a
JH
19212013-05-13 Jan Hubicka <jh@suse.cz>
1922
1923 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1924 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1925 ix86_expand_epilogue, emit_i387_cw_initialization,
1926 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1927 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1928
ae6fa899
JJ
19292013-05-13 Jakub Jelinek <jakub@redhat.com>
1930
1931 PR tree-optimization/45216
1932 PR tree-optimization/57157
1933 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1934 the (-Y) & (B - 1) variant if OP is |.
1935 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1936 return shifted. Use (-op1) & (prec - 1) as other_amount
1937 instead of prec - op1.
1938
4502fe8d
MJ
19392013-05-13 Martin Jambor <mjambor@suse.cz>
1940
1941 PR middle-end/42371
1942 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1943 (ipa_constant_data): New type.
1944 (ipa_jump_func): Use ipa_constant_data to hold information about
1945 constant jump functions.
1946 (ipa_get_jf_constant): Adjust to jump function type changes.
1947 (ipa_get_jf_constant_rdesc): New function.
1948 (ipa_param_descriptor): New field controlled_uses.
1949 (ipa_get_controlled_uses): New function.
1950 (ipa_set_controlled_uses): Likewise.
1951 * ipa-ref.h (ipa_find_reference): Declare.
1952 * ipa-prop.c (ipa_cst_ref_desc): New type.
1953 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1954 changes.
1955 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1956 New parameter cs. Adjust all callers.
1957 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1958 (remove_described_reference): New function.
1959 (jfunc_rdesc_usable): Likewise.
1960 (try_make_edge_direct_simple_call): Decrement controlled use count,
1961 attempt to remove reference if it hits zero.
1962 (combine_controlled_uses_counters): New function.
1963 (propagate_controlled_uses): Likewise.
1964 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1965 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1966 (ipa_print_node_params): Print described use counter.
1967 (ipa_write_jump_function): Adjust to jump function type changes.
1968 (ipa_read_jump_function): New parameter CS, pass it to
1969 ipa_set_jf_constant. Adjust caller.
1970 (ipa_write_node_info): Stream controlled use count
1971 (ipa_read_node_info): Likewise.
1972 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1973 asserting.
1974 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1975 count. Remove cloning-added reference if it reaches zero.
1976 * ipa-ref.c (ipa_find_reference): New function.
1977
0864bfc2
GG
19782013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1979
e7208ea3 1980 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
1981 alignment values for AMD BD and BT architectures.
1982
640bfeb2
MG
19832013-05-13 Marc Glisse <marc.glisse@inria.fr>
1984
1985 * tree-vect-generic.c (uniform_vector_p): Move ...
1986 * tree.c (uniform_vector_p): ... here.
1987 * tree.h (uniform_vector_p): Declare it.
1988 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1989 into a scalar.
1990
3a60f32b
JJ
19912013-05-13 Jakub Jelinek <jakub@redhat.com>
1992
198fe1bf
JJ
1993 PR tree-optimization/57230
1994 * tree-ssa-strlen.c (handle_char_store): Record length for
1995 array store from STRING_CST.
1996
3a60f32b
JJ
1997 PR tree-optimization/57230
1998 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1999 check.
2000
566be57c
JR
20012013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2002
2003 * config/epiphany/epiphany.c (epiphany_init): Check size of
2004 NUM_MODES_FOR_MODE_SWITCHING.
2005 (epiphany_expand_prologue):
2006 Remove CONFIG_REGNUM initial value handling code.
2007 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2008 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 2009 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
2010 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2011 Don't return 1 for FP_MODE_NONE.
2012 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2013 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2014 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2015 * config/epiphany/epiphany.md (save_config): New pattern.
2016
0f2c2331
UB
20172013-05-12 Uros Bizjak <ubizjak@gmail.com>
2018
2019 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2020
5b3f93c7
UB
20212013-05-10 Uros Bizjak <ubizjak@gmail.com>
2022
2023 * config/i386/i386.md (memory): Handle sseishft1.
2024 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2025 (*vec_extractv2di_1): Ditto.
2026
1f873f0e
VM
20272013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2028
2029 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2030 saved registers.
2031
341427fa 20322013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
2033
2034 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2035 Add mthumb/march=armv7-a multilib.
2036 Add mthumb/march=armv7-r multilib.
2037 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2038
9e69bdde
RC
20392013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2040
2041 * config/v850/t-rtems: Add more multilibs.
2042
9ff09a22
RB
20432013-05-10 Richard Biener <rguenther@suse.de>
2044
2045 PR tree-optimization/57214
2046 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2047 not propagate from SSA names that occur in abnormal PHI nodes.
2048
a5e0cd1d
MG
20492013-05-10 Marc Glisse <marc.glisse@inria.fr>
2050
2051 * stor-layout.c (element_precision): New function.
2052 * machmode.h (element_precision): Declare it.
2053 * tree.c (build_minus_one_cst): New function.
2054 (element_precision): Likewise.
2055 * tree.h (build_minus_one_cst): Declare new function.
2056 (element_precision): Likewise.
2057 * fold-const.c (operand_equal_p): Use element_precision.
2058 (fold_binary_loc): Handle vector types.
2059 * convert.c (convert_to_integer): Use element_precision.
2060 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2061 separately.
2062
cb2558bc
RS
20632013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2064
2065 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2066 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2067 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2068 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2069 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2070 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2071 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2072 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2073 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2074 (Uuw8): New constraints.
2075 (Usb4): Move into alphabetical order.
2076 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2077 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2078 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2079 previously unnamed patterns.
2080 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2081 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2082 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2083 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2084 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2085 of specific lengths.
2086
cb3b8d33
JJ
20872013-05-10 Jakub Jelinek <jakub@redhat.com>
2088
6f93c008
JJ
2089 * config/i386/i386.md (rotateinv): New code attr.
2090 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2091 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2092 roll $31, %eax, etc.
2093
cb3b8d33
JJ
2094 PR tree-optimization/45216
2095 PR tree-optimization/57157
2096 * tree-ssa-forwprop.c (simplify_rotate): New function.
2097 (ssa_forward_propagate_and_combine): Call it.
2098
afb119be
RB
20992013-05-10 Richard Biener <rguenther@suse.de>
2100
2101 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2102 disable peeling when we version for aliasing.
2103 (vector_alignment_reachable_p): Honor explicit user alignment.
2104 (vect_supportable_dr_alignment): Likewise.
2105 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2106 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2107 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2108 then peeling to arrange for the cost-model check to come first.
2109
01ae4861
AM
21102013-05-10 Alan Modra <amodra@gmail.com>
2111
2112 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2113 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2114 * configure: Regenerate.
2115
ebc9a431
AM
21162013-05-10 Alan Modra <amodra@gmail.com>
2117
2118 PR target/55033
2119 * varasm.c (default_elf_select_section): Move !DECL_P check..
2120 (get_named_section): ..to here before calling get_section_name.
2121 Adjust assertion.
2122 (default_section_type_flags): Add DECL_P check.
2123 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2124 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2125
d4bca93c
JR
21262013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2127
2128 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2129 When using gen_stack_adjust_str with a register offset, add a
2130 REG_FRAME_RELATED_EXPR note.
2131
60ca9a65
UB
21322013-05-09 Uros Bizjak <ubizjak@gmail.com>
2133
2134 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2135 (*vec_extractv4si_zext_mem): Ditto.
2136 (*vec_extractv2di): Add 0->x and x->x alternatives.
2137 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2138 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2139
a3409c02
JM
21402013-05-09 Jason Merrill <jason@redhat.com>
2141
0138d6b2
JM
2142 N3639 C++1y VLA support
2143 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2144 DECL_VALUE_EXPR.
2145
a3409c02
JM
2146 * tree.c (build_constructor_va): New.
2147 * tree.h: Declare it.
2148
66e6b990
MJ
21492013-05-09 Martin Jambor <mjambor@suse.cz>
2150
2151 PR lto/57084
2152 * gimple-fold.c (canonicalize_constructor_val): Call
2153 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2154
64cfa6c0
JH
21552013-05-09 Jan Hubicka <jh@suse.cz>
2156 Richard Biener <rguenther@suse.de>
2157
2158 PR lto/54095
2159 * symtab.c (symtab_make_decl_local): Do not add private names.
2160
c3167b00
JH
21612013-05-09 Jan Hubicka <jh@suse.cz>
2162
2163 PR lto/54095
2164 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2165 (unlink_from_assembler_name_hash): Likewise.
2166 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2167 symtab_unregister_node, symtab_initialize_asm_name_hash,
2168 change_decl_assembler_name): Update.
2169
12dc6974
SN
21702013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2171
2172 * config/aarch64/aarch64.md: New movtf split.
2173 (*movtf_aarch64): Update.
2174 (aarch64_movdi_tilow): Handle TF modes and rename to
2175 aarch64_movdi_<mode>low.
2176 (aarch64_movdi_tihigh): Handle TF modes and rename to
2177 aarch64_movdi_<mode>high
2178 (aarch64_movtihigh_di): Handle TF modes and rename to
2179 aarch64_mov<mode>high_di
2180 (aarch64_movtilow_di): Handle TF modes and rename to
2181 aarch64_mov<mode>low_di
2182 (aarch64_movtilow_tilow): Remove spurious whitespace.
2183 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2184 splits.
2185 (aarch64_print_operand): Update.
2186
227eb343
AM
21872013-05-09 Alan Modra <amodra@gmail.com>
2188
2189 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2190 powerpc64le.
2191 * configure: Regenerate.
2192
0b013847
UB
21932013-05-08 Uros Bizjak <ubizjak@gmail.com>
2194
2195 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2196 splitter preparation statements.
2197 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2198 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2199 adjust_address_nv.
2200
1dc3d6e9
BS
22012013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2202
2203 * gimple-ssa-strength-reduction.c (count_candidates): Change
2204 return value to int.
2205 (analyze_candidates_and_replace): Change type of length to int.
2206
e61e7d28
UB
22072013-05-08 Uros Bizjak <ubizjak@gmail.com>
2208
2209 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2210 (*vec_extract<mode>): Use VI12_128 mode iterator.
2211 (*vec_extract<mode>_mem): Ditto.
2212 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2213 attribute.
2214
4fbfcf44
DN
22152013-05-08 Diego Novillo <dnovillo@google.com>
2216
2217 PR bootstrap/54659
2218
2219 Revert:
4fbfcf44
DN
2220 2012-08-17 Diego Novillo <dnovillo@google.com>
2221
e61e7d28
UB
2222 PR bootstrap/54281
2223 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2224 * config.in: Regenerate.
2225 * configure: Regenerate.
2226 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 2227
702d8703
JH
22282013-05-08 Jan Hubicka <jh@suse.cz>
2229
2230 PR lto/54095
2231 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2232 * cgraph.h (symtab_node_base): Add unique_name.
2233 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2234 input_overwrite_node, input_varpool_node): Stream unique_name.
2235 * cgraphclones.c (cgraph_create_virtual_clone,
2236 cgraph_function_versioning): Set unique_name.
2237 * ipa.c (function_and_variable_visibility): Set unique_name.
2238
8b28cf47
BS
22392013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2240
2241 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2242 (alloc_cand_and_find_basis): Restrict conditional candidate
2243 processing to CAND_MULTs.
2244
e86074fd
JH
22452013-05-08 Jan Hubicka <jh@suse.cz>
2246
2247 PR lto/54095
2248 lto-symtab.c (lto_symtab_symbol_p): New function.
2249 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2250 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2251 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2252 Skip static symbols.
2253
44398cbe
PC
22542013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2255
2256 PR tree-optimization/57200
2257 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2258 Only call inform if the preceding warning_at returns true.
2259
f6bc1c4a
HS
22602013-05-07 Han Shen <shenhan@google.com>
2261
2262 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2263 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2264 * common.opt (fstack-protector-strong): New option.
2265 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2266 * doc/invoke.texi (Optimization Options): Document
2267 "-fstack-protector-strong".
2268 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2269
4ffecb1f
SB
22702013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2271
2272 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2273
5a107a0f
VM
22742013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2275
2276 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2277 it is not lhs of the insn.
2278 (setup_reg_equiv): Remove insn having equiv memory which it is not
2279 lhs of the insn.
2280 * lra-constraints.c (process_address): Try to improve generation
2281 code for address base + disp.
2282 (lra_constraints): Make correct the code for checking insn setting
2283 up backward equivalence. Remove insn only if it is in the init
2284 insn list.
2285 * lra-eliminations.c (update_reg_eliminate): Change return value.
2286 (lra_eliminate): Use the result.
2287
3f5783ea
UB
22882013-05-07 Uros Bizjak <ubizjak@gmail.com>
2289
2290 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2291 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2292 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2293 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2294 register target operands.
2295 (*vec_extractv8hi_sse2): New pattern.
2296 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2297 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2298 (*vec_extract<mode>_mem): New insn and split pattern.
2299
8a5800b8
CL
23002013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2301
2302 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2303 (TARGET_ASAN_SHADOW_OFFSET): Define.
2304 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2305 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2306
7bf55a70
BS
23072013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2308
2309 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2310 (incr_vec_index): Return -1 if increment not found.
2311 (create_add_on_incoming_edge): Assert if increment not found.
2312 (record_increment): Limit number of increments recorded.
2313 (all_phi_incrs_profitable): Return false if an increment not found.
2314 (replace_profitable_candidates): Don't process increments that were
2315 not recorded.
2316 (analyze_candidates_and_replace): Limit size of incr_vec.
2317
3f8825c0
RB
23182013-05-07 Richard Biener <rguenther@suse.de>
2319
2320 * calls.c (special_function_p): setjmp-like functions are leaf.
2321 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2322 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2323
fd4842cd
SN
23242013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2325
2326 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2327 (aarch64_simd_mov<mode>): New expander.
2328 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2329 (aarch64_simd_mov_to_<mode>high): Likewise.
2330 (aarch64_simd_mov_from_<mode>low): Likewise.
2331 (aarch64_simd_mov_from_<mode>high): Likewise.
2332 (aarch64_dup_lane<mode>): Update.
2333 (aarch64_dup_lanedi): New instruction pattern.
2334 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2335 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2336
a7a7d10e
BS
23372013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2338
2339 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2340 (replace_mult_candidate): Remove unnecessary argument; remove
2341 unnecessary parameter from call to introduce_cast_before_cand.
2342 (replace_unconditional_candidate): Remove unnecessary parameter
2343 from call to replace_mult_candidate.
2344 (replace_conditional_candidate): Likewise.
2345 (insert_initializers): Use make_temp_ssa_name.
2346 (introduce_cast_before_cand): Remove unnecessary argument; use
2347 make_temp_ssa_name.
2348 (replace_one_candidate): Remove unnecessary argument; remove
2349 unnecessary parameter from calls to introduce_cast_before_cand.
2350 (replace_profitable_candidates): Remove unnecessary parameters
2351 from calls to replace_one_candidate.
2352
29105868
BS
23532013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2354
2355 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2356 phi def as possibly hiding a basis for a CAND_ADD whose operands
2357 have been commuted in the analysis.
2358 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2359
4095f9fa
N
23602013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2361
2362 * config/aarch64/aarch64.md
2363 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2364 shift value between 0-4.
2365
39e843e8
RB
23662013-05-07 Richard Biener <rguenther@suse.de>
2367
2368 * double-int.h (rshift): New overload.
2369 * double-int.c (rshift): New function.
2370 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2371 (create_reference_ops_from_ref): Remove.
2372 (vn_reference_insert): Use shared ops for constructing the
2373 reference and copy it.
2374
0a1a83cb
RB
23752013-05-07 Richard Biener <rguenther@suse.de>
2376
2377 PR middle-end/57190
2378 * tree-eh.c (sink_clobbers): Properly propagate
2379 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2380
43303d6f
JJ
23812013-05-07 Jakub Jelinek <jakub@redhat.com>
2382
ba7e83f8
JJ
2383 PR tree-optimization/57149
2384 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2385 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2386 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2387 uninit_undefined_value_p instead of ssa_undefined_value_p.
2388
43303d6f
JJ
2389 PR debug/57184
2390 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2391 for modifier == EXPAND_INITIALIZER.
2392
14523c25
AB
23932013-05-07 Anton Blanchard <anton@samba.org>
2394
2395 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2396 for powerpc64 little endian.
2397 * configure: Regenerate.
2398
cb7c8be9
GS
23992013-05-06 Graham Stott <grahams@btinternet.com>
2400
2401 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2402 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2403 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2404 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2405
24062013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
2407
2408 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2409 codes which allow non-lvalues.
2410
9a0ee7b0
MG
24112013-05-06 Marc Glisse <marc.glisse@inria.fr>
2412
2413 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2414 components are all 1s.
2415 (integer_minus_onep): New function.
2416 * tree.h (integer_minus_onep): Declare it.
2417 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2418 integer_minus_onep instead of integer_all_onesp.
2419
f2c17ea9
OE
24202013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2421
2422 PR target/52933
2423 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2424 variations of these patterns.
2425
f75e6a51
UB
24262013-05-06 Uros Bizjak <ubizjak@gmail.com>
2427
2428 * config/i386/i386.md (isa): Add x64_sse4 member.
2429 (enabled): Handle x64_sse4.
2430 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2431 instruction for 64bit SSE4_1 targets. Update insn attributes.
2432 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2433 instruction for SSE4_1 targets. Update insn attributes.
2434 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2435 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2436 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2437 const_1 selector.
2438 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2439 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2440 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2441
a986d468
OE
24422013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2443
2444 PR target/57108
2445 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2446
382522cb
MK
24472013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2448
2449 * final.c (do_assembler_dialects): Don't handle curly braces and
2450 vertical bar escaped by % as dialect delimiters.
2451 (output_asm_insn): Print curly braces and vertical bar if escaped
2452 by % and ASSEMBLER_DIALECT defined.
2453 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2454 * doc/tm.texi: Regenerated.
2455
fb0d5c60
SB
24562013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2457
fb0d5c60
SB
2458 * config/mips/mips.c: Include tree-pass.h.
2459 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2460 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2461 (pass_mips_machine_reorg2): New machine specific pass.
2462 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2463 (mips_option_override): Register the new pass.
2464 * rtl.h (cleanup_barriers): Remove prototype.
2465 (dbr_schedule): Likewise.
2466 * jump.c (cleanup_barriers): Make static.
2467 * reorg.c (dbr_schedule): Likewise.
2468
aa06a978
RB
24692013-05-06 Richard Biener <rguenther@suse.de>
2470
2471 PR tree-optimization/57185
2472 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2473 SSA names properly.
2474
0b953bec
UB
24752013-05-06 Uros Bizjak <ubizjak@gmail.com>
2476
2477 PR target/57106
2478 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2479 between "first_arg" and "insn", not "last" and "insn".
2480
28708525
WS
24812013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2482
2483 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2484 (find_candidates_in_block): Re-enable slsr_process_phi.
2485 (create_phi_basis): Fix double counting of candidate adjustment.
2486
0107dca2
RB
24872013-05-06 Richard Biener <rguenther@suse.de>
2488
2489 PR middle-end/57147
2490 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2491 the edge is also fallthru, preserve it and just clear the
2492 abnormal flag.
2493 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2494 also complex, preserve that and just clear the fallthru flag.
2495 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2496 update virtual operands.
2497
470d4d13
AM
24982013-05-06 Alan Modra <amodra@gmail.com>
2499
2500 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2501 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2502 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2503 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2504 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2505 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2506
8f1dbf8d
AM
25072013-05-06 Alan Modra <amodra@gmail.com>
2508
2509 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2510 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2511 (DEFAULT_ASM_ENDIAN): Define.
2512 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2513 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2514 Update -K PIC clause from sysv4.h.
2515 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2516 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2517
54890767
AM
25182013-05-06 Alan Modra <amodra@gmail.com>
2519
2520 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2521 twice for little-endian.
2522 (ashrdi3_no_power, ashrdi3): Support little-endian.
2523
2353515d
OE
25242013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2525
2526 PR target/55303
2527 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2528 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2529 related expanders.
2530 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2531 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2532 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2533 New predicates.
2534
33e67557
SB
25352013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2536 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2537
2538 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2539 * config/pa/pa.opt: Make mbig-switch a no-op.
2540 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2541 (CASE_VECTOR_MODE): Always return SImode.
2542 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2543 for the !TARGET_BIG_SWITCH case.
2544 * config/pa/pa-linux.h: Likewise.
2545 * config/pa/pa-openbsd.h: Likewise.
2546 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2547 * config/pa/pa.md (short_jump): Remove define_insn.
2548 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2549 (casesi0): Remove define_insn.
2550 (type): Remove btable_branch.
2551 (pa_combine_type): Likewise.
2552 (in_nullified_branch_delay): Likewise.
2553 (in_call_delay): Likewise.
2554 (define_delay): Likewise.
2555 (define_insn_reservation "Z3"): Likewise.
2556 (define_insn_reservation "Z4"): Likewise.
2557 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2558 (pa_adjust_insn_length): Remove adjustment for btable branches.
2559 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2560 and mno-big-switch
2561
3095685e
UB
25622013-05-05 Uros Bizjak <ubizjak@gmail.com>
2563
2564 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2565 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2566 Add m->r,x alternatives.
2567 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2568 splitters using SWI48x mode iterator.
2569 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2570 TARGET_64BIT. Add m->x alternative.
2571 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2572 Add o->x alternative. Enable for TARGET_SSE.
2573 (sse_storeq): Remove expander.
2574 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2575 with memory input operand.
2576 (*vec_extractv2di_1 splitter): New.
2577 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2578 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2579
4b36ae28
SB
25802013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2581
2582 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2583 (INT_LOWPART): Delete.
2584 (extract_MB): Adjust.
2585 (extract_ME): Adjust.
2586 (print_operand): Adjust.
2587
da226db2
SB
25882013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2589
2590 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2591 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2592 (reg_or_logical_cint_operand, easy_fp_constant,
2593 logical_const_operand): Delete "CONST_DOUBLE" case.
2594 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2595 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 2596 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
2597 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2598 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2599 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2600 test.
2601 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2602 CONST_DOUBLE DImode/VOIDmode case.
2603 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2604 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2605 CONST_DOUBLE VOIDmode case.
2606 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2607 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2608 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2609 Delete CONST_DOUBLE case.
2610 (splitters for mov FMOVE64 const_double): Delete
2611 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2612 "HOST_BITS_PER_WIDE_INT >= 64" test.
2613 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2614 case.
2615 (mov DI const_double): Delete.
2616
40de22d6
JJ
26172013-05-04 Jakub Jelinek <jakub@redhat.com>
2618
2619 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2620 on op shows all bits zero in mode of a lowpart subreg, return zero.
2621
5ec6aff2
MM
26222013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2623
2624 PR target/57150
2625 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2626 to save TFmode registers and DImode to save TImode registers for
2627 caller save operations.
2628 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2629 mark being partially clobbered since they only use the first
2630 double word.
2631
2632 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2633 and TDmode only use the upper 64-bits of each VSX register.
2634
2cefad90
BS
26352013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2636
2637 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2638 (find_candidates_in_block): Disable slsr_process_phi.
2639
d6d7eee1
GW
26402013-05-03 Guozhi Wei <carrot@google.com>
2641
2642 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
2643 constructor to ...
2644 (build_init_ctor): ... here.
d6d7eee1 2645
9b92d12b
BS
26462013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2647
2648 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2649 (slsr_cand_d): Redefine def_phi.
2650 (stride_status, phi_adjust_status, count_phis_status): New enums.
2651 (find_phi_def): New.
2652 (find_basis_for_base_expr): New.
2653 (find_basis_for_candidate): Handle hidden bases.
2654 (alloc_cand_and_find_basis): Handle phi candidates.
2655 (slsr_process_phi): New.
2656 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2657 (create_mul_imm_cand): Likewise.
2658 (create_add_ssa_cand): Exclude phi base candidates.
2659 (create_add_imm_cand): Likewise.
2660 (slsr_process_cast): Likewise.
2661 (slsr_process_copy): Likewise.
2662 (find_candidates_in_block): Handle phi candidates.
2663 (dump_candidate): Likewise.
2664 (unconditional_cands): Delete.
2665 (unconditional_cands_with_known_stride_p): Delete.
2666 (phi_dependent_cand_p): New.
2667 (cand_increment): Handle phi-dependent candidates.
2668 (replace_dependent): Delete.
2669 (replace_mult_candidate): New.
2670 (replace_unconditional_candidate): New.
2671 (incr_vec_index): Move to avoid forward reference.
2672 (create_add_on_incoming_edge): New.
2673 (create_phi_basis): New.
2674 (replace_dependents): Delete.
2675 (replace_conditional_candidate): New.
2676 (phi_add_costs): New.
2677 (replace_uncond_cands_and_profitable_phis): New.
2678 (record_increment): Handle phi adjustments.
2679 (record_phi_increments): New.
2680 (record_increments): Handle phi adjustments.
2681 (phi_incr_cost): New.
2682 (lowest_cost_path): Handle phis.
2683 (total_savings): Likewise.
2684 (analyze_increments): Likewise.
2685 (ncd_with_phi): New.
2686 (ncd_of_cand_and_phis): New.
2687 (nearest_common_dominator_for_cands): Handle phi increments.
2688 (all_phi_incrs_profitable): New.
2689 (replace_profitable_candidates): Handle phi-dependent candidates.
2690 (analyze_candidates_and_replace): Likewise.
2691
68f073d4
TJ
26922013-05-03 Teresa Johnson <tejohnson@google.com>
2693
2694 PR bootstrap/57154
2695 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2696 do not exceed REG_BR_PROB_BASE.
2697
a4ee7cb9
JL
26982013-05-03 Jeff Law <law@redhat.com>
2699
ade67f70 2700 PR tree-optimization/57144
a4ee7cb9
JL
2701 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2702 operand of the condition will bit into the new type when eliminating
2703 a cast feeding a condition.
2704
47954c4e
JJ
27052013-05-03 Jakub Jelinek <jakub@redhat.com>
2706
2707 PR rtl-optimization/57130
3095685e
UB
2708 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2709 of COMPARE as in_code to the recursive call if needed.
47954c4e 2710
3c21604f
UB
27112013-05-03 Uros Bizjak <ubizjak@gmail.com>
2712
2713 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2714 (enabled): Handle new members.
2715 * config/i386/sse.md (*vec_concatv2si): Merge from
2716 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2717 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2718
95c03b36
JR
27192013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2720
2721 PR tree-optimization/57027
2722 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2723 for fnms opportunity, check we got the prerequisite kind
2724 of tree / gimple before using accessor functions.
2725
07bfc9ec
RB
27262013-05-03 Richard Biener <rguenther@suse.de>
2727
2728 * double-int.h (lshift): New overload without precision
2729 and arith argument.
2730 (operator *=, operator +=, operator -=): Move ...
2731 * double-int.c (operator *=, operator +=, operator -=): ... here
2732 and implement more efficiently.
2733 (mul_double_with_sign): Remove.
2734 (lshift_double): Adjust to take unsinged shift argument, push
2735 dispatching code to callers.
2736 (mul_double_wide_with_sign): Add early out for callers that
2737 are not interested in high parts or overflow.
2738 (lshift): New function.
2739 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2740 dispatch code here.
2741 (lrotate, rrotate): Use logical shifts.
2742 * expr.c (get_inner_reference): Use lshift.
2743 * fixed-value.c (do_fixed_divide): Likewise.
2744 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2745 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2746 (indirect_refs_may_alias_p): Likewise.
2747 (stmt_kills_ref_p_1): Likewise.
2748
7769bb64
VP
27492013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2750
2751 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2752
1d0c8e5c
VP
27532013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2754
2755 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2756 scalar form of FABD instruction.
2757
f15feaf9
VM
27582013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2759
2760 * lra-constraints.c (process_alt_operands): Add checking alt
2761 number to choose the best alternative.
2762
d90e76d4
RB
27632013-05-02 Richard Biener <rguenther@suse.de>
2764
2765 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2766 bitmap and its handling.
2767 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2768
9f8e7a96
RB
27692013-05-02 Richard Biener <rguenther@suse.de>
2770
2771 PR middle-end/57140
2772 * tree-inline.c (copy_loops): Properly handle removed loops.
2773 (copy_cfg_body): Mark destination loops for fixup if source
2774 loops needed fixup.
2775
f3a81b39
GY
27762013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2777
2778 PR target/56732
2779 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2780 generating simple_return for naked functions.
2781
7b920a9a
MJ
27822013-05-02 Martin Jambor <mjambor@suse.cz>
2783
2784 PR middle-end/56988
2785 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2786 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2787 flags match.
2788 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2789 ipa_agg_replacement_value structures.
2790 (known_aggs_to_agg_replacement_list): Likewise.
2791 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2792 (read_agg_replacement_chain): Likewise.
2793 (ipcp_transform_function): Also check that by_ref flags match.
2794
2c41c19d
RB
27952013-05-02 Richard Biener <rguenther@suse.de>
2796
2797 * graphds.h (struct graph): Add obstack member.
2798 * graphds.c (new_graph): Initialize obstack and allocate
2799 vertices from it.
2800 (add_edge): Allocate edge from the obstack.
3c21604f 2801 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2802
8b47039c
TJ
28032013-05-02 Teresa Johnson <tejohnson@google.com>
2804
2805 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2806 divides.
2807 * cfg.c (update_bb_profile_for_threading): Ditto.
2808 * tree-inline.c (copy_bb): Ditto.
2809 (copy_edges_for_bb): Ditto.
2810 (initialize_cfun): Ditto.
2811 (copy_cfg_body): Ditto.
2812 (expand_call_inline): Ditto.
2813 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2814 (estimate_node_size_and_time): Ditto.
2815 (inline_merge_summary): Ditto.
2816 * cgraphclones.c (cgraph_clone_edge): Ditto.
2817 (cgraph_clone_node): Ditto.
2818 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2819 (compute_trg_info): Ditto.
2820
da65928c
IB
28212013-05-02 Ian Bolton <ian.bolton@arm.com>
2822
2823 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2824 S reg when fp attribute set.
2825 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2826
add3c965
IB
28272013-05-02 Ian Bolton <ian.bolton@arm.com>
2828
2829 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2830 New pattern.
2831 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2832 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2833 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2834
fdd43ac4
RB
28352013-05-02 Richard Biener <rguenther@suse.de>
2836
2837 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2838 (struct instantiate_cache_entry): New type.
2839 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2840 (struct instantiate_cache_type): New type.
2841 (set_instantiated_value, get_instantiated_value): Remove.
2842 (get_instantiated_value_entry): New function.
2843 (instantiate_scev_name): Use the new cache and adjust.
2844 (instantiate_scev_poly): Adjust.
2845 (instantiate_scev_binary): Likewise.
2846 (instantiate_array_ref): Likewise.
2847 (instantiate_scev_convert): Likewise.
2848 (instantiate_scev_not): Likewise.
2849 (instantiate_scev_3): Likewise.
2850 (instantiate_scev_2): Likewise.
2851 (instantiate_scev_r): Likewise.
2852 (instantiate_scev): Likewise.
2853 (resolve_mixers): Likewise.
2854
36ff9dfb
VM
28552013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2856
2857 PR target/57091
2858 * lra-constraints.c (best_small_class_operands_num): Remove.
2859 (process_alt_operands): Remove small_class_operands_num. Take
2860 small classes operands into losers and only if the operand is not
2861 matched. Modify debugging output.
2862 (curr_insn_transform): Remove best_small_class_operands_num.
2863 Print insn name.
2864
36054fab
JG
28652013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2866
2867 * config/aarch64/aarch64-builtins.c
2868 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2869 * config/aarch64/aarch64-simd-builtins.def
2870 (reduc_splus_): Add new modes.
2871 (reduc_uplus_): New.
2872 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2873 (reduc_uplus_v4sf): Likewise.
2874 (reduc_splus_v4sf): Likewise.
2875 (aarch64_addv<mode>): Likewise.
2876 (reduc_uplus_<mode>): Likewise.
2877 (reduc_splus_<mode>): Likewise.
2878 (aarch64_addvv2di): Likewise.
2879 (reduc_uplus_v2di): Likewise.
2880 (reduc_splus_v2di): Likewise.
2881 (aarch64_addvv2si): Likewise.
2882 (reduc_uplus_v2si): Likewise.
2883 (reduc_splus_v2si): Likewise.
2884 (reduc_<sur>plus_<mode>): New.
2885 (reduc_<sur>plus_v2di): Likewise.
2886 (reduc_<sur>plus_v2si): Likewise.
2887 (reduc_<sur>plus_v4sf): Likewise.
2888 (aarch64_addpv4sf): Likewise.
2889 * config/aarch64/arm_neon.h
2890 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2891 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2892 add UNSPEC_SADDV, UNSPEC_UADDV.
2893 (SUADDV): New.
2894 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2895
6dce23a8
JG
28962013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2897
2898 * config/aarch64/arm_neon.h
2899 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2900
1598945b
JG
29012013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2902
2903 * config/aarch64/aarch64-builtins
2904 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2905
998eaf97
JG
29062013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2907
2908 * config/aarch64/aarch64-simd-builtins.def
2909 (reduc_smax_): New.
2910 (reduc_smin_): Likewise.
2911 (reduc_umax_): Likewise.
2912 (reduc_umin_): Likewise.
2913 (reduc_smax_nan_): Likewise.
2914 (reduc_smin_nan_): Likewise.
2915 (fmax): Remove.
2916 (fmin): Likewise.
2917 (smax): Update for V2SF, V4SF and V2DF modes.
2918 (smin): Likewise.
2919 (smax_nan): New.
2920 (smin_nan): Likewise.
2921 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2922 (<su><maxmin><mode>3): ...This, refactor.
2923 (s<maxmin><mode>3): New.
2924 (<maxmin_uns><mode>3): Likewise.
2925 (reduc_<maxmin_uns>_<mode>): Refactor.
2926 (reduc_<maxmin_uns>_v4sf): Likewise.
2927 (reduc_<maxmin_uns>_v2si): Likewise.
2928 (aarch64_<fmaxmin><mode>: Remove.
2929 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2930 new builtin names.
2931 (vmin<q>_f<32,64>): Likewise.
2932 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2933 (FMAXMIN): New.
2934 (su): Add mappings for smax, smin, umax, umin.
2935 (maxmin): New.
2936 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2937 (FMAXMIN): Rename as...
2938 (FMAXMIN_UNS): ...This.
2939 (maxminv): Remove.
2940 (fmaxminv): Likewise.
2941 (fmaxmin): Likewise.
2942 (maxmin_uns): New.
2943 (maxmin_uns_op): Likewise.
2944
bd11644e
JG
29452013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2946
2947 * config/aarch64/arm_neon.h
2948 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2949 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2950 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2951
75dd5ace
JG
29522013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2953
2954 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2955 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2956
7c19979f
JG
29572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2958
2959 * config/aarch64/aarch64-simd.md
2960 (vcond<mode>_internal): Handle special cases for constant masks.
2961 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2962 (vcondu<mode><mode>): Likewise.
2963 (vcond<v_cmp_result><mode>): New.
2964
bb60efd9
JG
29652013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2966
2967 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2968 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2969 * config/aarch64/aarch64-simd-builtins.def
2970 (cmeq): Update to BUILTIN_VALLDI.
2971 (cmgt): Likewise.
2972 (cmge): Likewise.
2973 (cmle): Likewise.
2974 (cmlt): Likewise.
2975 * config/aarch64/arm_neon.h
2976 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2977 to builtins or C as appropriate.
2978
889b9412
JG
29792013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2980
2981 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2982 (cmgeu): ...This.
2983 (cmhi): Rename to...
2984 (cmgtu): ...This.
2985 * config/aarch64/aarch64-simd.md
2986 (simd_mode): Add SF.
2987 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2988 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2989 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2990 (cstore<mode>_neg): ...This.
2991 * config/aarch64/iterators.md
2992 (VALLF): new.
2993 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2994 (COMPARISONS): New.
2995 (UCOMPARISONS): Likewise.
2996 (optab): Add missing comparisons.
2997 (n_optab): New.
2998 (cmp_1): Likewise.
2999 (cmp_2): Likewise.
3000 (CMP): Likewise.
3001 (cmp): Remove.
3002 (VCMP_S): Likewise.
3003 (VCMP_U): Likewise.
3004 (V_cmp_result): Add DF, SF modes.
3005 (v_cmp_result): Likewise.
3006 (v): Likewise.
3007 (vmtype): Likewise.
3008 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3009
0a7dbb76
GY
30102013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3011
3012 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3013 define_insn to define_insn_and_split.
3014 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3015 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3016 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3017 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3018 (thumb2_negscc): Likewise.
3019
fb614ca6
GY
30202013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3021
3022 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3023
9e64a0bf
GY
30242013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3025
3026 * config/arm/thumb2.md: Remove trailing whitespaces.
3027
d6b28156
RS
30282013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3029
3030 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3031 Use gen_int_mode rather than GEN_INT.
3032
f91674c3
L
30332013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3034
b0dec607 3035 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
3036 debug_gimple_stmt.
3037
3551257c
RB
30382013-04-30 Richard Biener <rguenther@suse.de>
3039
3040 PR middle-end/57122
3c21604f 3041 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 3042
4c1aff1c
RB
30432013-04-30 Richard Biener <rguenther@suse.de>
3044
3045 PR middle-end/57107
3046 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3047
54b8379a
AB
30482013-04-30 Andrey Belevantsev <abel@ispras.ru>
3049
3050 PR rtl-optimization/56957
3051 PR rtl-optimization/57105
54b8379a
AB
3052 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3053 variable. Use just INSN_UID for determining whether an insn
3054 should be only disconnected from the insn stream.
3055 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3056
abc27962
JJ
30572013-04-30 Jakub Jelinek <jakub@redhat.com>
3058
3059 PR tree-optimization/57104
3060 * tsan.c (instrument_expr): Don't instrument accesses to
3061 DECL_HARD_REGISTER VAR_DECLs.
3062
0fc822d0
RB
30632013-04-30 Richard Biener <rguenther@suse.de>
3064
3065 * function.h (loops_for_fn): New inline function.
3066 (set_loops_for_fn): Likewise.
3067 * cfgloop.h (place_new_loop): Add struct function parameter.
3068 (get_loop): Likewise.
3069 (get_loops): Likewise.
3070 (number_of_loops): Likewise.
3071 (fel_next): Adjust.
3072 (fel_init): Likewise.
3073 * cfg.c (get_loop_copy): Adjust.
3074 * cfgloop.c (flow_loops_dump): Likewise.
3075 (record_loop_exits): Likewise.
3076 (verify_loop_structure): Likewise.
3077 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3078 (estimate_reg_pressure_cost): Likewise.
3079 (mark_loop_exit_edges): Likewise.
3080 * cfgloopmanip.c (place_new_loop): Likewise.
3081 (add_loop): Likewise.
3082 (duplicate_loop): Likewise.
3083 * graph.c (draw_cfg_nodes): Likewise.
3084 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3085 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3086 (extract_affine_chrec): Likewise.
3087 (build_scop_iteration_domain): Likewise.
3088 * graphite.c (graphite_initialize): Likewise.
3089 * ira-build.c (create_loop_tree_nodes): Likewise.
3090 (more_one_region_p): Likewise.
3091 (rebuild_regno_allocno_maps): Likewise.
3092 (mark_loops_for_removal): Likewise.
3093 (mark_all_loops_for_removal): Likewise.
3094 (remove_unnecessary_regions): Likewise.
3095 (ira_build): Likewise.
3096 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3097 * loop-init.c (fix_loop_structure): Likewise.
3098 (gate_rtl_move_loop_invariants): Likewise.
3099 (gate_rtl_unswitch): Likewise.
3100 (gate_rtl_unroll_and_peel_loops): Likewise.
3101 (rtl_doloop): Likewise.
3102 * lto-streamer-in.c (input_cfg): Likewise.
3103 * lto-streamer-out.c (output_cfg): Likewise.
3104 * modulo-sched.c (sms_schedule): Likewise.
3105 * predict.c (tree_estimate_probability): Likewise.
3106 (tree_estimate_probability_driver): Likewise.
3107 (estimate_loops): Likewise.
3108 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3109 (move_sese_region_to_fn): Likewise.
3110 (debug_loop_num): Likewise.
3111 * tree-chrec.c (chrec_evaluate): Likewise.
3112 (hide_evolution_in_other_loops_than_loop): Likewise.
3113 (chrec_component_in_loop_num): Likewise.
3114 (reset_evolution_in_loop): Likewise.
3115 (evolution_function_is_invariant_rec_p): Likewise.
3116 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3117 * tree-inline.c (copy_loops): Likewise.
3118 (copy_cfg_body): Likewise.
3119 (tree_function_versioning): Likewise.
3120 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3121 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3122 Likewise.
3123 (add_to_evolution_1): Likewise.
3124 (scev_const_prop): Likewise.
3125 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3126 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3127 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3128 (tree_ssa_lim_initialize): Likewise.
3129 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3130 (verify_loop_closed_ssa): Likewise.
3131 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3132 (tree_ssa_loop_im): Likewise.
3133 (tree_ssa_loop_unswitch): Likewise.
3134 (tree_vectorize): Likewise.
3135 (check_data_deps): Likewise.
3136 (tree_ssa_loop_ivcanon): Likewise.
3137 (tree_ssa_loop_bounds): Likewise.
3138 (tree_complete_unroll): Likewise.
3139 (tree_complete_unroll_inner): Likewise.
3140 (tree_parallelize_loops): Likewise.
3141 (tree_ssa_loop_prefetch): Likewise.
3142 (tree_ssa_loop_ivopts): Likewise.
3143 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3144 * tree-vectorizer.c (vectorize_loops): Likewise.
3145
37953bd3
MF
31462013-04-29 Mike Frysinger <vapier@gentoo.org>
3147
3148 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3149 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3150 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3151 with EABI_LINK_SPEC.
3152
f9ed28db
UB
31532013-04-29 Uros Bizjak <ubizjak@gmail.com>
3154
3155 PR target/44578
3156 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3157 alternative.
3158
deca73f5
VM
31592013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3160
3161 PR target/57097
37953bd3 3162 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
3163 using memory for pseudos. Print cost dump for alternatives.
3164 Modify cost values for conflicts with early clobbers.
3165 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3166
fdca7d03
UB
31672013-04-29 Uros Bizjak <ubizjak@gmail.com>
3168
3169 PR target/57098
3170 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3171
0b064172
IB
31722013-04-29 Ian Bolton <ian.bolton@arm.com>
3173
3174 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3175 from/to S register.
3176 (movdi_aarch64): Support LDR/STR from/to D register.
3177
473cec55
IB
31782013-04-29 Ian Bolton <ian.bolton@arm.com>
3179
3180 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3181 or higher by default.
3182
a6f30e66
RB
31832013-04-29 Richard Biener <rguenther@suse.de>
3184
3185 PR middle-end/57075
3186 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3187 even if not adding abnormal edges for calls that can make
3188 abnormal gotos.
3189
0c2b2040
RB
31902013-04-29 Richard Biener <rguenther@suse.de>
3191
3192 PR middle-end/57103
3193 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3194 TREE_BLOCK.
3195 (move_stmt_r): Remove redundant checking.
3196
f41f80f9
TJ
31972013-04-29 Teresa Johnson <tejohnson@google.com>
3198
3199 PR bootstrap/57077
3200 * basic-block.h (apply_scale): New function.
3201 (apply_probability): Use apply_scale.
3202 * gimple-streamer-in.c (input_bb): Ditto.
3203 * lto-streamer-in.c (input_cfg): Ditto.
3204 * lto-cgraph.c (merge_profile_summaries): Ditto.
3205 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 3206 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
3207 (copy_edges_for_bb): Ditto.
3208 (copy_cfg_body): Ditto.
3209
315bbd2e
TV
32102013-04-29 Tom de Vries <tom@codesourcery.com>
3211
3212 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3213 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3214 (tail_merge_optimize): Handle current_loops == NULL.
3215
ebbd90d8
JL
32162013-04-26 Jeff Law <law@redhat.com>
3217
3218 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3219 (simplify_cond_using_ranges): Generalize code to simplify
3220 COND_EXPRs where one argument is a constant and the other
3221 is an SSA_NAME created by an integral type conversion.
3222
8b9b57eb
KT
32232013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3224
3225 * config/arm/arm.md (store_minmaxsi): Use only when
3226 optimize_insn_for_size_p.
3227
9498e5dc
CB
32282013-04-29 Christian Bruel <christian.bruel@st.com>
3229
3230 PR target/57108
3231 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3232
6093bc06
RB
32332013-04-29 Richard Biener <rguenther@suse.de>
3234
3235 PR middle-end/57089
fdca7d03
UB
3236 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3237 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
3238 (expand_omp_for_generic): Properly add loops.
3239 (expand_omp_for_static_nochunk): Likewise.
3240 (expand_omp_for_static_chunk): Likewise.
3241 (expand_omp_for): For the degenerate case fixup loops.
3242 (expand_omp_sections): Fix default bb placement in loops.
3243 (expand_omp_atomic_pipeline): Properly add loops.
3244
84aacbfd
KT
32452013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3246
3247 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3248
8dee4479
TV
32492013-04-29 Tom de Vries <tom@codesourcery.com>
3250
3251 * tree-ssa-tail-merge.c: Update header comment.
3252
47934dc4
JG
32532013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3254
3255 * config/aarch64/arm_neon.h
3256 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3257 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3258 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3259 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3260 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3261 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3262 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3263 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3264
384be29f
JG
32652013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3266
3267 * config/aarch64/aarch64-simd.md
3268 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3269 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3270 fix_trunc, fixuns_trunc.
3271 (ftrunc<VDQF:mode>2): New.
3272 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3273 (fix_trunc_optab): New.
3274
0386b123
JG
32752013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3276
3277 * config/aarch64/aarch64-builtins.c
3278 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3279 iceilf, lround, iroundf.
3280
00fcb892
UB
32812013-04-29 Uros Bizjak <ubizjak@gmail.com>
3282
3283 PR target/54349
3284 * config/i386/i386.h (enum ix86_tune_indices)
3285 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3286 New, split from X86_TUNE_INTER_UNIT_MOVES.
3287 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3288 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3289 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3290 (TARGET_INTER_UNIT_MOVES): Remove.
3291 * config/i386/i386.c (initial_ix86_tune_features): Update.
3292 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3293 (ix86_expand_convert_uns_didf_sse): Use
3294 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3295 (ix86_expand_vector_init_one_nonzero): Ditto.
3296 (ix86_expand_vector_init_interleave): Ditto.
3297 (inline_secondary_memory_needed): Return true for moves from SSE class
3298 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3299 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3300 * config/i386/constraints.md (Yi, Ym): Depend on
3301 TARGET_INTER_UNIT_MOVES_TO_VEC.
3302 (Yj, Yn): New constraints.
3303 * config/i386/i386.md (*movdi_internal): Change constraints of
3304 operand 1 from Yi to Yj and from Ym to Yn.
3305 (*movsi_internal): Ditto.
3306 (*movdf_internal): Ditto.
3307 (*movsf_internal): Ditto.
3308 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3309 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3310 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3311 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3312 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3313 * config/i386/sse.md (movdi_to_sse): Ditto.
3314 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3315 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3316 TARGET_INTER_UNIT_MOVES.
3317 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3318 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3319 instead of TARGET_INTER_UNIT_MOVES.
3320 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3321 operand 1 from Yi to Yj and from Ym to Yn.
3322
4c871069
JG
33232013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3324
3325 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3326 (float_truncate_hi_): Likewise.
3327 (float_extend_lo_): Likewise.
3328 (float_truncate_lo_): Likewise.
3329 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3330 (aarch64_float_extend_lo_v2df): Likewise.
3331 (vec_unpacks_hi_v4sf): Likewise.
3332 (aarch64_float_truncate_lo_v2sf): Likewise.
3333 (aarch64_float_truncate_hi_v4sf): Likewise.
3334 (vec_pack_trunc_v2df): Likewise.
3335 (vec_pack_trunc_df): Likewise.
3336
1709ff9b
JG
33372013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3338
3339 * config/aarch64/aarch64-builtins.c
3340 (aarch64_fold_builtin): Fold float conversions.
3341 * config/aarch64/aarch64-simd-builtins.def
3342 (floatv2si, floatv4si, floatv2di): New.
3343 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3344 * config/aarch64/aarch64-simd.md
3345 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3346 * config/aarch64/iterators.md (FLOATUORS): New.
3347 (optab): Add float, floatuns.
3348 (su_optab): Likewise.
3349
ce966824
JG
33502013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3351
3352 * config/aarch64/aarch64-builtins.c
3353 (aarch64_builtin_vectorized_function): Use new names for
3354 fcvt builtins.
3355 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3356 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3357 (fcvtzu): Split as...
3358 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3359 (fcvtas): Split as...
3360 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3361 (fcvtau): Split as...
3362 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3363 (fcvtps): Split as...
3364 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3365 (fcvtpu): Split as...
3366 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3367 (fcvtms): Split as...
3368 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3369 (fcvtmu): Split as...
3370 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3371 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3372 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3373 (lfrintnusf, lfrintnudf): Likewise.
3374 * config/aarch64/aarch64-simd.md
3375 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3376 define_insn.
3377 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3378 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3379 (fcvt_pattern): Likewise.
3380
b9de24fe
JG
33812013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3382
3383 * config/aarch64/aarch64-simd.md
3384 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3385 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3386
77a205be
JG
33872013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3388
3389 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3390 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3391 (vrnd<a,m,n,p>_f32): Implement using builtins.
3392 (vrnd<i,x><q>_f<32, 64>): New.
3393
0659ce6f
JG
33942013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3395
3396 * config/aarch64/aarch64-builtins.c
3397 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3398 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3399 (frintz): Rename to...
3400 (btrunc): ...this.
3401 (frintp): Rename to...
3402 (ceil): ...this.
3403 (frintm): Rename to...
3404 (floor): ...this.
3405 (frinti): Rename to...
3406 (nearbyint): ...this.
3407 (frintx): Rename to...
3408 (rint): ...this.
3409 (frinta): Rename to...
3410 (round): ...this.
3411 * config/aarch64/aarch64-simd.md
3412 (aarch64_frint<frint_suffix><mode>): Delete.
3413 (<frint_pattern><mode>2): Convert to insn.
3414 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3415 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3416 (frint_pattern): Likewise.
3417 (frint_suffix): Likewise.
3418
ea78906a
RB
34192013-04-29 Richard Biener <rguenther@suse.de>
3420
3421 PR tree-optimization/57081
3422 * loop-init.c: Include tree-flow.h.
3423 (loop_optimizer_finalize): Free number of iteration estimates.
3424 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3425
baee1763
JJ
34262013-04-29 Jakub Jelinek <jakub@redhat.com>
3427
94dc5332
JJ
3428 PR tree-optimization/57083
3429 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3430 non-singleton shift count range, zero extend low_bound for uns case.
3431
baee1763
JJ
3432 * config/i386/predicates.md (general_vector_operand): New predicate.
3433 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3434 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3435 if they aren't nonimmediate operands. If their original values
3436 satisfy const_vector_equal_evenodd_p, don't shift them.
3437 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3438 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3439 if not nonimmediate_operand.
3440 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3441 instead of register_operand.
3442 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3443
a9073727 34442013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
3445
3446 * stor-layout.c (finalize_size_functions): Allocate a structure and
3447 reset cfun before dumping the functions.
3448
ba8011e6
JJ
34492013-04-27 Jakub Jelinek <jakub@redhat.com>
3450
d6fde69e
JJ
3451 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3452
ba8011e6
JJ
3453 PR target/56866
3454 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3455 use xop_pmacsdqh if uns_p.
3456 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3457 the immediate rotate count.
3458
2c62cbaa
VM
34592013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3460
3461 * rtl.h (struct rtx_def): Add comment for field jump.
3462 (LRA_SUBREG_P): New macro.
3463 * recog.c (register_operand): Check LRA_SUBREG_P.
3464 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3465 stack frame.
3466 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3467 (lra_final_code_change): Skip subreg change for operators.
3468 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3469 if there are no operand changes.
3470 * lra-constraints.c (curr_insn_set): New.
3471 (match_reload): Set LRA_SUBREG_P.
3472 (emit_spill_move): Ditto.
3473 (check_and_process_move): Use curr_insn_set. Process only single
3474 set insns. Don't initialize sec_mem_p and change_p.
3475 (simplify_operand_subreg): Use LRA_SUBREG_P.
3476 (reg_in_class_p): New function.
3477 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3478 of #ifdef. Add code to remove cycling.
3479 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3480 non-null disp. Reload inner instead of disp when base and index
3481 are null. Try to put lo_sum into register.
3482 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3483 (check_and_process_move): Move code for move cost check to
3484 simple_move_p. Remove equiv_substitution.
3485 (simple_move_p): New function.
3486 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3487 curr_insn_set. Call check_and_process_move only for single set
3488 insns. Use the new function. Move call of check_and_process_move
3489 after operand equiv substitution and address process.
3490
e7d764f3
JJ
34912013-04-26 Jakub Jelinek <jakub@redhat.com>
3492
3493 PR go/57045
3494 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3495 with nonlocal goto receivers or returns twice calls, ignore
3496 unininitialized values from abnormal edges to nl goto receiver
3497 or returns twice call.
3498
41e10689
JJ
34992013-04-26 Jakub Jelinek <jakub@redhat.com>
3500
3501 PR tree-optimization/57051
3502 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3503 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3504 bitsize.
3505
d7ed20db
RB
35062013-04-26 Richard Biener <rguenther@suse.de>
3507
3508 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3509 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3510 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3511 (fixup_loop_arrays_after_move): New function.
3512 (move_sese_region_to_fn): Properly outline the loop tree parts
3513 of the SESE region.
3514
df93505e
UB
35152013-04-26 Uros Bizjak <ubizjak@gmail.com>
3516
3517 * config/i386/i386.md (type, unit): Fix long lines.
3518
dd366ec3
RB
35192013-04-26 Richard Biener <rguenther@suse.de>
3520
3521 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3522 (lto-streamer-out.o): Likewise.
3523 * cfgloop.c (init_loops_structure): Export, add struct function
3524 argument and adjust.
3525 (flow_loops_find): Adjust.
3526 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3527 (init_loops_structure): Declare.
3528 * lto-streamer-in.c: Include cfgloop.h.
3529 (input_cfg): Input the loop tree.
3530 * lto-streamer-out.c: Include cfgloop.h.
3531 (output_cfg): Output the loop tree.
3532 (output_struct_function_base): Do not drop PROP_loops.
3533
a9e0d843
RB
35342013-03-26 Richard Biener <rguenther@suse.de>
3535
3536 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3537 (pass_build_cfg): Provide PROP_loops.
3538 (move_sese_region_to_fn): Remove loops that are outlined into fn
3539 for now.
3540 * tree-inline.c: Include cfgloop.h.
3541 (initialize_cfun): Do not drop PROP_loops.
3542 (copy_loops): New function.
3543 (copy_cfg_body): Copy loop structure.
3544 (tree_function_versioning): Initialize destination loop tree.
3545 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3546 (pass_parallelize_loops): Do IL verification.
3547 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3548 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3549 the CFG make sure we fixup loops as well.
3550 * tree-ssa-tail-merge.c: Include cfgloop.h.
3551 (replace_block_by): When merging loop latches mark loops for fixup.
3552 * lto-streamer-out.c (output_struct_function_base): Drop
3553 PROP_loops for now.
3554 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3555 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3556 * ipa-split.c: Include cfgloop.h.
3557 (split_function): Add the new return block to the loop tree root.
3558 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3559 whether we have removed the forwarder block.
3560 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3561 * cfgloop.h (place_new_loop): Declare.
3562 * cfgloopmanip.c (place_new_loop): Export.
3563 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3564 (tree-switch-conversion.o): Likewise.
3565 (tree-complex.o): Likewise.
3566 (tree-inline.o): Likewise.
3567 (tree-ssa-tailmerge.o): Likewise.
3568 (ipa-split.o): Likewise.
3569 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3570 (tree-ssa-copy.o): Likewise.
3571 * tree-switch-conversion.c: Include cfgloop.h
3572 (process_switch): If we emit a bit-test cascade, schedule loops
3573 for fixup.
3574 * tree-complex.c: Include cfgloop.h.
3575 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3576 * asan.c: Include cfgloop.h.
3577 (create_cond_insert_point): Properly add new basic-blocks to
3578 loops, schedule loop fixup.
3579 * cfgloop.c (verify_loop_structure): Check that looks are not
3580 marked for fixup.
3581 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3582 to loops.
3583 (expand_omp_for_generic): Likewise.
3584 (expand_omp_sections): Likewise.
3585 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3586 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3587 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3588 is initialized, not when loops are present.
3589 * tree-parloops.c (parallelize_loops): Remove checking here.
3590 * passes.c (init_optimization_passes): Schedule a copy-propagation
3591 pass before complete unrolling of inner loops.
3592
e78e8a0b
JJ
35932013-04-26 Jakub Jelinek <jakub@redhat.com>
3594
a2e836b2
JJ
3595 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3596 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3597 (colorize_init): Add argument to _WIN32 version.
3598 * toplev.c: Include diagnostic-color.h.
3599 (process_options): Default to -fdiagnostics-color=auto if
3600 GCC_COLORS env var is in the environment.
3601 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
3602 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3603 env var is in the environment, the default is auto rather than never.
a2e836b2 3604
e78e8a0b
JJ
3605 * diagnostic.h (file_name_as_prefix): Add context argument.
3606 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3607 the string as locus.
3608 * langhooks.c (lhd_print_error_function): Adjust caller.
3609
013e5ef9
LC
36102013-04-25 Lawrence Crowl <crowl@google.com>
3611
3612 * var-tracking.c (shared_hash_def::htab):
3613 Change type to hash_table. Update dependent calls and types.
3614
4a8fb1a1
LC
36152013-04-25 Lawrence Crowl <crowl@google.com>
3616
3617 * Makefile.in: Update as needed below.
3618
3619 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3620 Move declaration to after the type's method definitons.
3621
3622 * attribs.c (htab_t scoped_attributes::attribute_hash):
3623 Change type to hash_table. Update dependent calls and types.
3624
3625 * bitmap.c (htab_t bitmap_desc_hash):
3626 Change type to hash_table. Update dependent calls and types.
3627
3628 * cselib.c (htab_t cselib_hash_table):
3629 Change type to hash_table. Update dependent calls and types.
3630
3631 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3632 (hash_string_slot_node): Move implementation into lto-streamer.h
3633 struct string_slot_hasher.
3634 (eq_string_slot_node): Likewise.
3635
3636 * data-streamer-out.c: Update output_block::string_hash_table
3637 dependent calls and types.
3638
3639 * dwarf2cfi.c (htab_t trace_index):
3640 Change type to hash_table. Update dependent calls and types.
3641
3642 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3643 Change type to hash_table. Update dependent calls and types.
3644 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3645 (htab_t optimize_external_refs::map): Likewise.
3646 (htab_t output_comp_unit::extern_map): Likewise.
3647 (htab_t output_comdat_type_unit::extern_map): Likewise.
3648 (htab_t output_macinfo::macinfo_htab): Likewise.
3649 (htab_t optimize_location_lists::htab): Likewise.
3650 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3651
3652 * except.c (htab_t ehspec_hash_type):
3653 Change type to hash_table. Update dependent calls and types.
3654 (assign_filter_values::ttypes): Likewise.
3655 (assign_filter_values::ehspec): Likewise.
3656 (sjlj_assign_call_site_values::ar_hash): Likewise.
3657 (convert_to_eh_region_ranges::ar_hash): Likewise.
3658
3659 * gcse.c (htab_t pre_ldst_table):
3660 Change type to hash_table. Update dependent calls and types.
3661
3662 * ggc-common.c (htab_t saving_htab):
3663 Change type to hash_table. Update dependent calls and types.
3664 (htab_t loc_hash): Likewise.
3665 (htab_t ptr_hash): Likewise.
3666 (call_count): Rename ggc_call_count.
3667 (call_alloc): Rename ggc_call_alloc.
3668 (loc_descriptor): Rename make_loc_descriptor.
3669 (add_statistics): Rename ggc_add_statistics.
3670
3671 * ggc-common.c (saving_htab):
3672 Change type to hash_table. Update dependent calls and types.
3673
3674 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3675 (push_gimplify_context): Likewise.
3676 (pop_gimplify_context): Likewise.
3677 (struct gimple_temp_hash_elt): Added.
3678 (struct gimplify_hasher): Likewise.
3679 (struct gimplify_ctx.temp_htab):
3680 Change type to hash_table. Update dependent calls and types.
3681
3682 * gimple-fold.c: Include gimplify-ctx.h.
3683
3684 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3685 Change type to hash_table. Update dependent calls and types.
3686 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3687 avoid potential global name collision.
3688
3689 * gimplify.c: Include gimplify-ctx.h.
3690 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3691 (htab_t gimplify_ctx::temp_htab):
3692 Update dependent calls and types for new type hash_table.
3693 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3694 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3695
3696 * gimplify-ctx.h: New.
3697 (struct gimple_temp_hash_elt): Move from gimplify.c.
3698 (class gimplify_hasher): New.
3699 (struct gimplify_ctx): Move from gimple.h.
3700 (htab_t gimplify_ctx::temp_htab):
3701 Change type to hash_table. Update dependent calls and types.
3702
3703 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3704 (htab_t ivs_params::newivs_index):
3705 Change type to hash_table. Update dependent calls and types.
3706 (htab_t ivs_params::params_index): Likewise.
3707 (htab_t print_generated_program::params_index): Likewise.
3708 (htab_t gloog::newivs_index): Likewise.
3709 (htab_t gloog::params_index): Likewise.
3710
3711 * graphite.c: Include graphite-htab.h.
3712 4htab_t graphite_transform_loops::bb_pbb_mapping):
3713 Change type to hash_table. Update dependent calls and types.
3714
3715 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3716 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3717 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3718
3719 * graphite-dependences.c: Include graphite-htab.h.
3720 (loop_is_parallel_p): Change hash table type of parameter.
3721
3722 * graphite-htab.h: New.
3723 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3724 (extern find_pbb_via_hash): Move from graphite-poly.h.
3725 (extern loop_is_parallel_p): Move from graphite-poly.h.
3726 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3727
3728 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3729 (extern loop_is_parallel_p): Move to graphite-htab.h.
3730 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3731
3732 * haifa-sched.c (htab_t delay_htab):
3733 Change type to hash_table. Update dependent calls and types.
3734 (htab_t delay_htab_i2): Likewise.
3735
3736 * ira-color.c (htab_t allocno_hard_regs_htab):
3737 Change type to hash_table. Update dependent calls and types.
3738
3739 * ira-costs.c (htab_t cost_classes_htab):
3740 Change type to hash_table. Update dependent calls and types.
3741
3742 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3743 Change type to hash_table. Update dependent calls and types.
3744
3745 * loop-iv.c (htab_t bivs):
3746 Change type to hash_table. Update dependent calls and types.
3747
3748 * loop-unroll.c (htab_t opt_info::insns_to_split):
3749 Change type to hash_table. Update dependent calls and types.
3750 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3751
3752 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3753 (struct string_slot_hasher): New.
3754 (htab_t output_block::string_hash_table):
3755 Change type to hash_table. Update dependent calls and types.
3756
3757 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3758 (htab_t file_name_hash_table):
3759 Change type to hash_table. Update dependent calls and types.
3760
3761 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3762 calls and types.
3763
3764 * lto-streamer.c (htab_t tree_htab):
3765 Change type to hash_table. Update dependent calls and types.
3766
3767 * omp-low.c: Include gimplify-ctx.h.
3768
3769 * passes.c (htab_t name_to_pass_map):
3770 Change type to hash_table. Update dependent calls and types.
3771 (pass_traverse): Rename to passes_pass_traverse.
3772
3773 * plugin.c (htab_t event_tab):
3774 Change type to hash_table. Update dependent calls and types.
3775
3776 * postreload-gcse.c (htab_t expr_table):
3777 Change type to hash_table. Update dependent calls and types.
3778 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3779
3780 * sese.c (debug_rename_map_1): Make extern.
3781 (htab_t copy_bb_and_scalar_dependences::rename_map):
3782 Change type to hash_table. Update dependent calls and types.
3783
3784 * sese.h (extern debug_rename_map): Move to .c file.
3785
3786 * store-motion.c (htab_t store_motion_mems_table):
3787 Change type to hash_table. Update dependent calls and types.
3788
3789 * trans-mem.c (htab_t tm_new_mem_hash):
3790 Change type to hash_table. Update dependent calls and types.
3791
3792 * tree-browser.c (htab_t TB_up_ht):
3793 Change type to hash_table. Update dependent calls and types.
3794
3795 * tree-cfg.c (htab_t discriminator_per_locus):
3796 Change type to hash_table. Update dependent calls and types.
3797
3798 * tree-complex.c: Include tree-hasher.h
3799 (htab_t complex_variable_components):
3800 Change type to hash_table. Update dependent calls and types.
3801
3802 * tree-eh.c (htab_t finally_tree):
3803 Change type to hash_table. Update dependent calls and types.
3804
3805 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3806 struct int_tree_hasher.
3807 (extern int_tree_map_eq): Likewise.
3808 (uid_decl_map_hash): Removed.
3809 (extern decl_tree_map_eq): Likewise.
3810
3811 * tree-hasher.h: New.
3812 (struct int_tree_hasher): New.
3813 (typedef int_tree_htab_type): New.
3814
3815 * tree-inline.c: Include gimplify-ctx.h.
3816
3817 * tree-mudflap.c: Include gimplify-ctx.h.
3818
3819 * tree-parloops.c: Include tree-hasher.h.
3820 (htab_t eliminate_local_variables_stmt::decl_address):
3821 Change type to hash_table. Update dependent calls and types.
3822 (htab_t separate_decls_in_region::decl_copies): Likewise.
3823
3824 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3825 Change type to hash_table. Update dependent calls and types.
3826
3827 * tree-sra.c (candidates):
3828 Change type to hash_table. Update dependent calls and types.
3829
3830 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3831 in tree-flow.h.
3832 (int_tree_map_hash): Likewise.
3833
3834 * tree-ssa-dom.c (htab_t avail_exprs):
3835 Change type to hash_table. Update dependent calls and types.
3836
3837 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3838 Change type to hash_table. Update dependent calls and types.
3839
3840 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3841 Change type to hash_table. Update dependent calls and types.
3842
3843 * tree-ssa-phiopt.c (seen_ssa_names):
3844 Change type to hash_table. Update dependent calls and types.
3845
3846 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3847 Change type to hash_table. Update dependent calls and types.
3848
3849 * tree-ssa-uncprop.c (equiv):
3850 Change type to hash_table. Update dependent calls and types.
3851
c5a44004
JJ
38522013-04-25 Jakub Jelinek <jakub@redhat.com>
3853
3854 PR rtl-optimization/57003
3855 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3856 call note_stores with kill_clobbered_value callback again after
3857 killing regs_invalidated_by_call.
3858
09962a4a
JG
38592013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3860
3861 * config/aarch64/aarch64-simd.md
3862 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3863 (aarch64_simd_bsl<mode>): Likewise.
3864 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3865
ea28bb0b
MP
38662013-04-25 Marek Polacek <polacek@redhat.com>
3867
3868 PR tree-optimization/57066
3c21604f 3869 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3870
96659611
JG
38712013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3872
3873 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3874
9697e620
JG
38752013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3876
3877 * config/aarch64/aarch64-builtins.c
3878 (aarch64_fold_builtin): New.
3879 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3880 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3881 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3882 * config/aarch64/arm_neon.h
3883 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3884
0ac198d3
JG
38852013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3886 Tejas Belagod <tejas.belagod@arm.com>
3887
3888 * config/aarch64/aarch64-builtins.c
3889 (aarch64_gimple_fold_builtin): New.
3890 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3891 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3892 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3893 (addvv4sf): Update.
3894 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3895
58cff58c
N
38962013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3897
df93505e 3898 * config/aarch64/aarch64.md
58cff58c
N
3899 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3900
7e0228bf
N
39012013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3902
3903 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3904 (*ngcsi_uxtw): New pattern.
3905
5819f96f 39062013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3907 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3908
3909 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3910 (TB_DREG): Add T_V4HF.
3911 (v4hf_UP): New macro.
3912 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3913 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3914 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3915 built-ins.
df93505e 3916 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3917 (arm_vector_mode_supported_p): Handle V4HF.
3918 (arm_mangle_map): Handle V4HFmode.
3919 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3920 * config/arm/arm_neon_builtins.def: Add entries for
3921 vcvtv4hfv4sf, vcvtv4sfv4hf.
3922 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3923 (neon_vcvtv4hfv4sf): Likewise.
3924 * config/arm/neon-gen.ml: Handle half-precision floating point
3925 features.
3926 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3927 * config/arm/arm_neon.h: Regenerate.
3928 * config/arm/neon.ml (type elts): Add F16.
3929 (type vectype): Add T_float16x4, T_floatHF.
3930 (type vecmode): Add V4HF.
3931 (type features): Add Requires_FP_bit feature.
3932 (elt_width): Handle F16.
3933 (elt_class): Likewise.
3934 (elt_of_class_width): Likewise.
3935 (mode_of_elt): Refactor.
3936 (type_for_elt): Handle F16, fix error messages.
3937 (vectype_size): Handle T_float16x4.
3938 (vcvt_sh): New function.
3939 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3940 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3941 (string_of_mode): Handle V4HF.
3942 * doc/arm-neon-intrinsics.texi: Regenerate.
3943
1ef395e4
JG
39442013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3945
3946 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3947 format specifier in 'X' case.
3948
41c34e94
AM
39492013-04-25 Alan Modra <amodra@gmail.com>
3950
3951 PR target/57052
3952 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3953 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3954 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3955 Repeat for many other rotate/shift and mask patterns using subregs.
3956 Name lshiftrt insns.
3957 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3958 on WORDS_BIG_ENDIAN.
3959
b9a7eb5d
AM
39602013-04-25 Alan Modra <amodra@gmail.com>
3961
3962 * config.gcc: Support little-endian powerpc-linux targets.
3963 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3964 (LINK_OS_LINUX_SPEC): Define.
3965 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3966 Preserve MASK_LITTLE_ENDIAN.
3967 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3968 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3969 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3970 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3971 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3972 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3973 Correct fp word order for little-endian. Don't shift toc entries
3974 smaller than a word for little-endian.
3975 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3976 (bswapdi2 splits): Correct low-part subreg for little-endian.
3977 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3978 low/high where such is correct only for be.
3979 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3980 little-endian for -mcall-aixdesc.
3981
87f73374
AM
39822013-04-25 Alan Modra <amodra@gmail.com>
3983
3984 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3985 replace_equiv_address_nv.
3986
cabf91cd
AM
39872013-04-25 Alan Modra <amodra@gmail.com>
3988
3989 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3990
0ae24cc8
VM
39912013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3992
3993 Revert:
3994 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3995 * rtl.h (struct rtx_def): ...
cabf91cd 3996
77bce07c
VM
39972013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3998
3999 PR rtl-optimizations/57046
4000 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4001 for multi-reg splits.
4002
0db63e7f
L
40032013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4004
4005 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4006
3362b6b6
SA
40072013-04-24 Sterling Augustine <saugustine@google.com>
4008
4009 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4010 (comp_dir_string, debug_str_dwo_section): New.
4011 (DEBUG_STR_DWO_SECTION): Rename to ...
4012 (DEBUG_DWO_STR_SECTION): ... this.
4013 (DEBUG_NORM_STR_SECTION): Delete.
4014 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4015 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4016 (find_AT_string): Move most logic to ...
4017 (find_AT_string_in_table): ... here. New.
4018 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4019 add_skeleton_AT_string. Delete logic.
4020 (output_skeleton_debug_sections): Remove call to
4021 add_top_level_skeleton_die_attrs.
4022 (add_comp_dir_attribute): Move logic to comp_dir_string.
4023 (dwarf2out_init): Initialize debug_str_dwo_section.
4024 (output_indirect_string): Call find_string_form.
4025 (output_indirect_strings): Rewrite.
4026 (prune_unused_types): Empty skeleton_debug_str_hash.
4027 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4028 (dwarf2out_finish): Call output_indirect_strings.
4029
e93e18e9
PC
40302013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4031
4032 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4033
f6ce35ac
VM
40342013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4035
cabf91cd 4036 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
4037 (LRA_SUBREG_P): New macro.
4038 * recog.c (register_operand): Check LRA_SUBREG_P.
4039 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4040 stack frame.
4041 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4042 (lra_final_code_change): Skip subreg change for operators.
4043 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4044 if there are no operand changes.
4045 * lra-constraints.c (curr_insn_set): New.
4046 (match_reload): Set LRA_SUBREG_P.
4047 (emit_spill_move): Ditto.
4048 (check_and_process_move): Use curr_insn_set. Process only single
4049 set insns. Don't initialize sec_mem_p and change_p.
4050 (simplify_operand_subreg): Use LRA_SUBREG_P.
4051 (reg_in_class_p): New function.
4052 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4053 of #ifdef. Add code to remove cycling.
4054 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4055 non-null disp. Reload inner instead of disp when base and index
4056 are null. Try to put lo_sum into register.
4057 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 4058 (check_and_process_move): Move code for move cost check to
f6ce35ac 4059 simple_move_p. Remove equiv_substitution.
cabf91cd 4060 (simple_move_p): New function.
f6ce35ac
VM
4061 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4062 curr_insn_set. Call check_and_process_move only for single set
4063 insns. Use the new function. Move call of check_and_process_move
4064 after operand equiv substitution and address process.
4065
38047d90
JG
40662013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4067
4068 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4069 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4070 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4071
13f39b2e
PC
40722013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4073
4074 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4075
97c116dc
MP
40762013-04-24 Marek Polacek <polacek@redhat.com>
4077
4078 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4079 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4080 (select_loops_exit_conditions): Likewise.
4081 (number_of_iterations_for_all_loops): Likewise.
4082 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4083 (scev_analysis): Likewise.
4084
83082391
CM
40852013-04-02 Catherine Moore <clm@codesourcery.com>
4086 Chao-ying Fu <fu@mips.com>
4087
cabf91cd
AM
4088 * config/mips/micromips.md (jraddiusp): New pattern.
4089 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4090 instruction if possible.
83082391 4091
19e34aa2
AM
40922013-04-24 Alan Modra <amodra@gmail.com>
4093
4094 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4095
fdb6603c
JB
40962013-04-24 Julian Brown <julian@codesourcery.com>
4097 Chung-Lin Tang <cltang@codesourcery.com>
4098
4099 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
4100 dependency behavior in enumeration type DIE generation. Add TODO note
4101 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 4102
bf190e8d
LC
41032013-04-23 Lawrence Crowl <crowl@google.com>
4104
4105 * Makefile.in: Update as needed below.
4106
4107 * hash-table.h (class hash_table):
4108 Correct many methods with parameter types compare_type to the correct
4109 value_type. (Correct code was unlikely to notice the change.)
4110 (hash_table::elements_with_deleted) New.
4111 (class hashtable::iterator): New.
4112 (hashtable::begin()): New.
4113 (hashtable::end()): New.
4114 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4115
4116 * statistics.c (statistics_hashes):
4117 Change type to hash_table. Update dependent calls and types.
4118
4119 * tree-into-ssa.c (var_infos):
4120 Change type to hash_table. Update dependent calls and types.
4121
4122 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4123 Change type to hash_table. Update dependent calls and types.
4124
4125 * tree-ssa-loop-im.c (struct mem_ref.refs):
4126 Change type to hash_table. Update dependent calls and types.
4127
4128 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4129 Change type to hash_table. Update dependent calls and types.
4130
4131 * tree-ssa-sccvn.c (vn_tables_s::nary):
4132 Change type to hash_table. Update dependent calls and types.
4133 (vn_tables_s::phis): Likewise.
4134 (vn_tables_s::references): Likewise.
4135
4136 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4137 (vn_reference_eq): Update parameter and return types.
4138
4139 * tree-ssa-structalias.c (pointer_equiv_class_table):
4140 Change type to hash_table. Update dependent calls and types.
4141 (location_equiv_class_table): Likewise.
4142
4143 * tree-vect-data-refs.c: Consequential changes for making
4144 peeling a hash_table.
4145
4146 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4147 (destroy_loop_vec_info): Dependent hash_table update.
4148
4149 * tree-vectorizer.h (peeling_htab):
4150 Change type to hash_table. Update dependent calls and types.
4151
d70a81dd
SC
41522013-04-23 Shiva Chen <shiva0217@gmail.com>
4153
cabf91cd
AM
4154 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4155 to check the register content is equal or not.
4156 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4157 to assign register content record.
4158 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 4159 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
4160 * lra-int.h (struct lra_reg): Add offset member.
4161 (lra_reg_val_equal_p): New static inline function.
4162 (lra_update_reg_val_offset): New static inline function.
4163 (lra_assign_reg_val): New static inline function.
4164 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4165 to assign register content record.
4166 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 4167
b894a1f3
CM
41682013-04-23 Catherine Moore <clm@codesourcery.com>
4169
4170 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4171 operands. Record compression.
4172
ecd14de9
XDL
41732013-04-23 Xinliang David Li <davidxl@google.com>
4174
4175 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4176
92e776e9
RB
41772013-04-23 Richard Biener <rguenther@suse.de>
4178
4179 PR middle-end/57036
4180 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4181 parameter, only add abnormal goto edges from the copied body
4182 if the call could perform abnormal gotos.
4183 (copy_cfg_body): Adjust.
4184
a15ee567
SN
41852013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4186
4187 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4188
08c52234
AS
41892013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4190
4191 * coretypes.h (gimple_stmt_iterator): Add struct to make
4192 compatible with C.
4193
999c1171
RB
41942013-04-23 Richard Biener <rguenther@suse.de>
4195
4196 PR tree-optimization/57026
4197 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4198 from SSA names occuring in abnormal PHI nodes.
4199
53669259
AK
42002013-04-22 Andi Kleen <ak@linux.intel.com>
4201
4202 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4203
1a0ad150
AK
42042013-04-22 Andi Kleen <ak@linux.intel.com>
4205
4206 * lto/lto.c (print_lto_report_1): Declare early.
4207 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4208
057f8f20
AK
42092013-04-22 Andi Kleen <ak@linux.intel.com>
4210
4211 * common.opt (-flto-report-wpa): Add.
4212 * doc/invoke.texi (-flto-report-wpa): Add.
4213 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4214 (lto_main): dito.
4215
473b1e05
XDL
42162013-04-22 Xinliang David Li <davidxl@google.com>
4217
4218 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4219 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4220 * Makefile.in: New dependency
4221
cabf91cd 4222 David Daney <ddaney.cavm@gmail.com>
b1485a33 4223
cabf91cd
AM
4224 * configure.ac (gcc_cv_as_micromips_support): Use the
4225 --fatal-warnings option.
4226 * configure: Regenerate.
b1485a33 4227
829d0168
MP
42282013-04-22 Marek Polacek <polacek@redhat.com>
4229
4230 PR sanitizer/56990
4231 * tsan.c (instrument_expr): Don't instrument expression
4232 in case its size is zero.
4233
6d9b7208
UB
42342013-04-22 Uros Bizjak <ubizjak@gmail.com>
4235
4236 PR target/57032
4237 Revert:
4238 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4239
4240 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4241
ea679d55
JG
42422013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4243
4244 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4245 (gimple_stmt_iterator): New typedef.
4246 * gimple.h (gimple_stmt_iterator): Rename to...
4247 (gimple_stmt_iterator_d): ... This.
4248 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4249 trees be valid for GIMPLE and GENERIC.
4250 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4251 * gimple-fold.c (gimple_fold_call): Call target hook
4252 gimple_fold_builtin.
4253 * hooks.c (hook_bool_gsiptr_false): New.
4254 * hooks.h (hook_bool_gsiptr_false): New.
4255 * target.def (fold_stmt): New.
4256 * doc/tm.texi: Regenerate.
4257
88a581da
VM
42582013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4259
4260 PR target/57018
4261 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4262 a set sp if no stack realignment.
4263
92be22dc
NC
42642013-04-22 Nick Clifton <nickc@redhat.com>
4265
4266 * config.gcc (tilegx-linux): Extend extra_objs rather than
4267 overwriting it.
4268 (tilepro-linux): Likewise.
4269
0ddec79f
JG
42702013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4271
4272 * config/aarch64/aarch64-builtins.c
4273 (CF): Remove.
4274 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4275 (VAR<1-12>): Add MAP parameter.
4276 (BUILTIN_*): Likewise.
4277 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4278 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4279 (aarch64_ushl_n<mode>): Likewise.
4280 (aarch64_sshr_n<mode>): Likewise.
4281 (aarch64_ushr_n<mode>): Likewise.
4282 (aarch64_<maxmin><mode>): Likewise.
4283 (aarch64_sqrt<mode>): Likewise.
4284 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4285 (vshr<q>_n_*): Likewise.
4286
0050faf8
JG
42872013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4288
4289 * config/aarch64/aarch64-builtins.c
4290 (aarch64_simd_builtin_type_mode): Handle SF types.
4291 (sf_UP): Define.
4292 (BUILTIN_GPF): Define.
4293 (aarch64_init_simd_builtins): Handle SF types.
4294 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4295 (frecps): Likewise.
4296 (frecpx): Likewise.
4297 * config/aarch64/aarch64-simd.md
4298 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4299 (aarch64_frecpe<mode>): New.
4300 (aarch64_frecps<mode>): Likewise.
4301 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4302 (v8type): Add frecp<esx>.
4303 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4304 (aarch64_frecps<mode>): Likewise.
4305 * config/aarch64/iterators.md (FRECP): New.
4306 (frecp_suffix): Likewise.
4307 * config/aarch64/arm_neon.h
4308 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4309
0fad3dbc 43102013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
4311
4312 PR target/56995
4313 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4314 (REG_CLASS_NAMES): Idem.
4315 (REG_CLASS_CONTENTS): Idem.
4316 (REGCLASS_HAS_FP_REG): Idem.
4317 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4318 (sh_conditional_register_usage): Idem.
4319
3e8a33f9
JL
43202013-04-21 Jeff Law <law@redhat.com>
4321
4322 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4323 (ssa_forward_propagate_and_combine): Use it.
4324
f38e1b0a
VM
43252013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4326
4327 * lra.c: Update the flow chart diagram.
4328
682303da
VM
43292013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4330
4331 PR rtl-optimization/56847
4332 * lra-constraints.c (process_alt_operands): Discourage alternative
4333 with non-matche doffsettable memory constraint fro memory with
4334 known offset.
4335
f6b64c35
RB
43362013-04-19 Richard Biener <rguenther@suse.de>
4337
4338 PR tree-optimization/56982
4339 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4340 function.
4341 * gimplify.c (gimplify_call_expr): Notice special calls.
4342 (gimplify_modify_expr): Likewise.
4343 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4344 abnormal control flow receivers.
4345 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4346 in the same way as cfun->has_nonlocal_labels.
4347 (gimple_purge_dead_abnormal_call_edges): Likewise.
4348 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4349 receivers start a basic-block.
4350
01d8bf07
RB
43512013-04-19 Richard Biener <rguenther@suse.de>
4352
4353 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4354 member ...
4355 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4356 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4357 (SLP_TREE_LOAD_PERMUTATION): Add.
4358 (vect_transform_slp_perm_load): Adjust prototype.
4359 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4360 (vect_free_slp_instance): Likewise.
4361 (vect_create_new_slp_node): Likewise.
4362 (vect_supported_slp_permutation_p): Remove.
4363 (vect_slp_rearrange_stmts): Adjust.
4364 (vect_supported_load_permutation_p): Likewise. Inline
4365 vect_supported_slp_permutation_p here.
4366 (vect_analyze_slp_instance): Compute load permutations per
4367 slp node instead of per instance.
4368 (vect_get_slp_defs): Adjust.
4369 (vect_transform_slp_perm_load): Likewise.
4370 (vect_schedule_slp_instance): Remove redundant code.
4371 (vect_schedule_slp): Remove hack for PR56270, add it ...
4372 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4373 CSE loads for SLP. Adjust.
4374
ede22fc3
GY
43752013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4376
4377 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4378 spelling in two comments.
4379
67bc84fb
GY
43802013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4381
4382 PR target/56797
4383 * config/arm/arm.c (load_multiple_sequence): Require SP
4384 as base register for loads if SP is in the register list.
4385
e248d83f
MJ
43862013-04-19 Martin Jambor <mjambor@suse.cz>
4387
4388 PR tree-optimization/56718
4389 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4390 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4391 and made public. Adjusted all callers.
4392 (ipa_intraprocedural_devirtualization): New function.
4393 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4394 (ipa_intraprocedural_devirtualization): Likewise.
4395 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4396
4891e8f8
RB
43972013-04-19 Richard Biener <rguenther@suse.de>
4398
4399 PR tree-optimization/57000
4400 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4401
dad89f7c
TG
44022013-04-19 Terry Guo <terry.guo@arm.com>
4403
4404 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4405 Replace with ...
4406 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4407 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4408 (cortex_m4_fmacs): Use new reservations.
4409 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4410
72ea0d47
VM
44112013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4412
f1e6512c 4413 PR rtl-optimization/56999
72ea0d47
VM
4414 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4415 related code.
4416 (lra_coalesce): Remove split_origin_bitmap and related code.
4417 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4418 ranges if necessary.
4419
780a5b71
UB
44202013-04-18 Uros Bizjak <ubizjak@gmail.com>
4421
4422 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4423 New array.
4424 (ix86_expand_call): Remove clobbered_registers array and use
4425 x86_64_ms_sysv_extra_clobbered_registers instead.
4426 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4427 Declare here.
4428 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4429 predicate.
4430 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4431 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4432 (*call_value_rex64_ms_sysv): Ditto.
4433
6f5a366a
CC
44342013-04-18 Cary Coutant <ccoutant@google.com>
4435
4436 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4437 parent instead of die_mark.
4438
475b8f37
DN
44392013-04-18 Diego Novillo <dnovillo@google.com>
4440
4441 * gimple.c (create_gimple_tmp): New.
4442 (get_expr_type): New.
4443 (build_assign): New.
4444 (build_type_cast): New.
4445 * gimple.h (enum ssa_mode): Define.
4446 (gimple_seq_set_location): New.
4447 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 4448 to use build_assign and build_type_cast.
475b8f37 4449
08940f33
RB
44502013-04-18 Richard Biener <rguenther@suse.de>
4451
4452 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4453 handle negative step. Remove redundant checks.
4454 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4455 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4456 for negative step and grouped loads fail to vectorize.
4457
0e0f87d4
SB
44582013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4459
4460 * emit-rtl.c (reset_insn_used_flags): New function.
4461 (reset_all_used_flags): Use it.
4462 (verify_insn_sharing): New function.
4463 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4464
4c445590
JJ
44652013-04-18 Jakub Jelinek <jakub@redhat.com>
4466
4467 PR tree-optimization/56984
4468 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4469 and (x >> M) >= N don't register any assertion if N << M is the
4470 minimum value.
4471
6873ecab
SB
44722013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4473
4474 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4475 do not delete_insn insns that have not yet been emitted, only
4476 unlink them with remove_insn.
4477 * df-scan.c (df_insn_delete): Revert r197492.
4478
3ccb989e
SB
44792013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4480
4481 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4482 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4483
44842013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
4485
4486 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4487 define_insn_and_split.
4488 (and_scc,ior_scc,negscc): Likewise.
4489 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4490
3ccb989e 44912013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
4492
4493 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4494 can benefit from using a sequence of LDRD instructions in epilogue
4495 instead of a single LDM instruction.
4496
6d10a203
MLI
44972013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4498
4499 PR 45688
4500 * doc/extend.texi: Fix typo.
4501
6983e6b5
RB
45022013-04-17 Richard Biener <rguenther@suse.de>
4503
4504 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4505 (vect_build_slp_tree): ... here.
4506 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4507 match. Remove special-casing of mismatched complex loads.
4508 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4509 re-try the match with swapped commutative operands.
4510 (vect_supported_load_permutation_p): Remove special-casing of
4511 mismatched complex loads.
4512 (vect_analyze_slp_instance): Adjust.
4513
ef23e6a2
RB
45142013-04-17 Richard Biener <rguenther@suse.de>
4515
4516 PR rtl-optimization/56921
4517 * cfgloop.h (struct loop): Add simple_loop_desc member.
4518 (struct niter_desc): Mark with GTY(()).
4519 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4520 * loop-iv.c (get_simple_loop_desc): Likewise.
4521 (free_simple_loop_desc): Likewise.
4522
4523 Revert
4524 2013-04-16 Richard Biener <rguenther@suse.de>
4525
4526 PR rtl-optimization/56921
4527 * loop-init.c (pass_rtl_move_loop_invariants): Add
4528 TODO_do_not_ggc_collect to todo_flags_finish.
4529 (pass_rtl_unswitch): Same.
4530 (pass_rtl_unroll_and_peel_loops): Same.
4531 (pass_rtl_doloop): Same.
4532
fc6f94f5
EB
45332013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4534
4535 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4536 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4537 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4538 references.
4539 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4540 * tree-streamer.c (record_common_node): Adjust reference in comment.
4541
10a88311
TG
45422013-04-17 Terry Guo <terry.guo@arm.com>
4543
4544 * config/arm/cortex-m4.md: Add a new bypass.
4545
6d9b7208 45462013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
4547
4548 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4549 New pattern.
4550 (*subs_<optab><mode>_multp2): New pattern.
4551 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4552 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4553
6d9b7208 45542013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
4555
4556 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4557 (*subs_mul_imm_<mode>): New pattern.
4558
18a6701e
DE
45592013-04-16 David Edelsohn <dje.gcc@gmail.com>
4560
4561 PR target/56948
4562 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4563 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4564 (vsx_movti_32bit): Change j->wa to O->wa.
4565
07c37b2f
RB
45662013-04-16 Richard Biener <rguenther@suse.de>
4567
4568 PR rtl-optimization/56921
4569 * loop-init.c (pass_rtl_move_loop_invariants): Add
4570 TODO_do_not_ggc_collect to todo_flags_finish.
4571 (pass_rtl_unswitch): Same.
4572 (pass_rtl_unroll_and_peel_loops): Same.
4573 (pass_rtl_doloop): Same.
4574
0e0f87d4 45752013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
4576
4577 * config/arm/arm.c (emit_multi_reg_push): New declaration
4578 for an existing function.
4579 (arm_emit_strd_push): New function.
4580 (arm_expand_prologue): Used here.
4581 (arm_emit_ldrd_pop): New function.
4582 (arm_expand_epilogue): Used here.
4583 (arm_get_frame_offsets): Update condition.
4584 (arm_emit_multi_reg_pop): Add a special case for load of a single
4585 register with writeback.
4586
5e8e2af4
UB
45872013-04-16 Uros Bizjak <ubizjak@gmail.com>
4588
4589 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4590 description.
4591
9fd9ccf7
RB
45922013-04-16 Richard Biener <rguenther@suse.de>
4593
4594 PR tree-optimization/56756
4595 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4596 (first_mem_ref_loc): New.
4597 (execute_sm): Place the load temporarily before a previous
4598 access instead of in the latch edge to ensure its SSA dependencies
4599 are defined at points dominating the load.
4600
96fba521
SB
46012013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4602
4c8af858
SB
4603 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4604 correct fix by moving header and footer insn to the footer of
4605 the merged basic block. Clear BB_END of the merged-away block.
4606
96fba521
SB
4607 PR middle-end/43631
4608 * emit-rtl.c (make_note_raw): New function.
4609 (link_insn_into_chain): New static inline function.
4610 (add_insn): Use it.
4611 (add_insn_before, add_insn_after): Factor insn chain linking code...
4612 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4613 using link_insn_into_chain.
4614 (note_outside_basic_block_p): New helper function for emit_note_after
4615 and emit_note_before.
4616 (emit_note_after): Use nobb variant of add_insn_after if the note
4617 should not be contained in a basic block.
4618 (emit_note_before): Use nobb variant of add_insn_before if the note
4619 should not be contained in a basic block.
4620 (emit_note_copy): Use make_note_raw.
4621 (emit_note): Likewise.
4622 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4623 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4624 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4625 the moved barrier the tail of the basic block it follows.
4626 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4627
7b8265ba
JJ
46282013-04-15 Jakub Jelinek <jakub@redhat.com>
4629
4630 PR tree-optimization/56962
4631 * gimple-ssa-strength-reduction.c (record_increment): Only set
4632 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4633 either rhs1 or rhs2 is equal to c->base_expr.
4634
5185d248
RB
46352013-04-15 Richard Biener <rguenther@suse.de>
4636
4637 PR tree-optimization/56933
4638 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4639 member.
4640 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4641 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4642 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4643 dependence check ...
4644 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4645 ... here.
4646 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4647 GROUP_READ_WRITE_DEPENDENCE.
4648
a24243a0
AK
46492013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4650
4651 * emit-rtl.c (reset_all_used_flags): New function.
4652 (verify_rtl_sharing): Call reset_all_used_flags before and after
4653 performing the checks.
4654
1c50eada
KT
46552013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4656
4657 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4658 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4659 * config/arm/constraints.md (De): New constraint.
4660 * config/arm/neon.md (anddi3_neon): Delete.
4661 (neon_vand<mode>): Expand to standard anddi3 pattern.
4662 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4663 Move earlier in the file.
4664 (neon_inv_logic_op2): Likewise.
4665 (arm_anddi_operand_neon): New predicate.
4666
e927b6ad
RO
46672013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4668
4669 * configure.ac (gcc_cv_ld_as_needed): Set
4670 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4671 Use -z ignore, -z record on *-*-solaris2*.
4672 (HAVE_LD_AS_NEEDED): Update comment.
4673 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4674 * configure: Regenerate.
4675 * config.in: Regenerate.
4676 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4677 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4678 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4679 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4680 equivalents. Fix markup.
4681 * doc/tm.texi: Regenerate.
4682
e0ea8797
AH
46832013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4684
4685 * config/i386/i386.opt: New option mstack-protector-guard=.
4686 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4687 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4688 TARGET_SSP_TLS_GUARD.
4689 * config/i386/i386.c (ix86_option_override_internal): Set
4690 ix86_stack_protector_guard.
4691 * config/i386/i386.md (stack_protect_set): Enable for
4692 TARGET_SSP_TLS_GUARD only.
4693 (stack_protect_set_<mode>): Ditto.
4694 (stack_protect_test): Ditto.
4695 (stack_protect_test_<mode>): Ditto.
4696 * doc/invoke.texi (i386 Option): Document.
4697
811b72f9
EB
46982013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4699
4700 PR target/56890
4701 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4702 (S_MODES): Set H_MODE bit.
4703 (SF_MODES): Set only S_MODE and SF_MODE bits.
4704 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4705 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4706 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4707 <MODE_FLOAT>: Likewise.
4708
5529fdd6
JY
47092013-04-15 Joey Ye <joey.ye@arm.com>
4710
4711 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4712
517b1da2
JY
47132013-04-15 Joey Ye <joey.ye@arm.com>
4714
4715 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4716 for real far jump.
4717 (thumb_far_jump_used_p): Count instruction size and set
4718 far_jump_used.
4719
01007ae0
EB
47202013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4721
4722 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4723 * resource.c (mark_target_live_regs): Reformat conditional block.
4724
c46f6580
SB
47252013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4726
4727 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4728 notes, they are emitted only just before final.
4729 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4730
1f397f45
SB
47312013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4732
4733 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4734 * cfgrtl.c (delete_insn): Call it here instead.
4735 * lra-spills.c (lra_final_code_change): Use delete_insn.
4736 * haifa-sched.c (sched_remove_insn): Likewise.
4737 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4738 returning to the nop pool.
4739 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4740 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4741
58a51369
SB
47422013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4743
4744 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4745 * doc/tm.texi: Regenerated.
4746
33159866
UB
47472013-04-12 Uros Bizjak <ubizjak@gmail.com>
4748
4749 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4750 QImode checks.
4751
226e378f
SB
47522013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4753
4754 * df-core.c (df_find_def): Compare register numbers.
4755 (df_find_use): Likewise.
4756
fafb9b18
VM
47572013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4758
4759 PR target/56903
4760 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4761 lra_in_progress for return.
4762
9a946fd6
GY
47632013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4764
4765 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4766 define_insn into define_insn_and_split and emit movsicc patterns.
4767
41b83758
GY
47682013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4769
4770 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4771
d3afd9aa
RB
47722013-04-12 Richard Biener <rguenther@suse.de>
4773
4774 * tree-pass.h (TODO_do_not_ggc_collect): New.
4775 * passes.c (execute_one_ipa_transform_pass): Honor
4776 TODO_do_not_ggc_collect.
4777 (execute_one_pass): Likewise.
4778
4779 Revert
4780 2013-04-10 Richard Biener <rguenther@suse.de>
4781
4782 * passes.c (init_optimization_passes): Remove reload pass.
4783 * ira.c (do_reload): Merge into ...
4784 (ira): ... this.
4785 (rest_of_handle_reload): Remove.
4786 (pass_reload): Likewise.
4787 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4788 of reload for vzeroupper pass placement.
4789
06f9b387
JJ
47902013-04-12 Jakub Jelinek <jakub@redhat.com>
4791
4792 PR tree-optimization/56918
4793 PR tree-optimization/56920
4794 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4795 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4796 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4797 use wide_mul_with_sign method.
4798
953094d2
RB
47992013-04-12 Richard Biener <rguenther@suse.de>
4800
4801 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4802 not be considered a gimple constant.
4803
bb506982
MG
48042013-04-12 Marc Glisse <marc.glisse@inria.fr>
4805
4806 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4807 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4808 operations.
4809
4b84d650
JJ
48102013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4811 Jakub Jelinek <jakub@redhat.com>
4812
4813 * opts.c: Include diagnostic-color.h.
4814 (common_handle_option): Handle OPT_fdiagnostics_color_.
4815 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4816 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4817 (diagnostic-color.o): New.
4818 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4819 (diagnostic_color_rule): New enum.
4820 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4821 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4822 the location string.
4823 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4824 either NULL, or color kind.
4825 * diagnostic-color.c: New file.
4826 * diagnostic-color.h: New file.
4827 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4828 arguments.
4829 * doc/invoke.texi (-fdiagnostics-color): Document.
4830 * pretty-print.h (pp_show_color): Define.
4831 (struct pretty_print_info): Add show_color field.
4832 * diagnostic.c: Include diagnostic-color.h.
4833 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4834 macros. Colorize error:, warning: etc. strings and also the location
4835 string.
4836 (diagnostic_show_locus): Colorize the caret line.
4837 * pretty-print.c: Include diagnostic-color.h.
4838 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4839 inside of %< %> quotes or quoted through q format modifier.
4840
067a1e71
AK
48412013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4842
33159866 4843 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4844
33159866 48452013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4846
4847 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4848 code in CC_NZ mode.
4849 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4850 pattern.
4851
7b55f98f
MP
48522013-04-11 Marek Polacek <polacek@redhat.com>
4853
4854 PR tree-optimization/48184
33159866 4855 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4856
966b587e
EB
48572013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4858
4859 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4860 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4861 (skip_simple_arithmetic): Tidy up.
4862 * tree.h (skip_simple_constant_arithmetic): Declare.
4863
33159866 48642013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4865
4866 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4867
1d42c1ec
RB
48682013-04-11 Richard Biener <rguenther@suse.de>
4869
4870 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4871 generate vector constants.
4872
4ba5ea11
RB
48732013-04-11 Richard Biener <rguenther@suse.de>
4874
4875 PR tree-optimization/56878
4876 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4877 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4878 New function.
4879 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4880 Prefer to align the DR with the most invariant base address.
4881
f0defe58
SKS
48822013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4883
4884 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4885 comment.
4886
d07458be
JG
48872013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4888
4889 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4890 floating-point vector comparisons against 0.
4891
146b8692
JJ
48922013-04-11 Jakub Jelinek <jakub@redhat.com>
4893
4894 PR tree-optimization/56899
4895 * fold-const.c (extract_muldiv_1): Apply distributive law
4896 only if TYPE_OVERFLOW_WRAPS (ctype).
4897
b8578ff7
BC
48982013-04-11 Bin Cheng <bin.cheng@arm.com>
4899
4900 PR target/56124
4901 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4902 loading has side effect.
4903
0ea8a6f9
SB
49042013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4905
4906 * config/sparc/sparc.c: Include tree-pass.h.
4907 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4908 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4909 head of file. Change return type. Split off gate function.
4910 (sparc_gate_work_around_errata): New function.
4911 (pass_work_around_errata): New pass definition.
4912 (insert_pass_work_around_errata) New pass insert definition to
4913 insert pass_work_around_errata just after delayed-branch scheduling.
4914 (sparc_option_override): Insert the pass.
4915 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4916
42e37616
DM
49172013-04-10 David S. Miller <davem@davemloft.net>
4918
89deeb3b
DM
4919 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4920 or -mcpu=hypersparc.
4921
42e37616
DM
4922 * target.def (cstore_mode): New hook.
4923 * target.h: Include insn-codes.h
4924 * targhooks.c: Likewise.
4925 (default_cstore_mode): New function.
4926 * targhooks.h: Declare it.
4927 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4928 * doc/tm.texi: Rebuild.
4929 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4930 target hook, rather than inspecting the insn_data.
4931 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4932 (TARGET_CSTORE_MODE): Redefine.
4933 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4934 result patterns.
4935 * config/sparc/predicates.md (cstore_result_operand): New special
4936 predicate.
4937 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4938 Use it for operand 0.
4939 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4940 (*snesi_special): Likewise.
4941 (*snesi_zero): Likewise.
4942 (*seqsi_zero): Likewise.
4943 (*sltu_insn): Likewise.
4944 (*sgeu_insn): Likewise.
4945 (*seqdi_special): Make operand 0 and comparison operation be of
4946 DImode.
4947 (*snedi_special): Likewise.
4948 (*snedi_special_vis3): Likewise.
4949 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4950 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4951 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4952 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4953 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4954 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4955 (*sltu_extend_sp64): Likewise.
4956 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4957 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4958 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4959 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4960 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4961
95ca411e
YZ
49622013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4963
4964 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4965 (aarch64_start_file): Use the new function.
4966
6782438d 49672013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 4968 Jason Merrill <jason@redhat.com>
6782438d
SKS
4969
4970 * common.opt: Add -gdwarf.
4971 * opts.c (common_handle_option): Handle it.
4972 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4973
bb313b93
RB
49742013-04-10 Richard Biener <rguenther@suse.de>
4975
4976 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4977 (execute_one_ipa_transform_pass): But unconditionally here.
4978 (execute_one_pass): And here.
4979 (init_optimization_passes): Remove reload pass.
4980 * tree-pass.h (TODO_ggc_collect): Remove.
4981 (pass_reload): Likewise.
4982 * ira.c (do_reload): Merge into ...
4983 (ira): ... this.
4984 (rest_of_handle_reload): Remove.
4985 (pass_reload): Likewise.
4986 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4987 of reload for vzeroupper pass placement.
4988 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4989 and todo_flags_finish of all passes.
4990
793d9a16
RB
49912013-04-10 Richard Biener <rguenther@suse.de>
4992
4993 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4994 first_const_oprnd field, rename first_def_type to first_op_type.
4995 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4996 (vect_get_and_check_slp_defs): Always use the type of the
4997 operand. Allow mixed vect_external_def, vect_constant_def types.
4998 (vect_get_constant_vectors): Handle mixed vect_external_def,
4999 vect_constant_def types.
5000
ee8a9b7b
JR
50012013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5002
5003 PR tree-optimization/55524
5004 * tree-ssa-math-opts.c
5005 (convert_mult_to_fma): Don't use an fms construct
5006 when we don't have an fms operation, but fnma, and it looks
5007 likely that we'll be able to use the latter.
5008
6957a6f6
ZZ
50092013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5010
5011 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5012 function.
5013 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5014 inline fail caused by overwritable functions.
5015
34ab4a5b
CJW
50162013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5017
5018 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5019 unnecessary bits in the constant power of two case.
5020
abf9bfbc
RB
50212013-04-10 Richard Biener <rguenther@suse.de>
5022
5023 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5024 broken code swapping operands.
5025 (vect_build_slp_tree): Do not compute load permutations here.
5026 (vect_analyze_slp_instance): Compute load permutations here,
5027 after building the SLP tree.
5028
f408477e
CB
50292013-04-09 Christian Bruel <christian.bruel@st.com>
5030
5031 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5032 of next/prev_real_insn.
5033
5ac42672
JH
50342013-04-09 Jan Hubicka <jh@suse.cz>
5035
abf9bfbc
RB
5036 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5037 Drop aliased parameter.
5ac42672
JH
5038 (function_and_variable_visibility): Do not handle alias pairs.
5039 * cgraph.c (varpool_externally_visible_p): Update prototype.
5040 * varpool.c (varpool_add_new_variable): Update.
5041
5017f1d2
KT
50422013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5043
5044 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5045
48eecbee
SB
50462013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5047
a949cf1c
SB
5048 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5049
48eecbee
SB
5050 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5051
75ef8e3d
MP
50522013-04-09 Marek Polacek <polacek@redhat.com>
5053
5054 PR tree-optimization/48762
33159866 5055 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 5056
23847df4
RB
50572013-04-09 Richard Biener <rguenther@suse.de>
5058
5059 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5060 dealing with cost.
5061 (vect_build_slp_tree): Likewise.
5062 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5063 calculating the cost of a SLP instance.
5064 (vect_analyze_slp_instance): Use it from here, after building
5065 the SLP tree.
5066
ea3a0fde
JJ
50672013-04-09 Jakub Jelinek <jakub@redhat.com>
5068
5069 PR middle-end/56883
5070 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5071 expand_omp_for_static_chunk): Use simple_p = true in
5072 force_gimple_operand_gsi calls when assigning to addressable decls.
5073
a32dfe9d
JL
50742013-04-09 Jeff Law <law@redhat.com>
5075
5076 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5077 when the boolean was created by converting a wider object which
5078 had a boolean range.
5079
d755c7ef
RB
50802013-04-09 Richard Biener <rguenther@suse.de>
5081
5082 * tree-vectorizer.h (slp_void_p): Remove.
5083 (slp_tree): Typedef before _slp_tree declaration.
5084 (struct _slp_tree): Use a vector of slp_tree as children.
5085 (vect_get_place_in_interleaving_chain): Remove.
5086 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5087 Move ...
5088 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5089 and make static.
5090 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5091 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5092 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5093 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5094 Use slp_node instead of slp_void_p and adjust.
5095
3d741091
RB
50962013-04-09 Richard Biener <rguenther@suse.de>
5097
5098 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5099 work that is not necessary.
5100
39307ba7
JJ
51012013-04-09 Jakub Jelinek <jakub@redhat.com>
5102
5103 PR tree-optimization/56854
5104 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5105 forward into clobber stmts if it would change MEM_REF lhs into
5106 non-MEM_REF.
5107
343881fd
MK
51082013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5109
5110 * tree.c (type_hash_lookup, type_hash_add): Make static.
5111 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5112
3922658a
RB
51132013-04-09 Richard Biener <rguenther@suse.de>
5114
5115 * tree.h (unsave_expr_now): Remove.
5116 * tree-inline.c (mark_local_for_remap_r): Remove.
5117 (unsave_expr_1): Likewise.
5118 (unsave_r): Likewise.
5119 (unsave_expr_now): Likewise.
5120 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5121 (propagate_tree_value): Likewise.
5122
9fb6b620
SB
51232013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5124
5125 * doc/rtl.texi (sequence): Rewrite documentation to match the
5126 current use of SEQUENCE rtl objects.
5127 * rtl.def (SEQUENCE): Likewise.
5128
5129 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5130 Update documentation.
5131 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5132 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5133
5134 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5135
8ddb5a29
TJ
51362013-04-08 Teresa Johnson <tejohnson@google.com>
5137
5138 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5139 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 5140 methods.
8ddb5a29
TJ
5141 (estimate_edge_size_and_time): Add comment to suggest using rounding
5142 methods.
5143 (estimate_node_size_and_time): Ditto.
5144 (remap_edge_change_prob): Use helper rounding divide methods.
5145 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5146 (gimple_mod_pow2_value_transform): Ditto.
5147 (gimple_mod_subtract_transform): Ditto.
5148 (gimple_ic_transform): Ditto.
5149 (gimple_stringops_transform): Ditto.
5150 * stmt.c (conditional_probability): Ditto.
5151 (emit_case_dispatch_table): Ditto.
5152 * lto-cgraph.c (merge_profile_summaries): Ditto.
5153 * tree-optimize.c (execute_fixup_cfg): Ditto.
5154 * cfgcleanup.c (try_forward_edges): Ditto.
5155 * cfgloopmanip.c (scale_loop_profile): Ditto.
5156 (loopify): Ditto.
5157 (duplicate_loop_to_header_edge): Ditto.
5158 (lv_adjust_loop_entry_edge): Ditto.
5159 * tree-vect-loop.c (vect_transform_loop): Ditto.
5160 * profile.c (compute_branch_probabilities): Ditto.
5161 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5162 * lto-streamer-in.c (input_cfg): Ditto.
5163 * gimple-streamer-in.c (input_bb): Ditto.
5164 * ipa-cp.c (update_profiling_info): Ditto.
5165 (update_specialized_profile): Ditto.
5166 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5167 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 5168 rounding methods.
8ddb5a29
TJ
5169 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5170 (compute_trg_info): Ditto.
5171 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5172 (purge_dead_edges): Ditto.
5173 * loop-unswitch.c (unswitch_loop): Ditto.
5174 * cgraphclones.c (cgraph_clone_edge): Ditto.
5175 (cgraph_clone_node): Ditto.
5176 * tree-inline.c (copy_bb): Ditto.
5177 (copy_edges_for_bb): Ditto.
5178 (initialize_cfun): Ditto.
5179 (copy_cfg_body): Ditto.
5180 (expand_call_inline): Ditto.
5181
661e6bd7
KT
51822013-04-08 Kai Tietz <ktietz@redhat.com>
5183
5184 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5185 TARGET_CYGWIN64 by TARGET_64BIT.
5186
105766f3
JR
51872013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5188
5189 * config/epiphany/epiphany.md (GPR_1): New constant.
5190 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5191 * config/epiphany/epiphany.c (gen_compare_reg):
5192 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5193 is already in place.
5194 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5195 Don't require being called during rtl expansion; If y operlaps r0,
5196 return 0.
5197 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5198 (epiphany_expand_epilogue): Likewise.
5199
8afab237
JR
5200 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5201 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 5202 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 5203
fa7707d6
JR
5204 * config/epiphany/constraints.md (CnL): New constraint.
5205 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5206 * config/epiphany/predicates.md (add_operand): Allow 1024.
5207
5138e18d
JR
5208 * config/epiphany/epiphany.md (logical_op): New code iterator.
5209 (op_mnc): New code attribute.
5210 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5211 (mov_f+1, mov_f+2): New peephole2 patterns.
5212
2ccc703d
JR
5213 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5214 (cstoresi4): Also allow re-use of zero result when doing a NE
5215 comparison to a non-zero operand.
aefb0819 5216 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 5217
093ac0a5
JR
5218 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5219 Use gen_addsi3_i / gen_subsi3_i.
5220
f223bb13
JJ
52212013-04-08 Jakub Jelinek <jakub@redhat.com>
5222
5223 PR c++/34949
5224 PR c++/50243
5225 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5226 contain anything but clobbers, at most one __builtin_stack_restore,
5227 optionally debug stmts and final resx, and if it has at least one
5228 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5229 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5230 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5231 which isn't defaut definition, remove them.
5232 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5233 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5234 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5235 with MEM_REF LHS with SSA_NAME address.
5236
4481581f
JL
52372013-04-08 Jeff Law <law@redhat.com>
5238
5239 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 5240
451dabda
RB
52412013-04-08 Richard Biener <rguenther@suse.de>
5242
5243 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5244 extra newline.
5245 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5246 determined vector type.
5247 (vect_analyze_data_refs): Likewise.
5248 (vect_get_new_vect_var): Adjust.
5249 (vect_create_destination_var): Preserve SSA name versions.
5250 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5251 not dump anything here.
5252
3b088b47
JR
52532013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5254
5255 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5256 Add member lr_slot_known.
5257 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5258 if necessary.
5259 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5260 Remove code that sets lr_slot_offset according to what a previous
5261 version of epiphany_emit_save_restore used to do.
5262 (epiphany_emit_save_restore): When doing an lr save or restore,
5263 set/verify lr_slot_known and lr_slot_offset.
5264
d8484d41
XQ
52652013-04-08 Xinyu Qi <xyqi@marvell.com>
5266
33159866
UB
5267 PR target/54338
5268 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
5269 in ALL_REGS.
5270
481be1c4
RB
52712013-04-08 Richard Biener <rguenther@suse.de>
5272
5273 * alias.c (find_base_term): Fix thinko in previous change.
5274
401f3a81
JJ
52752013-04-08 Jakub Jelinek <jakub@redhat.com>
5276
5277 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5278 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5279 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5280 if possible to compute val.
5281 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5282 For QImode integers don't require anything about precision. Use
5283 const_with_all_bytes_same to find out if the constant doesn't have
5284 repeated bytes in it.
5285
03ed99a8
AK
52862013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5287
5288 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5289 within mode size.
5290
781b2e62
MP
52912013-04-08 Marek Polacek <polacek@redhat.com>
5292
5293 PR rtl-optimization/48182
5294 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5295 value to 1.
5296
27e430a2
JDA
52972013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5298
5299 PR target/55487
5300 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5301 nuses, make sure we have a label.
5302
4902aa64
BS
53032013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5304
5305 PR target/56843
5306 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5307 (rs6000_emit_swdiv_low_precision): Remove.
5308 (rs6000_emit_swdiv): Rewrite to handle between one and four
5309 iterations of Newton-Raphson generally; modify required number of
5310 iterations for some cases.
5311 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5312
7bca81dc
SB
53132013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5314
5315 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5316 set-but-unused variable.
5317
5318 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5319 basic blocks of released function bodies garbage-collectable.
5320
5321 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5322 (struct rtl_opt_pass): Add TODO_df_finish.
5323
5324 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5325
4542a38a
GY
53262013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5327
5328 * config/arm/constraints.md (q): New constraint.
5329 * config/arm/ldrdstrd.md: New file.
5330 * config/arm/arm.md (ldrdstrd.md) New include.
5331 (arm_movdi): Use "q" instead of "r" constraint
5332 for double-word memory access.
5333 (movdf_soft_insn): Likewise.
5334 * config/arm/vfp.md (movdi_vfp): Likewise.
5335 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 5336 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
5337 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5338 (mem_ok_for_ldrd_strd): Likewise.
5339 (output_move_double): Update assertion.
5340
2385b218
GY
53412013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5342
5343 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5344
75fe1cb5
GY
53452013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5346
5347 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5348 define_insn_and_split.
5349 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5350
dd660e8e
GY
53512013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5352
5353 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5354 define_insn_and_split.
33159866 5355 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
5356 (shiftsi3_compare): New pattern.
5357 (rrx): New pattern.
5358 * config/arm/unspecs.md (UNSPEC_RRX): New.
5359
045e472c
GY
53602013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5361
5362 * config/arm/arm.md (negdi_extendsidi): New pattern.
5363 (negdi_zero_extendsidi): Likewise.
5364
3f3bf1a8
GY
53652013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5366
5367 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5368 define_insn_and_split.
5369 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5370 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5371
b0b49556
GY
53722013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5373
5374 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5375 define_insn_and_split.
5376 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5377 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5378
d633dd84
GY
53792013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5380
5381 * config/arm/arm.md (subsi3_carryin): New pattern.
5382 (subsi3_carryin_const): Likewise.
5383 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5384 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5385
f4499066
GY
53862013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5387
5388 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5389
ceef6fd9
GY
53902013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5391
5392 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 5393 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 5394
ddbdd8a7
KT
53952013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5396
5397 * config/arm/arm.c (arm_expand_builtin): Change fcode
5398 type to unsigned int.
5399
8456d78a
RR
54002013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5401
5402 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5403
526c230f
ILT
54042013-04-04 Ian Lance Taylor <iant@google.com>
5405
33159866
UB
5406 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5407 language standard.
526c230f 5408
3cfbe04d
SB
54092013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5410
5411 PR middle-end/56729
5412 * df-scan.c (df_insn_delete): Disable failing assert.
5413
dfa3f8d0
KT
54142013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5415
5416 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5417 New function prototype.
5418 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5419 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5420 (arm_builtin_vectorized_function): New function.
5421
f7837758
KT
54222013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5423
5424 * config/arm/arm_neon_builtins.def: New file.
5425 * config/arm/arm.c (neon_builtin_data): Move contents to
5426 arm_neon_builtins.def.
5427 (enum arm_builtins): Include neon builtin definitions.
5428 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 5429 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 5430
39c1b6db
MP
54312013-04-04 Marek Polacek <polacek@redhat.com>
5432
5433 PR tree-optimization/48186
5434 * predict.c (maybe_hot_frequency_p): Return false if
5435 HOT_BB_FREQUENCY_FRACTION is 0.
5436 (cgraph_maybe_hot_edge_p): Likewise.
5437
314f64eb
RB
54382013-04-04 Richard Biener <rguenther@suse.de>
5439
5440 PR tree-optimization/56826
5441 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5442 more accurately.
5443
51a905b2
RB
54442013-04-04 Richard Biener <rguenther@suse.de>
5445
5446 PR tree-optimization/56213
5447 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 5448 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 5449
f1bf4f3a
RB
54502013-04-04 Richard Biener <rguenther@suse.de>
5451
5452 PR tree-optimization/56837
5453 * tree-loop-distribution.c (classify_partition): For non-zero
5454 values require that the value has the same precision as its
5455 mode to be useful as memset value.
5456
0bca7ded
NC
54572013-04-03 Nick Clifton <nickc@redhat.com>
5458
33159866 5459 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
5460 (fmssf4): Use fmsf.s on E3V5 architectures.
5461 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5462 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5463
b4019227
JL
54642013-04-03 Jeff Law <law@redhat.com>
5465
5466 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5467 (lra-eliminations.o): Likewise.
5468
f57ddb5b
TJ
54692013-04-03 Teresa Johnson <tejohnson@google.com>
5470
5471 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 5472 compute_working_sets here from profile.c.
f57ddb5b 5473 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
5474 (gcov_working_set_t): Moved typedef here from basic-block.h
5475 (compute_working_set): Declare.
f57ddb5b
TJ
5476 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5477 (get_working_sets): Renamed from compute_working_set,
33159866 5478 replace most of body with call to new compute_working_sets.
f57ddb5b 5479 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
5480 to get_working_sets.
5481 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 5482 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 5483 to get_working_sets.
f57ddb5b
TJ
5484 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5485 * gcov-dump.c (dump_working_sets): New function.
5486
5e0919f1
KZ
54872013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5488
5489 * hwint.c (sext_hwi, zext_hwi): New functions.
5490 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5491 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5492 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5493 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5494 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5495 (sext_hwi, zext_hwi): New functions.
0bca7ded 5496
be672e08
JL
54972013-04-03 Jeff Law <law@redhat.com>
5498
5499 PR tree-optimization/56799
33159866
UB
5500 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5501 back test for widening conversion erroneously dropped in prior change.
be672e08 5502
9d821fa5
KT
55032013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5504
5505 PR target/56809
5506 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5507 instead of next_real_insn.
5508
71c581e7
MP
55092013-04-03 Marek Polacek <polacek@redhat.com>
5510
5511 PR sanitizer/55702
33159866 5512 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 5513
4a32ef80
KT
55142013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5515
5516 PR target/56809
5517 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5518 next_real_insn.
5519 (thumb1_output_casesi): Likewise.
5520 (thumb2_output_casesi): Likewise.
5521
1b2253d4
RB
55222013-04-03 Richard Biener <rguenther@suse.de>
5523
5524 PR tree-optimization/56817
5525 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5526 Split out ...
5527 (tree_unroll_loops_completely_1): ... new function to manually
5528 walk the loop tree, properly defering outer loops of unrolled
5529 loops to later iterations.
5530
38000232
MG
55312013-04-03 Marc Glisse <marc.glisse@inria.fr>
5532
5533 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5534 (vectorizable_load): Likewise.
5535 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5536 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5537
3fa35298
MG
55382013-04-03 Marc Glisse <marc.glisse@inria.fr>
5539
5540 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5541 BIT_FIELD_REF.
5542
b3d45ff0
UW
55432013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5544
5545 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5546
ec9202a8
BC
55472013-04-03 Bin Cheng <bin.cheng@arm.com>
5548
5549 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5550
6805bd36
MG
55512013-04-03 Marc Glisse <marc.glisse@inria.fr>
5552
5553 PR tree-optimization/56790
33159866
UB
5554 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5555 folding.
6805bd36 5556
da694a77
MG
55572013-04-03 Marc Glisse <marc.glisse@inria.fr>
5558
5559 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5560 Handle VEC_MERGE.
5561 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5562 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5563 equal arguments.
5564
4e7d7b3d
JJ
55652013-04-03 Jakub Jelinek <jakub@redhat.com>
5566
5567 PR c/19449
5568 * tree.h (force_folding_builtin_constant_p): New decl.
5569 * builtins.c (force_folding_builtin_constant_p): New variable.
5570 (fold_builtin_constant_p): Fold immediately also if
5571 force_folding_builtin_constant_p.
5572
e6c9d234
RB
55732013-04-03 Richard Biener <rguenther@suse.de>
5574
5575 PR tree-optimization/56812
5576 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5577 DRs of the same interleaving chain are independent.
5578
984d07dd
JM
55792013-04-02 Jason Merrill <jason@redhat.com>
5580
5581 * gdbinit.in (pbb): Use debug fn.
5582
622849c9
LC
55832013-04-02 Lawrence Crowl <crowl@google.com>
5584
5585 * sese.h (struct ivtype_map_elt_s): Remove unused.
5586 (extern debug_ivtype_map): Remove unused.
5587 (extern eq_ivtype_map_elts): Remove unused.
5588 * sese.c (debug_ivtype_map): Removed unused.
5589 (debug_ivtype_map_1): Removed unused.
5590 (debug_ivtype_elt): Remove unused.
5591 (eq_ivtype_map_elts): Remove unused.
5592
5593
82c0e1a0
KT
55942013-04-02 Kai Tietz <ktietz@redhat.com>
5595
5596 PR target/52790
5597 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5598 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
5599 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5600 function.
82c0e1a0
KT
5601 (legitimize_pe_coff_symbol): Likewise.
5602 (is_imported_p): New helper-function.
5603 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5604 for Windows x64 targets.
5605 (ix86_expand_prologue): Optimize for pe-coff targets.
5606 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5607 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5608 medium/large code-model.
5609 (legitimize_pic_address): Likewise.
5610 (legitimize_tls_address): Likewise.
5611 (ix86_expand_call): Likewise.
5612 (x86_output_mi_thunk): Likewise.
5613 (get_dllimport_decl): Add new beimport argument.
5614 (construct_plt_address): Don't assert for x64 pe-coff targets.
5615 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5616 targets.
5617 (SYMBOL_FLAG_STUBVAR): New macro.
5618 (SYMBOL_REF_STUBVAR_P): Likewise.
5619 * config/i386/winnt.c (stub_list): New structure.
5620 (stub_head): New local variable.
5621 (i386_pe_record_stub): New function.
5622 (i386_pe_file_end): Emit refptr-stubs.
5623
5d751b0c
JJ
56242013-04-02 Jakub Jelinek <jakub@redhat.com>
5625
09bb4c99
JJ
5626 PR rtl-optimization/56745
5627 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5628 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5629
a1d8947a
JJ
5630 PR c++/34949
5631 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5632 and both of them are MEM_REFs, just compare first argument for
5633 equality and attempt to deal even with differing offsets.
5634
5d751b0c
JJ
5635 PR c++/34949
5636 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5637 of gimple_clobber_p to be MEM_REF.
5638 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5639 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5640 after gimplification.
5641 * asan.c (get_mem_ref_of_assignment): Don't instrument
5642 gimple_clobber_p stmts.
5643 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5644 gimple_clobber_p stmt if they have MEM_REF lhs and
5645 are dead because of another gimple_clobber_p stmt.
5646 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5647 gimple_clobber_p stmts like debug stmts.
5648 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5649 that refer to unused VAR_DECLs or uninitialized values.
5650 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5651 gimple_clobber_p stmts if they refer to removed parameters.
5652 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5653 formatting.
5654
e594716a
UB
56552013-04-02 Uros Bizjak <ubizjak@gmail.com>
5656
5657 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5658 using SWI48 mode attribute.
5659
7a80735b
WM
56602013-04-02 Wei Mi <wmi@google.com>
5661
5662 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5663 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5664 *<rotate_insn><mode>3_mask in i386.md.
5665
f423a9e4
AI
56662013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5667
5668 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5669
90eb75f2
RB
56702013-04-02 Richard Biener <rguenther@suse.de>
5671
5672 PR tree-optimization/56778
5673 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5674 Runtime alias tests are not supported for gather loads.
5675 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5676 stmts referenced from SSA operands before updating SSA form.
5677
d8c69a92
IC
56782013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5679 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5680
5681 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
5682 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5683 * config/arm/cortex-a53.md: New file.
5684 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5685 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5686 * config/arm/arm.c (arm_issue_rate): Likewise.
5687 * config/arm/arm-tune.md: Regenerate
5688 * config/arm/arm-tables.opt: Regenerate.
5689 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 5690
239eb04c
ZC
56912013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5692
5693 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5694 non-static link.
5695
c902d3c8
SN
56962013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5697
d8c69a92
IC
5698 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5699 scalar load/store operations using B/H registers.
c902d3c8
SN
5700 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5701
051d0e2f
SN
57022013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5703
5704 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5705 scalar move.
5706 * config/aarch64/aarch64.c
5707 (aarch64_simd_scalar_immediate_valid_for_move): New.
5708 * config/aarch64/aarch64-protos.h
5709 (aarch64_simd_scalar_immediate_valid_for_move): New.
5710 * config/aarch64/constraints.md (Dh, Dq): New.
5711 * config/aarch64/iterators.md (hq): New.
5712
0ee1e3d9
EB
57132013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5714
5715 * reorg.c (get_branch_condition): Deal with conditional returns.
5716 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5717
136fb3f7
WM
57182013-04-01 Wei Mi <wmi@google.com>
5719
5720 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5721 Truncate operand 2 using %b asm operand modifier.
5722 (*<shift_insn><mode>3_mask): Ditto.
5723 (*<rotate_insn><mode>3_mask): Ditto.
5724
6388c738
SB
57252013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5726
5727 PR middle-end/56798
5728 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5729
f7a4d826
KK
57302013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5731
5732 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5733 of next_real_insn.
5734 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5735
4b943a49
LC
57362013-03-30 Lawrence Crowl <crowl@google.com>
5737
5738 * dse.c (clear_alias_sets): Remove never set.
5739 (disqualified_clear_alias_sets): Remove never set.
5740 (clear_alias_mode_pool): Remove never set.
5741 (dse_step0): Remove condition that is never true.
5742 (canon_address): Remove condition that is never true.
5743 (dse_step7): Remove condition that is never true.
5744 (rest_of_handle_dse): Remove condition that is never true.
5745 (rest_of_handle_dse::did_global): Remove never read from above.
5746 (dse_step2_spill): Remove never called from above.
5747 (dse_step5_spill): Remove never called from above.
5748
39718607
SB
57492013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5750
da5c6bde
SB
5751 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5752 JUMP_TABLE_DATA changes.
5753 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5754 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5755 (Insns) <jump_table_data>: New entry.
5756 * doc/tm.texi: Regenerate.
5757
39718607
SB
5758 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5759
5760 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5761 for table jump at the end of a basic block using tablejump_p.
5762 * targhooks.c (default_invalid_within_doloop): Likewise.
5763 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5764 target hook implementation that is identical to the default hook.
5765 (rs6000_invalid_within_doloop): Remove.
5766
5767 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5768 unused variable from tablejump_p call.
5769
5770 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5771 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5772 (INSN_DELETED_P): Likewise.
5773 (emit_jump_table_data): New prototype.
5774 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5775 after 4th as unused.
5776 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5777 * sched-vis.c (print_insn): Likewise.
5778 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5779 insn for compatibility with back ends that use next_active_insn to
5780 identify jump table data.
5781 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5782 (remove_insn): Likewise.
5783 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5784 to be emitted.
5785 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5786 (emit_jump_table_data): New function.
5787
5788 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5789 basic block, a JUMP_TABLE_DATA never is.
5790 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5791 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5792 off from code handling real insns.
5793 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5794 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5795 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5796 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5797 is not a NONDEBUG_INSN_P.
5798 * ira-costs.c (scan_one_insn): Likewise.
5799 * jump.c (mark_all_labels): Likewise.
5800 (mark_jump_label_1): Likewise.
5801 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5802 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5803 a basic block.
5804 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5805 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5806 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5807 JUMP_TABLE_DATA_P insns.
5808 (calculate_elim_costs_all_insns): Likewise.
5809 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5810 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5811 (delete_output_reload): Code style fixups.
5812 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5813 insn flags on this non-insn.
5814 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5815 as scheduling barriers, for pre-change compatibility.
5816 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5817 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5818
5819 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5820 redundant JUMP_TABLE_DATA_P test.
5821 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5822 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5823 (frv_for_each_packet): Likewise.
5824 * config/i386/i386.c (min_insn_size): Likewise.
5825 (ix86_avoid_jump_mispredicts): Likewise.
5826 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5827 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5828 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5829 (mips16_insn_length): Robustify.
5830 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5831 (mips16_split_long_branches): Likewise.
5832 * config/pa/pa.c (pa_combine_instructions): Likewise.
5833 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5834 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5835 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5836 as contributing to pool range lengths.
5837 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5838 Remove redundant JUMP_TABLE_DATA_P test.
5839 (sh_loop_align): Likewise.
5840 (split_branches): Likewise.
5841 (sh_insn_length_adjustment): Likewise.
5842 * config/spu/spu.c (get_branch_target): Likewise.
5843
0208f7da
JH
58442013-03-29 Jan Hubicka <jh@suse.cz>
5845
5846 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5847 gcov streaming; stream hot bb threshold to ltrans.
5848 * predict.c (get_hot_bb_threshold): Break out from ....
5849 (maybe_hot_count_p): ... here.
5850 (set_hot_bb_threshold): New function.
5851 * lto-section-in.c (lto_section_name): Add profile.
5852 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5853 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5854 and data-streamer.h
5855 (histogram_entry): New structure.
5856 (histogram, histogram_pool): New global vars.
5857 (histogram_hash): New structure.
5858 (histogram_hash::hash): New method.
5859 (histogram_hash::equal): Likewise.
5860 (account_time_size): New function.
5861 (cmp_counts): New function.
5862 (dump_histogram): New function.
5863 (ipa_profile_generate_summary): New function.
5864 (ipa_profile_write_summary): New function.
5865 (ipa_profile_read_summary): New function.
5866 (ipa_profile): Decide on threshold.
e594716a
UB
5867 (pass_ipa_profile): Add ipa_profile_write_summary and
5868 ipa_profile_read_summary.
0208f7da
JH
5869 * Makefile.in (ipa.o): Update dependencies.
5870 * lto-streamer.h (LTO_section_ipa_profile): New section.
5871
5a6ccc94
GDR
58722013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5873
5874 * tree.h (VAR_P): New.
5875
39385fa6
PC
58762013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5877
5878 PR lto/56777
5879 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5880
34f0d87a
SB
58812013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5882
5883 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5884 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5885 (control_flow_insn_p): Likewise.
5886 * cfgrtl.c (duplicate_insn_chain): Likewise.
5887 * final.c (get_attr_length_1): Likewise.
5888 (shorten_branches): Likewise.
5889 (final_scan_insn): Likewise.
5890 * function.c (instantiate_virtual_regs): Likewise.
5891 * gcse.c (insert_insn_end_basic_block): Likewise.
5892 * ira-costs.c (scan_one_insn): Likewise.
5893 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5894 * lra.c (check_rtl): Likewise.
5895 * reload1.c (elimination_costs_in_insn): Likewise.
5896 * reorg.c (follow_jumps): Likewise.
5897
5898 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5899 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5900 (thumb_far_jump_used_p): Likewise.
5901 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5902 (workaround_speculation): Likewise.
5903 (add_sched_insns_for_speculation): Likewise.
5904 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5905 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5906 (frv_for_each_packet): Likewise.
5907 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5908 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5909 (final_emit_insn_group_barriers): Likewise.
5910 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5911 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5912 (mips16_insn_length): Likewise.
5913 * config/pa/pa.c (pa_reorg): Likewise.
5914 (pa_combine_instructions): Likewise.
5915 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5916 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5917 (sh_reorg): Likewise.
5918 (split_branches): Likewise.
5919 * config/spu/spu.c (get_branch_target): Likewise.
5920
5921 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5922 JUMP_TABLE_DATA_P.
5923
4ac761b0
KY
59242013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5925
39385fa6 5926 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5927 Fix declaration name.
5928
58a49189
LC
59292013-03-28 Lawrence Crowl <crowl@google.com>
5930
5931 * graphds.h (struct graph.indicies): Remove unused.
5932 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5933 (SCOP_ORIGINAL_PDDRS): Remove unused.
5934 * sese.h (extern insert_loop_close_phis): Removed unused.
5935 (extern insert_guard_phis): Removed unused.
5936 (extern ivtype_map_elt_info): Removed unused.
5937 (new_ivtype_map_elt): Removed unused.
5938 * sese.c (ivtype_map_elt_info): Removed unused.
5939
7b3b6ae4
LC
59402013-03-28 Lawrence Crowl <crowl@google.com>
5941
5942 * Makefile.in: Add several missing include dependences.
5943 (DUMPFILE_H): New.
5944 (test-dump.o): New. This object is not added to any executable,
5945 but is present for ad-hoc testing.
5946 * bitmap.c
5947 (debug (const bitmap_head_def &)): New.
5948 (debug (const bitmap_head_def *)): New.
5949 * bitmap.h
5950 (extern debug (const bitmap_head_def &)): New.
5951 (extern debug (const bitmap_head_def *)): New.
5952 * cfg.c
5953 (debug (edge_def &)): New.
5954 (debug (edge_def *)): New.
5955 * cfghooks.c
5956 (debug (basic_block_def &)): New.
5957 (debug (basic_block_def *)): New.
5958 * dumpfile.h
5959 (dump_node (const_tree, int, FILE *)): Correct source file.
5960 * dwarf2out.c
5961 (debug (die_struct &)): New.
5962 (debug (die_struct *)): New.
5963 * dwarf2out.h
5964 (extern debug (die_struct &)): New.
5965 (extern debug (die_struct *)): New.
5966 * gimple-pretty-print.c
5967 (debug (gimple_statement_d &)): New.
5968 (debug (gimple_statement_d *)): New.
5969 * gimple-pretty-print.h
5970 (extern debug (gimple_statement_d &)): New.
5971 (extern debug (gimple_statement_d *)): New.
5972 * ira-build.c
5973 (debug (ira_allocno_copy &)): New.
5974 (debug (ira_allocno_copy *)): New.
5975 (debug (ira_allocno &)): New.
5976 (debug (ira_allocno *)): New.
5977 * ira-int.h
5978 (extern debug (ira_allocno_copy &)): New.
5979 (extern debug (ira_allocno_copy *)): New.
5980 (extern debug (ira_allocno &)): New.
5981 (extern debug (ira_allocno *)): New.
5982 * ira-lives.c
5983 (debug (live_range &)): New.
5984 (debug (live_range *)): New.
5985 * lra-int.h
5986 (debug (lra_live_range &)): New.
5987 (debug (lra_live_range *)): New.
5988 * lra-lives.c
5989 (debug (lra_live_range &)): New.
5990 (debug (lra_live_range *)): New.
5991 * omega.c
5992 (debug (omega_pb_d &)): New.
5993 (debug (omega_pb_d *)): New.
5994 * omega.h
5995 (extern debug (omega_pb_d &)): New.
5996 (extern debug (omega_pb_d *)): New.
5997 * print-rtl.c
5998 (debug (const rtx_def &)): New.
5999 (debug (const rtx_def *)): New.
6000 * print-tree.c
6001 (debug_tree (tree): Move within file.
6002 (debug_raw (const tree_node &)): New.
6003 (debug_raw (const tree_node *)): New.
6004 (dump_tree_via_hooks (const tree_node *, int)): New.
6005 (debug (const tree_node &)): New.
6006 (debug (const tree_node *)): New.
6007 (debug_verbose (const tree_node &)): New.
6008 (debug_verbose (const tree_node *)): New.
6009 (debug_head (const tree_node &)): New.
6010 (debug_head (const tree_node *)): New.
6011 (debug_body (const tree_node &)): New.
6012 (debug_body (const tree_node *)): New.
6013 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6014 (debug (vec<tree, va_gc> &)): New.
6015 (debug (vec<tree, va_gc> *)): New.
6016 * rtl.h
6017 (extern debug (const rtx_def &)): New.
6018 (extern debug (const rtx_def *)): New.
6019 * sbitmap.c
6020 (debug_raw (simple_bitmap_def &)): New.
6021 (debug_raw (simple_bitmap_def *)): New.
6022 (debug (simple_bitmap_def &)): New.
6023 (debug (simple_bitmap_def *)): New.
6024 * sbitmap.h
6025 (extern debug (simple_bitmap_def &)): New.
6026 (extern debug (simple_bitmap_def *)): New.
6027 (extern debug_raw (simple_bitmap_def &)): New.
6028 (extern debug_raw (simple_bitmap_def *)): New.
6029 * sel-sched-dump.c
6030 (debug (vinsn_def &)): New.
6031 (debug (vinsn_def *)): New.
6032 (debug_verbose (vinsn_def &)): New.
6033 (debug_verbose (vinsn_def *)): New.
6034 (debug (expr_def &)): New.
6035 (debug (expr_def *)): New.
6036 (debug_verbose (expr_def &)): New.
6037 (debug_verbose (expr_def *)): New.
6038 (debug (vec<rtx> &)): New.
6039 (debug (vec<rtx> *)): New.
6040 * sel-sched-dump.h
6041 (extern debug (vinsn_def &)): New.
6042 (extern debug (vinsn_def *)): New.
6043 (extern debug_verbose (vinsn_def &)): New.
6044 (extern debug_verbose (vinsn_def *)): New.
6045 (extern debug (expr_def &)): New.
6046 (extern debug (expr_def *)): New.
6047 (extern debug_verbose (expr_def &)): New.
6048 (extern debug_verbose (expr_def *)): New.
6049 (extern debug (vec<rtx> &)): New.
6050 (extern debug (vec<rtx> *)): New.
6051 * sel-sched-ir.h
6052 (_list_iter_cond_expr): Make inline instead of static.
6053 * sreal.c
6054 (debug (sreal &)): New.
6055 (debug (sreal *)): New.
6056 * sreal.h
6057 (extern debug (sreal &)): New.
6058 (extern debug (sreal *)): New.
6059 * tree.h
6060 (extern debug_raw (const tree_node &)): New.
6061 (extern debug_raw (const tree_node *)): New.
6062 (extern debug (const tree_node &)): New.
6063 (extern debug (const tree_node *)): New.
6064 (extern debug_verbose (const tree_node &)): New.
6065 (extern debug_verbose (const tree_node *)): New.
6066 (extern debug_head (const tree_node &)): New.
6067 (extern debug_head (const tree_node *)): New.
6068 (extern debug_body (const tree_node &)): New.
6069 (extern debug_body (const tree_node *)): New.
6070 (extern debug (vec<tree, va_gc> &)): New.
6071 (extern debug (vec<tree, va_gc> *)): New.
6072 * tree-cfg.c
6073 (debug (struct loop &)): New.
6074 (debug (struct loop *)): New.
6075 (debug_verbose (struct loop &)): New.
6076 (debug_verbose (struct loop *)): New.
6077 * tree-dump.c: Add header dependence.
6078 * tree-flow.h
6079 (extern debug (struct loop &)): New.
6080 (extern debug (struct loop *)): New.
6081 (extern debug_verbose (struct loop &)): New.
6082 (extern debug_verbose (struct loop *)): New.
6083 * tree-data-ref.c
6084 (debug (data_reference &)): New.
6085 (debug (data_reference *)): New.
6086 (debug (vec<data_reference_p> &)): New.
6087 (debug (vec<data_reference_p> *)): New.
6088 (debug (vec<ddr_p> &)): New.
6089 (debug (vec<ddr_p> *)): New.
6090 * tree-data-ref.h
6091 (extern debug (data_reference &)): New.
6092 (extern debug (data_reference *)): New.
6093 (extern debug (vec<data_reference_p> &)): New.
6094 (extern debug (vec<data_reference_p> *)): New.
6095 (extern debug (vec<ddr_p> &)): New.
6096 (extern debug (vec<ddr_p> *)): New.
6097 * tree-ssa-alias.c
6098 (debug (pt_solution &)): New.
6099 (debug (pt_solution *)): New.
6100 * tree-ssa-alias.h
6101 (extern debug (pt_solution &)): New.
6102 (extern debug (pt_solution *)): New.
6103 * tree-ssa-alias.c
6104 (debug (_var_map &)): New.
6105 (debug (_var_map *)): New.
6106 (debug (tree_live_info_d &)): New.
6107 (debug (tree_live_info_d *)): New.
6108 * tree-ssa-alias.h
6109 (extern debug (_var_map &)): New.
6110 (extern debug (_var_map *)): New.
6111 (extern debug (tree_live_info_d &)): New.
6112 (extern debug (tree_live_info_d *)): New.
6113
be77e1e5
JH
61142013-03-28 Jan Hubicka <jh@suse.cz>
6115
6116 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6117
777e6976
IB
61182013-03-28 Ian Bolton <ian.bolton@arm.com>
6119
6120 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6121 record only when desired or required.
6122
9cd347ae
UB
61232013-03-28 Uros Bizjak <ubizjak@gmail.com>
6124
6125 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6126 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6127
33159866 61282013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
6129
6130 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6131 (*andsi3_compare0_uxtw): New pattern.
6132 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6133 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6134
89ab31c1
JH
61352013-03-28 Jan Hubicka <jh@suse.cz>
6136
6137 * data-streamer-in.c (streamer_read_gcov_count): New function.
6138 * gimple-streamer-out.c: Include value-prof.h.
6139 (output_gimple_stmt): Output histogram.
6140 (output_bb): Use streamer_write_gcov_count.
6141 * value-prof.c: Include data-streamer.h
6142 (dump_histogram_value): Add HIST_TYPE_MAX.
6143 (stream_out_histogram_value): New function.
6144 (stream_in_histogram_value): New function.
6145 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6146 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6147 * data-streamer-out.c (streamer_write_gcov_count): New function.
6148 (streamer_write_gcov_count_stream): New function.
6149 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6150 (lto_output_node): Likewise.
6151 (input_node, input_edge): Likewise.
6152 * lto-streamer-out.c (output_cfg): Update streaming.
6153 * lto-streamer-in.c (input_cfg): Likewise.
6154 * data-streamer.h (streamer_write_gcov_count,
6155 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6156 * gimple-streamer-in.c: Include value-prof.h
6157 (input_gimple_stmt): Input histograms.
6158 (input_bb): Update profile streaming.
6159
e594716a 61602013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 6161
33159866 6162 * genmodes.c (emit_max_int): New function.
8697be17 6163 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
6164 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6165 Added doc.
8697be17 6166 * machmode.def: Fixed comment.
89ab31c1 6167
e594716a 61682013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
6169
6170 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
6171 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6172
74946978
MP
61732013-03-28 Marek Polacek <polacek@redhat.com>
6174 Richard Biener <rguenther@suse.de>
6175
6176 PR tree-optimization/56695
6177 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6178 build signed result of a vector comparison.
6179 * tree-cfg.c (verify_gimple_comparison): Check that a result
6180 of a vector comparison has signed type.
6181
a64b9c26
RB
61822013-03-28 Richard Biener <rguenther@suse.de>
6183
6184 PR tree-optimization/37021
6185 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6186 do not restrict gaps between groups.
6187 * tree-vect-stmts.c (vectorizable_load): Properly account for
6188 a gap between groups.
6189
a9dc2a2f
EB
61902013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6191
6192 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6193 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6194 is not enabled.
6195
53cb97f9
GP
61962013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6197
6198 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6199 * doc/extend.texi (Named Address Spaces): Ditto.
6200 (Variable Attributes): Ditto.
6201
b802ae5c
KT
62022013-03-27 Kai Tietz <ktietz@redhat.com>
6203
eddae10a
KT
6204 * config.build: Add support for cygwin x64 target.
6205 * config.gcc: Likewise.
6206 * config.host: Likewise.
6207 * configure.ac: Likewise
6208 * configure: Regenerated.
b802ae5c 6209
8269de54
KT
62102013-03-27 Kai Tietz <ktietz@redhat.com>
6211
6212 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6213 * config/i386/t-cygwin-w64: New file.
6214 * config/i386/cygwin-w64.h: New file.
6215 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6216 and add support for x64-cygwin target.
6217 (CPP_SPEC): Likewise.
6218 (CXX_WRAP_SPEC_LIST): Undefine before define.
6219 (LIBGCJ_SONAME): Use 15 as version.
6220
f49b33cb
RB
62212013-03-27 Richard Biener <rguenther@suse.de>
6222
6223 PR tree-optimization/56716
6224 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6225 dumping for ref nodes.
6226
b37a6ce5
MJ
62272013-03-27 Martin Jambor <mjambor@suse.cz>
6228
6229 PR tree-optimization/55334
6230 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6231 restricted pointers to arrays.
6232
9469b9b2
GDR
62332013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6234
6235 * Makefile.in (.SUFFIXES): Add .cc.
6236 (.c.o): Apply same recipe for implicit rule .cc.o.
6237
7d24f650
RB
62382013-03-27 Richard Biener <rguenther@suse.de>
6239
6240 PR tree-optimization/37021
6241 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6242 REALPART/IMAGPART_EXPRs around the supported refs.
6243 * tree-ssa-structalias.c (find_func_aliases): Assume that
6244 floating-point values are not used to transfer pointers.
6245
2f251a05
AI
62462013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6247
39385fa6
PC
6248 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6249 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6250 * doc/tm.texi: Regenerate.
6251 * targhooks.h (default_has_ifunc_p): New.
6252 * targhooks.c (default_has_ifunc_p): Ditto.
6253 * config/linux-protos.h: New file.
6254 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
6255 this hook for linux which disables support of indirect functions in
6256 android.
39385fa6
PC
6257 * config/linux-android.c: New file.
6258 * config/t-linux-android.c: Ditto.
6259 * config.gcc: Added new object file linux-android.o.
6260 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 6261 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 6262 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
6263 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6264 doesn't support indirect functions.
6265 * configure: Regenerate.
6266
78b4e425
BC
62672013-03-27 Bin Cheng <bin.cheng@arm.com>
6268
6269 PR target/56102
6270 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6271 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6272 mult-word mode.
6273
a5ba7b92
AK
62742013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6275
6276 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6277
be624986
TG
62782013-03-27 Terry Guo <terry.guo@arm.com>
6279
6280 * config/arm/arm-cores.def: Added core cortex-r7.
6281 * config/arm/arm-tune.md: Regenerated.
6282 * config/arm/arm-tables.opt: Regenerated.
6283 * doc/invoke.texi: Added entry for core cortex-r7.
6284
0a514f47
WL
62852013-03-27 Walter Lee <walt@tilera.com>
6286
6287 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6288 double-decrement of next_scratch_regno.
6289
9332b0d2
WL
62902013-03-27 Walter Lee <walt@tilera.com>
6291
801d9b2a 6292 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
6293 input operands.
6294 (insn_v1mulus): Ditto.
6295 (insn_v2muls): Ditto.
6296
f54ea5dd
WL
62972013-03-27 Walter Lee <walt@tilera.com>
6298
e594716a 6299 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
6300 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6301
bf60f4ca
WL
63022013-03-27 Walter Lee <walt@tilera.com>
6303
e594716a 6304 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
6305 (*sibcall_value): Ditto.
6306
e3b51eeb
WL
63072013-03-27 Walter Lee <walt@tilera.com>
6308
6309 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6310 (insn_mnz_v8qi): ... this ...
6311 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6312 vector equivalent.
6313 (insn_v<n>mnz): Replaced by ...
6314 (insn_v1mnz): ... this ...
6315 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6316 equivalent.
6317 (insn_mz_<mode>): Replaced by ...
6318 (insn_mz_v8qi): ... this ...
6319 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6320 vector equivalent.
6321 (insn_v<n>mz): Replaced by ...
6322 (insn_v1mz): ... this ...
6323 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6324 equivalent.
6325
4fc7b145
EB
63262013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6327
6328 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6329
6f33817e
RM
63302013-03-26 Roland McGrath <mcgrathr@google.com>
6331
6332 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6333 than fprintf with a non-constant, non-format string.
6334
93a4145b
UB
63352013-03-26 Uros Bizjak <ubizjak@gmail.com>
6336
6337 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6338 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6339 operand 0 predicate.
6340 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6341 attribute. Use general_x64nomem_operand as operand 1 predicate.
6342 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6343 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6344 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6345 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6346 (mov<mode>_insv_1): Remove expander. Merge insn with
6347 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6348 Use general_x64nomem_operand as operand 1 predicate.
6349 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6350 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6351 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6352 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6353 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6354 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6355 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6356 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6357 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6358 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6359 (general_x64nomem_operand): Ditto.
6360
c6a9ed5a 63612013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
6362
6363 * config/rtems.opt: Add -pthread option.
6364
31b0a960
RB
63652013-03-26 Richard Biener <rguenther@suse.de>
6366
93a4145b
UB
6367 * alias.c (find_base_term): Avoid redundant and not used recursion.
6368 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
6369 (true_dependence_1): Compute and pass base terms to base_alias_check.
6370 (write_dependence_p): Likewise.
6371 (may_alias_p): Likewise.
6372
79517551
SN
63732013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6374
6375 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6376 PC-relative load in SI modes and above only.
6377
a76213b9
XQ
63782013-03-26 Xinyu Qi <xyqi@marvell.com>
6379
6380 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
6381 * config/arm/iwmmxt.md (WCGR0): Update.
6382 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 6383
37ff9355
UB
63842013-03-26 Uros Bizjak <ubizjak@gmail.com>
6385
6386 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6387 Use x64 and nox64 isa attributes.
6388
30b0317c
RB
63892013-03-26 Richard Biener <rguenther@suse.de>
6390
6391 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6392 alignment computations and rely on get_object_alignment_1
6393 for the !TYPE_P case.
6394 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6395
cbcdb140
WL
63962013-03-26 Walter Lee <walt@tilera.com>
6397
6398 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6399 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6400
dd884525 64012013-03-25 Jeff Law <law@redhat.com>
be672e08 6402
33159866
UB
6403 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6404 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
6405 wrong version of prior patch.
6406
0051d3ec
WL
64072013-03-25 Walter Lee <walt@tilera.com>
6408
6409 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6410 TILEGX_INSN_SHUFFLEBYTES1.
6411 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6412 shufflebytes1.
6413 (tilegx_builtins): Ditto.
6414 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6415
065a3605
WL
64162013-03-25 Walter Lee <walt@tilera.com>
6417
6418 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
6419 (floatunssisf2): New pattern.
6420 (floatsidf2): New pattern.
6421 (floatunssidf2): New pattern.
065a3605 6422
5b2a3c82
WL
64232013-03-25 Walter Lee <walt@tilera.com>
6424
6425 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6426 tests for constraint J, K, N, P.
6427
192ea533
WL
64282013-03-25 Walter Lee <walt@tilera.com>
6429
6430 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6431 Use indirect/pcrel encoding.
6432 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6433 Ditto.
6434
855e0d0b
SE
64352013-03-25 Steve Ellcey <sellcey@mips.com>
6436
6437 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6438 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6439 * config/mips/mips.c (mips_option_override): Set IMADD default.
6440 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6441 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6442 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6443 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6444 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6445
39e45653
JL
64462013-03-25 Jeff Law <law@redhat.com>
6447
6448 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6449 slightly to avoid creating and folding useless trees. Simplify
6450 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6451
7482c470
UB
64522013-03-25 Uros Bizjak <ubizjak@gmail.com>
6453
6454 * config/i386/i386.md (*zero_extendsidi2): Merge with
6455 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6456 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6457 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6458 targets. Clarify comment.
6459
4a53743e
MJ
64602013-03-25 Martin Jambor <mjambor@suse.cz>
6461
6462 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6463 pass-through jump functions differently.
6464 (ipa_read_jump_function): Likewise. Also use setter functions to set
6465 up jump functions.
6466
162712de
MJ
64672013-03-25 Martin Jambor <mjambor@suse.cz>
6468
6469 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6470 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6471 process it.
6472 (ipa_get_indirect_edge_target): New function.
6473 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6474 ipa_get_indirect_edge_target. Update all callers.
6475 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6476 ipa_get_indirect_edge_target_1 instead of calling
6477 ipa_get_indirect_edge_target.
6478 (create_specialized_node): Pass aggvlas to
6479 ipcp_discover_new_direct_edges.
6480
a5a4c20a
KT
64812013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6482
6483 * config/arm/arm.md (f_sels, f_seld): New types.
6484 (*cmov<mode>): New pattern.
6485 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6486 predicate.
6487
f992b9fc
KT
64882013-03-25 Kai Tietz <ktietz@redhat.com>
6489
6490 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6491 POSIX-printf for mingw-hosted builds.
6492
c16fd676
RB
64932013-03-25 Richard Biener <rguenther@suse.de>
6494
6495 PR middle-end/56694
6496 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6497 must-not-throw stmt location.
6498
5ad29f12
KT
64992013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6500
6501 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6502 Emit load-acquire versions when acq is true.
6503 (arm_emit_store_exclusive): Add rel parameter.
6504 Emit store-release versions when rel is true.
6505 (arm_split_compare_and_swap): Use acquire-release instructions
6506 instead.
6507 of barriers when appropriate.
6508 (arm_split_atomic_op): Likewise.
6509 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6510 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6511 (VUNSPEC_SLX): Likewise.
6512 (VUNSPEC_LDA): Likewise.
6513 (VUNSPEC_STL): Likewise.
6514 * config/arm/sync.md (atomic_load<mode>): New pattern.
6515 (atomic_store<mode>): Likewise.
6516 (arm_load_acquire_exclusive<mode>): Likewise.
6517 (arm_load_acquire_exclusivesi): Likewise.
6518 (arm_load_acquire_exclusivedi): Likewise.
6519 (arm_store_release_exclusive<mode>): Likewise.
6520
03a7dddb
CM
65212013-03-25 Catherine Moore <clm@codesourcery.com>
6522
6523 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6524 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6525 * config/mip/predicates.md (lwsp_swsp_operand,
6526 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6527 sb16_operand, db4_operand, db7_operand, ib3_operand,
6528 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6529 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6530 andi16_operand): New predicates.
6531 * config/mips/mips.md (compression): New attribute.
6532 (enabled): New attribute.
6533 (length): Consider compression in computing length.
6534 (shift_compression): New code attribute.
6535 (*add<mode>3): New operands. Record compression.
6536 (sub<mode>3): Likewise.
6537 (one_cmpl<mode>2): Likewise.
6538 (*and<mode>3): Likewise.
6539 (*ior<mode>3): Likewise.
6540 (unnamed pattern for xor): Likewise.
6541 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6542 (*<optab><mode>3): Likewise.
6543 (*mov<mode>_internal: Likewise.
6544 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6545 (mips_unsigned_immediate_p): New.
6546 (umips_lwsp_swsp_address_p): New.
6547 (m16_based_address_p): New.
6548 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6549 (mips_unsigned_immediate_p): New prototype.
6550 (lwsp_swsp_address_p): New prototype.
6551 (m16_based_address_p): New prototype.
6552 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6553 (mips_signed_immediate_p): New function.
6554 (m16_based_address_p): New function.
6555 (lwsp_swsp_address_p): New function.
6556 (mips_print_operand_punctuation): Recognize short delay slot insns
6557 for microMIPS.add<mode>3"
6558
f35c297f 65592013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 6560
f35c297f
KT
6561 PR target/56720
6562 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6563 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6564
051b9446
RB
65652013-03-25 Richard Biener <rguenther@suse.de>
6566
6567 PR tree-optimization/56689
6568 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6569 any edge.
6570
374001cb
RB
65712013-03-25 Richard Biener <rguenther@suse.de>
6572
6573 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6574 of bitmap.
6575 (memory_references): Likewise.
6576 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6577 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6578 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6579 (gather_mem_refs_in_loops): Fold into ...
6580 (analyze_memory_references): ... this. Move initialization
6581 to tree_ssa_lim_initialize.
6582 (fill_always_executed_in): Rename to ...
6583 (fill_always_executed_in_1): ... this.
6584 (fill_always_executed_in): Move contains_call computation to
6585 this new function from ...
6586 (tree_ssa_lim_initialize): ... here.
6587 (tree_ssa_lim): Call fill_always_executed_in.
6588
57895947
EB
65892013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6590
6591 * postreload.c (reload_combine): Fix code detecting returns.
6592
1e1b18c1
EB
65932013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6594
6595 * function.c (emit_use_return_register_into_block): On cc0 targets,
6596 do not emit the sequence between cc0 setter and user.
6597
9216baf1
KT
65982013-03-25 Kai Tietz <ktietz@redhat.com>
6599
1e1b18c1
EB
6600 * config/i386/predicates.md (local_symbolic_operand): Interpret
6601 dll-imported symbols as none-local.
9216baf1 6602
76421b44
RB
66032013-03-25 Richard Biener <rguenther@suse.de>
6604
6605 * tree-ssa-loop-im.c (struct depend): Remove.
6606 (struct lim_aux_data): Make depends a vec of gimples.
6607 (free_lim_aux_data): Adjust.
6608 (add_dependency): Likewise.
6609 (set_level): Likewise.
6610
d154bfa2
RB
66112013-03-25 Richard Biener <rguenther@suse.de>
6612
6613 PR middle-end/56434
6614 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6615 the pointer returned by calls with ECF_MALLOC set.
6616
2cd9804e
UB
66172013-03-24 Uros Bizjak <ubizjak@gmail.com>
6618
acef5fe0
UB
6619 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6620
66212013-03-24 Uros Bizjak <ubizjak@gmail.com>
6622
6623 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
6624 using MMXMODE mode iterator.
6625 (*move<mode>_internal): Merge with *movv2sf_internal and
6626 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6627
225ccc68
SB
66282013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6629
85c0f02d
SB
6630 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6631 (record_last_mem_set_info): Likewise.
6632
225ccc68
SB
6633 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6634 of XNEWVEC followed by memset.
6635 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6636
b64925dc
SB
66372013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6638
6639 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6640 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6641 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6642 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6643 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6644 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6645 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6646 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6647 BARRIER_P instead of GET_CODE.
6648
b9aaf52e
EB
66492013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6650
6651 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6652 inaccuracy in the probing code.
6653
6654 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6655 (ctrapdi4): Likewise.
6656
66de4d7c
EB
66572013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6658
6659 * calls.c (expand_call): Add missing guard to code handling return
6660 of non-BLKmode structures in MSB.
6661 * function.c (expand_function_end): Likewise.
6662
4f25c8fb
EB
66632013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6664
6665 * combine.c (try_combine): Adjust comment. Do not add the set of
6666 insn #0 if the destination indirectly is set or dies in insn #2.
6667 Tidy up code to distribute a new note.
6668
23b7850d
UB
66692013-03-22 Uros Bizjak <ubizjak@gmail.com>
6670
6671 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6672 also for alternatives 16 and 17.
6673
bed852cf
UB
66742013-03-22 Uros Bizjak <ubizjak@gmail.com>
6675
6676 * config/i386/sse.md (*mov<mode>_internal): Merge with
6677 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6678 Emit insn template depending on type attribute. Use
6679 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6680 movd instead of movq mnemonic for interunit moves. Rewrite mode
6681 attribute calculation. Remove unit attribute calculation.
6682 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6683 Set prefix_data16 attribute for DImode ssemov types.
6684 Use Ym instead of y for SSE-MMX conversion alternatives.
6685 Reorder operand constraints.
6686
1e8a7937
SB
66872013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6688
6689 * df.h (df_insn_delete): Adjust prototype.
6690 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6691 and let it decide whether mark the basic block dirty.
6692 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6693 * df-scan.c (df_insn_info_delete): New helper function, split
6694 off from df_insn_delete.
6695 (df_scan_free_bb_info): Use it.
6696 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6697 Likewise.
6698 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6699 that the insn is actually an insn and it has a non-NULL basic block.
6700 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6701
e14d094c
RB
67022013-03-22 Richard Biener <rguenther@suse.de>
6703
6704 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6705 dep_ref members.
6706 (mem_ref_alloc): Do not allocate them.
6707 (refs_independent_p): Do not query or maintain a cache.
6708
e9cf7316
RB
67092013-03-22 Richard Biener <rguenther@suse.de>
6710
6711 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6712 (gather_mem_refs_in_loops): Do not compute it.
6713 (analyze_memory_references): Do not allocate it.
6714 (tree_ssa_lim_finalize): Do not free it.
6715 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6716
f046e81b
RB
67172013-03-22 Richard Biener <rguenther@suse.de>
6718
6719 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 6720
a05c0ddf
IB
67212013-03-22 Ian Bolton <ian.bolton@arm.com>
6722
6723 * config/aarch64/aarch64.c (aarch64_print_operand): New
6724 format specifier for printing a constant in hex.
6725 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6726 format specifier for printing second operand.
6727
c00217fc
RB
67282013-03-22 Richard Biener <rguenther@suse.de>
6729
6730 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6731 bitmaps.
6732 (gather_mem_refs_in_loops): Perform store accumulation here.
6733 (create_vop_ref_mapping_loop): Remove.
6734 (create_vop_ref_mapping): Likewise.
6735 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6736 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6737 (record_indep_loop): Remove.
6738 (record_dep_loop): New function.
6739 (ref_indep_loop_p_1): Adjust to only walk over references
6740 in the loop, not its subloops.
6741 (ref_indep_loop_p): Rename to ...
6742 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6743 maintaining a more fine-grained cache.
6744 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6745 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6746
15d19bf8
RB
67472013-03-22 Richard Biener <rguenther@suse.de>
6748
6749 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6750 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6751 aggregate mem_ref_loc.
6752 (free_mem_ref_locs): Inline into ...
6753 (memref_free): ... this and adjust.
6754 (mem_ref_alloc): Adjust.
6755 (mem_ref_locs_alloc): Remove.
6756 (record_mem_ref_loc): Adjust.
6757 (get_all_locs_in_loop): Rewrite into ...
6758 (for_all_locs_in_loop): ... this iterator.
6759 (rewrite_mem_ref_loc): New functor.
6760 (rewrite_mem_refs): Use for_all_locs_in_loop.
6761 (sm_set_flag_if_changed): New functor.
6762 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6763 (ref_always_accessed): New functor.
6764 (ref_always_accessed_p): Use for_all_locs_in_loop.
6765
6f37411d
MG
67662013-03-21 Marc Glisse <marc.glisse@inria.fr>
6767
6768 * tree-pass.h (PROP_gimple_lvec): New.
6769 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6770 (init_optimization_passes): Move pass_lower_vector.
6771 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6772 PROP_gimple_lvec.
6773 (pass_lower_vector): Provide PROP_gimple_lvec.
6774 (pass_lower_vector_ssa): Likewise.
6775 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6776
511ef689
MW
67772013-03-21 Mark Wielaard <mjw@redhat.com>
6778
6779 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6780
cc1df30b
UB
67812013-03-21 Uros Bizjak <ubizjak@gmail.com>
6782
6783 * config/i386/i386.md (*movdi_internal): Disparage slightly
6784 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6785 conversion alternatives.
6786
c845cfe1
JJ
67872013-03-21 Jakub Jelinek <jakub@redhat.com>
6788
37e99116
JJ
6789 PR middle-end/48087
6790 * diagnostic.def (DK_WERROR): New kind.
6791 * diagnostic.h (werrorcount): Define.
6792 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6793 promoted to DK_ERROR, increment DK_WERROR counter instead of
6794 DK_ERROR counter.
6795 * toplev.c (toplev_main): Call print_ignored_options even if
6796 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6797 even if just werrorcount is non-zero.
6798
c845cfe1
JJ
6799 PR debug/55608
6800 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6801 on failure.
6802 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6803 (string_cst_pool_decl): New function.
6804 (optimize_one_addr_into_implicit_ptr): New function.
6805 (resolve_addr_in_expr): Optimize DWARF location expression
6806 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6807 which doesn't live in memory, but has DW_AT_location or
6808 DW_AT_const_value, or refers to a string literal, into
6809 DW_OP_GNU_implicit_pointer.
6810 (optimize_location_into_implicit_ptr): New function.
6811 (resolve_addr): If removing DW_AT_location of a variable because
6812 it was DW_OP_addr of address of the variable, but the variable doesn't
6813 live in memory, try to emit const value attribute for the initializer.
6814
08e0cda6
MG
68152013-03-21 Marc Glisse <marc.glisse@inria.fr>
6816
6817 * tree.h (VECTOR_TYPE_P): New macro.
6818 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6819 TYPE_MODE): Use it.
6820 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6821 VEC_COND_EXPR cannot be lvalues.
6822 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6823
d08633b4
MG
68242013-03-21 Marc Glisse <marc.glisse@inria.fr>
6825
6826 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6827 Restrict the transformation to equal modes.
6828
e6647190
RB
68292013-03-21 Richard Biener <rguenther@suse.de>
6830
6831 PR tree-optimization/39326
6832 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6833 (MEM_ANALYZABLE): Adjust.
6834 (record_mem_ref_loc): Move bitmap ops ...
6835 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6836 unanalyzable refs, do not record locations for it.
6837 (analyze_memory_references): Allocate ref zero as shared
6838 unanalyzable ref.
6839 (refs_independent_p): Do not test for unanalyzed mems here.
6840 (ref_indep_loop_p_1): Special-case disambiguation against
6841 the unanalyzed ref.
cc1df30b 6842 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6843
65074f54
CL
68442013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6845
6846 * config/arm/arm-protos.h (tune_params): Add
6847 prefer_neon_for_64bits field.
6848 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6849 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6850 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6851 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6852 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6853 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6854 (arm_option_override): Handle -mneon-for-64bits new option.
6855 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6856 (prefer_neon_for_64bits): Declare new variable.
6857 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6858 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6859 (arch_enabled): Handle new arch types. Remove support for onlya8
6860 and nota8.
6861 (one_cmpldi2): Use new arch names.
bc5faa5b 6862 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6863 * config/arm/arm.opt (mneon-for-64bits): Add option.
6864 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6865 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6866 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6867 of onlya8.
6868 * doc/invoke.texi (-mneon-for-64bits): Document.
6869
5a2d2a79
RB
68702013-03-21 Richard Biener <rguenther@suse.de>
6871
6872 PR tree-optimization/39326
6873 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6874 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6875 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6876
5abe1e05
RB
68772013-03-21 Richard Biener <rguenther@suse.de>
6878
6879 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6880 (vect_insert_into_interleaving_chain): Likewise.
6881 (vect_drs_dependent_in_basic_block): Inline ...
6882 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6883 split out from ...
6884 (vect_analyze_data_ref_dependence): ... here. Simplify.
6885 (vect_check_interleaving): Simplify.
6886 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6887 (vect_slp_analyze_data_ref_dependences): ... this new function.
6888 (dr_group_sort_cmp): New function.
6889 (vect_analyze_data_ref_accesses): Compute data-reference groups
6890 here instead of in vect_analyze_data_ref_dependence. Use
6891 a more efficient algorithm.
6892 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6893 vect_slp_analyze_data_ref_dependences. Call
6894 vect_analyze_data_ref_accesses earlier.
6895 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6896 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6897 (vect_slp_analyze_data_ref_dependences): New prototype.
6898
cad1735b
RB
68992013-03-21 Richard Biener <rguenther@suse.de>
6900
6901 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6902 ref is stored in the loop.
6903 (find_refs_for_sm): Walk only over all stores.
6904 (store_motion_loop): Allocate from lim_bitmap_obstack.
6905 (store_motion): Likewise.
6906
141310ef
RB
69072013-03-21 Richard Biener <rguenther@suse.de>
6908
6909 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6910 Update virtual SSA form.
6911
5022315a
RO
69122013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6913
6914 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6915 * configure: Regenerate.
6916 * config.in: Regenerate.
6917 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6918 if !HAVE_LD_EH_FRAME_CIEV3.
6919
50d4421c
RB
69202013-03-21 Richard Biener <rguenther@suse.de>
6921
6922 * tree-cfg.c (verify_expr_no_block): New function.
6923 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6924 nor DECL_VALUE_EXPR have locations with associated blocks.
6925 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6926 (clear_unused_block_pointer): Remove code dealing with
6927 blocks in DECL_DEBUG_EXPR locations.
6928
839b422f
RB
69292013-03-21 Richard Biener <rguenther@suse.de>
6930
6931 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6932 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6933 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6934 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6935 instead of DECL_DEBUG_EXPR_IS_FROM.
6936 * gimplify.c (gimplify_modify_expr): Likewise.
6937 * tree-cfg.c (verify_expr_location_1): Likewise.
6938 * tree-complex.c (create_one_component_var): Likewise.
6939 * tree-sra.c (create_access_replacement): Likewise.
6940 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6941 (clear_unused_block_pointer): Likewise.
6942 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6943 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6944 * var-tracking.c (var_debug_decl): Likewise.
6945 (track_expr_p): Likewise.
6946 * tree-inline.c (add_local_variables): Likewise. Set
6947 DECL_HAS_DEBUG_EXPR_P after copying it.
6948 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6949 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6950
fe04878d
UB
69512013-03-21 Uros Bizjak <ubizjak@gmail.com>
6952
6953 PR bootstrap/56656
6954 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6955 * configure: Regenerate.
6956 * config.in: Regenerate.
6957 * config/i386/i386.md (*movdf_internal): Use
6958 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6959 movd instead of movq mnemonic for interunit moves.
6960 (*movdi_internal): Ditto.
6961
bd059b26 69622013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
6963
6964 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6965 (abd<mode>_3): New pattern.
6966 (aba<mode>_3): New pattern.
6967 (fabd<mode>_3): New pattern.
6968
bd059b26 69692013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
6970
6971 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6972 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6973 occurrence of REGISTER_PREFIX as its empty string.
6974
4f1f78b9
JL
69752013-03-20 Jeff Law <law@redhat.com>
6976
6977 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6978 addititional equivalences for equality comparisons between an SSA_NAME
6979 and a constant where the SSA_NAME was set from a widening conversion.
6980
327a1118
WL
69812013-03-20 Walter Lee <walt@tilera.com>
6982
6983 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6984
813e0036
UB
69852013-03-20 Uros Bizjak <ubizjak@gmail.com>
6986
6987 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6988 depending on type attribute.
6989 (*movti_internal): Ditto.
6990 (*movtf_internal): Ditto.
6991 (*movxf_internal): Ditto.
6992 (*movdf_internal): Ditto.
6993 (*movsf_internal): Ditto.
6994
7cf34aae
UB
69952013-03-20 Uros Bizjak <ubizjak@gmail.com>
6996
6997 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6998 maybe_vex for sselog1 and ssemov types.
6999 (*movdi_internal): Reorder operand constraints.
7000 (*movsi_internal): Ditto. Set prefix attribute to
7001 maybe_vex for sselog1 and ssemov types.
7002 (*movtf_internal): Set prefix attribute to maybe_vex
7003 for sselog1 and ssemov types.
7004 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7005 DImode ssemov types. Reorder operand constraints.
7006 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7007 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7008 attribute for SImode ssemov types. Reorder operand constraints.
7009
19321415
MJ
70102013-03-20 Martin Jambor <mjambor@suse.cz>
7011
7012 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7013 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7014
c6d5ff83
MM
70152013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7016
7017 * config/rs6000/predicates.md (indexed_address, update_address_mem
7018 update_indexed_address_mem): New predicates.
7019 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7020 attribute for load/store instructions.
7021 * config/rs6000/dfp.md (movsd_store): Likewise.
7022 (movsd_load): Likewise.
7023 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7024 (unnamed HI->DI extend define_insn): Likewise.
7025 (unnamed SI->DI extend define_insn): Likewise.
7026 (unnamed QI->SI extend define_insn): Likewise.
7027 (unnamed QI->HI extend define_insn): Likewise.
7028 (unnamed HI->SI extend define_insn): Likewise.
7029 (unnamed HI->SI extend define_insn): Likewise.
7030 (extendsfdf2_fpr): Likewise.
7031 (movsi_internal1): Likewise.
7032 (movsi_internal1_single): Likewise.
7033 (movhi_internal): Likewise.
7034 (movqi_internal): Likewise.
7035 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7036 attribute for load/store instructions.
7037 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7038 instructions.
7039 (mov<mode>_softfloat): Likewise.
7040 (mov<mode>_hardfloat32): Likewise.
7041 (mov<mode>_hardfloat64): Likewise.
7042 (mov<mode>_softfloat64): Likewise.
7043 (movdi_internal32): Likewise.
7044 (movdi_internal64): Likewise.
7045 (probe_stack_<mode>): Likewise.
7046
70472013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7048
7049 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7050 floating point, and decimal floating point to reload iterator.
7051
7052 * config/rs6000/constraints.md (wl constraint): New constraints to
7053 return FLOAT_REGS if certain options are used to reduce the number
7054 of separate patterns that exist in the file.
7055 (wx constraint): Likewise.
7056 (wz constraint): Likewise.
7057
7058 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7059 -mdebug=reg, print wg, wl, wx, and wz constraints.
7060 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7061 Initialize the reload functions for 64-bit binary/decimal floating
7062 point types.
7063 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7064 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7065 create the buffer on the stack to overcome not having a 32-bit
7066 load and store.
7067 (rs6000_emit_move): Likewise.
7068 (rs6000_secondary_memory_needed_rtx): Likewise.
7069 (rs6000_alloc_sdmode_stack_slot): Likewise.
7070 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7071 via xxlxor, just like DFmode 0.0.
7072
7073 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7074 define as 1 if we are running on a power7 or newer.
7075 (enum r6000_reg_class_enum): Add new constraints.
7076
7077 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7078 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7079 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 7080 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
7081 (movsd splitter): Likewise.
7082 (movsd_hardfloat): Likewise.
7083 (movsd_softfloat): Likewise.
7084
7085 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7086 binary and decimal floating point moves.
7087 (fmove_ok): New attributes to combine binary and decimal floating
7088 point moves, and to combine power6x (mfpgpr) moves along normal
7089 floating moves.
7090 (real_value_to_target): Likewise.
7091 (f32_lr): Likewise.
7092 (f32_lm): Likewise.
7093 (f32_li): Likewise.
7094 (f32_sr): Likewise.
7095 (f32_sm): Likewise.
7096 (f32_si): Likewise.
7097 (movsf): Combine binary and decimal floating point moves. Combine
7098 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 7099 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
7100 (mov<mode> for SFmode/SDmode); Likewise.
7101 (SFmode/SDmode splitters): Likewise.
7102 (movsf_hardfloat): Likewise.
7103 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7104 (movsf_softfloat): Likewise.
7105 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7106
7107 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7108 wx and wz constraints.
7109
7110 * config/rs6000/constraints.md (wg constraint): New constraint to
7111 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7112
7113 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7114 constraint.
7115
7116 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7117 -mdebug=reg, print wg, wl, wx, and wz constraints.
7118 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7119 Initialize the reload functions for 64-bit binary/decimal floating
7120 point types.
7121 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7122 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7123 create the buffer on the stack to overcome not having a 32-bit
7124 load and store.
7125 (rs6000_emit_move): Likewise.
7126 (rs6000_secondary_memory_needed_rtx): Likewise.
7127 (rs6000_alloc_sdmode_stack_slot): Likewise.
7128 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7129 via xxlxor, just like DFmode 0.0.
7130
c6d5ff83
MM
7131 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7132 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7133 with other moves by using conditional constraits (wg). Use LFIWZX
7134 and STFIWX for loading SDmode on power7.
7135 (movdd splitters): Likewise.
7136 (movdd_hardfloat32): Likewise.
7137 (movdd_softfloat32): Likewise.
7138 (movdd_hardfloat64_mfpgpr): Likewise.
7139 (movdd_hardfloat64): Likewise.
7140 (movdd_softfloat64): Likewise.
7141
7142 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7143 64-bit binary and decimal floating point moves.
7144 (FMOVE64X): Likewise.
7145 (movdf): Combine 64-bit binary and decimal floating point moves.
7146 Combine power6x (mfpgpr) moves with other moves by using
7147 conditional constraits (wg).
7148 (mov<mode> for DFmode/DDmode): Likewise.
7149 (DFmode/DDmode splitters): Likewise.
7150 (movdf_hardfloat32): Likewise.
7151 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7152 (movdf_softfloat32): Likewise.
7153 (movdf_hardfloat64_mfpgpr): Likewise.
7154 (movdf_hardfloat64): Likewise.
7155 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7156 (movdf_softfloat64): Likewise.
7157 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7158 (reload_<mode>_load): Move to later in the file so they aren't in
7159 the middle of the floating point move insns.
7160 (reload_<mode>_store): Likewise.
7161
7162 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7163 constraint.
7164
7165 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7166 constraint if -mdebug=reg.
bd059b26
UB
7167 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7168 Enable using dd reload support if needed.
c6d5ff83
MM
7169
7170 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7171 binary and decimal floating point moves in rs6000.md.
7172 (movtd_internal): Likewise.
7173
7174 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7175 decimal floating point moves.
7176 (movtf): Likewise.
7177 (movtf_internal): Likewise.
7178 (mov<mode>_internal, TDmode/TFmode): Likewise.
7179 (movtf_softfloat): Likewise.
7180 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7181
7182 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7183 movdi_internal64, using wg constraint for move direct operations.
7184 (movdi_internal64): Likewise.
7185
7186 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7187 MODES_TIEABLE_P for selected modes. Print the numerical value of
7188 the various virtual registers. Use GPR/FPR first/last values,
7189 instead of hard coding the register numbers. Print which modes
7190 have reload functions registered.
bd059b26
UB
7191 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7192 settings before/after setting cpu, target and subtarget settings.
7193 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7194 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
7195 (rs6000_secondary_reload_fail): Likewise.
7196 (rs6000_secondary_reload_inner): Likewise.
7197
7198 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7199 macros for first/last GPR and FPR registers.
7200 (LAST_GPR_REGNO): Likewise.
7201 (FIRST_FPR_REGNO): Likewise.
7202 (LAST_FPR_REGNO): Likewise.
7203
7204 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7205 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7206 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7207 (vcond<mode><mode>): Likewise.
7208 (vcondu<mode><mode>): Likewise.
7209 (vector_gtu<mode>): Likewise.
7210 (vector_gte<mode>): Likewise.
7211 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 7212 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
7213 (ior<mode>3): Likewise.
7214 (and<mode>3): Likewise.
7215 (one_cmpl<mode>2): Likewise.
7216 (nor<mode>3): Likewise.
7217 (andc<mode>3): Likewise.
7218
7219 * config/rs6000/constraints.md (wt constraint): New constraint
7220 that returns VSX_REGS if TImode is allowed in VSX registers.
7221
7222 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7223 constant under VSX.
7224
7225 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7226 similar to TImode, but it is restricted to being in the GPRs.
7227
7228 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7229 TImode to occupy a single VSX register.
7230
7231 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7232 -mvsx-timode for power7/power8.
7233 (power7 cpu): Likewise.
7234 (power8 cpu): Likewise.
7235
7236 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7237 sure that TFmode/TDmode take up two registers if they are ever
7238 allowed in the upper VSX registers.
7239 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7240 registers.
7241 (rs6000_init_hard_regno_mode_ok): Likewise.
7242 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7243 constraint. Print if LRA is turned on.
7244 (rs6000_option_override_internal): Give an error if -mvsx-timode
7245 and VSX is not enabled.
7246 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7247 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7248 to reg+offset addressing. Use PTImode when checking offset
7249 addresses for validity.
7250 (reg_offset_addressing_ok_p): Likewise.
7251 (rs6000_legitimate_offset_address_p): Likewise.
7252 (rs6000_legitimize_address): Likewise.
7253 (rs6000_legitimize_reload_address): Likewise.
7254 (rs6000_legitimate_address_p): Likewise.
7255 (rs6000_eliminate_indexed_memrefs): Likewise.
7256 (rs6000_emit_move): Likewise.
7257 (rs6000_secondary_reload): Likewise.
7258 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7259 reloads to fpr registers to continue to use reg+offset addressing,
7260 but 64-bit reloads to altivec registers need reg+reg addressing.
7261 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7262 it. Treat LO_SUM like a PLUS operation.
7263 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 7264 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
7265 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7266 registers to share a register with a smaller sized type, since VSX
7267 puts scalars in the upper 64-bits.
7268 (print_operand): Add support for PTImode.
7269 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7270 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7271 registers, but don't have arithmetic support.
7272 (rs6000_memory_move_cost): Add test for VSX.
7273 (rs6000_opt_masks): Add -mvsx-timode.
7274
7275 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7276 for TImode.
7277 (VSs): Likewise.
7278 (VSr): Use wt constraint for TImode.
7279 (VSv): Drop TImode support.
7280 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7281 (vsx_movti_64bit): Likewise.
7282 (vsx_movti_32bit): Likewise.
7283 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7284 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7285 one '?' on the appropriate output constraint. Do not allow TImode
7286 logical operations on 32-bit systems.
7287 (vsx_ior<mode>3): Likewise.
7288 (vsx_xor<mode>3): Likewise.
7289 (vsx_one_cmpl<mode>2): Likewise.
7290 (vsx_nor<mode>3): Likewise.
7291 (vsx_andc<mode>3): Likewise.
7292 (vsx_concat_<mode>): Likewise.
7293 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7294
7295 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7296 OPTION_MASK_VSX_TIMODE.
7297 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7298 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7299
7300 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7301 (TI2 iterator): New iterator for TImode, PTImode.
7302 (wd mode attribute): Add values for vector types.
bd059b26
UB
7303 (movti_string): Replace TI move operations with operations for TImode
7304 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
7305 (mov<mode>_string, TImode/PTImode): Likewise.
7306 (movti_ppc64): Likewise.
7307 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7308 (TI mode splitters): Likewise.
7309
7310 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7311 constraint.
7312
1fc5eced
MG
73132013-03-20 Marc Glisse <marc.glisse@inria.fr>
7314
7315 PR tree-optimization/56355
7316 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7317 Also handle integers with undefined overflow.
7318
22c4c869
CM
73192013-03-20 Catherine Moore <clm@codesourcery.com>
7320 Maciej W. Rozycki <macro@codesourcery.com>
7321 Tom de Vries <tom@codesourcery.com>
7322 Nathan Sidwell <nathan@codesourcery.com>
7323 Iain Sandoe <iain@codesourcery.com>
7324 Nathan Froyd <froydnj@codesourcery.com>
7325 Chao-ying Fu <fu@mips.com>
7326
7327 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 7328 Document new function attributes.
22c4c869
CM
7329 * doc/invoke.texi (minterlink-compressed, mmicromips,
7330 m14k, m14ke, m14kec): Document new options.
7331 (minterlink-mips16): Update documentation.
7332 * doc/md.texi (ZC, ZD): Document new constraints.
7333 * configure.ac (gcc_cv_as_micromips): Check if linker
7334 supports the .set micromips directive.
7335 * configure: Regenerate.
7336 * config.in: Regenerate.
7337 * config/mips/mips-tables.opt: Regenerate.
7338 * config/mips/micromips.md: New file.
7339 * constraints.md (ZC, ZD): New constraints.
7340 * config/mips/predicates.md (movep_src_register): New predicate.
7341 (movep_src_operand): New predicate.
7342 (non_volatile_mem_operand): New predicate.
7343 * config/mips/mips.md (multimem): New type.
7344 (length): Differentiate between 17-bit and 18-bit branch offsets.
7345 (MOVEP1, MOVEP2): New mode iterator.
33159866 7346 (mov_<load>l): Use ZC constraint.
22c4c869
CM
7347 (mov_<load>r): Likewise.
7348 (mov_<store>l): Likewise.
7349 (mov_<store>r): Likewise.
7350 (*branch_equality<mode>_inverted): Add microMIPS support.
7351 (*branch_equality<mode>): Likewise.
7352 (*jump_absolute): Likewise.
7353 (indirect_jump_<mode>): Likewise.
7354 (tablejump_<mode>): Likewise.
7355 (<optab>_internal): Likewise.
7356 (sibcall_internal): Likewise.
7357 (sibcall_value_internal): Likewise.
7358 (prefetch): Use constraint ZD.
7359 * config/mips/mips.opt (minterlink-compressed): New option.
7360 (minterlink-mips16): Now an alias for minterlink-compressed.
7361 (mmicromips): New option.
7362 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7363 (compare_and_swap_12): Likewise.
7364 (sync_add<mode>): Likewise.
7365 (sync_<optab>_12): Likewise.
7366 (sync_old_<optab>_12): Likewise.
7367 (sync_new_<optab>_12): Likewise.
7368 (sync_nand_12): Likewise.
7369 (sync_old_nand_12): Likewise.
7370 (sync_new_nand_12): Likewise.
7371 (sync_sub<mode>): Likewise.
7372 (sync_old_add<mode>): Likewise.
7373 (sync_old_sub<mode>): Likewise.
7374 (sync_new_add<mode>): Likewise.
7375 (sync_new_sub<mode>): Likewise.
7376 (sync_<optab><mode>): Likewise.
7377 (sync_old_<optab><mode>): Likewise.
7378 (sync_new_<optab><mode>): Likewise.
7379 (sync_nand<mode>): Likewise.
7380 (sync_old_nand<mode>): Likewise.
7381 (sync_new_nand<mode>): Likewise.
7382 (sync_lock_test_and_set<mode>): Likewise.
7383 (test_and_set_12): Likewise.
7384 (atomic_compare_and_swap<mode>): Likewise.
7385 (atomic_exchange<mode>_llsc): Likewise.
7386 (atomic_fetch_add<mode>_llsc): Likewise.
7387 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7388 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7389 (umips_save_restore_pattern_p): Likewise.
7390 (umips_load_store_pair_p): Likewise.
7391 (umips_output_load_store_pair): Likewise.
7392 (umips_movep_target_p): Likewise.
7393 (umips_12bit_offset_address_p): Likewise.
7394 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7395 (mips_base_mips16): Rename this...
7396 (mips_base_compression_flags): ...to this. Update all uses.
7397 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7398 (mips_mips16_decl_p): Delete.
7399 (mips_nomips16_decl_p): Delete.
33159866 7400 (mips_get_compress_on_flags): New function.
22c4c869
CM
7401 (mips_get_compress_off_flags): New function.
7402 (mips_get_compress_mode): New function.
7403 (mips_get_compress_on_name): New function.
7404 (mips_get_compress_off_name): New function.
7405 (mips_insert_attributes): Support multiple compression types.
7406 (mips_merge_decl_attributes): Likewise.
7407 (umips_12bit_offset_address_p): New function.
7408 (mips_start_function_definition): Emit .set micromips directive.
7409 (mips_call_may_need_jalx_p): New function.
7410 (mips_function_ok_for_sibcall): Add microMIPS support.
7411 (mips_print_operand_punctuation): Support short delay slots and
7412 compact jumps.
7413 (umips_swm_mask, umips_swm_encoding): New.
7414 (umips_build_save_restore): New function.
7415 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7416 (was_mips16_p): Remove.
7417 (old_compression_mode): New.
7418 (mips_set_compression_mode): New function.
7419 (mips_set_current_function): Add microMIPS support.
7420 (mips_option_override): Likewise.
7421 (umips_save_restore_pattern_p): New function.
7422 (umips_output_save_restore): New function.
7423 (umips_load_store_pair_p_1): New function.
7424 (umips_load_store_pair_p): New function.
7425 (umips_output_load_store_pair_1): New function.
7426 (umips_output_load_store_pair): New function.
7427 (umips_movep_target_p) New function.
7428 (mips_prepare_pch_save): Add microMIPS support.
7429 * config/mips/mips.h (TARGET_COMPRESSION): New.
7430 (TARGET_CPU_CPP_BUILTINS): Update macro
7431 to use new compression flags and to support microMIPS.
7432 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7433 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7434 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7435 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7436 (ASM_SPEC): Support mmicromips and mno-micromips.
7437 (M16STORE_REG_P): New macro.
7438 (MIPS_CALL): Support TARGET_MICROMIPS.
7439 (MICROMIPS_J): New macro.
7440 (mips_base_mips16): Rename this...
7441 (mips_base_compression_flags): ...to this.
7442 (UMIPS_12BIT_OFFSET_P): New macro.
7443 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7444 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
74452013-03-20 Richard Biener <rguenther@suse.de>
7446
7447 PR tree-optimization/56661
7448 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7449 the result does not have to be distinct.
7450
54714c68
RB
74512013-03-20 Richard Biener <rguenther@suse.de>
7452
7453 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7454 remap_gimple_op_r.
7455
cca1130d
BS
74562013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7457 Steven Bosscher <steven@gcc.gnu.org>
7458
7459 PR rtl-optimization/56605
7460 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7461
2a930377
UB
74622013-03-20 Uros Bizjak <ubizjak@gmail.com>
7463
7464 PR bootstrap/56656
7465 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7466 that require movd instead of movq.
7467
d6d305fe
RB
74682013-03-20 Richard Biener <rguenther@suse.de>
7469
7470 * tree-ssa-structalias.c (struct variable_info): Add pointer
7471 to the first field of an aggregate with sub-vars. Make
7472 this and the pointer to the next subfield its ID.
7473 (vi_next): New function.
7474 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7475 storedanything_id, integer_id): Increment by one.
7476 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7477 get_call_clobber_vi): Adjust.
7478 (solution_set_expand): Simplify and speedup.
7479 (solution_set_add): Inline into ...
7480 (set_union_with_increment): ... this. Adjust accordingly.
7481 (do_sd_constraint): Likewise.
7482 (do_ds_constraint): Likewise.
7483 (do_complex_constraint): Simplify.
7484 (build_pred_graph): Adjust.
7485 (solve_graph): Likewise. Simplify and speedup.
7486 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7487 get_constraint_for_component_ref, get_constraint_for_1,
7488 first_vi_for_offset, first_or_preceding_vi_for_offset,
7489 create_function_info_for, create_variable_info_for_1,
7490 create_variable_info_for, intra_create_variable_infos): Adjust.
7491 (init_base_vars): Push NULL for ID zero.
7492 (compute_points_to_sets): Adjust.
7493
a271b42d
RB
74942013-03-20 Richard Biener <rguenther@suse.de>
7495
7496 * cfgloop.c (verify_loop_structure): Streamline and avoid
7497 ICEing on corrupt loop tree.
7498 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7499 loop tree.
7500
ebd65954
RB
75012013-03-20 Richard Biener <rguenther@suse.de>
7502
7503 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7504 check whether an SSA update is needed.
7505
4547b7ee
RS
75062013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7507
7508 * config/mips/constraints.md (T): Rename to...
7509 (Yf): ...this.
7510 (U): Rename to...
7511 (Yd): ...this.
7512 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7513 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7514
0b8cdc58
IB
75152013-03-19 Ian Bolton <ian.bolton@arm.com>
7516
7517 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7518 (*subsi3_carryin_uxtw): Likewise.
7519
5977a10d
IB
75202013-03-19 Ian Bolton <ian.bolton@arm.com>
7521
7522 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7523 (*rorsi3_insn_uxtw): Likewise.
7524
bd83ff2c
IB
75252013-03-19 Ian Bolton <ian.bolton@arm.com>
7526
7527 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7528 (*extrsi5_insn_uxtw): Likewise.
7529
ba65123c
RB
75302013-03-19 Richard Biener <rguenther@suse.de>
7531
7532 PR tree-optimization/56273
7533 * passes.c (init_optimization_passes): Move second VRP after DOM.
7534
2eac0476
UB
75352013-03-19 Uros Bizjak <ubizjak@gmail.com>
7536
7537 * config/i386/i386.md (*movti_internal): Merge from
7538 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7539 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7540 nox64 isa attributes.
7541
6e55eda7
RB
75422013-03-18 Richard Biener <rguenther@suse.de>
7543
7544 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7545 (unite): Likewise.
7546 (merge_node_constraints): Likewise.
7547 (build_succ_graph): Likewise.
7548 (valid_graph_edge): Inline into single caller.
7549 (unify_nodes): Likewise. Use bitmap_set_bit return value
7550 and cache varinfo.
7551 (scc_visit): Fix formatting and variable use.
7552 (do_sd_constraint): Use gcc_checking_assert.
7553 (do_ds_constraint): Likewise.
7554 (do_complex_constraint): Likewise.
7555 (condense_visit): Likewise. Cleanup.
7556 (dump_pred_graph): New function.
7557 (perform_var_substitution): Dump the pred-graph before
7558 variable substitution.
7559 (find_equivalent_node): Use gcc_checking_assert.
7560 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7561
4bdd44c4
RB
75622013-03-18 Richard Biener <rguenther@suse.de>
7563
7564 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7565 Remove cond_expr_stmt_list argument and do not gimplify the
7566 built expression.
7567 (vect_loop_versioning): Adjust.
7568 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7569 Cleanup to use less temporaries.
7570 (vect_create_data_ref_ptr): Cleanup.
7571
38c56a5b
JJ
75722013-03-18 Jakub Jelinek <jakub@redhat.com>
7573
7574 PR tree-optimization/56635
7575 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7576 require types_compatible_p types.
7577
20b2e6a0
NC
75782013-03-18 Nick Clifton <nickc@redhat.com>
7579
a6178a25
NC
7580 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7581 spurious backslash.
7582
20b2e6a0
NC
7583 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7584 Add missing line to comment describing function.
7585
92608d0e
RB
75862013-03-18 Richard Biener <rguenther@suse.de>
7587
7588 PR tree-optimization/56210
7589 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7590 Handle string / character search functions.
7591 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7592
31348d52
RB
75932013-03-18 Richard Biener <rguenther@suse.de>
7594
7595 PR middle-end/56483
7596 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7597 and implement properly.
7598 * gimple.h (gimple_cond_single_var_p): Remove.
7599
fcac74a1
RB
76002013-03-18 Richard Biener <rguenther@suse.de>
7601
7602 * tree-data-ref.h (find_data_references_in_loop): Declare.
7603 * tree-data-ref.c (get_references_in_stmt): Use a stack
7604 vector pre-allocated in the callers.
7605 (find_data_references_in_stmt): Adjust.
7606 (graphite_find_data_references_in_stmt): Likewise.
7607 (create_rdg_vertices): Likewise.
7608 (find_data_references_in_loop): Export.
7609 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7610 Compute dependences here...
7611 (vect_analyze_data_refs): ...not here. When we encounter
7612 a non-vectorizable data reference in basic-block vectorization
7613 truncate the data reference vector. Do not bother to
7614 fixup data-dependence information for gather loads.
7615 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7616 of data references, as reported.
7617
0d5a1b56
RB
76182013-03-18 Richard Biener <rguenther@suse.de>
7619
7620 PR tree-optimization/3713
7621 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7622 has_constants and expr.
7623 (stmt_has_constants): Properly valueize SSA names when deciding
7624 whether the stmt has constants.
7625
789c34e3
RB
76262013-03-18 Richard Biener <rguenther@suse.de>
7627
7628 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7629 whole function when there is nothing to do.
7630 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7631 * tree-vectorizer.c (vectorize_loops): Update virtual and
7632 loop-closed SSA once.
7633 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7634
076b4605
RB
76352013-03-18 Richard Biener <rguenther@suse.de>
7636
7637 PR middle-end/56113
7638 * domwalk.c (bb_postorder): New global static.
7639 (cmp_bb_postorder): New function.
7640 (walk_dominator_tree): Replace scheme imposing an order for
7641 visiting dominator sons by one sorting them at the time they
7642 are pushed on the stack.
7643
bdb01696
RB
76442013-03-18 Richard Biener <rguenther@suse.de>
7645
7646 PR tree-optimization/39326
7647 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7648 (struct mem_ref): Replace mem member with ao_ref typed member.
7649 (MEM_ANALYZABLE): Adjust.
7650 (memref_eq): Likewise.
7651 (mem_ref_alloc): Likewise.
7652 (gather_mem_refs_stmt): Likewise.
7653 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7654 (execute_sm_if_changed_flag_set): Adjust.
7655 (execute_sm): Likewise.
7656 (ref_always_accessed_p): Likewise.
7657 (refs_independent_p): Likewise.
7658 (can_sm_ref_p): Likewise.
7659
12d2dc5e
JJ
76602013-03-18 Jakub Jelinek <jakub@redhat.com>
7661
7662 PR c/56566
7663 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7664 return 1 even for !unsignedp.
7665
286fb677
UB
76662013-03-17 Uros Bizjak <ubizjak@gmail.com>
7667
7668 * config/i386/i386.md (isa): Add x64 and nox64.
7669 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7670 (*pushtf): Enable *roF alternative for x64 isa only.
7671 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7672 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7673 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7674 (*movtf_internal): Merge from *movtf_internal_rex64 and
7675 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7676 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7677 nox64 isa attributes.
7678 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7679 nox64 isa attributes.
7680 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7681
88b97037
UB
76822013-03-17 Uros Bizjak <ubizjak@gmail.com>
7683
7684 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7685
9f4f1735
JJ
76862013-03-17 Jakub Jelinek <jakub@redhat.com>
7687
7688 PR target/56640
7689 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7690 class names. Remove trailing comma after "ALL_REGS".
7691
48f4a6fa
JH
76922013-03-16 Jan Hubicka <jh@suse.cz>
7693
7694 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7695 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7696 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7697 of cgraph_get_create_node.
7698 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7699
98e81123
JM
77002013-03-16 Jason Merrill <jason@redhat.com>
7701
7702 PR debug/49090
7703 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7704 with DW_AT_default_value.
7705
8a298c04
JJ
77062013-03-16 Jakub Jelinek <jakub@redhat.com>
7707
7708 * BASE-VER: Set to 4.9.0.
7709
4323afa0
AK
77102013-03-14 Andi Kleen <ak@linux.intel.com>
7711
7712 PR target/56619
7713 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7714 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7715 Document _x* TSX intrinsics.
7716
b3c0d469
JJ
77172013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7718 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
7719
7720 * configure.ac: Add MicroBlaze TLS support detection.
7721 * configure: Regenerate.
88b97037
UB
7722 * config/microblaze/microblaze-protos.h
7723 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7724 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7725 * config/microblaze/microblaze.c (microblaze_address_type): Add
7726 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
7727 (microblaze_address_info): Add tls_reloc.
7728 (TARGET_HAVE_TLS): Define.
7729 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7730 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
7731 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7732 load_tls_operand, microblaze_call_tls_get_addr,
7733 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7734 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7735 (get_base_reg): Use microblaze_tls_symbol_p.
7736 (microblaze_classify_address): Handle TLS.
88b97037
UB
7737 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7738 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7739 (microblaze_legitimize_address): Handle TLS.
7740 (microblaze_address_insns): Handle ADDRESS_TLS.
7741 (pic_address_needs_scratch): Handle TLS.
7742 (print_operand_address): Handle TLS.
7743 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7744 (microblaze_expand_move): Handle TLS.
88b97037
UB
7745 (microblaze_legitimate_constant_p): Check
7746 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7747 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7748 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7749 (PIC_OFFSET_TABLE_REGNUM): Set.
7750 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7751 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7752 (addsi3, movsi_internal2, movdf_internal): Update constraints
7753 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7754 (move_operand): Redefine as move_src_operand,
7755 check microblaze_tls_referenced_p.
8cc9a5a5 7756
d803a491
IB
77572013-03-14 Ian Bolton <ian.bolton@arm.com>
7758
7759 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7760 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7761
a8504f22
IB
77622013-03-14 Ian Bolton <ian.bolton@arm.com>
7763
7764 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7765 CC mode for AND.
7766
df2dfaea
JJ
77672013-03-14 Jakub Jelinek <jakub@redhat.com>
7768
fbd28bc3
JJ
7769 PR tree-optimization/53265
7770 * common.opt (Waggressive-loop-optimizations): New option.
7771 * tree-ssa-loop-niter.c: Include tree-pass.h.
7772 (do_warn_aggressive_loop_optimizations): New function.
7773 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7774 if number_of_latch_executions returned constant.
7775 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7776 early. If number_of_latch_executions returned constant, set
7777 nb_iterations_upper_bound back to it.
7778 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7779 field.
7780 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7781 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7782
df2dfaea
JJ
7783 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7784 (MULTILIB_OSDIRNAMES): Set.
7785 * genmultilib: If defaultosdirname doesn't start with :: , set
7786 defaultosdirname2 instead, clear it and emit two . multilib_raw
7787 entries instead of just one.
7788
ee0d2b68
KK
77892013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7790
7791 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7792 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7793 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7794 (SUBTARGET_OVERRIDE_OPTIONS): New.
7795
decc676e
OE
77962013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7797
7798 PR target/49880
7799 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7800 (musermode): Convert to Var(TARGET_USERMODE).
7801 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7802 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7803 * config/sh/sh.c (sh_option_override): Use
7804 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7805 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7806 condition.
7807 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7808 TARGET_SH4.
7809 (udivsi3_i4_single, divsi3_i4_single): Use
7810 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7811
f4b719c7
DK
78122013-03-13 Dave Korn <dave.korn.cygwin@....>
7813
7814 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7815 default setting.
7816
c40eced0
RB
78172013-03-13 Richard Biener <rguenther@suse.de>
7818
7819 PR tree-optimization/56608
7820 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7821 calls when vectorizing basic-blocks.
7822
1bfa5973
JJ
78232013-03-13 Jakub Jelinek <jakub@redhat.com>
7824
7825 PR plugins/45078
7826 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7827 tm_file.
7828
6fcf5434
JJ
78292013-03-12 Jakub Jelinek <jakub@redhat.com>
7830
7831 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7832
4f38fa8c
JH
78332013-03-11 Jan Hubicka <jh@suse.cz>
7834
7835 PR lto/56557
7836 * lto-streamer-out.c (output_symbol_p): Skip references from
7837 constructors of external variables.
7838
c5c5ba89
JH
78392013-03-11 Jan Hubicka <jh@suse.cz>
7840
7841 PR middle-end/56571
7842 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7843 from pseudos.
7844 * emit-rtl.c (verify_rtx_sharing): Likewise.
7845 (copy_insn_1): Likewise.
7846 * rtl.c (copy_rtx): Likewise.
7847
c2a939b1
GJL
78482013-03-11 Georg-Johann Lay <avr@gjlay.de>
7849
7850 PR target/56591
7851 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7852 output_operand_lossage message.
88b97037 7853
3c3279fb
RE
78542013-03-11 Richard Earnshaw <rearnsha@arm.com>
7855
7856 PR target/56470
7857 * arm.c (shift_op): Validate RTL pattern on the fly.
7858 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7859 the RTL.
7860
aef5ef9d
JDA
78612013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7862
7863 PR target/56347
7864 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7865 new call patterns that clobber %fr12.
7866 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7867 split and postreload patterns.
7868 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7869 registers %fr12 and %fr12R as call used.
7870
456610d3
SB
78712013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7872
7873 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7874 (canon_address, record_store, replace_read, check_mem_read_rtx,
7875 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7876 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7877 rest_of_handle_dse): Likewise.
7878
4b1baac8
RS
78792013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7880
7881 PR middle-end/56524
7882 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7883 Add base_optabs.
7884 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7885 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7886 (save_optabs_if_changed): Replace with...
7887 (init_tree_optimization_optabs): ...this.
7888 * optabs.c (save_optabs_if_changed): Rename to...
7889 (init_tree_optimization_optabs): ...this. Take the optimization node
7890 as argument. Do nothing if the base optabs are already correct.
7891 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7892 to recompute optabs.
7893 * function.h (function): Remove optabs field.
7894 * function.c (invoke_set_current_function_hook): Call
7895 init_tree_optimization_optabs. Use the result to initialize
7896 this_fn_optabs.
7897
b7a78683
AH
78982013-02-27 Aldy Hernandez <aldyh@redhat.com>
7899
7900 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7901 if GTMA_HAS_NO_INSTRUMENTATION.
7902 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7903 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7904 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7905 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7906 GTMA_HAS_NO_INSTRUMENTATION.
7907
6384c29b
JJ
79082013-03-08 Jakub Jelinek <jakub@redhat.com>
7909
7910 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7911 libasan_preinit.o.
7912
ecd4f20a
MP
79132013-03-08 Marek Polacek <polacek@redhat.com>
7914 Jakub Jelinek <jakub@redhat.com>
7915
7916 PR tree-optimization/56478
7917 * predict.c (is_comparison_with_loop_invariant_p): Change the
7918 type of loop_step to tree.
7919 (predict_loops): Adjust.
7920 (predict_iv_comparison): Perform the computations on double_ints.
7921
64366d35
RB
79222013-03-08 Richard Biener <rguenther@suse.de>
7923
7924 PR tree-optimization/56570
7925 * tree-cfg.c (verify_expr_location_1): Verify locations for
7926 DECL_DEBUG_EXPR.
7927 * tree-sra.c (create_access_replacement): Strip locations
7928 from DECL_DEBUG_EXPRs.
7929
a9d5a059
RB
79302013-03-08 Richard Biener <rguenther@suse.de>
7931
7932 * tree-inline.c (expand_call_inline): Do not associate
7933 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7934 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7935
b7aa4e9a
RB
79362013-03-08 Richard Biener <rguenther@suse.de>
7937
7938 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7939 or block changes with -Og. Fix for location / block encoding
7940 changes and PHI arguments with locations.
7941
c4c2f9fa
SB
79422013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7943
7944 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7945 for all counters.
7946 (struct output_info): Likewise.
7947 (register_overhead): Remove bad gcc_assert.
7948 (bitmap_find_bit): If there is only a single bitmap element, do not
7949 count a miss as a search.
7950 (print_statistics): Update for counter type changes.
7951 (dump_bitmap_statistics): Likewise. Print headers such that they
7952 are properly lined up with the printed counters.
7953
5bf6606a
JJ
79542013-03-07 Jakub Jelinek <jakub@redhat.com>
7955
7956 PR tree-optimization/56559
7957 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7958 check that it has only a single use.
7959
2c653d46
RB
79602013-03-07 Richard Biener <rguenther@suse.de>
7961
7962 * doc/invoke.texi (fwhole-program): Discourage use in combination
7963 with -flto.
7964
a72d8780
JJ
79652013-03-06 Jakub Jelinek <jakub@redhat.com>
7966
01a454df
JJ
7967 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7968
c1781047
JJ
7969 PR tree-optimization/56539
7970 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7971 instead of GSI_CONTINUE_LINKING as last argument to
7972 force_gimple_operand_gsi. Adjust function comment.
7973
9772c47a
JJ
7974 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7975 aarch64-cores.def.
7976
a72d8780
JJ
7977 PR middle-end/56548
7978 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7979 promoted mode, convert the result back to the original mode.
7980
fa5556de
RB
79812013-03-06 Richard Biener <rguenther@suse.de>
7982
7983 PR middle-end/56294
7984 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7985 (insert_updated_phi_nodes_compare_uids): New function.
7986 (update_ssa): Sort symbols_to_rename after UID before
7987 traversing it to insert PHI nodes.
7988
010403d1
RB
79892013-03-06 Richard Biener <rguenther@suse.de>
7990
7991 PR middle-end/50494
7992 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7993 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7994
7995 Revert
7996 2013-02-13 Richard Biener <rguenther@suse.de>
7997
7998 PR lto/50494
7999 * varasm.c (output_constant_def_1): Get the decl representing
8000 the constant as argument.
8001 (output_constant_def): Wrap output_constant_def_1.
8002 (make_decl_rtl): Use output_constant_def_1 with the decl
8003 representing the constant.
8004 (build_constant_desc): Optionally re-use a decl already
8005 representing the constant.
8006 (tree_output_constant_def): Adjust.
8007
3c27ce4c
JY
80082013-03-06 Joey Ye <joey.ye@arm.com>
8009
8010 PR lto/50293
8011 * gcc.c (convert_white_space): New function.
8012 (main): Handles white space in function name.
8013
8f6d1c86
OE
80142013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8015
8016 PR target/56529
8017 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8018 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8019 to SH_DIV_CALL_TABLE for TARGET_SH2.
8020 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8021 list.
8022 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8023 call-table options.
8024
798a209f
SA
80252013-03-05 Sterling Augustine <saugustine@google.com>
8026 Cary Coutant <ccoutant@google.com>
8027
8028 PR debug/55364
8029 * dwarf2out.c (resolve_addr): Don't call
8030 remove_loc_list_addr_table_entries a second time for the same
8031 expression.
8032
6cfa417f 80332013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 8034
6cfa417f
JJ
8035 PR debug/56510
8036 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8037 (avoid_complex_debug_insns): New function.
8038 (expand_debug_locations): Call it.
8039
8040 PR rtl-optimization/56484
8041 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8042 lifetimes of hard registers on small register class machines.
8043
80442013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8045
8046 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 8047 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 8048 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
8049 fast_interrupt.
8050 (microblaze_fast_interrupt_function_p): New function.
8051 (microblaze_is_interrupt_handler): Rename to
8052 microblaze_is_interrupt_variant and add fast_interrupt check.
8053 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8054 (save_restore_insns): Likewise.
8055 (compute_frame_size): Likewise.
8056 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8057 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
8058 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8059 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
8060 microblaze_is_interrupt_variant.
8061
731aefac
KT
80622013-03-05 Kai Tietz <ktietz@redhat.com>
8063
8064 * sdbout.c (sdbout_one_type): Switch to current function's section
8065 supporting cold/hot.
8066
a72d8780 80672013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
8068
8069 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8070 -mxl-reorder.
8071
334e71e8
JJ
80722013-03-05 Jakub Jelinek <jakub@redhat.com>
8073
0b50e654
JJ
8074 PR middle-end/56461
8075 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8076 if VALGRIND_GET_VBITS is defined, temporarily make object
8077 memory all defined, and restore previous valgrind addressability
8078 and definability afterwards. Free this_object at the end.
8079
4ccf8f43
JJ
8080 PR middle-end/56461
8081 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8082 right before calling lra_create_live_ranges, also call it
8083 when clearing live_p. Only call lra_clear_live_ranges
8084 at the end if live_p.
8085
334e71e8
JJ
8086 PR middle-end/56461
8087 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8088
9ca966ca
RB
80892013-03-05 Richard Biener <rguenther@suse.de>
8090
8091 PR tree-optimization/56521
8092 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8093 value-id.
8094
d273b176
SB
80952013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8096
8097 PR c++/55135
8098 * except.h (remove_unreachable_eh_regions): New prototype.
8099 * except.c (remove_eh_handler_splicer): New function, split out
8100 of remove_eh_handler.
8101 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8102 warning about running it on many EH regions one at a time.
8103 (remove_unreachable_eh_regions_worker): New function, walk the
8104 EH tree in depth-first order and remove non-marked regions.
8105 (remove_unreachable_eh_regions): New function.
8106 * tree-eh.c (mark_reachable_handlers): New function, split out
8107 from remove_unreachable_handlers.
8108 (remove_unreachable_handlers): Use mark_reachable_handlers and
8109 remove_unreachable_eh_regions.
8110 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8111 and remove_unreachable_eh_regions.
8112
5e7f1aef
RB
81132013-03-05 Richard Biener <rguenther@suse.de>
8114
8115 PR middle-end/56525
8116 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8117 not freeing them until the end.
8118
f276b762
AK
81192013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8120
8121 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8122
12a43ab8
RB
81232013-03-05 Richard Biener <rguenther@suse.de>
8124
8125 PR tree-optimization/56270
8126 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8127 of loads after scheduling an SLP instance.
8128
93675444
JJ
81292013-03-05 Jakub Jelinek <jakub@redhat.com>
8130
db4138e3
JJ
8131 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8132 tic6x.exp.
8133 (check_gcc_parallelize): Run guality.exp as a separate job from
8134 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8135 struct-layout-1.exp with stackalign.exp.
8136
dd3d1ec0
JJ
8137 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8138
b8d381a3
JJ
8139 PR middle-end/56461
8140 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8141 load_index sbitmap even if some bit in it isn't set.
8142
b4f9786b
JJ
8143 PR middle-end/56461
8144 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8145 (discover_iteration_bound_by_body_walk): Change queues to
8146 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8147 spelling in comment. Call safe_push on queues[bound_index] directly.
8148 Release queues[queue_index] in every iteration unconditionally.
8149 Release bounds vector.
8150
93675444
JJ
8151 PR middle-end/56461
8152 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8153 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8154 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8155 inner_phis vector.
8156
3e492e9c
RB
81572013-03-05 Richard Biener <rguenther@suse.de>
8158
8159 PR lto/56515
8160 * tree-inline.c (remap_blocks_to_null): New function.
8161 (expand_call_inline): When expanding a call stmt without
8162 an associated block inline remap all callee blocks to NULL.
8163
a5d1569a
JJ
81642013-03-05 Jakub Jelinek <jakub@redhat.com>
8165
86efb5cd
JJ
8166 PR rtl-optimization/56494
8167 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8168 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8169 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8170
85f5dbea
JJ
8171 PR middle-end/56461
8172 * sel-sched-ir.c (free_sched_pools): Release
8173 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8174 if succs_info_pool.max_top isn't -1.
8175
a5d1569a
JJ
8176 PR bootstrap/56509
8177 * opts.c (opts_obstack, opts_concat): Moved to...
8178 * opts-common.c (opts_obstack, opts_concat): ... here.
8179
4432aa6c
JJ
81802013-03-04 Jakub Jelinek <jakub@redhat.com>
8181
8182 PR middle-end/56461
8183 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8184
f3a1fb91
MJ
81852013-03-04 Martin Jambor <mjambor@suse.cz>
8186
8187 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8188 all appropriate places.
8189
22110e6c
EB
81902013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8191
8192 PR tree-optimization/56424
8193 * ipa-split.c (split_function): Do not set the RSO flag if result is
8194 not by reference and its type is a register type.
8195
a72d8780 81962013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 8197
88b97037 8198 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 8199 (microblaze_legitimate_pic_operand): Likewise
88b97037 8200 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
8201 new function microblaze_legitimate_pic_operand
8202 * config/microblaze/microblaze-protos.h
8203 (microblaze_legitimate_pic_operand): Declare.
8204
a72d8780 82052013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 8206
a72d8780 8207 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 8208 New predicate for supported rtx code types.
a72d8780 8209 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
8210 call_insn_simple_operand predicate.
8211
541d9ac8
JJ
82122013-03-04 Jakub Jelinek <jakub@redhat.com>
8213
5eb010bc
JJ
8214 PR middle-end/56461
8215 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8216 partitions.ordered_remove.
8217
30862efc
JJ
8218 PR middle-end/56461
8219 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8220 vec_oprnds0.create (1) for modifier == NONE.
8221
8930f723
JJ
8222 PR middle-end/56461
8223 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8224 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8225 vec_oprnds1 right before pushing anything to it for
8226 scalar_shift_arg.
8227
541d9ac8
JJ
8228 PR middle-end/56461
8229 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8230 set nbbs to 0 instead of having separate code path.
8231 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8232 instead of false as last argument if returning NULL.
8233
7aa7f2e3
SL
82342013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8235
8236 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8237 the attribute is now called "target" instead of "option".
8238 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8239 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8240 attribute/pragma name for TARGET_OPTION_VALID_P and
8241 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8242 * doc/tm.texi: Regenerated.
8243
8930f723 82442013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 8245
8930f723 8246 * config/microblaze/microblaze.c:
cb8a1637 8247 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
8248 * config/microblaze/microblaze.h: Add -mxl-reorder to
8249 DRIVER_SELF_SPECS.
8250 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8251 instructions emitted if TARGET_REORDER.
88b97037
UB
8252 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8253 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 8254 separately.
cb8a1637 8255
4dc1d68c
XDL
82562013-03-01 Xinliang David Li <davidxl@google.com>
8257
8258 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8259 walk length.
8260
689eaba3
JJ
82612013-03-01 Jakub Jelinek <jakub@redhat.com>
8262
9d676bf6
JJ
8263 PR middle-end/56461
8264 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8265 vector even when returning true. Fix up function comment formatting.
8266
caff7edf
JJ
8267 PR middle-end/56461
8268 * ira-build.c (ira_loop_nodes_count): New variable.
8269 (create_loop_tree_nodes): Initialize it.
8270 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8271
b6b9227d
JJ
8272 PR middle-end/56461
8273 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8274 method on dr_chain and result_chain.
8275 * tree-vect-stmts.c (vectorizable_store): Only call
8276 result_chain.create if j == 0.
8277
689eaba3
JJ
8278 PR middle-end/56461
8279 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8280 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8281 before overwriting it.
8282
40bf31ed
TB
82832013-03-01 Tobias Burnus <burnus@net-b.de>
8284
8285 * doc/extended.texi (C Extensions): Change order in @menu
8286 to match @node.
8287 (Other MIPS Built-in Functions): Move last MIPS entry before
8288 "picoChip Built-in Functions".
8289 (SH Built-in Functions): Move after RX Built-in Functions.
8290 * doc/gcc.texi (Introduction): Change order in @menu
8291 to match @node.
8292 * doc/md.texi (Constraints): Ditto.
8293 * gty.texi (Type Information): Ditto.
8294 (User-provided marking routines for template types): Make
8295 subsection.
8296 * doc/invoke.texi (AArch64 Options): Move before
8297 "Adapteva Epiphany Options".
8298
e664c61c
KS
82992013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8300 Jakub Jelinek <jakub@redhat.com>
8301
8302 PR sanitizer/56454
8303 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8304 no_address_safety_analysis attribute.
8305 * doc/extend.texi (no_address_safety_attribute): Rename to
8306 no_sanitize_address attribute, mention no_address_safety_analysis
8307 attribute as deprecated alias.
8308
37b5ec8f
JJ
83092013-02-28 Jakub Jelinek <jakub@redhat.com>
8310
8311 PR middle-end/56461
8312 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8313 type to vec<vec<tree> > *.
8314 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8315 to be vec<tree> instead of vec<tree> *, set vec_defs
8316 to vNULL and call vec_defs.create (number_of_vects), adjust other
8317 uses of vec_defs.
8318 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8319 vectorizable_condition): Adjust vect_get_slp_defs callers.
8320
ba96cdfb
JG
83212013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8322
8323 * config/aarch64/aarch64.c
8324 (aarch64_float_const_representable): Remove unused variable.
8325
6f549691
JG
83262013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8327
8328 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8329
af55e82d
JG
83302013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8331
8332 * config/aarch64/aarch64-builtins.c
8333 (aarch64_init_simd_builtins): Make static.
8334
1df3f464
JG
83352013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8336
8337 * config/aarch64/aarch64.c
8338 (aarch64_simd_make_constant): Make static.
8339
f8f42513
MJ
83402013-02-28 Martin Jambor <mjambor@suse.cz>
8341
8342 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8343 with no initialization to the RHS of debug statements.
8344
b48b3fc4
MJ
83452013-02-28 Martin Jambor <mjambor@suse.cz>
8346
8347 PR tree-optimization/56294
8348 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8349 Adjust dumping.
8350 (get_access_replacement): Do not call create_access_replacement.
8351 Assert a replacement exists.
8352 (get_repl_default_def_ssa_name): Create the replacement declaration
8353 itself.
8354
c3ae224c
RR
83552013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8356
8357 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8358 final_end_function.
8359
45fa0eef
MP
83602013-02-28 Marek Polacek <polacek@redhat.com>
8361
8362 PR rtl-optimization/56466
8363 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8364 if we're changing a loop.
8365 (peel_loops_completely): Likewise.
8366
502c067d
PC
83672013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8368
8369 PR c++/55813
8370 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8371
ff24afc8
GJL
83722013-02-28 Georg-Johann Lay <avr@gjlay.de>
8373
8374 PR target/56445
8375 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8376 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8377 INTX_FTYPE_FX, FX_FTYPE_INTX.
8378 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8379
c7b1fc1b
GJL
83802013-02-28 Georg-Johann Lay <avr@gjlay.de>
8381
8382 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8383 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8384 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8385 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8386 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8387 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8388 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8389 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8390 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8391 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8392 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8393 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8394 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8395 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8396 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8397 (avrxmega6): Increase max flash segments from 5 to 6.
8398 * config/avr/t-multilib: Regenerate.
8399 * config/avr/avr-tables.opt: Regenerate.
8400 * doc/avr-mmcu.texi: Regenerate.
8401
4a0e3cfe
GJL
84022013-02-28 Georg-Johann Lay <avr@gjlay.de>
8403
8404 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8405 (avr_device_to_arch): Rename to avr_device_to_ld.
8406 (avr_device_to_as): New prototype.
8407 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8408 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8409 * config/avr/driver-avr.c (avr_device_to_as): New.
8410 (avr_device_to_arch): Rename to avr_device_to_ld.
8411
97785e52
JJ
84122013-02-27 Jakub Jelinek <jakub@redhat.com>
8413
3f292312
JJ
8414 PR middle-end/56461
8415 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8416 method on dr_chain and result_chain.
8417
a344216b
JJ
8418 PR middle-end/56461
8419 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8420 pointer_set_destroy on not_executed_last_iteration.
8421
f121ad02 8422 PR middle-end/56461
88b97037 8423 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 8424
307f83a3
JJ
8425 PR middle-end/56461
8426 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8427 FOR_EACH_DEFINED_FUNCTION when freeing state.
8428
e19624ee
JJ
8429 PR middle-end/56461
8430 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8431 pool_free.
8432 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8433 overwriting it.
8434
90e709fd
JJ
8435 PR middle-end/56461
8436 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8437 known_aggs[i].items and release known_aggs vector.
8438
97785e52
JJ
8439 PR middle-end/56461
8440 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8441
84422013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 8443
97785e52
JJ
8444 * config/microblaze/microblaze.c (microblaze_emit_compare):
8445 Use xor for EQ/NE comparisions.
8446 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8447 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 8448
6fa5e0ed
JJ
84492013-02-27 Jakub Jelinek <jakub@redhat.com>
8450
8451 PR middle-end/56461
8452 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8453 vector.
8454 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8455 vec_safe_push, always update *slot.
8456 (redirect_edge_var_map_clear): Use vec_free.
8457 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8458 (free_var_map_entry): Use vec_free.
8459 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8460 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8461
436a956a
AB
84622013-02-27 Andrey Belevantsev <abel@ispras.ru>
8463
8464 PR middle-end/45472
436a956a
AB
8465 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8466 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
8467 Reorder tests for speculativeness in the logical and operator.
8468
f5c2caca
JJ
84692013-02-27 Jakub Jelinek <jakub@redhat.com>
8470
0fcb564b
JJ
8471 * incpath.c (add_standard_paths): Use reconcat instead of concat
8472 where appropriate and avoid leaking memory.
8473
dc357798
JJ
8474 * opts.h: Include obstack.h.
8475 (opts_concat): New prototype.
8476 (opts_obstack): New declaration.
8477 * opts.c (opts_concat): New function.
8478 (opts_obstack): New variable.
8479 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8480 (finish_options): Use opts_concat instead of concat
8481 and XOBNEWVEC instead of XNEWVEC.
8482 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8483 generate_option): Likewise.
8484 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8485 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8486
f5c2caca
JJ
8487 PR target/56455
8488 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8489 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8490
d0163673
JJ
84912013-02-26 Jakub Jelinek <jakub@redhat.com>
8492
8493 PR middle-end/56461
8494 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8495
b5ad2b8e
JR
84962013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8497
8498 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8499 (arm_block_move_unaligned_straight): Likewise.
8500 (arm_adjust_block_mem): Likewise.
8501
9b639e2c
JR
85022013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8503
8504 PR target/48901
8505 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8506 temp, cond and label.
8507 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8508
e13a0ccb
JR
8509 PR target/52500
8510 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8511 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8512
fbe4f171
JR
8513 PR target/52501
8514 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8515 of prologue/epilogue functions.
8516
ae006543
JR
8517 PR target/52550
8518 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8519 Remove unused variable cfa_offset.
8520 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8521
c81369fa
JR
8522 PR target/54639
8523 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8524 type promotion to unsigned.
8525
f8a8fea7
JR
8526 PR target/54640
8527 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8528 for HOST_WIDE_INT of 32 bit / same size as int.
8529 (arm_block_move_unaligned_straight): Likewise.
8530 (arm_adjust_block_mem): Likewise.
8531
f8be5169
JR
8532 PR target/54662
8533 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8534 ALL_CFLAGS.
8535
f1ad3354
MP
85362013-02-26 Marek Polacek <polacek@redhat.com>
8537
8538 PR tree-optimization/56426
88b97037 8539 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 8540
a6af0f42
RB
85412013-02-26 Richard Biener <rguenther@suse.de>
8542
8543 PR target/56444
8544 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8545 unused variable loops.
8546
aca43c6c
JJ
85472013-02-26 Jakub Jelinek <jakub@redhat.com>
8548
cecbe5d9
JJ
8549 PR tree-optimization/56448
8550 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8551 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8552 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8553 later operands of the references, or even first operand for
8554 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8555
aca43c6c
JJ
8556 PR tree-optimization/56443
8557 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8558 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8559 to type_for_mode langhook.
8560
53e2e141
MT
85612013-02-25 Matt Turner <mattst88@gmail.com>
8562
8563 * doc/invoke.texi: Document r4700.
8564
259ee451
RB
85652013-02-25 Richard Biener <rguenther@suse.de>
8566
8567 PR tree-optimization/56175
8568 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8569 split out from ...
8570 (simplify_bitwise_binary): ... here. Also guard the conversion
8571 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8572
6d65e8f1
CM
85732013-02-25 Catherine Moore <clm@codesourcery.com>
8574
8575 Revert:
8576 2013-02-24 Catherine Moore <clm@codesourcery.com>
8577 Maciej W. Rozycki <macro@codesourcery.com>
8578 Tom de Vries <tom@codesourcery.com>
a72d8780 8579 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
8580 Iain Sandoe <iain@codesourcery.com>
8581 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8582 Chao-ying Fu <fu@mips.com>
88b97037 8583
6d65e8f1 8584 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8585 Document new function attributes.
6d65e8f1
CM
8586 * doc/invoke.texi (minterlink-compressed, mmicromips,
8587 m14k, m14ke, m14kec): Document new options.
8588 (minterlink-mips16): Update documentation.
8589 * doc/md.texi (ZC, ZD): Document new constraints.
8590 * configure.ac (gcc_cv_as_micromips): Check if linker
8591 supports the .set micromips directive.
8592 * configure: Regenerate.
8593 * config.in: Regenerate.
8594 * config/mips/mips-tables.opt: Regenerate.
8595 * config/mips/micromips.md: New file.
8596 * constraints.md (ZC, AD): New constraints.
8597 * config/mips/predicates.md (movep_src_register): New predicate.
8598 (movep_src_operand): New predicate.
8599 (non_volatile_mem_operand): New predicate.
8600 * config/mips/mips.md (multimem): New type.
8601 (length): Differentiate between 17-bit and 18-bit branch offsets.
8602 (MOVEP1, MOVEP2): New mode iterator.
8603 (mov_<load>l): Use ZC constraint.
8604 (mov_<load>r): Likewise.
8605 (mov_<store>l): Likewise.
8606 (mov_<store>r): Likewise.
8607 (*branch_equality<mode>_inverted): Add microMIPS support.
8608 (*branch_equality<mode>): Likewise.
8609 (*jump_absolute): Likewise.
8610 (indirect_jump_<mode>): Likewise.
8611 (tablejump_<mode>): Likewise.
8612 (<optab>_internal): Likewise.
8613 (sibcall_internal): Likewise.
8614 (sibcall_value_internal): Likewise.
8615 (prefetch): Use constraint ZD.
8616 * config/mips/mips.opt (minterlink-compressed): New option.
8617 (minterlink-mips16): Now an alias for minterlink-compressed.
8618 (mmicromips): New option.
8619 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8620 (compare_and_swap_12): Likewise.
8621 (sync_add<mode>): Likewise.
8622 (sync_<optab>_12): Likewise.
8623 (sync_old_<optab>_12): Likewise.
8624 (sync_new_<optab>_12): Likewise.
8625 (sync_nand_12): Likewise.
8626 (sync_old_nand_12): Likewise.
8627 (sync_new_nand_12): Likewise.
8628 (sync_sub<mode>): Likewise.
8629 (sync_old_add<mode>): Likewise.
8630 (sync_old_sub<mode>): Likewise.
8631 (sync_new_add<mode>): Likewise.
8632 (sync_new_sub<mode>): Likewise.
8633 (sync_<optab><mode>): Likewise.
8634 (sync_old_<optab><mode>): Likewise.
8635 (sync_new_<optab><mode>): Likewise.
8636 (sync_nand<mode>): Likewise.
8637 (sync_old_nand<mode>): Likewise.
8638 (sync_new_nand<mode>): Likewise.
8639 (sync_lock_test_and_set<mode>): Likewise.
8640 (test_and_set_12): Likewise.
8641 (atomic_compare_and_swap<mode>): Likewise.
8642 (atomic_exchange<mode>_llsc): Likewise.
8643 (atomic_fetch_add<mode>_llsc): Likewise.
8644 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8645 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8646 (umips_save_restore_pattern_p): Likewise.
8647 (umips_load_store_pair_p): Likewise.
8648 (umips_output_load_store_pair): Likewise.
8649 (umips_movep_target_p): Likewise.
8650 (umips_12bit_offset_address_p): Likewise.
8651 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8652 (mips_base_mips16): Rename this...
8653 (mips_base_compression_flags): ...to this. Update all uses.
8654 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8655 (mips_mips16_decl_p): Delete.
8656 (mips_nomips16_decl_p): Delete.
8657 (mips_get_compress_on_flags): New function.
8658 (mips_get_compress_off_flags): New function.
8659 (mips_get_compress_mode): New function.
8660 (mips_get_compress_on_name): New function.
8661 (mips_get_compress_off_name): New function.
8662 (mips_insert_attributes): Support multiple compression types.
8663 (mips_merge_decl_attributes): Likewise.
8664 (umips_12bit_offset_address_p): New function.
8665 (mips_start_function_definition): Emit .set micromips directive.
8666 (mips_call_may_need_jalx_p): New function.
8667 (mips_function_ok_for_sibcall): Add microMIPS support.
8668 (mips_print_operand_punctuation): Support short delay slots and
8669 compact jumps.
8670 (umips_swm_mask, umips_swm_encoding): New.
8671 (umips_build_save_restore): New function.
8672 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8673 (was_mips16_p): Remove.
8674 (old_compression_mode): New.
8675 (mips_set_compression_mode): New function.
8676 (mips_set_current_function): Add microMIPS support.
8677 (mips_option_override): Likewise.
8678 (umips_save_restore_pattern_p): New function.
8679 (umips_output_save_restore): New function.
8680 (umips_load_store_pair_p_1): New function.
8681 (umips_load_store_pair_p): New function.
8682 (umips_output_load_store_pair_1): New function.
8683 (umips_output_load_store_pair): New function.
8684 (umips_movep_target_p) New function.
8685 (mips_prepare_pch_save): Add microMIPS support.
8686 * config/mips/mips.h (TARGET_COMPRESSION): New.
8687 (TARGET_CPU_CPP_BUILTINS): Update macro
8688 to use new compression flags and to support microMIPS.
8689 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8690 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8691 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8692 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8693 (ASM_SPEC): Support mmicromips and mno-micromips.
8694 (M16STORE_REG_P): New macro.
8695 (MIPS_CALL): Support TARGET_MICROMIPS.
8696 (MICROMIPS_J): New macro.
8697 (mips_base_mips16): Rename this...
8698 (mips_base_compression_flags): ...to this.
8699 (UMIPS_12BIT_OFFSET_P): New macro.
8700 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8701 (MULTILIB_DIRNAMES): Likewise.
8702
5e5df392
TV
87032013-02-25 Tom de Vries <tom@codesourcery.com>
8704
8705 PR rtl-optimization/56131
8706 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8707 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8708 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8709
3fdb53c1
TB
87102013-02-25 Tobias Burnus <burnus@net-b.de>
8711
8712 * doc/invoke.texi (-fsanitize=): Move from optimization
8713 to debugging options.
8714
ed358aea
AB
87152013-02-25 Andrey Belevantsev <abel@ispras.ru>
8716
8717 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8718
f45e9053
AB
87192013-02-25 Andrey Belevantsev <abel@ispras.ru>
8720 Alexander Monakov <amonakov@ispras.ru>
8721
8722 PR middle-end/56077
8723 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8724 flush pending lists also on non-jumps. Adjust comment.
8725
6941b508
CM
87262013-02-24 Catherine Moore <clm@codesourcery.com>
8727 Maciej W. Rozycki <macro@codesourcery.com>
8728 Tom de Vries <tom@codesourcery.com>
a72d8780 8729 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
8730 Iain Sandoe <iain@codesourcery.com>
8731 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8732 Chao-ying Fu <fu@mips.com>
6941b508
CM
8733
8734 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8735 Document new function attributes.
6941b508
CM
8736 * doc/invoke.texi (minterlink-compressed, mmicromips,
8737 m14k, m14ke, m14kec): Document new options.
8738 (minterlink-mips16): Update documentation.
8739 * doc/md.texi (ZC, ZD): Document new constraints.
8740 * configure.ac (gcc_cv_as_micromips): Check if linker
8741 supports the .set micromips directive.
8742 * configure: Regenerate.
8743 * config.in: Regenerate.
8744 * config/mips/mips-tables.opt: Regenerate.
8745 * config/mips/micromips.md: New file.
8746 * constraints.md (ZC, AD): New constraints.
8747 * config/mips/predicates.md (movep_src_register): New predicate.
8748 (movep_src_operand): New predicate.
8749 (non_volatile_mem_operand): New predicate.
8750 * config/mips/mips.md (multimem): New type.
8751 (length): Differentiate between 17-bit and 18-bit branch offsets.
8752 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8753 (mov_<load>l): Use ZC constraint.
6941b508
CM
8754 (mov_<load>r): Likewise.
8755 (mov_<store>l): Likewise.
8756 (mov_<store>r): Likewise.
8757 (*branch_equality<mode>_inverted): Add microMIPS support.
8758 (*branch_equality<mode>): Likewise.
8759 (*jump_absolute): Likewise.
8760 (indirect_jump_<mode>): Likewise.
8761 (tablejump_<mode>): Likewise.
8762 (<optab>_internal): Likewise.
8763 (sibcall_internal): Likewise.
8764 (sibcall_value_internal): Likewise.
8765 (prefetch): Use constraint ZD.
8766 * config/mips/mips.opt (minterlink-compressed): New option.
8767 (minterlink-mips16): Now an alias for minterlink-compressed.
8768 (mmicromips): New option.
8769 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8770 (compare_and_swap_12): Likewise.
8771 (sync_add<mode>): Likewise.
8772 (sync_<optab>_12): Likewise.
8773 (sync_old_<optab>_12): Likewise.
8774 (sync_new_<optab>_12): Likewise.
8775 (sync_nand_12): Likewise.
8776 (sync_old_nand_12): Likewise.
8777 (sync_new_nand_12): Likewise.
8778 (sync_sub<mode>): Likewise.
8779 (sync_old_add<mode>): Likewise.
8780 (sync_old_sub<mode>): Likewise.
8781 (sync_new_add<mode>): Likewise.
8782 (sync_new_sub<mode>): Likewise.
8783 (sync_<optab><mode>): Likewise.
8784 (sync_old_<optab><mode>): Likewise.
8785 (sync_new_<optab><mode>): Likewise.
8786 (sync_nand<mode>): Likewise.
8787 (sync_old_nand<mode>): Likewise.
8788 (sync_new_nand<mode>): Likewise.
8789 (sync_lock_test_and_set<mode>): Likewise.
8790 (test_and_set_12): Likewise.
8791 (atomic_compare_and_swap<mode>): Likewise.
8792 (atomic_exchange<mode>_llsc): Likewise.
8793 (atomic_fetch_add<mode>_llsc): Likewise.
8794 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8795 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8796 (umips_save_restore_pattern_p): Likewise.
8797 (umips_load_store_pair_p): Likewise.
8798 (umips_output_load_store_pair): Likewise.
8799 (umips_movep_target_p): Likewise.
8800 (umips_12bit_offset_address_p): Likewise.
8801 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8802 (mips_base_mips16): Rename this...
8803 (mips_base_compression_flags): ...to this. Update all uses.
8804 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8805 (mips_mips16_decl_p): Delete.
8806 (mips_nomips16_decl_p): Delete.
3fdb53c1 8807 (mips_get_compress_on_flags): New function.
6941b508
CM
8808 (mips_get_compress_off_flags): New function.
8809 (mips_get_compress_mode): New function.
8810 (mips_get_compress_on_name): New function.
8811 (mips_get_compress_off_name): New function.
8812 (mips_insert_attributes): Support multiple compression types.
8813 (mips_merge_decl_attributes): Likewise.
8814 (umips_12bit_offset_address_p): New function.
8815 (mips_start_function_definition): Emit .set micromips directive.
8816 (mips_call_may_need_jalx_p): New function.
8817 (mips_function_ok_for_sibcall): Add microMIPS support.
8818 (mips_print_operand_punctuation): Support short delay slots and
8819 compact jumps.
8820 (umips_swm_mask, umips_swm_encoding): New.
8821 (umips_build_save_restore): New function.
8822 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8823 (was_mips16_p): Remove.
8824 (old_compression_mode): New.
8825 (mips_set_compression_mode): New function.
8826 (mips_set_current_function): Add microMIPS support.
8827 (mips_option_override): Likewise.
8828 (umips_save_restore_pattern_p): New function.
8829 (umips_output_save_restore): New function.
8830 (umips_load_store_pair_p_1): New function.
8831 (umips_load_store_pair_p): New function.
8832 (umips_output_load_store_pair_1): New function.
8833 (umips_output_load_store_pair): New function.
8834 (umips_movep_target_p) New function.
8835 (mips_prepare_pch_save): Add microMIPS support.
8836 * config/mips/mips.h (TARGET_COMPRESSION): New.
8837 (TARGET_CPU_CPP_BUILTINS): Update macro
8838 to use new compression flags and to support microMIPS.
8839 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8840 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8841 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8842 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8843 (ASM_SPEC): Support mmicromips and mno-micromips.
8844 (M16STORE_REG_P): New macro.
8845 (MIPS_CALL): Support TARGET_MICROMIPS.
8846 (MICROMIPS_J): New macro.
8847 (mips_base_mips16): Rename this...
8848 (mips_base_compression_flags): ...to this.
8849 (UMIPS_12BIT_OFFSET_P): New macro.
8850 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8851 (MULTILIB_DIRNAMES): Likewise.
8852
cdebbc6d
JJ
88532013-02-24 Jakub Jelinek <jakub@redhat.com>
8854
8855 PR target/52555
8856 * target-globals.c (save_target_globals): For init_reg_sets and
8857 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8858
18c63565
JG
88592013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8860
8861 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8862 * config/aarch64/t-aarch64
8863 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8864
2194f7a2
VM
88652013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8866
8867 PR inline-asm/56148
8868 * lra-constraints.c (process_alt_operands): Reload operand
8869 conflicting with earlier clobber only if no more other conflicting
8870 operands.
8871
7d613735
JJ
88722013-02-22 Jakub Jelinek <jakub@redhat.com>
8873
8874 PR sanitizer/56393
8875 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8876 if not linking a shared library.
8877
ac8d93a7
SL
88782013-02-22 Seth LaForge <sethml@google.com>
8879
8880 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8881
e0237780
GY
88822013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8883
3fdb53c1
TB
8884 * config/arm/arm.md (split for extendsidi): Update condition.
8885 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8886 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8887 (qhs_zextenddi_cstr): Likewise.
e0237780 8888
d7fde18c
JJ
88892013-02-21 Jakub Jelinek <jakub@redhat.com>
8890
be63b77d
JJ
8891 PR middle-end/56420
8892 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8893 avoid signed wrapping.
8894 (expand_mult): Handle properly multiplication by
8895 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8896 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8897 in the compiler if coeff is HOST_WIDE_INT_MIN.
8898 (expand_divmod): Don't make ext_op1 static, change it's type to
8899 uhwi. Avoid undefined behavior in -INTVAL (op1).
8900
d7fde18c
JJ
8901 PR rtl-optimization/50339
8902 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8903 field.
8904 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8905 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8906 into splitting_ashiftrt field.
8907 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8908 ASHIFTRT.
8909 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8910 choices.
8911
6aad4455
AH
89122013-02-20 Aldy Hernandez <aldyh@redhat.com>
8913
8914 PR middle-end/56108
8915 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8916 are sure to go irrevocable.
8917
38fe784d
HPN
89182013-02-21 Hans-Peter Nilsson <hp@axis.com>
8919
8920 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8921 scalars are valid operands.
8922
0fd44da3
MJ
89232013-02-21 Martin Jambor <mjambor@suse.cz>
8924
8925 PR tree-optimization/56310
8926 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8927 only matching indices and non-negative final offsets.
8928 (intersect_aggregates_with_edge): Pass src_idx to
8929 agg_replacements_to_vector. Pass src_idx insstead of index to
8930 intersect_with_agg_replacements.
8931
7a92038b
MJ
89322013-02-21 Martin Jambor <mjambor@suse.cz>
8933
8934 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8935 instead of hard-wired defaults.
8936
c0da9c37
MR
89372013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8938
8939 * doc/invoke.texi (MIPS Options): Update documentation of the
8940 floating-point multiply-accumulate instruction restrictions.
8941
d247ea0c 89422013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
8943
8944 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8945 asan_shadow_offset on x86_64 linux.
8946
22deefcb
RB
89472013-02-21 Richard Biener <rguenther@suse.de>
8948
8949 PR tree-optimization/56415
8950 Revert
8951 2013-02-11 Richard Biener <rguenther@suse.de>
8952
8953 PR tree-optimization/56273
8954 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8955 first VRP run.
8956
7bcc6e75
JJ
89572013-02-21 Jakub Jelinek <jakub@redhat.com>
8958
a0ad148f
JJ
8959 PR bootstrap/56258
8960 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8961 instead of @itemx.
8962
7bcc6e75
JJ
8963 PR inline-asm/56405
8964 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8965 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8966
a0a7b611
JH
89672013-02-20 Jan Hubicka <jh@suse.cz>
8968
8969 PR tree-optimization/56265
88b97037
UB
8970 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8971 when target is referenced for first time.
a0a7b611 8972
c0e50f72
RB
89732013-02-20 Richard Biener <rguenther@suse.de>
8974
8975 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8976 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8977 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8978 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8979 not return anything.
8980 (rename_ssa_copies): Do not remove unused locals.
8981 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 8982 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
8983 * passes.c (execute_function_todo): Do not schedule unused locals
8984 removal if cleanup_tree_cfg did something.
8985 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8986 about the number of removed locals.
8987
a52ca739
RB
89882013-02-20 Richard Biener <rguenther@suse.de>
8989
8990 PR tree-optimization/56398
88b97037 8991 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 8992
ec9c9d1b
MJ
89932013-02-20 Martin Jambor <mjambor@suse.cz>
8994
8995 PR tree-optimization/55334
8996 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8997 restricted pointers to arrays.
8998
e91c8ed6 89992013-02-20 Richard Biener <rguenther@suse.de>
88b97037 9000 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
9001
9002 PR tree-optimization/56396
9003 * tree-ssa-ccp.c (n_const_val): New static variable.
9004 (get_value): Return NULL for SSA names we don't have a lattice
9005 entry for.
9006 (ccp_initialize): Initialize n_const_val.
9007 * tree-ssa-copy.c (n_copy_of): New static variable.
9008 (init_copy_prop): Initialize n_copy_of.
9009 (get_value): Return NULL_TREE for SSA names we don't have a
9010 lattice entry for.
9011
3d916479
MJ
90122013-02-20 Martin Jambor <mjambor@suse.cz>
9013
9014 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9015
71a86758
RB
90162013-02-20 Richard Biener <rguenther@suse.de>
9017
9018 * genpreds.c (write_lookup_constraint): Do not compare first
9019 letter of the constraint again.
9020
79836a12
RB
90212013-02-20 Richard Biener <rguenther@suse.de>
9022
9023 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9024 and ceil_log2.
9025 (get_use_iv_cost): Terminate hashtable walk when coming across
9026 an empty entry.
9027
bbe4fb2c
IZ
90282013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9029
9030 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9031 reassociation for avx2 targets.
9032
a72d8780 90332012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 9034
c77f83d5
EI
9035 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9036 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 9037 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
9038 version and TARGET_PATTERN_COMPARE check
9039 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 9040
a72d8780 90412012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 9042
a72d8780 9043 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
9044 function before branching.
9045
242387fa
AB
90462012-02-19 Andrey Belevantsev <abel@ispras.ru>
9047
9048 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9049 DUMP_INSN_RTX_UID.
9050 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9051
b4979ab9
AB
90522012-02-19 Andrey Belevantsev <abel@ispras.ru>
9053
9054 PR middle-end/55889
b4979ab9
AB
9055 * sel-sched.c: Include ira.h.
9056 (implicit_clobber_conflict_p): New function.
9057 (moveup_expr): Use it.
88b97037 9058 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 9059
24d63016
RB
90602013-02-19 Richard Biener <rguenther@suse.de>
9061
9062 PR tree-optimization/56384
9063 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9064 (vn_hash_type): Split out from ...
9065 (vn_hash_constant_with_type): ... here.
9066 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9067 (vn_phi_eq): Compare types from vn_phi_s structure.
9068 (vn_phi_lookup): Populate vn_phi_s type.
9069 (vn_phi_insert): Likewise.
9070
a475fd3d
JJ
90712013-02-19 Jakub Jelinek <jakub@redhat.com>
9072
47cc28f5
JJ
9073 PR tree-optimization/56350
9074 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9075 if haven't found reduction or nested cycle operand, rather than
9076 asserting we must find it.
9077
a475fd3d
JJ
9078 PR tree-optimization/56381
9079 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9080 to fold_build3.
9081
90822013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
9083 Jakub Jelinek <jakub@redhat.com>
9084
9085 PR target/52555
9086 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9087 (swap_optab_enable): Same.
9088 (init_all_optabs): Use argument instead of global.
88b97037 9089 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
9090 * expr.h (init_all_optabs): Add argument to prototype.
9091 (TREE_OPTIMIZATION_OPTABS): New.
9092 (save_optabs_if_changed): Protoize.
9093 * optabs.h: Declare this_fn_optabs.
9094 * optabs.c (save_optabs_if_changed): New.
9095 Declare this_fn_optabs.
9096 (init_optabs): Add argument to init_all_optabs() call.
9097 * function.c (invoke_set_current_function_hook): Handle per
9098 function optabs.
9099 * function.h (struct function): New field optabs.
9100 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9101 optimization_current_node has changed.
9102 * target-globals.h (save_target_globals_default_opts): Protoize.
9103 * target-globals.c (save_target_globals_default_opts): New.
9104
3f587ca3
JDA
91052013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9106
9107 PR target/56347
9108 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9109 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
9110
9111 PR target/56214
9112 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
9113 and HImode, require all displacements to be an integer multiple of
9114 their mode size.
ceaca33e
JDA
9115 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9116 only allow QImode and HImode when reload is in progress and strict is
9117 true. Likewise for symbolic addresses. Use base14_operand to check
9118 displacements in REG+BASE addresses.
9119
fe0b4796
RB
91202013-02-18 Richard Biener <rguenther@suse.de>
9121
9122 PR tree-optimization/56366
9123 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9124 handle sign-conversion of outer-loop initial induction value.
9125
6aaf596b
RB
91262013-02-18 Richard Biener <rguenther@suse.de>
9127
73db8ff1 9128 PR middle-end/56349
6aaf596b
RB
9129 * cfghooks.c (merge_blocks): If we merge a latch into another
9130 block adjust references to it.
9131 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9132 (verify_loop_structure): Verify that a recorded latch is in fact
9133 a latch.
9134
5e97dfb6
RB
91352013-02-18 Richard Biener <rguenther@suse.de>
9136
9137 PR tree-optimization/56321
9138 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9139 order SSA name release and virtual operand unlinking.
9140
825527e8
EI
91412013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9142
9143 * config/microblaze/microblaze.md (save_stack_block): Define.
9144 (restore_stack_block): Likewise.
9145
debd11d9
EI
91462013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9147
9148 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9149 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9150 * config/microblaze/microblaze.c (microblaze_option_override):
9151 Bail out early for PIC modes when target does not support PIC.
9152
8ec77be0
EI
91532013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9154
88b97037 9155 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
9156 Replace with a microblaze version.
9157 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 9158 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
9159 microblaze.
9160
b41288b3
JJ
91612013-02-16 Jakub Jelinek <jakub@redhat.com>
9162 Dodji Seketeli <dodji@redhat.com>
9163
9164 PR asan/56330
88b97037 9165 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
9166 (instrument_mem_region_access): Do not forget to always put
9167 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9168 0) statement, even for cases where either 'base' or 'base + len'
9169 are not instrumented -- because they have been previously
9170 instrumented. Simplify the logic by putting all the statements
9171 instrument 'base + len' inside a sequence, and then insert that
9172 sequence right before the current insertion point. Then, to
9173 instrument 'base + len', just get an iterator on that statement.
9174 And do not forget to update the pointer to iterator the function
9175 received as argument.
9176
47918951
VM
91772013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9178
9179 PR rtl-optimization/56348
9180 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9181
3fb7c699
SB
91822013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9183
9184 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9185 (clean_graph_dump_file): Pass base to start_graph_dump.
9186
576fe41a
RH
91872013-02-14 Richard Henderson <rth@redhat.com>
9188
9189 PR target/55941
9190 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9191
bb3accfa
SB
91922013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9193
9194 * collect2-aix.h: Define F_LOADONLY.
9195
03143140
RB
91962013-02-14 Richard Biener <rguenther@suse.de>
9197
9198 PR lto/50494
9199 * varasm.c (output_constant_def_1): Get the decl representing
9200 the constant as argument.
9201 (output_constant_def): Wrap output_constant_def_1.
9202 (make_decl_rtl): Use output_constant_def_1 with the decl
9203 representing the constant.
9204 (build_constant_desc): Optionally re-use a decl already
9205 representing the constant.
9206 (tree_output_constant_def): Adjust.
9207
8fb06726
DS
92082013-02-14 Dodji Seketeli <dodji@redhat.com>
9209
9210 Fix an asan crash
9211 * asan.c (instrument_builtin_call): Really put the length of the
9212 second source argument into src1_len.
9213
c4bfe8bf
JJ
92142013-02-13 Jakub Jelinek <jakub@redhat.com>
9215
9216 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9217 argument. If it is false, don't create edge from then_bb to
9218 fallthru_bb.
9219 (insert_if_then_before_iter): Pass true to it.
9220 (build_check_stmt): Pass false to it.
9221 (transform_statements): Flush hash table only on extended basic
9222 block boundaries, rather than at the beginning of every bb.
9223 Don't flush hash table on nonfreeing_call_p calls.
9224 * tree-flow.h (nonfreeing_call_p): New prototype.
9225 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9226
7afe2801
DM
92272013-02-13 David S. Miller <davem@davemloft.net>
9228
9229 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9230
70cc3288
VM
92312013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9232
9233 PR target/56184
9234 * ira.c (max_regno_before_ira): Move from ...
9235 (ira): ... here.
9236 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9237 vec_safe_length.
9238
6422242b
JJ
92392013-02-13 Jakub Jelinek <jakub@redhat.com>
9240
9241 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9242
976a81ee
RB
92432013-02-13 Richard Biener <rguenther@suse.de>
9244
9245 PR lto/56295
9246 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9247 globals in MEM_REFs.
9248
c1874a87
RB
92492013-02-13 Richard Biener <rguenther@suse.de>
9250
9251 * loop-init.c (loop_optimizer_init): Clear loop state when
9252 re-initializing preserved loops.
9253 * loop-unswitch.c (unswitch_single_loop): Return whether
9254 we unswitched the loop. Do not verify loop state here.
88b97037 9255 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 9256
b4ab7d34
KS
92572013-02-13 Kostya Serebryany <kcc@google.com>
9258
88b97037
UB
9259 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9260 on x86_64 linux.
b4ab7d34
KS
9261 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9262
bdcbe80c
DS
92632013-02-12 Dodji Seketeli <dodji@redhat.com>
9264
9265 Avoid instrumenting duplicated memory access in the same basic block
9266 * Makefile.in (asan.o): Add new dependency on hash-table.h
9267 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9268 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9269 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9270 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9271 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9272 (get_mem_ref_of_assignment): New functions.
9273 (get_mem_refs_of_builtin_call): Extract from
9274 instrument_builtin_call and tweak a little bit to make it fit with
9275 the new signature.
9276 (instrument_builtin_call): Use the new
9277 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9278 of is_gimple_builtin_call.
9279 (instrument_derefs, instrument_mem_region_access): Insert the
9280 instrumented memory reference into the hash table.
9281 (maybe_instrument_assignment): Renamed instrument_assignment into
9282 this, and change it to advance the iterator when instrumentation
9283 actually happened and return true in that case. This makes it
9284 homogeneous with maybe_instrument_assignment, and thus give a
9285 chance to callers to be more 'regular'.
9286 (transform_statements): Clear the memory reference hash table
9287 whenever we enter a new BB, when we cross a function call, or when
9288 we are done transforming statements. Use
9289 maybe_instrument_assignment instead of instrumentation. No more
9290 need to special case maybe_instrument_assignment and advance the
9291 iterator after calling it; it's now handled just like
9292 maybe_instrument_call. Update comment.
9293
4861a1f7
RB
92942013-02-13 Richard Biener <rguenther@suse.de>
9295
9296 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9297 Fix loop discovery code.
9298
1c86bd80
VM
92992013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9300
9301 PR inline-asm/56148
9302 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 9303 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
9304 the operand is not reloaded. Prefer to reload conflicting operand
9305 if earlyclobber and matching operands are the same.
9306
7cbda518
RB
93072013-02-12 Richard Biener <rguenther@suse.de>
9308
9309 PR lto/56297
9310 * lto-streamer-out.c (write_symbol): Do not output symbols
9311 for hard register variables.
9312
e68a4ef6
GJL
93132013-02-12 Georg-Johann Lay <avr@gjlay.de>
9314
9315 PR target/54222
9316 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9317 (umulsidi3_insn, mulsidi3_insn): New insns.
9318
a72d8780 93192013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
9320
9321 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9322 (struct tune_params): Add vec_costs field.
9323 * config/arm/arm.c (arm_builtin_vectorization_cost)
9324 (arm_add_stmt_cost): New functions.
9325 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9326 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9327 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9328 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9329 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9330 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9331 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9332
43320568
RB
93332013-02-12 Richard Biener <rguenther@suse.de>
9334
9335 PR lto/56295
9336 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9337 decls again if possible.
9338
a011aa39
RB
93392013-02-12 Richard Biener <rguenther@suse.de>
9340
9341 PR middle-end/56288
9342 * tree-ssa.c (verify_ssa_name): Fix check, move
9343 SSA_NAME_IN_FREE_LIST check up.
9344
6da26889
JJ
93452013-02-12 Jakub Jelinek <jakub@redhat.com>
9346 Steven Bosscher <steven@gcc.gnu.org>
9347
9348 PR rtl-optimization/56151
9349 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9350 equal to op0 or op1, and last_insn pattern is CODE operation
9351 with MEM dest and one of the operands matches that MEM.
9352
f80e0faf
ST
93532013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9354
9355 * doc/extend.texi: Document Function Multiversioning and "default"
9356 parameter string to target attribute.
9357 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9358 target attribute parameter is "default".
9359 (ix86_compare_version_priority): Remove checks for target attribute.
9360 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9361 Remove check for target attribute equal to NULL. Add assert.
9362 (ix86_generate_version_dispatcher_body): Change error to sorry.
9363
6c59ffd1
IS
93642013-02-11 Iain Sandoe <iain@codesourcery.com>
9365 Jack Howarth <howarth@bromo.med.uc.edu>
9366 Patrick Marlier <patrick.marlier@gmail.com>
9367
9368 PR libitm/55693
9369 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9370 define ENDFILE_SPEC as TM_DESTRUCTOR.
9371 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9372
a72d8780 93732013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
9374 Jack Howarth <howarth@bromo.med.uc.edu>
9375 Jakub Jelinek <jakub@redhat.com>
9376
9377 PR sanitizer/55617
9378 * config/darwin.c (cdtor_record): Rename ctor_record.
9379 (sort_cdtor_records): Rename sort_ctor_records.
9380 (finalize_dtors): New routine to sort destructors by
9381 priority before use in assemble_integer.
9382 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9383
b63fe007
UB
93842013-02-11 Uros Bizjak <ubizjak@gmail.com>
9385
9386 PR rtl-optimization/56275
9387 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9388 offset is non-negative and less than cmode size before
9389 calling simplify_subreg.
9390
8e89b5b5
RB
93912013-02-11 Richard Biener <rguenther@suse.de>
9392
9393 PR tree-optimization/56264
9394 * cfgloop.h (fix_loop_structure): Adjust prototype.
9395 * loop-init.c (fix_loop_structure): Return the number of
9396 newly discovered loops.
9397 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9398 are discovered, do a full loop-closed SSA rewrite.
9399
b4a4b56d
RB
94002013-02-11 Richard Biener <rguenther@suse.de>
9401
9402 PR tree-optimization/56273
9403 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9404 first VRP run.
9405 (check_array_ref): Fix missing newline in dumps.
9406 (search_for_addr_array): Likewise.
9407
0c885229
DE
94082013-02-09 David Edelsohn <dje.gcc@gmail.com>
9409
9410 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9411
59ac9a55
JJ
94122013-02-09 Jakub Jelinek <jakub@redhat.com>
9413
9414 PR target/56256
9415 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9416
25bb0bb5
VM
94172013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9418
9419 PR rtl-optimization/56246
0c885229 9420 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
9421 reload pseudo.
9422 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9423 constraints are satisfied.
9424
a698cc03
JL
94252013-02-08 Jeff Law <law@redhat.com>
9426
9427 PR debug/53948
9428 * emit-rtl.c (reg_is_parm_p): New function.
9429 * regs.h (reg_is_parm_p): New prototype.
9430 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9431 callee-clobbered registers.
9432
e1122ddd
MM
94332013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9434
9435 PR target/56043
9436 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9437 If there is no implicit builtin declaration, just return NULL.
9438
19c5f6e6
UB
94392013-02-08 Uros Bizjak <ubizjak@gmail.com>
9440
9441 * config/i386/sse.md (FMAMODEM): New mode iterator.
9442 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9443 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9444
2480f2ca 94452013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 9446
2480f2ca
UB
9447 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9448 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9449 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9450
94512013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9452
9453 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9454 (microblaze*-*-elf): Likewise.
9455 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9456 LINK_SPEC.
9457 * config/microblaze/microblaze-c.c: Add builtin defines for
9458 _LITTLE_ENDIAN and _BIG_ENDIAN.
9459 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9460 add to TARGET_DEFAULT flags.
76ef61fb 9461 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
9462 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9463 * config/microblaze/microblaze.md: Update extendsidi2 and
9464 movdi_internal instructions to use low-order / high-order reg
9465 print_operands.
9466 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9467 options and inversemask / mask of LITTLE_ENDIAN.
9468 * config/microblaze/t-microblaze: Expand multilib options to
9469 include mlittle-endian (le) and update exceptions patterns.
9470
600a5961
JJ
94712013-02-08 Jakub Jelinek <jakub@redhat.com>
9472
5df81313
JJ
9473 PR rtl-optimization/56195
9474 * lra-constraints.c (get_reload_reg): Don't reuse regs
9475 if they have smaller mode than requested, if they have
9476 wider mode than requested, try to return a SUBREG.
9477
600a5961
JJ
9478 PR tree-optimization/56250
9479 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9480 if type is unsigned and code isn't MULT_EXPR.
9481
ff544649
GJL
94822013-02-08 Georg-Johann Lay <avr@gjlay.de>
9483
9484 PR tree-optimization/56064
9485 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9486 bits according to mode.
9487 * fixed-value.h (fixed_from_double_int)
9488 (const_fixed_from_double_int): Adjust comments.
9489
e45cde98
RB
94902013-02-08 Richard Biener <rguenther@suse.de>
9491
9492 PR lto/56231
9493 * lto-streamer.h (struct data_in): Remove current_file, current_line
9494 and current_col members.
9495 * lto-streamer-out.c (lto_output_location): Stream changed bits
9496 en-block for efficiency.
9497 * lto-streamer-in.c (clear_line_info): Remove.
9498 (lto_input_location): Cache current file, line and column
9499 globally via local statics. Read changed bits en-block.
9500 (input_function): Do not call clear_line_info.
9501 (lto_read_body): Likewise.
9502 (lto_input_toplevel_asms): Likewise.
9503
c1ca73d8
MM
95042013-02-08 Michael Matz <matz@suse.de>
9505
9506 PR tree-optimization/52448
9507 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9508 (nt_call_phase): New static.
9509 (add_or_mark_expr): Only mark accesses with newer phase than any
9510 call seen.
9511 (nonfreeing_call_p): New.
9512 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9513 (nt_fini_block): Keep blocks marked as visited.
9514 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9515
57548aa2
RB
95162013-02-08 Richard Biener <rguenther@suse.de>
9517
9518 * ira.c (ira): Free broken dominator information.
9519
8e10366f
UB
95202013-02-08 Uros Bizjak <ubizjak@gmail.com>
9521
9522 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9523
f64fb0fa
MP
95242013-02-08 Marek Polacek <polacek@redhat.com>
9525
8e10366f 9526 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 9527
0375167b
RB
95282013-02-08 Richard Biener <rguenther@suse.de>
9529
9530 PR middle-end/56181
9531 * cfgloop.h (flow_loops_find): Adjust.
9532 (bb_loop_header_p): Declare.
9533 * cfgloop.c (bb_loop_header_p): New function split out from ...
9534 (flow_loops_find): ... here. Adjust function signature,
9535 support incremental loop structure update.
9536 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9537 * cfgloopmanip.c (fix_loop_structure): Move ...
9538 * loop-init.c (fix_loop_structure): ... here.
9539 (apply_loop_flags): Split out from ...
9540 (loop_optimizer_init): ... here.
9541 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9542 in incremental mode, only remove dead loops here.
9543
85d768f3
GJL
95442013-02-08 Georg-Johann Lay <avr@gjlay.de>
9545
9546 PR target/54222
9547 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9548 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9549 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9550 (*round<mode>3.libgcc): New insns for fixed-modes.
9551 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9552 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9553 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9554 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9555 implementations. Define to __builtin_avr_absFX,
9556 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9557 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9558 __builtin_avr_countlsFX, respectively.
9559 * config/avr/avr-c.c (target.h): Include it.
9560 (enum avr_builtin_id): New enum.
9561 (avr_resolve_overloaded_builtin): New static function.
9562 (avr_register_target_pragmas): Use it to set
9563 targetm.resolve_overloaded_builtin.
9564 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9565 tree nodes used by DEF_BUILTIN.
9566 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9567 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9568 <AVR_BUILTIN_xxBITS>: Same.
9569
661bc682
RB
95702013-02-08 Richard Biener <rguenther@suse.de>
9571
9572 * cfgloop.c (verify_loop_structure): Properly handle
9573 a loop exiting to another loop header.
9574 * ira-int.h (ira_loops): Remove.
9575 * ira.c (ira_loops): Remove.
9576 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9577 (do_reload): Use loop_optimizer_finalize.
9578 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9579 number_of_loops to access the loop tree.
9580 (more_one_region_p): Likewise.
9581 (finish_loop_tree_nodes): Likewise.
9582 (rebuild_regno_allocno_maps): Likewise.
9583 (mark_loops_for_removal): Likewise.
9584 (mark_all_loops_for_removal): Likewise.
9585 (remove_unnecessary_regions): Likewise.
9586 (ira_build): Likewise.
9587 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9588
0d5049b2
RB
95892013-02-08 Richard Biener <rguenther@suse.de>
9590
9591 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9592 * ipa-pure-const.c (analyze_function): Avoid calling
9593 mark_irreducible_loops twice.
8e10366f 9594 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 9595
499f32e8
DM
95962013-02-07 David S. Miller <davem@davemloft.net>
9597
9598 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9599 on 'reg'.
9600 * var-tracking.c (vt_add_function_parameter): Test the presence of
9601 HAVE_window_save properly and do not remap argument registers when
9602 we have a leaf function.
9603
6edc3e32
UB
96042013-02-07 Uros Bizjak <ubizjak@gmail.com>
9605
9606 PR bootstrap/56227
9607 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9608 instead of "ll".
9609 * config/i386/i386.c (ix86_print_operand): Ditto.
9610
5306401f
VM
96112013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9612
6edc3e32 9613 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 9614
027ece11
VM
96152013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9616
9617 PR rtl-optimization/56225
9618 * lra-constraints.c (process_alt_operands): Check that reload hard
9619 reg can hold value for strict_low_part.
9620
f980dfdb
JJ
96212013-02-07 Jakub Jelinek <jakub@redhat.com>
9622
9623 PR debug/56154
9624 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9625 dwarf2out_end_function.
9626 (in_first_function_p, maybe_at_text_label_p,
9627 first_loclabel_num_not_at_text_label): New variables.
9628 (dwarf2out_var_location): In the first function find out
6edc3e32 9629 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
9630 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9631 functions.
9632
73dd3123
EB
96332013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9634
9635 PR rtl-optimization/56178
9636 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9637 SUBREG of a register. Tidy up related block of code.
9638 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9639 note if the source is a register or a SUBREG of a register.
9640
e3936f47
JJ
96412013-02-07 Jakub Jelinek <jakub@redhat.com>
9642
9643 PR target/56228
9644 * config/rs6000/rs6000.md (ptrm): New mode attr.
9645 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9646 call_value_indirect_aix<pttrsize>,
9647 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9648 m in constraints.
9649
d96d674b
MH
96502013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9651
9652 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9653 if -bnortl. Convert to strcmp and strncmp.
9654
921f2dee
AM
96552013-02-07 Alan Modra <amodra@gmail.com>
9656
9657 PR target/54009
9658 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9659 addresses won't wrap when offsetting.
9660 (rs6000_secondary_reload): Provide secondary reloads needed for
9661 wrapping LO_SUM addresses.
9662
d09c7dba
TS
96632013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9664
9665 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9666 MACH, just __MACH__.
9667
a44bbd48
RB
96682013-02-06 Richard Biener <rguenther@suse.de>
9669
9670 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9671 instead of calling fix_loop_structure.
9672
6d840d99
JJ
96732013-02-06 Jakub Jelinek <jakub@redhat.com>
9674
9675 PR middle-end/56217
9676 * omp-low.c (use_pointer_for_field): Return false if
9677 lower_send_shared_vars doesn't generate any copy-out code.
9678
0f33baa9
TV
96792013-02-06 Tom de Vries <tom@codesourcery.com>
9680
9681 PR rtl-optimization/56131
9682 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9683 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9684 of the label is NULL. Add comment.
9685
11f1e3ab
JJ
96862013-02-05 Jakub Jelinek <jakub@redhat.com>
9687
31502f9f
JJ
9688 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9689
a74db9bd
JJ
9690 PR sanitizer/55374
9691 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9692 (STATIC_LIBTSAN_LIBS): Likewise.
9693 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9694 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9695 is defined, don't add anything else beyond that.
9696 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9697 (LINK_COMMAND_SPEC): Use them.
9698
11f1e3ab
JJ
9699 PR tree-optimization/56205
9700 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9701 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9702 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9703
14ac6aa2
RB
97042013-02-05 Richard Biener <rguenther@suse.de>
9705
9706 PR tree-optimization/53342
9707 PR tree-optimization/53185
9708 * tree-vectorizer.h (vect_check_strided_load): Remove.
9709 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9710 not disallow peeling for vectorized strided loads.
9711 (vect_check_strided_load): Make static and simplify.
9712 (vect_analyze_data_refs): Adjust.
9713 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9714 correctly when vectorizing strided loads.
9715
6f22445a
RB
97162013-02-05 Richard Biener <rguenther@suse.de>
9717
9718 * doc/install.texi: Refer to ISL, not PPL.
9719
39f9719e
JH
97202013-02-05 Jan Hubicka <jh@suse.cz>
9721
ec4224ac
JH
9722 PR tree-optimization/55789
9723 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9724
97252013-02-05 Jan Hubicka <jh@suse.cz>
9726
9727 PR tree-optimization/55789
39f9719e
JH
9728 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9729 the dead call anyway.
9730
956d3b33
EB
97312013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9732
9733 PR sanitizer/55374
9734 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9735
97362013-02-04 Alexander Potapenko <glider@google.com>
9737 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9738 Jakub Jelinek <jakub@redhat.com>
9739
9740 PR sanitizer/55617
9741 * config/darwin.c (sort_ctor_records): Stabilized qsort
9742 on constructor priority by using original position.
9743 (finalize_ctors): New routine to sort constructors by
9744 priority before use in assemble_integer.
9745 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9746
7ac3af38
JJ
97472013-02-04 Jakub Jelinek <jakub@redhat.com>
9748
9749 PR libstdc++/54314
9750 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9751 about visibility on artificial decls.
9752 * config/sol2.c (solaris_assemble_visibility): Likewise.
9753
152689dc
KT
97542013-02-04 Kai Tietz <ktietz@redhat.com>
9755
9756 PR target/56186
9757 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9758 argument and improve checking of return-argument types for 16-byte
9759 modes.
9760 (ix86_function_value_1): Add additional valtype argument on call
9761 of function_value_64.
9762 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9763 handling infunction_value_64 function.
9764
2b5987b5
MGD
97652013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9766
7ac3af38 9767 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9768
14597080
RB
97692013-02-04 Richard Biener <rguenther@suse.de>
9770
9771 PR tree-optimization/56188
9772 * tree-ssa-structalias.c (label_visit): Consider case with
9773 initially non-empty points-to set.
9774 (perform_var_substitution): Dump node mapping and clean up.
9775
ed73881e
RG
97762013-02-04 Richard Guenther <rguenther@suse.de>
9777
9778 PR lto/56168
9779 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9780 node prevail as last resort.
9781 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9782 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9783
139a0707
RB
97842013-02-04 Richard Biener <rguenther@suse.de>
9785
9786 PR tree-optimization/56113
9787 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9788 Merge into ...
9789 (equiv_class_lookup_or_add): ... this.
9790 (label_visit): Adjust and fix error in previous patch.
9791 (perform_var_substitution): Adjust.
9792
50fe8924
OE
97932013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9794
9795 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9796 * config/sh/sh4-300.md: Likewise.
9797 * config/sh/sh4a.md: Likewise.
9798 * config/sh/constraints.md: Likewise.
9799 * config/sh/sh.md: Likewise.
9800 * config/sh/netbsd-elf.h: Likewise.
9801 * config/sh/predicates.md: Likewise.
9802 * config/sh/sh-protos.h: Likewise.
9803 * config/sh/ushmedia.h: Likewise.
9804 * config/sh/linux.h: Likewise.
9805 * config/sh/sh.c: Likewise.
9806 * config/sh/superh.h: Likewise.
9807 * config/sh/elf.h: Likewise.
9808 * config/sh/sh4.md: Likewise.
9809 * config/sh/sh.h: Likewise.
9810
1a04ac2b
JDA
98112013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9812
9813 * config/pa/constraints.md: Adjust unused letters. Change "T"
9814 constraint to match_test floating_point_store_memory_operand().
9815 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9816 (base14_operand): New.
9817 (floating_point_store_memory_operand): New.
9818 (integer_store_memory_operand): Revise to use base14_operand and
9819 reg_plus_base_memory_operand.
9820 (move_dest_operand): Allow symbolic_memory_operands.
9821 (symbolic_memory_operand): Check for LO_SOM.
9822 (symbolic_operand): Change default case to break.
9823 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9824 CONST_DOUBLE values to be reloaded by putting them into memory when
9825 the destination is a floating point register.
9826 (movdf): Remove code to handle CONST_DOUBLE.
9827 (movsf): Likewise.
9828 (reload_indf_r1): New.
9829 (reload_insf_r1): New.
9830 Consistently use "Q" and "T" constraints with integer and floating
9831 point move instructions, respectively.
9832 (movdi): Remove FAIL.
9833 Change predicate for source operand unamed DImode move from
9834 general_operand to move_src_operand.
9835 (umulsidi3): Change predicate for destination operand to
9836 register_operand.
9837 Likewise for similar unamed patterns.
9838 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9839 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9840 (hppa_legitimize_address): Simplify mask calculation.
9841 (pa_emit_move_sequence): Revised handling of secondary reloads from
9842 REG+D addresses for floating point loads and stores. Directly handle
9843 loading CONST0_RTX (mode) to a floating point register.
9844 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9845 to floating point registers. Don't restrict secondary reloads to
9846 floating point registers to integer modes. Revise some comments and
9847 cleanup some code.
9848 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9849 (pa_legitimate_address_p): New.
9850 (pa_legitimize_reload_address): New.
9851 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9852 (STRICT_REG_OK_FOR_BASE_P): New.
9853 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9854 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9855
3bf65591
DE
98562013-02-03 David Edelsohn <dje.gcc@gmail.com>
9857 Andrew Dixie <andrewd@gentrack.com>
9858
9859 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9860 flag set.
9861
c0a8a3e6
RS
98622013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9863
9864 * expmed.c (extract_bit_field_1): Pass the full width of the
9865 structure to get_best_reg_extraction_insn.
9866
99113dff
DE
98672013-02-01 David Edelsohn <dje.gcc@gmail.com>
9868
9869 PR target/54601
9870 * configure.ac (use_cxa_atexit): Add AIX.
9871 * configure: Regenerate.
9872
9873 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9874
ddd84654
JJ
98752013-02-01 Jakub Jelinek <jakub@redhat.com>
9876
9877 PR debug/54793
9878 * final.c (need_profile_function): New variable.
9879 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9880 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9881 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9882 notes, targetm.asm_out.function_prologue doesn't emit anything,
9883 HAVE_prologue and profiler should be emitted before prologue,
9884 set need_profile_function instead of emitting it.
9885 (final_scan_insn): If need_profile_function, emit
9886 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9887 NOTE_INSN_FUNCTION_BEG note.
9888
98892013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9890
9891 * config/rs6000/rs6000.md (smulditi3): New.
9892 (umulditi3): New.
9893
ff2a9d88
RH
9894 * config/alpha/alpha.md (umulditi3): New.
9895
14d52b90
DE
98962013-02-01 David Edelsohn <dje.gcc@gmail.com>
9897
9898 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9899 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9900
8c7ca45c
RB
99012013-02-01 Richard Biener <rguenther@suse.de>
9902
9903 PR tree-optimization/56113
9904 * tree-ssa-structalias.c (label_visit): Reduce work for
9905 single-predecessor nodes.
9906
9f419393
EB
99072013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9908
9909 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9910 range isn't testing for zero.
9911
c5f4be84
SB
99122013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9913
9914 PR middle-end/56113
9915 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9916
dbdbd982
NC
99172013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9918 Nick Clifton <nickc@redhat.com>
9919
9920 * config/v850/constraints.md (Q): Define as a memory constraint.
9921 * config/v850/predicates.md (label_ref_operand): New predicate.
9922 (e3v5_shift_operand): New predicate.
9923 (ior_operator): New predicate.
9924 * config/v850/t-v850: Add e3v5 multilib.
9925 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9926 (v850_gen_movdi): Prototype.
9927 * config/v850/v850.c: Add support for e3v5 architecture.
9928 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9929 TARGET_V850E_UP.
9930 (construct_save_jarl): Add e3v5 long JARL support.
9931 (v850_adjust_insn_length): New function. Adjust length of call
9932 insns when using e3v5 instructions.
9933 (v850_gen_movdi): New function: Generate instructions to move a
9934 DImode value.
9935 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9936 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9937 (TARGET_USE_FPU): Enable for e3v5.
9938 (CONST_OK_FOR_W): New macro.
9939 (ADJUST_INSN_LENGTH): Define.
9940 * config/v850/v850.md (UNSPEC_LOOP): Define.
9941 (attr cpu): Add v850e3v5.
9942 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9943 (movdi): New pattern.
9944 (movdi_internal): New pattern.
9945 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9946 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9947 (cstoresf4): Likewise.
9948 (cstoredf4): Likewise.
9949 (insv): New pattern.
9950 (rotlso3_a): New pattern.
9951 (rotlsi3_b): New pattern
9952 (rotlsi3_v850e3v5): New pattern.
9953 (doloop_begin): New pattern.
9954 (fix_loop_counter): New pattern.
9955 (doloop_end): New pattern.
9956 (branch_normal): Add e3v5 long branch support.
9957 (branch_invert): Likewise.
9958 (branch_z_normal): Likewise.
9959 (branch_z_invert): Likewise.
9960 (branch_nz_normal): Likewise.
9961 (branch_nz_invert): Likewise.
9962 (call_internal_short): Add e3v5 register-indirect JARL support.
9963 (call_internal_long): Likewise.
9964 (call_value_internal_short): Likewise.
9965 (call_value_internal_long): Likewise.
9966 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9967 (mloop): New option.
9968 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 9969 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 9970
73861a41
PK
99712013-01-31 Paul Koning <ni1d@arrl.net>
9972
9973 PR debug/55059
9974 PR debug/54508
9975 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9976 children if parent is a class.
9977 (prune_unused_types_prune): Don't add DW_AT_declaration.
9978
e44978dc
RB
99792013-01-31 Richard Biener <rguenther@suse.de>
9980
9981 PR tree-optimization/56157
9982 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9983 match up operand with SLP child.
9984
90b10dec
JM
99852013-01-31 Jason Merrill <jason@redhat.com>
9986
04d2dadd 9987 PR debug/54410
90b10dec
JM
9988 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9989 parameters the first time.
9990 (gen_scheduled_generic_parms_dies): Check completeness here.
9991
6e616110
RB
99922013-01-31 Richard Biener <rguenther@suse.de>
9993
9994 PR middle-end/53073
9995 * common.opt (faggressive-loop-optimizations): New flag,
9996 enabled by default.
9997 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9998 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9999 infer_loop_bounds_from_undefined by it.
10000
636f59cf
RB
100012013-01-31 Richard Biener <rguenther@suse.de>
10002
10003 PR tree-optimization/56150
10004 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10005 visit virtual operands.
10006 (find_uses_to_rename_bb): Likewise.
10007
100082013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
10009
10010 PR tree-optimization/56150
10011 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10012 mixed store non-store stmts.
10013
32887460
JJ
100142013-01-30 Jakub Jelinek <jakub@redhat.com>
10015
e60e09a0
JJ
10016 PR sanitizer/55374
10017 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10018 LIBASAN_EARLY_SPEC is defined.
10019 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10020 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10021 before %o.
10022 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10023
32887460
JJ
10024 PR c++/55742
10025 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10026 invalid args instead of ICEing on it.
10027 (ix86_valid_target_attribute_tree): Return error_mark_node if
10028 ix86_valid_target_attribute_inner_p failed.
10029 (ix86_valid_target_attribute_p): Return false only if
10030 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10031 target("default") attribute.
10032 (sorted_attr_string): Change argument from const char * to tree,
10033 merge in all target attribute arguments rather than just one.
10034 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10035 instead of free. Avoid using strcat.
10036 (ix86_mangle_function_version_assembler_name): Mangle
10037 target("default") as if no target attribute is present. Adjust
10038 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10039 instead of xmalloc and XDELETEVEC instead of free.
10040 (ix86_function_versions): Don't return true if one of the decls
10041 doesn't have target attribute. If they don't and one of the decls
10042 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10043 sorted_attr_string caller. Use XDELETEVEC instead of free.
10044 (ix86_supports_function_versions): Remove.
10045 (make_name): Fix up formatting.
10046 (make_dispatcher_decl): Remove resolver_name and its initialization.
10047 Avoid leaking memory.
10048 (is_function_default_version): Return true if there is
10049 target("default") attribute rather than no target attribute at all.
10050 (make_resolver_func): Avoid leaking memory.
10051 (ix86_generate_version_dispatcher_body): Likewise.
10052 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10053 * target.def (supports_function_versions): Remove.
10054 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10055 * doc/tm.texi: Regenerated.
10056
73cca0cc
VM
100572013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10058
10059 PR rtl-optimization/56144
10060 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10061 for values with side effects.
10062
11452e7b
RB
100632013-01-30 Richard Biener <rguenther@suse.de>
10064
10065 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10066 (sparseset_pop): Likewise.
10067 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10068 to be able to use quick_push in the worker loop.
10069
01cb1ef5
MP
100702013-01-30 Marek Polacek <polacek@redhat.com>
10071
10072 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10073
e892936e
RB
100742013-01-30 Richard Biener <rguenther@suse.de>
10075
10076 PR lto/56147
6edc3e32 10077 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 10078
cc06c01d
GJL
100792013-01-30 Georg-Johann Lay <avr@gjlay.de>
10080
10081 PR tree-optimization/56064
10082 * fixed-value.c (fixed_from_double_int): New function.
10083 * fixed-value.h (fixed_from_double_int): New prototype.
10084 (const_fixed_from_double_int): New static inline function.
10085 * fold-const.c (native_interpret_fixed): New static function.
10086 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10087 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10088 (native_encode_fixed): New static function.
10089 (native_encode_expr) <FIXED_CST>: Use it.
10090 (native_interpret_int): Move double_int worker code to...
10091 * double-int.c (double_int::from_buffer): ...this new static method.
10092 * double-int.h (double_int::from_buffer): Prototype it.
10093
d394a308
RB
100942013-01-30 Richard Biener <rguenther@suse.de>
10095
10096 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10097 New pointer-map and obstack.
10098 (init_alias_vars): Allocate pointer-map and obstack.
10099 (delete_points_to_sets): Free them.
10100 (find_what_var_points_to): Cache result.
10101 (find_what_p_points_to): Adjust for changed interface of
10102 find_what_var_points_to.
10103 (compute_points_to_sets): Likewise.
10104 (ipa_pta_execute): Likewise.
10105
20804d96
RO
101062013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10107
10108 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10109 * configure: Regenerate.
10110 * config.in: Regenerate.
10111 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10112 #nobits/#progbits if supported.
10113
a7ad88a2
OE
101142013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10115
10116 PR target/56121
10117 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10118 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10119 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10120
7af79f92
GY
101212013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10122
91bfca59
OE
10123 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10124 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 10125
753bcf7b
GY
101262013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10127
91bfca59
OE
10128 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10129 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 10130
8cbc2ea8
GY
101312013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10132
91bfca59
OE
10133 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10134 declaration.
10135 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10136 * config/arm/cortex-a7.md: New bypasses using
10137 arm_mac_accumulator_is_result.
8cbc2ea8 10138
697a3325
GY
101392013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10140
91bfca59 10141 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 10142 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
10143 (cortex_a7_fpfmad): New reservation.
10144 (cortex_a7_fpmacs): Use ffmas and update required units.
10145 (cortex_a7_fpmuld): Update required units and latency.
10146 (cortex_a7_fpmacd): Likewise.
10147 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10148 (cortex_a7_neon). Likewise.
10149 (bypass) Update participating units.
697a3325 10150
29637783
GY
101512013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10152
91bfca59
OE
10153 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10154 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10155 from fmac to ffma.
10156 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10157 (vfp_fmul): Use ffmad.
10158 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10159 (cortex_r4_fmacd): Use ffmad.
10160 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10161 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10162 (cortex_a9_fmacd): Use ffmad.
10163 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10164 (cortex_a8_vfp_macd): Use ffmad.
10165 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10166 (cortex_a5_fpmacd): Use ffmad.
10167 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10168 (cortex_a15_vfp_macd): Use ffmad.
10169 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 10170
2ee8a2d5
JM
101712013-01-29 Jason Merrill <jason@redhat.com>
10172
10173 PR libstdc++/54314
10174 * varasm.c (default_assemble_visibility): Don't warn about
10175 visibility on artificial decls.
10176
78d087bc
RB
101772013-01-29 Richard Biener <rguenther@suse.de>
10178
10179 PR tree-optimization/56113
10180 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10181 the bitmap leader.
10182 (label_visit): Free duplicate bitmaps and record the leader instead.
10183 (perform_var_substitution): Adjust.
10184
83ba4d6f
RB
101852013-01-29 Richard Biener <rguenther@suse.de>
10186
10187 PR tree-optimization/55270
10188 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10189 the CFG, schedule loops for fixup.
10190
66dfe13f
NC
101912013-01-29 Nick Clifton <nickc@redhat.com>
10192
10193 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10194 SP_REG.
10195
5a579c3b
LE
101962013-01-28 Leif Ekblad <leif@rdos.net>
10197
10198 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10199 * config/i386/i386.h (TARGET_RDOS): New macro.
10200 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10201 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10202 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10203 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10204 DEFAULT_LARGE_SECTION_THRESHOLD.
10205 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10206 * config/i386/rdos.h: New file.
10207 * config/i386/rdos64.h: New file.
10208
51e44392
BS
102092013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10210
10211 PR other/54814
10212 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10213 TEST_HARD_REG_BIT.
10214
db1fb332
JJ
102152013-01-28 Jakub Jelinek <jakub@redhat.com>
10216
10217 PR rtl-optimization/56117
10218 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10219 call cselib_lookup_from_insn on the MEM before calling
10220 add_insn_mem_dependence.
10221
16917761
RB
102222013-01-28 Richard Biener <rguenther@suse.de>
10223
10224 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10225 to a stmt that didn't have one.
10226 (copy_phis_for_bb): Likewise for PHI arguments.
10227 (copy_debug_stmt): Likewise for debug stmts.
10228
b9fc0497
RB
102292013-01-28 Richard Biener <rguenther@suse.de>
10230
10231 PR tree-optimization/56034
6edc3e32 10232 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
10233 (partition_builtin_p): Adjust.
10234 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10235 it is the last partition.
10236 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10237 up the vertex for the definition.
10238 (classify_partition): Classify whether a partition is a
10239 PKIND_REDUCTION, thus has uses outside of the loop.
10240 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10241 Merge all PKIND_REDUCTION partitions into the last partition.
10242 (tree_loop_distribution): Seed partitions from reductions as well.
10243
aa710d25
JJ
102442013-01-28 Jakub Jelinek <jakub@redhat.com>
10245
0bfbca58
JJ
10246 PR tree-optimization/56125
10247 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10248 pow(x,c) into sqrt(x) * powi(x, n/2) or
10249 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10250 optimizing for size.
10251 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10252 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10253 integer.
10254
aa710d25
JJ
10255 PR tree-optimization/56094
10256 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10257 to UNKNOWN_LOCATION while gimplifying expr.
10258
77dc5297
UB
102592013-01-27 Uros Bizjak <ubizjak@gmail.com>
10260
10261 PR target/56114
10262 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10263 operand 0 in movabs insn template for -masm=intel asm alternative.
10264 (*movabs<mode>_2): Ditto for operand 1.
10265
0bfbca58 102662013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
10267
10268 PR target/54663
10269 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10270 of microblaze-c.o
10271
0bfbca58 102722013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
10273
10274 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10275 tm_file.
10276
0bfbca58 102772013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
10278
10279 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10280 Undef to avoid warning.
10281
478f60f9
MH
102822013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10283
10284 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10285 * configure: Regenerate.
10286
d7fa6ee2
JJ
102872013-01-25 Jakub Jelinek <jakub@redhat.com>
10288
10289 PR tree-optimization/56098
10290 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10291 for stmts with volatile ops.
10292 (cond_store_replacement): Don't optimize if assign has volatile ops.
10293 (cond_if_else_store_replacement_1): Don't optimize if either
10294 then_assign or else_assign have volatile ops.
10295 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10296 volatile ops.
10297
f8fe87bd
GJL
102982013-01-25 Georg-Johann Lay <avr@gjlay.de>
10299
10300 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10301
28398d0d
GJL
103022013-01-25 Georg-Johann Lay <avr@gjlay.de>
10303
10304 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10305 missing ':' in asm example.
10306
b7d7d917
TB
103072013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10308
10309 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10310 entries into lane and laneq entries.
77dc5297
UB
10311 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10312 Remove AdvSIMD scalar modes.
b7d7d917
TB
10313 (aarch64_sq<r>dmulh_laneq<mode>): New.
10314 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10315 modes.
10316 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10317 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10318 * config/aarch64/iterators.md (VCOND): New.
10319 (VCONQ): New.
10320
556f9906
GJL
103212013-01-25 Georg-Johann Lay <avr@gjlay.de>
10322
10323 PR target/54222
10324 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10325 Add NULL LIBNAME argument to existing definitions.
10326 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10327 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10328 * config/avr/avr.c (DEF_BUILTIN): Same.
10329 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10330 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10331 implementation is available (DECL_ASSEMBLER_NAME is set).
10332 (avr_fold_absfx): New static function.
10333 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10334 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10335 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10336 AVR_BUILTIN_ABSLLK.
10337 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10338 (abshk, absk, abslk, absllk): Provide as static inline functions.
10339
1f546bbb
MP
103402013-01-25 Marek Polacek <polacek@redhat.com>
10341
10342 PR tree-optimization/56035
10343 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10344
7e184bd7
UB
103452012-01-24 Uros Bizjak <ubizjak@gmail.com>
10346
10347 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10348 (*movtf_internal_rex64): Add (!o,C) alternative
10349 (*movxf_internal_rex64): Ditto.
10350 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10351
f5ba49ac
SM
103522013-01-24 Shenghou Ma <minux.ma@gmail.com>
10353
10354 * doc/invoke.texi: fix typo.
10355 * doc/objc.texi: fix typo.
10356
a6343728
RS
103572013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10358
10359 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10360 for the first two alternatives.
10361
cd030c07
DN
103622013-01-24 Diego Novillo <dnovillo@google.com>
10363
77dc5297 10364 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
10365 (ggc-zone.o): Remove.
10366 * configure.ac: Remove option --with-gc.
10367 * configure: Re-generate.
10368 * doc/install.texi: Remove documentation for --with-gc.
10369 * gengtype.c (write_enum_defn): Remove. Update all users.
10370 (write_Types_process_field): Remove generation of gt_e_* argument.
10371 (output_type_enum): Remove. Update all users.
10372 (write_enum_defn): Remove. Update all users.
10373 (enum alloc_zone): Remove. Update all users.
77dc5297 10374 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
10375 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10376 Update all callers.
10377 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 10378 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
10379 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10380 Update all users.
aaf1e810 10381 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
10382 (struct alloc_zone): Remove.
10383 (ggc_internal_alloc_zone_stat): Remove.
10384 (ggc_internal_cleared_alloc_zone_stat): Remove.
10385 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
10386 (ggc_pch_count_object): Remove last argument. Update all users.
10387 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
10388 (struct alloc_zone): Remove.
10389 * ggc-zone.c: Remove.
77dc5297 10390 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
10391 (struct alloc_zone): Remove.
10392 (ggc_alloc_typed_stat): Remove.
10393 (ggc_alloc_typed): Remove.
10394 (ggc_splay_alloc): Remove first argument.
10395 (rtl_zone): Remove. Update all users.
10396 (tree_zone): Remove. Update all users.
10397 (tree_id_zone): Remove. Update all users.
10398 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 10399 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 10400 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 10401 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 10402
a861ffa4
GJL
104032013-01-24 Georg-Johann Lay <avr@gjlay.de>
10404
10405 * config/avr/avr.c (avr_out_fract): Make register numbers that
10406 might be outside of source operand signed.
10407
593c0ddd
UB
104082013-01-24 Uros Bizjak <ubizjak@gmail.com>
10409
10410 * config/i386/constraints.md (Yf): New constraint.
10411 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10412 of f constraint to conditionaly disable x87 register preferences.
10413 (*movdf_internal): Ditto.
10414 (*movsf_internal): Ditto.
10415
e86c0101
SB
104162013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10417
10418 PR inline-asm/55934
10419 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10420 that have operands with impossible constraints.
10421 Add a FIXME for a speed-up opportunity.
10422 * lra-constraints.c (process_alt_operands): Verify that a class
10423 selected from constraints on asms is valid for the operand mode.
10424 (curr_insn_transform): Remove incorrect comment.
10425
f6fee35f
DE
104262013-01-23 David Edelsohn <dje.gcc@gmail.com>
10427
10428 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10429 TOC operand is a valid symbol ref in the constant pool.
10430
104312013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 10432
aaf1e810 10433 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 10434
dc62d7d1
GJL
104352013-01-23 Georg-Johann Lay <avr@gjlay.de>
10436
10437 PR target/54222
10438 * config/avr/stdfix.h: New file.
10439 * t-avr (stdfix-gcc.h): New rule to build it.
10440 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10441
2660d12d
KS
104422013-01-23 Kostya Serebryany <kcc@google.com>
10443
77dc5297
UB
10444 * config/darwin.h: remove dependency on
10445 CoreFoundation (asan on Mac OS).
2660d12d 10446
a70418fc
JJ
104472013-01-23 Jakub Jelinek <jakub@redhat.com>
10448
10449 PR target/49069
10450 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10451 instead of cmpdi_operand for first comparison operand.
10452 Don't assert that comparison operands aren't both constants.
10453
47876a2a
JW
104542013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10455
10456 * doc/install.texi (Downloading the Source): Update references to
10457 downloading separate components.
10458
104592013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
10460
10461 * doc/extend.texi (__int128): Improve grammar.
10462
47876a2a 104632013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
10464
10465 PR target/56028
10466 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10467 alternative to (o,r).
10468 (*movdi_internal_rex64): Remove (!o,n) alternative.
10469 (DImode immediate->memory splitter): Remove.
10470 (DImode immediate->memory peephole2): Remove.
10471 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10472 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10473 alternative to (!o,*r).
10474 (*movtf_internal_sse): New pattern.
10475 (*movxf_internal_rex64): New pattern.
10476 (*movxf_internal): Disable for TARGET_64BIT.
10477 (*movdf_internal_rex64): Remove (!o,F) alternative.
10478
3a984f10
JJ
104792013-01-22 Jakub Jelinek <jakub@redhat.com>
10480
502498d5
JJ
10481 PR middle-end/56074
10482 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10483 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10484 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10485 stmt locations where LOCATION_LOCUS of the stmt location is
10486 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10487
3a984f10
JJ
10488 PR target/55686
10489 * config/i386/i386.md (UNSPEC_STOS): New.
10490 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10491 *strsetqi_1): Add UNSPEC_STOS.
10492
fa817f7f
PC
104932013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10494
10495 PR c++/56067
10496 * doc/invoke.texi: Remove left over -Wsynth example.
10497
8f498c1b
JJ
104982013-01-21 Jakub Jelinek <jakub@redhat.com>
10499
10500 PR tree-optimization/56051
10501 * fold-const.c (fold_binary_loc): Don't fold
10502 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10503 a narrowing conversion, or widening conversion from signed
10504 to unsigned.
10505
47876a2a 105062013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
10507
10508 PR rtl-optimization/56023
10509 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10510 dependent on debug instruction.
10511
5b9db1bc
MJ
105122013-01-21 Martin Jambor <mjambor@suse.cz>
10513
10514 PR middle-end/56022
10515 * function.c (allocate_struct_function): Call
10516 invoke_set_current_function_hook earlier.
10517
e8bb7d68
JJ
105182013-01-21 Jakub Jelinek <jakub@redhat.com>
10519
10520 * reload1.c (init_reload): Only initialize reload_obstack
10521 during the first call.
10522
616a4e32
MP
105232013-01-21 Marek Polacek <polacek@redhat.com>
10524
10525 * cfgloop.c (verify_loop_structure): Fix up grammar.
10526
4401981b
YHH
105272013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10528
10529 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10530 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10531
8e87740b
RR
105322013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10533
10534 PR target/56058
10535 * config/arm/marvell-pj4.md: Update copyright year.
10536 Fix up use of alu to alu_reg and simple_alu_imm.
10537
47876a2a 105382013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
10539
10540 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10541
89d56d79
VM
105422013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10543
10544 PR target/55433
10545 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 10546 insn for secondary memory move when memory mode should be different.
89d56d79 10547
fe603553
JDA
105482013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10549
10550 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10551 atomic_storedi_1): New patterns.
10552
01284895
VK
105532013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10554
10555 btver2 pipeline descriptions.
10556 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10557 descriptions.
10558 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 10559 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
10560 type attributes.
10561 * config/i386/btver2.md: New file describing btver2 pipelines.
10562
5630e3e1
JL
105632013-01-19 Andrew Pinski <apinski@cavium.com>
10564
10565 PR tree-optimization/52631
10566 * tree-ssa-sccvn (visit_use): Before looking up the original
10567 statement, try looking up the simplified expression.
10568
650ae806
AG
105692013-01-19 Anthony Green <green@moxielogic.com>
10570
10571 * config/moxie/moxie.c (moxie_expand_prologue): Set
10572 current_function_static_stack_size.
10573
e300ec2d
JJ
105742013-01-18 Jakub Jelinek <jakub@redhat.com>
10575
10576 PR tree-optimization/56029
10577 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10578 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10579
a3d7af04
SS
105802013-01-18 Sharad Singhai <singhai@google.com>
10581
10582 PR tree-optimization/55995
10583 * dumpfile.c (dump_loc): Print location only if available.
10584 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10585
66aa7879
VM
105862013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10587
10588 PR target/55433
10589 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10590 secondary memory move.
10591 (inherit_reload_reg): Use rclass instead of cl for
10592 check_secondary_memory_needed_p.
10593
3f0fee7b
JJ
105942013-01-18 Jakub Jelinek <jakub@redhat.com>
10595
10596 PR middle-end/56015
10597 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 10598 the case where writing real complex part of target modifies op1.
3f0fee7b 10599
70c67693
JG
106002013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10601
10602 * config/aarch64/aarch64-simd.md
10603 (aarch64_vcond_internal<mode>): Handle unordered cases.
10604 * config/aarch64/iterators.md (v_cmp_result): New.
10605
df8de9b3
YHH
106062013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10607 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10608
10609 * config/arm/marvell-pj4.md: New file.
10610 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10611 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10612 (generic_vfp): Likewise.
10613 * config/arm/arm-cores.def: Add marvell-pj4.
10614 * config/arm/arm-tune.md: Regenerate.
10615 * config/arm/arm-tables.opt: Regenerate.
10616 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10617 * doc/invoke.texi: Document marvell-pj4.
10618
be30c356
TB
106192013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10620
10621 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10622
0bfbca58 106232013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
10624
10625 PR debug/54114
10626 PR debug/54402
10627 PR debug/49888
10628 * var-tracking.c (negative_power_of_two_p): New.
10629 (global_get_addr_cache, local_get_addr_cache): New.
10630 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10631 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10632 heading comment.
10633 (vt_stack_offset_p): Remove.
10634 (vt_canon_true_dep): Always canonicalize loc's address.
10635 (clobber_overlapping_mems): Make sure we have a MEM.
10636 (local_get_addr_clear_given_value): New.
10637 (val_reset): Clear local cached entries.
10638 (compute_bb_dataflow): Create and release the local cache.
10639 Disable duplicate MEMs clobbering.
10640 (emit_notes_in_bb): Clobber MEMs likewise.
10641 (vt_emit_notes): Create and release the local cache.
10642 (vt_initialize, vt_finalize): Create and release the global
10643 cache, respectively.
1f6bc337 10644 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 10645
0bfbca58 106462013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
10647
10648 PR libmudflap/53359
10649 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10650 not found in the symtab.
10651
0bfbca58 106522013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 10653
c350ba53 10654 PR debug/56006
3aa03517
AO
10655 PR rtl-optimization/55547
10656 PR rtl-optimization/53827
10657 PR debug/53671
10658 PR debug/49888
10659 * alias.c (offset_overlap_p): New, factored out of...
10660 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10661 the conservative special case for symbolic constants. Don't
10662 adjust zero sizes on alignment.
10663
c664546f
JL
106642013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10665
10666 PR rtl-optimization/52573
10667 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10668 REG_UNUSED for the same register.
10669
1bd3f750
MP
106702013-01-17 Richard Biener <rguenther@suse.de>
10671 Marek Polacek <polacek@redhat.com>
10672
10673 PR rtl-optimization/55833
10674 * loop-unswitch.c (unswitch_loops): Move loop verification...
10675 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10676 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10677 Set it to true when we're removing a loop from hierarchy tree in
10678 an irreducible region.
10679 (fix_bb_placements): Adjust caller.
10680 (fix_loop_placements): Likewise.
10681
e52a8b71
GJL
106822013-01-17 Georg-Johann Lay <avr@gjlay.de>
10683
10684 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10685 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10686 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10687 Remove ID. Adjust comments.
10688 * config/avr/avr-c.c (avr_builtin_name): Remove.
10689 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10690 * config/avr/avr.c (avr_tolower): New static function.
10691 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10692 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10693 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10694 default expansion.
10695
8386a7ea
JH
106962013-01-17 Jan Hubicka <jh@suse.cz>
10697
610fb637 10698 PR tree-optimization/55273
8386a7ea
JH
10699 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10700
47876a2a 107012013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
10702
10703 PR target/55981
10704 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10705 store through atomic_store<mode>_1.
10706 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10707
8222c37e
MJ
107082013-01-17 Martin Jambor <mjambor@suse.cz>
10709
10710 PR tree-optimizations/55264
10711 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10712 for virtual methods.
10713 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10714 virtual methods before inlining is over.
10715 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10716 virtual functions.
10717 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10718 non-virtual.
10719
79f01c76
VM
107202013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10721
10722 PR rtl-optimization/56005
10723 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10724 pending reads for prefetch.
10725
d0b6bb1b
IB
107262013-01-16 Ian Bolton <ian.bolton@arm.com>
10727
aaf1e810 10728 * config/aarch64/aarch64.md
d0b6bb1b
IB
10729 (*cstoresi_neg_uxtw): New pattern.
10730 (*cmovsi_insn_uxtw): New pattern.
10731 (*<optab>si3_uxtw): New pattern.
10732 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10733 (*<optab>si3_insn_uxtw): New pattern.
10734 (*bswapsi2_uxtw): New pattern.
10735
cb9cf03b
RB
107362013-01-16 Richard Biener <rguenther@suse.de>
10737
10738 * tree-inline.c (tree_function_versioning): Remove set but
10739 never used variable.
10740
2cfc56b9
RB
107412013-01-16 Richard Biener <rguenther@suse.de>
10742
10743 PR tree-optimization/55964
10744 * tree-flow.h (rename_variables_in_loop): Remove.
10745 (rename_variables_in_bb): Likewise.
10746 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10747 (copy_loop_before): Adjust and delete update-ssa status.
10748 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10749 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10750 (rename_variables_in_loop): Remove.
10751 (slpeel_update_phis_for_duplicate_loop): Likewise.
10752 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10753 use available cfg machinery instead of duplicating it.
10754 Update PHI nodes and perform poor-mans SSA update here.
10755 (slpeel_tree_peel_loop_to_edge): Adjust.
10756
c25a0c60
RB
107572013-01-16 Richard Biener <rguenther@suse.de>
10758
10759 PR tree-optimization/54767
10760 PR tree-optimization/53465
10761 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10762 (vrp_visit_phi_node): For PHI arguments coming via backedges
10763 drop all symbolical range information.
10764 (execute_vrp): Compute backedges.
10765
04b535af
RB
107662013-01-16 Richard Biener <rguenther@suse.de>
10767
10768 * doc/install.texi: Update CLooG and ISL requirements to
10769 0.18.0 and 0.11.1.
10770
8b0a1e0b
CB
107712013-01-16 Christian Bruel <christian.bruel@st.com>
10772
10773 PR target/55301
10774 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10775 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10776 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10777
107782013-01-16 DJ Delorie <dj@redhat.com>
10779
10780 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10781 (UNSPECV_SP_SWITCH_E): New.
10782 (sp_switch_1): Change to an unspec.
10783 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10784 replace $r15.
10785
107862013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10787
10788 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10789 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10790 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10791 (expand_mem_thread_fence): Ditto.
10792 (expand_mem_signal_fence): Ditto.
10793 (expand_atomic_load): Ditto.
10794 (expand_atomic_store): Ditto.
10795
0bfbca58 107962013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10797
10798 PR rtl-optimization/55547
10799 PR rtl-optimization/53827
10800 PR debug/53671
10801 PR debug/49888
10802 * alias.c (memrefs_conflict_p): Set sizes to negative after
10803 AND adjustments.
10804
305e3ac1
JJ
108052013-01-15 Jakub Jelinek <jakub@redhat.com>
10806
10807 PR target/55940
10808 * function.c (thread_prologue_and_epilogue_insns): Always
10809 add crtl->drap_reg to set_up_by_prologue.set, even if
10810 stack_realign_drap is false.
10811
f78ac4f2
JBG
108122013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10813
10814 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10815 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10816 *call): Fix indention.
10817
a78a8cc4
TV
108182013-01-15 Tom de Vries <tom@codesourcery.com>
10819
10820 PR target/55876
10821 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10822 Update comment.
10823
0e80383f
VM
108242013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10825
305e3ac1 10826 PR rtl-optimization/55153
0e80383f
VM
10827 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10828
207b5956
MJ
108292013-01-15 Martin Jambor <mjambor@suse.cz>
10830
10831 PR tree-optimization/55920
10832 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10833 accesses as grp_to_be_debug_replaced.
10834
a7818b54
JJ
108352013-01-15 Jakub Jelinek <jakub@redhat.com>
10836
10837 PR tree-optimization/55920
10838 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10839 there is non-useless type conversion needed from debug rhs to lhs,
10840 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10841
b0fe107e
JM
108422013-01-15 Joseph Myers <joseph@codesourcery.com>
10843 Mikael Pettersson <mikpe@it.uu.se>
10844
10845 PR target/43961
10846 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10847 Thumb.
10848 (ASM_OUTPUT_CASE_LABEL): Remove.
10849 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10850 * final.c (shorten_branches): Update alignment of labels before
10851 jump tables if CASE_VECTOR_SHORTEN_MODE.
10852
34ab62ee
RB
108532013-01-15 Richard Biener <rguenther@suse.de>
10854
10855 PR bootstrap/55961
10856 * system.h: Do not include gmp.h for building host tools.
10857
783a3a05
RB
108582013-01-15 Richard Biener <rguenther@suse.de>
10859
10860 PR middle-end/55882
10861 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10862 account for bitpos when computing alignment.
10863
3a579e09
VY
108642013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10865
10866 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10867 (ix86_target_macros_internal): Likewise.
10868
10869 * config/i386/i386.c (m_CORE2I7): Removed.
10870 (m_CORE_HASWELL): New macro.
10871 (m_CORE_ALL): Likewise.
10872 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10873 (initial_ix86_arch_features): Likewise.
10874 (processor_target_table): Initializations for Core avx2.
10875 (cpu_names): New names "core-avx2".
10876 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10877 PROCESSOR_CORE_HASWELL.
10878 (ix86_issue_rate): New case.
10879 (ia32_multipass_dfa_lookahead): Likewise.
10880 (ix86_sched_init_global): Likewise.
10881
10882 * config/i386/i386.h (TARGET_HASWELL): New macro.
10883 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10884 (processor_type): New PROCESSOR_HASWELL.
10885
955f5a07
JJ
108862013-01-15 Jakub Jelinek <jakub@redhat.com>
10887
ff784829
JJ
10888 PR tree-optimization/55955
10889 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10890 *SHIFT_EXPR and *ROTATE_EXPR codes.
10891
955f5a07
JJ
10892 PR tree-optimization/48766
10893 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10894 -ftrapv disable -fwrapv.
10895
aeb8b4e9
GJL
108962013-01-14 Georg-Johann Lay <avr@gjlay.de>
10897
10898 PR target/55974
10899 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10900 etc. to 1 and not to __flash.
10901 Use LL suffix for __INT24_MAX__ with -mint8.
10902 Use ULL suffix for __UINT24_MAX__ with -mint8.
10903
1c494c6a
GJL
109042013-01-14 Georg-Johann Lay <avr@gjlay.de>
10905
10906 * config/avr/avr-arch.h
10907 (struct base_arch_s): Use typedef avr_arch_t instead.
10908 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10909 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10910 * config/avr/avr.c: Same.
10911 * config/avr/avr-devices.c: Same.
10912 * config/avr/driver-avr.c: Same.
10913 * config/avr/gen-avr-mmcu-texi.c: Same.
10914 * config/avr/avr-mcus.def: Adjust comment.
10915
a50344cb
TB
109162013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10917
88e784e6
UB
10918 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10919 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10920
47876a2a 109212013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10922 Andi Kleen <ak@linux.intel.com>
10923
10924 PR target/55948
10925 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10926 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10927 memmodel flag.
10928
00892272
GJL
109292013-01-14 Georg-Johann Lay <avr@gjlay.de>
10930
10931 * config/avr/avr-stdint.h: Remove trailing blanks.
10932 * config/avr/avr-log.h: Same.
10933 * config/avr/avr-arch.h: Same.
10934 * config/avr/avr-devices.c: Same.
10935 * config/avr/avr-dimode.md: Same.
10936 * config/avr/predicates.md: Same.
10937 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10938
00892272
GJL
10939 * config/avr/avr-protos.h: Same. And:
10940 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10941 (init_cumulative_args): Rename to avr_init_cumulative_args.
10942 (expand_prologue): Rename to avr_expand_prologue.
10943 (expand_epilogue): Rename to avr_expand_epilogue.
10944 (adjust_insn_length): Rename to avr_adjust_insn_length.
10945 (notice_update_cc): Rename to avr_notice_update_cc.
10946 (final_prescan_insn): Rename to avr_final_prescan_insn.
10947 * config/avr/avr.c: Same.
10948 * config/avr/avr.h: Same.
10949 * config/avr/avr.md: Remove trailing blanks.
10950 (prologue): Use avr_expand_prologue.
10951 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10952
7bb01996
RB
109532013-01-14 Richard Biener <rguenther@suse.de>
10954
10955 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10956 verify_location, collect_subblocks): New functions.
10957 (verify_gimple_in_cfg): Verify that locations only reference
10958 BLOCKs in the functions BLOCK tree.
10959
2724573f
RB
109602013-01-14 Richard Biener <rguenther@suse.de>
10961
10962 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10963 PHI argument.
10964 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10965 unshare reference.
10966 (insert_out_of_ssa_copy_on_edge): Likewise.
10967 (rewrite_close_phi_out_of_ssa): Likewise.
10968 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10969 debug expressions.
10970 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10971 propagated constants.
10972 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10973 can not be shared.
10974
9a0bbab6
GJL
109752013-01-14 Georg-Johann Lay <avr@gjlay.de>
10976
10977 * config/avr/avr-modes.def: Add GPL copyright notice.
10978
45805f17
UB
109792013-01-13 Uros Bizjak <ubizjak@gmail.com>
10980
10981 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10982 MEMMODEL_MASK to determine memory model.
10983 (atomic_store<mode>): Ditto from operands[2].
10984 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10985
9d60be38
JJ
109862013-01-13 Jakub Jelinek <jakub@redhat.com>
10987
10988 PR fortran/55935
45805f17 10989 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
10990 (fold_gimple_assign): Don't call unshare_expr here.
10991 (fold_ctor_reference): Call unshare_expr.
10992
e7f49d92
TG
109932013-01-13 Terry Guo <terry.guo@arm.com>
10994
aaf1e810
EB
10995 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10996 * doc/fragments.texi: Document MULTILIB_REUSE.
10997 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 10998 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 10999 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
11000 (tmpmultilib4): Ditto.
11001 (multilib_reuse): New multilib argument.
11002
fbd03a27
RS
110032013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11004
11005 * Makefile.in: Update copyright.
11006
b3681f13
TV
110072013-01-12 Tom de Vries <tom@codesourcery.com>
11008
11009 PR middle-end/55890
11010 * calls.c (expand_call): Check if arg_nr is valid.
11011
3f287e4b
MM
110122013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11013
11014 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11015 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
11016 documentation. Add missing '__' in front of
11017 __builtin_ia32_packssdw256.
3f287e4b 11018
1abcd5eb
AK
110192013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11020
11021 PR target/55719
11022 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11023 NO_REGS for larl operands.
11024 (s390_reload_larl_operand): Use s390_load_address instead of
11025 emit_move_insn.
11026
980d0812
RB
110272013-01-11 Richard Biener <rguenther@suse.de>
11028
11029 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11030 (verify_node_sharing): ... here.
11031 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11032
7cb9fd07
EB
110332013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11034
11035 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11036 Substitute TREECHECKING.
11037 * configure: Regenerate.
11038 * Makefile.in (TREECHECKING): New.
11039
47876a2a 110402013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
11041
11042 PR tree-optimization/44061
11043 * tree-vrp.c (extract_range_basic): Compute zero as
11044 value-range for __builtin_constant_p of function parameters.
11045
d1e082c2
RS
110462013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11047
45805f17 11048 Update copyright years.
d1e082c2 11049
f85021b0
VM
110502013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11051
9d60be38 11052 PR rtl-optimization/55672
0160442c
VM
11053 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11054 const to be eliminable.
f85021b0 11055
7a8b1ec4
DE
110562013-01-10 David Edelsohn <dje.gcc@gmail.com>
11057
11058 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11059 * configure: Regenerate.
11060
ad2e5b71
RB
110612013-01-10 Richard Biener <rguenther@suse.de>
11062
ddf9322d 11063 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 11064
ffc5b2bb
RB
110652013-01-10 Richard Biener <rguenther@suse.de>
11066
11067 PR bootstrap/55792
11068 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11069 locations for virtual PHI arguments.
11070 (rewrite_update_phi_arguments): Likewise.
11071
e1f674e4
JS
110722013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11073
11074 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11075 on to assembler.
11076
a57fc743
JJ
110772013-01-10 Jakub Jelinek <jakub@redhat.com>
11078
11079 PR tree-optimization/55921
11080 * tree-complex.c (expand_complex_asm): New function.
11081 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11082
0ff4390d
AK
110832013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11084
11085 PR target/55718
11086 * config/s390/s390.c (s390_symref_operand_p)
11087 (s390_loadrelative_operand_p): Merge the two functions.
11088 (s390_check_qrst_address, print_operand_address): Add parameters
11089 to s390_loadrelative_operand_p invokation.
11090 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11091 (s390_reload_larl_operand, s390_secondary_reload): Use
11092 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11093 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11094
6f557e0e
MS
110952013-01-09 Mike Stump <mikestump@comcast.net>
11096
11097 * dse.c (record_store): Remove unnecessary assert.
11098
7770c9e9
JH
110992013-01-09 Jan Hubicka <jh@suse.cz>
11100
11101 PR tree-optimization/55569
11102 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11103 * cfgloop.h (scale_loop_profile): Likewise.
11104
a19b1432
JH
111052013-01-09 Jan Hubicka <jh@suse.cz>
11106
11107 PR lto/45375
ddf9322d
UB
11108 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11109 functions.
a19b1432
JH
11110 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11111
9a002da8
RS
111122013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11113
11114 PR middle-end/55114
11115 * expr.h (maybe_emit_group_store): Declare.
11116 * expr.c (maybe_emit_group_store): New function.
11117 * builtins.c (expand_builtin_int_roundingfn): Call it.
11118 (expand_builtin_int_roundingfn_2): Likewise.
11119
511dcace
VM
111202013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11121
e1f2b729 11122 PR rtl-optimization/55829
511dcace
VM
11123 * lra-constraints.c (match_reload): Add code for absent output.
11124 (curr_insn_transform): Add code for reloads of matched inputs
11125 without output.
11126
7b0fe4f4
UB
111272013-01-09 Uros Bizjak <ubizjak@gmail.com>
11128
11129 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11130 attribute of movddup insn to DF.
11131 (*vec_interleave_lowv2df): Ditto.
11132 (vec_dupv2df): Ditto.
11133
870ca331
JH
111342013-01-09 Jan Hubicka <jh@suse.cz>
11135
11136 PR tree-optimiation/55875
11137 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11138 EVERY_ITERATION parameter.
7b0fe4f4 11139 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
11140 (idx_infer_loop_bounds): Similarly here.
11141 (n_of_executions_at_most): Simplify
11142 to only test for cases where statement is dominated by the
7b0fe4f4 11143 particular bound; handle correctly the "postdominance" test.
870ca331
JH
11144 (scev_probably_wraps_p): Use max loop iterations info
11145 as a global bound first.
11146
6f575fe4 111472013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
11148 Nick Clifton <nickc@redhat.com>
11149
11150 * config/v850/v850.md (cbranchsf4): New pattern.
11151 (cstoresf4): New pattern.
11152 (cbranchdf4): New pattern.
11153 (cstoredf4): New pattern.
11154 (movsicc): Disallow floating point comparisons.
11155 (cmpsf_le_insn): Fix order of operators.
11156 (cmpsf_lt_insn): Likewise.
11157 (cmpsf_eq_insn): Likewise.
11158 (cmpdf_le_insn): Likewise.
11159 (cmpdf_lt_insn): Likewise.
11160 (cmpdf_eq_insn): Likewise.
11161 (cmpsf_ge_insn): Use LE comparison.
11162 (cmpdf_ge_insn): Likewise.
11163 (cmpsf_gt_insn): Use LT comparison.
11164 (cmpdf_gt_insn): Likewise.
11165 (cmpsf_ne_insn): Delete pattern.
11166 (cmpdf_ne_insn): Delete pattern.
11167 * config/v850/v850.c (v850_gen_float_compare): Use
11168 gen_cmpdf_eq_insn for NE comparison.
11169 (v850_float_z_comparison_operator)
11170 (v850_float_nz_comparison_operator): Move from here ...
11171 * config/v850/predicates.md: ... to here. Move GT and GE
11172 comparisons into v850_float_z_comparison_operator.
11173 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11174 Delete prototype.
11175 (v850_float_nz_comparison_operator): Likewise.
11176
f0d54148
JDA
111772013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11178
11179 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11180 with calls to gen_insvsi/gen_insvdi.
11181
8f01beca
VK
111822013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11183
11184 * config/i386/i386.c (initial_ix86_tune_features): Set up
11185 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11186
2aa579ad
JJ
111872013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11188 Jakub Jelinek <jakub@redhat.com>
11189
11190 PR tree-optimization/48189
11191 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11192 If nitercst is 0, don't predict the exit edge.
11193
6edc3e32 111942013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
11195
11196 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11197 in asm_fprintf with reg_names.
11198 (aarch64_print_operand_address): Likewise.
11199 (aarch64_return_addr): Likewise.
11200 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11201
f6f94d94
JDA
112022013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11203
11204 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11205 (INT_U6_BITS): Likewise.
11206 * config/pa/predicates.md (uint6_operand): New predicate.
11207 (shift5_operand, shift6_operand): Likewise.
11208 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11209 arith32_operand.
11210 (lshrdi3): Use shift6_operand.
11211 (shrpsi4, shrpdi4): New insn patterns.
11212 (extzv): Delete expander.
11213 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11214 predicates in unamed zero extract patterns. Tighten common constraint.
11215 (extv): Delete expander.
11216 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11217 predicates in unamed sign extract patterns. Tighten common constraint.
11218 (insv): Delete expander.
11219 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11220 predicates in unamed insert patterns. Tighten common constraint.
11221 Change uint32_operand predicate to uint6_operand predicate in unamed
11222 DImode pattern to insert constant values of type 1...1xxxx.
11223
36b72910
JH
112242013-01-04 Jan Hubicka <jh@suse.cz>
11225
11226 PR tree-optimization/55823
7b0fe4f4
UB
11227 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11228 issue.
36b72910 11229
47876a2a 112302013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
11231 Uros Bizjak <ubizjak@gmail.com>
11232
11233 PR rtl-optimization/55845
11234 * df-problems.c (can_move_insns_across): Stop scanning at
11235 volatile_insn_p source instruction or give up if
11236 across_from .. across_to range contains any volatile_insn_p
11237 instructions.
11238
4369c11e
TB
112392013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11240
7b0fe4f4
UB
11241 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11242 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11243 Declare.
4369c11e 11244 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 11245 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 11246
aeb7e7c1
JJ
112472013-01-08 Jakub Jelinek <jakub@redhat.com>
11248
11249 PR fortran/55341
11250 * asan.c (asan_clear_shadow): New function.
11251 (asan_emit_stack_protection): Use it.
11252
a02ad1aa
TB
112532013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11254
11255 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11256 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11257 with tab instead of space.
11258
f90d87f5
NC
112592013-01-08 Nick Clifton <nickc@redhat.com>
11260
11261 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11262 register bank 0 at the start of an interrupt handler.
83ffd964
NC
11263 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11264 MDBH registers.
f90d87f5 11265
385eb93d
JG
112662013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11267
11268 * config/aarch64/aarch64-simd.md
11269 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11270 (aarch64_simd_bsl): Likewise.
11271 (aarch64_vcond_internal<mode>): Likewise.
11272 (vcond<mode><mode>): Likewise.
11273 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11274 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11275
4dcd1054
JG
112762013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11277
11278 * config/aarch64/aarch64-builtins.c
11279 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11280
4267a4a6
MJ
112812013-01-08 Martin Jambor <mjambor@suse.cz>
11282
11283 PR debug/55579
11284 * tree-sra.c (analyze_access_subtree): Return true also after
11285 potentially creating a debug-only replacement.
11286
5f4e6de3
JJ
112872013-01-08 Jakub Jelinek <jakub@redhat.com>
11288
3138f224
JJ
11289 PR middle-end/55890
11290 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11291
5f4e6de3
JJ
11292 PR tree-optimization/54120
11293 * tree-vrp.c (range_fits_type_p): Don't allow
11294 src_precision < precision from signed vr to unsigned_p
11295 if vr->min or vr->max is negative.
11296 (simplify_float_conversion_using_ranges): Test can_float_p
11297 against CODE_FOR_nothing.
11298
f3ef18ff
JJ
112992013-01-08 Jakub Jelinek <jakub@redhat.com>
11300 Richard Biener <rguenther@suse.de>
11301
11302 PR middle-end/55851
11303 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11304 types instead of just INTEGER_TYPE types.
11305
25c210f9
MK
113062013-01-07 Mark Kettenis <kettenis@openbsd.org>
11307
11308 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11309 TF_SIZE): Define.
f90d87f5 11310
81826a7b
SE
113112013-01-07 Steve Ellcey <sellcey@mips.com>
11312
11313 PR target/42661
11314 * config/mips/mips.opt: Change mad to mmad to match documentation.
11315
35678514
GJL
113162013-01-07 Georg-Johann Lay <avr@gjlay.de>
11317
11318 PR target/55897
11319 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11320 .progmemx.data now.
11321
e5669488
GJL
113222013-01-07 Georg-Johann Lay <avr@gjlay.de>
11323
11324 PR target/55897
11325 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11326 (avr_addrspace_t): Add .section_name field.
11327 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11328 array size.
11329 (avr_addrspace): Same. Initialize .section_name. Remove last
11330 NULL entry. Put __memx into .progmemx.data.
11331 (progmem_section_prefix): Remove.
11332 (avr_asm_init_sections): No need to initialize progmem_section.
11333 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11334 section name prefix.
11335 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11336 retrieve the progmem section.
11337 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11338 boundary to run over avr_addrspace[].
11339 (avr_register_target_pragmas): Ditto.
11340
656e6f37
JJ
113412013-01-06 Jakub Jelinek <jakub@redhat.com>
11342
11343 * varasm.c (output_constant_def_contents): For asan_protect_global
11344 protected strings, adjust DECL_ALIGN if needed, before testing for
11345 anchored symbols.
11346 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11347 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11348 normal decls.
11349 (output_object_block): For asan protected decls, emit asan padding
11350 after their contents.
11351 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11352 (asan_finish_file): Test it here instead.
11353
6edc3e32
UB
113542013-01-07 Nick Clifton <nickc@redhat.com>
11355 Matthias Klose <doko@debian.org>
11356 Doug Kwan <dougkwan@google.com>
11357 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
11358
11359 PR driver/55470
11360 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11361
11362 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11363
11364 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11365
7b0fe4f4 11366 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
11367
11368 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11369
2a095093
GJL
113702013-01-07 Georg-Johann Lay <avr@gjlay.de>
11371
f3b503f4 11372 PR target/54461
2a095093
GJL
11373 * doc/install.texi (Cross-Compiler-Specific Options): Document
11374 --with-avrlibc.
11375
383f9b34
TB
113762013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11377
11378 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11379 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11380 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11381 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11382 vqmovun_high_s64): Fix source operand number and update copyright.
11383
3626621a
RB
113842013-01-07 Richard Biener <rguenther@suse.de>
11385
11386 PR middle-end/55890
11387 * gimple.h (gimple_call_builtin_p): New overload.
11388 * gimple.c (validate_call): New function.
11389 (gimple_call_builtin_p): Likewise.
11390 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11391 Use gimple_call_builtin_p.
11392 (find_func_clobbers): Likewise.
11393 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11394 (strlen_optimize_stmt): Likewise.
11395
8b2ea410
JG
113962013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11397
11398 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11399 (vld1q_dup_*): Likewise.
11400 (vld1_*): Likewise.
11401 (vld1q_*): Likewise.
11402 (vld1_lane_*): Likewise.
11403 (vld1q_lane_*): Likewise.
11404
9713d329
RB
114052013-01-07 Richard Biener <rguenther@suse.de>
11406
11407 * lto-streamer.h (LTO_minor_version): Bump to 2.
11408
3520f7cc
JG
114092013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11410
11411 * config/aarch64/aarch64-protos.h
11412 (aarch64_const_double_zero_rtx_p): Rename to...
11413 (aarch64_float_const_zero_rtx_p): ...this.
11414 (aarch64_float_const_representable_p): New.
11415 (aarch64_output_simd_mov_immediate): Likewise.
11416 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11417 move immediate case.
11418 * config/aarch64/aarch64.c
11419 (aarch64_const_double_zero_rtx_p): Rename to...
11420 (aarch64_float_const_zero_rtx_p): ...this.
11421 (aarch64_print_operand): Allow printing of new constants.
11422 (aarch64_valid_floating_const): New.
11423 (aarch64_legitimate_constant_p): Check for valid floating-point
11424 constants.
11425 (aarch64_simd_valid_immediate): Likewise.
11426 (aarch64_vect_float_const_representable_p): New.
11427 (aarch64_float_const_representable_p): Likewise.
11428 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11429 (aarch64_output_simd_mov_immediate): New.
11430 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11431 (*movdf_aarch64): Likewise.
11432 * config/aarch64/constraints.md (Ufc): New.
11433 (Y): call aarch64_float_const_zero_rtx.
11434 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11435
e167c04d
RB
114362013-01-07 Richard Biener <rguenther@suse.de>
11437
11438 PR tree-optimization/55888
11439 PR tree-optimization/55862
11440 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11441 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11442 not if it is contained therein.
11443
0139aaab
GJL
114442013-01-07 Georg-Johann Lay <avr@gjlay.de>
11445
11446 * config/avr/t-avr: Typo.
11447
4a176b23
GJL
114482013-01-07 Georg-Johann Lay <avr@gjlay.de>
11449
11450 PR55243
11451 * config/avr/t-avr: Don't automatically rebuild
11452 $(srcdir)/config/avr/t-multilib
11453 $(srcdir)/config/avr/avr-tables.opt
11454 $(srcdir)/doc/avr-mmcu.texi
11455 (avr-mcus): New phony target to build them on request.
11456 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11457 * avr/avr-mcus.def: Adjust comments.
11458
c7afdc98
UB
114592013-01-07 Uros Bizjak <ubizjak@gmail.com>
11460
11461 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11462
1ab05c31
RS
114632013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11464
11465 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11466
488e3acc
RS
114672013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11468
11469 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11470
a89599d2
DE
114712013-01-05 David Edelsohn <dje.gcc@gmail.com>
11472
11473 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11474 to generate profiling.
11475 * config/rs6000/aix64.h (LIB_SPEC): Same.
11476
70f09188
AP
114772013-01-04 Andrew Pinski <apinski@cavium.com>
11478
11479 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11480 New function.
11481 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11482
918d445f
UB
114832013-01-04 Uros Bizjak <ubizjak@gmail.com>
11484
11485 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11486 unconditionally.
11487 (ix86_expand_move): Ditto.
11488 (ix86_zero_extend_to_Pmode): Ditto.
11489 (ix86_expand_call): Ditto.
11490 (ix86_expand_special_args_builtin): Ditto.
11491 (ix86_expand_builtin): Ditto.
11492
361618ec
RB
114932013-01-04 Richard Biener <rguenther@suse.de>
11494
11495 PR tree-optimization/55862
11496 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11497 translating them through PHI nodes.
11498
87eab554
MJ
114992013-01-04 Martin Jambor <mjambor@suse.cz>
11500
11501 PR tree-optimization/55755
11502 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11503 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11504
33879b9f
MP
115052013-01-04 Marek Polacek <polacek@redhat.com>
11506
11507 PR middle-end/55859
11508 * opts.c (default_options_optimization): Clarify error message.
11509
3068819a
RB
115102013-01-04 Richard Biener <rguenther@suse.de>
11511
11512 PR middle-end/55863
11513 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11514 reassociation.
11515
0e4ae794
JDA
115162013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11517
11518 PR target/53789
11519 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
11520 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11521 references.
0e4ae794 11522
65c88cef
RH
115232013-01-03 Richard Henderson <rth@redhat.com>
11524
11525 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11526 after eliminating TLS symbols.
11527
8ac16127
MG
115282013-01-03 Marc Glisse <marc.glisse@inria.fr>
11529
11530 PR bootstrap/50167
11531 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11532 * graphite-poly.c (debug_gmp_value): Likewise.
11533
bb664f09
UB
115342013-01-03 Uros Bizjak <ubizjak@gmail.com>
11535
11536 PR target/55712
11537 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11538 selected code model, define __code_mode_small__, __code_model_medium__,
11539 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11540 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11541 xchg temporary register with %k. Declare temporary register as
11542 early clobbered.
11543 [__x86_64__]: For medium and large code models, preserve %rbx register.
11544
bcf1ef00
RB
115452013-01-03 Richard Biener <rguenther@suse.de>
11546
0506634a 11547 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
11548 (dump_subscript): Adjust.
11549 (finalize_ddr_dependent): Do not dump redundant info.
11550 (analyze_siv_subscript): Adjust.
11551 (subscript_dependence_tester): Likewise.
11552 (compute_affine_dependence): Likewise.
11553
59fd17e3
RB
115542013-01-03 Richard Biener <rguenther@suse.de>
11555
11556 Revert
11557 2013-01-03 Richard Biener <rguenther@suse.de>
11558
11559 PR tree-optimization/55857
11560 * tree-vect-stmts.c (vectorizable_load): Do not setup
11561 re-alignment for invariant loads.
11562
11563 2013-01-02 Richard Biener <rguenther@suse.de>
11564
11565 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11566 invariant load do not generate a vector load from the scalar location.
59fd17e3 11567
595c2679
RB
115682013-01-03 Richard Biener <rguenther@suse.de>
11569
11570 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11571 for not vectorizing.
11572 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11573 not build INDIRECT_REFs, call get_name once only.
11574 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11575 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11576
90bb7d7a
RB
115772013-01-03 Richard Biener <rguenther@suse.de>
11578
11579 PR tree-optimization/55857
11580 * tree-vect-stmts.c (vectorizable_load): Do not setup
11581 re-alignment for invariant loads.
11582
f09b77ca
RB
115832013-01-03 Richard Biener <rguenther@suse.de>
11584
11585 PR lto/55848
11586 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11587 prefer a built-in decl.
11588
3461a16e
JJ
115892013-01-03 Jakub Jelinek <jakub@redhat.com>
11590
df8e2b4f
JJ
11591 * gcc.c (process_command): Update copyright notice dates.
11592 * gcov.c (print_version): Likewise.
11593 * gcov-dump.c (print_version): Likewise.
11594
3461a16e
JJ
11595 PR rtl-optimization/55838
11596 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11597 iv0.step, iv1.step and step.
11598
8b5546d6
JJ
115992013-01-03 Jakub Jelinek <jakub@redhat.com>
11600 Marc Glisse <marc.glisse@inria.fr>
11601
11602 PR tree-optimization/55832
11603 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11604 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11605 integer_{one,zero}_node.
11606
8ab1d2e9
JJ
116072013-01-03 Jakub Jelinek <jakub@redhat.com>
11608
11609 PR debug/54402
11610 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11611 * var-tracking.c (reverse_op): Don't add reverse ops to
11612 VALUEs that have already
0506634a 11613 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 11614
5b9ad1d4
GP
116152013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11616
11617 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11618
e25a6711
TJ
116192013-01-02 Teresa Johnson <tejohnson@google.com>
11620
11621 * dumpfile.c (dump_loc): Print filename with location.
11622 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11623 new location_t parameter to emit complete unroll message with
11624 new dump framework.
11625 (canonicalize_loop_induction_variables): Compute loops location
11626 and pass to try_unroll_loop_completely.
11627 * loop-unroll.c (report_unroll_peel): New function.
11628 (peel_loops_completely): Use new dump format with location
11629 for main dumpfile message, and invoke report_unroll_peel on success.
11630 (decide_unrolling_and_peeling): Ditto.
11631 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11632 by report_unroll_peel.
11633 (decide_peel_completely): Ditto.
11634 (decide_unroll_constant_iterations): Ditto.
11635 (decide_unroll_runtime_iterations): Ditto.
11636 (decide_peel_simple): Ditto.
11637 (decide_unroll_stupid): Ditto.
11638 * cfgloop.c (get_loop_location): New function.
11639 * cfgloop.h (get_loop_location): Declare.
11640
77878621
ST
116412013-01-02 Sriraman Tallam <tmsriram@google.com>
11642
11643 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11644 NULL.
11645
9e65d03e
JDA
116462013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11647
11648 PR middle-end/55198
11649 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11650 BLKmode objects when EXPAND_MEMORY is specified.
11651
6a7da30f
ST
116522013-01-02 Sriraman Tallam <tmsriram@google.com>
11653
11654 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11655 in loop predicate.
11656 (fold_builtin_cpu): Do not share cpu model decls across statements.
11657
e78167f2
JM
116582013-01-02 Jason Merrill <jason@redhat.com>
11659
11660 PR c++/55804
11661 * tree.c (build_array_type_1): Revert earlier change.
11662
8c075fb4
YZ
116632013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11664
11665 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11666 "cortex-a57".
11667 * config/aarch64/aarch64-tune.md: Re-generate.
11668
0682ed3e
RB
116692013-01-02 Richard Biener <rguenther@suse.de>
11670
11671 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11672 invariant load do not generate a vector load from the scalar location.
0682ed3e 11673
b8f6a302
RB
116742013-01-02 Richard Biener <rguenther@suse.de>
11675
11676 PR bootstrap/55784
11677 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11678 * configure: Regenerate.
11679
04b80dbb
RS
116802013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11681
11682 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11683 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11684 (expand_builtin_int_roundingfn_2): Keep the original target around
11685 for the fallback case.
11686
635b0b0c
RS
116872013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11688
11689 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11690 to be clear for sign changes.
11691
42d57399
JH
116922013-01-01 Jan Hubicka <jh@suse.cz>
11693
11694 * ipa-inline-analysis.c: Fix formatting.
11695
5bb6669d
JJ
116962013-01-01 Jakub Jelinek <jakub@redhat.com>
11697
11698 PR tree-optimization/55831
11699 * tree-vect-loop.c (get_initial_def_for_induction): Use
11700 gsi_after_labels instead of gsi_start_bb.
ad41bd84 11701\f
86a2db33 11702Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
11703
11704Copying and distribution of this file, with or without modification,
11705are permitted in any medium without royalty provided the copyright
11706notice and this notice are preserved.