]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
bounds_check_7.f90: Remove "!
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
cb0f665d
JH
12013-06-04 Jan Hubicka <jh@suse.cz>
2
3 PR middle-end/57500
4 * cgraphunit.c (cgraph_process_same_body_aliases): Create
5 non-VAR_DECL node if it does not exist yet.
6
53984b9b
RS
72013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8
9 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
10 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
11 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
12 target_cpu_default setting.
13
5d318fd4
TJ
142013-06-03 Teresa Johnson <tejohnson@google.com>
15
16 * dumpfile.c (opt_info_switch_p): Change -fopt-info
17 default to -fopt-info=optimized instead of all.
18 * doc/invoke.texi: Ditto.
19 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
20 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
21 (execute_vect_slp): Emit BB vectorization success under
22 MSG_OPTIMIZED_LOCATIONS.
23 * tree-vect-slp.c (vect_slp_transform_bb): Change
24 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25 * tree-vect-loop.c (vect_transform_loop): Ditto.
26
ec3af349
JM
272013-06-03 Jason Merrill <jason@redhat.com>
28
29 PR c++/57415
30 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31 Use TARGET_EXPR for C++.
32
1baf9159
JJ
332013-06-03 Jakub Jelinek <jakub@redhat.com>
34
35 PR rtl-optimization/57268
36 * sched-deps.c (sched_analyze_2): Don't flush_pedning_lists
37 if DEBUG_INSN_P (insn).
38
39 Reapply
40 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
41
42 PR rtl-optimization/57268
43 * sched-deps.c (sched_analyze_2): Flush dependence lists if
44 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
45
0f1d3965
YR
462013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
47
48 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
49 (ix86_avoid_lea_for_addr): Likewise.
50 (exact_dependency_1): Likewise.
51 (ix86_adjust_cost): Likewise.
52 (swap_top_of_ready_list): Fix formatting and !reload_completed check
53 removed.
54 (do_reorder_for_imul): Fix typo, formatting and
55 !reload_completed check removed.
56 (ix86_sched_reorder): Fix typo and formatting.
57 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
58 list.
59
3bc30db4
SN
602013-06-03 Sofiane Naci <sofiane.naci@arm.com>
61
62 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
63
19cc6fac
EB
642013-06-03 Eric Botcazou <ebotcazou@adacore.com>
65
66 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
67 <STRING_CST>: Likewise.
68 <VECTOR_CST>: Likewise.
69
c68a6e08
JW
702013-06-01 Janus Weil <janus@gcc.gnu.org>
71 Mikael Morin <mikael@gcc.gnu.org>
72
73 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
74 * config.in: Regenerated.
75 * configure: Regenerated.
76
38e55e5c
JH
772013-06-01 Jan Hubicka <jh@suse.cz>
78
79 PR middle-end/57366
80 * cgraphunit.c (compile): When weakref is not supported,
81 set up transparent aliases before final output pass.
82 * varasm.c (assemble_alias): Do not try to do it here.
83
eb51d2ff
JH
842013-06-01 Jan Hubicka <jh@suse.cz>
85
86 PR middle-end/57467
87 * passes.c (for_per_function): Skip unanalyzed functions.
88
40a7fe1e
JH
892013-06-01 Jan Hubicka <jh@suse.cz>
90
91 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
92 (lto_symtab_merge_symbols_1): ... this one.
93 (lto_symtab_merge_cgraph_nodes): Rename to ...
94 (lto_symtab_merge_symbols): ... this one; simplify.
95 * cgraph.c (same_body_aliases_done): Rename to ...
96 (cpp_implicit_aliases_done): ... this one.
97 (cgraph_create_function_alias): Update.
98 (cgraph_same_body_alias): Update.
99 (dump_cgraph_node): Remove alias dumping; simplify
100 thunk dumping.
101 (verify_edge_corresponds_to_fndecl): Simplify.
102 * cgraph.h (symtab_node_base): Add cpp_implicit_alias,
103 alias_target.
104 (cgraph_node): Remove same_body_alias.
105 (varpool_node): Remove alias_of and extra_name_alias.
106 (same_body_aliases_done): Rename to ..
107 (cpp_implicit_aliases_done): ... this one.
108 (symtab_alias_ultimate_target): Add default parameter.
109 (symtab_resolve_alias): New function.
110 (fixup_same_cpp_alias_visibility): Declare.
111 (cgraph_function_node): Add default parameter.
112 (cgraph_node_asm_name): Likewise.
113 (cgraph_function_or_thunk_node): Add default parameter; do
114 not ICE when it is NULL.
115 (varpool_variable_node): Likewise.
116 * tree-emutls.c (create_emultls_var): Update.
117 (ipa_lower_emutls): Update.
118 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
119 (cgraph_reset_node): Reset alias info.
120 (cgraph_finalize_function): Update.
121 (fixup_same_cpp_alias_visibility): Move to symtab.c.
122 (analyze_function): Simplify.
123 (cgraph_process_same_body_aliases): Simplify.
124 (analyze_functions): Fixup same body aliases.
125 (handle_alias_pairs): Simplify.
126 (assemble_thunk): Update.
127 (assemble_thunks_and_aliases): Update.
128 (output_weakrefs): Rewrite.
129 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
130 (lto_output_varpool_node): Likewise.
131 (compute_ltrans_boundary): Remve assert.
132 (get_alias_symbol): New functoin.
133 (input_node): Rewrite alias handling.
134 (input_varpool_node): Likewise.
135 * ipa-pure-const.c (propagate_pure_const): Fix formating.
136 * ipa.c (process_references): Handle weakrefs correctly.
137 (symtab_remove_unreachable_nodes): Likewise.
138 * trans-mem.c (get_cg_data): Update.
139 (ipa_tm_create_version_alias): Update.
140 (ipa_tm_execute): Update.
141 * symtab.c (dump_symtab_base): Dump aliases.
142 (verify_symtab_base): Verify aliases.
143 (symtab_node_availability): New function.
144 (symtab_alias_ultimate_target): Simplify.
145 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
146 handle all the fixup cases.
147 (symtab_resolve_alias): New function.
148 * passes.c (ipa_write_summaries): Handle weakrefs.
149 * varpool.c (varpool_analyze_node): Simplify.
150 (assemble_aliases): Update.
151 (varpool_create_variable_alias): Simplify.
152 (varpool_extra_name_alias): Simplify.
153 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
154 (lto_symtab_merge_symbols): ... this one.
155
21759881
DT
1562013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
157
158 Revert
159 PR rtl-optimization/57268
160 * sched-deps.c (sched_analyze_2): Flush dependence lists if
161 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
162
daf4e940
TB
1632013-06-01 Tobias Burnus <burnus@net-b.de>
164
165 Partially reverted:
166 2013-05-31 Tobias Burnus <burnus@net-b.de>
167
168 PR middle-end/57073
169 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
170 further up.
171
c359d8d0
DT
1722013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
173
174 PR rtl-optimization/57268
175 * sched-deps.c (sched_analyze_2): Flush dependence lists if
176 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
177
4172215d
EB
1782013-05-31 Eric Botcazou <ebotcazou@adacore.com>
179
180 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
181 unordered comparison operators when -fno-trapping-math is in effect
182 on the e500.
183 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
184 and implement unordered comparison operators properly on the e500.
185
a8c50132
EB
1862013-05-31 Eric Botcazou <ebotcazou@adacore.com>
187
188 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
189 for constant scalar integers.
190 (simplify_relational_operation_1): Likewise.
191
44626634
SB
1922013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
193
194 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
195 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
196 Fix comment.
197
55805e54
YR
1982013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
199 Igor Zamyatin <igor.zamyatin@intel.com>
200
201 Silvermont (SLM) architecture performance tuning.
202 * config/i386/i386.h (enum ix86_tune_indices): Add
203 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
204 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
205
206 * config/i386/i386.c (initial_ix86_tune_features)
207 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
208 (ix86_lea_outperforms): Handle Silvermont tuning.
209 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
210 call.
211 (ix86_use_lea_for_mov): Likewise.
212 (ix86_avoid_lea_for_addr): Likewise.
213 (ix86_lea_for_add_ok): Likewise.
214 (exact_dependency_1): New function.
215 (exact_store_load_dependency): Likewise.
216 (ix86_adjust_cost): Handle Silvermont tuning.
217 (do_reoder_for_imul): Likewise.
218 (swap_top_of_ready_list): New function.
219 (ix86_sched_reorder): Changed to handle Silvermont tuning.
220
221 * config/i386/i386.md (peepholes that split memory operand in fp
222 converts): New.
223
e19c9de2
MS
2242013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
225
226 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
227 Remove un-necessary braces.
228
38e6c9a6
MS
2292013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
230
231 * config/aarch64/aarch64.c (aarch64_classify_symbol):
232 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
233
e3530904
TB
2342013-05-31 Tobias Burnus <burnus@net-b.de>
235
236 PR middle-end/57073
237 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
238 further up.
239
b6af05a9
KT
2402013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
241
242 PR target/56315
243 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
244 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
245 * config/arm/neon.md (iordi3_neon): Remove.
246 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
247 * config/arm/predicates.md (imm_for_neon_logic_operand):
248 Move to earlier in the file.
249 (neon_logic_op2): Likewise.
250 (arm_iordi_operand_neon): New predicate.
251
f800c166
RB
2522013-05-31 Richard Biener <rguenther@suse.de>
253
254 PR tree-optimization/57478
255 PR tree-optimization/57453
256 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
257 are life as well.
258
e571fa59
KP
2592013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
260
261 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
262 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
263
0fa6e0ef
TB
2642013-05-30 Tobias Burnus <burnus@net-b.de>
265 Thomas Koenig <tkoenig@gcc.gnu.org>
266
267 PR middle-end/57073
268 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
269 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
270
4688ddf5
SB
2712013-05-30 Steven Bosscher <steven@gcc.gnu.org>
272
0fa6e0ef 273 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 274
3b9ceb4b
VM
2752013-05-30 Vladimir Makarov <vmakarov@redhat.com>
276
277 * target.def (register_usage_leveling_p): New hook.
278 * targhooks.c (default_register_usage_leveling_p): New.
279 * targhooks.h (default_register_usage_leveling_p): New prototype.
280 * lra-assigns.c (register_usage_leveling_p): Use the hook.
281 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
282 * doc/tm.texi: Update.
283 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
284
65f9e789
IB
2852013-05-30 Ian Bolton <ian.bolton@arm.com>
286
287 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
288 (*insv_reg<mode>): New define_insn.
289
ca035367
JR
2902013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
291
292 PR rtl-optimization/57439
293 * postreload.c (move2add_valid_value_p): Check that we have
294 a zero subreg_regno_offset when accessing the register in
295 the requested mode.
296
0b871ccf
YR
2972013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
298 Igor Zamyatin <igor.zamyatin@intel.com>
299
300 Silvermont (SLM) architecture pipeline model, tuning and
301 insn selection.
302 * config.gcc: Add slm config options and target.
303
304 * config/i386/slm.md: New.
305
306 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
307
308 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
309 PROCESSOR_SLM.
310 (ix86_target_macros_internal): Likewise.
311
312 * gcc/config/i386/i386.c (slm_cost): New cost.
313 (m_SLM): New macro flag.
314 (initial_ix86_tune_features): Set m_SLM.
315 (x86_accumulate_outgoing_args): Likewise.
316 (x86_arch_always_fancy_math_387): Likewise.
317 (processor_target_table): Add slm cost.
318 (cpu_names): Add slm cpu name.
319 (x86_option_override_internal): Set SLM ISA.
320 (ix86_issue_rate): New case PROCESSOR_SLM.
321 (ia32_multipass_dfa_lookahead): Likewise.
322 (fold_builtin_cpu): Add slm.
323
324 * config/i386/i386.h (TARGET_SLM): New target macro.
325 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
326 (processor_type): Add PROCESSOR_SLM.
327
328 * config/i386/i386.md (cpu): Add new value "slm".
329 (slm.md): Include slm.md.
330
24d5b097
XG
3312013-05-30 Bernd Schmidt <bernds@codesourcery.com>
332 Zhenqiang Chen <zhenqiang.chen@linaro.org>
333
334 * config/arm/arm-protos.h: Add and update function protos.
335 * config/arm/arm.c (use_simple_return_p): New added.
336 (thumb2_expand_return): Check simple_return flag.
337 * config/arm/arm.md: Add simple_return and conditional simple_return.
338 * config/arm/iterators.md: Add iterator for return and simple_return.
339
c1cccc15
ZC
3402013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
341
342 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
343 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
344 (arm_emit_vfp_multi_reg_pop): Likewise.
345 (thumb2_emit_ldrd_pop): Likewise.
346 (arm_expand_epilogue): Add misc REG_CFA notes.
347 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
348
3a4f280b
LC
3492013-05-29 Lawrence Crowl <crowl@google.com>
350
351 * config/arm/t-arm: Update for below.
352
353 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
354 Change type to hash_table. Update dependent calls and types.
355
356 * config/i386/t-cygming: Update for below.
357
358 * config/i386/t-interix: Update for below.
359
360 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
361 Change type to hash_table. Update dependent calls and types.
362 (i386_find_on_wrapper_list::wrappers): Likewise.
363
364 * config/ia64/t-ia64: Update for below.
365
366 * config/ia64/ia64.c (bundle_state_table):
367 Change type to hash_table. Update dependent calls and types.
368
369 * config/mips/mips.c (mips_reorg_process_insns::htab):
370 Change type to hash_table. Update dependent calls and types.
371
372 * config/sol2.c (solaris_comdat_htab):
373 Change type to hash_table. Update dependent calls and types.
374
375 * config/t-sol2: Update for above.
376
1388a0e3
TJ
3772013-05-29 Teresa Johnson <tejohnson@google.com>
378
379 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
380 functions are not yet marked as defined.
381
a5965b52
MM
3822013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
383 Pat Haugen <pthaugen@us.ibm.com>
384 Peter Bergner <bergner@vnet.ibm.com>
385
386 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
387 instructions.
388 (VEC_A): Likewise.
389 (VEC_C): Likewise.
390 (vrotl<mode>3): Likewise.
391 (vashl<mode>3): Likewise.
392 (vlshr<mode>3): Likewise.
393 (vashr<mode>3): Likewise.
394
395 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
396 support for power8 V2DI builtins.
397
398 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
399 power8 V2DI builtins.
400 (vupkhsw): Likewise.
401 (vupklsw): Likewise.
402 (vaddudm): Likewise.
403 (vminsd): Likewise.
404 (vmaxsd): Likewise.
405 (vminud): Likewise.
406 (vmaxud): Likewise.
407 (vpkudum): Likewise.
408 (vpksdss): Likewise.
409 (vpkudus): Likewise.
410 (vpksdus): Likewise.
411 (vrld): Likewise.
412 (vsld): Likewise.
413 (vsrd): Likewise.
414 (vsrad): Likewise.
415 (vsubudm): Likewise.
416 (vcmpequd): Likewise.
417 (vcmpgtsd): Likewise.
418 (vcmpgtud): Likewise.
419 (vcmpequd_p): Likewise.
420 (vcmpgtsd_p): Likewise.
421 (vcmpgtud_p): Likewise.
422 (vupkhsw): Likewise.
423 (vupklsw): Likewise.
424 (vaddudm): Likewise.
425 (vmaxsd): Likewise.
426 (vmaxud): Likewise.
427 (vminsd): Likewise.
428 (vminud): Likewise.
429 (vpksdss): Likewise.
430 (vpksdus): Likewise.
431 (vpkudum): Likewise.
432 (vpkudus): Likewise.
433 (vrld): Likewise.
434 (vsld): Likewise.
435 (vsrad): Likewise.
436 (vsrd): Likewise.
437 (vsubudm): Likewise.
438
439 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
440 support for power8 V2DI instructions.
441
442 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
443 power8 V2DI instructions. Combine pack and unpack insns to use an
444 iterator for each mode. Check whether a particular mode supports
445 Altivec instructions instead of just checking TARGET_ALTIVEC.
446 (UNSPEC_VPKUWUM): Likewise.
447 (UNSPEC_VPKSHSS): Likewise.
448 (UNSPEC_VPKSWSS): Likewise.
449 (UNSPEC_VPKUHUS): Likewise.
450 (UNSPEC_VPKSHUS): Likewise.
451 (UNSPEC_VPKUWUS): Likewise.
452 (UNSPEC_VPKSWUS): Likewise.
453 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
454 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
455 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
456 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
457 (UNSPEC_VUPKHSB): Likewise.
458 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
459 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
460 (UNSPEC_VUPKHSH): Likewise.
461 (UNSPEC_VUPKLSB): Likewise.
462 (UNSPEC_VUPKLSH): Likewise.
463 (VI2): Likewise.
464 (VI_char): Likewise.
465 (VI_scalar): Likewise.
466 (VI_unit): Likewise.
467 (VP): Likewise.
468 (VP_small): Likewise.
469 (VP_small_lc): Likewise.
470 (VU_char): Likewise.
471 (add<mode>3): Likewise.
472 (altivec_vaddcuw): Likewise.
473 (altivec_vaddu<VI_char>s): Likewise.
474 (altivec_vadds<VI_char>s): Likewise.
475 (sub<mode>3): Likewise.
476 (altivec_vsubcuw): Likewise.
477 (altivec_vsubu<VI_char>s): Likewise.
478 (altivec_vsubs<VI_char>s): Likewise.
479 (altivec_vavgs<VI_char>): Likewise.
480 (altivec_vcmpbfp): Likewise.
481 (altivec_eq<mode>): Likewise.
482 (altivec_gt<mode>): Likewise.
483 (altivec_gtu<mode>): Likewise.
484 (umax<mode>3): Likewise.
485 (smax<mode>3): Likewise.
486 (umin<mode>3): Likewise.
487 (smin<mode>3): Likewise.
488 (altivec_vpkuhum): Likewise.
489 (altivec_vpkuwum): Likewise.
490 (altivec_vpkshss): Likewise.
491 (altivec_vpkswss): Likewise.
492 (altivec_vpkuhus): Likewise.
493 (altivec_vpkshus): Likewise.
494 (altivec_vpkuwus): Likewise.
495 (altivec_vpkswus): Likewise.
496 (altivec_vpks<VI_char>ss): Likewise.
497 (altivec_vpks<VI_char>us): Likewise.
498 (altivec_vpku<VI_char>us): Likewise.
499 (altivec_vpku<VI_char>um): Likewise.
500 (altivec_vrl<VI_char>): Likewise.
501 (altivec_vsl<VI_char>): Likewise.
502 (altivec_vsr<VI_char>): Likewise.
503 (altivec_vsra<VI_char>): Likewise.
504 (altivec_vsldoi_<mode>): Likewise.
505 (altivec_vupkhsb): Likewise.
506 (altivec_vupkhs<VU_char>): Likewise.
507 (altivec_vupkls<VU_char>): Likewise.
508 (altivec_vupkhsh): Likewise.
509 (altivec_vupklsb): Likewise.
510 (altivec_vupklsh): Likewise.
511 (altivec_vcmpequ<VI_char>_p): Likewise.
512 (altivec_vcmpgts<VI_char>_p): Likewise.
513 (altivec_vcmpgtu<VI_char>_p): Likewise.
514 (abs<mode>2): Likewise.
515 (vec_unpacks_hi_v16qi): Likewise.
516 (vec_unpacks_hi_v8hi): Likewise.
517 (vec_unpacks_lo_v16qi): Likewise.
518 (vec_unpacks_hi_<VP_small_lc>): Likewise.
519 (vec_unpacks_lo_v8hi): Likewise.
520 (vec_unpacks_lo_<VP_small_lc>): Likewise.
521 (vec_pack_trunc_v8h): Likewise.
522 (vec_pack_trunc_v4si): Likewise.
523 (vec_pack_trunc_<mode>): Likewise.
524
525 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
526 V2DI builtins.
527 (vec_vmaxsd): Likewise.
528 (vec_vmaxud): Likewise.
529 (vec_vminsd): Likewise.
530 (vec_vminud): Likewise.
531 (vec_vpksdss): Likewise.
532 (vec_vpksdus): Likewise.
533 (vec_vpkudum): Likewise.
534 (vec_vpkudus): Likewise.
535 (vec_vrld): Likewise.
536 (vec_vsld): Likewise.
537 (vec_vsrad): Likewise.
538 (vec_vsrd): Likewise.
539 (vec_vsubudm): Likewise.
540 (vec_vupkhsw): Likewise.
541 (vec_vupklsw): Likewise.
542
e70670cf
JH
5432013-05-29 Jan Hubicka <jh@suse.cz>
544
545 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
546 flags; reorder rest of fields in more consistent way.
547 (varpool_node): Remove analyzed, finalized and alias.
548 (cgraph_ndoe): Likewise.
549 (symtab_alias_ultimate_target): New function.
550 (cgraph_function_node): Move offline.
551 (cgraph_reset_node): Declare.
552 (cgraph_comdat_can_be_unshared_p): Remove.
553 (varpool_remove_initializer): Declare.
554 (varpool_first_defined_variable, varpool_next_defined_variable
555 cgraph_first_defined_function, cgraph_next_defined_function): Update.
556 (cgraph_function_with_gimple_body_p): Update.
557 (varpool_all_refs_explicit_p): Update.
558 (symtab_alias_target): New function.
559 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
560 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
561 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
562 (varpool_variable_node): Likewise.
563 * cgraph.c (cgraph_create_function_alias): Update.
564 (cgraph_add_thunk): Update.
565 (cgraph_remove_node): Update.
566 (dump_cgraph_node): Do not dump removed flags.
567 (cgraph_function_body_availability): Update.
568 (cgraph_propagate_frequency): Update.
569 (verify_cgraph_node): Check sanity of local flag.
570 (cgraph_function_node): Move here from cgraph.h; revamp for
571 cgraph_function_or_thunk_node.
572 * lto-symtab.c (lto_varpool_replace_node): Update.
573 (lto_symtab_resolve_can_prevail_p): Update.
574 (lto_symtab_merge_cgraph_nodes): Update.
575 * ipa-cp.c (determine_versionability, initialize_node_lattices,
576 propagate_constants_accross_call, devirtualization_time_bonus,
577 ipcp_propagate_stage): Update.
578 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
579 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
580 * ipa-reference.c (propagate): Update.
581 (write_node_summary_p): Update.
582 * toplev.c (wrapup_global_declaration_2): Update.
583 * cgraphunit.c (cgraph_analyze_function): Rename to ...
584 (analyze_function) ... this one.
585 (cgraph_process_new_functions): Update.
586 (cgraph_reset_node): Export.
587 (cgraph_finalize_function): Update.
588 (cgraph_add_new_function): Update.
589 (process_function_and_variable_attributes): Update.
590 (varpool_finalize_decl): Update.
591 (symbol_finalized): Remove.
592 (symbol_finalized_and_needed): Rename to ...
593 (symbol_defined_and_needed): ... update.
594 (cgraph_analyze_functions): Update.
595 (handle_alias_pairs): Update.
596 (mark_functions_to_output): Update.
597 (assemble_thunk): Update.
598 (output_in_order): Update.
599 (output_weakrefs): Update.
600 (finalize_compilation_unit): Update.
601 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
602 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
603 input_node, input_varpool_node): Update.
604 * dbxout.c (dbxout_expand_expr): Update.
605 * cgraphclones.c (cgraph_clone_node): Update.
606 (cgraph_copy_node_for_versioning): Update.
607 (cgraph_materialize_clone): Update.
608 (cgraph_materialize_all_clones): Update.
609 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
610 propagate_pure_const, propagate_nothrow): Update.
611 * lto-streamer-out.c (lto_output, write_symbol): Update.
612 * ipa-utils.c (ipa_reverse_postorder): Update.
613 * ipa-inline.c (can_inline_edge_p): Update.
614 (update_caller_keys, ipa_inline): Update.
615 * dwarf2out.c (reference_to_unused,
616 premark_types_used_by_global_vars_helper): Update.
617 * tree-eh.c (tree_could_trap_p): Update.
618 * ipa-split.c (consider_split, execute_split_functions): Update.
619 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
620 has_addr_references_p): Update;
621 move ahead in file for better readability.
622 (process_references): Simplify.
623 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
624 bodies are removed.
625 (cgraph_comdat_can_be_unshared_p): Make static.
626 (cgraph_externally_visible_p): Update.
627 (varpool_externally_visible_p): Update.
628 (function_and_variable_visibility): Update.
629 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
630 ipa_tm_mark_force_output_node): Update.
631 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
632 estimate_edge_devirt_benefit, inline_generate_summary,
633 inline_write_summary): Update.
634 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
635 * ipa-prop.c (ipa_compute_jump_functions): Update.
636 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
637 read_replacements_section): Update.
638 * varasm.c (mark_decl_referenced): Update.
639 (assemble_alias, dump_tm_clone_pairs): Update.
640 * tree-inline.c (copy_bb): Update.
641 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
642 Update.
643 * symtab.c (dump_symtab_base): Print new flags.
644 (verify_symtab_base): Verify new flags.
645 (symtab_alias_ultimate_target): New function.
646 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
647 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
648 Update.
649 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
650 * i386.c (ix86_get_function_versions_dispatcher,
651 ix86_generate_version_dispatcher_body): Update.
652 (fold_builtin_cpu): Use varpool_add_new_variable.
653 * varpool.c (varpool_remove_initializer): Break out from ...
654 (varpool_remove_node): ... this one.
655 (dump_varpool_node, varpool_node_for_asm,
656 cgraph_variable_initializer_availability, varpool_analyze_node,
657 varpool_assemble_decl, varpool_remove_unreferenced_decls,
658 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
659
182802ad
JH
6602013-05-29 Jan Hubicka <jh@suse.cz>
661
662 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
663
8190b609
ER
6642013-05-29 Easwaran Raman <eraman@google.com>
665
666 PR tree-optimization/57442
667 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
668 when control exits the main loop.
669
69f5aa9b
SKS
6702013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
671
672 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
673 and RX600.
674 * rx/rx.opt: Add macro for rx100 with string rx100 and value
675 RX100.
676 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
677 * rx/t-rx: Add rx100 under multi library matches option for nofpu
678 option.
679
4b847da9
BS
6802013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
681
682 PR tree-optimization/57441
683 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
684 Don't limit size of incr_vec to number of candidates.
685
4fc43c39
SE
6862013-05-29 Steve Ellcey <sellcey@imgtec.com>
687
688 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
689 and mips16 directories.
690 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
691 mips16.
692 (MULTILIB_DIRNAMES): Ditto.
693 (MULTILIB_EXCEPTIONS): Add new exceptions.
694 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
695 (MULTILIB_DIRNAMES): Ditto.
696 (MULTILIB_EXCEPTIONS): Add new exceptions.
697
a5350ddc
CSS
6982012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
699 Marcus Shawcroft <marcus.shawcroft@arm.com>
700
701 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
702 SYMBOL_TINY_ABSOLUTE.
703 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
704 SYMBOL_TINY_ABSOLUTE.
705 (aarch64_expand_mov_immediate): Likewise.
706 (aarch64_classify_symbol): Likewise.
707 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
708 Permit SYMBOL_TINY_ABSOLUTE.
709 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
710
17f4d4bf
CSS
7112013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
712 Marcus Shawcroft <marcus.shawcroft@arm.com>
713
714 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
715 Refactor if/switch. Replace gcc_assert with if.
716
c0186656
GG
7172013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
718
719 * config/i386/i386.c (initial_ix86_tune_features): Enable
720 FP Reassociation for AMD bdver1 and bdver2.
721
d20188f3
MJ
7222013-05-29 Martin Jambor <mjambor@suse.cz>
723
724 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
725 and IMAGPART_EXPR do not occur within other handled_components.
726
292cba13
RB
7272013-05-29 Richard Biener <rguenther@suse.de>
728
729 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
730 access on whether the use is in the BB we currently try to
731 vectorize.
732 (vect_bb_vectorization_profitable_p): Pass the BB we currently
733 vectorize to vect_bb_slp_scalar_cost.
734
6eddf228
RB
7352013-05-29 Richard Biener <rguenther@suse.de>
736
737 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
738 computing scalar cost offsetted by stmts that are kept live
739 by scalar uses.
740 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
741 for computation of scalar cost.
742
7df36117
SE
7432013-05-28 Steve Ellcey <sellcey@mips.com>
744
745 * config/mips/mips-cpus.def (mips32r2): Change processor type.
746
36536d79
BI
7472013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
748
749 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
750 array notation built-in reduction functions.
751 * doc/passes.texi (Passes): Added documentation about changes done
752 for Cilk Plus.
753 * doc/invoke.texi (C Dialect Options): Added documentation about
754 the -fcilkplus flag.
755 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
756 (BUILTINS_DEF): Depend on cilkplus.def.
757 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
758 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
759 * cilkplus.def: New file.
760
b49eefa5
JR
7612013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
762
763 PR rtl-optimization/57439
764 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
765
9daf6dbb
ER
7662013-05-28 Easwaran Raman <eraman@google.com>
767
768 PR tree-optimization/57337
769 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
770 (find_insert_point): Correctly identify the insertion point
771 when two statements with the same UID is compared.
772
fbd7e877
RB
7732013-05-28 Richard Biener <rguenther@suse.de>
774
775 PR tree-optimization/56787
776 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
777 from the list of data references.
778 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
779 clobbers.
780 (vect_analyze_loop_operations): Likewise.
781 (vect_transform_loop): Remove clobbers.
782
bbba1117
MJ
7832013-05-28 Martin Jambor <mjambor@suse.cz>
784
785 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
786 and REALPART_EXPRs have scalar type.
787
bd388c2a
RB
7882013-05-28 Richard Biener <rguenther@suse.de>
789
790 PR tree-optimization/57411
791 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
792 virtual operands.
793 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
794 virtual operand propagation.
795
2f56a311
EB
7962013-05-28 Eric Botcazou <ebotcazou@adacore.com>
797
798 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
799 destination register for bmasksi_vis.
800 (vector_init_bshuffle): Likewise.
801 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
802
5c3eacbb
EB
8032013-05-28 Eric Botcazou <ebotcazou@adacore.com>
804
805 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
806 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
807 mode if the instruction isn't available in the original mode.
808 * config/sparc/sparc.opt (mfix-ut699): New option.
809 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
810 (divdf3): Turn into expander.
811 (divdf3_nofix): New insn.
812 (divdf3_fix): Likewise.
813 (divsf3): Disable if -mfix-ut699.
814 (sqrtdf2): Turn into expander.
815 (sqrtdf2_nofix): New insn.
816 (sqrtdf2_fix): Likewise.
817 (sqrtsf2): Disable if -mfix-ut699.
818
a1756c0a
RB
8192013-05-27 Richard Biener <rguenther@suse.de>
820
821 PR middle-end/57412
822 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
823 block for the new loop.
824
5a892248
RB
8252013-05-27 Richard Biener <rguenther@suse.de>
826
827 PR tree-optimization/57343
828 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
829 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
830 (number_of_iterations_cond): Do not build the folded tree.
831
d1de852b
RB
8322013-05-27 Richard Biener <rguenther@suse.de>
833
834 Revert
835 PR middle-end/57381
836 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
837 OEP_CONSTANT_ADDRESS_OF retained.
838
839 PR tree-optimization/57417
840 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
841 for unchanged base.
842 (set_ssa_val_to): Compare addresses using
843 get_addr_base_and_unit_offset.
844
7894bc6b
JR
8452013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
846
847 PR rtl-optimization/56833
848 * postreload.c (move2add_record_mode): New function.
849 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
850 (move2add_use_add2_insn): Use move2add_record_sym_value.
851 (move2add_use_add3_insn): Likewise.
852 (reload_cse_move2add): Use move2add_valid_value_p and
853 move2add_record_mode. Invalidate call-clobbered and REG_INC
854 affected regs by setting reg_mode to VOIDmode.
855 (move2add_note_store): Don't pretend the inside of a SUBREG is
856 the actual destination. Invalidate single/leading registers by
857 setting reg_mode to VOIDmode.
858 Use move2add_record_sym_value, move2add_valid_value_p and
859 move2add_record_mode.
860
b03be25f
RB
8612013-05-27 Richard Biener <rguenther@suse.de>
862
863 PR tree-optimization/57396
864 * tree-affine.c (double_int_constant_multiple_p): Properly
865 return false for val == 0 and div != 0.
866
44e88db2
RS
8672013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
868
869 * config/mips/mips.h: Use #elif in preprocessor conditions.
870
3b859704
RS
8712013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
872
873 PR target/53916
874 * config/mips/constraints.md (kl): New constraint.
875 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
876 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
877 constraint for operand 0. Split after CSE for MIPS16. Emit a move
878 from LO for MIPS16.
879 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
880
c979d5f5
RS
8812013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
882
883 PR target/55777
884 * config/mips/mips.c (mips_can_inline_p): New function.
885 (TARGET_CAN_INLINE_P): Define.
886
8e90de43
SB
8872013-05-25 Steven Bosscher <steven@gcc.gnu.org>
888
889 * sched-int.h (ds_t, dw_t): Make unsigned int.
890 Fix documentation that describes how all the ds_t bits are used.
891 Reserve the last bit for delayed-branch scheduling.
892 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
893 (BITS_PER_DEP_WEAK): Fix definition and documentation.
894 (gen_dep_weak_1): Remove prototype.
895 * sched-deps.c (get_dep_weak_1): Make static.
896 * target.def (speculate_insn, needs_block_p, gen_spec_check,
897 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
898 * doc/tm.texi: Regenerate.
899 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
900
cb5cb194
SB
9012013-05-24 Steven Bosscher <steven@gcc.gnu.org>
902
903 PR debug/56950
904 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
905
5bd93ff6
NS
9062013-05-24 Nathan Sidwell <nathan@codesourcery.com>
907 Sandra Loosemore <sandra@codesourcery.com>
908
909 * config.gcc (powerpc-*): Allow native for with-cpu.
910
2343af65
JL
9112013-05-24 Jeff Law <law@redhat.com>
912
913 PR tree-optimization/57124
914 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
915 conversion feeding a condition if the range has an overflow
916 if -fstrict-overflow. Add warnings for when we do make the
917 transformation.
918
3ad695b9
DC
9192013-05-24 Dehao Chen <dehao@google.com>
920
04960246 921 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
922 (locus_discrim_hasher): Likewise.
923 (locus_discrim_hasher::hash): Likewise.
924 (locus_discrim_hasher::equal): Likewise.
925
82338059
MJ
9262013-05-24 Martin Jambor <mjambor@suse.cz>
927
928 PR tree-optimization/57294
929 * cgraph.h (ipa_record_stmt_references): Declare.
930 * cgraphbuild.c (ipa_record_stmt_references): New function.
931 (build_cgraph_edges): Use ipa_record_stmt_references.
932 (rebuild_cgraph_edges): Likewise.
933 (cgraph_rebuild_references): Likewise.
934 * ipa-prop.c (ipa_modify_call_arguments): Discard references
935 associated with the old statement and build references from the
936 newly built statements.
937 * ipa-ref.c (ipa_remove_stmt_references): New function.
938 * ipa-ref.h (ipa_remove_stmt_references): Declare.
939
1ccd4874
VM
9402013-05-24 Vladimir Makarov <vmakarov@redhat.com>
941
55805e54 942 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 943 mem-mem moves.
55805e54 944 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 945 too.
55805e54 946 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
947 secondary memory moves.
948 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
949 reg set up in the current insn.
950
25e25c73
DC
9512013-05-24 Dehao Chen <dehao@google.com>
952
04960246 953 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
954 hash function.
955 (locus_descrim_hasher::equal): Likewise.
04960246 956 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
957 (make_edges): Likewise.
958 (next_discriminator_for_locus): Likewise.
959 (same_line_p): Likewise.
960 (assign_discriminators): Likewise.
961 (make_cond_expr_edges): Likewise.
962 (make_gimple_switch_edges): Likewise.
963 (make_goto_expr_edges): Likewise.
964 (make_gimple_asm_edges): Likewise.
965
50d38551
IB
9662013-05-24 Ian Bolton <ian.bolton@arm.com>
967
968 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
969 X format specifier to only display bottom 16 bits.
970 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
971 immediate to match for operand 2, since it will be masked.
972
aea0101d
RB
9732013-05-24 Richard Biener <rguenther@suse.de>
974
975 PR tree-optimization/57287
976 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
977 all SSA names that occur in abnormal PHIs.
978
634e03d3
AI
9792013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
980
981 PR tree-ssa/57385
982 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
983 that index is not negative.
984
b17c024f
EB
9852013-05-24 Eric Botcazou <ebotcazou@adacore.com>
986
987 PR rtl-optimization/55177
988 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
989 (simplify_byte_swapping_operation): New.
990 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
991 (simplify_relational_operation_1): Deal with BSWAP.
992
46aeac1b
RH
9932013-05-23 Richard Henderson <rth@redhat.com>
994
995 PR target/56742
996 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
997 (ix86_reorg): Call it.
998
70cc1536
UB
9992013-05-23 Uros Bizjak <ubizjak@gmail.com>
1000
1001 PR target/57379
1002 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1003 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1004 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1005
b3851501
CB
10062013-05-23 Christian Bruel <christian.bruel@st.com>
1007
1008 PR debug/57351
1009 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1010
4e194912
CSS
10112013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1012 Marcus Shawcroft <marcus.shawcroft@arm.com>
1013
1014 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1015 * config/aarch64/constraints.md (Usa): Remove.
1016 * doc/md.texi (AArch64 Usa): Remove.
1017
83f8c414
CSS
10182013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1019 Marcus Shawcroft <marcus.shawcroft@arm.com>
1020
1021 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1022 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1023 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1024 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1025
b5574232
VP
10262013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1027
1028 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1029 instruction (AdvSIMD).
1030 * config/aarch64/aarch64-builtins.c
1031 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1032 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1033
76c36cb1 10342013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
1035
1036 PR middle-end/57347
1037 * tree.h (contains_bitfld_component_ref_p): Declare.
1038 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
1039 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1040 caller.
7d2fb524
MJ
1041 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1042 not access a bit-field. Assert all final offsets are byte-aligned.
1043
ce521ae6
RB
10442013-05-23 Richard Biener <rguenther@suse.de>
1045
1046 PR tree-optimization/57380
1047 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1048 least one invariant or re-used load.
1049 * passes.c (init_optimization_passes): Move pass_phiprop before
1050 pass_forwprop.
1051
75c7257f
JG
10522013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1053
1054 * config/aarch64/aarch64-simd.md
1055 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1056
af6d44b5
RB
10572013-05-23 Richard Biener <rguenther@suse.de>
1058
1059 PR middle-end/57381
1060 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1061 OEP_CONSTANT_ADDRESS_OF retained.
1062
bd3647bf
JJ
10632013-05-23 Jakub Jelinek <jakub@redhat.com>
1064
1065 PR middle-end/57344
70cc1536
UB
1066 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1067 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 1068
a55757ea
RB
10692013-05-23 Richard Biener <rguenther@suse.de>
1070
1071 PR rtl-optimization/57341
1072 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1073 instead of true_dependence.
1074
cfb00b41
DM
10752013-05-22 David Malcolm <dmalcolm@redhat.com>
1076
dd1c676f
DM
1077 * bb-reorder.c (branch_threshold): Make const.
1078 (exec_threshold): Ditto.
cfb00b41 1079
f62511da
MM
10802013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1081 Pat Haugen <pthaugen@us.ibm.com>
1082 Peter Bergner <bergner@vnet.ibm.com>
1083
1084 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1085 documentation for the power8 crypto builtins.
1086
1087 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1088
1089 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1090 macros for defining power8 builtin functions.
1091 (BU_P8V_AV_2): Likewise.
1092 (BU_P8V_AV_P): Likewise.
1093 (BU_P8V_VSX_1): Likewise.
1094 (BU_P8V_OVERLOAD_1): Likewise.
1095 (BU_P8V_OVERLOAD_2): Likewise.
1096 (BU_CRYPTO_1): Likewise.
1097 (BU_CRYPTO_2): Likewise.
1098 (BU_CRYPTO_3): Likewise.
1099 (BU_CRYPTO_OVERLOAD_1): Likewise.
1100 (BU_CRYPTO_OVERLOAD_2): Likewise.
1101 (XSCVSPDP): Fix typo, point to the correct instruction.
1102 (VCIPHER): Add power8 crypto builtins.
1103 (VCIPHERLAST): Likewise.
1104 (VNCIPHER): Likewise.
1105 (VNCIPHERLAST): Likewise.
1106 (VPMSUMB): Likewise.
1107 (VPMSUMH): Likewise.
1108 (VPMSUMW): Likewise.
1109 (VPERMXOR_V2DI): Likewise.
1110 (VPERMXOR_V4SI: Likewise.
1111 (VPERMXOR_V8HI: Likewise.
1112 (VPERMXOR_V16QI: Likewise.
1113 (VSHASIGMAW): Likewise.
1114 (VSHASIGMAD): Likewise.
1115 (VPMSUM): Likewise.
1116 (VPERMXOR): Likewise.
1117 (VSHASIGMA): Likewise.
1118
1119 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1120 __CRYPTO__ if the crypto instructions are available.
1121 (altivec_overloaded_builtins): Add support for overloaded power8
1122 builtins.
1123
1124 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1125 support for power8 crypto builtins.
1126 (builtin_function_type): Likewise.
1127 (altivec_init_builtins): Add support for builtins that take vector
1128 long long (V2DI) arguments.
1129
1130 * config/rs6000/crypto.md: New file, define power8 crypto
1131 instructions.
1132
11332013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1134 Pat Haugen <pthaugen@us.ibm.com>
1135 Peter Bergner <bergner@vnet.ibm.com>
1136
1137 * doc/invoke.texi (Option Summary): Add power8 options.
1138 (RS/6000 and PowerPC Options): Likewise.
1139
1140 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1141 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1142 wm, wn, wr documentation.
1143
1144 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1145 registers if direct move instructions are enabled.
1146 (wn): New constraint for no registers.
1147 (wq): New constraint for quad word even GPR registers.
1148 (wr): New constraint if 64-bit instructions are enabled.
1149 (wv): New constraint if power8 vector instructions are enabled.
1150 (wQ): New constraint for quad word memory locations.
1151
1152 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1153 constraint for 0..15 for crypto instructions.
1154 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1155 as GPR and floating point registers.
1156 (int_reg_operand): New predicate to match only GPR registers.
1157 (base_reg_operand): New predicate to match base registers.
1158 (quad_int_reg_operand): New predicate to match even GPR registers
1159 for quad memory operations.
1160 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1161 operations in both GPR and VSX registers.
1162 (quad_memory_operand): New predicate for quad memory operations.
1163 (reg_or_indexed_operand): New predicate for direct move support.
1164
1165 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1166 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1167 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1168 (POWERPC_MASKS): Add power8 options.
1169 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1170 various options.
1171
1172 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1173 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1174
1175 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1176 (-mpower8-fusion): New power8 options.
1177 (-mpower8-fusion-sign): Likewise.
1178 (-mpower8-vector): Likewise.
1179 (-mcrypto): Likewise.
1180 (-mdirect-move): Likewise.
1181 (-mquad-memory): Likewise.
1182
1183 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1184 power8.
1185 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1186 registers.
70cc1536 1187 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
1188 (rs6000_debug_vector_unit): Add p8_vector.
1189 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1190 definitions. Also print fusion state.
1191 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1192 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1193 (rs6000_option_override_internal): Add support for power8.
1194 (rs6000_common_init_builtins): Add debugging for skipped builtins
1195 if -mdebug=builtin.
1196 (rs6000_adjust_cost): Add power8 support.
1197 (rs6000_issue_rate): Likewise.
1198 (insn_must_be_first_in_group): Likewise.
1199 (insn_must_be_last_in_group): Likewise.
1200 (force_new_group): Likewise.
1201 (rs6000_register_move_cost): Likewise.
1202 (rs6000_opt_masks): Likewise.
1203
1204 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1205 power8 capable assembler, default to power7 options.
1206 (TARGET_DIRECT_MOVE): Likewise.
1207 (TARGET_CRYPTO): Likewise.
1208 (TARGET_P8_VECTOR): Likewise.
1209 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1210 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1211 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1212 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1213 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1214 (TARGET_XSCVDPSPN): Likewise.
1215 (TARGET_XSCVSPDPN): Likewsie.
1216 (TARGET_SYNC_HI_QI): Likewise.
1217 (TARGET_SYNC_TI): Likewise.
1218 (MASK_CRYPTO): Likewise.
1219 (MASK_DIRECT_MOVE): Likewise.
1220 (MASK_P8_FUSION): Likewise.
1221 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
1222 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1223 temporary used by some of the direct move instructions to get two FP
1224 temporary registers does not force creation of a stack frame.
f62511da
MM
1225 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1226 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1227 that any VSX registers are tieable, even if they are also an
1228 Altivec vector mode.
1229 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1230 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1231 (RS6000_BTM_CRYPTO): Likewise.
1232 (RS6000_BTM_COMMON): Likewise.
1233
1234 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1235 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1236 (enum rs6000_vector): Add power8 vector support.
1237
73a1a707
RR
12382013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1239
1240 PR target/19599
1241 PR target/57340
1242 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1243 (any_sibcall_could_use_r3): this and handle indirect calls.
1244 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1245
d28073d4
BS
12462013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1247
1248 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1249
bee0b10c
RB
12502013-05-22 Richard Biener <rguenther@suse.de>
1251
1252 PR middle-end/57349
1253 * profile.c (branch_prob): Do not split blocks that are
1254 abnormally receiving from ECF_RETURNS_TWICE functions.
1255
98409b51
RS
12562013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1257
1258 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1259 address mode. Move pointer mode initialization to the same place.
1260
c0602ab8
MZ
12612013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1262
1263 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1264 while it has any effect.
1265
4f7a634e
ER
12662013-05-21 Easwaran Raman <eraman@google.com>
1267
1268 PR tree-optimization/57322
9daf6dbb
ER
1269 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1270 UID of the statement added to the BB to be 1.
4f7a634e 1271
a4ce1258
JJ
12722013-05-21 Jakub Jelinek <jakub@redhat.com>
1273
1274 PR tree-optimization/57331
70cc1536
UB
1275 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1276 of conversion from pointer type to integral type with integer.
a4ce1258 1277
1b14621a
MJ
12782013-05-21 Martin Jambor <mjambor@suse.cz>
1279
1280 PR lto/57289
1281 * ipa-prop.c (ipa_read_node_info): Process param_used and
1282 controlled_uses in the same order as when writing.
1283
e60661f0
MG
12842013-05-21 Magnus Granberg <baldrick@free.fr>
1285
1286 PR plugins/56754
ee49aa34 1287 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 1288
4a61be9a
RB
12892013-05-21 Richard Biener <rguenther@suse.de>
1290
1291 PR tree-optimization/57318
1292 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1293 estimate stmts with side-effects as likely eliminated.
1294
c52da5f7
RB
12952013-05-21 Richard Biener <rguenther@suse.de>
1296
1297 PR tree-optimization/57330
1298 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1299 preserve the call stmts fntype.
1300
7ec67e2a
RB
13012013-05-21 Richard Biener <rguenther@suse.de>
1302
1303 PR tree-optimization/57303
1304 * tree-ssa-sink.c (statement_sink_location): Improve killing
1305 stmt detection and properly handle self-assignments.
1306
b112d513
CB
13072013-05-21 Christian Bruel <christian.bruel@st.com>
1308
55805e54
YR
1309 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1310 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
1311 registers. Set register size out of the PARALLEL loop.
1312
14c2ec26
OE
13132013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1314
1315 PR target/56547
1316 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1317 (*fmasf4, *fmasf4_media): New insns.
1318
da734fa1
RS
13192013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1320
1321 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1322 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1323 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1324 (mips_idiv_insns): Update the comments to say that the returned
1325 instruction counts are in units of BASE_INSN_LENGTH.
1326 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1327 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1328 using 2 rather than 4 as the length of indirect MIPS16 and
1329 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1330 length of a NOP. Don't divide MIPS16 lengths by 2.
1331 (mips16_split_long_branches): Assume a branch is long if the
1332 length is greater than 4 rather than 8.
1333 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1334 rather than multiplying them by 2. Multiply instruction counts
1335 by BASE_INSN_LENGTH rather than 4.
1336 (*jump_mips16, tls_get_tp_mips16_<mode>)
1337 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1338
13719e8b
RS
13392013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1340
1341 * config/mips/mips.md (extended_mips16): Remove branch case.
1342 (length): Remove duplicated extended_mips16 test.
1343
c3850d14
RS
13442013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1345
1346 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1347
8da2e059
RS
13482013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1349
1350 * recog.h (Recog_data): Rename to...
1351 (recog_data_d): ...this.
1352 (recog_data): Update accordingly.
1353 * recog.c (recog_data): Likewise.
1354 * reload.c (save_recog_data): Likewise.
1355 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1356 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1357
2df013f3
JB
13582013-05-17 Julian Brown <julian@codesourcery.com>
1359
1360 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1361 found in a REG_EQUAL note, invalidate it.
1362
933f507d
ER
13632013-05-17 Easwaran Raman <eraman@google.com>
1364
1365 * tree-ssa-reassoc.c (find_insert_point): New function.
1366 (insert_stmt_after): Likewise.
1367 (get_def_stmt): Likewise.
1368 (ensure_ops_are_available): Likewise.
1369 (not_dominated_by): Likewise.
1370 (rewrite_expr_tree): Do not move statements beyond what is
1371 necessary. Remove call to swap_ops_for_binary_stmt...
1372 (reassociate_bb): ... and move it here.
1373 (build_and_add_sum): Assign UIDs for new statements.
1374 (linearize_expr): Likewise.
1375 (do_reassoc): Renumber gimple statement UIDs.
1376
e01c7cca
JH
13772013-05-17 Jan Hubicka <jh@suse.cz>
1378
1379 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1380 weakrefs.
1381 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
1382 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1383 weakrefs.
e01c7cca
JH
1384 (output_weakrefs): Update.
1385
c3272a92
PCC
13862013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1387 Martin Jambor <mjambor@suse.cz>
1388
1389 PR middle-end/57276
1390 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1391 value that corresponds to the given aggval is found in values vector.
1392
11c2aa39
UB
13932013-05-17 Uros Bizjak <ubizjak@gmail.com>
1394
1395 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1396 sse, sse2, sse3, ssse3 and sse4a flags to options.
1397
abecc8c6
DM
13982013-05-17 David Malcolm <dmalcolm@redhat.com>
1399
1400 * gengtype-state.c: (s_expr_writer): New class, to handle
1401 prettifying of output layout of s-expressions.
1402 (state_writer): New class, to write out gtype.state.
1403 (state_written_type_count): Move this variable into member data of
1404 state_writer.
1405 (s_expr_writer::s_expr_writer): New code: constructor for new class
1406 (state_writer::state_writer(): ditto
1407 (s_expr_writer::write_new_line): New function
1408 (s_expr_writer::write_any_indent): ditto
1409 (s_expr_writer::begin_s_expr): ditto
1410 (s_expr_writer::end_s_expr): ditto
1411 (write_state_fileloc): convert to method of state_writer...
1412 (state_writer:: write_state_fileloc): ...and use methods of
1413 s_expr_writer to write indentation into the gtype.state output file
1414 to visually represent the hierarchical structure of the list
1415 structures
1416 (write_state_fields): ditto, renaming to...
1417 (state_writer::write_state_fields)
1418 (write_state_a_string): ditto, renaming to...
1419 (state_writer::write_state_a_string)
1420 (write_state_string_option): ditto, renaming to...
1421 (state_writer::write_state_string_option)
1422 (write_state_type_option): ditto, renaming to...
1423 (state_writer::write_state_type_option)
1424 (write_state_nested_option): ditto, renaming to...
1425 (state_writer::write_state_nested_option)
1426 (write_state_option): ditto, renaming to...
1427 (state_writer::write_state_option)
1428 (write_state_options): ditto, renaming to...
1429 (state_writer::write_state_options)
1430 (write_state_lang_bitmap): ditto, renaming to...
1431 (state_writer::write_state_lang_bitmap)
1432 (write_state_version): ditto, renaming to...
1433 (state_writer::write_state_version)
1434 (write_state_scalar_type): ditto, renaming to...
1435 (state_writer::write_state_scalar_type)
1436 (write_state_string_type): ditto, renaming to...
1437 (state_writer::write_state_string_type)
1438 (write_state_undefined_type): ditto, renaming to...
1439 (state_writer::write_state_undefined_type)
1440 (write_state_struct_union_type): ditto, renaming to...
1441 (state_writer::write_state_struct_union_type)
1442 (write_state_struct_type): ditto, renaming to...
1443 (state_writer::write_state_struct_type)
1444 (write_state_user_struct_type): ditto, renaming to...
1445 (state_writer::write_state_user_struct_type)
1446 (write_state_lang_struct_type): ditto, renaming to...
1447 (state_writer::write_state_lang_struct_type)
1448 (write_state_param_struct_type): ditto, renaming to...
1449 (state_writer::write_state_param_struct_type)
1450 (write_state_pointer_type): ditto, renaming to...
1451 (state_writer::write_state_pointer_type)
1452 (write_state_array_type): ditto, renaming to...
1453 (state_writer::write_state_array_type)
1454 (write_state_gc_used): ditto, renaming to...
1455 (state_writer::write_state_gc_used)
1456 (write_state_common_type_content): ditto, renaming to...
1457 (state_writer::write_state_common_type_content)
1458 (write_state_type): ditto, renaming to...
1459 (state_writer::write_state_type)
1460 (write_state_pair_list): ditto, renaming to...
1461 (state_writer::write_state_pair_list)
1462 (write_state_pair): ditto, renaming to...
1463 (state_writer::write_state_pair)
1464 (write_state_typedefs): ditto, renaming to...
1465 (state_writer::write_state_typedefs)
1466 (write_state_structures): ditto, renaming to...
1467 (state_writer::write_state_structures)
1468 (write_state_param_structs): ditto, renaming to...
1469 (state_writer::write_state_param_structs)
1470 (write_state_variables): ditto, renaming to...
1471 (state_writer::write_state_variables)
1472 (write_state_srcdir): ditto, renaming to...
1473 (state_writer::write_state_srcdir)
1474 (write_state_files_list): ditto, renaming to...
1475 (state_writer::write_state_files_list)
1476 (write_state_languages): ditto, renaming to...
1477 (state_writer::write_state_languages)
1478 (write_state): create a state_writer instance and use it when
1479 writing out the state file
1480
d6545f29
MS
14812013-05-17 Mike Stump <mikestump@comcast.net>
1482
816a3f73 1483 PR rtl-optimization/57304
d6545f29
MS
1484 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1485 accessing DF_REF_REAL_LOC.
1486
38c821cf
JJ
14872013-05-17 Jakub Jelinek <jakub@redhat.com>
1488
1489 PR rtl-optimization/57281
1490 PR rtl-optimization/57300
1491 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1492 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1493 what the other splitter did if the registers are dead.
1494
2a293391
RB
14952013-05-17 Richard Biener <rguenther@suse.de>
1496
1497 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1498 MEM_REF offsets.
1499
17042d2b
JJ
15002013-05-17 Jakub Jelinek <jakub@redhat.com>
1501
1502 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1503 linking.
1504
5b115c1f
MP
15052013-05-17 Marek Polacek <polacek@redhat.com>
1506
11c2aa39
UB
1507 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1508 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 1509
52d84413
JJ
15102013-05-17 Jakub Jelinek <jakub@redhat.com>
1511
68119618
JJ
1512 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1513 vect_external_def oprnd1 with loop_vinfo, try to emit
1514 optional cast, negation and and stmts on the loop preheader
1515 edge instead of into the pattern def seq.
1516
52d84413
JJ
1517 PR tree-optimization/57051
1518 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1519 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1520
17b962bd
NC
15212013-05-16 Nick Clifton <nickc@redhat.com>
1522
1523 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1524 (rl78_is_naked_func): New function.
1525 (rl78_expand_prologue): Skip prologue generation for naked
1526 functions.
1527 (rl78_expand_epilogue): Skip epilogue generation for naked
1528 functions.
1529 * doc/extend.texi (naked): Add RL78 to the list of processors
1530 that supports this attribute.
1531
b1a0f84e
JL
15322013-05-16 Jeff Law <law@redhat.com>
1533
1534 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1535
af0e415b
UB
15362013-05-16 Uros Bizjak <ubizjak@gmail.com>
1537
1538 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1539 cache parameters using detect_caches_amd also for CYRIX,
1540 NSC and TM2 signatures.
1541
19db293a
UB
15422013-05-16 Uros Bizjak <ubizjak@gmail.com>
1543 Dzianis Kahanovich <mahatma@eu.by>
1544
1545 PR target/45359
1546 PR target/46396
1547 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1548 VIA/Centaur processors and determine their cache parameters
1549 using detect_caches_amd.
1550
251a41b9
TJ
15512013-05-16 Teresa Johnson <tejohnson@google.com>
1552
1553 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1554 (rtl_verify_edges): New function.
1555 (rtl_verify_bb_insns): Ditto.
1556 (rtl_verify_bb_pointers): Ditto.
1557 (rtl_verify_bb_insn_chain): Ditto.
1558 (rtl_verify_fallthru): Ditto.
1559 (rtl_verify_bb_layout): Ditto.
1560 (rtl_verify_flow_info_1): Outline checks into new functions.
1561 (rtl_verify_flow_info): Ditto.
1562
f14540b6
SE
15632013-05-16 Steve Ellcey <sellcey@imgtec.com>
1564
1565 * cfghooks.c (copy_bbs): Add update_dominance argument.
1566 * cfghooks.h (copy_bbs): Update prototype.
1567 * tree-cfg.c (gimple_duplicate_sese_region):
1568 Add update_dominance argument.
1569 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1570 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1571 gimple_duplicate_sese_region call.
1572 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1573 Update copy_bbs call.
1574 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1575 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1576
7e9a3abb
JJ
15772013-05-16 Jakub Jelinek <jakub@redhat.com>
1578
1579 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1580 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1581 vect_recog_rotate_pattern.
1582 (vect_recog_rotate_pattern): New function.
1583
427b248d
JM
15842013-05-16 Jason Merrill <jason@redhat.com>
1585
1586 * Makefile.in (LLINKER): New variable.
1587 (mostlyclean): Remove link mutex.
1588 * configure.ac: Handle --enable-link-mutex.
1589 * lock-and-run.sh: New script.
1590
b871e3d2
RR
15912013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1592
1593 PR target/19599
1594 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1595 for NULL decl.
1596
ce858126
RO
15972013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1598
1599 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1600
798d3d04
GY
16012013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1602
1603 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1604 * config/arm/arm.c (next_consecutive_mem): New function.
1605 (gen_movmem_ldrd_strd): Likewise.
1606 * config/arm/arm.md (movmemqi): Update condition and code.
1607 (unaligned_loaddi, unaligned_storedi): New patterns.
1608
0baddc45
RO
16092013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1610
1611 * config.gcc: Obsolete *-*-solaris2.9*.
1612 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1613
aa9d5bcf
RB
16142013-05-16 Richard Biener <rguenther@suse.de>
1615
1616 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1617 earlier, after GRAPHITE transforms and IV canonicalization.
1618
5a0f4dd3
JJ
16192013-05-16 Jakub Jelinek <jakub@redhat.com>
1620
1621 * omp-low.c (extract_omp_for_data): For collapsed loops,
1622 if at least one of the loops is known at compile time to
1623 iterate zero times, set count to 0.
1624 (expand_omp_regimplify_p): New function.
1625 (expand_omp_for_generic): For collapsed loops, if at least
1626 one of the loops isn't known to iterate at least once,
1627 add runtime check with setting count to 0.
1628 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1629 For unsigned types if it isn't known at compile time that
1630 the loop will iterate at least once, add runtime check to bypass
1631 the whole loop if initial condition isn't true.
1632
e3753785
NS
16332013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1634
1635 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1636
43bb4dd1
MG
16372013-05-16 Marc Glisse <marc.glisse@inria.fr>
1638
1639 PR middle-end/57286
1640 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1641 transformations to avoid an infinite loop.
1642
3571dde6
MP
16432013-05-16 Marek Polacek <polacek@redhat.com>
1644
1645 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1646
b8b3f0ca
LE
16472013-05-15 Leif Ekblad <leif@rdos.net>
1648
1649 * config/i386/i386.c (ix86_decompose_address): Use
1650 DEFAULT_TLS_SEG_REG to access TLS segment register.
1651 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1652 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1653 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1654
e299a383
RS
16552013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1656
1657 PR target/57260
1658 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1659 sibling calls to functions that would normally be lazily bound,
1660 unless $gp is call-clobbered.
1661
e7208ea3
UB
16622013-05-15 Uros Bizjak <ubizjak@gmail.com>
1663
19db293a 1664 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 1665 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
1666 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1667 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
1668 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1669 of TARGET_3DNOW.
1670 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1671
e7413f3d
AS
16722013-05-15 Andreas Schwab <schwab@suse.de>
1673
1674 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1675 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1676 third operand.
1677
ad4db775
TJ
16782013-05-15 Teresa Johnson <tejohnson@google.com>
1679
1680 * loop-unroll.c (report_unroll_peel): Check decision before
1681 emitting unroll/peel message.
1682
af205f67
TJ
16832013-05-15 Teresa Johnson <tejohnson@google.com>
1684
1685 * function.h (has_bb_partition): New rtl_data flag.
1686 (bb_reorder_complete): Ditto.
1687 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1688 instead of flag_reorder_blocks_and_partition.
1689 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1690 with some enhancements.
1691 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1692 * bb-reorder.c (connect_traces): Check for has_bb_partition
1693 instead of flag_reorder_blocks_and_partition.
1694 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1695 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1696 verify_hot_cold_block_grouping.
1697 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1698
9adcfa3c
RR
16992013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1700
1701 PR target/19599
1702 * config/arm/predicates.md (call_insn_operand): New predicate.
1703 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1704 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1705 if insn is not a tail call.
1706 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1707 registers.
1708 * config/arm/arm.h (enum reg_class): New caller save register class.
1709 (REG_CLASS_NAMES): Likewise.
1710 (REG_CLASS_CONTENTS): Likewise.
1711 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1712 without decls.
1713
ccb3ad87
RB
17142013-05-15 Richard Biener <rguenther@suse.de>
1715
1716 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1717 of MSG_OPTIMIZED_LOCATIONS.
1718 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1719 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1720 message.
1721 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1722 of MSG_OPTIMIZED_LOCATIONS.
1723 (execute_vect_slp): Likewise.
1724 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1725 (vect_create_cond_for_alias_checks): Likewise.
1726 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1727 (vect_recog_widen_mult_pattern): Likewise.
1728 (vect_recog_widen_sum_pattern): Likewise.
1729 (vect_recog_over_widening_pattern): Likewise.
1730 (vect_recog_widen_shift_pattern): Likewise.
1731 (vect_recog_vector_vector_shift_pattern): Likewise.
1732 (vect_recog_divmod_pattern): Likewise.
1733 (vect_recog_mixed_size_cond_pattern): Likewise.
1734 (vect_recog_bool_pattern): Likewise.
1735 (vect_pattern_recog_1): Likewise.
1736
48b1474e
MJ
17372013-05-15 Martin Jambor <mjambor@suse.cz>
1738
1739 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1740 non-functions to builtin_unreachable.
1741 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1742 correct when new direct edges were discovered.
1743
9de04252
MJ
17442013-05-15 Martin Jambor <mjambor@suse.cz>
1745
1746 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1747 header, print symbol order instead of node uid, print more information
1748 about indirect edge targets.
1749 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1750 uids.
1751 (ipa_make_edge_direct_to_target): Likewise.
1752 (remove_described_reference): Likewise.
1753 (propagate_controlled_uses): Likewise.
1754 (ipa_print_node_params): Also print symbol order.
1755 (ipcp_transform_function): Print symbol order instead of node uids.
1756 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1757 (cgraph_get_create_real_symbol_node): Likewise.
1758 * ipa-cp.c (print_lattice): Likewise.
1759 (print_all_lattices): Likewise.
1760 (determine_versionability): Likewise.
1761 (initialize_node_lattices): Likewise.
1762 (estimate_local_effects): Likewise.
1763 (update_profiling_info): Likewise.
1764 (create_specialized_node): Likewise.
1765 (perhaps_add_new_callers): Likewise.
1766 (decide_about_value): Likewise.
1767 (decide_whether_version_node): Likewise.
1768 (identify_dead_nodes): Likewise.
1769 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1770 (dump_inline_summary): Likewise.
1771 (estimate_node_size_and_time): Likewise.
1772 (inline_analyze_function): Likewise.
1773 * ipa-inline.c (report_inline_failed_reason): Likewise.
1774 (want_early_inline_function_p): Likewise.
1775 (edge_badness): Likewise.
1776 (update_edge_key): Likewise.
1777 (inline_small_functions): Likewise. Add dumping of order to two other
1778 dumps.
1779 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1780 instead of node uids.
1781 (propagate_pure_const): Likewise.
1782 (propagate_pure_const): Likewise.
1783 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1784 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1785 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1786 of node uids.
1787 * tree-pretty-print.c (dump_function_header): Likewise.
1788 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1789 Print symbol order instead of node uids.
1790
1dd03b91
AK
17912013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1792
1793 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1794 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1795
fdf6a7b9
RB
17962013-05-15 Richard Biener <rguenther@suse.de>
1797
1798 PR tree-optimization/57275
1799 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1800 return value for fail to do runtime alias checks for gather loads.
1801
2d6e4603
JH
18022013-05-15 Jan Hubicka <jh@suse.cz>
1803
1804 PR lto/57038
1805 PR lto/47375
e7208ea3
UB
1806 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1807 weakrefs are not external.
1808 (lto_symtab_merge_decls): Fix thinko when dealing with
1809 non-lto_symtab decls.
2d6e4603
JH
1810 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1811 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1812 * varpool.c (dump_varpool_node): Dump more flags.
1813
83f44b39
GG
18142013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1815
1816 * config/i386/i386.c (processor_alias_table): Add instruction
1817 FSGSBASE for AMD bdver3 architecture.
1818
2e55d062
JJ
18192013-05-14 Jakub Jelinek <jakub@redhat.com>
1820
1821 * tree.c (warn_deprecated_use): Print file:line using locus color.
1822 * diagnostic.c (diagnostic_report_current_module): Print file:line
1823 and file:line:column using locus color.
1824
0bfdb81e
MS
18252013-05-14 Mike Stump <mikestump@comcast.net>
1826
1827 * gdbinit.in: Add __null.
1828
a508ef22
MS
18292013-05-14 Mike Stump <mikestump@comcast.net>
1830
1831 * recog.h: Rename struct recog_data to Recog_data.
1832 * recog.c: Likewise.
1833 * reload.c (can_reload_into): Likewise.
1834 * config/picochip/picochip.c: Likewise.
1835
e7180acb
MS
18362013-05-14 Mike Stump <mikestump@comcast.net>
1837
1838 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1839
61216c26
SB
18402013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1841
fd6beed4
SB
1842 * resource.h (struct resources): Remove unch_memory member.
1843 (CLEAR_RESOURCE): Don't clear unch_memory.
1844 * resource.c (mark_referenced_resources): Don't set it.
1845 (mark_set_resources): Likewise.
1846 (mark_target_live_regs): Don't clear it.
1847 (init_resource_info): Likewise.
1848 * reorg.c (resource_conflicts_p): Don't compare it.
1849 (redundant_insn): Don't set it.
1850
61216c26
SB
1851 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1852 Remove prototypes.
1853 * emit-rtl.c (next_label): Remove unused function.
1854 (skip_consecutive_labels, link_cc0_insns): Move to ...
1855 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1856 only place where these functions are used, and make them static.
1857
418d1b87
MG
18582013-05-14 Marc Glisse <marc.glisse@inria.fr>
1859
1860 * fold-const.c (fold_negate_expr): Handle vectors.
1861 (fold_truth_not_expr): Make it static.
1862 (fold_invert_truthvalue): New static function.
1863 (invert_truthvalue_loc): Handle vectors. Do not call
1864 fold_truth_not_expr directly.
1865 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1866 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1867 (fold_comparison): Handle vector constants.
1868 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1869 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1870 * tree.h (fold_truth_not_expr): Remove declaration.
1871
fc21784d
JG
18722013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1873
1874 * config/aarch64/aarch64-simd.md
1875 (aarch64_vcond_internal<mode>): Rename to...
1876 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1877 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1878 float modes. Clarify all iterator modes.
1879 (vcond<mode><mode>): Use new name for vcond expanders.
1880 (vcond<v_cmp_result><mode>): Likewise.
1881 (vcondu<mode><mode>: Likewise.
1882 * config/aarch64/iterators.md (VDQF_COND): New.
1883
d4c52634
MG
18842013-05-14 Marc Glisse <marc.glisse@inria.fr>
1885
1886 PR bootstrap/57266
1887 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1888 variable for the shift amount. Check that we shift by non-negative
1889 amounts.
1890
2b261262
CLT
18912013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1892
1893 PR target/42017
1894 * config/arm/arm.h (EPILOGUE_USES): Only return true
1895 for LR_REGNUM after epilogue_completed.
1896
6e022d7b
JR
18972013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1898
1899 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1900 is error_mark_node.
6e022d7b 1901
56cf7859
RO
19022013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1903
1904 PR target/57261
1905 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1906 and Solaris 11+/x86 with gld.
1907 * configure: Regenerate.
1908
75776c6d
JJ
19092013-05-14 Jakub Jelinek <jakub@redhat.com>
1910
1911 * expmed.c (expand_shift_1): Canonicalize rotates by
1912 constant bitsize / 2 to bitsize - 1.
7f998021 1913 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
1914 case ROTATERT>: Likewise.
1915
1916 Revert:
1917 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1918
1919 * config/i386/i386.md (rotateinv): New code attr.
1920 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1921 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1922 roll $31, %eax, etc.
1923
df35498a
RB
19242013-05-14 Richard Biener <rguenther@suse.de>
1925
1926 PR middle-end/57235
1927 * tree-eh.c (sink_clobbers): Give up for successors with
1928 multiple predecessors and no virtual uses.
1929
cc6e7ece
EB
19302013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1931
1932 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1933 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1934
f778dd4d
JJ
19352013-05-14 Jakub Jelinek <jakub@redhat.com>
1936
1937 PR middle-end/57251
1938 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1939 the case when both op0 and op1 have VOIDmode.
1940
bad4df9b
KP
19412013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1942
1943 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1944 in multiply-accumulate mode.
1945
56f3e9ac
GW
19462013-05-13 Guozhi Wei <carrot@google.com>
1947
1948 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1949
a3d7ab92
KT
19502013-05-13 Kai Tietz <ktietz@redhat.com>
1951
1952 PR target/56975
1953 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1954 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1955 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1956 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1957 (ix86_expand_prologue): Likewise.
1958 (ix86_expand_split_stack_prologue): Likewise.
1959 (legitimate_pic_address_disp_p): Likewise.
1960 (legitimize_pic_address): Likewise.
1961 (legitimize_tls_address): Likewise.
1962 (legitimize_pe_coff_symbol): Likewise.
1963 (output_pic_addr_const): Likewise.
1964 (construct_plt_address): Likewise.
1965 (ix86_expand_call): Likewise.
1966 (x86_output_mi_thunk): Likewise.
1967 (x86_function_profiler): Likewise.
1968
c59b7e28
SN
19692013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1970
1971 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1972 similar switch cases.
1973 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1974 (aarch64_simd_mov_to_<mode>low): Delete.
1975 (aarch64_simd_mov_to_<mode>high): Delete.
1976 (move_lo_quad_<mode>): Add w<-r alternative.
1977 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1978 (aarch64_simd_mov_from_*): Update type attribute.
1979 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1980 statement.
1981
5f28524a
JH
19822013-05-13 Jan Hubicka <jh@suse.cz>
1983
1984 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1985 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1986 ix86_expand_epilogue, emit_i387_cw_initialization,
1987 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1988 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 1989
ae6fa899
JJ
19902013-05-13 Jakub Jelinek <jakub@redhat.com>
1991
1992 PR tree-optimization/45216
1993 PR tree-optimization/57157
1994 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1995 the (-Y) & (B - 1) variant if OP is |.
1996 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1997 return shifted. Use (-op1) & (prec - 1) as other_amount
1998 instead of prec - op1.
1999
4502fe8d
MJ
20002013-05-13 Martin Jambor <mjambor@suse.cz>
2001
2002 PR middle-end/42371
2003 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2004 (ipa_constant_data): New type.
2005 (ipa_jump_func): Use ipa_constant_data to hold information about
2006 constant jump functions.
2007 (ipa_get_jf_constant): Adjust to jump function type changes.
2008 (ipa_get_jf_constant_rdesc): New function.
2009 (ipa_param_descriptor): New field controlled_uses.
2010 (ipa_get_controlled_uses): New function.
2011 (ipa_set_controlled_uses): Likewise.
2012 * ipa-ref.h (ipa_find_reference): Declare.
2013 * ipa-prop.c (ipa_cst_ref_desc): New type.
2014 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2015 changes.
2016 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2017 New parameter cs. Adjust all callers.
2018 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2019 (remove_described_reference): New function.
2020 (jfunc_rdesc_usable): Likewise.
2021 (try_make_edge_direct_simple_call): Decrement controlled use count,
2022 attempt to remove reference if it hits zero.
2023 (combine_controlled_uses_counters): New function.
2024 (propagate_controlled_uses): Likewise.
2025 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2026 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2027 (ipa_print_node_params): Print described use counter.
2028 (ipa_write_jump_function): Adjust to jump function type changes.
2029 (ipa_read_jump_function): New parameter CS, pass it to
2030 ipa_set_jf_constant. Adjust caller.
2031 (ipa_write_node_info): Stream controlled use count
2032 (ipa_read_node_info): Likewise.
2033 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2034 asserting.
2035 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2036 count. Remove cloning-added reference if it reaches zero.
2037 * ipa-ref.c (ipa_find_reference): New function.
2038
0864bfc2
GG
20392013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2040
e7208ea3 2041 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
2042 alignment values for AMD BD and BT architectures.
2043
640bfeb2
MG
20442013-05-13 Marc Glisse <marc.glisse@inria.fr>
2045
2046 * tree-vect-generic.c (uniform_vector_p): Move ...
2047 * tree.c (uniform_vector_p): ... here.
2048 * tree.h (uniform_vector_p): Declare it.
2049 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2050 into a scalar.
2051
3a60f32b
JJ
20522013-05-13 Jakub Jelinek <jakub@redhat.com>
2053
198fe1bf
JJ
2054 PR tree-optimization/57230
2055 * tree-ssa-strlen.c (handle_char_store): Record length for
2056 array store from STRING_CST.
2057
3a60f32b
JJ
2058 PR tree-optimization/57230
2059 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2060 check.
2061
566be57c
JR
20622013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2063
2064 * config/epiphany/epiphany.c (epiphany_init): Check size of
2065 NUM_MODES_FOR_MODE_SWITCHING.
2066 (epiphany_expand_prologue):
2067 Remove CONFIG_REGNUM initial value handling code.
2068 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2069 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 2070 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
2071 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2072 Don't return 1 for FP_MODE_NONE.
2073 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2074 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2075 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2076 * config/epiphany/epiphany.md (save_config): New pattern.
2077
0f2c2331
UB
20782013-05-12 Uros Bizjak <ubizjak@gmail.com>
2079
2080 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2081
5b3f93c7
UB
20822013-05-10 Uros Bizjak <ubizjak@gmail.com>
2083
2084 * config/i386/i386.md (memory): Handle sseishft1.
2085 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2086 (*vec_extractv2di_1): Ditto.
2087
1f873f0e
VM
20882013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2089
2090 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2091 saved registers.
2092
341427fa 20932013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
2094
2095 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2096 Add mthumb/march=armv7-a multilib.
2097 Add mthumb/march=armv7-r multilib.
2098 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2099
9e69bdde
RC
21002013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2101
2102 * config/v850/t-rtems: Add more multilibs.
2103
9ff09a22
RB
21042013-05-10 Richard Biener <rguenther@suse.de>
2105
2106 PR tree-optimization/57214
2107 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2108 not propagate from SSA names that occur in abnormal PHI nodes.
2109
a5e0cd1d
MG
21102013-05-10 Marc Glisse <marc.glisse@inria.fr>
2111
2112 * stor-layout.c (element_precision): New function.
2113 * machmode.h (element_precision): Declare it.
2114 * tree.c (build_minus_one_cst): New function.
2115 (element_precision): Likewise.
2116 * tree.h (build_minus_one_cst): Declare new function.
2117 (element_precision): Likewise.
2118 * fold-const.c (operand_equal_p): Use element_precision.
2119 (fold_binary_loc): Handle vector types.
2120 * convert.c (convert_to_integer): Use element_precision.
2121 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2122 separately.
2123
cb2558bc
RS
21242013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2125
2126 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2127 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2128 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2129 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2130 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2131 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2132 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2133 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2134 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2135 (Uuw8): New constraints.
2136 (Usb4): Move into alphabetical order.
2137 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2138 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2139 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2140 previously unnamed patterns.
2141 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2142 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2143 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2144 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2145 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2146 of specific lengths.
2147
cb3b8d33
JJ
21482013-05-10 Jakub Jelinek <jakub@redhat.com>
2149
6f93c008
JJ
2150 * config/i386/i386.md (rotateinv): New code attr.
2151 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2152 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2153 roll $31, %eax, etc.
2154
cb3b8d33
JJ
2155 PR tree-optimization/45216
2156 PR tree-optimization/57157
2157 * tree-ssa-forwprop.c (simplify_rotate): New function.
2158 (ssa_forward_propagate_and_combine): Call it.
2159
afb119be
RB
21602013-05-10 Richard Biener <rguenther@suse.de>
2161
2162 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2163 disable peeling when we version for aliasing.
2164 (vector_alignment_reachable_p): Honor explicit user alignment.
2165 (vect_supportable_dr_alignment): Likewise.
2166 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2167 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2168 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2169 then peeling to arrange for the cost-model check to come first.
2170
01ae4861
AM
21712013-05-10 Alan Modra <amodra@gmail.com>
2172
2173 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2174 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2175 * configure: Regenerate.
2176
ebc9a431
AM
21772013-05-10 Alan Modra <amodra@gmail.com>
2178
2179 PR target/55033
2180 * varasm.c (default_elf_select_section): Move !DECL_P check..
2181 (get_named_section): ..to here before calling get_section_name.
2182 Adjust assertion.
2183 (default_section_type_flags): Add DECL_P check.
2184 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2185 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2186
d4bca93c
JR
21872013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2188
2189 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2190 When using gen_stack_adjust_str with a register offset, add a
2191 REG_FRAME_RELATED_EXPR note.
2192
60ca9a65
UB
21932013-05-09 Uros Bizjak <ubizjak@gmail.com>
2194
2195 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2196 (*vec_extractv4si_zext_mem): Ditto.
2197 (*vec_extractv2di): Add 0->x and x->x alternatives.
2198 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2199 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2200
a3409c02
JM
22012013-05-09 Jason Merrill <jason@redhat.com>
2202
0138d6b2
JM
2203 N3639 C++1y VLA support
2204 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2205 DECL_VALUE_EXPR.
2206
a3409c02
JM
2207 * tree.c (build_constructor_va): New.
2208 * tree.h: Declare it.
2209
66e6b990
MJ
22102013-05-09 Martin Jambor <mjambor@suse.cz>
2211
2212 PR lto/57084
2213 * gimple-fold.c (canonicalize_constructor_val): Call
2214 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2215
64cfa6c0
JH
22162013-05-09 Jan Hubicka <jh@suse.cz>
2217 Richard Biener <rguenther@suse.de>
2218
2219 PR lto/54095
2220 * symtab.c (symtab_make_decl_local): Do not add private names.
2221
c3167b00
JH
22222013-05-09 Jan Hubicka <jh@suse.cz>
2223
2224 PR lto/54095
2225 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2226 (unlink_from_assembler_name_hash): Likewise.
2227 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2228 symtab_unregister_node, symtab_initialize_asm_name_hash,
2229 change_decl_assembler_name): Update.
2230
12dc6974
SN
22312013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2232
2233 * config/aarch64/aarch64.md: New movtf split.
2234 (*movtf_aarch64): Update.
2235 (aarch64_movdi_tilow): Handle TF modes and rename to
2236 aarch64_movdi_<mode>low.
2237 (aarch64_movdi_tihigh): Handle TF modes and rename to
2238 aarch64_movdi_<mode>high
2239 (aarch64_movtihigh_di): Handle TF modes and rename to
2240 aarch64_mov<mode>high_di
2241 (aarch64_movtilow_di): Handle TF modes and rename to
2242 aarch64_mov<mode>low_di
2243 (aarch64_movtilow_tilow): Remove spurious whitespace.
2244 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2245 splits.
2246 (aarch64_print_operand): Update.
2247
227eb343
AM
22482013-05-09 Alan Modra <amodra@gmail.com>
2249
2250 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2251 powerpc64le.
2252 * configure: Regenerate.
2253
0b013847
UB
22542013-05-08 Uros Bizjak <ubizjak@gmail.com>
2255
2256 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2257 splitter preparation statements.
2258 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2259 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2260 adjust_address_nv.
2261
1dc3d6e9
BS
22622013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2263
2264 * gimple-ssa-strength-reduction.c (count_candidates): Change
2265 return value to int.
2266 (analyze_candidates_and_replace): Change type of length to int.
2267
e61e7d28
UB
22682013-05-08 Uros Bizjak <ubizjak@gmail.com>
2269
2270 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2271 (*vec_extract<mode>): Use VI12_128 mode iterator.
2272 (*vec_extract<mode>_mem): Ditto.
2273 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2274 attribute.
2275
4fbfcf44
DN
22762013-05-08 Diego Novillo <dnovillo@google.com>
2277
2278 PR bootstrap/54659
2279
2280 Revert:
4fbfcf44
DN
2281 2012-08-17 Diego Novillo <dnovillo@google.com>
2282
e61e7d28
UB
2283 PR bootstrap/54281
2284 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2285 * config.in: Regenerate.
2286 * configure: Regenerate.
2287 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 2288
702d8703
JH
22892013-05-08 Jan Hubicka <jh@suse.cz>
2290
2291 PR lto/54095
2292 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2293 * cgraph.h (symtab_node_base): Add unique_name.
2294 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2295 input_overwrite_node, input_varpool_node): Stream unique_name.
2296 * cgraphclones.c (cgraph_create_virtual_clone,
2297 cgraph_function_versioning): Set unique_name.
2298 * ipa.c (function_and_variable_visibility): Set unique_name.
2299
8b28cf47
BS
23002013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2301
2302 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2303 (alloc_cand_and_find_basis): Restrict conditional candidate
2304 processing to CAND_MULTs.
2305
e86074fd
JH
23062013-05-08 Jan Hubicka <jh@suse.cz>
2307
2308 PR lto/54095
2309 lto-symtab.c (lto_symtab_symbol_p): New function.
2310 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2311 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2312 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2313 Skip static symbols.
2314
44398cbe
PC
23152013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2316
2317 PR tree-optimization/57200
2318 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2319 Only call inform if the preceding warning_at returns true.
2320
f6bc1c4a
HS
23212013-05-07 Han Shen <shenhan@google.com>
2322
2323 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2324 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2325 * common.opt (fstack-protector-strong): New option.
2326 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2327 * doc/invoke.texi (Optimization Options): Document
2328 "-fstack-protector-strong".
2329 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2330
4ffecb1f
SB
23312013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2332
2333 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2334
5a107a0f
VM
23352013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2336
2337 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2338 it is not lhs of the insn.
2339 (setup_reg_equiv): Remove insn having equiv memory which it is not
2340 lhs of the insn.
2341 * lra-constraints.c (process_address): Try to improve generation
2342 code for address base + disp.
2343 (lra_constraints): Make correct the code for checking insn setting
2344 up backward equivalence. Remove insn only if it is in the init
2345 insn list.
2346 * lra-eliminations.c (update_reg_eliminate): Change return value.
2347 (lra_eliminate): Use the result.
2348
3f5783ea
UB
23492013-05-07 Uros Bizjak <ubizjak@gmail.com>
2350
2351 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2352 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2353 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2354 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2355 register target operands.
2356 (*vec_extractv8hi_sse2): New pattern.
2357 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2358 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2359 (*vec_extract<mode>_mem): New insn and split pattern.
2360
8a5800b8
CL
23612013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2362
2363 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2364 (TARGET_ASAN_SHADOW_OFFSET): Define.
2365 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2366 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2367
7bf55a70
BS
23682013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2369
2370 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2371 (incr_vec_index): Return -1 if increment not found.
2372 (create_add_on_incoming_edge): Assert if increment not found.
2373 (record_increment): Limit number of increments recorded.
2374 (all_phi_incrs_profitable): Return false if an increment not found.
2375 (replace_profitable_candidates): Don't process increments that were
2376 not recorded.
2377 (analyze_candidates_and_replace): Limit size of incr_vec.
2378
3f8825c0
RB
23792013-05-07 Richard Biener <rguenther@suse.de>
2380
2381 * calls.c (special_function_p): setjmp-like functions are leaf.
2382 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2383 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2384
fd4842cd
SN
23852013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2386
2387 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2388 (aarch64_simd_mov<mode>): New expander.
2389 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2390 (aarch64_simd_mov_to_<mode>high): Likewise.
2391 (aarch64_simd_mov_from_<mode>low): Likewise.
2392 (aarch64_simd_mov_from_<mode>high): Likewise.
2393 (aarch64_dup_lane<mode>): Update.
2394 (aarch64_dup_lanedi): New instruction pattern.
2395 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2396 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2397
a7a7d10e
BS
23982013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2399
2400 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2401 (replace_mult_candidate): Remove unnecessary argument; remove
2402 unnecessary parameter from call to introduce_cast_before_cand.
2403 (replace_unconditional_candidate): Remove unnecessary parameter
2404 from call to replace_mult_candidate.
2405 (replace_conditional_candidate): Likewise.
2406 (insert_initializers): Use make_temp_ssa_name.
2407 (introduce_cast_before_cand): Remove unnecessary argument; use
2408 make_temp_ssa_name.
2409 (replace_one_candidate): Remove unnecessary argument; remove
2410 unnecessary parameter from calls to introduce_cast_before_cand.
2411 (replace_profitable_candidates): Remove unnecessary parameters
2412 from calls to replace_one_candidate.
2413
29105868
BS
24142013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2415
2416 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2417 phi def as possibly hiding a basis for a CAND_ADD whose operands
2418 have been commuted in the analysis.
2419 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2420
4095f9fa
N
24212013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2422
2423 * config/aarch64/aarch64.md
2424 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2425 shift value between 0-4.
2426
39e843e8
RB
24272013-05-07 Richard Biener <rguenther@suse.de>
2428
2429 * double-int.h (rshift): New overload.
2430 * double-int.c (rshift): New function.
2431 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2432 (create_reference_ops_from_ref): Remove.
2433 (vn_reference_insert): Use shared ops for constructing the
2434 reference and copy it.
2435
0a1a83cb
RB
24362013-05-07 Richard Biener <rguenther@suse.de>
2437
2438 PR middle-end/57190
2439 * tree-eh.c (sink_clobbers): Properly propagate
2440 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2441
43303d6f
JJ
24422013-05-07 Jakub Jelinek <jakub@redhat.com>
2443
ba7e83f8
JJ
2444 PR tree-optimization/57149
2445 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2446 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2447 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2448 uninit_undefined_value_p instead of ssa_undefined_value_p.
2449
43303d6f
JJ
2450 PR debug/57184
2451 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2452 for modifier == EXPAND_INITIALIZER.
2453
14523c25
AB
24542013-05-07 Anton Blanchard <anton@samba.org>
2455
2456 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2457 for powerpc64 little endian.
2458 * configure: Regenerate.
2459
cb7c8be9
GS
24602013-05-06 Graham Stott <grahams@btinternet.com>
2461
2462 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2463 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2464 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2465 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2466
24672013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
2468
2469 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2470 codes which allow non-lvalues.
2471
9a0ee7b0
MG
24722013-05-06 Marc Glisse <marc.glisse@inria.fr>
2473
2474 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2475 components are all 1s.
2476 (integer_minus_onep): New function.
2477 * tree.h (integer_minus_onep): Declare it.
2478 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2479 integer_minus_onep instead of integer_all_onesp.
2480
f2c17ea9
OE
24812013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2482
2483 PR target/52933
2484 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2485 variations of these patterns.
2486
f75e6a51
UB
24872013-05-06 Uros Bizjak <ubizjak@gmail.com>
2488
2489 * config/i386/i386.md (isa): Add x64_sse4 member.
2490 (enabled): Handle x64_sse4.
2491 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2492 instruction for 64bit SSE4_1 targets. Update insn attributes.
2493 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2494 instruction for SSE4_1 targets. Update insn attributes.
2495 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2496 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2497 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2498 const_1 selector.
2499 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2500 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2501 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2502
a986d468
OE
25032013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2504
2505 PR target/57108
2506 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2507
382522cb
MK
25082013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2509
2510 * final.c (do_assembler_dialects): Don't handle curly braces and
2511 vertical bar escaped by % as dialect delimiters.
2512 (output_asm_insn): Print curly braces and vertical bar if escaped
2513 by % and ASSEMBLER_DIALECT defined.
2514 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2515 * doc/tm.texi: Regenerated.
2516
fb0d5c60
SB
25172013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2518
fb0d5c60
SB
2519 * config/mips/mips.c: Include tree-pass.h.
2520 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2521 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2522 (pass_mips_machine_reorg2): New machine specific pass.
2523 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2524 (mips_option_override): Register the new pass.
2525 * rtl.h (cleanup_barriers): Remove prototype.
2526 (dbr_schedule): Likewise.
2527 * jump.c (cleanup_barriers): Make static.
2528 * reorg.c (dbr_schedule): Likewise.
2529
aa06a978
RB
25302013-05-06 Richard Biener <rguenther@suse.de>
2531
2532 PR tree-optimization/57185
2533 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2534 SSA names properly.
2535
0b953bec
UB
25362013-05-06 Uros Bizjak <ubizjak@gmail.com>
2537
2538 PR target/57106
2539 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2540 between "first_arg" and "insn", not "last" and "insn".
2541
28708525
WS
25422013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2543
2544 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2545 (find_candidates_in_block): Re-enable slsr_process_phi.
2546 (create_phi_basis): Fix double counting of candidate adjustment.
2547
0107dca2
RB
25482013-05-06 Richard Biener <rguenther@suse.de>
2549
2550 PR middle-end/57147
2551 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2552 the edge is also fallthru, preserve it and just clear the
2553 abnormal flag.
2554 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2555 also complex, preserve that and just clear the fallthru flag.
2556 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2557 update virtual operands.
2558
470d4d13
AM
25592013-05-06 Alan Modra <amodra@gmail.com>
2560
2561 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2562 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2563 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2564 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2565 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2566 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2567
8f1dbf8d
AM
25682013-05-06 Alan Modra <amodra@gmail.com>
2569
2570 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2571 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2572 (DEFAULT_ASM_ENDIAN): Define.
2573 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2574 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2575 Update -K PIC clause from sysv4.h.
2576 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2577 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2578
54890767
AM
25792013-05-06 Alan Modra <amodra@gmail.com>
2580
2581 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2582 twice for little-endian.
2583 (ashrdi3_no_power, ashrdi3): Support little-endian.
2584
2353515d
OE
25852013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2586
2587 PR target/55303
2588 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2589 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2590 related expanders.
2591 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2592 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2593 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2594 New predicates.
2595
33e67557
SB
25962013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2597 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2598
2599 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2600 * config/pa/pa.opt: Make mbig-switch a no-op.
2601 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2602 (CASE_VECTOR_MODE): Always return SImode.
2603 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2604 for the !TARGET_BIG_SWITCH case.
2605 * config/pa/pa-linux.h: Likewise.
2606 * config/pa/pa-openbsd.h: Likewise.
2607 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2608 * config/pa/pa.md (short_jump): Remove define_insn.
2609 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2610 (casesi0): Remove define_insn.
2611 (type): Remove btable_branch.
2612 (pa_combine_type): Likewise.
2613 (in_nullified_branch_delay): Likewise.
2614 (in_call_delay): Likewise.
2615 (define_delay): Likewise.
2616 (define_insn_reservation "Z3"): Likewise.
2617 (define_insn_reservation "Z4"): Likewise.
2618 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2619 (pa_adjust_insn_length): Remove adjustment for btable branches.
2620 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2621 and mno-big-switch
2622
3095685e
UB
26232013-05-05 Uros Bizjak <ubizjak@gmail.com>
2624
2625 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2626 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2627 Add m->r,x alternatives.
2628 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2629 splitters using SWI48x mode iterator.
2630 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2631 TARGET_64BIT. Add m->x alternative.
2632 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2633 Add o->x alternative. Enable for TARGET_SSE.
2634 (sse_storeq): Remove expander.
2635 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2636 with memory input operand.
2637 (*vec_extractv2di_1 splitter): New.
2638 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2639 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2640
4b36ae28
SB
26412013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2642
2643 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2644 (INT_LOWPART): Delete.
2645 (extract_MB): Adjust.
2646 (extract_ME): Adjust.
2647 (print_operand): Adjust.
2648
da226db2
SB
26492013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2650
2651 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2652 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2653 (reg_or_logical_cint_operand, easy_fp_constant,
2654 logical_const_operand): Delete "CONST_DOUBLE" case.
2655 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2656 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 2657 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
2658 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2659 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2660 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2661 test.
2662 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2663 CONST_DOUBLE DImode/VOIDmode case.
2664 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2665 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2666 CONST_DOUBLE VOIDmode case.
2667 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2668 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2669 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2670 Delete CONST_DOUBLE case.
2671 (splitters for mov FMOVE64 const_double): Delete
2672 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2673 "HOST_BITS_PER_WIDE_INT >= 64" test.
2674 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2675 case.
2676 (mov DI const_double): Delete.
2677
40de22d6
JJ
26782013-05-04 Jakub Jelinek <jakub@redhat.com>
2679
2680 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2681 on op shows all bits zero in mode of a lowpart subreg, return zero.
2682
5ec6aff2
MM
26832013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2684
2685 PR target/57150
2686 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2687 to save TFmode registers and DImode to save TImode registers for
2688 caller save operations.
2689 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2690 mark being partially clobbered since they only use the first
2691 double word.
2692
2693 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2694 and TDmode only use the upper 64-bits of each VSX register.
2695
2cefad90
BS
26962013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2697
2698 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2699 (find_candidates_in_block): Disable slsr_process_phi.
2700
d6d7eee1
GW
27012013-05-03 Guozhi Wei <carrot@google.com>
2702
2703 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
2704 constructor to ...
2705 (build_init_ctor): ... here.
d6d7eee1 2706
9b92d12b
BS
27072013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2708
2709 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2710 (slsr_cand_d): Redefine def_phi.
2711 (stride_status, phi_adjust_status, count_phis_status): New enums.
2712 (find_phi_def): New.
2713 (find_basis_for_base_expr): New.
2714 (find_basis_for_candidate): Handle hidden bases.
2715 (alloc_cand_and_find_basis): Handle phi candidates.
2716 (slsr_process_phi): New.
2717 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2718 (create_mul_imm_cand): Likewise.
2719 (create_add_ssa_cand): Exclude phi base candidates.
2720 (create_add_imm_cand): Likewise.
2721 (slsr_process_cast): Likewise.
2722 (slsr_process_copy): Likewise.
2723 (find_candidates_in_block): Handle phi candidates.
2724 (dump_candidate): Likewise.
2725 (unconditional_cands): Delete.
2726 (unconditional_cands_with_known_stride_p): Delete.
2727 (phi_dependent_cand_p): New.
2728 (cand_increment): Handle phi-dependent candidates.
2729 (replace_dependent): Delete.
2730 (replace_mult_candidate): New.
2731 (replace_unconditional_candidate): New.
2732 (incr_vec_index): Move to avoid forward reference.
2733 (create_add_on_incoming_edge): New.
2734 (create_phi_basis): New.
2735 (replace_dependents): Delete.
2736 (replace_conditional_candidate): New.
2737 (phi_add_costs): New.
2738 (replace_uncond_cands_and_profitable_phis): New.
2739 (record_increment): Handle phi adjustments.
2740 (record_phi_increments): New.
2741 (record_increments): Handle phi adjustments.
2742 (phi_incr_cost): New.
2743 (lowest_cost_path): Handle phis.
2744 (total_savings): Likewise.
2745 (analyze_increments): Likewise.
2746 (ncd_with_phi): New.
2747 (ncd_of_cand_and_phis): New.
2748 (nearest_common_dominator_for_cands): Handle phi increments.
2749 (all_phi_incrs_profitable): New.
2750 (replace_profitable_candidates): Handle phi-dependent candidates.
2751 (analyze_candidates_and_replace): Likewise.
2752
68f073d4
TJ
27532013-05-03 Teresa Johnson <tejohnson@google.com>
2754
2755 PR bootstrap/57154
2756 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2757 do not exceed REG_BR_PROB_BASE.
2758
a4ee7cb9
JL
27592013-05-03 Jeff Law <law@redhat.com>
2760
ade67f70 2761 PR tree-optimization/57144
a4ee7cb9
JL
2762 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2763 operand of the condition will bit into the new type when eliminating
2764 a cast feeding a condition.
2765
47954c4e
JJ
27662013-05-03 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR rtl-optimization/57130
3095685e
UB
2769 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2770 of COMPARE as in_code to the recursive call if needed.
47954c4e 2771
3c21604f
UB
27722013-05-03 Uros Bizjak <ubizjak@gmail.com>
2773
2774 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2775 (enabled): Handle new members.
2776 * config/i386/sse.md (*vec_concatv2si): Merge from
2777 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2778 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2779
95c03b36
JR
27802013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2781
2782 PR tree-optimization/57027
2783 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2784 for fnms opportunity, check we got the prerequisite kind
2785 of tree / gimple before using accessor functions.
2786
07bfc9ec
RB
27872013-05-03 Richard Biener <rguenther@suse.de>
2788
2789 * double-int.h (lshift): New overload without precision
2790 and arith argument.
2791 (operator *=, operator +=, operator -=): Move ...
2792 * double-int.c (operator *=, operator +=, operator -=): ... here
2793 and implement more efficiently.
2794 (mul_double_with_sign): Remove.
2795 (lshift_double): Adjust to take unsinged shift argument, push
2796 dispatching code to callers.
2797 (mul_double_wide_with_sign): Add early out for callers that
2798 are not interested in high parts or overflow.
2799 (lshift): New function.
2800 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2801 dispatch code here.
2802 (lrotate, rrotate): Use logical shifts.
2803 * expr.c (get_inner_reference): Use lshift.
2804 * fixed-value.c (do_fixed_divide): Likewise.
2805 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2806 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2807 (indirect_refs_may_alias_p): Likewise.
2808 (stmt_kills_ref_p_1): Likewise.
2809
7769bb64
VP
28102013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2811
2812 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2813
1d0c8e5c
VP
28142013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2815
2816 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2817 scalar form of FABD instruction.
2818
f15feaf9
VM
28192013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2820
2821 * lra-constraints.c (process_alt_operands): Add checking alt
2822 number to choose the best alternative.
2823
d90e76d4
RB
28242013-05-02 Richard Biener <rguenther@suse.de>
2825
2826 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2827 bitmap and its handling.
2828 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2829
9f8e7a96
RB
28302013-05-02 Richard Biener <rguenther@suse.de>
2831
2832 PR middle-end/57140
2833 * tree-inline.c (copy_loops): Properly handle removed loops.
2834 (copy_cfg_body): Mark destination loops for fixup if source
2835 loops needed fixup.
2836
f3a81b39
GY
28372013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2838
2839 PR target/56732
2840 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2841 generating simple_return for naked functions.
2842
7b920a9a
MJ
28432013-05-02 Martin Jambor <mjambor@suse.cz>
2844
2845 PR middle-end/56988
2846 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2847 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2848 flags match.
2849 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2850 ipa_agg_replacement_value structures.
2851 (known_aggs_to_agg_replacement_list): Likewise.
2852 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2853 (read_agg_replacement_chain): Likewise.
2854 (ipcp_transform_function): Also check that by_ref flags match.
2855
2c41c19d
RB
28562013-05-02 Richard Biener <rguenther@suse.de>
2857
2858 * graphds.h (struct graph): Add obstack member.
2859 * graphds.c (new_graph): Initialize obstack and allocate
2860 vertices from it.
2861 (add_edge): Allocate edge from the obstack.
3c21604f 2862 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2863
8b47039c
TJ
28642013-05-02 Teresa Johnson <tejohnson@google.com>
2865
2866 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2867 divides.
2868 * cfg.c (update_bb_profile_for_threading): Ditto.
2869 * tree-inline.c (copy_bb): Ditto.
2870 (copy_edges_for_bb): Ditto.
2871 (initialize_cfun): Ditto.
2872 (copy_cfg_body): Ditto.
2873 (expand_call_inline): Ditto.
2874 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2875 (estimate_node_size_and_time): Ditto.
2876 (inline_merge_summary): Ditto.
2877 * cgraphclones.c (cgraph_clone_edge): Ditto.
2878 (cgraph_clone_node): Ditto.
2879 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2880 (compute_trg_info): Ditto.
2881
da65928c
IB
28822013-05-02 Ian Bolton <ian.bolton@arm.com>
2883
2884 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2885 S reg when fp attribute set.
2886 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2887
add3c965
IB
28882013-05-02 Ian Bolton <ian.bolton@arm.com>
2889
2890 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2891 New pattern.
2892 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2893 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2894 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2895
fdd43ac4
RB
28962013-05-02 Richard Biener <rguenther@suse.de>
2897
2898 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2899 (struct instantiate_cache_entry): New type.
2900 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2901 (struct instantiate_cache_type): New type.
2902 (set_instantiated_value, get_instantiated_value): Remove.
2903 (get_instantiated_value_entry): New function.
2904 (instantiate_scev_name): Use the new cache and adjust.
2905 (instantiate_scev_poly): Adjust.
2906 (instantiate_scev_binary): Likewise.
2907 (instantiate_array_ref): Likewise.
2908 (instantiate_scev_convert): Likewise.
2909 (instantiate_scev_not): Likewise.
2910 (instantiate_scev_3): Likewise.
2911 (instantiate_scev_2): Likewise.
2912 (instantiate_scev_r): Likewise.
2913 (instantiate_scev): Likewise.
2914 (resolve_mixers): Likewise.
2915
36ff9dfb
VM
29162013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2917
2918 PR target/57091
2919 * lra-constraints.c (best_small_class_operands_num): Remove.
2920 (process_alt_operands): Remove small_class_operands_num. Take
2921 small classes operands into losers and only if the operand is not
2922 matched. Modify debugging output.
2923 (curr_insn_transform): Remove best_small_class_operands_num.
2924 Print insn name.
2925
36054fab
JG
29262013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2927
2928 * config/aarch64/aarch64-builtins.c
2929 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2930 * config/aarch64/aarch64-simd-builtins.def
2931 (reduc_splus_): Add new modes.
2932 (reduc_uplus_): New.
2933 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2934 (reduc_uplus_v4sf): Likewise.
2935 (reduc_splus_v4sf): Likewise.
2936 (aarch64_addv<mode>): Likewise.
2937 (reduc_uplus_<mode>): Likewise.
2938 (reduc_splus_<mode>): Likewise.
2939 (aarch64_addvv2di): Likewise.
2940 (reduc_uplus_v2di): Likewise.
2941 (reduc_splus_v2di): Likewise.
2942 (aarch64_addvv2si): Likewise.
2943 (reduc_uplus_v2si): Likewise.
2944 (reduc_splus_v2si): Likewise.
2945 (reduc_<sur>plus_<mode>): New.
2946 (reduc_<sur>plus_v2di): Likewise.
2947 (reduc_<sur>plus_v2si): Likewise.
2948 (reduc_<sur>plus_v4sf): Likewise.
2949 (aarch64_addpv4sf): Likewise.
2950 * config/aarch64/arm_neon.h
2951 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2952 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2953 add UNSPEC_SADDV, UNSPEC_UADDV.
2954 (SUADDV): New.
2955 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2956
6dce23a8
JG
29572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2958
2959 * config/aarch64/arm_neon.h
2960 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2961
1598945b
JG
29622013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2963
2964 * config/aarch64/aarch64-builtins
2965 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2966
998eaf97
JG
29672013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2968
2969 * config/aarch64/aarch64-simd-builtins.def
2970 (reduc_smax_): New.
2971 (reduc_smin_): Likewise.
2972 (reduc_umax_): Likewise.
2973 (reduc_umin_): Likewise.
2974 (reduc_smax_nan_): Likewise.
2975 (reduc_smin_nan_): Likewise.
2976 (fmax): Remove.
2977 (fmin): Likewise.
2978 (smax): Update for V2SF, V4SF and V2DF modes.
2979 (smin): Likewise.
2980 (smax_nan): New.
2981 (smin_nan): Likewise.
2982 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2983 (<su><maxmin><mode>3): ...This, refactor.
2984 (s<maxmin><mode>3): New.
2985 (<maxmin_uns><mode>3): Likewise.
2986 (reduc_<maxmin_uns>_<mode>): Refactor.
2987 (reduc_<maxmin_uns>_v4sf): Likewise.
2988 (reduc_<maxmin_uns>_v2si): Likewise.
2989 (aarch64_<fmaxmin><mode>: Remove.
2990 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2991 new builtin names.
2992 (vmin<q>_f<32,64>): Likewise.
2993 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2994 (FMAXMIN): New.
2995 (su): Add mappings for smax, smin, umax, umin.
2996 (maxmin): New.
2997 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2998 (FMAXMIN): Rename as...
2999 (FMAXMIN_UNS): ...This.
3000 (maxminv): Remove.
3001 (fmaxminv): Likewise.
3002 (fmaxmin): Likewise.
3003 (maxmin_uns): New.
3004 (maxmin_uns_op): Likewise.
3005
bd11644e
JG
30062013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3007
3008 * config/aarch64/arm_neon.h
3009 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3010 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3011 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3012
75dd5ace
JG
30132013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3014
3015 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3016 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3017
7c19979f
JG
30182013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3019
3020 * config/aarch64/aarch64-simd.md
3021 (vcond<mode>_internal): Handle special cases for constant masks.
3022 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3023 (vcondu<mode><mode>): Likewise.
3024 (vcond<v_cmp_result><mode>): New.
3025
bb60efd9
JG
30262013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3027
3028 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3029 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3030 * config/aarch64/aarch64-simd-builtins.def
3031 (cmeq): Update to BUILTIN_VALLDI.
3032 (cmgt): Likewise.
3033 (cmge): Likewise.
3034 (cmle): Likewise.
3035 (cmlt): Likewise.
3036 * config/aarch64/arm_neon.h
3037 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3038 to builtins or C as appropriate.
3039
889b9412
JG
30402013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3041
3042 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3043 (cmgeu): ...This.
3044 (cmhi): Rename to...
3045 (cmgtu): ...This.
3046 * config/aarch64/aarch64-simd.md
3047 (simd_mode): Add SF.
3048 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3049 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3050 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3051 (cstore<mode>_neg): ...This.
3052 * config/aarch64/iterators.md
3053 (VALLF): new.
3054 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3055 (COMPARISONS): New.
3056 (UCOMPARISONS): Likewise.
3057 (optab): Add missing comparisons.
3058 (n_optab): New.
3059 (cmp_1): Likewise.
3060 (cmp_2): Likewise.
3061 (CMP): Likewise.
3062 (cmp): Remove.
3063 (VCMP_S): Likewise.
3064 (VCMP_U): Likewise.
3065 (V_cmp_result): Add DF, SF modes.
3066 (v_cmp_result): Likewise.
3067 (v): Likewise.
3068 (vmtype): Likewise.
3069 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3070
0a7dbb76
GY
30712013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3072
3073 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3074 define_insn to define_insn_and_split.
3075 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3076 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3077 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3078 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3079 (thumb2_negscc): Likewise.
3080
fb614ca6
GY
30812013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3082
3083 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3084
9e64a0bf
GY
30852013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3086
3087 * config/arm/thumb2.md: Remove trailing whitespaces.
3088
d6b28156
RS
30892013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3090
3091 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3092 Use gen_int_mode rather than GEN_INT.
3093
f91674c3
L
30942013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3095
b0dec607 3096 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
3097 debug_gimple_stmt.
3098
3551257c
RB
30992013-04-30 Richard Biener <rguenther@suse.de>
3100
3101 PR middle-end/57122
3c21604f 3102 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 3103
4c1aff1c
RB
31042013-04-30 Richard Biener <rguenther@suse.de>
3105
3106 PR middle-end/57107
3107 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3108
54b8379a
AB
31092013-04-30 Andrey Belevantsev <abel@ispras.ru>
3110
3111 PR rtl-optimization/56957
3112 PR rtl-optimization/57105
54b8379a
AB
3113 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3114 variable. Use just INSN_UID for determining whether an insn
3115 should be only disconnected from the insn stream.
3116 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3117
abc27962
JJ
31182013-04-30 Jakub Jelinek <jakub@redhat.com>
3119
3120 PR tree-optimization/57104
3121 * tsan.c (instrument_expr): Don't instrument accesses to
3122 DECL_HARD_REGISTER VAR_DECLs.
3123
0fc822d0
RB
31242013-04-30 Richard Biener <rguenther@suse.de>
3125
3126 * function.h (loops_for_fn): New inline function.
3127 (set_loops_for_fn): Likewise.
3128 * cfgloop.h (place_new_loop): Add struct function parameter.
3129 (get_loop): Likewise.
3130 (get_loops): Likewise.
3131 (number_of_loops): Likewise.
3132 (fel_next): Adjust.
3133 (fel_init): Likewise.
3134 * cfg.c (get_loop_copy): Adjust.
3135 * cfgloop.c (flow_loops_dump): Likewise.
3136 (record_loop_exits): Likewise.
3137 (verify_loop_structure): Likewise.
3138 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3139 (estimate_reg_pressure_cost): Likewise.
3140 (mark_loop_exit_edges): Likewise.
3141 * cfgloopmanip.c (place_new_loop): Likewise.
3142 (add_loop): Likewise.
3143 (duplicate_loop): Likewise.
3144 * graph.c (draw_cfg_nodes): Likewise.
3145 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3146 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3147 (extract_affine_chrec): Likewise.
3148 (build_scop_iteration_domain): Likewise.
3149 * graphite.c (graphite_initialize): Likewise.
3150 * ira-build.c (create_loop_tree_nodes): Likewise.
3151 (more_one_region_p): Likewise.
3152 (rebuild_regno_allocno_maps): Likewise.
3153 (mark_loops_for_removal): Likewise.
3154 (mark_all_loops_for_removal): Likewise.
3155 (remove_unnecessary_regions): Likewise.
3156 (ira_build): Likewise.
3157 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3158 * loop-init.c (fix_loop_structure): Likewise.
3159 (gate_rtl_move_loop_invariants): Likewise.
3160 (gate_rtl_unswitch): Likewise.
3161 (gate_rtl_unroll_and_peel_loops): Likewise.
3162 (rtl_doloop): Likewise.
3163 * lto-streamer-in.c (input_cfg): Likewise.
3164 * lto-streamer-out.c (output_cfg): Likewise.
3165 * modulo-sched.c (sms_schedule): Likewise.
3166 * predict.c (tree_estimate_probability): Likewise.
3167 (tree_estimate_probability_driver): Likewise.
3168 (estimate_loops): Likewise.
3169 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3170 (move_sese_region_to_fn): Likewise.
3171 (debug_loop_num): Likewise.
3172 * tree-chrec.c (chrec_evaluate): Likewise.
3173 (hide_evolution_in_other_loops_than_loop): Likewise.
3174 (chrec_component_in_loop_num): Likewise.
3175 (reset_evolution_in_loop): Likewise.
3176 (evolution_function_is_invariant_rec_p): Likewise.
3177 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3178 * tree-inline.c (copy_loops): Likewise.
3179 (copy_cfg_body): Likewise.
3180 (tree_function_versioning): Likewise.
3181 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3182 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3183 Likewise.
3184 (add_to_evolution_1): Likewise.
3185 (scev_const_prop): Likewise.
3186 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3187 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3188 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3189 (tree_ssa_lim_initialize): Likewise.
3190 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3191 (verify_loop_closed_ssa): Likewise.
3192 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3193 (tree_ssa_loop_im): Likewise.
3194 (tree_ssa_loop_unswitch): Likewise.
3195 (tree_vectorize): Likewise.
3196 (check_data_deps): Likewise.
3197 (tree_ssa_loop_ivcanon): Likewise.
3198 (tree_ssa_loop_bounds): Likewise.
3199 (tree_complete_unroll): Likewise.
3200 (tree_complete_unroll_inner): Likewise.
3201 (tree_parallelize_loops): Likewise.
3202 (tree_ssa_loop_prefetch): Likewise.
3203 (tree_ssa_loop_ivopts): Likewise.
3204 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3205 * tree-vectorizer.c (vectorize_loops): Likewise.
3206
37953bd3
MF
32072013-04-29 Mike Frysinger <vapier@gentoo.org>
3208
3209 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3210 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3211 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3212 with EABI_LINK_SPEC.
3213
f9ed28db
UB
32142013-04-29 Uros Bizjak <ubizjak@gmail.com>
3215
3216 PR target/44578
3217 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3218 alternative.
3219
deca73f5
VM
32202013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3221
3222 PR target/57097
37953bd3 3223 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
3224 using memory for pseudos. Print cost dump for alternatives.
3225 Modify cost values for conflicts with early clobbers.
3226 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3227
fdca7d03
UB
32282013-04-29 Uros Bizjak <ubizjak@gmail.com>
3229
3230 PR target/57098
3231 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3232
0b064172
IB
32332013-04-29 Ian Bolton <ian.bolton@arm.com>
3234
3235 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3236 from/to S register.
3237 (movdi_aarch64): Support LDR/STR from/to D register.
3238
473cec55
IB
32392013-04-29 Ian Bolton <ian.bolton@arm.com>
3240
3241 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3242 or higher by default.
3243
a6f30e66
RB
32442013-04-29 Richard Biener <rguenther@suse.de>
3245
3246 PR middle-end/57075
3247 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3248 even if not adding abnormal edges for calls that can make
3249 abnormal gotos.
3250
0c2b2040
RB
32512013-04-29 Richard Biener <rguenther@suse.de>
3252
3253 PR middle-end/57103
3254 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3255 TREE_BLOCK.
3256 (move_stmt_r): Remove redundant checking.
3257
f41f80f9
TJ
32582013-04-29 Teresa Johnson <tejohnson@google.com>
3259
3260 PR bootstrap/57077
3261 * basic-block.h (apply_scale): New function.
3262 (apply_probability): Use apply_scale.
3263 * gimple-streamer-in.c (input_bb): Ditto.
3264 * lto-streamer-in.c (input_cfg): Ditto.
3265 * lto-cgraph.c (merge_profile_summaries): Ditto.
3266 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 3267 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
3268 (copy_edges_for_bb): Ditto.
3269 (copy_cfg_body): Ditto.
3270
315bbd2e
TV
32712013-04-29 Tom de Vries <tom@codesourcery.com>
3272
3273 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3274 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3275 (tail_merge_optimize): Handle current_loops == NULL.
3276
ebbd90d8
JL
32772013-04-26 Jeff Law <law@redhat.com>
3278
3279 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3280 (simplify_cond_using_ranges): Generalize code to simplify
3281 COND_EXPRs where one argument is a constant and the other
3282 is an SSA_NAME created by an integral type conversion.
3283
8b9b57eb
KT
32842013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3285
3286 * config/arm/arm.md (store_minmaxsi): Use only when
3287 optimize_insn_for_size_p.
3288
9498e5dc
CB
32892013-04-29 Christian Bruel <christian.bruel@st.com>
3290
3291 PR target/57108
3292 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3293
6093bc06
RB
32942013-04-29 Richard Biener <rguenther@suse.de>
3295
3296 PR middle-end/57089
fdca7d03
UB
3297 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3298 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
3299 (expand_omp_for_generic): Properly add loops.
3300 (expand_omp_for_static_nochunk): Likewise.
3301 (expand_omp_for_static_chunk): Likewise.
3302 (expand_omp_for): For the degenerate case fixup loops.
3303 (expand_omp_sections): Fix default bb placement in loops.
3304 (expand_omp_atomic_pipeline): Properly add loops.
3305
84aacbfd
KT
33062013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3307
3308 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3309
8dee4479
TV
33102013-04-29 Tom de Vries <tom@codesourcery.com>
3311
3312 * tree-ssa-tail-merge.c: Update header comment.
3313
47934dc4
JG
33142013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3315
3316 * config/aarch64/arm_neon.h
3317 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3318 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3319 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3320 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3321 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3322 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3323 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3324 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3325
384be29f
JG
33262013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3327
3328 * config/aarch64/aarch64-simd.md
3329 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3330 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3331 fix_trunc, fixuns_trunc.
3332 (ftrunc<VDQF:mode>2): New.
3333 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3334 (fix_trunc_optab): New.
3335
0386b123
JG
33362013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3337
3338 * config/aarch64/aarch64-builtins.c
3339 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3340 iceilf, lround, iroundf.
3341
00fcb892
UB
33422013-04-29 Uros Bizjak <ubizjak@gmail.com>
3343
3344 PR target/54349
3345 * config/i386/i386.h (enum ix86_tune_indices)
3346 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3347 New, split from X86_TUNE_INTER_UNIT_MOVES.
3348 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3349 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3350 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3351 (TARGET_INTER_UNIT_MOVES): Remove.
3352 * config/i386/i386.c (initial_ix86_tune_features): Update.
3353 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3354 (ix86_expand_convert_uns_didf_sse): Use
3355 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3356 (ix86_expand_vector_init_one_nonzero): Ditto.
3357 (ix86_expand_vector_init_interleave): Ditto.
3358 (inline_secondary_memory_needed): Return true for moves from SSE class
3359 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3360 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3361 * config/i386/constraints.md (Yi, Ym): Depend on
3362 TARGET_INTER_UNIT_MOVES_TO_VEC.
3363 (Yj, Yn): New constraints.
3364 * config/i386/i386.md (*movdi_internal): Change constraints of
3365 operand 1 from Yi to Yj and from Ym to Yn.
3366 (*movsi_internal): Ditto.
3367 (*movdf_internal): Ditto.
3368 (*movsf_internal): Ditto.
3369 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3370 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3371 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3372 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3373 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3374 * config/i386/sse.md (movdi_to_sse): Ditto.
3375 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3376 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3377 TARGET_INTER_UNIT_MOVES.
3378 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3379 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3380 instead of TARGET_INTER_UNIT_MOVES.
3381 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3382 operand 1 from Yi to Yj and from Ym to Yn.
3383
4c871069
JG
33842013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3385
3386 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3387 (float_truncate_hi_): Likewise.
3388 (float_extend_lo_): Likewise.
3389 (float_truncate_lo_): Likewise.
3390 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3391 (aarch64_float_extend_lo_v2df): Likewise.
3392 (vec_unpacks_hi_v4sf): Likewise.
3393 (aarch64_float_truncate_lo_v2sf): Likewise.
3394 (aarch64_float_truncate_hi_v4sf): Likewise.
3395 (vec_pack_trunc_v2df): Likewise.
3396 (vec_pack_trunc_df): Likewise.
3397
1709ff9b
JG
33982013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3399
3400 * config/aarch64/aarch64-builtins.c
3401 (aarch64_fold_builtin): Fold float conversions.
3402 * config/aarch64/aarch64-simd-builtins.def
3403 (floatv2si, floatv4si, floatv2di): New.
3404 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3405 * config/aarch64/aarch64-simd.md
3406 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3407 * config/aarch64/iterators.md (FLOATUORS): New.
3408 (optab): Add float, floatuns.
3409 (su_optab): Likewise.
3410
ce966824
JG
34112013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3412
3413 * config/aarch64/aarch64-builtins.c
3414 (aarch64_builtin_vectorized_function): Use new names for
3415 fcvt builtins.
3416 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3417 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3418 (fcvtzu): Split as...
3419 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3420 (fcvtas): Split as...
3421 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3422 (fcvtau): Split as...
3423 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3424 (fcvtps): Split as...
3425 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3426 (fcvtpu): Split as...
3427 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3428 (fcvtms): Split as...
3429 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3430 (fcvtmu): Split as...
3431 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3432 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3433 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3434 (lfrintnusf, lfrintnudf): Likewise.
3435 * config/aarch64/aarch64-simd.md
3436 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3437 define_insn.
3438 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3439 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3440 (fcvt_pattern): Likewise.
3441
b9de24fe
JG
34422013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3443
3444 * config/aarch64/aarch64-simd.md
3445 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3446 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3447
77a205be
JG
34482013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3449
3450 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3451 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3452 (vrnd<a,m,n,p>_f32): Implement using builtins.
3453 (vrnd<i,x><q>_f<32, 64>): New.
3454
0659ce6f
JG
34552013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3456
3457 * config/aarch64/aarch64-builtins.c
3458 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3459 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3460 (frintz): Rename to...
3461 (btrunc): ...this.
3462 (frintp): Rename to...
3463 (ceil): ...this.
3464 (frintm): Rename to...
3465 (floor): ...this.
3466 (frinti): Rename to...
3467 (nearbyint): ...this.
3468 (frintx): Rename to...
3469 (rint): ...this.
3470 (frinta): Rename to...
3471 (round): ...this.
3472 * config/aarch64/aarch64-simd.md
3473 (aarch64_frint<frint_suffix><mode>): Delete.
3474 (<frint_pattern><mode>2): Convert to insn.
3475 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3476 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3477 (frint_pattern): Likewise.
3478 (frint_suffix): Likewise.
3479
ea78906a
RB
34802013-04-29 Richard Biener <rguenther@suse.de>
3481
3482 PR tree-optimization/57081
3483 * loop-init.c: Include tree-flow.h.
3484 (loop_optimizer_finalize): Free number of iteration estimates.
3485 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3486
baee1763
JJ
34872013-04-29 Jakub Jelinek <jakub@redhat.com>
3488
94dc5332
JJ
3489 PR tree-optimization/57083
3490 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3491 non-singleton shift count range, zero extend low_bound for uns case.
3492
baee1763
JJ
3493 * config/i386/predicates.md (general_vector_operand): New predicate.
3494 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3495 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3496 if they aren't nonimmediate operands. If their original values
3497 satisfy const_vector_equal_evenodd_p, don't shift them.
3498 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3499 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3500 if not nonimmediate_operand.
3501 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3502 instead of register_operand.
3503 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3504
a9073727 35052013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
3506
3507 * stor-layout.c (finalize_size_functions): Allocate a structure and
3508 reset cfun before dumping the functions.
3509
ba8011e6
JJ
35102013-04-27 Jakub Jelinek <jakub@redhat.com>
3511
d6fde69e
JJ
3512 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3513
ba8011e6
JJ
3514 PR target/56866
3515 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3516 use xop_pmacsdqh if uns_p.
3517 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3518 the immediate rotate count.
3519
2c62cbaa
VM
35202013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3521
3522 * rtl.h (struct rtx_def): Add comment for field jump.
3523 (LRA_SUBREG_P): New macro.
3524 * recog.c (register_operand): Check LRA_SUBREG_P.
3525 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3526 stack frame.
3527 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3528 (lra_final_code_change): Skip subreg change for operators.
3529 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3530 if there are no operand changes.
3531 * lra-constraints.c (curr_insn_set): New.
3532 (match_reload): Set LRA_SUBREG_P.
3533 (emit_spill_move): Ditto.
3534 (check_and_process_move): Use curr_insn_set. Process only single
3535 set insns. Don't initialize sec_mem_p and change_p.
3536 (simplify_operand_subreg): Use LRA_SUBREG_P.
3537 (reg_in_class_p): New function.
3538 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3539 of #ifdef. Add code to remove cycling.
3540 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3541 non-null disp. Reload inner instead of disp when base and index
3542 are null. Try to put lo_sum into register.
3543 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3544 (check_and_process_move): Move code for move cost check to
3545 simple_move_p. Remove equiv_substitution.
3546 (simple_move_p): New function.
3547 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3548 curr_insn_set. Call check_and_process_move only for single set
3549 insns. Use the new function. Move call of check_and_process_move
3550 after operand equiv substitution and address process.
3551
e7d764f3
JJ
35522013-04-26 Jakub Jelinek <jakub@redhat.com>
3553
3554 PR go/57045
3555 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3556 with nonlocal goto receivers or returns twice calls, ignore
3557 unininitialized values from abnormal edges to nl goto receiver
3558 or returns twice call.
3559
41e10689
JJ
35602013-04-26 Jakub Jelinek <jakub@redhat.com>
3561
3562 PR tree-optimization/57051
3563 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3564 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3565 bitsize.
3566
d7ed20db
RB
35672013-04-26 Richard Biener <rguenther@suse.de>
3568
3569 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3570 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3571 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3572 (fixup_loop_arrays_after_move): New function.
3573 (move_sese_region_to_fn): Properly outline the loop tree parts
3574 of the SESE region.
3575
df93505e
UB
35762013-04-26 Uros Bizjak <ubizjak@gmail.com>
3577
3578 * config/i386/i386.md (type, unit): Fix long lines.
3579
dd366ec3
RB
35802013-04-26 Richard Biener <rguenther@suse.de>
3581
3582 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3583 (lto-streamer-out.o): Likewise.
3584 * cfgloop.c (init_loops_structure): Export, add struct function
3585 argument and adjust.
3586 (flow_loops_find): Adjust.
3587 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3588 (init_loops_structure): Declare.
3589 * lto-streamer-in.c: Include cfgloop.h.
3590 (input_cfg): Input the loop tree.
3591 * lto-streamer-out.c: Include cfgloop.h.
3592 (output_cfg): Output the loop tree.
3593 (output_struct_function_base): Do not drop PROP_loops.
3594
a9e0d843
RB
35952013-03-26 Richard Biener <rguenther@suse.de>
3596
3597 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3598 (pass_build_cfg): Provide PROP_loops.
3599 (move_sese_region_to_fn): Remove loops that are outlined into fn
3600 for now.
3601 * tree-inline.c: Include cfgloop.h.
3602 (initialize_cfun): Do not drop PROP_loops.
3603 (copy_loops): New function.
3604 (copy_cfg_body): Copy loop structure.
3605 (tree_function_versioning): Initialize destination loop tree.
3606 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3607 (pass_parallelize_loops): Do IL verification.
3608 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3609 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3610 the CFG make sure we fixup loops as well.
3611 * tree-ssa-tail-merge.c: Include cfgloop.h.
3612 (replace_block_by): When merging loop latches mark loops for fixup.
3613 * lto-streamer-out.c (output_struct_function_base): Drop
3614 PROP_loops for now.
3615 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3616 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3617 * ipa-split.c: Include cfgloop.h.
3618 (split_function): Add the new return block to the loop tree root.
3619 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3620 whether we have removed the forwarder block.
3621 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3622 * cfgloop.h (place_new_loop): Declare.
3623 * cfgloopmanip.c (place_new_loop): Export.
3624 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3625 (tree-switch-conversion.o): Likewise.
3626 (tree-complex.o): Likewise.
3627 (tree-inline.o): Likewise.
3628 (tree-ssa-tailmerge.o): Likewise.
3629 (ipa-split.o): Likewise.
3630 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3631 (tree-ssa-copy.o): Likewise.
3632 * tree-switch-conversion.c: Include cfgloop.h
3633 (process_switch): If we emit a bit-test cascade, schedule loops
3634 for fixup.
3635 * tree-complex.c: Include cfgloop.h.
3636 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3637 * asan.c: Include cfgloop.h.
3638 (create_cond_insert_point): Properly add new basic-blocks to
3639 loops, schedule loop fixup.
3640 * cfgloop.c (verify_loop_structure): Check that looks are not
3641 marked for fixup.
3642 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3643 to loops.
3644 (expand_omp_for_generic): Likewise.
3645 (expand_omp_sections): Likewise.
3646 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3647 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3648 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3649 is initialized, not when loops are present.
3650 * tree-parloops.c (parallelize_loops): Remove checking here.
3651 * passes.c (init_optimization_passes): Schedule a copy-propagation
3652 pass before complete unrolling of inner loops.
3653
e78e8a0b
JJ
36542013-04-26 Jakub Jelinek <jakub@redhat.com>
3655
a2e836b2
JJ
3656 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3657 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3658 (colorize_init): Add argument to _WIN32 version.
3659 * toplev.c: Include diagnostic-color.h.
3660 (process_options): Default to -fdiagnostics-color=auto if
3661 GCC_COLORS env var is in the environment.
3662 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
3663 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3664 env var is in the environment, the default is auto rather than never.
a2e836b2 3665
e78e8a0b
JJ
3666 * diagnostic.h (file_name_as_prefix): Add context argument.
3667 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3668 the string as locus.
3669 * langhooks.c (lhd_print_error_function): Adjust caller.
3670
013e5ef9
LC
36712013-04-25 Lawrence Crowl <crowl@google.com>
3672
3673 * var-tracking.c (shared_hash_def::htab):
3674 Change type to hash_table. Update dependent calls and types.
3675
4a8fb1a1
LC
36762013-04-25 Lawrence Crowl <crowl@google.com>
3677
3678 * Makefile.in: Update as needed below.
3679
3680 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3681 Move declaration to after the type's method definitons.
3682
3683 * attribs.c (htab_t scoped_attributes::attribute_hash):
3684 Change type to hash_table. Update dependent calls and types.
3685
3686 * bitmap.c (htab_t bitmap_desc_hash):
3687 Change type to hash_table. Update dependent calls and types.
3688
3689 * cselib.c (htab_t cselib_hash_table):
3690 Change type to hash_table. Update dependent calls and types.
3691
3692 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3693 (hash_string_slot_node): Move implementation into lto-streamer.h
3694 struct string_slot_hasher.
3695 (eq_string_slot_node): Likewise.
3696
3697 * data-streamer-out.c: Update output_block::string_hash_table
3698 dependent calls and types.
3699
3700 * dwarf2cfi.c (htab_t trace_index):
3701 Change type to hash_table. Update dependent calls and types.
3702
3703 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3704 Change type to hash_table. Update dependent calls and types.
3705 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3706 (htab_t optimize_external_refs::map): Likewise.
3707 (htab_t output_comp_unit::extern_map): Likewise.
3708 (htab_t output_comdat_type_unit::extern_map): Likewise.
3709 (htab_t output_macinfo::macinfo_htab): Likewise.
3710 (htab_t optimize_location_lists::htab): Likewise.
3711 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3712
3713 * except.c (htab_t ehspec_hash_type):
3714 Change type to hash_table. Update dependent calls and types.
3715 (assign_filter_values::ttypes): Likewise.
3716 (assign_filter_values::ehspec): Likewise.
3717 (sjlj_assign_call_site_values::ar_hash): Likewise.
3718 (convert_to_eh_region_ranges::ar_hash): Likewise.
3719
3720 * gcse.c (htab_t pre_ldst_table):
3721 Change type to hash_table. Update dependent calls and types.
3722
3723 * ggc-common.c (htab_t saving_htab):
3724 Change type to hash_table. Update dependent calls and types.
3725 (htab_t loc_hash): Likewise.
3726 (htab_t ptr_hash): Likewise.
3727 (call_count): Rename ggc_call_count.
3728 (call_alloc): Rename ggc_call_alloc.
3729 (loc_descriptor): Rename make_loc_descriptor.
3730 (add_statistics): Rename ggc_add_statistics.
3731
3732 * ggc-common.c (saving_htab):
3733 Change type to hash_table. Update dependent calls and types.
3734
3735 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3736 (push_gimplify_context): Likewise.
3737 (pop_gimplify_context): Likewise.
3738 (struct gimple_temp_hash_elt): Added.
3739 (struct gimplify_hasher): Likewise.
3740 (struct gimplify_ctx.temp_htab):
3741 Change type to hash_table. Update dependent calls and types.
3742
3743 * gimple-fold.c: Include gimplify-ctx.h.
3744
3745 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3746 Change type to hash_table. Update dependent calls and types.
3747 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3748 avoid potential global name collision.
3749
3750 * gimplify.c: Include gimplify-ctx.h.
3751 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3752 (htab_t gimplify_ctx::temp_htab):
3753 Update dependent calls and types for new type hash_table.
3754 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3755 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3756
3757 * gimplify-ctx.h: New.
3758 (struct gimple_temp_hash_elt): Move from gimplify.c.
3759 (class gimplify_hasher): New.
3760 (struct gimplify_ctx): Move from gimple.h.
3761 (htab_t gimplify_ctx::temp_htab):
3762 Change type to hash_table. Update dependent calls and types.
3763
3764 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3765 (htab_t ivs_params::newivs_index):
3766 Change type to hash_table. Update dependent calls and types.
3767 (htab_t ivs_params::params_index): Likewise.
3768 (htab_t print_generated_program::params_index): Likewise.
3769 (htab_t gloog::newivs_index): Likewise.
3770 (htab_t gloog::params_index): Likewise.
3771
3772 * graphite.c: Include graphite-htab.h.
3773 4htab_t graphite_transform_loops::bb_pbb_mapping):
3774 Change type to hash_table. Update dependent calls and types.
3775
3776 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3777 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3778 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3779
3780 * graphite-dependences.c: Include graphite-htab.h.
3781 (loop_is_parallel_p): Change hash table type of parameter.
3782
3783 * graphite-htab.h: New.
3784 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3785 (extern find_pbb_via_hash): Move from graphite-poly.h.
3786 (extern loop_is_parallel_p): Move from graphite-poly.h.
3787 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3788
3789 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3790 (extern loop_is_parallel_p): Move to graphite-htab.h.
3791 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3792
3793 * haifa-sched.c (htab_t delay_htab):
3794 Change type to hash_table. Update dependent calls and types.
3795 (htab_t delay_htab_i2): Likewise.
3796
3797 * ira-color.c (htab_t allocno_hard_regs_htab):
3798 Change type to hash_table. Update dependent calls and types.
3799
3800 * ira-costs.c (htab_t cost_classes_htab):
3801 Change type to hash_table. Update dependent calls and types.
3802
3803 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3804 Change type to hash_table. Update dependent calls and types.
3805
3806 * loop-iv.c (htab_t bivs):
3807 Change type to hash_table. Update dependent calls and types.
3808
3809 * loop-unroll.c (htab_t opt_info::insns_to_split):
3810 Change type to hash_table. Update dependent calls and types.
3811 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3812
3813 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3814 (struct string_slot_hasher): New.
3815 (htab_t output_block::string_hash_table):
3816 Change type to hash_table. Update dependent calls and types.
3817
3818 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3819 (htab_t file_name_hash_table):
3820 Change type to hash_table. Update dependent calls and types.
3821
3822 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3823 calls and types.
3824
3825 * lto-streamer.c (htab_t tree_htab):
3826 Change type to hash_table. Update dependent calls and types.
3827
3828 * omp-low.c: Include gimplify-ctx.h.
3829
3830 * passes.c (htab_t name_to_pass_map):
3831 Change type to hash_table. Update dependent calls and types.
3832 (pass_traverse): Rename to passes_pass_traverse.
3833
3834 * plugin.c (htab_t event_tab):
3835 Change type to hash_table. Update dependent calls and types.
3836
3837 * postreload-gcse.c (htab_t expr_table):
3838 Change type to hash_table. Update dependent calls and types.
3839 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3840
3841 * sese.c (debug_rename_map_1): Make extern.
3842 (htab_t copy_bb_and_scalar_dependences::rename_map):
3843 Change type to hash_table. Update dependent calls and types.
3844
3845 * sese.h (extern debug_rename_map): Move to .c file.
3846
3847 * store-motion.c (htab_t store_motion_mems_table):
3848 Change type to hash_table. Update dependent calls and types.
3849
3850 * trans-mem.c (htab_t tm_new_mem_hash):
3851 Change type to hash_table. Update dependent calls and types.
3852
3853 * tree-browser.c (htab_t TB_up_ht):
3854 Change type to hash_table. Update dependent calls and types.
3855
3856 * tree-cfg.c (htab_t discriminator_per_locus):
3857 Change type to hash_table. Update dependent calls and types.
3858
3859 * tree-complex.c: Include tree-hasher.h
3860 (htab_t complex_variable_components):
3861 Change type to hash_table. Update dependent calls and types.
3862
3863 * tree-eh.c (htab_t finally_tree):
3864 Change type to hash_table. Update dependent calls and types.
3865
3866 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3867 struct int_tree_hasher.
3868 (extern int_tree_map_eq): Likewise.
3869 (uid_decl_map_hash): Removed.
3870 (extern decl_tree_map_eq): Likewise.
3871
3872 * tree-hasher.h: New.
3873 (struct int_tree_hasher): New.
3874 (typedef int_tree_htab_type): New.
3875
3876 * tree-inline.c: Include gimplify-ctx.h.
3877
3878 * tree-mudflap.c: Include gimplify-ctx.h.
3879
3880 * tree-parloops.c: Include tree-hasher.h.
3881 (htab_t eliminate_local_variables_stmt::decl_address):
3882 Change type to hash_table. Update dependent calls and types.
3883 (htab_t separate_decls_in_region::decl_copies): Likewise.
3884
3885 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3886 Change type to hash_table. Update dependent calls and types.
3887
3888 * tree-sra.c (candidates):
3889 Change type to hash_table. Update dependent calls and types.
3890
3891 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3892 in tree-flow.h.
3893 (int_tree_map_hash): Likewise.
3894
3895 * tree-ssa-dom.c (htab_t avail_exprs):
3896 Change type to hash_table. Update dependent calls and types.
3897
3898 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3899 Change type to hash_table. Update dependent calls and types.
3900
3901 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3902 Change type to hash_table. Update dependent calls and types.
3903
3904 * tree-ssa-phiopt.c (seen_ssa_names):
3905 Change type to hash_table. Update dependent calls and types.
3906
3907 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3908 Change type to hash_table. Update dependent calls and types.
3909
3910 * tree-ssa-uncprop.c (equiv):
3911 Change type to hash_table. Update dependent calls and types.
3912
c5a44004
JJ
39132013-04-25 Jakub Jelinek <jakub@redhat.com>
3914
3915 PR rtl-optimization/57003
3916 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3917 call note_stores with kill_clobbered_value callback again after
3918 killing regs_invalidated_by_call.
3919
09962a4a
JG
39202013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3921
3922 * config/aarch64/aarch64-simd.md
3923 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3924 (aarch64_simd_bsl<mode>): Likewise.
3925 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3926
ea28bb0b
MP
39272013-04-25 Marek Polacek <polacek@redhat.com>
3928
3929 PR tree-optimization/57066
3c21604f 3930 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3931
96659611
JG
39322013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3933
3934 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3935
9697e620
JG
39362013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3937
3938 * config/aarch64/aarch64-builtins.c
3939 (aarch64_fold_builtin): New.
3940 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3941 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3942 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3943 * config/aarch64/arm_neon.h
3944 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3945
0ac198d3
JG
39462013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3947 Tejas Belagod <tejas.belagod@arm.com>
3948
3949 * config/aarch64/aarch64-builtins.c
3950 (aarch64_gimple_fold_builtin): New.
3951 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3952 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3953 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3954 (addvv4sf): Update.
3955 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3956
58cff58c
N
39572013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3958
df93505e 3959 * config/aarch64/aarch64.md
58cff58c
N
3960 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3961
7e0228bf
N
39622013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3963
3964 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3965 (*ngcsi_uxtw): New pattern.
3966
5819f96f 39672013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3968 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3969
3970 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3971 (TB_DREG): Add T_V4HF.
3972 (v4hf_UP): New macro.
3973 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3974 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3975 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3976 built-ins.
df93505e 3977 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3978 (arm_vector_mode_supported_p): Handle V4HF.
3979 (arm_mangle_map): Handle V4HFmode.
3980 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3981 * config/arm/arm_neon_builtins.def: Add entries for
3982 vcvtv4hfv4sf, vcvtv4sfv4hf.
3983 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3984 (neon_vcvtv4hfv4sf): Likewise.
3985 * config/arm/neon-gen.ml: Handle half-precision floating point
3986 features.
3987 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3988 * config/arm/arm_neon.h: Regenerate.
3989 * config/arm/neon.ml (type elts): Add F16.
3990 (type vectype): Add T_float16x4, T_floatHF.
3991 (type vecmode): Add V4HF.
3992 (type features): Add Requires_FP_bit feature.
3993 (elt_width): Handle F16.
3994 (elt_class): Likewise.
3995 (elt_of_class_width): Likewise.
3996 (mode_of_elt): Refactor.
3997 (type_for_elt): Handle F16, fix error messages.
3998 (vectype_size): Handle T_float16x4.
3999 (vcvt_sh): New function.
4000 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4001 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4002 (string_of_mode): Handle V4HF.
4003 * doc/arm-neon-intrinsics.texi: Regenerate.
4004
1ef395e4
JG
40052013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4006
4007 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4008 format specifier in 'X' case.
4009
41c34e94
AM
40102013-04-25 Alan Modra <amodra@gmail.com>
4011
4012 PR target/57052
4013 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4014 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4015 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4016 Repeat for many other rotate/shift and mask patterns using subregs.
4017 Name lshiftrt insns.
4018 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4019 on WORDS_BIG_ENDIAN.
4020
b9a7eb5d
AM
40212013-04-25 Alan Modra <amodra@gmail.com>
4022
4023 * config.gcc: Support little-endian powerpc-linux targets.
4024 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4025 (LINK_OS_LINUX_SPEC): Define.
4026 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4027 Preserve MASK_LITTLE_ENDIAN.
4028 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4029 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4030 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4031 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4032 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4033 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4034 Correct fp word order for little-endian. Don't shift toc entries
4035 smaller than a word for little-endian.
4036 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4037 (bswapdi2 splits): Correct low-part subreg for little-endian.
4038 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4039 low/high where such is correct only for be.
4040 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4041 little-endian for -mcall-aixdesc.
4042
87f73374
AM
40432013-04-25 Alan Modra <amodra@gmail.com>
4044
4045 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4046 replace_equiv_address_nv.
4047
cabf91cd
AM
40482013-04-25 Alan Modra <amodra@gmail.com>
4049
4050 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4051
0ae24cc8
VM
40522013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4053
4054 Revert:
4055 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4056 * rtl.h (struct rtx_def): ...
cabf91cd 4057
77bce07c
VM
40582013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4059
4060 PR rtl-optimizations/57046
4061 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4062 for multi-reg splits.
4063
0db63e7f
L
40642013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4065
4066 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4067
3362b6b6
SA
40682013-04-24 Sterling Augustine <saugustine@google.com>
4069
4070 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4071 (comp_dir_string, debug_str_dwo_section): New.
4072 (DEBUG_STR_DWO_SECTION): Rename to ...
4073 (DEBUG_DWO_STR_SECTION): ... this.
4074 (DEBUG_NORM_STR_SECTION): Delete.
4075 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4076 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4077 (find_AT_string): Move most logic to ...
4078 (find_AT_string_in_table): ... here. New.
4079 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4080 add_skeleton_AT_string. Delete logic.
4081 (output_skeleton_debug_sections): Remove call to
4082 add_top_level_skeleton_die_attrs.
4083 (add_comp_dir_attribute): Move logic to comp_dir_string.
4084 (dwarf2out_init): Initialize debug_str_dwo_section.
4085 (output_indirect_string): Call find_string_form.
4086 (output_indirect_strings): Rewrite.
4087 (prune_unused_types): Empty skeleton_debug_str_hash.
4088 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4089 (dwarf2out_finish): Call output_indirect_strings.
4090
e93e18e9
PC
40912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4092
4093 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4094
f6ce35ac
VM
40952013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4096
cabf91cd 4097 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
4098 (LRA_SUBREG_P): New macro.
4099 * recog.c (register_operand): Check LRA_SUBREG_P.
4100 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4101 stack frame.
4102 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4103 (lra_final_code_change): Skip subreg change for operators.
4104 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4105 if there are no operand changes.
4106 * lra-constraints.c (curr_insn_set): New.
4107 (match_reload): Set LRA_SUBREG_P.
4108 (emit_spill_move): Ditto.
4109 (check_and_process_move): Use curr_insn_set. Process only single
4110 set insns. Don't initialize sec_mem_p and change_p.
4111 (simplify_operand_subreg): Use LRA_SUBREG_P.
4112 (reg_in_class_p): New function.
4113 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4114 of #ifdef. Add code to remove cycling.
4115 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4116 non-null disp. Reload inner instead of disp when base and index
4117 are null. Try to put lo_sum into register.
4118 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 4119 (check_and_process_move): Move code for move cost check to
f6ce35ac 4120 simple_move_p. Remove equiv_substitution.
cabf91cd 4121 (simple_move_p): New function.
f6ce35ac
VM
4122 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4123 curr_insn_set. Call check_and_process_move only for single set
4124 insns. Use the new function. Move call of check_and_process_move
4125 after operand equiv substitution and address process.
4126
38047d90
JG
41272013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4128
4129 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4130 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4131 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4132
13f39b2e
PC
41332013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4134
4135 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4136
97c116dc
MP
41372013-04-24 Marek Polacek <polacek@redhat.com>
4138
4139 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4140 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4141 (select_loops_exit_conditions): Likewise.
4142 (number_of_iterations_for_all_loops): Likewise.
4143 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4144 (scev_analysis): Likewise.
4145
83082391
CM
41462013-04-02 Catherine Moore <clm@codesourcery.com>
4147 Chao-ying Fu <fu@mips.com>
4148
cabf91cd
AM
4149 * config/mips/micromips.md (jraddiusp): New pattern.
4150 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4151 instruction if possible.
83082391 4152
19e34aa2
AM
41532013-04-24 Alan Modra <amodra@gmail.com>
4154
4155 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4156
fdb6603c
JB
41572013-04-24 Julian Brown <julian@codesourcery.com>
4158 Chung-Lin Tang <cltang@codesourcery.com>
4159
4160 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
4161 dependency behavior in enumeration type DIE generation. Add TODO note
4162 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 4163
bf190e8d
LC
41642013-04-23 Lawrence Crowl <crowl@google.com>
4165
4166 * Makefile.in: Update as needed below.
4167
4168 * hash-table.h (class hash_table):
4169 Correct many methods with parameter types compare_type to the correct
4170 value_type. (Correct code was unlikely to notice the change.)
4171 (hash_table::elements_with_deleted) New.
4172 (class hashtable::iterator): New.
4173 (hashtable::begin()): New.
4174 (hashtable::end()): New.
4175 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4176
4177 * statistics.c (statistics_hashes):
4178 Change type to hash_table. Update dependent calls and types.
4179
4180 * tree-into-ssa.c (var_infos):
4181 Change type to hash_table. Update dependent calls and types.
4182
4183 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4184 Change type to hash_table. Update dependent calls and types.
4185
4186 * tree-ssa-loop-im.c (struct mem_ref.refs):
4187 Change type to hash_table. Update dependent calls and types.
4188
4189 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4190 Change type to hash_table. Update dependent calls and types.
4191
4192 * tree-ssa-sccvn.c (vn_tables_s::nary):
4193 Change type to hash_table. Update dependent calls and types.
4194 (vn_tables_s::phis): Likewise.
4195 (vn_tables_s::references): Likewise.
4196
4197 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4198 (vn_reference_eq): Update parameter and return types.
4199
4200 * tree-ssa-structalias.c (pointer_equiv_class_table):
4201 Change type to hash_table. Update dependent calls and types.
4202 (location_equiv_class_table): Likewise.
4203
4204 * tree-vect-data-refs.c: Consequential changes for making
4205 peeling a hash_table.
4206
4207 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4208 (destroy_loop_vec_info): Dependent hash_table update.
4209
4210 * tree-vectorizer.h (peeling_htab):
4211 Change type to hash_table. Update dependent calls and types.
4212
d70a81dd
SC
42132013-04-23 Shiva Chen <shiva0217@gmail.com>
4214
cabf91cd
AM
4215 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4216 to check the register content is equal or not.
4217 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4218 to assign register content record.
4219 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 4220 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
4221 * lra-int.h (struct lra_reg): Add offset member.
4222 (lra_reg_val_equal_p): New static inline function.
4223 (lra_update_reg_val_offset): New static inline function.
4224 (lra_assign_reg_val): New static inline function.
4225 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4226 to assign register content record.
4227 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 4228
b894a1f3
CM
42292013-04-23 Catherine Moore <clm@codesourcery.com>
4230
4231 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4232 operands. Record compression.
4233
ecd14de9
XDL
42342013-04-23 Xinliang David Li <davidxl@google.com>
4235
4236 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4237
92e776e9
RB
42382013-04-23 Richard Biener <rguenther@suse.de>
4239
4240 PR middle-end/57036
4241 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4242 parameter, only add abnormal goto edges from the copied body
4243 if the call could perform abnormal gotos.
4244 (copy_cfg_body): Adjust.
4245
a15ee567
SN
42462013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4247
4248 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4249
08c52234
AS
42502013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4251
4252 * coretypes.h (gimple_stmt_iterator): Add struct to make
4253 compatible with C.
4254
999c1171
RB
42552013-04-23 Richard Biener <rguenther@suse.de>
4256
4257 PR tree-optimization/57026
4258 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4259 from SSA names occuring in abnormal PHI nodes.
4260
53669259
AK
42612013-04-22 Andi Kleen <ak@linux.intel.com>
4262
4263 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4264
1a0ad150
AK
42652013-04-22 Andi Kleen <ak@linux.intel.com>
4266
4267 * lto/lto.c (print_lto_report_1): Declare early.
4268 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4269
057f8f20
AK
42702013-04-22 Andi Kleen <ak@linux.intel.com>
4271
4272 * common.opt (-flto-report-wpa): Add.
4273 * doc/invoke.texi (-flto-report-wpa): Add.
4274 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4275 (lto_main): dito.
4276
473b1e05
XDL
42772013-04-22 Xinliang David Li <davidxl@google.com>
4278
4279 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4280 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4281 * Makefile.in: New dependency
4282
cabf91cd 4283 David Daney <ddaney.cavm@gmail.com>
b1485a33 4284
cabf91cd
AM
4285 * configure.ac (gcc_cv_as_micromips_support): Use the
4286 --fatal-warnings option.
4287 * configure: Regenerate.
b1485a33 4288
829d0168
MP
42892013-04-22 Marek Polacek <polacek@redhat.com>
4290
4291 PR sanitizer/56990
4292 * tsan.c (instrument_expr): Don't instrument expression
4293 in case its size is zero.
4294
6d9b7208
UB
42952013-04-22 Uros Bizjak <ubizjak@gmail.com>
4296
4297 PR target/57032
4298 Revert:
4299 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4300
4301 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4302
ea679d55
JG
43032013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4304
4305 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4306 (gimple_stmt_iterator): New typedef.
4307 * gimple.h (gimple_stmt_iterator): Rename to...
4308 (gimple_stmt_iterator_d): ... This.
4309 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4310 trees be valid for GIMPLE and GENERIC.
4311 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4312 * gimple-fold.c (gimple_fold_call): Call target hook
4313 gimple_fold_builtin.
4314 * hooks.c (hook_bool_gsiptr_false): New.
4315 * hooks.h (hook_bool_gsiptr_false): New.
4316 * target.def (fold_stmt): New.
4317 * doc/tm.texi: Regenerate.
4318
88a581da
VM
43192013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4320
4321 PR target/57018
4322 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4323 a set sp if no stack realignment.
4324
92be22dc
NC
43252013-04-22 Nick Clifton <nickc@redhat.com>
4326
4327 * config.gcc (tilegx-linux): Extend extra_objs rather than
4328 overwriting it.
4329 (tilepro-linux): Likewise.
4330
0ddec79f
JG
43312013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4332
4333 * config/aarch64/aarch64-builtins.c
4334 (CF): Remove.
4335 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4336 (VAR<1-12>): Add MAP parameter.
4337 (BUILTIN_*): Likewise.
4338 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4339 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4340 (aarch64_ushl_n<mode>): Likewise.
4341 (aarch64_sshr_n<mode>): Likewise.
4342 (aarch64_ushr_n<mode>): Likewise.
4343 (aarch64_<maxmin><mode>): Likewise.
4344 (aarch64_sqrt<mode>): Likewise.
4345 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4346 (vshr<q>_n_*): Likewise.
4347
0050faf8
JG
43482013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4349
4350 * config/aarch64/aarch64-builtins.c
4351 (aarch64_simd_builtin_type_mode): Handle SF types.
4352 (sf_UP): Define.
4353 (BUILTIN_GPF): Define.
4354 (aarch64_init_simd_builtins): Handle SF types.
4355 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4356 (frecps): Likewise.
4357 (frecpx): Likewise.
4358 * config/aarch64/aarch64-simd.md
4359 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4360 (aarch64_frecpe<mode>): New.
4361 (aarch64_frecps<mode>): Likewise.
4362 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4363 (v8type): Add frecp<esx>.
4364 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4365 (aarch64_frecps<mode>): Likewise.
4366 * config/aarch64/iterators.md (FRECP): New.
4367 (frecp_suffix): Likewise.
4368 * config/aarch64/arm_neon.h
4369 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4370
0fad3dbc 43712013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
4372
4373 PR target/56995
4374 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4375 (REG_CLASS_NAMES): Idem.
4376 (REG_CLASS_CONTENTS): Idem.
4377 (REGCLASS_HAS_FP_REG): Idem.
4378 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4379 (sh_conditional_register_usage): Idem.
4380
3e8a33f9
JL
43812013-04-21 Jeff Law <law@redhat.com>
4382
4383 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4384 (ssa_forward_propagate_and_combine): Use it.
4385
f38e1b0a
VM
43862013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4387
4388 * lra.c: Update the flow chart diagram.
4389
682303da
VM
43902013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4391
4392 PR rtl-optimization/56847
4393 * lra-constraints.c (process_alt_operands): Discourage alternative
4394 with non-matche doffsettable memory constraint fro memory with
4395 known offset.
4396
f6b64c35
RB
43972013-04-19 Richard Biener <rguenther@suse.de>
4398
4399 PR tree-optimization/56982
4400 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4401 function.
4402 * gimplify.c (gimplify_call_expr): Notice special calls.
4403 (gimplify_modify_expr): Likewise.
4404 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4405 abnormal control flow receivers.
4406 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4407 in the same way as cfun->has_nonlocal_labels.
4408 (gimple_purge_dead_abnormal_call_edges): Likewise.
4409 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4410 receivers start a basic-block.
4411
01d8bf07
RB
44122013-04-19 Richard Biener <rguenther@suse.de>
4413
4414 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4415 member ...
4416 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4417 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4418 (SLP_TREE_LOAD_PERMUTATION): Add.
4419 (vect_transform_slp_perm_load): Adjust prototype.
4420 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4421 (vect_free_slp_instance): Likewise.
4422 (vect_create_new_slp_node): Likewise.
4423 (vect_supported_slp_permutation_p): Remove.
4424 (vect_slp_rearrange_stmts): Adjust.
4425 (vect_supported_load_permutation_p): Likewise. Inline
4426 vect_supported_slp_permutation_p here.
4427 (vect_analyze_slp_instance): Compute load permutations per
4428 slp node instead of per instance.
4429 (vect_get_slp_defs): Adjust.
4430 (vect_transform_slp_perm_load): Likewise.
4431 (vect_schedule_slp_instance): Remove redundant code.
4432 (vect_schedule_slp): Remove hack for PR56270, add it ...
4433 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4434 CSE loads for SLP. Adjust.
4435
ede22fc3
GY
44362013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4437
4438 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4439 spelling in two comments.
4440
67bc84fb
GY
44412013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4442
4443 PR target/56797
4444 * config/arm/arm.c (load_multiple_sequence): Require SP
4445 as base register for loads if SP is in the register list.
4446
e248d83f
MJ
44472013-04-19 Martin Jambor <mjambor@suse.cz>
4448
4449 PR tree-optimization/56718
4450 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4451 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4452 and made public. Adjusted all callers.
4453 (ipa_intraprocedural_devirtualization): New function.
4454 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4455 (ipa_intraprocedural_devirtualization): Likewise.
4456 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4457
4891e8f8
RB
44582013-04-19 Richard Biener <rguenther@suse.de>
4459
4460 PR tree-optimization/57000
4461 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4462
dad89f7c
TG
44632013-04-19 Terry Guo <terry.guo@arm.com>
4464
4465 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4466 Replace with ...
4467 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4468 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4469 (cortex_m4_fmacs): Use new reservations.
4470 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4471
72ea0d47
VM
44722013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4473
f1e6512c 4474 PR rtl-optimization/56999
72ea0d47
VM
4475 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4476 related code.
4477 (lra_coalesce): Remove split_origin_bitmap and related code.
4478 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4479 ranges if necessary.
4480
780a5b71
UB
44812013-04-18 Uros Bizjak <ubizjak@gmail.com>
4482
4483 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4484 New array.
4485 (ix86_expand_call): Remove clobbered_registers array and use
4486 x86_64_ms_sysv_extra_clobbered_registers instead.
4487 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4488 Declare here.
4489 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4490 predicate.
4491 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4492 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4493 (*call_value_rex64_ms_sysv): Ditto.
4494
6f5a366a
CC
44952013-04-18 Cary Coutant <ccoutant@google.com>
4496
4497 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4498 parent instead of die_mark.
4499
475b8f37
DN
45002013-04-18 Diego Novillo <dnovillo@google.com>
4501
4502 * gimple.c (create_gimple_tmp): New.
4503 (get_expr_type): New.
4504 (build_assign): New.
4505 (build_type_cast): New.
4506 * gimple.h (enum ssa_mode): Define.
4507 (gimple_seq_set_location): New.
4508 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 4509 to use build_assign and build_type_cast.
475b8f37 4510
08940f33
RB
45112013-04-18 Richard Biener <rguenther@suse.de>
4512
4513 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4514 handle negative step. Remove redundant checks.
4515 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4516 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4517 for negative step and grouped loads fail to vectorize.
4518
0e0f87d4
SB
45192013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4520
4521 * emit-rtl.c (reset_insn_used_flags): New function.
4522 (reset_all_used_flags): Use it.
4523 (verify_insn_sharing): New function.
4524 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4525
4c445590
JJ
45262013-04-18 Jakub Jelinek <jakub@redhat.com>
4527
4528 PR tree-optimization/56984
4529 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4530 and (x >> M) >= N don't register any assertion if N << M is the
4531 minimum value.
4532
6873ecab
SB
45332013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4534
4535 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4536 do not delete_insn insns that have not yet been emitted, only
4537 unlink them with remove_insn.
4538 * df-scan.c (df_insn_delete): Revert r197492.
4539
3ccb989e
SB
45402013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4541
4542 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4543 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4544
45452013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
4546
4547 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4548 define_insn_and_split.
4549 (and_scc,ior_scc,negscc): Likewise.
4550 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4551
3ccb989e 45522013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
4553
4554 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4555 can benefit from using a sequence of LDRD instructions in epilogue
4556 instead of a single LDM instruction.
4557
6d10a203
MLI
45582013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4559
4560 PR 45688
4561 * doc/extend.texi: Fix typo.
4562
6983e6b5
RB
45632013-04-17 Richard Biener <rguenther@suse.de>
4564
4565 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4566 (vect_build_slp_tree): ... here.
4567 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4568 match. Remove special-casing of mismatched complex loads.
4569 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4570 re-try the match with swapped commutative operands.
4571 (vect_supported_load_permutation_p): Remove special-casing of
4572 mismatched complex loads.
4573 (vect_analyze_slp_instance): Adjust.
4574
ef23e6a2
RB
45752013-04-17 Richard Biener <rguenther@suse.de>
4576
4577 PR rtl-optimization/56921
4578 * cfgloop.h (struct loop): Add simple_loop_desc member.
4579 (struct niter_desc): Mark with GTY(()).
4580 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4581 * loop-iv.c (get_simple_loop_desc): Likewise.
4582 (free_simple_loop_desc): Likewise.
4583
4584 Revert
4585 2013-04-16 Richard Biener <rguenther@suse.de>
4586
4587 PR rtl-optimization/56921
4588 * loop-init.c (pass_rtl_move_loop_invariants): Add
4589 TODO_do_not_ggc_collect to todo_flags_finish.
4590 (pass_rtl_unswitch): Same.
4591 (pass_rtl_unroll_and_peel_loops): Same.
4592 (pass_rtl_doloop): Same.
4593
fc6f94f5
EB
45942013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4595
4596 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4597 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4598 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4599 references.
4600 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4601 * tree-streamer.c (record_common_node): Adjust reference in comment.
4602
10a88311
TG
46032013-04-17 Terry Guo <terry.guo@arm.com>
4604
4605 * config/arm/cortex-m4.md: Add a new bypass.
4606
6d9b7208 46072013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
4608
4609 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4610 New pattern.
4611 (*subs_<optab><mode>_multp2): New pattern.
4612 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4613 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4614
6d9b7208 46152013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
4616
4617 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4618 (*subs_mul_imm_<mode>): New pattern.
4619
18a6701e
DE
46202013-04-16 David Edelsohn <dje.gcc@gmail.com>
4621
4622 PR target/56948
4623 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4624 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4625 (vsx_movti_32bit): Change j->wa to O->wa.
4626
07c37b2f
RB
46272013-04-16 Richard Biener <rguenther@suse.de>
4628
4629 PR rtl-optimization/56921
4630 * loop-init.c (pass_rtl_move_loop_invariants): Add
4631 TODO_do_not_ggc_collect to todo_flags_finish.
4632 (pass_rtl_unswitch): Same.
4633 (pass_rtl_unroll_and_peel_loops): Same.
4634 (pass_rtl_doloop): Same.
4635
0e0f87d4 46362013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
4637
4638 * config/arm/arm.c (emit_multi_reg_push): New declaration
4639 for an existing function.
4640 (arm_emit_strd_push): New function.
4641 (arm_expand_prologue): Used here.
4642 (arm_emit_ldrd_pop): New function.
4643 (arm_expand_epilogue): Used here.
4644 (arm_get_frame_offsets): Update condition.
4645 (arm_emit_multi_reg_pop): Add a special case for load of a single
4646 register with writeback.
4647
5e8e2af4
UB
46482013-04-16 Uros Bizjak <ubizjak@gmail.com>
4649
4650 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4651 description.
4652
9fd9ccf7
RB
46532013-04-16 Richard Biener <rguenther@suse.de>
4654
4655 PR tree-optimization/56756
4656 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4657 (first_mem_ref_loc): New.
4658 (execute_sm): Place the load temporarily before a previous
4659 access instead of in the latch edge to ensure its SSA dependencies
4660 are defined at points dominating the load.
4661
96fba521
SB
46622013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4663
4c8af858
SB
4664 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4665 correct fix by moving header and footer insn to the footer of
4666 the merged basic block. Clear BB_END of the merged-away block.
4667
96fba521
SB
4668 PR middle-end/43631
4669 * emit-rtl.c (make_note_raw): New function.
4670 (link_insn_into_chain): New static inline function.
4671 (add_insn): Use it.
4672 (add_insn_before, add_insn_after): Factor insn chain linking code...
4673 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4674 using link_insn_into_chain.
4675 (note_outside_basic_block_p): New helper function for emit_note_after
4676 and emit_note_before.
4677 (emit_note_after): Use nobb variant of add_insn_after if the note
4678 should not be contained in a basic block.
4679 (emit_note_before): Use nobb variant of add_insn_before if the note
4680 should not be contained in a basic block.
4681 (emit_note_copy): Use make_note_raw.
4682 (emit_note): Likewise.
4683 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4684 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4685 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4686 the moved barrier the tail of the basic block it follows.
4687 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4688
7b8265ba
JJ
46892013-04-15 Jakub Jelinek <jakub@redhat.com>
4690
4691 PR tree-optimization/56962
4692 * gimple-ssa-strength-reduction.c (record_increment): Only set
4693 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4694 either rhs1 or rhs2 is equal to c->base_expr.
4695
5185d248
RB
46962013-04-15 Richard Biener <rguenther@suse.de>
4697
4698 PR tree-optimization/56933
4699 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4700 member.
4701 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4702 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4703 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4704 dependence check ...
4705 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4706 ... here.
4707 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4708 GROUP_READ_WRITE_DEPENDENCE.
4709
a24243a0
AK
47102013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4711
4712 * emit-rtl.c (reset_all_used_flags): New function.
4713 (verify_rtl_sharing): Call reset_all_used_flags before and after
4714 performing the checks.
4715
1c50eada
KT
47162013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4717
4718 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4719 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4720 * config/arm/constraints.md (De): New constraint.
4721 * config/arm/neon.md (anddi3_neon): Delete.
4722 (neon_vand<mode>): Expand to standard anddi3 pattern.
4723 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4724 Move earlier in the file.
4725 (neon_inv_logic_op2): Likewise.
4726 (arm_anddi_operand_neon): New predicate.
4727
e927b6ad
RO
47282013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4729
4730 * configure.ac (gcc_cv_ld_as_needed): Set
4731 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4732 Use -z ignore, -z record on *-*-solaris2*.
4733 (HAVE_LD_AS_NEEDED): Update comment.
4734 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4735 * configure: Regenerate.
4736 * config.in: Regenerate.
4737 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4738 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4739 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4740 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4741 equivalents. Fix markup.
4742 * doc/tm.texi: Regenerate.
4743
e0ea8797
AH
47442013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4745
4746 * config/i386/i386.opt: New option mstack-protector-guard=.
4747 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4748 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4749 TARGET_SSP_TLS_GUARD.
4750 * config/i386/i386.c (ix86_option_override_internal): Set
4751 ix86_stack_protector_guard.
4752 * config/i386/i386.md (stack_protect_set): Enable for
4753 TARGET_SSP_TLS_GUARD only.
4754 (stack_protect_set_<mode>): Ditto.
4755 (stack_protect_test): Ditto.
4756 (stack_protect_test_<mode>): Ditto.
4757 * doc/invoke.texi (i386 Option): Document.
4758
811b72f9
EB
47592013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4760
4761 PR target/56890
4762 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4763 (S_MODES): Set H_MODE bit.
4764 (SF_MODES): Set only S_MODE and SF_MODE bits.
4765 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4766 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4767 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4768 <MODE_FLOAT>: Likewise.
4769
5529fdd6
JY
47702013-04-15 Joey Ye <joey.ye@arm.com>
4771
4772 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4773
517b1da2
JY
47742013-04-15 Joey Ye <joey.ye@arm.com>
4775
4776 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4777 for real far jump.
4778 (thumb_far_jump_used_p): Count instruction size and set
4779 far_jump_used.
4780
01007ae0
EB
47812013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4782
4783 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4784 * resource.c (mark_target_live_regs): Reformat conditional block.
4785
c46f6580
SB
47862013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4787
4788 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4789 notes, they are emitted only just before final.
4790 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4791
1f397f45
SB
47922013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4793
4794 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4795 * cfgrtl.c (delete_insn): Call it here instead.
4796 * lra-spills.c (lra_final_code_change): Use delete_insn.
4797 * haifa-sched.c (sched_remove_insn): Likewise.
4798 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4799 returning to the nop pool.
4800 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4801 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4802
58a51369
SB
48032013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4804
4805 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4806 * doc/tm.texi: Regenerated.
4807
33159866
UB
48082013-04-12 Uros Bizjak <ubizjak@gmail.com>
4809
4810 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4811 QImode checks.
4812
226e378f
SB
48132013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4814
4815 * df-core.c (df_find_def): Compare register numbers.
4816 (df_find_use): Likewise.
4817
fafb9b18
VM
48182013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4819
4820 PR target/56903
4821 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4822 lra_in_progress for return.
4823
9a946fd6
GY
48242013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4825
4826 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4827 define_insn into define_insn_and_split and emit movsicc patterns.
4828
41b83758
GY
48292013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4830
4831 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4832
d3afd9aa
RB
48332013-04-12 Richard Biener <rguenther@suse.de>
4834
4835 * tree-pass.h (TODO_do_not_ggc_collect): New.
4836 * passes.c (execute_one_ipa_transform_pass): Honor
4837 TODO_do_not_ggc_collect.
4838 (execute_one_pass): Likewise.
4839
4840 Revert
4841 2013-04-10 Richard Biener <rguenther@suse.de>
4842
4843 * passes.c (init_optimization_passes): Remove reload pass.
4844 * ira.c (do_reload): Merge into ...
4845 (ira): ... this.
4846 (rest_of_handle_reload): Remove.
4847 (pass_reload): Likewise.
4848 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4849 of reload for vzeroupper pass placement.
4850
06f9b387
JJ
48512013-04-12 Jakub Jelinek <jakub@redhat.com>
4852
4853 PR tree-optimization/56918
4854 PR tree-optimization/56920
4855 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4856 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4857 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4858 use wide_mul_with_sign method.
4859
953094d2
RB
48602013-04-12 Richard Biener <rguenther@suse.de>
4861
4862 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4863 not be considered a gimple constant.
4864
bb506982
MG
48652013-04-12 Marc Glisse <marc.glisse@inria.fr>
4866
4867 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4868 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4869 operations.
4870
4b84d650
JJ
48712013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4872 Jakub Jelinek <jakub@redhat.com>
4873
4874 * opts.c: Include diagnostic-color.h.
4875 (common_handle_option): Handle OPT_fdiagnostics_color_.
4876 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4877 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4878 (diagnostic-color.o): New.
4879 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4880 (diagnostic_color_rule): New enum.
4881 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4882 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4883 the location string.
4884 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4885 either NULL, or color kind.
4886 * diagnostic-color.c: New file.
4887 * diagnostic-color.h: New file.
4888 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4889 arguments.
4890 * doc/invoke.texi (-fdiagnostics-color): Document.
4891 * pretty-print.h (pp_show_color): Define.
4892 (struct pretty_print_info): Add show_color field.
4893 * diagnostic.c: Include diagnostic-color.h.
4894 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4895 macros. Colorize error:, warning: etc. strings and also the location
4896 string.
4897 (diagnostic_show_locus): Colorize the caret line.
4898 * pretty-print.c: Include diagnostic-color.h.
4899 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4900 inside of %< %> quotes or quoted through q format modifier.
4901
067a1e71
AK
49022013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4903
33159866 4904 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4905
33159866 49062013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4907
4908 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4909 code in CC_NZ mode.
4910 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4911 pattern.
4912
7b55f98f
MP
49132013-04-11 Marek Polacek <polacek@redhat.com>
4914
4915 PR tree-optimization/48184
33159866 4916 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4917
966b587e
EB
49182013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4919
4920 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4921 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4922 (skip_simple_arithmetic): Tidy up.
4923 * tree.h (skip_simple_constant_arithmetic): Declare.
4924
33159866 49252013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4926
4927 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4928
1d42c1ec
RB
49292013-04-11 Richard Biener <rguenther@suse.de>
4930
4931 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4932 generate vector constants.
4933
4ba5ea11
RB
49342013-04-11 Richard Biener <rguenther@suse.de>
4935
4936 PR tree-optimization/56878
4937 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4938 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4939 New function.
4940 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4941 Prefer to align the DR with the most invariant base address.
4942
f0defe58
SKS
49432013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4944
4945 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4946 comment.
4947
d07458be
JG
49482013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4949
4950 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4951 floating-point vector comparisons against 0.
4952
146b8692
JJ
49532013-04-11 Jakub Jelinek <jakub@redhat.com>
4954
4955 PR tree-optimization/56899
4956 * fold-const.c (extract_muldiv_1): Apply distributive law
4957 only if TYPE_OVERFLOW_WRAPS (ctype).
4958
b8578ff7
BC
49592013-04-11 Bin Cheng <bin.cheng@arm.com>
4960
4961 PR target/56124
4962 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4963 loading has side effect.
4964
0ea8a6f9
SB
49652013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4966
4967 * config/sparc/sparc.c: Include tree-pass.h.
4968 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4969 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4970 head of file. Change return type. Split off gate function.
4971 (sparc_gate_work_around_errata): New function.
4972 (pass_work_around_errata): New pass definition.
4973 (insert_pass_work_around_errata) New pass insert definition to
4974 insert pass_work_around_errata just after delayed-branch scheduling.
4975 (sparc_option_override): Insert the pass.
4976 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4977
42e37616
DM
49782013-04-10 David S. Miller <davem@davemloft.net>
4979
89deeb3b
DM
4980 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4981 or -mcpu=hypersparc.
4982
42e37616
DM
4983 * target.def (cstore_mode): New hook.
4984 * target.h: Include insn-codes.h
4985 * targhooks.c: Likewise.
4986 (default_cstore_mode): New function.
4987 * targhooks.h: Declare it.
4988 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4989 * doc/tm.texi: Rebuild.
4990 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4991 target hook, rather than inspecting the insn_data.
4992 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4993 (TARGET_CSTORE_MODE): Redefine.
4994 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4995 result patterns.
4996 * config/sparc/predicates.md (cstore_result_operand): New special
4997 predicate.
4998 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4999 Use it for operand 0.
5000 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5001 (*snesi_special): Likewise.
5002 (*snesi_zero): Likewise.
5003 (*seqsi_zero): Likewise.
5004 (*sltu_insn): Likewise.
5005 (*sgeu_insn): Likewise.
5006 (*seqdi_special): Make operand 0 and comparison operation be of
5007 DImode.
5008 (*snedi_special): Likewise.
5009 (*snedi_special_vis3): Likewise.
5010 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5011 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5012 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5013 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5014 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5015 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5016 (*sltu_extend_sp64): Likewise.
5017 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5018 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5019 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5020 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5021 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5022
95ca411e
YZ
50232013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5024
5025 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5026 (aarch64_start_file): Use the new function.
5027
6782438d 50282013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 5029 Jason Merrill <jason@redhat.com>
6782438d
SKS
5030
5031 * common.opt: Add -gdwarf.
5032 * opts.c (common_handle_option): Handle it.
5033 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5034
bb313b93
RB
50352013-04-10 Richard Biener <rguenther@suse.de>
5036
5037 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5038 (execute_one_ipa_transform_pass): But unconditionally here.
5039 (execute_one_pass): And here.
5040 (init_optimization_passes): Remove reload pass.
5041 * tree-pass.h (TODO_ggc_collect): Remove.
5042 (pass_reload): Likewise.
5043 * ira.c (do_reload): Merge into ...
5044 (ira): ... this.
5045 (rest_of_handle_reload): Remove.
5046 (pass_reload): Likewise.
5047 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5048 of reload for vzeroupper pass placement.
5049 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5050 and todo_flags_finish of all passes.
5051
793d9a16
RB
50522013-04-10 Richard Biener <rguenther@suse.de>
5053
5054 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5055 first_const_oprnd field, rename first_def_type to first_op_type.
5056 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5057 (vect_get_and_check_slp_defs): Always use the type of the
5058 operand. Allow mixed vect_external_def, vect_constant_def types.
5059 (vect_get_constant_vectors): Handle mixed vect_external_def,
5060 vect_constant_def types.
5061
ee8a9b7b
JR
50622013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5063
5064 PR tree-optimization/55524
5065 * tree-ssa-math-opts.c
5066 (convert_mult_to_fma): Don't use an fms construct
5067 when we don't have an fms operation, but fnma, and it looks
5068 likely that we'll be able to use the latter.
5069
6957a6f6
ZZ
50702013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5071
5072 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5073 function.
5074 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5075 inline fail caused by overwritable functions.
5076
34ab4a5b
CJW
50772013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5078
5079 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5080 unnecessary bits in the constant power of two case.
5081
abf9bfbc
RB
50822013-04-10 Richard Biener <rguenther@suse.de>
5083
5084 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5085 broken code swapping operands.
5086 (vect_build_slp_tree): Do not compute load permutations here.
5087 (vect_analyze_slp_instance): Compute load permutations here,
5088 after building the SLP tree.
5089
f408477e
CB
50902013-04-09 Christian Bruel <christian.bruel@st.com>
5091
5092 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5093 of next/prev_real_insn.
5094
5ac42672
JH
50952013-04-09 Jan Hubicka <jh@suse.cz>
5096
abf9bfbc
RB
5097 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5098 Drop aliased parameter.
5ac42672
JH
5099 (function_and_variable_visibility): Do not handle alias pairs.
5100 * cgraph.c (varpool_externally_visible_p): Update prototype.
5101 * varpool.c (varpool_add_new_variable): Update.
5102
5017f1d2
KT
51032013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5104
5105 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5106
48eecbee
SB
51072013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5108
a949cf1c
SB
5109 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5110
48eecbee
SB
5111 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5112
75ef8e3d
MP
51132013-04-09 Marek Polacek <polacek@redhat.com>
5114
5115 PR tree-optimization/48762
33159866 5116 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 5117
23847df4
RB
51182013-04-09 Richard Biener <rguenther@suse.de>
5119
5120 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5121 dealing with cost.
5122 (vect_build_slp_tree): Likewise.
5123 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5124 calculating the cost of a SLP instance.
5125 (vect_analyze_slp_instance): Use it from here, after building
5126 the SLP tree.
5127
ea3a0fde
JJ
51282013-04-09 Jakub Jelinek <jakub@redhat.com>
5129
5130 PR middle-end/56883
5131 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5132 expand_omp_for_static_chunk): Use simple_p = true in
5133 force_gimple_operand_gsi calls when assigning to addressable decls.
5134
a32dfe9d
JL
51352013-04-09 Jeff Law <law@redhat.com>
5136
5137 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5138 when the boolean was created by converting a wider object which
5139 had a boolean range.
5140
d755c7ef
RB
51412013-04-09 Richard Biener <rguenther@suse.de>
5142
5143 * tree-vectorizer.h (slp_void_p): Remove.
5144 (slp_tree): Typedef before _slp_tree declaration.
5145 (struct _slp_tree): Use a vector of slp_tree as children.
5146 (vect_get_place_in_interleaving_chain): Remove.
5147 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5148 Move ...
5149 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5150 and make static.
5151 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5152 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5153 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5154 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5155 Use slp_node instead of slp_void_p and adjust.
5156
3d741091
RB
51572013-04-09 Richard Biener <rguenther@suse.de>
5158
5159 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5160 work that is not necessary.
5161
39307ba7
JJ
51622013-04-09 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR tree-optimization/56854
5165 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5166 forward into clobber stmts if it would change MEM_REF lhs into
5167 non-MEM_REF.
5168
343881fd
MK
51692013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5170
5171 * tree.c (type_hash_lookup, type_hash_add): Make static.
5172 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5173
3922658a
RB
51742013-04-09 Richard Biener <rguenther@suse.de>
5175
5176 * tree.h (unsave_expr_now): Remove.
5177 * tree-inline.c (mark_local_for_remap_r): Remove.
5178 (unsave_expr_1): Likewise.
5179 (unsave_r): Likewise.
5180 (unsave_expr_now): Likewise.
5181 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5182 (propagate_tree_value): Likewise.
5183
9fb6b620
SB
51842013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5185
5186 * doc/rtl.texi (sequence): Rewrite documentation to match the
5187 current use of SEQUENCE rtl objects.
5188 * rtl.def (SEQUENCE): Likewise.
5189
5190 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5191 Update documentation.
5192 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5193 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5194
5195 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5196
8ddb5a29
TJ
51972013-04-08 Teresa Johnson <tejohnson@google.com>
5198
5199 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5200 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 5201 methods.
8ddb5a29
TJ
5202 (estimate_edge_size_and_time): Add comment to suggest using rounding
5203 methods.
5204 (estimate_node_size_and_time): Ditto.
5205 (remap_edge_change_prob): Use helper rounding divide methods.
5206 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5207 (gimple_mod_pow2_value_transform): Ditto.
5208 (gimple_mod_subtract_transform): Ditto.
5209 (gimple_ic_transform): Ditto.
5210 (gimple_stringops_transform): Ditto.
5211 * stmt.c (conditional_probability): Ditto.
5212 (emit_case_dispatch_table): Ditto.
5213 * lto-cgraph.c (merge_profile_summaries): Ditto.
5214 * tree-optimize.c (execute_fixup_cfg): Ditto.
5215 * cfgcleanup.c (try_forward_edges): Ditto.
5216 * cfgloopmanip.c (scale_loop_profile): Ditto.
5217 (loopify): Ditto.
5218 (duplicate_loop_to_header_edge): Ditto.
5219 (lv_adjust_loop_entry_edge): Ditto.
5220 * tree-vect-loop.c (vect_transform_loop): Ditto.
5221 * profile.c (compute_branch_probabilities): Ditto.
5222 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5223 * lto-streamer-in.c (input_cfg): Ditto.
5224 * gimple-streamer-in.c (input_bb): Ditto.
5225 * ipa-cp.c (update_profiling_info): Ditto.
5226 (update_specialized_profile): Ditto.
5227 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5228 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 5229 rounding methods.
8ddb5a29
TJ
5230 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5231 (compute_trg_info): Ditto.
5232 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5233 (purge_dead_edges): Ditto.
5234 * loop-unswitch.c (unswitch_loop): Ditto.
5235 * cgraphclones.c (cgraph_clone_edge): Ditto.
5236 (cgraph_clone_node): Ditto.
5237 * tree-inline.c (copy_bb): Ditto.
5238 (copy_edges_for_bb): Ditto.
5239 (initialize_cfun): Ditto.
5240 (copy_cfg_body): Ditto.
5241 (expand_call_inline): Ditto.
5242
661e6bd7
KT
52432013-04-08 Kai Tietz <ktietz@redhat.com>
5244
5245 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5246 TARGET_CYGWIN64 by TARGET_64BIT.
5247
105766f3
JR
52482013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5249
5250 * config/epiphany/epiphany.md (GPR_1): New constant.
5251 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5252 * config/epiphany/epiphany.c (gen_compare_reg):
5253 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5254 is already in place.
5255 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5256 Don't require being called during rtl expansion; If y operlaps r0,
5257 return 0.
5258 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5259 (epiphany_expand_epilogue): Likewise.
5260
8afab237
JR
5261 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5262 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 5263 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 5264
fa7707d6
JR
5265 * config/epiphany/constraints.md (CnL): New constraint.
5266 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5267 * config/epiphany/predicates.md (add_operand): Allow 1024.
5268
5138e18d
JR
5269 * config/epiphany/epiphany.md (logical_op): New code iterator.
5270 (op_mnc): New code attribute.
5271 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5272 (mov_f+1, mov_f+2): New peephole2 patterns.
5273
2ccc703d
JR
5274 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5275 (cstoresi4): Also allow re-use of zero result when doing a NE
5276 comparison to a non-zero operand.
aefb0819 5277 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 5278
093ac0a5
JR
5279 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5280 Use gen_addsi3_i / gen_subsi3_i.
5281
f223bb13
JJ
52822013-04-08 Jakub Jelinek <jakub@redhat.com>
5283
5284 PR c++/34949
5285 PR c++/50243
5286 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5287 contain anything but clobbers, at most one __builtin_stack_restore,
5288 optionally debug stmts and final resx, and if it has at least one
5289 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5290 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5291 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5292 which isn't defaut definition, remove them.
5293 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5294 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5295 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5296 with MEM_REF LHS with SSA_NAME address.
5297
4481581f
JL
52982013-04-08 Jeff Law <law@redhat.com>
5299
5300 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 5301
451dabda
RB
53022013-04-08 Richard Biener <rguenther@suse.de>
5303
5304 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5305 extra newline.
5306 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5307 determined vector type.
5308 (vect_analyze_data_refs): Likewise.
5309 (vect_get_new_vect_var): Adjust.
5310 (vect_create_destination_var): Preserve SSA name versions.
5311 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5312 not dump anything here.
5313
3b088b47
JR
53142013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5315
5316 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5317 Add member lr_slot_known.
5318 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5319 if necessary.
5320 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5321 Remove code that sets lr_slot_offset according to what a previous
5322 version of epiphany_emit_save_restore used to do.
5323 (epiphany_emit_save_restore): When doing an lr save or restore,
5324 set/verify lr_slot_known and lr_slot_offset.
5325
d8484d41
XQ
53262013-04-08 Xinyu Qi <xyqi@marvell.com>
5327
33159866
UB
5328 PR target/54338
5329 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
5330 in ALL_REGS.
5331
481be1c4
RB
53322013-04-08 Richard Biener <rguenther@suse.de>
5333
5334 * alias.c (find_base_term): Fix thinko in previous change.
5335
401f3a81
JJ
53362013-04-08 Jakub Jelinek <jakub@redhat.com>
5337
5338 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5339 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5340 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5341 if possible to compute val.
5342 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5343 For QImode integers don't require anything about precision. Use
5344 const_with_all_bytes_same to find out if the constant doesn't have
5345 repeated bytes in it.
5346
03ed99a8
AK
53472013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5348
5349 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5350 within mode size.
5351
781b2e62
MP
53522013-04-08 Marek Polacek <polacek@redhat.com>
5353
5354 PR rtl-optimization/48182
5355 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5356 value to 1.
5357
27e430a2
JDA
53582013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5359
5360 PR target/55487
5361 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5362 nuses, make sure we have a label.
5363
4902aa64
BS
53642013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5365
5366 PR target/56843
5367 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5368 (rs6000_emit_swdiv_low_precision): Remove.
5369 (rs6000_emit_swdiv): Rewrite to handle between one and four
5370 iterations of Newton-Raphson generally; modify required number of
5371 iterations for some cases.
5372 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5373
7bca81dc
SB
53742013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5375
5376 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5377 set-but-unused variable.
5378
5379 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5380 basic blocks of released function bodies garbage-collectable.
5381
5382 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5383 (struct rtl_opt_pass): Add TODO_df_finish.
5384
5385 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5386
4542a38a
GY
53872013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5388
5389 * config/arm/constraints.md (q): New constraint.
5390 * config/arm/ldrdstrd.md: New file.
5391 * config/arm/arm.md (ldrdstrd.md) New include.
5392 (arm_movdi): Use "q" instead of "r" constraint
5393 for double-word memory access.
5394 (movdf_soft_insn): Likewise.
5395 * config/arm/vfp.md (movdi_vfp): Likewise.
5396 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 5397 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
5398 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5399 (mem_ok_for_ldrd_strd): Likewise.
5400 (output_move_double): Update assertion.
5401
2385b218
GY
54022013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5403
5404 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5405
75fe1cb5
GY
54062013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5407
5408 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5409 define_insn_and_split.
5410 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5411
dd660e8e
GY
54122013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5413
5414 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5415 define_insn_and_split.
33159866 5416 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
5417 (shiftsi3_compare): New pattern.
5418 (rrx): New pattern.
5419 * config/arm/unspecs.md (UNSPEC_RRX): New.
5420
045e472c
GY
54212013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5422
5423 * config/arm/arm.md (negdi_extendsidi): New pattern.
5424 (negdi_zero_extendsidi): Likewise.
5425
3f3bf1a8
GY
54262013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5427
5428 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5429 define_insn_and_split.
5430 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5431 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5432
b0b49556
GY
54332013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5434
5435 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5436 define_insn_and_split.
5437 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5438 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5439
d633dd84
GY
54402013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5441
5442 * config/arm/arm.md (subsi3_carryin): New pattern.
5443 (subsi3_carryin_const): Likewise.
5444 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5445 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5446
f4499066
GY
54472013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5448
5449 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5450
ceef6fd9
GY
54512013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5452
5453 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 5454 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 5455
ddbdd8a7
KT
54562013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5457
5458 * config/arm/arm.c (arm_expand_builtin): Change fcode
5459 type to unsigned int.
5460
8456d78a
RR
54612013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5462
5463 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5464
526c230f
ILT
54652013-04-04 Ian Lance Taylor <iant@google.com>
5466
33159866
UB
5467 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5468 language standard.
526c230f 5469
3cfbe04d
SB
54702013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5471
5472 PR middle-end/56729
5473 * df-scan.c (df_insn_delete): Disable failing assert.
5474
dfa3f8d0
KT
54752013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5476
5477 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5478 New function prototype.
5479 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5480 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5481 (arm_builtin_vectorized_function): New function.
5482
f7837758
KT
54832013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5484
5485 * config/arm/arm_neon_builtins.def: New file.
5486 * config/arm/arm.c (neon_builtin_data): Move contents to
5487 arm_neon_builtins.def.
5488 (enum arm_builtins): Include neon builtin definitions.
5489 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 5490 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 5491
39c1b6db
MP
54922013-04-04 Marek Polacek <polacek@redhat.com>
5493
5494 PR tree-optimization/48186
5495 * predict.c (maybe_hot_frequency_p): Return false if
5496 HOT_BB_FREQUENCY_FRACTION is 0.
5497 (cgraph_maybe_hot_edge_p): Likewise.
5498
314f64eb
RB
54992013-04-04 Richard Biener <rguenther@suse.de>
5500
5501 PR tree-optimization/56826
5502 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5503 more accurately.
5504
51a905b2
RB
55052013-04-04 Richard Biener <rguenther@suse.de>
5506
5507 PR tree-optimization/56213
5508 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 5509 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 5510
f1bf4f3a
RB
55112013-04-04 Richard Biener <rguenther@suse.de>
5512
5513 PR tree-optimization/56837
5514 * tree-loop-distribution.c (classify_partition): For non-zero
5515 values require that the value has the same precision as its
5516 mode to be useful as memset value.
5517
0bca7ded
NC
55182013-04-03 Nick Clifton <nickc@redhat.com>
5519
33159866 5520 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
5521 (fmssf4): Use fmsf.s on E3V5 architectures.
5522 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5523 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5524
b4019227
JL
55252013-04-03 Jeff Law <law@redhat.com>
5526
5527 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5528 (lra-eliminations.o): Likewise.
5529
f57ddb5b
TJ
55302013-04-03 Teresa Johnson <tejohnson@google.com>
5531
5532 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 5533 compute_working_sets here from profile.c.
f57ddb5b 5534 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
5535 (gcov_working_set_t): Moved typedef here from basic-block.h
5536 (compute_working_set): Declare.
f57ddb5b
TJ
5537 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5538 (get_working_sets): Renamed from compute_working_set,
33159866 5539 replace most of body with call to new compute_working_sets.
f57ddb5b 5540 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
5541 to get_working_sets.
5542 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 5543 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 5544 to get_working_sets.
f57ddb5b
TJ
5545 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5546 * gcov-dump.c (dump_working_sets): New function.
5547
5e0919f1
KZ
55482013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5549
5550 * hwint.c (sext_hwi, zext_hwi): New functions.
5551 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5552 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5553 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5554 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5555 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5556 (sext_hwi, zext_hwi): New functions.
0bca7ded 5557
be672e08
JL
55582013-04-03 Jeff Law <law@redhat.com>
5559
5560 PR tree-optimization/56799
33159866
UB
5561 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5562 back test for widening conversion erroneously dropped in prior change.
be672e08 5563
9d821fa5
KT
55642013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5565
5566 PR target/56809
5567 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5568 instead of next_real_insn.
5569
71c581e7
MP
55702013-04-03 Marek Polacek <polacek@redhat.com>
5571
5572 PR sanitizer/55702
33159866 5573 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 5574
4a32ef80
KT
55752013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5576
5577 PR target/56809
5578 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5579 next_real_insn.
5580 (thumb1_output_casesi): Likewise.
5581 (thumb2_output_casesi): Likewise.
5582
1b2253d4
RB
55832013-04-03 Richard Biener <rguenther@suse.de>
5584
5585 PR tree-optimization/56817
5586 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5587 Split out ...
5588 (tree_unroll_loops_completely_1): ... new function to manually
5589 walk the loop tree, properly defering outer loops of unrolled
5590 loops to later iterations.
5591
38000232
MG
55922013-04-03 Marc Glisse <marc.glisse@inria.fr>
5593
5594 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5595 (vectorizable_load): Likewise.
5596 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5597 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5598
3fa35298
MG
55992013-04-03 Marc Glisse <marc.glisse@inria.fr>
5600
5601 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5602 BIT_FIELD_REF.
5603
b3d45ff0
UW
56042013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5605
5606 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5607
ec9202a8
BC
56082013-04-03 Bin Cheng <bin.cheng@arm.com>
5609
5610 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5611
6805bd36
MG
56122013-04-03 Marc Glisse <marc.glisse@inria.fr>
5613
5614 PR tree-optimization/56790
33159866
UB
5615 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5616 folding.
6805bd36 5617
da694a77
MG
56182013-04-03 Marc Glisse <marc.glisse@inria.fr>
5619
5620 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5621 Handle VEC_MERGE.
5622 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5623 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5624 equal arguments.
5625
4e7d7b3d
JJ
56262013-04-03 Jakub Jelinek <jakub@redhat.com>
5627
5628 PR c/19449
5629 * tree.h (force_folding_builtin_constant_p): New decl.
5630 * builtins.c (force_folding_builtin_constant_p): New variable.
5631 (fold_builtin_constant_p): Fold immediately also if
5632 force_folding_builtin_constant_p.
5633
e6c9d234
RB
56342013-04-03 Richard Biener <rguenther@suse.de>
5635
5636 PR tree-optimization/56812
5637 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5638 DRs of the same interleaving chain are independent.
5639
984d07dd
JM
56402013-04-02 Jason Merrill <jason@redhat.com>
5641
5642 * gdbinit.in (pbb): Use debug fn.
5643
622849c9
LC
56442013-04-02 Lawrence Crowl <crowl@google.com>
5645
5646 * sese.h (struct ivtype_map_elt_s): Remove unused.
5647 (extern debug_ivtype_map): Remove unused.
5648 (extern eq_ivtype_map_elts): Remove unused.
5649 * sese.c (debug_ivtype_map): Removed unused.
5650 (debug_ivtype_map_1): Removed unused.
5651 (debug_ivtype_elt): Remove unused.
5652 (eq_ivtype_map_elts): Remove unused.
5653
5654
82c0e1a0
KT
56552013-04-02 Kai Tietz <ktietz@redhat.com>
5656
5657 PR target/52790
5658 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5659 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
5660 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5661 function.
82c0e1a0
KT
5662 (legitimize_pe_coff_symbol): Likewise.
5663 (is_imported_p): New helper-function.
5664 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5665 for Windows x64 targets.
5666 (ix86_expand_prologue): Optimize for pe-coff targets.
5667 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5668 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5669 medium/large code-model.
5670 (legitimize_pic_address): Likewise.
5671 (legitimize_tls_address): Likewise.
5672 (ix86_expand_call): Likewise.
5673 (x86_output_mi_thunk): Likewise.
5674 (get_dllimport_decl): Add new beimport argument.
5675 (construct_plt_address): Don't assert for x64 pe-coff targets.
5676 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5677 targets.
5678 (SYMBOL_FLAG_STUBVAR): New macro.
5679 (SYMBOL_REF_STUBVAR_P): Likewise.
5680 * config/i386/winnt.c (stub_list): New structure.
5681 (stub_head): New local variable.
5682 (i386_pe_record_stub): New function.
5683 (i386_pe_file_end): Emit refptr-stubs.
5684
5d751b0c
JJ
56852013-04-02 Jakub Jelinek <jakub@redhat.com>
5686
09bb4c99
JJ
5687 PR rtl-optimization/56745
5688 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5689 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5690
a1d8947a
JJ
5691 PR c++/34949
5692 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5693 and both of them are MEM_REFs, just compare first argument for
5694 equality and attempt to deal even with differing offsets.
5695
5d751b0c
JJ
5696 PR c++/34949
5697 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5698 of gimple_clobber_p to be MEM_REF.
5699 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5700 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5701 after gimplification.
5702 * asan.c (get_mem_ref_of_assignment): Don't instrument
5703 gimple_clobber_p stmts.
5704 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5705 gimple_clobber_p stmt if they have MEM_REF lhs and
5706 are dead because of another gimple_clobber_p stmt.
5707 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5708 gimple_clobber_p stmts like debug stmts.
5709 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5710 that refer to unused VAR_DECLs or uninitialized values.
5711 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5712 gimple_clobber_p stmts if they refer to removed parameters.
5713 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5714 formatting.
5715
e594716a
UB
57162013-04-02 Uros Bizjak <ubizjak@gmail.com>
5717
5718 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5719 using SWI48 mode attribute.
5720
7a80735b
WM
57212013-04-02 Wei Mi <wmi@google.com>
5722
5723 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5724 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5725 *<rotate_insn><mode>3_mask in i386.md.
5726
f423a9e4
AI
57272013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5728
5729 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5730
90eb75f2
RB
57312013-04-02 Richard Biener <rguenther@suse.de>
5732
5733 PR tree-optimization/56778
5734 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5735 Runtime alias tests are not supported for gather loads.
5736 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5737 stmts referenced from SSA operands before updating SSA form.
5738
d8c69a92
IC
57392013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5740 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5741
5742 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
5743 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5744 * config/arm/cortex-a53.md: New file.
5745 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5746 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5747 * config/arm/arm.c (arm_issue_rate): Likewise.
5748 * config/arm/arm-tune.md: Regenerate
5749 * config/arm/arm-tables.opt: Regenerate.
5750 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 5751
239eb04c
ZC
57522013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5753
5754 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5755 non-static link.
5756
c902d3c8
SN
57572013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5758
d8c69a92
IC
5759 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5760 scalar load/store operations using B/H registers.
c902d3c8
SN
5761 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5762
051d0e2f
SN
57632013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5764
5765 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5766 scalar move.
5767 * config/aarch64/aarch64.c
5768 (aarch64_simd_scalar_immediate_valid_for_move): New.
5769 * config/aarch64/aarch64-protos.h
5770 (aarch64_simd_scalar_immediate_valid_for_move): New.
5771 * config/aarch64/constraints.md (Dh, Dq): New.
5772 * config/aarch64/iterators.md (hq): New.
5773
0ee1e3d9
EB
57742013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5775
5776 * reorg.c (get_branch_condition): Deal with conditional returns.
5777 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5778
136fb3f7
WM
57792013-04-01 Wei Mi <wmi@google.com>
5780
5781 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5782 Truncate operand 2 using %b asm operand modifier.
5783 (*<shift_insn><mode>3_mask): Ditto.
5784 (*<rotate_insn><mode>3_mask): Ditto.
5785
6388c738
SB
57862013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5787
5788 PR middle-end/56798
5789 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5790
f7a4d826
KK
57912013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5792
5793 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5794 of next_real_insn.
5795 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5796
4b943a49
LC
57972013-03-30 Lawrence Crowl <crowl@google.com>
5798
5799 * dse.c (clear_alias_sets): Remove never set.
5800 (disqualified_clear_alias_sets): Remove never set.
5801 (clear_alias_mode_pool): Remove never set.
5802 (dse_step0): Remove condition that is never true.
5803 (canon_address): Remove condition that is never true.
5804 (dse_step7): Remove condition that is never true.
5805 (rest_of_handle_dse): Remove condition that is never true.
5806 (rest_of_handle_dse::did_global): Remove never read from above.
5807 (dse_step2_spill): Remove never called from above.
5808 (dse_step5_spill): Remove never called from above.
5809
39718607
SB
58102013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5811
da5c6bde
SB
5812 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5813 JUMP_TABLE_DATA changes.
5814 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5815 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5816 (Insns) <jump_table_data>: New entry.
5817 * doc/tm.texi: Regenerate.
5818
39718607
SB
5819 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5820
5821 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5822 for table jump at the end of a basic block using tablejump_p.
5823 * targhooks.c (default_invalid_within_doloop): Likewise.
5824 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5825 target hook implementation that is identical to the default hook.
5826 (rs6000_invalid_within_doloop): Remove.
5827
5828 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5829 unused variable from tablejump_p call.
5830
5831 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5832 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5833 (INSN_DELETED_P): Likewise.
5834 (emit_jump_table_data): New prototype.
5835 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5836 after 4th as unused.
5837 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5838 * sched-vis.c (print_insn): Likewise.
5839 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5840 insn for compatibility with back ends that use next_active_insn to
5841 identify jump table data.
5842 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5843 (remove_insn): Likewise.
5844 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5845 to be emitted.
5846 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5847 (emit_jump_table_data): New function.
5848
5849 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5850 basic block, a JUMP_TABLE_DATA never is.
5851 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5852 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5853 off from code handling real insns.
5854 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5855 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5856 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5857 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5858 is not a NONDEBUG_INSN_P.
5859 * ira-costs.c (scan_one_insn): Likewise.
5860 * jump.c (mark_all_labels): Likewise.
5861 (mark_jump_label_1): Likewise.
5862 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5863 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5864 a basic block.
5865 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5866 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5867 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5868 JUMP_TABLE_DATA_P insns.
5869 (calculate_elim_costs_all_insns): Likewise.
5870 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5871 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5872 (delete_output_reload): Code style fixups.
5873 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5874 insn flags on this non-insn.
5875 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5876 as scheduling barriers, for pre-change compatibility.
5877 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5878 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5879
5880 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5881 redundant JUMP_TABLE_DATA_P test.
5882 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5883 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5884 (frv_for_each_packet): Likewise.
5885 * config/i386/i386.c (min_insn_size): Likewise.
5886 (ix86_avoid_jump_mispredicts): Likewise.
5887 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5888 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5889 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5890 (mips16_insn_length): Robustify.
5891 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5892 (mips16_split_long_branches): Likewise.
5893 * config/pa/pa.c (pa_combine_instructions): Likewise.
5894 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5895 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5896 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5897 as contributing to pool range lengths.
5898 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5899 Remove redundant JUMP_TABLE_DATA_P test.
5900 (sh_loop_align): Likewise.
5901 (split_branches): Likewise.
5902 (sh_insn_length_adjustment): Likewise.
5903 * config/spu/spu.c (get_branch_target): Likewise.
5904
0208f7da
JH
59052013-03-29 Jan Hubicka <jh@suse.cz>
5906
5907 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5908 gcov streaming; stream hot bb threshold to ltrans.
5909 * predict.c (get_hot_bb_threshold): Break out from ....
5910 (maybe_hot_count_p): ... here.
5911 (set_hot_bb_threshold): New function.
5912 * lto-section-in.c (lto_section_name): Add profile.
5913 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5914 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5915 and data-streamer.h
5916 (histogram_entry): New structure.
5917 (histogram, histogram_pool): New global vars.
5918 (histogram_hash): New structure.
5919 (histogram_hash::hash): New method.
5920 (histogram_hash::equal): Likewise.
5921 (account_time_size): New function.
5922 (cmp_counts): New function.
5923 (dump_histogram): New function.
5924 (ipa_profile_generate_summary): New function.
5925 (ipa_profile_write_summary): New function.
5926 (ipa_profile_read_summary): New function.
5927 (ipa_profile): Decide on threshold.
e594716a
UB
5928 (pass_ipa_profile): Add ipa_profile_write_summary and
5929 ipa_profile_read_summary.
0208f7da
JH
5930 * Makefile.in (ipa.o): Update dependencies.
5931 * lto-streamer.h (LTO_section_ipa_profile): New section.
5932
5a6ccc94
GDR
59332013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5934
5935 * tree.h (VAR_P): New.
5936
39385fa6
PC
59372013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5938
5939 PR lto/56777
5940 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5941
34f0d87a
SB
59422013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5943
5944 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5945 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5946 (control_flow_insn_p): Likewise.
5947 * cfgrtl.c (duplicate_insn_chain): Likewise.
5948 * final.c (get_attr_length_1): Likewise.
5949 (shorten_branches): Likewise.
5950 (final_scan_insn): Likewise.
5951 * function.c (instantiate_virtual_regs): Likewise.
5952 * gcse.c (insert_insn_end_basic_block): Likewise.
5953 * ira-costs.c (scan_one_insn): Likewise.
5954 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5955 * lra.c (check_rtl): Likewise.
5956 * reload1.c (elimination_costs_in_insn): Likewise.
5957 * reorg.c (follow_jumps): Likewise.
5958
5959 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5960 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5961 (thumb_far_jump_used_p): Likewise.
5962 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5963 (workaround_speculation): Likewise.
5964 (add_sched_insns_for_speculation): Likewise.
5965 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5966 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5967 (frv_for_each_packet): Likewise.
5968 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5969 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5970 (final_emit_insn_group_barriers): Likewise.
5971 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5972 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5973 (mips16_insn_length): Likewise.
5974 * config/pa/pa.c (pa_reorg): Likewise.
5975 (pa_combine_instructions): Likewise.
5976 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5977 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5978 (sh_reorg): Likewise.
5979 (split_branches): Likewise.
5980 * config/spu/spu.c (get_branch_target): Likewise.
5981
5982 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5983 JUMP_TABLE_DATA_P.
5984
4ac761b0
KY
59852013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5986
39385fa6 5987 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
5988 Fix declaration name.
5989
58a49189
LC
59902013-03-28 Lawrence Crowl <crowl@google.com>
5991
5992 * graphds.h (struct graph.indicies): Remove unused.
5993 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5994 (SCOP_ORIGINAL_PDDRS): Remove unused.
5995 * sese.h (extern insert_loop_close_phis): Removed unused.
5996 (extern insert_guard_phis): Removed unused.
5997 (extern ivtype_map_elt_info): Removed unused.
5998 (new_ivtype_map_elt): Removed unused.
5999 * sese.c (ivtype_map_elt_info): Removed unused.
6000
7b3b6ae4
LC
60012013-03-28 Lawrence Crowl <crowl@google.com>
6002
6003 * Makefile.in: Add several missing include dependences.
6004 (DUMPFILE_H): New.
6005 (test-dump.o): New. This object is not added to any executable,
6006 but is present for ad-hoc testing.
6007 * bitmap.c
6008 (debug (const bitmap_head_def &)): New.
6009 (debug (const bitmap_head_def *)): New.
6010 * bitmap.h
6011 (extern debug (const bitmap_head_def &)): New.
6012 (extern debug (const bitmap_head_def *)): New.
6013 * cfg.c
6014 (debug (edge_def &)): New.
6015 (debug (edge_def *)): New.
6016 * cfghooks.c
6017 (debug (basic_block_def &)): New.
6018 (debug (basic_block_def *)): New.
6019 * dumpfile.h
6020 (dump_node (const_tree, int, FILE *)): Correct source file.
6021 * dwarf2out.c
6022 (debug (die_struct &)): New.
6023 (debug (die_struct *)): New.
6024 * dwarf2out.h
6025 (extern debug (die_struct &)): New.
6026 (extern debug (die_struct *)): New.
6027 * gimple-pretty-print.c
6028 (debug (gimple_statement_d &)): New.
6029 (debug (gimple_statement_d *)): New.
6030 * gimple-pretty-print.h
6031 (extern debug (gimple_statement_d &)): New.
6032 (extern debug (gimple_statement_d *)): New.
6033 * ira-build.c
6034 (debug (ira_allocno_copy &)): New.
6035 (debug (ira_allocno_copy *)): New.
6036 (debug (ira_allocno &)): New.
6037 (debug (ira_allocno *)): New.
6038 * ira-int.h
6039 (extern debug (ira_allocno_copy &)): New.
6040 (extern debug (ira_allocno_copy *)): New.
6041 (extern debug (ira_allocno &)): New.
6042 (extern debug (ira_allocno *)): New.
6043 * ira-lives.c
6044 (debug (live_range &)): New.
6045 (debug (live_range *)): New.
6046 * lra-int.h
6047 (debug (lra_live_range &)): New.
6048 (debug (lra_live_range *)): New.
6049 * lra-lives.c
6050 (debug (lra_live_range &)): New.
6051 (debug (lra_live_range *)): New.
6052 * omega.c
6053 (debug (omega_pb_d &)): New.
6054 (debug (omega_pb_d *)): New.
6055 * omega.h
6056 (extern debug (omega_pb_d &)): New.
6057 (extern debug (omega_pb_d *)): New.
6058 * print-rtl.c
6059 (debug (const rtx_def &)): New.
6060 (debug (const rtx_def *)): New.
6061 * print-tree.c
6062 (debug_tree (tree): Move within file.
6063 (debug_raw (const tree_node &)): New.
6064 (debug_raw (const tree_node *)): New.
6065 (dump_tree_via_hooks (const tree_node *, int)): New.
6066 (debug (const tree_node &)): New.
6067 (debug (const tree_node *)): New.
6068 (debug_verbose (const tree_node &)): New.
6069 (debug_verbose (const tree_node *)): New.
6070 (debug_head (const tree_node &)): New.
6071 (debug_head (const tree_node *)): New.
6072 (debug_body (const tree_node &)): New.
6073 (debug_body (const tree_node *)): New.
6074 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6075 (debug (vec<tree, va_gc> &)): New.
6076 (debug (vec<tree, va_gc> *)): New.
6077 * rtl.h
6078 (extern debug (const rtx_def &)): New.
6079 (extern debug (const rtx_def *)): New.
6080 * sbitmap.c
6081 (debug_raw (simple_bitmap_def &)): New.
6082 (debug_raw (simple_bitmap_def *)): New.
6083 (debug (simple_bitmap_def &)): New.
6084 (debug (simple_bitmap_def *)): New.
6085 * sbitmap.h
6086 (extern debug (simple_bitmap_def &)): New.
6087 (extern debug (simple_bitmap_def *)): New.
6088 (extern debug_raw (simple_bitmap_def &)): New.
6089 (extern debug_raw (simple_bitmap_def *)): New.
6090 * sel-sched-dump.c
6091 (debug (vinsn_def &)): New.
6092 (debug (vinsn_def *)): New.
6093 (debug_verbose (vinsn_def &)): New.
6094 (debug_verbose (vinsn_def *)): New.
6095 (debug (expr_def &)): New.
6096 (debug (expr_def *)): New.
6097 (debug_verbose (expr_def &)): New.
6098 (debug_verbose (expr_def *)): New.
6099 (debug (vec<rtx> &)): New.
6100 (debug (vec<rtx> *)): New.
6101 * sel-sched-dump.h
6102 (extern debug (vinsn_def &)): New.
6103 (extern debug (vinsn_def *)): New.
6104 (extern debug_verbose (vinsn_def &)): New.
6105 (extern debug_verbose (vinsn_def *)): New.
6106 (extern debug (expr_def &)): New.
6107 (extern debug (expr_def *)): New.
6108 (extern debug_verbose (expr_def &)): New.
6109 (extern debug_verbose (expr_def *)): New.
6110 (extern debug (vec<rtx> &)): New.
6111 (extern debug (vec<rtx> *)): New.
6112 * sel-sched-ir.h
6113 (_list_iter_cond_expr): Make inline instead of static.
6114 * sreal.c
6115 (debug (sreal &)): New.
6116 (debug (sreal *)): New.
6117 * sreal.h
6118 (extern debug (sreal &)): New.
6119 (extern debug (sreal *)): New.
6120 * tree.h
6121 (extern debug_raw (const tree_node &)): New.
6122 (extern debug_raw (const tree_node *)): New.
6123 (extern debug (const tree_node &)): New.
6124 (extern debug (const tree_node *)): New.
6125 (extern debug_verbose (const tree_node &)): New.
6126 (extern debug_verbose (const tree_node *)): New.
6127 (extern debug_head (const tree_node &)): New.
6128 (extern debug_head (const tree_node *)): New.
6129 (extern debug_body (const tree_node &)): New.
6130 (extern debug_body (const tree_node *)): New.
6131 (extern debug (vec<tree, va_gc> &)): New.
6132 (extern debug (vec<tree, va_gc> *)): New.
6133 * tree-cfg.c
6134 (debug (struct loop &)): New.
6135 (debug (struct loop *)): New.
6136 (debug_verbose (struct loop &)): New.
6137 (debug_verbose (struct loop *)): New.
6138 * tree-dump.c: Add header dependence.
6139 * tree-flow.h
6140 (extern debug (struct loop &)): New.
6141 (extern debug (struct loop *)): New.
6142 (extern debug_verbose (struct loop &)): New.
6143 (extern debug_verbose (struct loop *)): New.
6144 * tree-data-ref.c
6145 (debug (data_reference &)): New.
6146 (debug (data_reference *)): New.
6147 (debug (vec<data_reference_p> &)): New.
6148 (debug (vec<data_reference_p> *)): New.
6149 (debug (vec<ddr_p> &)): New.
6150 (debug (vec<ddr_p> *)): New.
6151 * tree-data-ref.h
6152 (extern debug (data_reference &)): New.
6153 (extern debug (data_reference *)): New.
6154 (extern debug (vec<data_reference_p> &)): New.
6155 (extern debug (vec<data_reference_p> *)): New.
6156 (extern debug (vec<ddr_p> &)): New.
6157 (extern debug (vec<ddr_p> *)): New.
6158 * tree-ssa-alias.c
6159 (debug (pt_solution &)): New.
6160 (debug (pt_solution *)): New.
6161 * tree-ssa-alias.h
6162 (extern debug (pt_solution &)): New.
6163 (extern debug (pt_solution *)): New.
6164 * tree-ssa-alias.c
6165 (debug (_var_map &)): New.
6166 (debug (_var_map *)): New.
6167 (debug (tree_live_info_d &)): New.
6168 (debug (tree_live_info_d *)): New.
6169 * tree-ssa-alias.h
6170 (extern debug (_var_map &)): New.
6171 (extern debug (_var_map *)): New.
6172 (extern debug (tree_live_info_d &)): New.
6173 (extern debug (tree_live_info_d *)): New.
6174
be77e1e5
JH
61752013-03-28 Jan Hubicka <jh@suse.cz>
6176
6177 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6178
777e6976
IB
61792013-03-28 Ian Bolton <ian.bolton@arm.com>
6180
6181 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6182 record only when desired or required.
6183
9cd347ae
UB
61842013-03-28 Uros Bizjak <ubizjak@gmail.com>
6185
6186 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6187 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6188
33159866 61892013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
6190
6191 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6192 (*andsi3_compare0_uxtw): New pattern.
6193 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6194 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6195
89ab31c1
JH
61962013-03-28 Jan Hubicka <jh@suse.cz>
6197
6198 * data-streamer-in.c (streamer_read_gcov_count): New function.
6199 * gimple-streamer-out.c: Include value-prof.h.
6200 (output_gimple_stmt): Output histogram.
6201 (output_bb): Use streamer_write_gcov_count.
6202 * value-prof.c: Include data-streamer.h
6203 (dump_histogram_value): Add HIST_TYPE_MAX.
6204 (stream_out_histogram_value): New function.
6205 (stream_in_histogram_value): New function.
6206 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6207 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6208 * data-streamer-out.c (streamer_write_gcov_count): New function.
6209 (streamer_write_gcov_count_stream): New function.
6210 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6211 (lto_output_node): Likewise.
6212 (input_node, input_edge): Likewise.
6213 * lto-streamer-out.c (output_cfg): Update streaming.
6214 * lto-streamer-in.c (input_cfg): Likewise.
6215 * data-streamer.h (streamer_write_gcov_count,
6216 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6217 * gimple-streamer-in.c: Include value-prof.h
6218 (input_gimple_stmt): Input histograms.
6219 (input_bb): Update profile streaming.
6220
e594716a 62212013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 6222
33159866 6223 * genmodes.c (emit_max_int): New function.
8697be17 6224 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
6225 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6226 Added doc.
8697be17 6227 * machmode.def: Fixed comment.
89ab31c1 6228
e594716a 62292013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
6230
6231 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
6232 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6233
74946978
MP
62342013-03-28 Marek Polacek <polacek@redhat.com>
6235 Richard Biener <rguenther@suse.de>
6236
6237 PR tree-optimization/56695
6238 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6239 build signed result of a vector comparison.
6240 * tree-cfg.c (verify_gimple_comparison): Check that a result
6241 of a vector comparison has signed type.
6242
a64b9c26
RB
62432013-03-28 Richard Biener <rguenther@suse.de>
6244
6245 PR tree-optimization/37021
6246 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6247 do not restrict gaps between groups.
6248 * tree-vect-stmts.c (vectorizable_load): Properly account for
6249 a gap between groups.
6250
a9dc2a2f
EB
62512013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6252
6253 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6254 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6255 is not enabled.
6256
53cb97f9
GP
62572013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6258
6259 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6260 * doc/extend.texi (Named Address Spaces): Ditto.
6261 (Variable Attributes): Ditto.
6262
b802ae5c
KT
62632013-03-27 Kai Tietz <ktietz@redhat.com>
6264
eddae10a
KT
6265 * config.build: Add support for cygwin x64 target.
6266 * config.gcc: Likewise.
6267 * config.host: Likewise.
6268 * configure.ac: Likewise
6269 * configure: Regenerated.
b802ae5c 6270
8269de54
KT
62712013-03-27 Kai Tietz <ktietz@redhat.com>
6272
6273 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6274 * config/i386/t-cygwin-w64: New file.
6275 * config/i386/cygwin-w64.h: New file.
6276 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6277 and add support for x64-cygwin target.
6278 (CPP_SPEC): Likewise.
6279 (CXX_WRAP_SPEC_LIST): Undefine before define.
6280 (LIBGCJ_SONAME): Use 15 as version.
6281
f49b33cb
RB
62822013-03-27 Richard Biener <rguenther@suse.de>
6283
6284 PR tree-optimization/56716
6285 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6286 dumping for ref nodes.
6287
b37a6ce5
MJ
62882013-03-27 Martin Jambor <mjambor@suse.cz>
6289
6290 PR tree-optimization/55334
6291 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6292 restricted pointers to arrays.
6293
9469b9b2
GDR
62942013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6295
6296 * Makefile.in (.SUFFIXES): Add .cc.
6297 (.c.o): Apply same recipe for implicit rule .cc.o.
6298
7d24f650
RB
62992013-03-27 Richard Biener <rguenther@suse.de>
6300
6301 PR tree-optimization/37021
6302 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6303 REALPART/IMAGPART_EXPRs around the supported refs.
6304 * tree-ssa-structalias.c (find_func_aliases): Assume that
6305 floating-point values are not used to transfer pointers.
6306
2f251a05
AI
63072013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6308
39385fa6
PC
6309 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6310 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6311 * doc/tm.texi: Regenerate.
6312 * targhooks.h (default_has_ifunc_p): New.
6313 * targhooks.c (default_has_ifunc_p): Ditto.
6314 * config/linux-protos.h: New file.
6315 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
6316 this hook for linux which disables support of indirect functions in
6317 android.
39385fa6
PC
6318 * config/linux-android.c: New file.
6319 * config/t-linux-android.c: Ditto.
6320 * config.gcc: Added new object file linux-android.o.
6321 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 6322 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 6323 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
6324 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6325 doesn't support indirect functions.
6326 * configure: Regenerate.
6327
78b4e425
BC
63282013-03-27 Bin Cheng <bin.cheng@arm.com>
6329
6330 PR target/56102
6331 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6332 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6333 mult-word mode.
6334
a5ba7b92
AK
63352013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6336
6337 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6338
be624986
TG
63392013-03-27 Terry Guo <terry.guo@arm.com>
6340
6341 * config/arm/arm-cores.def: Added core cortex-r7.
6342 * config/arm/arm-tune.md: Regenerated.
6343 * config/arm/arm-tables.opt: Regenerated.
6344 * doc/invoke.texi: Added entry for core cortex-r7.
6345
0a514f47
WL
63462013-03-27 Walter Lee <walt@tilera.com>
6347
6348 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6349 double-decrement of next_scratch_regno.
6350
9332b0d2
WL
63512013-03-27 Walter Lee <walt@tilera.com>
6352
801d9b2a 6353 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
6354 input operands.
6355 (insn_v1mulus): Ditto.
6356 (insn_v2muls): Ditto.
6357
f54ea5dd
WL
63582013-03-27 Walter Lee <walt@tilera.com>
6359
e594716a 6360 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
6361 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6362
bf60f4ca
WL
63632013-03-27 Walter Lee <walt@tilera.com>
6364
e594716a 6365 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
6366 (*sibcall_value): Ditto.
6367
e3b51eeb
WL
63682013-03-27 Walter Lee <walt@tilera.com>
6369
6370 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6371 (insn_mnz_v8qi): ... this ...
6372 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6373 vector equivalent.
6374 (insn_v<n>mnz): Replaced by ...
6375 (insn_v1mnz): ... this ...
6376 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6377 equivalent.
6378 (insn_mz_<mode>): Replaced by ...
6379 (insn_mz_v8qi): ... this ...
6380 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6381 vector equivalent.
6382 (insn_v<n>mz): Replaced by ...
6383 (insn_v1mz): ... this ...
6384 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6385 equivalent.
6386
4fc7b145
EB
63872013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6388
6389 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6390
6f33817e
RM
63912013-03-26 Roland McGrath <mcgrathr@google.com>
6392
6393 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6394 than fprintf with a non-constant, non-format string.
6395
93a4145b
UB
63962013-03-26 Uros Bizjak <ubizjak@gmail.com>
6397
6398 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6399 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6400 operand 0 predicate.
6401 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6402 attribute. Use general_x64nomem_operand as operand 1 predicate.
6403 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6404 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6405 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6406 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6407 (mov<mode>_insv_1): Remove expander. Merge insn with
6408 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6409 Use general_x64nomem_operand as operand 1 predicate.
6410 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6411 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6412 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6413 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6414 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6415 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6416 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6417 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6418 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6419 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6420 (general_x64nomem_operand): Ditto.
6421
c6a9ed5a 64222013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
6423
6424 * config/rtems.opt: Add -pthread option.
6425
31b0a960
RB
64262013-03-26 Richard Biener <rguenther@suse.de>
6427
93a4145b
UB
6428 * alias.c (find_base_term): Avoid redundant and not used recursion.
6429 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
6430 (true_dependence_1): Compute and pass base terms to base_alias_check.
6431 (write_dependence_p): Likewise.
6432 (may_alias_p): Likewise.
6433
79517551
SN
64342013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6435
6436 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6437 PC-relative load in SI modes and above only.
6438
a76213b9
XQ
64392013-03-26 Xinyu Qi <xyqi@marvell.com>
6440
6441 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
6442 * config/arm/iwmmxt.md (WCGR0): Update.
6443 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 6444
37ff9355
UB
64452013-03-26 Uros Bizjak <ubizjak@gmail.com>
6446
6447 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6448 Use x64 and nox64 isa attributes.
6449
30b0317c
RB
64502013-03-26 Richard Biener <rguenther@suse.de>
6451
6452 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6453 alignment computations and rely on get_object_alignment_1
6454 for the !TYPE_P case.
6455 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6456
cbcdb140
WL
64572013-03-26 Walter Lee <walt@tilera.com>
6458
6459 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6460 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6461
dd884525 64622013-03-25 Jeff Law <law@redhat.com>
be672e08 6463
33159866
UB
6464 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6465 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
6466 wrong version of prior patch.
6467
0051d3ec
WL
64682013-03-25 Walter Lee <walt@tilera.com>
6469
6470 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6471 TILEGX_INSN_SHUFFLEBYTES1.
6472 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6473 shufflebytes1.
6474 (tilegx_builtins): Ditto.
6475 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6476
065a3605
WL
64772013-03-25 Walter Lee <walt@tilera.com>
6478
6479 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
6480 (floatunssisf2): New pattern.
6481 (floatsidf2): New pattern.
6482 (floatunssidf2): New pattern.
065a3605 6483
5b2a3c82
WL
64842013-03-25 Walter Lee <walt@tilera.com>
6485
6486 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6487 tests for constraint J, K, N, P.
6488
192ea533
WL
64892013-03-25 Walter Lee <walt@tilera.com>
6490
6491 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6492 Use indirect/pcrel encoding.
6493 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6494 Ditto.
6495
855e0d0b
SE
64962013-03-25 Steve Ellcey <sellcey@mips.com>
6497
6498 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6499 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6500 * config/mips/mips.c (mips_option_override): Set IMADD default.
6501 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6502 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6503 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6504 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6505 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6506
39e45653
JL
65072013-03-25 Jeff Law <law@redhat.com>
6508
6509 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6510 slightly to avoid creating and folding useless trees. Simplify
6511 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6512
7482c470
UB
65132013-03-25 Uros Bizjak <ubizjak@gmail.com>
6514
6515 * config/i386/i386.md (*zero_extendsidi2): Merge with
6516 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6517 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6518 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6519 targets. Clarify comment.
6520
4a53743e
MJ
65212013-03-25 Martin Jambor <mjambor@suse.cz>
6522
6523 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6524 pass-through jump functions differently.
6525 (ipa_read_jump_function): Likewise. Also use setter functions to set
6526 up jump functions.
6527
162712de
MJ
65282013-03-25 Martin Jambor <mjambor@suse.cz>
6529
6530 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6531 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6532 process it.
6533 (ipa_get_indirect_edge_target): New function.
6534 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6535 ipa_get_indirect_edge_target. Update all callers.
6536 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6537 ipa_get_indirect_edge_target_1 instead of calling
6538 ipa_get_indirect_edge_target.
6539 (create_specialized_node): Pass aggvlas to
6540 ipcp_discover_new_direct_edges.
6541
a5a4c20a
KT
65422013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6543
6544 * config/arm/arm.md (f_sels, f_seld): New types.
6545 (*cmov<mode>): New pattern.
6546 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6547 predicate.
6548
f992b9fc
KT
65492013-03-25 Kai Tietz <ktietz@redhat.com>
6550
6551 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6552 POSIX-printf for mingw-hosted builds.
6553
c16fd676
RB
65542013-03-25 Richard Biener <rguenther@suse.de>
6555
6556 PR middle-end/56694
6557 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6558 must-not-throw stmt location.
6559
5ad29f12
KT
65602013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6561
6562 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6563 Emit load-acquire versions when acq is true.
6564 (arm_emit_store_exclusive): Add rel parameter.
6565 Emit store-release versions when rel is true.
6566 (arm_split_compare_and_swap): Use acquire-release instructions
6567 instead.
6568 of barriers when appropriate.
6569 (arm_split_atomic_op): Likewise.
6570 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6571 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6572 (VUNSPEC_SLX): Likewise.
6573 (VUNSPEC_LDA): Likewise.
6574 (VUNSPEC_STL): Likewise.
6575 * config/arm/sync.md (atomic_load<mode>): New pattern.
6576 (atomic_store<mode>): Likewise.
6577 (arm_load_acquire_exclusive<mode>): Likewise.
6578 (arm_load_acquire_exclusivesi): Likewise.
6579 (arm_load_acquire_exclusivedi): Likewise.
6580 (arm_store_release_exclusive<mode>): Likewise.
6581
03a7dddb
CM
65822013-03-25 Catherine Moore <clm@codesourcery.com>
6583
6584 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6585 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6586 * config/mip/predicates.md (lwsp_swsp_operand,
6587 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6588 sb16_operand, db4_operand, db7_operand, ib3_operand,
6589 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6590 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6591 andi16_operand): New predicates.
6592 * config/mips/mips.md (compression): New attribute.
6593 (enabled): New attribute.
6594 (length): Consider compression in computing length.
6595 (shift_compression): New code attribute.
6596 (*add<mode>3): New operands. Record compression.
6597 (sub<mode>3): Likewise.
6598 (one_cmpl<mode>2): Likewise.
6599 (*and<mode>3): Likewise.
6600 (*ior<mode>3): Likewise.
6601 (unnamed pattern for xor): Likewise.
6602 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6603 (*<optab><mode>3): Likewise.
6604 (*mov<mode>_internal: Likewise.
6605 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6606 (mips_unsigned_immediate_p): New.
6607 (umips_lwsp_swsp_address_p): New.
6608 (m16_based_address_p): New.
6609 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6610 (mips_unsigned_immediate_p): New prototype.
6611 (lwsp_swsp_address_p): New prototype.
6612 (m16_based_address_p): New prototype.
6613 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6614 (mips_signed_immediate_p): New function.
6615 (m16_based_address_p): New function.
6616 (lwsp_swsp_address_p): New function.
6617 (mips_print_operand_punctuation): Recognize short delay slot insns
6618 for microMIPS.add<mode>3"
6619
f35c297f 66202013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 6621
f35c297f
KT
6622 PR target/56720
6623 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6624 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6625
051b9446
RB
66262013-03-25 Richard Biener <rguenther@suse.de>
6627
6628 PR tree-optimization/56689
6629 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6630 any edge.
6631
374001cb
RB
66322013-03-25 Richard Biener <rguenther@suse.de>
6633
6634 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6635 of bitmap.
6636 (memory_references): Likewise.
6637 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6638 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6639 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6640 (gather_mem_refs_in_loops): Fold into ...
6641 (analyze_memory_references): ... this. Move initialization
6642 to tree_ssa_lim_initialize.
6643 (fill_always_executed_in): Rename to ...
6644 (fill_always_executed_in_1): ... this.
6645 (fill_always_executed_in): Move contains_call computation to
6646 this new function from ...
6647 (tree_ssa_lim_initialize): ... here.
6648 (tree_ssa_lim): Call fill_always_executed_in.
6649
57895947
EB
66502013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6651
6652 * postreload.c (reload_combine): Fix code detecting returns.
6653
1e1b18c1
EB
66542013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6655
6656 * function.c (emit_use_return_register_into_block): On cc0 targets,
6657 do not emit the sequence between cc0 setter and user.
6658
9216baf1
KT
66592013-03-25 Kai Tietz <ktietz@redhat.com>
6660
1e1b18c1
EB
6661 * config/i386/predicates.md (local_symbolic_operand): Interpret
6662 dll-imported symbols as none-local.
9216baf1 6663
76421b44
RB
66642013-03-25 Richard Biener <rguenther@suse.de>
6665
6666 * tree-ssa-loop-im.c (struct depend): Remove.
6667 (struct lim_aux_data): Make depends a vec of gimples.
6668 (free_lim_aux_data): Adjust.
6669 (add_dependency): Likewise.
6670 (set_level): Likewise.
6671
d154bfa2
RB
66722013-03-25 Richard Biener <rguenther@suse.de>
6673
6674 PR middle-end/56434
6675 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6676 the pointer returned by calls with ECF_MALLOC set.
6677
2cd9804e
UB
66782013-03-24 Uros Bizjak <ubizjak@gmail.com>
6679
acef5fe0
UB
6680 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6681
66822013-03-24 Uros Bizjak <ubizjak@gmail.com>
6683
6684 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
6685 using MMXMODE mode iterator.
6686 (*move<mode>_internal): Merge with *movv2sf_internal and
6687 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6688
225ccc68
SB
66892013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6690
85c0f02d
SB
6691 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6692 (record_last_mem_set_info): Likewise.
6693
225ccc68
SB
6694 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6695 of XNEWVEC followed by memset.
6696 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6697
b64925dc
SB
66982013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6699
6700 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6701 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6702 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6703 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6704 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6705 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6706 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6707 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6708 BARRIER_P instead of GET_CODE.
6709
b9aaf52e
EB
67102013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6711
6712 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6713 inaccuracy in the probing code.
6714
6715 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6716 (ctrapdi4): Likewise.
6717
66de4d7c
EB
67182013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6719
6720 * calls.c (expand_call): Add missing guard to code handling return
6721 of non-BLKmode structures in MSB.
6722 * function.c (expand_function_end): Likewise.
6723
4f25c8fb
EB
67242013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6725
6726 * combine.c (try_combine): Adjust comment. Do not add the set of
6727 insn #0 if the destination indirectly is set or dies in insn #2.
6728 Tidy up code to distribute a new note.
6729
23b7850d
UB
67302013-03-22 Uros Bizjak <ubizjak@gmail.com>
6731
6732 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6733 also for alternatives 16 and 17.
6734
bed852cf
UB
67352013-03-22 Uros Bizjak <ubizjak@gmail.com>
6736
6737 * config/i386/sse.md (*mov<mode>_internal): Merge with
6738 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6739 Emit insn template depending on type attribute. Use
6740 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6741 movd instead of movq mnemonic for interunit moves. Rewrite mode
6742 attribute calculation. Remove unit attribute calculation.
6743 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6744 Set prefix_data16 attribute for DImode ssemov types.
6745 Use Ym instead of y for SSE-MMX conversion alternatives.
6746 Reorder operand constraints.
6747
1e8a7937
SB
67482013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6749
6750 * df.h (df_insn_delete): Adjust prototype.
6751 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6752 and let it decide whether mark the basic block dirty.
6753 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6754 * df-scan.c (df_insn_info_delete): New helper function, split
6755 off from df_insn_delete.
6756 (df_scan_free_bb_info): Use it.
6757 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6758 Likewise.
6759 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6760 that the insn is actually an insn and it has a non-NULL basic block.
6761 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6762
e14d094c
RB
67632013-03-22 Richard Biener <rguenther@suse.de>
6764
6765 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6766 dep_ref members.
6767 (mem_ref_alloc): Do not allocate them.
6768 (refs_independent_p): Do not query or maintain a cache.
6769
e9cf7316
RB
67702013-03-22 Richard Biener <rguenther@suse.de>
6771
6772 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6773 (gather_mem_refs_in_loops): Do not compute it.
6774 (analyze_memory_references): Do not allocate it.
6775 (tree_ssa_lim_finalize): Do not free it.
6776 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6777
f046e81b
RB
67782013-03-22 Richard Biener <rguenther@suse.de>
6779
6780 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 6781
a05c0ddf
IB
67822013-03-22 Ian Bolton <ian.bolton@arm.com>
6783
6784 * config/aarch64/aarch64.c (aarch64_print_operand): New
6785 format specifier for printing a constant in hex.
6786 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6787 format specifier for printing second operand.
6788
c00217fc
RB
67892013-03-22 Richard Biener <rguenther@suse.de>
6790
6791 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6792 bitmaps.
6793 (gather_mem_refs_in_loops): Perform store accumulation here.
6794 (create_vop_ref_mapping_loop): Remove.
6795 (create_vop_ref_mapping): Likewise.
6796 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6797 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6798 (record_indep_loop): Remove.
6799 (record_dep_loop): New function.
6800 (ref_indep_loop_p_1): Adjust to only walk over references
6801 in the loop, not its subloops.
6802 (ref_indep_loop_p): Rename to ...
6803 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6804 maintaining a more fine-grained cache.
6805 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6806 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6807
15d19bf8
RB
68082013-03-22 Richard Biener <rguenther@suse.de>
6809
6810 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6811 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6812 aggregate mem_ref_loc.
6813 (free_mem_ref_locs): Inline into ...
6814 (memref_free): ... this and adjust.
6815 (mem_ref_alloc): Adjust.
6816 (mem_ref_locs_alloc): Remove.
6817 (record_mem_ref_loc): Adjust.
6818 (get_all_locs_in_loop): Rewrite into ...
6819 (for_all_locs_in_loop): ... this iterator.
6820 (rewrite_mem_ref_loc): New functor.
6821 (rewrite_mem_refs): Use for_all_locs_in_loop.
6822 (sm_set_flag_if_changed): New functor.
6823 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6824 (ref_always_accessed): New functor.
6825 (ref_always_accessed_p): Use for_all_locs_in_loop.
6826
6f37411d
MG
68272013-03-21 Marc Glisse <marc.glisse@inria.fr>
6828
6829 * tree-pass.h (PROP_gimple_lvec): New.
6830 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6831 (init_optimization_passes): Move pass_lower_vector.
6832 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6833 PROP_gimple_lvec.
6834 (pass_lower_vector): Provide PROP_gimple_lvec.
6835 (pass_lower_vector_ssa): Likewise.
6836 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6837
511ef689
MW
68382013-03-21 Mark Wielaard <mjw@redhat.com>
6839
6840 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6841
cc1df30b
UB
68422013-03-21 Uros Bizjak <ubizjak@gmail.com>
6843
6844 * config/i386/i386.md (*movdi_internal): Disparage slightly
6845 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6846 conversion alternatives.
6847
c845cfe1
JJ
68482013-03-21 Jakub Jelinek <jakub@redhat.com>
6849
37e99116
JJ
6850 PR middle-end/48087
6851 * diagnostic.def (DK_WERROR): New kind.
6852 * diagnostic.h (werrorcount): Define.
6853 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6854 promoted to DK_ERROR, increment DK_WERROR counter instead of
6855 DK_ERROR counter.
6856 * toplev.c (toplev_main): Call print_ignored_options even if
6857 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6858 even if just werrorcount is non-zero.
6859
c845cfe1
JJ
6860 PR debug/55608
6861 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6862 on failure.
6863 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6864 (string_cst_pool_decl): New function.
6865 (optimize_one_addr_into_implicit_ptr): New function.
6866 (resolve_addr_in_expr): Optimize DWARF location expression
6867 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6868 which doesn't live in memory, but has DW_AT_location or
6869 DW_AT_const_value, or refers to a string literal, into
6870 DW_OP_GNU_implicit_pointer.
6871 (optimize_location_into_implicit_ptr): New function.
6872 (resolve_addr): If removing DW_AT_location of a variable because
6873 it was DW_OP_addr of address of the variable, but the variable doesn't
6874 live in memory, try to emit const value attribute for the initializer.
6875
08e0cda6
MG
68762013-03-21 Marc Glisse <marc.glisse@inria.fr>
6877
6878 * tree.h (VECTOR_TYPE_P): New macro.
6879 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6880 TYPE_MODE): Use it.
6881 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6882 VEC_COND_EXPR cannot be lvalues.
6883 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6884
d08633b4
MG
68852013-03-21 Marc Glisse <marc.glisse@inria.fr>
6886
6887 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6888 Restrict the transformation to equal modes.
6889
e6647190
RB
68902013-03-21 Richard Biener <rguenther@suse.de>
6891
6892 PR tree-optimization/39326
6893 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6894 (MEM_ANALYZABLE): Adjust.
6895 (record_mem_ref_loc): Move bitmap ops ...
6896 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6897 unanalyzable refs, do not record locations for it.
6898 (analyze_memory_references): Allocate ref zero as shared
6899 unanalyzable ref.
6900 (refs_independent_p): Do not test for unanalyzed mems here.
6901 (ref_indep_loop_p_1): Special-case disambiguation against
6902 the unanalyzed ref.
cc1df30b 6903 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6904
65074f54
CL
69052013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6906
6907 * config/arm/arm-protos.h (tune_params): Add
6908 prefer_neon_for_64bits field.
6909 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6910 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6911 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6912 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6913 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6914 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6915 (arm_option_override): Handle -mneon-for-64bits new option.
6916 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6917 (prefer_neon_for_64bits): Declare new variable.
6918 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6919 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6920 (arch_enabled): Handle new arch types. Remove support for onlya8
6921 and nota8.
6922 (one_cmpldi2): Use new arch names.
bc5faa5b 6923 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6924 * config/arm/arm.opt (mneon-for-64bits): Add option.
6925 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6926 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6927 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6928 of onlya8.
6929 * doc/invoke.texi (-mneon-for-64bits): Document.
6930
5a2d2a79
RB
69312013-03-21 Richard Biener <rguenther@suse.de>
6932
6933 PR tree-optimization/39326
6934 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6935 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6936 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6937
5abe1e05
RB
69382013-03-21 Richard Biener <rguenther@suse.de>
6939
6940 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6941 (vect_insert_into_interleaving_chain): Likewise.
6942 (vect_drs_dependent_in_basic_block): Inline ...
6943 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6944 split out from ...
6945 (vect_analyze_data_ref_dependence): ... here. Simplify.
6946 (vect_check_interleaving): Simplify.
6947 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6948 (vect_slp_analyze_data_ref_dependences): ... this new function.
6949 (dr_group_sort_cmp): New function.
6950 (vect_analyze_data_ref_accesses): Compute data-reference groups
6951 here instead of in vect_analyze_data_ref_dependence. Use
6952 a more efficient algorithm.
6953 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6954 vect_slp_analyze_data_ref_dependences. Call
6955 vect_analyze_data_ref_accesses earlier.
6956 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6957 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6958 (vect_slp_analyze_data_ref_dependences): New prototype.
6959
cad1735b
RB
69602013-03-21 Richard Biener <rguenther@suse.de>
6961
6962 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6963 ref is stored in the loop.
6964 (find_refs_for_sm): Walk only over all stores.
6965 (store_motion_loop): Allocate from lim_bitmap_obstack.
6966 (store_motion): Likewise.
6967
141310ef
RB
69682013-03-21 Richard Biener <rguenther@suse.de>
6969
6970 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6971 Update virtual SSA form.
6972
5022315a
RO
69732013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6974
6975 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6976 * configure: Regenerate.
6977 * config.in: Regenerate.
6978 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6979 if !HAVE_LD_EH_FRAME_CIEV3.
6980
50d4421c
RB
69812013-03-21 Richard Biener <rguenther@suse.de>
6982
6983 * tree-cfg.c (verify_expr_no_block): New function.
6984 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6985 nor DECL_VALUE_EXPR have locations with associated blocks.
6986 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6987 (clear_unused_block_pointer): Remove code dealing with
6988 blocks in DECL_DEBUG_EXPR locations.
6989
839b422f
RB
69902013-03-21 Richard Biener <rguenther@suse.de>
6991
6992 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6993 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6994 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6995 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6996 instead of DECL_DEBUG_EXPR_IS_FROM.
6997 * gimplify.c (gimplify_modify_expr): Likewise.
6998 * tree-cfg.c (verify_expr_location_1): Likewise.
6999 * tree-complex.c (create_one_component_var): Likewise.
7000 * tree-sra.c (create_access_replacement): Likewise.
7001 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7002 (clear_unused_block_pointer): Likewise.
7003 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7004 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7005 * var-tracking.c (var_debug_decl): Likewise.
7006 (track_expr_p): Likewise.
7007 * tree-inline.c (add_local_variables): Likewise. Set
7008 DECL_HAS_DEBUG_EXPR_P after copying it.
7009 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7010 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7011
fe04878d
UB
70122013-03-21 Uros Bizjak <ubizjak@gmail.com>
7013
7014 PR bootstrap/56656
7015 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7016 * configure: Regenerate.
7017 * config.in: Regenerate.
7018 * config/i386/i386.md (*movdf_internal): Use
7019 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7020 movd instead of movq mnemonic for interunit moves.
7021 (*movdi_internal): Ditto.
7022
bd059b26 70232013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
7024
7025 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7026 (abd<mode>_3): New pattern.
7027 (aba<mode>_3): New pattern.
7028 (fabd<mode>_3): New pattern.
7029
bd059b26 70302013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
7031
7032 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7033 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7034 occurrence of REGISTER_PREFIX as its empty string.
7035
4f1f78b9
JL
70362013-03-20 Jeff Law <law@redhat.com>
7037
7038 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7039 addititional equivalences for equality comparisons between an SSA_NAME
7040 and a constant where the SSA_NAME was set from a widening conversion.
7041
327a1118
WL
70422013-03-20 Walter Lee <walt@tilera.com>
7043
7044 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7045
813e0036
UB
70462013-03-20 Uros Bizjak <ubizjak@gmail.com>
7047
7048 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7049 depending on type attribute.
7050 (*movti_internal): Ditto.
7051 (*movtf_internal): Ditto.
7052 (*movxf_internal): Ditto.
7053 (*movdf_internal): Ditto.
7054 (*movsf_internal): Ditto.
7055
7cf34aae
UB
70562013-03-20 Uros Bizjak <ubizjak@gmail.com>
7057
7058 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7059 maybe_vex for sselog1 and ssemov types.
7060 (*movdi_internal): Reorder operand constraints.
7061 (*movsi_internal): Ditto. Set prefix attribute to
7062 maybe_vex for sselog1 and ssemov types.
7063 (*movtf_internal): Set prefix attribute to maybe_vex
7064 for sselog1 and ssemov types.
7065 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7066 DImode ssemov types. Reorder operand constraints.
7067 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7068 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7069 attribute for SImode ssemov types. Reorder operand constraints.
7070
19321415
MJ
70712013-03-20 Martin Jambor <mjambor@suse.cz>
7072
7073 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7074 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7075
c6d5ff83
MM
70762013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7077
7078 * config/rs6000/predicates.md (indexed_address, update_address_mem
7079 update_indexed_address_mem): New predicates.
7080 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7081 attribute for load/store instructions.
7082 * config/rs6000/dfp.md (movsd_store): Likewise.
7083 (movsd_load): Likewise.
7084 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7085 (unnamed HI->DI extend define_insn): Likewise.
7086 (unnamed SI->DI extend define_insn): Likewise.
7087 (unnamed QI->SI extend define_insn): Likewise.
7088 (unnamed QI->HI extend define_insn): Likewise.
7089 (unnamed HI->SI extend define_insn): Likewise.
7090 (unnamed HI->SI extend define_insn): Likewise.
7091 (extendsfdf2_fpr): Likewise.
7092 (movsi_internal1): Likewise.
7093 (movsi_internal1_single): Likewise.
7094 (movhi_internal): Likewise.
7095 (movqi_internal): Likewise.
7096 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7097 attribute for load/store instructions.
7098 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7099 instructions.
7100 (mov<mode>_softfloat): Likewise.
7101 (mov<mode>_hardfloat32): Likewise.
7102 (mov<mode>_hardfloat64): Likewise.
7103 (mov<mode>_softfloat64): Likewise.
7104 (movdi_internal32): Likewise.
7105 (movdi_internal64): Likewise.
7106 (probe_stack_<mode>): Likewise.
7107
71082013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7109
7110 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7111 floating point, and decimal floating point to reload iterator.
7112
7113 * config/rs6000/constraints.md (wl constraint): New constraints to
7114 return FLOAT_REGS if certain options are used to reduce the number
7115 of separate patterns that exist in the file.
7116 (wx constraint): Likewise.
7117 (wz constraint): Likewise.
7118
7119 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7120 -mdebug=reg, print wg, wl, wx, and wz constraints.
7121 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7122 Initialize the reload functions for 64-bit binary/decimal floating
7123 point types.
7124 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7125 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7126 create the buffer on the stack to overcome not having a 32-bit
7127 load and store.
7128 (rs6000_emit_move): Likewise.
7129 (rs6000_secondary_memory_needed_rtx): Likewise.
7130 (rs6000_alloc_sdmode_stack_slot): Likewise.
7131 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7132 via xxlxor, just like DFmode 0.0.
7133
7134 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7135 define as 1 if we are running on a power7 or newer.
7136 (enum r6000_reg_class_enum): Add new constraints.
7137
7138 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7139 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7140 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 7141 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
7142 (movsd splitter): Likewise.
7143 (movsd_hardfloat): Likewise.
7144 (movsd_softfloat): Likewise.
7145
7146 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7147 binary and decimal floating point moves.
7148 (fmove_ok): New attributes to combine binary and decimal floating
7149 point moves, and to combine power6x (mfpgpr) moves along normal
7150 floating moves.
7151 (real_value_to_target): Likewise.
7152 (f32_lr): Likewise.
7153 (f32_lm): Likewise.
7154 (f32_li): Likewise.
7155 (f32_sr): Likewise.
7156 (f32_sm): Likewise.
7157 (f32_si): Likewise.
7158 (movsf): Combine binary and decimal floating point moves. Combine
7159 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 7160 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
7161 (mov<mode> for SFmode/SDmode); Likewise.
7162 (SFmode/SDmode splitters): Likewise.
7163 (movsf_hardfloat): Likewise.
7164 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7165 (movsf_softfloat): Likewise.
7166 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7167
7168 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7169 wx and wz constraints.
7170
7171 * config/rs6000/constraints.md (wg constraint): New constraint to
7172 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7173
7174 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7175 constraint.
7176
7177 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7178 -mdebug=reg, print wg, wl, wx, and wz constraints.
7179 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7180 Initialize the reload functions for 64-bit binary/decimal floating
7181 point types.
7182 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7183 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7184 create the buffer on the stack to overcome not having a 32-bit
7185 load and store.
7186 (rs6000_emit_move): Likewise.
7187 (rs6000_secondary_memory_needed_rtx): Likewise.
7188 (rs6000_alloc_sdmode_stack_slot): Likewise.
7189 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7190 via xxlxor, just like DFmode 0.0.
7191
c6d5ff83
MM
7192 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7193 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7194 with other moves by using conditional constraits (wg). Use LFIWZX
7195 and STFIWX for loading SDmode on power7.
7196 (movdd splitters): Likewise.
7197 (movdd_hardfloat32): Likewise.
7198 (movdd_softfloat32): Likewise.
7199 (movdd_hardfloat64_mfpgpr): Likewise.
7200 (movdd_hardfloat64): Likewise.
7201 (movdd_softfloat64): Likewise.
7202
7203 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7204 64-bit binary and decimal floating point moves.
7205 (FMOVE64X): Likewise.
7206 (movdf): Combine 64-bit binary and decimal floating point moves.
7207 Combine power6x (mfpgpr) moves with other moves by using
7208 conditional constraits (wg).
7209 (mov<mode> for DFmode/DDmode): Likewise.
7210 (DFmode/DDmode splitters): Likewise.
7211 (movdf_hardfloat32): Likewise.
7212 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7213 (movdf_softfloat32): Likewise.
7214 (movdf_hardfloat64_mfpgpr): Likewise.
7215 (movdf_hardfloat64): Likewise.
7216 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7217 (movdf_softfloat64): Likewise.
7218 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7219 (reload_<mode>_load): Move to later in the file so they aren't in
7220 the middle of the floating point move insns.
7221 (reload_<mode>_store): Likewise.
7222
7223 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7224 constraint.
7225
7226 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7227 constraint if -mdebug=reg.
bd059b26
UB
7228 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7229 Enable using dd reload support if needed.
c6d5ff83
MM
7230
7231 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7232 binary and decimal floating point moves in rs6000.md.
7233 (movtd_internal): Likewise.
7234
7235 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7236 decimal floating point moves.
7237 (movtf): Likewise.
7238 (movtf_internal): Likewise.
7239 (mov<mode>_internal, TDmode/TFmode): Likewise.
7240 (movtf_softfloat): Likewise.
7241 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7242
7243 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7244 movdi_internal64, using wg constraint for move direct operations.
7245 (movdi_internal64): Likewise.
7246
7247 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7248 MODES_TIEABLE_P for selected modes. Print the numerical value of
7249 the various virtual registers. Use GPR/FPR first/last values,
7250 instead of hard coding the register numbers. Print which modes
7251 have reload functions registered.
bd059b26
UB
7252 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7253 settings before/after setting cpu, target and subtarget settings.
7254 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7255 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
7256 (rs6000_secondary_reload_fail): Likewise.
7257 (rs6000_secondary_reload_inner): Likewise.
7258
7259 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7260 macros for first/last GPR and FPR registers.
7261 (LAST_GPR_REGNO): Likewise.
7262 (FIRST_FPR_REGNO): Likewise.
7263 (LAST_FPR_REGNO): Likewise.
7264
7265 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7266 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7267 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7268 (vcond<mode><mode>): Likewise.
7269 (vcondu<mode><mode>): Likewise.
7270 (vector_gtu<mode>): Likewise.
7271 (vector_gte<mode>): Likewise.
7272 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 7273 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
7274 (ior<mode>3): Likewise.
7275 (and<mode>3): Likewise.
7276 (one_cmpl<mode>2): Likewise.
7277 (nor<mode>3): Likewise.
7278 (andc<mode>3): Likewise.
7279
7280 * config/rs6000/constraints.md (wt constraint): New constraint
7281 that returns VSX_REGS if TImode is allowed in VSX registers.
7282
7283 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7284 constant under VSX.
7285
7286 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7287 similar to TImode, but it is restricted to being in the GPRs.
7288
7289 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7290 TImode to occupy a single VSX register.
7291
7292 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7293 -mvsx-timode for power7/power8.
7294 (power7 cpu): Likewise.
7295 (power8 cpu): Likewise.
7296
7297 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7298 sure that TFmode/TDmode take up two registers if they are ever
7299 allowed in the upper VSX registers.
7300 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7301 registers.
7302 (rs6000_init_hard_regno_mode_ok): Likewise.
7303 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7304 constraint. Print if LRA is turned on.
7305 (rs6000_option_override_internal): Give an error if -mvsx-timode
7306 and VSX is not enabled.
7307 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7308 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7309 to reg+offset addressing. Use PTImode when checking offset
7310 addresses for validity.
7311 (reg_offset_addressing_ok_p): Likewise.
7312 (rs6000_legitimate_offset_address_p): Likewise.
7313 (rs6000_legitimize_address): Likewise.
7314 (rs6000_legitimize_reload_address): Likewise.
7315 (rs6000_legitimate_address_p): Likewise.
7316 (rs6000_eliminate_indexed_memrefs): Likewise.
7317 (rs6000_emit_move): Likewise.
7318 (rs6000_secondary_reload): Likewise.
7319 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7320 reloads to fpr registers to continue to use reg+offset addressing,
7321 but 64-bit reloads to altivec registers need reg+reg addressing.
7322 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7323 it. Treat LO_SUM like a PLUS operation.
7324 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 7325 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
7326 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7327 registers to share a register with a smaller sized type, since VSX
7328 puts scalars in the upper 64-bits.
7329 (print_operand): Add support for PTImode.
7330 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7331 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7332 registers, but don't have arithmetic support.
7333 (rs6000_memory_move_cost): Add test for VSX.
7334 (rs6000_opt_masks): Add -mvsx-timode.
7335
7336 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7337 for TImode.
7338 (VSs): Likewise.
7339 (VSr): Use wt constraint for TImode.
7340 (VSv): Drop TImode support.
7341 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7342 (vsx_movti_64bit): Likewise.
7343 (vsx_movti_32bit): Likewise.
7344 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7345 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7346 one '?' on the appropriate output constraint. Do not allow TImode
7347 logical operations on 32-bit systems.
7348 (vsx_ior<mode>3): Likewise.
7349 (vsx_xor<mode>3): Likewise.
7350 (vsx_one_cmpl<mode>2): Likewise.
7351 (vsx_nor<mode>3): Likewise.
7352 (vsx_andc<mode>3): Likewise.
7353 (vsx_concat_<mode>): Likewise.
7354 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7355
7356 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7357 OPTION_MASK_VSX_TIMODE.
7358 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7359 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7360
7361 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7362 (TI2 iterator): New iterator for TImode, PTImode.
7363 (wd mode attribute): Add values for vector types.
bd059b26
UB
7364 (movti_string): Replace TI move operations with operations for TImode
7365 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
7366 (mov<mode>_string, TImode/PTImode): Likewise.
7367 (movti_ppc64): Likewise.
7368 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7369 (TI mode splitters): Likewise.
7370
7371 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7372 constraint.
7373
1fc5eced
MG
73742013-03-20 Marc Glisse <marc.glisse@inria.fr>
7375
7376 PR tree-optimization/56355
7377 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7378 Also handle integers with undefined overflow.
7379
22c4c869
CM
73802013-03-20 Catherine Moore <clm@codesourcery.com>
7381 Maciej W. Rozycki <macro@codesourcery.com>
7382 Tom de Vries <tom@codesourcery.com>
7383 Nathan Sidwell <nathan@codesourcery.com>
7384 Iain Sandoe <iain@codesourcery.com>
7385 Nathan Froyd <froydnj@codesourcery.com>
7386 Chao-ying Fu <fu@mips.com>
7387
7388 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 7389 Document new function attributes.
22c4c869
CM
7390 * doc/invoke.texi (minterlink-compressed, mmicromips,
7391 m14k, m14ke, m14kec): Document new options.
7392 (minterlink-mips16): Update documentation.
7393 * doc/md.texi (ZC, ZD): Document new constraints.
7394 * configure.ac (gcc_cv_as_micromips): Check if linker
7395 supports the .set micromips directive.
7396 * configure: Regenerate.
7397 * config.in: Regenerate.
7398 * config/mips/mips-tables.opt: Regenerate.
7399 * config/mips/micromips.md: New file.
7400 * constraints.md (ZC, ZD): New constraints.
7401 * config/mips/predicates.md (movep_src_register): New predicate.
7402 (movep_src_operand): New predicate.
7403 (non_volatile_mem_operand): New predicate.
7404 * config/mips/mips.md (multimem): New type.
7405 (length): Differentiate between 17-bit and 18-bit branch offsets.
7406 (MOVEP1, MOVEP2): New mode iterator.
33159866 7407 (mov_<load>l): Use ZC constraint.
22c4c869
CM
7408 (mov_<load>r): Likewise.
7409 (mov_<store>l): Likewise.
7410 (mov_<store>r): Likewise.
7411 (*branch_equality<mode>_inverted): Add microMIPS support.
7412 (*branch_equality<mode>): Likewise.
7413 (*jump_absolute): Likewise.
7414 (indirect_jump_<mode>): Likewise.
7415 (tablejump_<mode>): Likewise.
7416 (<optab>_internal): Likewise.
7417 (sibcall_internal): Likewise.
7418 (sibcall_value_internal): Likewise.
7419 (prefetch): Use constraint ZD.
7420 * config/mips/mips.opt (minterlink-compressed): New option.
7421 (minterlink-mips16): Now an alias for minterlink-compressed.
7422 (mmicromips): New option.
7423 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7424 (compare_and_swap_12): Likewise.
7425 (sync_add<mode>): Likewise.
7426 (sync_<optab>_12): Likewise.
7427 (sync_old_<optab>_12): Likewise.
7428 (sync_new_<optab>_12): Likewise.
7429 (sync_nand_12): Likewise.
7430 (sync_old_nand_12): Likewise.
7431 (sync_new_nand_12): Likewise.
7432 (sync_sub<mode>): Likewise.
7433 (sync_old_add<mode>): Likewise.
7434 (sync_old_sub<mode>): Likewise.
7435 (sync_new_add<mode>): Likewise.
7436 (sync_new_sub<mode>): Likewise.
7437 (sync_<optab><mode>): Likewise.
7438 (sync_old_<optab><mode>): Likewise.
7439 (sync_new_<optab><mode>): Likewise.
7440 (sync_nand<mode>): Likewise.
7441 (sync_old_nand<mode>): Likewise.
7442 (sync_new_nand<mode>): Likewise.
7443 (sync_lock_test_and_set<mode>): Likewise.
7444 (test_and_set_12): Likewise.
7445 (atomic_compare_and_swap<mode>): Likewise.
7446 (atomic_exchange<mode>_llsc): Likewise.
7447 (atomic_fetch_add<mode>_llsc): Likewise.
7448 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7449 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7450 (umips_save_restore_pattern_p): Likewise.
7451 (umips_load_store_pair_p): Likewise.
7452 (umips_output_load_store_pair): Likewise.
7453 (umips_movep_target_p): Likewise.
7454 (umips_12bit_offset_address_p): Likewise.
7455 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7456 (mips_base_mips16): Rename this...
7457 (mips_base_compression_flags): ...to this. Update all uses.
7458 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7459 (mips_mips16_decl_p): Delete.
7460 (mips_nomips16_decl_p): Delete.
33159866 7461 (mips_get_compress_on_flags): New function.
22c4c869
CM
7462 (mips_get_compress_off_flags): New function.
7463 (mips_get_compress_mode): New function.
7464 (mips_get_compress_on_name): New function.
7465 (mips_get_compress_off_name): New function.
7466 (mips_insert_attributes): Support multiple compression types.
7467 (mips_merge_decl_attributes): Likewise.
7468 (umips_12bit_offset_address_p): New function.
7469 (mips_start_function_definition): Emit .set micromips directive.
7470 (mips_call_may_need_jalx_p): New function.
7471 (mips_function_ok_for_sibcall): Add microMIPS support.
7472 (mips_print_operand_punctuation): Support short delay slots and
7473 compact jumps.
7474 (umips_swm_mask, umips_swm_encoding): New.
7475 (umips_build_save_restore): New function.
7476 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7477 (was_mips16_p): Remove.
7478 (old_compression_mode): New.
7479 (mips_set_compression_mode): New function.
7480 (mips_set_current_function): Add microMIPS support.
7481 (mips_option_override): Likewise.
7482 (umips_save_restore_pattern_p): New function.
7483 (umips_output_save_restore): New function.
7484 (umips_load_store_pair_p_1): New function.
7485 (umips_load_store_pair_p): New function.
7486 (umips_output_load_store_pair_1): New function.
7487 (umips_output_load_store_pair): New function.
7488 (umips_movep_target_p) New function.
7489 (mips_prepare_pch_save): Add microMIPS support.
7490 * config/mips/mips.h (TARGET_COMPRESSION): New.
7491 (TARGET_CPU_CPP_BUILTINS): Update macro
7492 to use new compression flags and to support microMIPS.
7493 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7494 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7495 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7496 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7497 (ASM_SPEC): Support mmicromips and mno-micromips.
7498 (M16STORE_REG_P): New macro.
7499 (MIPS_CALL): Support TARGET_MICROMIPS.
7500 (MICROMIPS_J): New macro.
7501 (mips_base_mips16): Rename this...
7502 (mips_base_compression_flags): ...to this.
7503 (UMIPS_12BIT_OFFSET_P): New macro.
7504 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7505 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
75062013-03-20 Richard Biener <rguenther@suse.de>
7507
7508 PR tree-optimization/56661
7509 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7510 the result does not have to be distinct.
7511
54714c68
RB
75122013-03-20 Richard Biener <rguenther@suse.de>
7513
7514 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7515 remap_gimple_op_r.
7516
cca1130d
BS
75172013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7518 Steven Bosscher <steven@gcc.gnu.org>
7519
7520 PR rtl-optimization/56605
7521 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7522
2a930377
UB
75232013-03-20 Uros Bizjak <ubizjak@gmail.com>
7524
7525 PR bootstrap/56656
7526 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7527 that require movd instead of movq.
7528
d6d305fe
RB
75292013-03-20 Richard Biener <rguenther@suse.de>
7530
7531 * tree-ssa-structalias.c (struct variable_info): Add pointer
7532 to the first field of an aggregate with sub-vars. Make
7533 this and the pointer to the next subfield its ID.
7534 (vi_next): New function.
7535 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7536 storedanything_id, integer_id): Increment by one.
7537 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7538 get_call_clobber_vi): Adjust.
7539 (solution_set_expand): Simplify and speedup.
7540 (solution_set_add): Inline into ...
7541 (set_union_with_increment): ... this. Adjust accordingly.
7542 (do_sd_constraint): Likewise.
7543 (do_ds_constraint): Likewise.
7544 (do_complex_constraint): Simplify.
7545 (build_pred_graph): Adjust.
7546 (solve_graph): Likewise. Simplify and speedup.
7547 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7548 get_constraint_for_component_ref, get_constraint_for_1,
7549 first_vi_for_offset, first_or_preceding_vi_for_offset,
7550 create_function_info_for, create_variable_info_for_1,
7551 create_variable_info_for, intra_create_variable_infos): Adjust.
7552 (init_base_vars): Push NULL for ID zero.
7553 (compute_points_to_sets): Adjust.
7554
a271b42d
RB
75552013-03-20 Richard Biener <rguenther@suse.de>
7556
7557 * cfgloop.c (verify_loop_structure): Streamline and avoid
7558 ICEing on corrupt loop tree.
7559 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7560 loop tree.
7561
ebd65954
RB
75622013-03-20 Richard Biener <rguenther@suse.de>
7563
7564 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7565 check whether an SSA update is needed.
7566
4547b7ee
RS
75672013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7568
7569 * config/mips/constraints.md (T): Rename to...
7570 (Yf): ...this.
7571 (U): Rename to...
7572 (Yd): ...this.
7573 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7574 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7575
0b8cdc58
IB
75762013-03-19 Ian Bolton <ian.bolton@arm.com>
7577
7578 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7579 (*subsi3_carryin_uxtw): Likewise.
7580
5977a10d
IB
75812013-03-19 Ian Bolton <ian.bolton@arm.com>
7582
7583 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7584 (*rorsi3_insn_uxtw): Likewise.
7585
bd83ff2c
IB
75862013-03-19 Ian Bolton <ian.bolton@arm.com>
7587
7588 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7589 (*extrsi5_insn_uxtw): Likewise.
7590
ba65123c
RB
75912013-03-19 Richard Biener <rguenther@suse.de>
7592
7593 PR tree-optimization/56273
7594 * passes.c (init_optimization_passes): Move second VRP after DOM.
7595
2eac0476
UB
75962013-03-19 Uros Bizjak <ubizjak@gmail.com>
7597
7598 * config/i386/i386.md (*movti_internal): Merge from
7599 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7600 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7601 nox64 isa attributes.
7602
6e55eda7
RB
76032013-03-18 Richard Biener <rguenther@suse.de>
7604
7605 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7606 (unite): Likewise.
7607 (merge_node_constraints): Likewise.
7608 (build_succ_graph): Likewise.
7609 (valid_graph_edge): Inline into single caller.
7610 (unify_nodes): Likewise. Use bitmap_set_bit return value
7611 and cache varinfo.
7612 (scc_visit): Fix formatting and variable use.
7613 (do_sd_constraint): Use gcc_checking_assert.
7614 (do_ds_constraint): Likewise.
7615 (do_complex_constraint): Likewise.
7616 (condense_visit): Likewise. Cleanup.
7617 (dump_pred_graph): New function.
7618 (perform_var_substitution): Dump the pred-graph before
7619 variable substitution.
7620 (find_equivalent_node): Use gcc_checking_assert.
7621 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7622
4bdd44c4
RB
76232013-03-18 Richard Biener <rguenther@suse.de>
7624
7625 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7626 Remove cond_expr_stmt_list argument and do not gimplify the
7627 built expression.
7628 (vect_loop_versioning): Adjust.
7629 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7630 Cleanup to use less temporaries.
7631 (vect_create_data_ref_ptr): Cleanup.
7632
38c56a5b
JJ
76332013-03-18 Jakub Jelinek <jakub@redhat.com>
7634
7635 PR tree-optimization/56635
7636 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7637 require types_compatible_p types.
7638
20b2e6a0
NC
76392013-03-18 Nick Clifton <nickc@redhat.com>
7640
a6178a25
NC
7641 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7642 spurious backslash.
7643
20b2e6a0
NC
7644 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7645 Add missing line to comment describing function.
7646
92608d0e
RB
76472013-03-18 Richard Biener <rguenther@suse.de>
7648
7649 PR tree-optimization/56210
7650 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7651 Handle string / character search functions.
7652 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7653
31348d52
RB
76542013-03-18 Richard Biener <rguenther@suse.de>
7655
7656 PR middle-end/56483
7657 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7658 and implement properly.
7659 * gimple.h (gimple_cond_single_var_p): Remove.
7660
fcac74a1
RB
76612013-03-18 Richard Biener <rguenther@suse.de>
7662
7663 * tree-data-ref.h (find_data_references_in_loop): Declare.
7664 * tree-data-ref.c (get_references_in_stmt): Use a stack
7665 vector pre-allocated in the callers.
7666 (find_data_references_in_stmt): Adjust.
7667 (graphite_find_data_references_in_stmt): Likewise.
7668 (create_rdg_vertices): Likewise.
7669 (find_data_references_in_loop): Export.
7670 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7671 Compute dependences here...
7672 (vect_analyze_data_refs): ...not here. When we encounter
7673 a non-vectorizable data reference in basic-block vectorization
7674 truncate the data reference vector. Do not bother to
7675 fixup data-dependence information for gather loads.
7676 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7677 of data references, as reported.
7678
0d5a1b56
RB
76792013-03-18 Richard Biener <rguenther@suse.de>
7680
7681 PR tree-optimization/3713
7682 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7683 has_constants and expr.
7684 (stmt_has_constants): Properly valueize SSA names when deciding
7685 whether the stmt has constants.
7686
789c34e3
RB
76872013-03-18 Richard Biener <rguenther@suse.de>
7688
7689 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7690 whole function when there is nothing to do.
7691 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7692 * tree-vectorizer.c (vectorize_loops): Update virtual and
7693 loop-closed SSA once.
7694 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7695
076b4605
RB
76962013-03-18 Richard Biener <rguenther@suse.de>
7697
7698 PR middle-end/56113
7699 * domwalk.c (bb_postorder): New global static.
7700 (cmp_bb_postorder): New function.
7701 (walk_dominator_tree): Replace scheme imposing an order for
7702 visiting dominator sons by one sorting them at the time they
7703 are pushed on the stack.
7704
bdb01696
RB
77052013-03-18 Richard Biener <rguenther@suse.de>
7706
7707 PR tree-optimization/39326
7708 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7709 (struct mem_ref): Replace mem member with ao_ref typed member.
7710 (MEM_ANALYZABLE): Adjust.
7711 (memref_eq): Likewise.
7712 (mem_ref_alloc): Likewise.
7713 (gather_mem_refs_stmt): Likewise.
7714 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7715 (execute_sm_if_changed_flag_set): Adjust.
7716 (execute_sm): Likewise.
7717 (ref_always_accessed_p): Likewise.
7718 (refs_independent_p): Likewise.
7719 (can_sm_ref_p): Likewise.
7720
12d2dc5e
JJ
77212013-03-18 Jakub Jelinek <jakub@redhat.com>
7722
7723 PR c/56566
7724 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7725 return 1 even for !unsignedp.
7726
286fb677
UB
77272013-03-17 Uros Bizjak <ubizjak@gmail.com>
7728
7729 * config/i386/i386.md (isa): Add x64 and nox64.
7730 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7731 (*pushtf): Enable *roF alternative for x64 isa only.
7732 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7733 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7734 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7735 (*movtf_internal): Merge from *movtf_internal_rex64 and
7736 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7737 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7738 nox64 isa attributes.
7739 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7740 nox64 isa attributes.
7741 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7742
88b97037
UB
77432013-03-17 Uros Bizjak <ubizjak@gmail.com>
7744
7745 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7746
9f4f1735
JJ
77472013-03-17 Jakub Jelinek <jakub@redhat.com>
7748
7749 PR target/56640
7750 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7751 class names. Remove trailing comma after "ALL_REGS".
7752
48f4a6fa
JH
77532013-03-16 Jan Hubicka <jh@suse.cz>
7754
7755 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7756 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7757 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7758 of cgraph_get_create_node.
7759 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7760
98e81123
JM
77612013-03-16 Jason Merrill <jason@redhat.com>
7762
7763 PR debug/49090
7764 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7765 with DW_AT_default_value.
7766
8a298c04
JJ
77672013-03-16 Jakub Jelinek <jakub@redhat.com>
7768
7769 * BASE-VER: Set to 4.9.0.
7770
4323afa0
AK
77712013-03-14 Andi Kleen <ak@linux.intel.com>
7772
7773 PR target/56619
7774 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7775 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7776 Document _x* TSX intrinsics.
7777
b3c0d469
JJ
77782013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7779 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
7780
7781 * configure.ac: Add MicroBlaze TLS support detection.
7782 * configure: Regenerate.
88b97037
UB
7783 * config/microblaze/microblaze-protos.h
7784 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7785 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7786 * config/microblaze/microblaze.c (microblaze_address_type): Add
7787 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
7788 (microblaze_address_info): Add tls_reloc.
7789 (TARGET_HAVE_TLS): Define.
7790 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7791 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
7792 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7793 load_tls_operand, microblaze_call_tls_get_addr,
7794 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7795 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7796 (get_base_reg): Use microblaze_tls_symbol_p.
7797 (microblaze_classify_address): Handle TLS.
88b97037
UB
7798 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7799 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7800 (microblaze_legitimize_address): Handle TLS.
7801 (microblaze_address_insns): Handle ADDRESS_TLS.
7802 (pic_address_needs_scratch): Handle TLS.
7803 (print_operand_address): Handle TLS.
7804 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7805 (microblaze_expand_move): Handle TLS.
88b97037
UB
7806 (microblaze_legitimate_constant_p): Check
7807 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7808 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7809 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7810 (PIC_OFFSET_TABLE_REGNUM): Set.
7811 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7812 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7813 (addsi3, movsi_internal2, movdf_internal): Update constraints
7814 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7815 (move_operand): Redefine as move_src_operand,
7816 check microblaze_tls_referenced_p.
8cc9a5a5 7817
d803a491
IB
78182013-03-14 Ian Bolton <ian.bolton@arm.com>
7819
7820 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7821 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7822
a8504f22
IB
78232013-03-14 Ian Bolton <ian.bolton@arm.com>
7824
7825 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7826 CC mode for AND.
7827
df2dfaea
JJ
78282013-03-14 Jakub Jelinek <jakub@redhat.com>
7829
fbd28bc3
JJ
7830 PR tree-optimization/53265
7831 * common.opt (Waggressive-loop-optimizations): New option.
7832 * tree-ssa-loop-niter.c: Include tree-pass.h.
7833 (do_warn_aggressive_loop_optimizations): New function.
7834 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7835 if number_of_latch_executions returned constant.
7836 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7837 early. If number_of_latch_executions returned constant, set
7838 nb_iterations_upper_bound back to it.
7839 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7840 field.
7841 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7842 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7843
df2dfaea
JJ
7844 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7845 (MULTILIB_OSDIRNAMES): Set.
7846 * genmultilib: If defaultosdirname doesn't start with :: , set
7847 defaultosdirname2 instead, clear it and emit two . multilib_raw
7848 entries instead of just one.
7849
ee0d2b68
KK
78502013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7851
7852 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7853 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7854 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7855 (SUBTARGET_OVERRIDE_OPTIONS): New.
7856
decc676e
OE
78572013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7858
7859 PR target/49880
7860 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7861 (musermode): Convert to Var(TARGET_USERMODE).
7862 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7863 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7864 * config/sh/sh.c (sh_option_override): Use
7865 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7866 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7867 condition.
7868 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7869 TARGET_SH4.
7870 (udivsi3_i4_single, divsi3_i4_single): Use
7871 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7872
f4b719c7
DK
78732013-03-13 Dave Korn <dave.korn.cygwin@....>
7874
7875 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7876 default setting.
7877
c40eced0
RB
78782013-03-13 Richard Biener <rguenther@suse.de>
7879
7880 PR tree-optimization/56608
7881 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7882 calls when vectorizing basic-blocks.
7883
1bfa5973
JJ
78842013-03-13 Jakub Jelinek <jakub@redhat.com>
7885
7886 PR plugins/45078
7887 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7888 tm_file.
7889
6fcf5434
JJ
78902013-03-12 Jakub Jelinek <jakub@redhat.com>
7891
7892 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7893
4f38fa8c
JH
78942013-03-11 Jan Hubicka <jh@suse.cz>
7895
7896 PR lto/56557
7897 * lto-streamer-out.c (output_symbol_p): Skip references from
7898 constructors of external variables.
7899
c5c5ba89
JH
79002013-03-11 Jan Hubicka <jh@suse.cz>
7901
7902 PR middle-end/56571
7903 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7904 from pseudos.
7905 * emit-rtl.c (verify_rtx_sharing): Likewise.
7906 (copy_insn_1): Likewise.
7907 * rtl.c (copy_rtx): Likewise.
7908
c2a939b1
GJL
79092013-03-11 Georg-Johann Lay <avr@gjlay.de>
7910
7911 PR target/56591
7912 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7913 output_operand_lossage message.
88b97037 7914
3c3279fb
RE
79152013-03-11 Richard Earnshaw <rearnsha@arm.com>
7916
7917 PR target/56470
7918 * arm.c (shift_op): Validate RTL pattern on the fly.
7919 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7920 the RTL.
7921
aef5ef9d
JDA
79222013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7923
7924 PR target/56347
7925 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7926 new call patterns that clobber %fr12.
7927 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7928 split and postreload patterns.
7929 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7930 registers %fr12 and %fr12R as call used.
7931
456610d3
SB
79322013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7933
7934 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7935 (canon_address, record_store, replace_read, check_mem_read_rtx,
7936 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7937 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7938 rest_of_handle_dse): Likewise.
7939
4b1baac8
RS
79402013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7941
7942 PR middle-end/56524
7943 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7944 Add base_optabs.
7945 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7946 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7947 (save_optabs_if_changed): Replace with...
7948 (init_tree_optimization_optabs): ...this.
7949 * optabs.c (save_optabs_if_changed): Rename to...
7950 (init_tree_optimization_optabs): ...this. Take the optimization node
7951 as argument. Do nothing if the base optabs are already correct.
7952 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7953 to recompute optabs.
7954 * function.h (function): Remove optabs field.
7955 * function.c (invoke_set_current_function_hook): Call
7956 init_tree_optimization_optabs. Use the result to initialize
7957 this_fn_optabs.
7958
b7a78683
AH
79592013-02-27 Aldy Hernandez <aldyh@redhat.com>
7960
7961 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7962 if GTMA_HAS_NO_INSTRUMENTATION.
7963 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7964 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7965 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7966 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7967 GTMA_HAS_NO_INSTRUMENTATION.
7968
6384c29b
JJ
79692013-03-08 Jakub Jelinek <jakub@redhat.com>
7970
7971 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7972 libasan_preinit.o.
7973
ecd4f20a
MP
79742013-03-08 Marek Polacek <polacek@redhat.com>
7975 Jakub Jelinek <jakub@redhat.com>
7976
7977 PR tree-optimization/56478
7978 * predict.c (is_comparison_with_loop_invariant_p): Change the
7979 type of loop_step to tree.
7980 (predict_loops): Adjust.
7981 (predict_iv_comparison): Perform the computations on double_ints.
7982
64366d35
RB
79832013-03-08 Richard Biener <rguenther@suse.de>
7984
7985 PR tree-optimization/56570
7986 * tree-cfg.c (verify_expr_location_1): Verify locations for
7987 DECL_DEBUG_EXPR.
7988 * tree-sra.c (create_access_replacement): Strip locations
7989 from DECL_DEBUG_EXPRs.
7990
a9d5a059
RB
79912013-03-08 Richard Biener <rguenther@suse.de>
7992
7993 * tree-inline.c (expand_call_inline): Do not associate
7994 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7995 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7996
b7aa4e9a
RB
79972013-03-08 Richard Biener <rguenther@suse.de>
7998
7999 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8000 or block changes with -Og. Fix for location / block encoding
8001 changes and PHI arguments with locations.
8002
c4c2f9fa
SB
80032013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8004
8005 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8006 for all counters.
8007 (struct output_info): Likewise.
8008 (register_overhead): Remove bad gcc_assert.
8009 (bitmap_find_bit): If there is only a single bitmap element, do not
8010 count a miss as a search.
8011 (print_statistics): Update for counter type changes.
8012 (dump_bitmap_statistics): Likewise. Print headers such that they
8013 are properly lined up with the printed counters.
8014
5bf6606a
JJ
80152013-03-07 Jakub Jelinek <jakub@redhat.com>
8016
8017 PR tree-optimization/56559
8018 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8019 check that it has only a single use.
8020
2c653d46
RB
80212013-03-07 Richard Biener <rguenther@suse.de>
8022
8023 * doc/invoke.texi (fwhole-program): Discourage use in combination
8024 with -flto.
8025
a72d8780
JJ
80262013-03-06 Jakub Jelinek <jakub@redhat.com>
8027
01a454df
JJ
8028 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8029
c1781047
JJ
8030 PR tree-optimization/56539
8031 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8032 instead of GSI_CONTINUE_LINKING as last argument to
8033 force_gimple_operand_gsi. Adjust function comment.
8034
9772c47a
JJ
8035 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8036 aarch64-cores.def.
8037
a72d8780
JJ
8038 PR middle-end/56548
8039 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8040 promoted mode, convert the result back to the original mode.
8041
fa5556de
RB
80422013-03-06 Richard Biener <rguenther@suse.de>
8043
8044 PR middle-end/56294
8045 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8046 (insert_updated_phi_nodes_compare_uids): New function.
8047 (update_ssa): Sort symbols_to_rename after UID before
8048 traversing it to insert PHI nodes.
8049
010403d1
RB
80502013-03-06 Richard Biener <rguenther@suse.de>
8051
8052 PR middle-end/50494
8053 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8054 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8055
8056 Revert
8057 2013-02-13 Richard Biener <rguenther@suse.de>
8058
8059 PR lto/50494
8060 * varasm.c (output_constant_def_1): Get the decl representing
8061 the constant as argument.
8062 (output_constant_def): Wrap output_constant_def_1.
8063 (make_decl_rtl): Use output_constant_def_1 with the decl
8064 representing the constant.
8065 (build_constant_desc): Optionally re-use a decl already
8066 representing the constant.
8067 (tree_output_constant_def): Adjust.
8068
3c27ce4c
JY
80692013-03-06 Joey Ye <joey.ye@arm.com>
8070
8071 PR lto/50293
8072 * gcc.c (convert_white_space): New function.
8073 (main): Handles white space in function name.
8074
8f6d1c86
OE
80752013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8076
8077 PR target/56529
8078 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8079 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8080 to SH_DIV_CALL_TABLE for TARGET_SH2.
8081 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8082 list.
8083 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8084 call-table options.
8085
798a209f
SA
80862013-03-05 Sterling Augustine <saugustine@google.com>
8087 Cary Coutant <ccoutant@google.com>
8088
8089 PR debug/55364
8090 * dwarf2out.c (resolve_addr): Don't call
8091 remove_loc_list_addr_table_entries a second time for the same
8092 expression.
8093
6cfa417f 80942013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 8095
6cfa417f
JJ
8096 PR debug/56510
8097 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8098 (avoid_complex_debug_insns): New function.
8099 (expand_debug_locations): Call it.
8100
8101 PR rtl-optimization/56484
8102 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8103 lifetimes of hard registers on small register class machines.
8104
81052013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8106
8107 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 8108 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 8109 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
8110 fast_interrupt.
8111 (microblaze_fast_interrupt_function_p): New function.
8112 (microblaze_is_interrupt_handler): Rename to
8113 microblaze_is_interrupt_variant and add fast_interrupt check.
8114 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8115 (save_restore_insns): Likewise.
8116 (compute_frame_size): Likewise.
8117 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8118 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
8119 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8120 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
8121 microblaze_is_interrupt_variant.
8122
731aefac
KT
81232013-03-05 Kai Tietz <ktietz@redhat.com>
8124
8125 * sdbout.c (sdbout_one_type): Switch to current function's section
8126 supporting cold/hot.
8127
a72d8780 81282013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
8129
8130 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8131 -mxl-reorder.
8132
334e71e8
JJ
81332013-03-05 Jakub Jelinek <jakub@redhat.com>
8134
0b50e654
JJ
8135 PR middle-end/56461
8136 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8137 if VALGRIND_GET_VBITS is defined, temporarily make object
8138 memory all defined, and restore previous valgrind addressability
8139 and definability afterwards. Free this_object at the end.
8140
4ccf8f43
JJ
8141 PR middle-end/56461
8142 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8143 right before calling lra_create_live_ranges, also call it
8144 when clearing live_p. Only call lra_clear_live_ranges
8145 at the end if live_p.
8146
334e71e8
JJ
8147 PR middle-end/56461
8148 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8149
9ca966ca
RB
81502013-03-05 Richard Biener <rguenther@suse.de>
8151
8152 PR tree-optimization/56521
8153 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8154 value-id.
8155
d273b176
SB
81562013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8157
8158 PR c++/55135
8159 * except.h (remove_unreachable_eh_regions): New prototype.
8160 * except.c (remove_eh_handler_splicer): New function, split out
8161 of remove_eh_handler.
8162 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8163 warning about running it on many EH regions one at a time.
8164 (remove_unreachable_eh_regions_worker): New function, walk the
8165 EH tree in depth-first order and remove non-marked regions.
8166 (remove_unreachable_eh_regions): New function.
8167 * tree-eh.c (mark_reachable_handlers): New function, split out
8168 from remove_unreachable_handlers.
8169 (remove_unreachable_handlers): Use mark_reachable_handlers and
8170 remove_unreachable_eh_regions.
8171 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8172 and remove_unreachable_eh_regions.
8173
5e7f1aef
RB
81742013-03-05 Richard Biener <rguenther@suse.de>
8175
8176 PR middle-end/56525
8177 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8178 not freeing them until the end.
8179
f276b762
AK
81802013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8181
8182 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8183
12a43ab8
RB
81842013-03-05 Richard Biener <rguenther@suse.de>
8185
8186 PR tree-optimization/56270
8187 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8188 of loads after scheduling an SLP instance.
8189
93675444
JJ
81902013-03-05 Jakub Jelinek <jakub@redhat.com>
8191
db4138e3
JJ
8192 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8193 tic6x.exp.
8194 (check_gcc_parallelize): Run guality.exp as a separate job from
8195 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8196 struct-layout-1.exp with stackalign.exp.
8197
dd3d1ec0
JJ
8198 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8199
b8d381a3
JJ
8200 PR middle-end/56461
8201 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8202 load_index sbitmap even if some bit in it isn't set.
8203
b4f9786b
JJ
8204 PR middle-end/56461
8205 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8206 (discover_iteration_bound_by_body_walk): Change queues to
8207 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8208 spelling in comment. Call safe_push on queues[bound_index] directly.
8209 Release queues[queue_index] in every iteration unconditionally.
8210 Release bounds vector.
8211
93675444
JJ
8212 PR middle-end/56461
8213 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8214 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8215 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8216 inner_phis vector.
8217
3e492e9c
RB
82182013-03-05 Richard Biener <rguenther@suse.de>
8219
8220 PR lto/56515
8221 * tree-inline.c (remap_blocks_to_null): New function.
8222 (expand_call_inline): When expanding a call stmt without
8223 an associated block inline remap all callee blocks to NULL.
8224
a5d1569a
JJ
82252013-03-05 Jakub Jelinek <jakub@redhat.com>
8226
86efb5cd
JJ
8227 PR rtl-optimization/56494
8228 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8229 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8230 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8231
85f5dbea
JJ
8232 PR middle-end/56461
8233 * sel-sched-ir.c (free_sched_pools): Release
8234 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8235 if succs_info_pool.max_top isn't -1.
8236
a5d1569a
JJ
8237 PR bootstrap/56509
8238 * opts.c (opts_obstack, opts_concat): Moved to...
8239 * opts-common.c (opts_obstack, opts_concat): ... here.
8240
4432aa6c
JJ
82412013-03-04 Jakub Jelinek <jakub@redhat.com>
8242
8243 PR middle-end/56461
8244 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8245
f3a1fb91
MJ
82462013-03-04 Martin Jambor <mjambor@suse.cz>
8247
8248 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8249 all appropriate places.
8250
22110e6c
EB
82512013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8252
8253 PR tree-optimization/56424
8254 * ipa-split.c (split_function): Do not set the RSO flag if result is
8255 not by reference and its type is a register type.
8256
a72d8780 82572013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 8258
88b97037 8259 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 8260 (microblaze_legitimate_pic_operand): Likewise
88b97037 8261 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
8262 new function microblaze_legitimate_pic_operand
8263 * config/microblaze/microblaze-protos.h
8264 (microblaze_legitimate_pic_operand): Declare.
8265
a72d8780 82662013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 8267
a72d8780 8268 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 8269 New predicate for supported rtx code types.
a72d8780 8270 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
8271 call_insn_simple_operand predicate.
8272
541d9ac8
JJ
82732013-03-04 Jakub Jelinek <jakub@redhat.com>
8274
5eb010bc
JJ
8275 PR middle-end/56461
8276 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8277 partitions.ordered_remove.
8278
30862efc
JJ
8279 PR middle-end/56461
8280 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8281 vec_oprnds0.create (1) for modifier == NONE.
8282
8930f723
JJ
8283 PR middle-end/56461
8284 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8285 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8286 vec_oprnds1 right before pushing anything to it for
8287 scalar_shift_arg.
8288
541d9ac8
JJ
8289 PR middle-end/56461
8290 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8291 set nbbs to 0 instead of having separate code path.
8292 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8293 instead of false as last argument if returning NULL.
8294
7aa7f2e3
SL
82952013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8296
8297 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8298 the attribute is now called "target" instead of "option".
8299 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8300 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8301 attribute/pragma name for TARGET_OPTION_VALID_P and
8302 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8303 * doc/tm.texi: Regenerated.
8304
8930f723 83052013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 8306
8930f723 8307 * config/microblaze/microblaze.c:
cb8a1637 8308 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
8309 * config/microblaze/microblaze.h: Add -mxl-reorder to
8310 DRIVER_SELF_SPECS.
8311 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8312 instructions emitted if TARGET_REORDER.
88b97037
UB
8313 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8314 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 8315 separately.
cb8a1637 8316
4dc1d68c
XDL
83172013-03-01 Xinliang David Li <davidxl@google.com>
8318
8319 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8320 walk length.
8321
689eaba3
JJ
83222013-03-01 Jakub Jelinek <jakub@redhat.com>
8323
9d676bf6
JJ
8324 PR middle-end/56461
8325 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8326 vector even when returning true. Fix up function comment formatting.
8327
caff7edf
JJ
8328 PR middle-end/56461
8329 * ira-build.c (ira_loop_nodes_count): New variable.
8330 (create_loop_tree_nodes): Initialize it.
8331 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8332
b6b9227d
JJ
8333 PR middle-end/56461
8334 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8335 method on dr_chain and result_chain.
8336 * tree-vect-stmts.c (vectorizable_store): Only call
8337 result_chain.create if j == 0.
8338
689eaba3
JJ
8339 PR middle-end/56461
8340 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8341 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8342 before overwriting it.
8343
40bf31ed
TB
83442013-03-01 Tobias Burnus <burnus@net-b.de>
8345
8346 * doc/extended.texi (C Extensions): Change order in @menu
8347 to match @node.
8348 (Other MIPS Built-in Functions): Move last MIPS entry before
8349 "picoChip Built-in Functions".
8350 (SH Built-in Functions): Move after RX Built-in Functions.
8351 * doc/gcc.texi (Introduction): Change order in @menu
8352 to match @node.
8353 * doc/md.texi (Constraints): Ditto.
8354 * gty.texi (Type Information): Ditto.
8355 (User-provided marking routines for template types): Make
8356 subsection.
8357 * doc/invoke.texi (AArch64 Options): Move before
8358 "Adapteva Epiphany Options".
8359
e664c61c
KS
83602013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8361 Jakub Jelinek <jakub@redhat.com>
8362
8363 PR sanitizer/56454
8364 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8365 no_address_safety_analysis attribute.
8366 * doc/extend.texi (no_address_safety_attribute): Rename to
8367 no_sanitize_address attribute, mention no_address_safety_analysis
8368 attribute as deprecated alias.
8369
37b5ec8f
JJ
83702013-02-28 Jakub Jelinek <jakub@redhat.com>
8371
8372 PR middle-end/56461
8373 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8374 type to vec<vec<tree> > *.
8375 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8376 to be vec<tree> instead of vec<tree> *, set vec_defs
8377 to vNULL and call vec_defs.create (number_of_vects), adjust other
8378 uses of vec_defs.
8379 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8380 vectorizable_condition): Adjust vect_get_slp_defs callers.
8381
ba96cdfb
JG
83822013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8383
8384 * config/aarch64/aarch64.c
8385 (aarch64_float_const_representable): Remove unused variable.
8386
6f549691
JG
83872013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8388
8389 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8390
af55e82d
JG
83912013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8392
8393 * config/aarch64/aarch64-builtins.c
8394 (aarch64_init_simd_builtins): Make static.
8395
1df3f464
JG
83962013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8397
8398 * config/aarch64/aarch64.c
8399 (aarch64_simd_make_constant): Make static.
8400
f8f42513
MJ
84012013-02-28 Martin Jambor <mjambor@suse.cz>
8402
8403 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8404 with no initialization to the RHS of debug statements.
8405
b48b3fc4
MJ
84062013-02-28 Martin Jambor <mjambor@suse.cz>
8407
8408 PR tree-optimization/56294
8409 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8410 Adjust dumping.
8411 (get_access_replacement): Do not call create_access_replacement.
8412 Assert a replacement exists.
8413 (get_repl_default_def_ssa_name): Create the replacement declaration
8414 itself.
8415
c3ae224c
RR
84162013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8417
8418 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8419 final_end_function.
8420
45fa0eef
MP
84212013-02-28 Marek Polacek <polacek@redhat.com>
8422
8423 PR rtl-optimization/56466
8424 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8425 if we're changing a loop.
8426 (peel_loops_completely): Likewise.
8427
502c067d
PC
84282013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8429
8430 PR c++/55813
8431 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8432
ff24afc8
GJL
84332013-02-28 Georg-Johann Lay <avr@gjlay.de>
8434
8435 PR target/56445
8436 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8437 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8438 INTX_FTYPE_FX, FX_FTYPE_INTX.
8439 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8440
c7b1fc1b
GJL
84412013-02-28 Georg-Johann Lay <avr@gjlay.de>
8442
8443 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8444 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8445 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8446 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8447 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8448 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8449 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8450 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8451 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8452 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8453 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8454 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8455 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8456 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8457 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8458 (avrxmega6): Increase max flash segments from 5 to 6.
8459 * config/avr/t-multilib: Regenerate.
8460 * config/avr/avr-tables.opt: Regenerate.
8461 * doc/avr-mmcu.texi: Regenerate.
8462
4a0e3cfe
GJL
84632013-02-28 Georg-Johann Lay <avr@gjlay.de>
8464
8465 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8466 (avr_device_to_arch): Rename to avr_device_to_ld.
8467 (avr_device_to_as): New prototype.
8468 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8469 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8470 * config/avr/driver-avr.c (avr_device_to_as): New.
8471 (avr_device_to_arch): Rename to avr_device_to_ld.
8472
97785e52
JJ
84732013-02-27 Jakub Jelinek <jakub@redhat.com>
8474
3f292312
JJ
8475 PR middle-end/56461
8476 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8477 method on dr_chain and result_chain.
8478
a344216b
JJ
8479 PR middle-end/56461
8480 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8481 pointer_set_destroy on not_executed_last_iteration.
8482
f121ad02 8483 PR middle-end/56461
88b97037 8484 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 8485
307f83a3
JJ
8486 PR middle-end/56461
8487 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8488 FOR_EACH_DEFINED_FUNCTION when freeing state.
8489
e19624ee
JJ
8490 PR middle-end/56461
8491 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8492 pool_free.
8493 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8494 overwriting it.
8495
90e709fd
JJ
8496 PR middle-end/56461
8497 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8498 known_aggs[i].items and release known_aggs vector.
8499
97785e52
JJ
8500 PR middle-end/56461
8501 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8502
85032013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 8504
97785e52
JJ
8505 * config/microblaze/microblaze.c (microblaze_emit_compare):
8506 Use xor for EQ/NE comparisions.
8507 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8508 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 8509
6fa5e0ed
JJ
85102013-02-27 Jakub Jelinek <jakub@redhat.com>
8511
8512 PR middle-end/56461
8513 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8514 vector.
8515 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8516 vec_safe_push, always update *slot.
8517 (redirect_edge_var_map_clear): Use vec_free.
8518 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8519 (free_var_map_entry): Use vec_free.
8520 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8521 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8522
436a956a
AB
85232013-02-27 Andrey Belevantsev <abel@ispras.ru>
8524
8525 PR middle-end/45472
436a956a
AB
8526 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8527 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
8528 Reorder tests for speculativeness in the logical and operator.
8529
f5c2caca
JJ
85302013-02-27 Jakub Jelinek <jakub@redhat.com>
8531
0fcb564b
JJ
8532 * incpath.c (add_standard_paths): Use reconcat instead of concat
8533 where appropriate and avoid leaking memory.
8534
dc357798
JJ
8535 * opts.h: Include obstack.h.
8536 (opts_concat): New prototype.
8537 (opts_obstack): New declaration.
8538 * opts.c (opts_concat): New function.
8539 (opts_obstack): New variable.
8540 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8541 (finish_options): Use opts_concat instead of concat
8542 and XOBNEWVEC instead of XNEWVEC.
8543 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8544 generate_option): Likewise.
8545 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8546 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8547
f5c2caca
JJ
8548 PR target/56455
8549 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8550 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8551
d0163673
JJ
85522013-02-26 Jakub Jelinek <jakub@redhat.com>
8553
8554 PR middle-end/56461
8555 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8556
b5ad2b8e
JR
85572013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8558
8559 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8560 (arm_block_move_unaligned_straight): Likewise.
8561 (arm_adjust_block_mem): Likewise.
8562
9b639e2c
JR
85632013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8564
8565 PR target/48901
8566 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8567 temp, cond and label.
8568 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8569
e13a0ccb
JR
8570 PR target/52500
8571 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8572 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8573
fbe4f171
JR
8574 PR target/52501
8575 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8576 of prologue/epilogue functions.
8577
ae006543
JR
8578 PR target/52550
8579 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8580 Remove unused variable cfa_offset.
8581 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8582
c81369fa
JR
8583 PR target/54639
8584 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8585 type promotion to unsigned.
8586
f8a8fea7
JR
8587 PR target/54640
8588 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8589 for HOST_WIDE_INT of 32 bit / same size as int.
8590 (arm_block_move_unaligned_straight): Likewise.
8591 (arm_adjust_block_mem): Likewise.
8592
f8be5169
JR
8593 PR target/54662
8594 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8595 ALL_CFLAGS.
8596
f1ad3354
MP
85972013-02-26 Marek Polacek <polacek@redhat.com>
8598
8599 PR tree-optimization/56426
88b97037 8600 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 8601
a6af0f42
RB
86022013-02-26 Richard Biener <rguenther@suse.de>
8603
8604 PR target/56444
8605 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8606 unused variable loops.
8607
aca43c6c
JJ
86082013-02-26 Jakub Jelinek <jakub@redhat.com>
8609
cecbe5d9
JJ
8610 PR tree-optimization/56448
8611 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8612 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8613 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8614 later operands of the references, or even first operand for
8615 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8616
aca43c6c
JJ
8617 PR tree-optimization/56443
8618 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8619 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8620 to type_for_mode langhook.
8621
53e2e141
MT
86222013-02-25 Matt Turner <mattst88@gmail.com>
8623
8624 * doc/invoke.texi: Document r4700.
8625
259ee451
RB
86262013-02-25 Richard Biener <rguenther@suse.de>
8627
8628 PR tree-optimization/56175
8629 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8630 split out from ...
8631 (simplify_bitwise_binary): ... here. Also guard the conversion
8632 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8633
6d65e8f1
CM
86342013-02-25 Catherine Moore <clm@codesourcery.com>
8635
8636 Revert:
8637 2013-02-24 Catherine Moore <clm@codesourcery.com>
8638 Maciej W. Rozycki <macro@codesourcery.com>
8639 Tom de Vries <tom@codesourcery.com>
a72d8780 8640 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
8641 Iain Sandoe <iain@codesourcery.com>
8642 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8643 Chao-ying Fu <fu@mips.com>
88b97037 8644
6d65e8f1 8645 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8646 Document new function attributes.
6d65e8f1
CM
8647 * doc/invoke.texi (minterlink-compressed, mmicromips,
8648 m14k, m14ke, m14kec): Document new options.
8649 (minterlink-mips16): Update documentation.
8650 * doc/md.texi (ZC, ZD): Document new constraints.
8651 * configure.ac (gcc_cv_as_micromips): Check if linker
8652 supports the .set micromips directive.
8653 * configure: Regenerate.
8654 * config.in: Regenerate.
8655 * config/mips/mips-tables.opt: Regenerate.
8656 * config/mips/micromips.md: New file.
8657 * constraints.md (ZC, AD): New constraints.
8658 * config/mips/predicates.md (movep_src_register): New predicate.
8659 (movep_src_operand): New predicate.
8660 (non_volatile_mem_operand): New predicate.
8661 * config/mips/mips.md (multimem): New type.
8662 (length): Differentiate between 17-bit and 18-bit branch offsets.
8663 (MOVEP1, MOVEP2): New mode iterator.
8664 (mov_<load>l): Use ZC constraint.
8665 (mov_<load>r): Likewise.
8666 (mov_<store>l): Likewise.
8667 (mov_<store>r): Likewise.
8668 (*branch_equality<mode>_inverted): Add microMIPS support.
8669 (*branch_equality<mode>): Likewise.
8670 (*jump_absolute): Likewise.
8671 (indirect_jump_<mode>): Likewise.
8672 (tablejump_<mode>): Likewise.
8673 (<optab>_internal): Likewise.
8674 (sibcall_internal): Likewise.
8675 (sibcall_value_internal): Likewise.
8676 (prefetch): Use constraint ZD.
8677 * config/mips/mips.opt (minterlink-compressed): New option.
8678 (minterlink-mips16): Now an alias for minterlink-compressed.
8679 (mmicromips): New option.
8680 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8681 (compare_and_swap_12): Likewise.
8682 (sync_add<mode>): Likewise.
8683 (sync_<optab>_12): Likewise.
8684 (sync_old_<optab>_12): Likewise.
8685 (sync_new_<optab>_12): Likewise.
8686 (sync_nand_12): Likewise.
8687 (sync_old_nand_12): Likewise.
8688 (sync_new_nand_12): Likewise.
8689 (sync_sub<mode>): Likewise.
8690 (sync_old_add<mode>): Likewise.
8691 (sync_old_sub<mode>): Likewise.
8692 (sync_new_add<mode>): Likewise.
8693 (sync_new_sub<mode>): Likewise.
8694 (sync_<optab><mode>): Likewise.
8695 (sync_old_<optab><mode>): Likewise.
8696 (sync_new_<optab><mode>): Likewise.
8697 (sync_nand<mode>): Likewise.
8698 (sync_old_nand<mode>): Likewise.
8699 (sync_new_nand<mode>): Likewise.
8700 (sync_lock_test_and_set<mode>): Likewise.
8701 (test_and_set_12): Likewise.
8702 (atomic_compare_and_swap<mode>): Likewise.
8703 (atomic_exchange<mode>_llsc): Likewise.
8704 (atomic_fetch_add<mode>_llsc): Likewise.
8705 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8706 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8707 (umips_save_restore_pattern_p): Likewise.
8708 (umips_load_store_pair_p): Likewise.
8709 (umips_output_load_store_pair): Likewise.
8710 (umips_movep_target_p): Likewise.
8711 (umips_12bit_offset_address_p): Likewise.
8712 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8713 (mips_base_mips16): Rename this...
8714 (mips_base_compression_flags): ...to this. Update all uses.
8715 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8716 (mips_mips16_decl_p): Delete.
8717 (mips_nomips16_decl_p): Delete.
8718 (mips_get_compress_on_flags): New function.
8719 (mips_get_compress_off_flags): New function.
8720 (mips_get_compress_mode): New function.
8721 (mips_get_compress_on_name): New function.
8722 (mips_get_compress_off_name): New function.
8723 (mips_insert_attributes): Support multiple compression types.
8724 (mips_merge_decl_attributes): Likewise.
8725 (umips_12bit_offset_address_p): New function.
8726 (mips_start_function_definition): Emit .set micromips directive.
8727 (mips_call_may_need_jalx_p): New function.
8728 (mips_function_ok_for_sibcall): Add microMIPS support.
8729 (mips_print_operand_punctuation): Support short delay slots and
8730 compact jumps.
8731 (umips_swm_mask, umips_swm_encoding): New.
8732 (umips_build_save_restore): New function.
8733 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8734 (was_mips16_p): Remove.
8735 (old_compression_mode): New.
8736 (mips_set_compression_mode): New function.
8737 (mips_set_current_function): Add microMIPS support.
8738 (mips_option_override): Likewise.
8739 (umips_save_restore_pattern_p): New function.
8740 (umips_output_save_restore): New function.
8741 (umips_load_store_pair_p_1): New function.
8742 (umips_load_store_pair_p): New function.
8743 (umips_output_load_store_pair_1): New function.
8744 (umips_output_load_store_pair): New function.
8745 (umips_movep_target_p) New function.
8746 (mips_prepare_pch_save): Add microMIPS support.
8747 * config/mips/mips.h (TARGET_COMPRESSION): New.
8748 (TARGET_CPU_CPP_BUILTINS): Update macro
8749 to use new compression flags and to support microMIPS.
8750 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8751 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8752 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8753 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8754 (ASM_SPEC): Support mmicromips and mno-micromips.
8755 (M16STORE_REG_P): New macro.
8756 (MIPS_CALL): Support TARGET_MICROMIPS.
8757 (MICROMIPS_J): New macro.
8758 (mips_base_mips16): Rename this...
8759 (mips_base_compression_flags): ...to this.
8760 (UMIPS_12BIT_OFFSET_P): New macro.
8761 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8762 (MULTILIB_DIRNAMES): Likewise.
8763
5e5df392
TV
87642013-02-25 Tom de Vries <tom@codesourcery.com>
8765
8766 PR rtl-optimization/56131
8767 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8768 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8769 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8770
3fdb53c1
TB
87712013-02-25 Tobias Burnus <burnus@net-b.de>
8772
8773 * doc/invoke.texi (-fsanitize=): Move from optimization
8774 to debugging options.
8775
ed358aea
AB
87762013-02-25 Andrey Belevantsev <abel@ispras.ru>
8777
8778 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8779
f45e9053
AB
87802013-02-25 Andrey Belevantsev <abel@ispras.ru>
8781 Alexander Monakov <amonakov@ispras.ru>
8782
8783 PR middle-end/56077
8784 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8785 flush pending lists also on non-jumps. Adjust comment.
8786
6941b508
CM
87872013-02-24 Catherine Moore <clm@codesourcery.com>
8788 Maciej W. Rozycki <macro@codesourcery.com>
8789 Tom de Vries <tom@codesourcery.com>
a72d8780 8790 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
8791 Iain Sandoe <iain@codesourcery.com>
8792 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8793 Chao-ying Fu <fu@mips.com>
6941b508
CM
8794
8795 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8796 Document new function attributes.
6941b508
CM
8797 * doc/invoke.texi (minterlink-compressed, mmicromips,
8798 m14k, m14ke, m14kec): Document new options.
8799 (minterlink-mips16): Update documentation.
8800 * doc/md.texi (ZC, ZD): Document new constraints.
8801 * configure.ac (gcc_cv_as_micromips): Check if linker
8802 supports the .set micromips directive.
8803 * configure: Regenerate.
8804 * config.in: Regenerate.
8805 * config/mips/mips-tables.opt: Regenerate.
8806 * config/mips/micromips.md: New file.
8807 * constraints.md (ZC, AD): New constraints.
8808 * config/mips/predicates.md (movep_src_register): New predicate.
8809 (movep_src_operand): New predicate.
8810 (non_volatile_mem_operand): New predicate.
8811 * config/mips/mips.md (multimem): New type.
8812 (length): Differentiate between 17-bit and 18-bit branch offsets.
8813 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8814 (mov_<load>l): Use ZC constraint.
6941b508
CM
8815 (mov_<load>r): Likewise.
8816 (mov_<store>l): Likewise.
8817 (mov_<store>r): Likewise.
8818 (*branch_equality<mode>_inverted): Add microMIPS support.
8819 (*branch_equality<mode>): Likewise.
8820 (*jump_absolute): Likewise.
8821 (indirect_jump_<mode>): Likewise.
8822 (tablejump_<mode>): Likewise.
8823 (<optab>_internal): Likewise.
8824 (sibcall_internal): Likewise.
8825 (sibcall_value_internal): Likewise.
8826 (prefetch): Use constraint ZD.
8827 * config/mips/mips.opt (minterlink-compressed): New option.
8828 (minterlink-mips16): Now an alias for minterlink-compressed.
8829 (mmicromips): New option.
8830 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8831 (compare_and_swap_12): Likewise.
8832 (sync_add<mode>): Likewise.
8833 (sync_<optab>_12): Likewise.
8834 (sync_old_<optab>_12): Likewise.
8835 (sync_new_<optab>_12): Likewise.
8836 (sync_nand_12): Likewise.
8837 (sync_old_nand_12): Likewise.
8838 (sync_new_nand_12): Likewise.
8839 (sync_sub<mode>): Likewise.
8840 (sync_old_add<mode>): Likewise.
8841 (sync_old_sub<mode>): Likewise.
8842 (sync_new_add<mode>): Likewise.
8843 (sync_new_sub<mode>): Likewise.
8844 (sync_<optab><mode>): Likewise.
8845 (sync_old_<optab><mode>): Likewise.
8846 (sync_new_<optab><mode>): Likewise.
8847 (sync_nand<mode>): Likewise.
8848 (sync_old_nand<mode>): Likewise.
8849 (sync_new_nand<mode>): Likewise.
8850 (sync_lock_test_and_set<mode>): Likewise.
8851 (test_and_set_12): Likewise.
8852 (atomic_compare_and_swap<mode>): Likewise.
8853 (atomic_exchange<mode>_llsc): Likewise.
8854 (atomic_fetch_add<mode>_llsc): Likewise.
8855 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8856 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8857 (umips_save_restore_pattern_p): Likewise.
8858 (umips_load_store_pair_p): Likewise.
8859 (umips_output_load_store_pair): Likewise.
8860 (umips_movep_target_p): Likewise.
8861 (umips_12bit_offset_address_p): Likewise.
8862 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8863 (mips_base_mips16): Rename this...
8864 (mips_base_compression_flags): ...to this. Update all uses.
8865 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8866 (mips_mips16_decl_p): Delete.
8867 (mips_nomips16_decl_p): Delete.
3fdb53c1 8868 (mips_get_compress_on_flags): New function.
6941b508
CM
8869 (mips_get_compress_off_flags): New function.
8870 (mips_get_compress_mode): New function.
8871 (mips_get_compress_on_name): New function.
8872 (mips_get_compress_off_name): New function.
8873 (mips_insert_attributes): Support multiple compression types.
8874 (mips_merge_decl_attributes): Likewise.
8875 (umips_12bit_offset_address_p): New function.
8876 (mips_start_function_definition): Emit .set micromips directive.
8877 (mips_call_may_need_jalx_p): New function.
8878 (mips_function_ok_for_sibcall): Add microMIPS support.
8879 (mips_print_operand_punctuation): Support short delay slots and
8880 compact jumps.
8881 (umips_swm_mask, umips_swm_encoding): New.
8882 (umips_build_save_restore): New function.
8883 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8884 (was_mips16_p): Remove.
8885 (old_compression_mode): New.
8886 (mips_set_compression_mode): New function.
8887 (mips_set_current_function): Add microMIPS support.
8888 (mips_option_override): Likewise.
8889 (umips_save_restore_pattern_p): New function.
8890 (umips_output_save_restore): New function.
8891 (umips_load_store_pair_p_1): New function.
8892 (umips_load_store_pair_p): New function.
8893 (umips_output_load_store_pair_1): New function.
8894 (umips_output_load_store_pair): New function.
8895 (umips_movep_target_p) New function.
8896 (mips_prepare_pch_save): Add microMIPS support.
8897 * config/mips/mips.h (TARGET_COMPRESSION): New.
8898 (TARGET_CPU_CPP_BUILTINS): Update macro
8899 to use new compression flags and to support microMIPS.
8900 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8901 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8902 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8903 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8904 (ASM_SPEC): Support mmicromips and mno-micromips.
8905 (M16STORE_REG_P): New macro.
8906 (MIPS_CALL): Support TARGET_MICROMIPS.
8907 (MICROMIPS_J): New macro.
8908 (mips_base_mips16): Rename this...
8909 (mips_base_compression_flags): ...to this.
8910 (UMIPS_12BIT_OFFSET_P): New macro.
8911 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8912 (MULTILIB_DIRNAMES): Likewise.
8913
cdebbc6d
JJ
89142013-02-24 Jakub Jelinek <jakub@redhat.com>
8915
8916 PR target/52555
8917 * target-globals.c (save_target_globals): For init_reg_sets and
8918 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8919
18c63565
JG
89202013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8921
8922 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8923 * config/aarch64/t-aarch64
8924 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8925
2194f7a2
VM
89262013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8927
8928 PR inline-asm/56148
8929 * lra-constraints.c (process_alt_operands): Reload operand
8930 conflicting with earlier clobber only if no more other conflicting
8931 operands.
8932
7d613735
JJ
89332013-02-22 Jakub Jelinek <jakub@redhat.com>
8934
8935 PR sanitizer/56393
8936 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8937 if not linking a shared library.
8938
ac8d93a7
SL
89392013-02-22 Seth LaForge <sethml@google.com>
8940
8941 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8942
e0237780
GY
89432013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8944
3fdb53c1
TB
8945 * config/arm/arm.md (split for extendsidi): Update condition.
8946 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8947 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8948 (qhs_zextenddi_cstr): Likewise.
e0237780 8949
d7fde18c
JJ
89502013-02-21 Jakub Jelinek <jakub@redhat.com>
8951
be63b77d
JJ
8952 PR middle-end/56420
8953 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8954 avoid signed wrapping.
8955 (expand_mult): Handle properly multiplication by
8956 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8957 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8958 in the compiler if coeff is HOST_WIDE_INT_MIN.
8959 (expand_divmod): Don't make ext_op1 static, change it's type to
8960 uhwi. Avoid undefined behavior in -INTVAL (op1).
8961
d7fde18c
JJ
8962 PR rtl-optimization/50339
8963 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8964 field.
8965 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8966 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8967 into splitting_ashiftrt field.
8968 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8969 ASHIFTRT.
8970 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8971 choices.
8972
6aad4455
AH
89732013-02-20 Aldy Hernandez <aldyh@redhat.com>
8974
8975 PR middle-end/56108
8976 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8977 are sure to go irrevocable.
8978
38fe784d
HPN
89792013-02-21 Hans-Peter Nilsson <hp@axis.com>
8980
8981 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8982 scalars are valid operands.
8983
0fd44da3
MJ
89842013-02-21 Martin Jambor <mjambor@suse.cz>
8985
8986 PR tree-optimization/56310
8987 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8988 only matching indices and non-negative final offsets.
8989 (intersect_aggregates_with_edge): Pass src_idx to
8990 agg_replacements_to_vector. Pass src_idx insstead of index to
8991 intersect_with_agg_replacements.
8992
7a92038b
MJ
89932013-02-21 Martin Jambor <mjambor@suse.cz>
8994
8995 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8996 instead of hard-wired defaults.
8997
c0da9c37
MR
89982013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8999
9000 * doc/invoke.texi (MIPS Options): Update documentation of the
9001 floating-point multiply-accumulate instruction restrictions.
9002
d247ea0c 90032013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
9004
9005 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9006 asan_shadow_offset on x86_64 linux.
9007
22deefcb
RB
90082013-02-21 Richard Biener <rguenther@suse.de>
9009
9010 PR tree-optimization/56415
9011 Revert
9012 2013-02-11 Richard Biener <rguenther@suse.de>
9013
9014 PR tree-optimization/56273
9015 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9016 first VRP run.
9017
7bcc6e75
JJ
90182013-02-21 Jakub Jelinek <jakub@redhat.com>
9019
a0ad148f
JJ
9020 PR bootstrap/56258
9021 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9022 instead of @itemx.
9023
7bcc6e75
JJ
9024 PR inline-asm/56405
9025 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9026 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9027
a0a7b611
JH
90282013-02-20 Jan Hubicka <jh@suse.cz>
9029
9030 PR tree-optimization/56265
88b97037
UB
9031 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9032 when target is referenced for first time.
a0a7b611 9033
c0e50f72
RB
90342013-02-20 Richard Biener <rguenther@suse.de>
9035
9036 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9037 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9038 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9039 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9040 not return anything.
9041 (rename_ssa_copies): Do not remove unused locals.
9042 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 9043 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
9044 * passes.c (execute_function_todo): Do not schedule unused locals
9045 removal if cleanup_tree_cfg did something.
9046 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9047 about the number of removed locals.
9048
a52ca739
RB
90492013-02-20 Richard Biener <rguenther@suse.de>
9050
9051 PR tree-optimization/56398
88b97037 9052 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 9053
ec9c9d1b
MJ
90542013-02-20 Martin Jambor <mjambor@suse.cz>
9055
9056 PR tree-optimization/55334
9057 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9058 restricted pointers to arrays.
9059
e91c8ed6 90602013-02-20 Richard Biener <rguenther@suse.de>
88b97037 9061 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
9062
9063 PR tree-optimization/56396
9064 * tree-ssa-ccp.c (n_const_val): New static variable.
9065 (get_value): Return NULL for SSA names we don't have a lattice
9066 entry for.
9067 (ccp_initialize): Initialize n_const_val.
9068 * tree-ssa-copy.c (n_copy_of): New static variable.
9069 (init_copy_prop): Initialize n_copy_of.
9070 (get_value): Return NULL_TREE for SSA names we don't have a
9071 lattice entry for.
9072
3d916479
MJ
90732013-02-20 Martin Jambor <mjambor@suse.cz>
9074
9075 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9076
71a86758
RB
90772013-02-20 Richard Biener <rguenther@suse.de>
9078
9079 * genpreds.c (write_lookup_constraint): Do not compare first
9080 letter of the constraint again.
9081
79836a12
RB
90822013-02-20 Richard Biener <rguenther@suse.de>
9083
9084 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9085 and ceil_log2.
9086 (get_use_iv_cost): Terminate hashtable walk when coming across
9087 an empty entry.
9088
bbe4fb2c
IZ
90892013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9090
9091 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9092 reassociation for avx2 targets.
9093
a72d8780 90942012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 9095
c77f83d5
EI
9096 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9097 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 9098 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
9099 version and TARGET_PATTERN_COMPARE check
9100 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 9101
a72d8780 91022012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 9103
a72d8780 9104 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
9105 function before branching.
9106
242387fa
AB
91072012-02-19 Andrey Belevantsev <abel@ispras.ru>
9108
9109 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9110 DUMP_INSN_RTX_UID.
9111 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9112
b4979ab9
AB
91132012-02-19 Andrey Belevantsev <abel@ispras.ru>
9114
9115 PR middle-end/55889
b4979ab9
AB
9116 * sel-sched.c: Include ira.h.
9117 (implicit_clobber_conflict_p): New function.
9118 (moveup_expr): Use it.
88b97037 9119 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 9120
24d63016
RB
91212013-02-19 Richard Biener <rguenther@suse.de>
9122
9123 PR tree-optimization/56384
9124 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9125 (vn_hash_type): Split out from ...
9126 (vn_hash_constant_with_type): ... here.
9127 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9128 (vn_phi_eq): Compare types from vn_phi_s structure.
9129 (vn_phi_lookup): Populate vn_phi_s type.
9130 (vn_phi_insert): Likewise.
9131
a475fd3d
JJ
91322013-02-19 Jakub Jelinek <jakub@redhat.com>
9133
47cc28f5
JJ
9134 PR tree-optimization/56350
9135 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9136 if haven't found reduction or nested cycle operand, rather than
9137 asserting we must find it.
9138
a475fd3d
JJ
9139 PR tree-optimization/56381
9140 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9141 to fold_build3.
9142
91432013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
9144 Jakub Jelinek <jakub@redhat.com>
9145
9146 PR target/52555
9147 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9148 (swap_optab_enable): Same.
9149 (init_all_optabs): Use argument instead of global.
88b97037 9150 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
9151 * expr.h (init_all_optabs): Add argument to prototype.
9152 (TREE_OPTIMIZATION_OPTABS): New.
9153 (save_optabs_if_changed): Protoize.
9154 * optabs.h: Declare this_fn_optabs.
9155 * optabs.c (save_optabs_if_changed): New.
9156 Declare this_fn_optabs.
9157 (init_optabs): Add argument to init_all_optabs() call.
9158 * function.c (invoke_set_current_function_hook): Handle per
9159 function optabs.
9160 * function.h (struct function): New field optabs.
9161 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9162 optimization_current_node has changed.
9163 * target-globals.h (save_target_globals_default_opts): Protoize.
9164 * target-globals.c (save_target_globals_default_opts): New.
9165
3f587ca3
JDA
91662013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9167
9168 PR target/56347
9169 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9170 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
9171
9172 PR target/56214
9173 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
9174 and HImode, require all displacements to be an integer multiple of
9175 their mode size.
ceaca33e
JDA
9176 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9177 only allow QImode and HImode when reload is in progress and strict is
9178 true. Likewise for symbolic addresses. Use base14_operand to check
9179 displacements in REG+BASE addresses.
9180
fe0b4796
RB
91812013-02-18 Richard Biener <rguenther@suse.de>
9182
9183 PR tree-optimization/56366
9184 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9185 handle sign-conversion of outer-loop initial induction value.
9186
6aaf596b
RB
91872013-02-18 Richard Biener <rguenther@suse.de>
9188
73db8ff1 9189 PR middle-end/56349
6aaf596b
RB
9190 * cfghooks.c (merge_blocks): If we merge a latch into another
9191 block adjust references to it.
9192 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9193 (verify_loop_structure): Verify that a recorded latch is in fact
9194 a latch.
9195
5e97dfb6
RB
91962013-02-18 Richard Biener <rguenther@suse.de>
9197
9198 PR tree-optimization/56321
9199 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9200 order SSA name release and virtual operand unlinking.
9201
825527e8
EI
92022013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9203
9204 * config/microblaze/microblaze.md (save_stack_block): Define.
9205 (restore_stack_block): Likewise.
9206
debd11d9
EI
92072013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9208
9209 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9210 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9211 * config/microblaze/microblaze.c (microblaze_option_override):
9212 Bail out early for PIC modes when target does not support PIC.
9213
8ec77be0
EI
92142013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9215
88b97037 9216 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
9217 Replace with a microblaze version.
9218 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 9219 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
9220 microblaze.
9221
b41288b3
JJ
92222013-02-16 Jakub Jelinek <jakub@redhat.com>
9223 Dodji Seketeli <dodji@redhat.com>
9224
9225 PR asan/56330
88b97037 9226 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
9227 (instrument_mem_region_access): Do not forget to always put
9228 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9229 0) statement, even for cases where either 'base' or 'base + len'
9230 are not instrumented -- because they have been previously
9231 instrumented. Simplify the logic by putting all the statements
9232 instrument 'base + len' inside a sequence, and then insert that
9233 sequence right before the current insertion point. Then, to
9234 instrument 'base + len', just get an iterator on that statement.
9235 And do not forget to update the pointer to iterator the function
9236 received as argument.
9237
47918951
VM
92382013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9239
9240 PR rtl-optimization/56348
9241 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9242
3fb7c699
SB
92432013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9244
9245 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9246 (clean_graph_dump_file): Pass base to start_graph_dump.
9247
576fe41a
RH
92482013-02-14 Richard Henderson <rth@redhat.com>
9249
9250 PR target/55941
9251 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9252
bb3accfa
SB
92532013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9254
9255 * collect2-aix.h: Define F_LOADONLY.
9256
03143140
RB
92572013-02-14 Richard Biener <rguenther@suse.de>
9258
9259 PR lto/50494
9260 * varasm.c (output_constant_def_1): Get the decl representing
9261 the constant as argument.
9262 (output_constant_def): Wrap output_constant_def_1.
9263 (make_decl_rtl): Use output_constant_def_1 with the decl
9264 representing the constant.
9265 (build_constant_desc): Optionally re-use a decl already
9266 representing the constant.
9267 (tree_output_constant_def): Adjust.
9268
8fb06726
DS
92692013-02-14 Dodji Seketeli <dodji@redhat.com>
9270
9271 Fix an asan crash
9272 * asan.c (instrument_builtin_call): Really put the length of the
9273 second source argument into src1_len.
9274
c4bfe8bf
JJ
92752013-02-13 Jakub Jelinek <jakub@redhat.com>
9276
9277 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9278 argument. If it is false, don't create edge from then_bb to
9279 fallthru_bb.
9280 (insert_if_then_before_iter): Pass true to it.
9281 (build_check_stmt): Pass false to it.
9282 (transform_statements): Flush hash table only on extended basic
9283 block boundaries, rather than at the beginning of every bb.
9284 Don't flush hash table on nonfreeing_call_p calls.
9285 * tree-flow.h (nonfreeing_call_p): New prototype.
9286 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9287
7afe2801
DM
92882013-02-13 David S. Miller <davem@davemloft.net>
9289
9290 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9291
70cc3288
VM
92922013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9293
9294 PR target/56184
9295 * ira.c (max_regno_before_ira): Move from ...
9296 (ira): ... here.
9297 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9298 vec_safe_length.
9299
6422242b
JJ
93002013-02-13 Jakub Jelinek <jakub@redhat.com>
9301
9302 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9303
976a81ee
RB
93042013-02-13 Richard Biener <rguenther@suse.de>
9305
9306 PR lto/56295
9307 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9308 globals in MEM_REFs.
9309
c1874a87
RB
93102013-02-13 Richard Biener <rguenther@suse.de>
9311
9312 * loop-init.c (loop_optimizer_init): Clear loop state when
9313 re-initializing preserved loops.
9314 * loop-unswitch.c (unswitch_single_loop): Return whether
9315 we unswitched the loop. Do not verify loop state here.
88b97037 9316 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 9317
b4ab7d34
KS
93182013-02-13 Kostya Serebryany <kcc@google.com>
9319
88b97037
UB
9320 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9321 on x86_64 linux.
b4ab7d34
KS
9322 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9323
bdcbe80c
DS
93242013-02-12 Dodji Seketeli <dodji@redhat.com>
9325
9326 Avoid instrumenting duplicated memory access in the same basic block
9327 * Makefile.in (asan.o): Add new dependency on hash-table.h
9328 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9329 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9330 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9331 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9332 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9333 (get_mem_ref_of_assignment): New functions.
9334 (get_mem_refs_of_builtin_call): Extract from
9335 instrument_builtin_call and tweak a little bit to make it fit with
9336 the new signature.
9337 (instrument_builtin_call): Use the new
9338 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9339 of is_gimple_builtin_call.
9340 (instrument_derefs, instrument_mem_region_access): Insert the
9341 instrumented memory reference into the hash table.
9342 (maybe_instrument_assignment): Renamed instrument_assignment into
9343 this, and change it to advance the iterator when instrumentation
9344 actually happened and return true in that case. This makes it
9345 homogeneous with maybe_instrument_assignment, and thus give a
9346 chance to callers to be more 'regular'.
9347 (transform_statements): Clear the memory reference hash table
9348 whenever we enter a new BB, when we cross a function call, or when
9349 we are done transforming statements. Use
9350 maybe_instrument_assignment instead of instrumentation. No more
9351 need to special case maybe_instrument_assignment and advance the
9352 iterator after calling it; it's now handled just like
9353 maybe_instrument_call. Update comment.
9354
4861a1f7
RB
93552013-02-13 Richard Biener <rguenther@suse.de>
9356
9357 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9358 Fix loop discovery code.
9359
1c86bd80
VM
93602013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9361
9362 PR inline-asm/56148
9363 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 9364 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
9365 the operand is not reloaded. Prefer to reload conflicting operand
9366 if earlyclobber and matching operands are the same.
9367
7cbda518
RB
93682013-02-12 Richard Biener <rguenther@suse.de>
9369
9370 PR lto/56297
9371 * lto-streamer-out.c (write_symbol): Do not output symbols
9372 for hard register variables.
9373
e68a4ef6
GJL
93742013-02-12 Georg-Johann Lay <avr@gjlay.de>
9375
9376 PR target/54222
9377 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9378 (umulsidi3_insn, mulsidi3_insn): New insns.
9379
a72d8780 93802013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
9381
9382 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9383 (struct tune_params): Add vec_costs field.
9384 * config/arm/arm.c (arm_builtin_vectorization_cost)
9385 (arm_add_stmt_cost): New functions.
9386 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9387 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9388 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9389 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9390 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9391 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9392 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9393
43320568
RB
93942013-02-12 Richard Biener <rguenther@suse.de>
9395
9396 PR lto/56295
9397 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9398 decls again if possible.
9399
a011aa39
RB
94002013-02-12 Richard Biener <rguenther@suse.de>
9401
9402 PR middle-end/56288
9403 * tree-ssa.c (verify_ssa_name): Fix check, move
9404 SSA_NAME_IN_FREE_LIST check up.
9405
6da26889
JJ
94062013-02-12 Jakub Jelinek <jakub@redhat.com>
9407 Steven Bosscher <steven@gcc.gnu.org>
9408
9409 PR rtl-optimization/56151
9410 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9411 equal to op0 or op1, and last_insn pattern is CODE operation
9412 with MEM dest and one of the operands matches that MEM.
9413
f80e0faf
ST
94142013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9415
9416 * doc/extend.texi: Document Function Multiversioning and "default"
9417 parameter string to target attribute.
9418 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9419 target attribute parameter is "default".
9420 (ix86_compare_version_priority): Remove checks for target attribute.
9421 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9422 Remove check for target attribute equal to NULL. Add assert.
9423 (ix86_generate_version_dispatcher_body): Change error to sorry.
9424
6c59ffd1
IS
94252013-02-11 Iain Sandoe <iain@codesourcery.com>
9426 Jack Howarth <howarth@bromo.med.uc.edu>
9427 Patrick Marlier <patrick.marlier@gmail.com>
9428
9429 PR libitm/55693
9430 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9431 define ENDFILE_SPEC as TM_DESTRUCTOR.
9432 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9433
a72d8780 94342013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
9435 Jack Howarth <howarth@bromo.med.uc.edu>
9436 Jakub Jelinek <jakub@redhat.com>
9437
9438 PR sanitizer/55617
9439 * config/darwin.c (cdtor_record): Rename ctor_record.
9440 (sort_cdtor_records): Rename sort_ctor_records.
9441 (finalize_dtors): New routine to sort destructors by
9442 priority before use in assemble_integer.
9443 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9444
b63fe007
UB
94452013-02-11 Uros Bizjak <ubizjak@gmail.com>
9446
9447 PR rtl-optimization/56275
9448 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9449 offset is non-negative and less than cmode size before
9450 calling simplify_subreg.
9451
8e89b5b5
RB
94522013-02-11 Richard Biener <rguenther@suse.de>
9453
9454 PR tree-optimization/56264
9455 * cfgloop.h (fix_loop_structure): Adjust prototype.
9456 * loop-init.c (fix_loop_structure): Return the number of
9457 newly discovered loops.
9458 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9459 are discovered, do a full loop-closed SSA rewrite.
9460
b4a4b56d
RB
94612013-02-11 Richard Biener <rguenther@suse.de>
9462
9463 PR tree-optimization/56273
9464 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9465 first VRP run.
9466 (check_array_ref): Fix missing newline in dumps.
9467 (search_for_addr_array): Likewise.
9468
0c885229
DE
94692013-02-09 David Edelsohn <dje.gcc@gmail.com>
9470
9471 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9472
59ac9a55
JJ
94732013-02-09 Jakub Jelinek <jakub@redhat.com>
9474
9475 PR target/56256
9476 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9477
25bb0bb5
VM
94782013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9479
9480 PR rtl-optimization/56246
0c885229 9481 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
9482 reload pseudo.
9483 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9484 constraints are satisfied.
9485
a698cc03
JL
94862013-02-08 Jeff Law <law@redhat.com>
9487
9488 PR debug/53948
9489 * emit-rtl.c (reg_is_parm_p): New function.
9490 * regs.h (reg_is_parm_p): New prototype.
9491 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9492 callee-clobbered registers.
9493
e1122ddd
MM
94942013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9495
9496 PR target/56043
9497 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9498 If there is no implicit builtin declaration, just return NULL.
9499
19c5f6e6
UB
95002013-02-08 Uros Bizjak <ubizjak@gmail.com>
9501
9502 * config/i386/sse.md (FMAMODEM): New mode iterator.
9503 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9504 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9505
2480f2ca 95062013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 9507
2480f2ca
UB
9508 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9509 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9510 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9511
95122013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9513
9514 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9515 (microblaze*-*-elf): Likewise.
9516 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9517 LINK_SPEC.
9518 * config/microblaze/microblaze-c.c: Add builtin defines for
9519 _LITTLE_ENDIAN and _BIG_ENDIAN.
9520 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9521 add to TARGET_DEFAULT flags.
76ef61fb 9522 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
9523 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9524 * config/microblaze/microblaze.md: Update extendsidi2 and
9525 movdi_internal instructions to use low-order / high-order reg
9526 print_operands.
9527 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9528 options and inversemask / mask of LITTLE_ENDIAN.
9529 * config/microblaze/t-microblaze: Expand multilib options to
9530 include mlittle-endian (le) and update exceptions patterns.
9531
600a5961
JJ
95322013-02-08 Jakub Jelinek <jakub@redhat.com>
9533
5df81313
JJ
9534 PR rtl-optimization/56195
9535 * lra-constraints.c (get_reload_reg): Don't reuse regs
9536 if they have smaller mode than requested, if they have
9537 wider mode than requested, try to return a SUBREG.
9538
600a5961
JJ
9539 PR tree-optimization/56250
9540 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9541 if type is unsigned and code isn't MULT_EXPR.
9542
ff544649
GJL
95432013-02-08 Georg-Johann Lay <avr@gjlay.de>
9544
9545 PR tree-optimization/56064
9546 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9547 bits according to mode.
9548 * fixed-value.h (fixed_from_double_int)
9549 (const_fixed_from_double_int): Adjust comments.
9550
e45cde98
RB
95512013-02-08 Richard Biener <rguenther@suse.de>
9552
9553 PR lto/56231
9554 * lto-streamer.h (struct data_in): Remove current_file, current_line
9555 and current_col members.
9556 * lto-streamer-out.c (lto_output_location): Stream changed bits
9557 en-block for efficiency.
9558 * lto-streamer-in.c (clear_line_info): Remove.
9559 (lto_input_location): Cache current file, line and column
9560 globally via local statics. Read changed bits en-block.
9561 (input_function): Do not call clear_line_info.
9562 (lto_read_body): Likewise.
9563 (lto_input_toplevel_asms): Likewise.
9564
c1ca73d8
MM
95652013-02-08 Michael Matz <matz@suse.de>
9566
9567 PR tree-optimization/52448
9568 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9569 (nt_call_phase): New static.
9570 (add_or_mark_expr): Only mark accesses with newer phase than any
9571 call seen.
9572 (nonfreeing_call_p): New.
9573 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9574 (nt_fini_block): Keep blocks marked as visited.
9575 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9576
57548aa2
RB
95772013-02-08 Richard Biener <rguenther@suse.de>
9578
9579 * ira.c (ira): Free broken dominator information.
9580
8e10366f
UB
95812013-02-08 Uros Bizjak <ubizjak@gmail.com>
9582
9583 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9584
f64fb0fa
MP
95852013-02-08 Marek Polacek <polacek@redhat.com>
9586
8e10366f 9587 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 9588
0375167b
RB
95892013-02-08 Richard Biener <rguenther@suse.de>
9590
9591 PR middle-end/56181
9592 * cfgloop.h (flow_loops_find): Adjust.
9593 (bb_loop_header_p): Declare.
9594 * cfgloop.c (bb_loop_header_p): New function split out from ...
9595 (flow_loops_find): ... here. Adjust function signature,
9596 support incremental loop structure update.
9597 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9598 * cfgloopmanip.c (fix_loop_structure): Move ...
9599 * loop-init.c (fix_loop_structure): ... here.
9600 (apply_loop_flags): Split out from ...
9601 (loop_optimizer_init): ... here.
9602 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9603 in incremental mode, only remove dead loops here.
9604
85d768f3
GJL
96052013-02-08 Georg-Johann Lay <avr@gjlay.de>
9606
9607 PR target/54222
9608 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9609 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9610 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9611 (*round<mode>3.libgcc): New insns for fixed-modes.
9612 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9613 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9614 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9615 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9616 implementations. Define to __builtin_avr_absFX,
9617 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9618 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9619 __builtin_avr_countlsFX, respectively.
9620 * config/avr/avr-c.c (target.h): Include it.
9621 (enum avr_builtin_id): New enum.
9622 (avr_resolve_overloaded_builtin): New static function.
9623 (avr_register_target_pragmas): Use it to set
9624 targetm.resolve_overloaded_builtin.
9625 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9626 tree nodes used by DEF_BUILTIN.
9627 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9628 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9629 <AVR_BUILTIN_xxBITS>: Same.
9630
661bc682
RB
96312013-02-08 Richard Biener <rguenther@suse.de>
9632
9633 * cfgloop.c (verify_loop_structure): Properly handle
9634 a loop exiting to another loop header.
9635 * ira-int.h (ira_loops): Remove.
9636 * ira.c (ira_loops): Remove.
9637 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9638 (do_reload): Use loop_optimizer_finalize.
9639 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9640 number_of_loops to access the loop tree.
9641 (more_one_region_p): Likewise.
9642 (finish_loop_tree_nodes): Likewise.
9643 (rebuild_regno_allocno_maps): Likewise.
9644 (mark_loops_for_removal): Likewise.
9645 (mark_all_loops_for_removal): Likewise.
9646 (remove_unnecessary_regions): Likewise.
9647 (ira_build): Likewise.
9648 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9649
0d5049b2
RB
96502013-02-08 Richard Biener <rguenther@suse.de>
9651
9652 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9653 * ipa-pure-const.c (analyze_function): Avoid calling
9654 mark_irreducible_loops twice.
8e10366f 9655 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 9656
499f32e8
DM
96572013-02-07 David S. Miller <davem@davemloft.net>
9658
9659 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9660 on 'reg'.
9661 * var-tracking.c (vt_add_function_parameter): Test the presence of
9662 HAVE_window_save properly and do not remap argument registers when
9663 we have a leaf function.
9664
6edc3e32
UB
96652013-02-07 Uros Bizjak <ubizjak@gmail.com>
9666
9667 PR bootstrap/56227
9668 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9669 instead of "ll".
9670 * config/i386/i386.c (ix86_print_operand): Ditto.
9671
5306401f
VM
96722013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9673
6edc3e32 9674 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 9675
027ece11
VM
96762013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9677
9678 PR rtl-optimization/56225
9679 * lra-constraints.c (process_alt_operands): Check that reload hard
9680 reg can hold value for strict_low_part.
9681
f980dfdb
JJ
96822013-02-07 Jakub Jelinek <jakub@redhat.com>
9683
9684 PR debug/56154
9685 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9686 dwarf2out_end_function.
9687 (in_first_function_p, maybe_at_text_label_p,
9688 first_loclabel_num_not_at_text_label): New variables.
9689 (dwarf2out_var_location): In the first function find out
6edc3e32 9690 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
9691 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9692 functions.
9693
73dd3123
EB
96942013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9695
9696 PR rtl-optimization/56178
9697 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9698 SUBREG of a register. Tidy up related block of code.
9699 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9700 note if the source is a register or a SUBREG of a register.
9701
e3936f47
JJ
97022013-02-07 Jakub Jelinek <jakub@redhat.com>
9703
9704 PR target/56228
9705 * config/rs6000/rs6000.md (ptrm): New mode attr.
9706 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9707 call_value_indirect_aix<pttrsize>,
9708 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9709 m in constraints.
9710
d96d674b
MH
97112013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9712
9713 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9714 if -bnortl. Convert to strcmp and strncmp.
9715
921f2dee
AM
97162013-02-07 Alan Modra <amodra@gmail.com>
9717
9718 PR target/54009
9719 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9720 addresses won't wrap when offsetting.
9721 (rs6000_secondary_reload): Provide secondary reloads needed for
9722 wrapping LO_SUM addresses.
9723
d09c7dba
TS
97242013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9725
9726 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9727 MACH, just __MACH__.
9728
a44bbd48
RB
97292013-02-06 Richard Biener <rguenther@suse.de>
9730
9731 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9732 instead of calling fix_loop_structure.
9733
6d840d99
JJ
97342013-02-06 Jakub Jelinek <jakub@redhat.com>
9735
9736 PR middle-end/56217
9737 * omp-low.c (use_pointer_for_field): Return false if
9738 lower_send_shared_vars doesn't generate any copy-out code.
9739
0f33baa9
TV
97402013-02-06 Tom de Vries <tom@codesourcery.com>
9741
9742 PR rtl-optimization/56131
9743 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9744 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9745 of the label is NULL. Add comment.
9746
11f1e3ab
JJ
97472013-02-05 Jakub Jelinek <jakub@redhat.com>
9748
31502f9f
JJ
9749 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9750
a74db9bd
JJ
9751 PR sanitizer/55374
9752 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9753 (STATIC_LIBTSAN_LIBS): Likewise.
9754 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9755 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9756 is defined, don't add anything else beyond that.
9757 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9758 (LINK_COMMAND_SPEC): Use them.
9759
11f1e3ab
JJ
9760 PR tree-optimization/56205
9761 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9762 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9763 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9764
14ac6aa2
RB
97652013-02-05 Richard Biener <rguenther@suse.de>
9766
9767 PR tree-optimization/53342
9768 PR tree-optimization/53185
9769 * tree-vectorizer.h (vect_check_strided_load): Remove.
9770 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9771 not disallow peeling for vectorized strided loads.
9772 (vect_check_strided_load): Make static and simplify.
9773 (vect_analyze_data_refs): Adjust.
9774 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9775 correctly when vectorizing strided loads.
9776
6f22445a
RB
97772013-02-05 Richard Biener <rguenther@suse.de>
9778
9779 * doc/install.texi: Refer to ISL, not PPL.
9780
39f9719e
JH
97812013-02-05 Jan Hubicka <jh@suse.cz>
9782
ec4224ac
JH
9783 PR tree-optimization/55789
9784 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9785
97862013-02-05 Jan Hubicka <jh@suse.cz>
9787
9788 PR tree-optimization/55789
39f9719e
JH
9789 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9790 the dead call anyway.
9791
956d3b33
EB
97922013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9793
9794 PR sanitizer/55374
9795 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9796
97972013-02-04 Alexander Potapenko <glider@google.com>
9798 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9799 Jakub Jelinek <jakub@redhat.com>
9800
9801 PR sanitizer/55617
9802 * config/darwin.c (sort_ctor_records): Stabilized qsort
9803 on constructor priority by using original position.
9804 (finalize_ctors): New routine to sort constructors by
9805 priority before use in assemble_integer.
9806 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9807
7ac3af38
JJ
98082013-02-04 Jakub Jelinek <jakub@redhat.com>
9809
9810 PR libstdc++/54314
9811 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9812 about visibility on artificial decls.
9813 * config/sol2.c (solaris_assemble_visibility): Likewise.
9814
152689dc
KT
98152013-02-04 Kai Tietz <ktietz@redhat.com>
9816
9817 PR target/56186
9818 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9819 argument and improve checking of return-argument types for 16-byte
9820 modes.
9821 (ix86_function_value_1): Add additional valtype argument on call
9822 of function_value_64.
9823 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9824 handling infunction_value_64 function.
9825
2b5987b5
MGD
98262013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9827
7ac3af38 9828 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9829
14597080
RB
98302013-02-04 Richard Biener <rguenther@suse.de>
9831
9832 PR tree-optimization/56188
9833 * tree-ssa-structalias.c (label_visit): Consider case with
9834 initially non-empty points-to set.
9835 (perform_var_substitution): Dump node mapping and clean up.
9836
ed73881e
RG
98372013-02-04 Richard Guenther <rguenther@suse.de>
9838
9839 PR lto/56168
9840 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9841 node prevail as last resort.
9842 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9843 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9844
139a0707
RB
98452013-02-04 Richard Biener <rguenther@suse.de>
9846
9847 PR tree-optimization/56113
9848 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9849 Merge into ...
9850 (equiv_class_lookup_or_add): ... this.
9851 (label_visit): Adjust and fix error in previous patch.
9852 (perform_var_substitution): Adjust.
9853
50fe8924
OE
98542013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9855
9856 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9857 * config/sh/sh4-300.md: Likewise.
9858 * config/sh/sh4a.md: Likewise.
9859 * config/sh/constraints.md: Likewise.
9860 * config/sh/sh.md: Likewise.
9861 * config/sh/netbsd-elf.h: Likewise.
9862 * config/sh/predicates.md: Likewise.
9863 * config/sh/sh-protos.h: Likewise.
9864 * config/sh/ushmedia.h: Likewise.
9865 * config/sh/linux.h: Likewise.
9866 * config/sh/sh.c: Likewise.
9867 * config/sh/superh.h: Likewise.
9868 * config/sh/elf.h: Likewise.
9869 * config/sh/sh4.md: Likewise.
9870 * config/sh/sh.h: Likewise.
9871
1a04ac2b
JDA
98722013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9873
9874 * config/pa/constraints.md: Adjust unused letters. Change "T"
9875 constraint to match_test floating_point_store_memory_operand().
9876 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9877 (base14_operand): New.
9878 (floating_point_store_memory_operand): New.
9879 (integer_store_memory_operand): Revise to use base14_operand and
9880 reg_plus_base_memory_operand.
9881 (move_dest_operand): Allow symbolic_memory_operands.
9882 (symbolic_memory_operand): Check for LO_SOM.
9883 (symbolic_operand): Change default case to break.
9884 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9885 CONST_DOUBLE values to be reloaded by putting them into memory when
9886 the destination is a floating point register.
9887 (movdf): Remove code to handle CONST_DOUBLE.
9888 (movsf): Likewise.
9889 (reload_indf_r1): New.
9890 (reload_insf_r1): New.
9891 Consistently use "Q" and "T" constraints with integer and floating
9892 point move instructions, respectively.
9893 (movdi): Remove FAIL.
9894 Change predicate for source operand unamed DImode move from
9895 general_operand to move_src_operand.
9896 (umulsidi3): Change predicate for destination operand to
9897 register_operand.
9898 Likewise for similar unamed patterns.
9899 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9900 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9901 (hppa_legitimize_address): Simplify mask calculation.
9902 (pa_emit_move_sequence): Revised handling of secondary reloads from
9903 REG+D addresses for floating point loads and stores. Directly handle
9904 loading CONST0_RTX (mode) to a floating point register.
9905 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9906 to floating point registers. Don't restrict secondary reloads to
9907 floating point registers to integer modes. Revise some comments and
9908 cleanup some code.
9909 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9910 (pa_legitimate_address_p): New.
9911 (pa_legitimize_reload_address): New.
9912 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9913 (STRICT_REG_OK_FOR_BASE_P): New.
9914 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9915 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9916
3bf65591
DE
99172013-02-03 David Edelsohn <dje.gcc@gmail.com>
9918 Andrew Dixie <andrewd@gentrack.com>
9919
9920 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9921 flag set.
9922
c0a8a3e6
RS
99232013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9924
9925 * expmed.c (extract_bit_field_1): Pass the full width of the
9926 structure to get_best_reg_extraction_insn.
9927
99113dff
DE
99282013-02-01 David Edelsohn <dje.gcc@gmail.com>
9929
9930 PR target/54601
9931 * configure.ac (use_cxa_atexit): Add AIX.
9932 * configure: Regenerate.
9933
9934 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9935
ddd84654
JJ
99362013-02-01 Jakub Jelinek <jakub@redhat.com>
9937
9938 PR debug/54793
9939 * final.c (need_profile_function): New variable.
9940 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9941 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9942 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9943 notes, targetm.asm_out.function_prologue doesn't emit anything,
9944 HAVE_prologue and profiler should be emitted before prologue,
9945 set need_profile_function instead of emitting it.
9946 (final_scan_insn): If need_profile_function, emit
9947 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9948 NOTE_INSN_FUNCTION_BEG note.
9949
99502013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9951
9952 * config/rs6000/rs6000.md (smulditi3): New.
9953 (umulditi3): New.
9954
ff2a9d88
RH
9955 * config/alpha/alpha.md (umulditi3): New.
9956
14d52b90
DE
99572013-02-01 David Edelsohn <dje.gcc@gmail.com>
9958
9959 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9960 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9961
8c7ca45c
RB
99622013-02-01 Richard Biener <rguenther@suse.de>
9963
9964 PR tree-optimization/56113
9965 * tree-ssa-structalias.c (label_visit): Reduce work for
9966 single-predecessor nodes.
9967
9f419393
EB
99682013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9969
9970 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9971 range isn't testing for zero.
9972
c5f4be84
SB
99732013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9974
9975 PR middle-end/56113
9976 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9977
dbdbd982
NC
99782013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9979 Nick Clifton <nickc@redhat.com>
9980
9981 * config/v850/constraints.md (Q): Define as a memory constraint.
9982 * config/v850/predicates.md (label_ref_operand): New predicate.
9983 (e3v5_shift_operand): New predicate.
9984 (ior_operator): New predicate.
9985 * config/v850/t-v850: Add e3v5 multilib.
9986 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9987 (v850_gen_movdi): Prototype.
9988 * config/v850/v850.c: Add support for e3v5 architecture.
9989 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9990 TARGET_V850E_UP.
9991 (construct_save_jarl): Add e3v5 long JARL support.
9992 (v850_adjust_insn_length): New function. Adjust length of call
9993 insns when using e3v5 instructions.
9994 (v850_gen_movdi): New function: Generate instructions to move a
9995 DImode value.
9996 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9997 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9998 (TARGET_USE_FPU): Enable for e3v5.
9999 (CONST_OK_FOR_W): New macro.
10000 (ADJUST_INSN_LENGTH): Define.
10001 * config/v850/v850.md (UNSPEC_LOOP): Define.
10002 (attr cpu): Add v850e3v5.
10003 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10004 (movdi): New pattern.
10005 (movdi_internal): New pattern.
10006 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10007 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10008 (cstoresf4): Likewise.
10009 (cstoredf4): Likewise.
10010 (insv): New pattern.
10011 (rotlso3_a): New pattern.
10012 (rotlsi3_b): New pattern
10013 (rotlsi3_v850e3v5): New pattern.
10014 (doloop_begin): New pattern.
10015 (fix_loop_counter): New pattern.
10016 (doloop_end): New pattern.
10017 (branch_normal): Add e3v5 long branch support.
10018 (branch_invert): Likewise.
10019 (branch_z_normal): Likewise.
10020 (branch_z_invert): Likewise.
10021 (branch_nz_normal): Likewise.
10022 (branch_nz_invert): Likewise.
10023 (call_internal_short): Add e3v5 register-indirect JARL support.
10024 (call_internal_long): Likewise.
10025 (call_value_internal_short): Likewise.
10026 (call_value_internal_long): Likewise.
10027 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10028 (mloop): New option.
10029 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 10030 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 10031
73861a41
PK
100322013-01-31 Paul Koning <ni1d@arrl.net>
10033
10034 PR debug/55059
10035 PR debug/54508
10036 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10037 children if parent is a class.
10038 (prune_unused_types_prune): Don't add DW_AT_declaration.
10039
e44978dc
RB
100402013-01-31 Richard Biener <rguenther@suse.de>
10041
10042 PR tree-optimization/56157
10043 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10044 match up operand with SLP child.
10045
90b10dec
JM
100462013-01-31 Jason Merrill <jason@redhat.com>
10047
04d2dadd 10048 PR debug/54410
90b10dec
JM
10049 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10050 parameters the first time.
10051 (gen_scheduled_generic_parms_dies): Check completeness here.
10052
6e616110
RB
100532013-01-31 Richard Biener <rguenther@suse.de>
10054
10055 PR middle-end/53073
10056 * common.opt (faggressive-loop-optimizations): New flag,
10057 enabled by default.
10058 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10059 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10060 infer_loop_bounds_from_undefined by it.
10061
636f59cf
RB
100622013-01-31 Richard Biener <rguenther@suse.de>
10063
10064 PR tree-optimization/56150
10065 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10066 visit virtual operands.
10067 (find_uses_to_rename_bb): Likewise.
10068
100692013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
10070
10071 PR tree-optimization/56150
10072 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10073 mixed store non-store stmts.
10074
32887460
JJ
100752013-01-30 Jakub Jelinek <jakub@redhat.com>
10076
e60e09a0
JJ
10077 PR sanitizer/55374
10078 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10079 LIBASAN_EARLY_SPEC is defined.
10080 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10081 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10082 before %o.
10083 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10084
32887460
JJ
10085 PR c++/55742
10086 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10087 invalid args instead of ICEing on it.
10088 (ix86_valid_target_attribute_tree): Return error_mark_node if
10089 ix86_valid_target_attribute_inner_p failed.
10090 (ix86_valid_target_attribute_p): Return false only if
10091 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10092 target("default") attribute.
10093 (sorted_attr_string): Change argument from const char * to tree,
10094 merge in all target attribute arguments rather than just one.
10095 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10096 instead of free. Avoid using strcat.
10097 (ix86_mangle_function_version_assembler_name): Mangle
10098 target("default") as if no target attribute is present. Adjust
10099 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10100 instead of xmalloc and XDELETEVEC instead of free.
10101 (ix86_function_versions): Don't return true if one of the decls
10102 doesn't have target attribute. If they don't and one of the decls
10103 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10104 sorted_attr_string caller. Use XDELETEVEC instead of free.
10105 (ix86_supports_function_versions): Remove.
10106 (make_name): Fix up formatting.
10107 (make_dispatcher_decl): Remove resolver_name and its initialization.
10108 Avoid leaking memory.
10109 (is_function_default_version): Return true if there is
10110 target("default") attribute rather than no target attribute at all.
10111 (make_resolver_func): Avoid leaking memory.
10112 (ix86_generate_version_dispatcher_body): Likewise.
10113 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10114 * target.def (supports_function_versions): Remove.
10115 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10116 * doc/tm.texi: Regenerated.
10117
73cca0cc
VM
101182013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10119
10120 PR rtl-optimization/56144
10121 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10122 for values with side effects.
10123
11452e7b
RB
101242013-01-30 Richard Biener <rguenther@suse.de>
10125
10126 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10127 (sparseset_pop): Likewise.
10128 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10129 to be able to use quick_push in the worker loop.
10130
01cb1ef5
MP
101312013-01-30 Marek Polacek <polacek@redhat.com>
10132
10133 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10134
e892936e
RB
101352013-01-30 Richard Biener <rguenther@suse.de>
10136
10137 PR lto/56147
6edc3e32 10138 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 10139
cc06c01d
GJL
101402013-01-30 Georg-Johann Lay <avr@gjlay.de>
10141
10142 PR tree-optimization/56064
10143 * fixed-value.c (fixed_from_double_int): New function.
10144 * fixed-value.h (fixed_from_double_int): New prototype.
10145 (const_fixed_from_double_int): New static inline function.
10146 * fold-const.c (native_interpret_fixed): New static function.
10147 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10148 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10149 (native_encode_fixed): New static function.
10150 (native_encode_expr) <FIXED_CST>: Use it.
10151 (native_interpret_int): Move double_int worker code to...
10152 * double-int.c (double_int::from_buffer): ...this new static method.
10153 * double-int.h (double_int::from_buffer): Prototype it.
10154
d394a308
RB
101552013-01-30 Richard Biener <rguenther@suse.de>
10156
10157 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10158 New pointer-map and obstack.
10159 (init_alias_vars): Allocate pointer-map and obstack.
10160 (delete_points_to_sets): Free them.
10161 (find_what_var_points_to): Cache result.
10162 (find_what_p_points_to): Adjust for changed interface of
10163 find_what_var_points_to.
10164 (compute_points_to_sets): Likewise.
10165 (ipa_pta_execute): Likewise.
10166
20804d96
RO
101672013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10168
10169 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10170 * configure: Regenerate.
10171 * config.in: Regenerate.
10172 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10173 #nobits/#progbits if supported.
10174
a7ad88a2
OE
101752013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10176
10177 PR target/56121
10178 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10179 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10180 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10181
7af79f92
GY
101822013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10183
91bfca59
OE
10184 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10185 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 10186
753bcf7b
GY
101872013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10188
91bfca59
OE
10189 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10190 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 10191
8cbc2ea8
GY
101922013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10193
91bfca59
OE
10194 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10195 declaration.
10196 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10197 * config/arm/cortex-a7.md: New bypasses using
10198 arm_mac_accumulator_is_result.
8cbc2ea8 10199
697a3325
GY
102002013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10201
91bfca59 10202 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 10203 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
10204 (cortex_a7_fpfmad): New reservation.
10205 (cortex_a7_fpmacs): Use ffmas and update required units.
10206 (cortex_a7_fpmuld): Update required units and latency.
10207 (cortex_a7_fpmacd): Likewise.
10208 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10209 (cortex_a7_neon). Likewise.
10210 (bypass) Update participating units.
697a3325 10211
29637783
GY
102122013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10213
91bfca59
OE
10214 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10215 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10216 from fmac to ffma.
10217 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10218 (vfp_fmul): Use ffmad.
10219 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10220 (cortex_r4_fmacd): Use ffmad.
10221 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10222 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10223 (cortex_a9_fmacd): Use ffmad.
10224 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10225 (cortex_a8_vfp_macd): Use ffmad.
10226 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10227 (cortex_a5_fpmacd): Use ffmad.
10228 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10229 (cortex_a15_vfp_macd): Use ffmad.
10230 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 10231
2ee8a2d5
JM
102322013-01-29 Jason Merrill <jason@redhat.com>
10233
10234 PR libstdc++/54314
10235 * varasm.c (default_assemble_visibility): Don't warn about
10236 visibility on artificial decls.
10237
78d087bc
RB
102382013-01-29 Richard Biener <rguenther@suse.de>
10239
10240 PR tree-optimization/56113
10241 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10242 the bitmap leader.
10243 (label_visit): Free duplicate bitmaps and record the leader instead.
10244 (perform_var_substitution): Adjust.
10245
83ba4d6f
RB
102462013-01-29 Richard Biener <rguenther@suse.de>
10247
10248 PR tree-optimization/55270
10249 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10250 the CFG, schedule loops for fixup.
10251
66dfe13f
NC
102522013-01-29 Nick Clifton <nickc@redhat.com>
10253
10254 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10255 SP_REG.
10256
5a579c3b
LE
102572013-01-28 Leif Ekblad <leif@rdos.net>
10258
10259 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10260 * config/i386/i386.h (TARGET_RDOS): New macro.
10261 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10262 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10263 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10264 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10265 DEFAULT_LARGE_SECTION_THRESHOLD.
10266 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10267 * config/i386/rdos.h: New file.
10268 * config/i386/rdos64.h: New file.
10269
51e44392
BS
102702013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10271
10272 PR other/54814
10273 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10274 TEST_HARD_REG_BIT.
10275
db1fb332
JJ
102762013-01-28 Jakub Jelinek <jakub@redhat.com>
10277
10278 PR rtl-optimization/56117
10279 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10280 call cselib_lookup_from_insn on the MEM before calling
10281 add_insn_mem_dependence.
10282
16917761
RB
102832013-01-28 Richard Biener <rguenther@suse.de>
10284
10285 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10286 to a stmt that didn't have one.
10287 (copy_phis_for_bb): Likewise for PHI arguments.
10288 (copy_debug_stmt): Likewise for debug stmts.
10289
b9fc0497
RB
102902013-01-28 Richard Biener <rguenther@suse.de>
10291
10292 PR tree-optimization/56034
6edc3e32 10293 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
10294 (partition_builtin_p): Adjust.
10295 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10296 it is the last partition.
10297 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10298 up the vertex for the definition.
10299 (classify_partition): Classify whether a partition is a
10300 PKIND_REDUCTION, thus has uses outside of the loop.
10301 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10302 Merge all PKIND_REDUCTION partitions into the last partition.
10303 (tree_loop_distribution): Seed partitions from reductions as well.
10304
aa710d25
JJ
103052013-01-28 Jakub Jelinek <jakub@redhat.com>
10306
0bfbca58
JJ
10307 PR tree-optimization/56125
10308 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10309 pow(x,c) into sqrt(x) * powi(x, n/2) or
10310 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10311 optimizing for size.
10312 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10313 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10314 integer.
10315
aa710d25
JJ
10316 PR tree-optimization/56094
10317 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10318 to UNKNOWN_LOCATION while gimplifying expr.
10319
77dc5297
UB
103202013-01-27 Uros Bizjak <ubizjak@gmail.com>
10321
10322 PR target/56114
10323 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10324 operand 0 in movabs insn template for -masm=intel asm alternative.
10325 (*movabs<mode>_2): Ditto for operand 1.
10326
0bfbca58 103272013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
10328
10329 PR target/54663
10330 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10331 of microblaze-c.o
10332
0bfbca58 103332013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
10334
10335 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10336 tm_file.
10337
0bfbca58 103382013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
10339
10340 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10341 Undef to avoid warning.
10342
478f60f9
MH
103432013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10344
10345 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10346 * configure: Regenerate.
10347
d7fa6ee2
JJ
103482013-01-25 Jakub Jelinek <jakub@redhat.com>
10349
10350 PR tree-optimization/56098
10351 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10352 for stmts with volatile ops.
10353 (cond_store_replacement): Don't optimize if assign has volatile ops.
10354 (cond_if_else_store_replacement_1): Don't optimize if either
10355 then_assign or else_assign have volatile ops.
10356 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10357 volatile ops.
10358
f8fe87bd
GJL
103592013-01-25 Georg-Johann Lay <avr@gjlay.de>
10360
10361 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10362
28398d0d
GJL
103632013-01-25 Georg-Johann Lay <avr@gjlay.de>
10364
10365 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10366 missing ':' in asm example.
10367
b7d7d917
TB
103682013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10369
10370 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10371 entries into lane and laneq entries.
77dc5297
UB
10372 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10373 Remove AdvSIMD scalar modes.
b7d7d917
TB
10374 (aarch64_sq<r>dmulh_laneq<mode>): New.
10375 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10376 modes.
10377 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10378 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10379 * config/aarch64/iterators.md (VCOND): New.
10380 (VCONQ): New.
10381
556f9906
GJL
103822013-01-25 Georg-Johann Lay <avr@gjlay.de>
10383
10384 PR target/54222
10385 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10386 Add NULL LIBNAME argument to existing definitions.
10387 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10388 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10389 * config/avr/avr.c (DEF_BUILTIN): Same.
10390 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10391 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10392 implementation is available (DECL_ASSEMBLER_NAME is set).
10393 (avr_fold_absfx): New static function.
10394 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10395 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10396 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10397 AVR_BUILTIN_ABSLLK.
10398 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10399 (abshk, absk, abslk, absllk): Provide as static inline functions.
10400
1f546bbb
MP
104012013-01-25 Marek Polacek <polacek@redhat.com>
10402
10403 PR tree-optimization/56035
10404 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10405
7e184bd7
UB
104062012-01-24 Uros Bizjak <ubizjak@gmail.com>
10407
10408 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10409 (*movtf_internal_rex64): Add (!o,C) alternative
10410 (*movxf_internal_rex64): Ditto.
10411 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10412
f5ba49ac
SM
104132013-01-24 Shenghou Ma <minux.ma@gmail.com>
10414
10415 * doc/invoke.texi: fix typo.
10416 * doc/objc.texi: fix typo.
10417
a6343728
RS
104182013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10419
10420 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10421 for the first two alternatives.
10422
cd030c07
DN
104232013-01-24 Diego Novillo <dnovillo@google.com>
10424
77dc5297 10425 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
10426 (ggc-zone.o): Remove.
10427 * configure.ac: Remove option --with-gc.
10428 * configure: Re-generate.
10429 * doc/install.texi: Remove documentation for --with-gc.
10430 * gengtype.c (write_enum_defn): Remove. Update all users.
10431 (write_Types_process_field): Remove generation of gt_e_* argument.
10432 (output_type_enum): Remove. Update all users.
10433 (write_enum_defn): Remove. Update all users.
10434 (enum alloc_zone): Remove. Update all users.
77dc5297 10435 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
10436 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10437 Update all callers.
10438 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 10439 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
10440 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10441 Update all users.
aaf1e810 10442 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
10443 (struct alloc_zone): Remove.
10444 (ggc_internal_alloc_zone_stat): Remove.
10445 (ggc_internal_cleared_alloc_zone_stat): Remove.
10446 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
10447 (ggc_pch_count_object): Remove last argument. Update all users.
10448 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
10449 (struct alloc_zone): Remove.
10450 * ggc-zone.c: Remove.
77dc5297 10451 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
10452 (struct alloc_zone): Remove.
10453 (ggc_alloc_typed_stat): Remove.
10454 (ggc_alloc_typed): Remove.
10455 (ggc_splay_alloc): Remove first argument.
10456 (rtl_zone): Remove. Update all users.
10457 (tree_zone): Remove. Update all users.
10458 (tree_id_zone): Remove. Update all users.
10459 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 10460 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 10461 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 10462 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 10463
a861ffa4
GJL
104642013-01-24 Georg-Johann Lay <avr@gjlay.de>
10465
10466 * config/avr/avr.c (avr_out_fract): Make register numbers that
10467 might be outside of source operand signed.
10468
593c0ddd
UB
104692013-01-24 Uros Bizjak <ubizjak@gmail.com>
10470
10471 * config/i386/constraints.md (Yf): New constraint.
10472 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10473 of f constraint to conditionaly disable x87 register preferences.
10474 (*movdf_internal): Ditto.
10475 (*movsf_internal): Ditto.
10476
e86c0101
SB
104772013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10478
10479 PR inline-asm/55934
10480 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10481 that have operands with impossible constraints.
10482 Add a FIXME for a speed-up opportunity.
10483 * lra-constraints.c (process_alt_operands): Verify that a class
10484 selected from constraints on asms is valid for the operand mode.
10485 (curr_insn_transform): Remove incorrect comment.
10486
f6fee35f
DE
104872013-01-23 David Edelsohn <dje.gcc@gmail.com>
10488
10489 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10490 TOC operand is a valid symbol ref in the constant pool.
10491
104922013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 10493
aaf1e810 10494 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 10495
dc62d7d1
GJL
104962013-01-23 Georg-Johann Lay <avr@gjlay.de>
10497
10498 PR target/54222
10499 * config/avr/stdfix.h: New file.
10500 * t-avr (stdfix-gcc.h): New rule to build it.
10501 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10502
2660d12d
KS
105032013-01-23 Kostya Serebryany <kcc@google.com>
10504
77dc5297
UB
10505 * config/darwin.h: remove dependency on
10506 CoreFoundation (asan on Mac OS).
2660d12d 10507
a70418fc
JJ
105082013-01-23 Jakub Jelinek <jakub@redhat.com>
10509
10510 PR target/49069
10511 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10512 instead of cmpdi_operand for first comparison operand.
10513 Don't assert that comparison operands aren't both constants.
10514
47876a2a
JW
105152013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10516
10517 * doc/install.texi (Downloading the Source): Update references to
10518 downloading separate components.
10519
105202013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
10521
10522 * doc/extend.texi (__int128): Improve grammar.
10523
47876a2a 105242013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
10525
10526 PR target/56028
10527 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10528 alternative to (o,r).
10529 (*movdi_internal_rex64): Remove (!o,n) alternative.
10530 (DImode immediate->memory splitter): Remove.
10531 (DImode immediate->memory peephole2): Remove.
10532 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10533 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10534 alternative to (!o,*r).
10535 (*movtf_internal_sse): New pattern.
10536 (*movxf_internal_rex64): New pattern.
10537 (*movxf_internal): Disable for TARGET_64BIT.
10538 (*movdf_internal_rex64): Remove (!o,F) alternative.
10539
3a984f10
JJ
105402013-01-22 Jakub Jelinek <jakub@redhat.com>
10541
502498d5
JJ
10542 PR middle-end/56074
10543 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10544 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10545 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10546 stmt locations where LOCATION_LOCUS of the stmt location is
10547 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10548
3a984f10
JJ
10549 PR target/55686
10550 * config/i386/i386.md (UNSPEC_STOS): New.
10551 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10552 *strsetqi_1): Add UNSPEC_STOS.
10553
fa817f7f
PC
105542013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10555
10556 PR c++/56067
10557 * doc/invoke.texi: Remove left over -Wsynth example.
10558
8f498c1b
JJ
105592013-01-21 Jakub Jelinek <jakub@redhat.com>
10560
10561 PR tree-optimization/56051
10562 * fold-const.c (fold_binary_loc): Don't fold
10563 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10564 a narrowing conversion, or widening conversion from signed
10565 to unsigned.
10566
47876a2a 105672013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
10568
10569 PR rtl-optimization/56023
10570 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10571 dependent on debug instruction.
10572
5b9db1bc
MJ
105732013-01-21 Martin Jambor <mjambor@suse.cz>
10574
10575 PR middle-end/56022
10576 * function.c (allocate_struct_function): Call
10577 invoke_set_current_function_hook earlier.
10578
e8bb7d68
JJ
105792013-01-21 Jakub Jelinek <jakub@redhat.com>
10580
10581 * reload1.c (init_reload): Only initialize reload_obstack
10582 during the first call.
10583
616a4e32
MP
105842013-01-21 Marek Polacek <polacek@redhat.com>
10585
10586 * cfgloop.c (verify_loop_structure): Fix up grammar.
10587
4401981b
YHH
105882013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10589
10590 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10591 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10592
8e87740b
RR
105932013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10594
10595 PR target/56058
10596 * config/arm/marvell-pj4.md: Update copyright year.
10597 Fix up use of alu to alu_reg and simple_alu_imm.
10598
47876a2a 105992013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
10600
10601 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10602
89d56d79
VM
106032013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10604
10605 PR target/55433
10606 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 10607 insn for secondary memory move when memory mode should be different.
89d56d79 10608
fe603553
JDA
106092013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10610
10611 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10612 atomic_storedi_1): New patterns.
10613
01284895
VK
106142013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10615
10616 btver2 pipeline descriptions.
10617 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10618 descriptions.
10619 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 10620 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
10621 type attributes.
10622 * config/i386/btver2.md: New file describing btver2 pipelines.
10623
5630e3e1
JL
106242013-01-19 Andrew Pinski <apinski@cavium.com>
10625
10626 PR tree-optimization/52631
10627 * tree-ssa-sccvn (visit_use): Before looking up the original
10628 statement, try looking up the simplified expression.
10629
650ae806
AG
106302013-01-19 Anthony Green <green@moxielogic.com>
10631
10632 * config/moxie/moxie.c (moxie_expand_prologue): Set
10633 current_function_static_stack_size.
10634
e300ec2d
JJ
106352013-01-18 Jakub Jelinek <jakub@redhat.com>
10636
10637 PR tree-optimization/56029
10638 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10639 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10640
a3d7af04
SS
106412013-01-18 Sharad Singhai <singhai@google.com>
10642
10643 PR tree-optimization/55995
10644 * dumpfile.c (dump_loc): Print location only if available.
10645 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10646
66aa7879
VM
106472013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10648
10649 PR target/55433
10650 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10651 secondary memory move.
10652 (inherit_reload_reg): Use rclass instead of cl for
10653 check_secondary_memory_needed_p.
10654
3f0fee7b
JJ
106552013-01-18 Jakub Jelinek <jakub@redhat.com>
10656
10657 PR middle-end/56015
10658 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 10659 the case where writing real complex part of target modifies op1.
3f0fee7b 10660
70c67693
JG
106612013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10662
10663 * config/aarch64/aarch64-simd.md
10664 (aarch64_vcond_internal<mode>): Handle unordered cases.
10665 * config/aarch64/iterators.md (v_cmp_result): New.
10666
df8de9b3
YHH
106672013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10668 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10669
10670 * config/arm/marvell-pj4.md: New file.
10671 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10672 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10673 (generic_vfp): Likewise.
10674 * config/arm/arm-cores.def: Add marvell-pj4.
10675 * config/arm/arm-tune.md: Regenerate.
10676 * config/arm/arm-tables.opt: Regenerate.
10677 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10678 * doc/invoke.texi: Document marvell-pj4.
10679
be30c356
TB
106802013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10681
10682 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10683
0bfbca58 106842013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
10685
10686 PR debug/54114
10687 PR debug/54402
10688 PR debug/49888
10689 * var-tracking.c (negative_power_of_two_p): New.
10690 (global_get_addr_cache, local_get_addr_cache): New.
10691 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10692 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10693 heading comment.
10694 (vt_stack_offset_p): Remove.
10695 (vt_canon_true_dep): Always canonicalize loc's address.
10696 (clobber_overlapping_mems): Make sure we have a MEM.
10697 (local_get_addr_clear_given_value): New.
10698 (val_reset): Clear local cached entries.
10699 (compute_bb_dataflow): Create and release the local cache.
10700 Disable duplicate MEMs clobbering.
10701 (emit_notes_in_bb): Clobber MEMs likewise.
10702 (vt_emit_notes): Create and release the local cache.
10703 (vt_initialize, vt_finalize): Create and release the global
10704 cache, respectively.
1f6bc337 10705 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 10706
0bfbca58 107072013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
10708
10709 PR libmudflap/53359
10710 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10711 not found in the symtab.
10712
0bfbca58 107132013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 10714
c350ba53 10715 PR debug/56006
3aa03517
AO
10716 PR rtl-optimization/55547
10717 PR rtl-optimization/53827
10718 PR debug/53671
10719 PR debug/49888
10720 * alias.c (offset_overlap_p): New, factored out of...
10721 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10722 the conservative special case for symbolic constants. Don't
10723 adjust zero sizes on alignment.
10724
c664546f
JL
107252013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10726
10727 PR rtl-optimization/52573
10728 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10729 REG_UNUSED for the same register.
10730
1bd3f750
MP
107312013-01-17 Richard Biener <rguenther@suse.de>
10732 Marek Polacek <polacek@redhat.com>
10733
10734 PR rtl-optimization/55833
10735 * loop-unswitch.c (unswitch_loops): Move loop verification...
10736 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10737 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10738 Set it to true when we're removing a loop from hierarchy tree in
10739 an irreducible region.
10740 (fix_bb_placements): Adjust caller.
10741 (fix_loop_placements): Likewise.
10742
e52a8b71
GJL
107432013-01-17 Georg-Johann Lay <avr@gjlay.de>
10744
10745 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10746 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10747 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10748 Remove ID. Adjust comments.
10749 * config/avr/avr-c.c (avr_builtin_name): Remove.
10750 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10751 * config/avr/avr.c (avr_tolower): New static function.
10752 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10753 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10754 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10755 default expansion.
10756
8386a7ea
JH
107572013-01-17 Jan Hubicka <jh@suse.cz>
10758
610fb637 10759 PR tree-optimization/55273
8386a7ea
JH
10760 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10761
47876a2a 107622013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
10763
10764 PR target/55981
10765 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10766 store through atomic_store<mode>_1.
10767 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10768
8222c37e
MJ
107692013-01-17 Martin Jambor <mjambor@suse.cz>
10770
10771 PR tree-optimizations/55264
10772 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10773 for virtual methods.
10774 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10775 virtual methods before inlining is over.
10776 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10777 virtual functions.
10778 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10779 non-virtual.
10780
79f01c76
VM
107812013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10782
10783 PR rtl-optimization/56005
10784 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10785 pending reads for prefetch.
10786
d0b6bb1b
IB
107872013-01-16 Ian Bolton <ian.bolton@arm.com>
10788
aaf1e810 10789 * config/aarch64/aarch64.md
d0b6bb1b
IB
10790 (*cstoresi_neg_uxtw): New pattern.
10791 (*cmovsi_insn_uxtw): New pattern.
10792 (*<optab>si3_uxtw): New pattern.
10793 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10794 (*<optab>si3_insn_uxtw): New pattern.
10795 (*bswapsi2_uxtw): New pattern.
10796
cb9cf03b
RB
107972013-01-16 Richard Biener <rguenther@suse.de>
10798
10799 * tree-inline.c (tree_function_versioning): Remove set but
10800 never used variable.
10801
2cfc56b9
RB
108022013-01-16 Richard Biener <rguenther@suse.de>
10803
10804 PR tree-optimization/55964
10805 * tree-flow.h (rename_variables_in_loop): Remove.
10806 (rename_variables_in_bb): Likewise.
10807 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10808 (copy_loop_before): Adjust and delete update-ssa status.
10809 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10810 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10811 (rename_variables_in_loop): Remove.
10812 (slpeel_update_phis_for_duplicate_loop): Likewise.
10813 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10814 use available cfg machinery instead of duplicating it.
10815 Update PHI nodes and perform poor-mans SSA update here.
10816 (slpeel_tree_peel_loop_to_edge): Adjust.
10817
c25a0c60
RB
108182013-01-16 Richard Biener <rguenther@suse.de>
10819
10820 PR tree-optimization/54767
10821 PR tree-optimization/53465
10822 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10823 (vrp_visit_phi_node): For PHI arguments coming via backedges
10824 drop all symbolical range information.
10825 (execute_vrp): Compute backedges.
10826
04b535af
RB
108272013-01-16 Richard Biener <rguenther@suse.de>
10828
10829 * doc/install.texi: Update CLooG and ISL requirements to
10830 0.18.0 and 0.11.1.
10831
8b0a1e0b
CB
108322013-01-16 Christian Bruel <christian.bruel@st.com>
10833
10834 PR target/55301
10835 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10836 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10837 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10838
108392013-01-16 DJ Delorie <dj@redhat.com>
10840
10841 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10842 (UNSPECV_SP_SWITCH_E): New.
10843 (sp_switch_1): Change to an unspec.
10844 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10845 replace $r15.
10846
108472013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10848
10849 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10850 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10851 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10852 (expand_mem_thread_fence): Ditto.
10853 (expand_mem_signal_fence): Ditto.
10854 (expand_atomic_load): Ditto.
10855 (expand_atomic_store): Ditto.
10856
0bfbca58 108572013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10858
10859 PR rtl-optimization/55547
10860 PR rtl-optimization/53827
10861 PR debug/53671
10862 PR debug/49888
10863 * alias.c (memrefs_conflict_p): Set sizes to negative after
10864 AND adjustments.
10865
305e3ac1
JJ
108662013-01-15 Jakub Jelinek <jakub@redhat.com>
10867
10868 PR target/55940
10869 * function.c (thread_prologue_and_epilogue_insns): Always
10870 add crtl->drap_reg to set_up_by_prologue.set, even if
10871 stack_realign_drap is false.
10872
f78ac4f2
JBG
108732013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10874
10875 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10876 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10877 *call): Fix indention.
10878
a78a8cc4
TV
108792013-01-15 Tom de Vries <tom@codesourcery.com>
10880
10881 PR target/55876
10882 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10883 Update comment.
10884
0e80383f
VM
108852013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10886
305e3ac1 10887 PR rtl-optimization/55153
0e80383f
VM
10888 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10889
207b5956
MJ
108902013-01-15 Martin Jambor <mjambor@suse.cz>
10891
10892 PR tree-optimization/55920
10893 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10894 accesses as grp_to_be_debug_replaced.
10895
a7818b54
JJ
108962013-01-15 Jakub Jelinek <jakub@redhat.com>
10897
10898 PR tree-optimization/55920
10899 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10900 there is non-useless type conversion needed from debug rhs to lhs,
10901 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10902
b0fe107e
JM
109032013-01-15 Joseph Myers <joseph@codesourcery.com>
10904 Mikael Pettersson <mikpe@it.uu.se>
10905
10906 PR target/43961
10907 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10908 Thumb.
10909 (ASM_OUTPUT_CASE_LABEL): Remove.
10910 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10911 * final.c (shorten_branches): Update alignment of labels before
10912 jump tables if CASE_VECTOR_SHORTEN_MODE.
10913
34ab62ee
RB
109142013-01-15 Richard Biener <rguenther@suse.de>
10915
10916 PR bootstrap/55961
10917 * system.h: Do not include gmp.h for building host tools.
10918
783a3a05
RB
109192013-01-15 Richard Biener <rguenther@suse.de>
10920
10921 PR middle-end/55882
10922 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10923 account for bitpos when computing alignment.
10924
3a579e09
VY
109252013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10926
10927 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10928 (ix86_target_macros_internal): Likewise.
10929
10930 * config/i386/i386.c (m_CORE2I7): Removed.
10931 (m_CORE_HASWELL): New macro.
10932 (m_CORE_ALL): Likewise.
10933 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10934 (initial_ix86_arch_features): Likewise.
10935 (processor_target_table): Initializations for Core avx2.
10936 (cpu_names): New names "core-avx2".
10937 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10938 PROCESSOR_CORE_HASWELL.
10939 (ix86_issue_rate): New case.
10940 (ia32_multipass_dfa_lookahead): Likewise.
10941 (ix86_sched_init_global): Likewise.
10942
10943 * config/i386/i386.h (TARGET_HASWELL): New macro.
10944 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10945 (processor_type): New PROCESSOR_HASWELL.
10946
955f5a07
JJ
109472013-01-15 Jakub Jelinek <jakub@redhat.com>
10948
ff784829
JJ
10949 PR tree-optimization/55955
10950 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10951 *SHIFT_EXPR and *ROTATE_EXPR codes.
10952
955f5a07
JJ
10953 PR tree-optimization/48766
10954 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10955 -ftrapv disable -fwrapv.
10956
aeb8b4e9
GJL
109572013-01-14 Georg-Johann Lay <avr@gjlay.de>
10958
10959 PR target/55974
10960 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10961 etc. to 1 and not to __flash.
10962 Use LL suffix for __INT24_MAX__ with -mint8.
10963 Use ULL suffix for __UINT24_MAX__ with -mint8.
10964
1c494c6a
GJL
109652013-01-14 Georg-Johann Lay <avr@gjlay.de>
10966
10967 * config/avr/avr-arch.h
10968 (struct base_arch_s): Use typedef avr_arch_t instead.
10969 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10970 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10971 * config/avr/avr.c: Same.
10972 * config/avr/avr-devices.c: Same.
10973 * config/avr/driver-avr.c: Same.
10974 * config/avr/gen-avr-mmcu-texi.c: Same.
10975 * config/avr/avr-mcus.def: Adjust comment.
10976
a50344cb
TB
109772013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10978
88e784e6
UB
10979 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10980 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10981
47876a2a 109822013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10983 Andi Kleen <ak@linux.intel.com>
10984
10985 PR target/55948
10986 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10987 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10988 memmodel flag.
10989
00892272
GJL
109902013-01-14 Georg-Johann Lay <avr@gjlay.de>
10991
10992 * config/avr/avr-stdint.h: Remove trailing blanks.
10993 * config/avr/avr-log.h: Same.
10994 * config/avr/avr-arch.h: Same.
10995 * config/avr/avr-devices.c: Same.
10996 * config/avr/avr-dimode.md: Same.
10997 * config/avr/predicates.md: Same.
10998 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 10999
00892272
GJL
11000 * config/avr/avr-protos.h: Same. And:
11001 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11002 (init_cumulative_args): Rename to avr_init_cumulative_args.
11003 (expand_prologue): Rename to avr_expand_prologue.
11004 (expand_epilogue): Rename to avr_expand_epilogue.
11005 (adjust_insn_length): Rename to avr_adjust_insn_length.
11006 (notice_update_cc): Rename to avr_notice_update_cc.
11007 (final_prescan_insn): Rename to avr_final_prescan_insn.
11008 * config/avr/avr.c: Same.
11009 * config/avr/avr.h: Same.
11010 * config/avr/avr.md: Remove trailing blanks.
11011 (prologue): Use avr_expand_prologue.
11012 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11013
7bb01996
RB
110142013-01-14 Richard Biener <rguenther@suse.de>
11015
11016 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11017 verify_location, collect_subblocks): New functions.
11018 (verify_gimple_in_cfg): Verify that locations only reference
11019 BLOCKs in the functions BLOCK tree.
11020
2724573f
RB
110212013-01-14 Richard Biener <rguenther@suse.de>
11022
11023 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11024 PHI argument.
11025 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11026 unshare reference.
11027 (insert_out_of_ssa_copy_on_edge): Likewise.
11028 (rewrite_close_phi_out_of_ssa): Likewise.
11029 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11030 debug expressions.
11031 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11032 propagated constants.
11033 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11034 can not be shared.
11035
9a0bbab6
GJL
110362013-01-14 Georg-Johann Lay <avr@gjlay.de>
11037
11038 * config/avr/avr-modes.def: Add GPL copyright notice.
11039
45805f17
UB
110402013-01-13 Uros Bizjak <ubizjak@gmail.com>
11041
11042 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11043 MEMMODEL_MASK to determine memory model.
11044 (atomic_store<mode>): Ditto from operands[2].
11045 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11046
9d60be38
JJ
110472013-01-13 Jakub Jelinek <jakub@redhat.com>
11048
11049 PR fortran/55935
45805f17 11050 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
11051 (fold_gimple_assign): Don't call unshare_expr here.
11052 (fold_ctor_reference): Call unshare_expr.
11053
e7f49d92
TG
110542013-01-13 Terry Guo <terry.guo@arm.com>
11055
aaf1e810
EB
11056 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11057 * doc/fragments.texi: Document MULTILIB_REUSE.
11058 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 11059 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 11060 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
11061 (tmpmultilib4): Ditto.
11062 (multilib_reuse): New multilib argument.
11063
fbd03a27
RS
110642013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11065
11066 * Makefile.in: Update copyright.
11067
b3681f13
TV
110682013-01-12 Tom de Vries <tom@codesourcery.com>
11069
11070 PR middle-end/55890
11071 * calls.c (expand_call): Check if arg_nr is valid.
11072
3f287e4b
MM
110732013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11074
11075 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11076 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
11077 documentation. Add missing '__' in front of
11078 __builtin_ia32_packssdw256.
3f287e4b 11079
1abcd5eb
AK
110802013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11081
11082 PR target/55719
11083 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11084 NO_REGS for larl operands.
11085 (s390_reload_larl_operand): Use s390_load_address instead of
11086 emit_move_insn.
11087
980d0812
RB
110882013-01-11 Richard Biener <rguenther@suse.de>
11089
11090 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11091 (verify_node_sharing): ... here.
11092 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11093
7cb9fd07
EB
110942013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11095
11096 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11097 Substitute TREECHECKING.
11098 * configure: Regenerate.
11099 * Makefile.in (TREECHECKING): New.
11100
47876a2a 111012013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
11102
11103 PR tree-optimization/44061
11104 * tree-vrp.c (extract_range_basic): Compute zero as
11105 value-range for __builtin_constant_p of function parameters.
11106
d1e082c2
RS
111072013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11108
45805f17 11109 Update copyright years.
d1e082c2 11110
f85021b0
VM
111112013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11112
9d60be38 11113 PR rtl-optimization/55672
0160442c
VM
11114 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11115 const to be eliminable.
f85021b0 11116
7a8b1ec4
DE
111172013-01-10 David Edelsohn <dje.gcc@gmail.com>
11118
11119 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11120 * configure: Regenerate.
11121
ad2e5b71
RB
111222013-01-10 Richard Biener <rguenther@suse.de>
11123
ddf9322d 11124 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 11125
ffc5b2bb
RB
111262013-01-10 Richard Biener <rguenther@suse.de>
11127
11128 PR bootstrap/55792
11129 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11130 locations for virtual PHI arguments.
11131 (rewrite_update_phi_arguments): Likewise.
11132
e1f674e4
JS
111332013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11134
11135 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11136 on to assembler.
11137
a57fc743
JJ
111382013-01-10 Jakub Jelinek <jakub@redhat.com>
11139
11140 PR tree-optimization/55921
11141 * tree-complex.c (expand_complex_asm): New function.
11142 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11143
0ff4390d
AK
111442013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11145
11146 PR target/55718
11147 * config/s390/s390.c (s390_symref_operand_p)
11148 (s390_loadrelative_operand_p): Merge the two functions.
11149 (s390_check_qrst_address, print_operand_address): Add parameters
11150 to s390_loadrelative_operand_p invokation.
11151 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11152 (s390_reload_larl_operand, s390_secondary_reload): Use
11153 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11154 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11155
6f557e0e
MS
111562013-01-09 Mike Stump <mikestump@comcast.net>
11157
11158 * dse.c (record_store): Remove unnecessary assert.
11159
7770c9e9
JH
111602013-01-09 Jan Hubicka <jh@suse.cz>
11161
11162 PR tree-optimization/55569
11163 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11164 * cfgloop.h (scale_loop_profile): Likewise.
11165
a19b1432
JH
111662013-01-09 Jan Hubicka <jh@suse.cz>
11167
11168 PR lto/45375
ddf9322d
UB
11169 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11170 functions.
a19b1432
JH
11171 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11172
9a002da8
RS
111732013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11174
11175 PR middle-end/55114
11176 * expr.h (maybe_emit_group_store): Declare.
11177 * expr.c (maybe_emit_group_store): New function.
11178 * builtins.c (expand_builtin_int_roundingfn): Call it.
11179 (expand_builtin_int_roundingfn_2): Likewise.
11180
511dcace
VM
111812013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11182
e1f2b729 11183 PR rtl-optimization/55829
511dcace
VM
11184 * lra-constraints.c (match_reload): Add code for absent output.
11185 (curr_insn_transform): Add code for reloads of matched inputs
11186 without output.
11187
7b0fe4f4
UB
111882013-01-09 Uros Bizjak <ubizjak@gmail.com>
11189
11190 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11191 attribute of movddup insn to DF.
11192 (*vec_interleave_lowv2df): Ditto.
11193 (vec_dupv2df): Ditto.
11194
870ca331
JH
111952013-01-09 Jan Hubicka <jh@suse.cz>
11196
11197 PR tree-optimiation/55875
11198 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11199 EVERY_ITERATION parameter.
7b0fe4f4 11200 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
11201 (idx_infer_loop_bounds): Similarly here.
11202 (n_of_executions_at_most): Simplify
11203 to only test for cases where statement is dominated by the
7b0fe4f4 11204 particular bound; handle correctly the "postdominance" test.
870ca331
JH
11205 (scev_probably_wraps_p): Use max loop iterations info
11206 as a global bound first.
11207
6f575fe4 112082013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
11209 Nick Clifton <nickc@redhat.com>
11210
11211 * config/v850/v850.md (cbranchsf4): New pattern.
11212 (cstoresf4): New pattern.
11213 (cbranchdf4): New pattern.
11214 (cstoredf4): New pattern.
11215 (movsicc): Disallow floating point comparisons.
11216 (cmpsf_le_insn): Fix order of operators.
11217 (cmpsf_lt_insn): Likewise.
11218 (cmpsf_eq_insn): Likewise.
11219 (cmpdf_le_insn): Likewise.
11220 (cmpdf_lt_insn): Likewise.
11221 (cmpdf_eq_insn): Likewise.
11222 (cmpsf_ge_insn): Use LE comparison.
11223 (cmpdf_ge_insn): Likewise.
11224 (cmpsf_gt_insn): Use LT comparison.
11225 (cmpdf_gt_insn): Likewise.
11226 (cmpsf_ne_insn): Delete pattern.
11227 (cmpdf_ne_insn): Delete pattern.
11228 * config/v850/v850.c (v850_gen_float_compare): Use
11229 gen_cmpdf_eq_insn for NE comparison.
11230 (v850_float_z_comparison_operator)
11231 (v850_float_nz_comparison_operator): Move from here ...
11232 * config/v850/predicates.md: ... to here. Move GT and GE
11233 comparisons into v850_float_z_comparison_operator.
11234 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11235 Delete prototype.
11236 (v850_float_nz_comparison_operator): Likewise.
11237
f0d54148
JDA
112382013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11239
11240 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11241 with calls to gen_insvsi/gen_insvdi.
11242
8f01beca
VK
112432013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11244
11245 * config/i386/i386.c (initial_ix86_tune_features): Set up
11246 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11247
2aa579ad
JJ
112482013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11249 Jakub Jelinek <jakub@redhat.com>
11250
11251 PR tree-optimization/48189
11252 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11253 If nitercst is 0, don't predict the exit edge.
11254
6edc3e32 112552013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
11256
11257 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11258 in asm_fprintf with reg_names.
11259 (aarch64_print_operand_address): Likewise.
11260 (aarch64_return_addr): Likewise.
11261 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11262
f6f94d94
JDA
112632013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11264
11265 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11266 (INT_U6_BITS): Likewise.
11267 * config/pa/predicates.md (uint6_operand): New predicate.
11268 (shift5_operand, shift6_operand): Likewise.
11269 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11270 arith32_operand.
11271 (lshrdi3): Use shift6_operand.
11272 (shrpsi4, shrpdi4): New insn patterns.
11273 (extzv): Delete expander.
11274 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11275 predicates in unamed zero extract patterns. Tighten common constraint.
11276 (extv): Delete expander.
11277 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11278 predicates in unamed sign extract patterns. Tighten common constraint.
11279 (insv): Delete expander.
11280 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11281 predicates in unamed insert patterns. Tighten common constraint.
11282 Change uint32_operand predicate to uint6_operand predicate in unamed
11283 DImode pattern to insert constant values of type 1...1xxxx.
11284
36b72910
JH
112852013-01-04 Jan Hubicka <jh@suse.cz>
11286
11287 PR tree-optimization/55823
7b0fe4f4
UB
11288 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11289 issue.
36b72910 11290
47876a2a 112912013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
11292 Uros Bizjak <ubizjak@gmail.com>
11293
11294 PR rtl-optimization/55845
11295 * df-problems.c (can_move_insns_across): Stop scanning at
11296 volatile_insn_p source instruction or give up if
11297 across_from .. across_to range contains any volatile_insn_p
11298 instructions.
11299
4369c11e
TB
113002013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11301
7b0fe4f4
UB
11302 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11303 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11304 Declare.
4369c11e 11305 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 11306 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 11307
aeb7e7c1
JJ
113082013-01-08 Jakub Jelinek <jakub@redhat.com>
11309
11310 PR fortran/55341
11311 * asan.c (asan_clear_shadow): New function.
11312 (asan_emit_stack_protection): Use it.
11313
a02ad1aa
TB
113142013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11315
11316 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11317 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11318 with tab instead of space.
11319
f90d87f5
NC
113202013-01-08 Nick Clifton <nickc@redhat.com>
11321
11322 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11323 register bank 0 at the start of an interrupt handler.
83ffd964
NC
11324 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11325 MDBH registers.
f90d87f5 11326
385eb93d
JG
113272013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11328
11329 * config/aarch64/aarch64-simd.md
11330 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11331 (aarch64_simd_bsl): Likewise.
11332 (aarch64_vcond_internal<mode>): Likewise.
11333 (vcond<mode><mode>): Likewise.
11334 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11335 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11336
4dcd1054
JG
113372013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11338
11339 * config/aarch64/aarch64-builtins.c
11340 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11341
4267a4a6
MJ
113422013-01-08 Martin Jambor <mjambor@suse.cz>
11343
11344 PR debug/55579
11345 * tree-sra.c (analyze_access_subtree): Return true also after
11346 potentially creating a debug-only replacement.
11347
5f4e6de3
JJ
113482013-01-08 Jakub Jelinek <jakub@redhat.com>
11349
3138f224
JJ
11350 PR middle-end/55890
11351 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11352
5f4e6de3
JJ
11353 PR tree-optimization/54120
11354 * tree-vrp.c (range_fits_type_p): Don't allow
11355 src_precision < precision from signed vr to unsigned_p
11356 if vr->min or vr->max is negative.
11357 (simplify_float_conversion_using_ranges): Test can_float_p
11358 against CODE_FOR_nothing.
11359
f3ef18ff
JJ
113602013-01-08 Jakub Jelinek <jakub@redhat.com>
11361 Richard Biener <rguenther@suse.de>
11362
11363 PR middle-end/55851
11364 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11365 types instead of just INTEGER_TYPE types.
11366
25c210f9
MK
113672013-01-07 Mark Kettenis <kettenis@openbsd.org>
11368
11369 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11370 TF_SIZE): Define.
f90d87f5 11371
81826a7b
SE
113722013-01-07 Steve Ellcey <sellcey@mips.com>
11373
11374 PR target/42661
11375 * config/mips/mips.opt: Change mad to mmad to match documentation.
11376
35678514
GJL
113772013-01-07 Georg-Johann Lay <avr@gjlay.de>
11378
11379 PR target/55897
11380 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11381 .progmemx.data now.
11382
e5669488
GJL
113832013-01-07 Georg-Johann Lay <avr@gjlay.de>
11384
11385 PR target/55897
11386 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11387 (avr_addrspace_t): Add .section_name field.
11388 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11389 array size.
11390 (avr_addrspace): Same. Initialize .section_name. Remove last
11391 NULL entry. Put __memx into .progmemx.data.
11392 (progmem_section_prefix): Remove.
11393 (avr_asm_init_sections): No need to initialize progmem_section.
11394 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11395 section name prefix.
11396 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11397 retrieve the progmem section.
11398 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11399 boundary to run over avr_addrspace[].
11400 (avr_register_target_pragmas): Ditto.
11401
656e6f37
JJ
114022013-01-06 Jakub Jelinek <jakub@redhat.com>
11403
11404 * varasm.c (output_constant_def_contents): For asan_protect_global
11405 protected strings, adjust DECL_ALIGN if needed, before testing for
11406 anchored symbols.
11407 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11408 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11409 normal decls.
11410 (output_object_block): For asan protected decls, emit asan padding
11411 after their contents.
11412 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11413 (asan_finish_file): Test it here instead.
11414
6edc3e32
UB
114152013-01-07 Nick Clifton <nickc@redhat.com>
11416 Matthias Klose <doko@debian.org>
11417 Doug Kwan <dougkwan@google.com>
11418 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
11419
11420 PR driver/55470
11421 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11422
11423 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11424
11425 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11426
7b0fe4f4 11427 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
11428
11429 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11430
2a095093
GJL
114312013-01-07 Georg-Johann Lay <avr@gjlay.de>
11432
f3b503f4 11433 PR target/54461
2a095093
GJL
11434 * doc/install.texi (Cross-Compiler-Specific Options): Document
11435 --with-avrlibc.
11436
383f9b34
TB
114372013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11438
11439 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11440 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11441 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11442 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11443 vqmovun_high_s64): Fix source operand number and update copyright.
11444
3626621a
RB
114452013-01-07 Richard Biener <rguenther@suse.de>
11446
11447 PR middle-end/55890
11448 * gimple.h (gimple_call_builtin_p): New overload.
11449 * gimple.c (validate_call): New function.
11450 (gimple_call_builtin_p): Likewise.
11451 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11452 Use gimple_call_builtin_p.
11453 (find_func_clobbers): Likewise.
11454 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11455 (strlen_optimize_stmt): Likewise.
11456
8b2ea410
JG
114572013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11458
11459 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11460 (vld1q_dup_*): Likewise.
11461 (vld1_*): Likewise.
11462 (vld1q_*): Likewise.
11463 (vld1_lane_*): Likewise.
11464 (vld1q_lane_*): Likewise.
11465
9713d329
RB
114662013-01-07 Richard Biener <rguenther@suse.de>
11467
11468 * lto-streamer.h (LTO_minor_version): Bump to 2.
11469
3520f7cc
JG
114702013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11471
11472 * config/aarch64/aarch64-protos.h
11473 (aarch64_const_double_zero_rtx_p): Rename to...
11474 (aarch64_float_const_zero_rtx_p): ...this.
11475 (aarch64_float_const_representable_p): New.
11476 (aarch64_output_simd_mov_immediate): Likewise.
11477 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11478 move immediate case.
11479 * config/aarch64/aarch64.c
11480 (aarch64_const_double_zero_rtx_p): Rename to...
11481 (aarch64_float_const_zero_rtx_p): ...this.
11482 (aarch64_print_operand): Allow printing of new constants.
11483 (aarch64_valid_floating_const): New.
11484 (aarch64_legitimate_constant_p): Check for valid floating-point
11485 constants.
11486 (aarch64_simd_valid_immediate): Likewise.
11487 (aarch64_vect_float_const_representable_p): New.
11488 (aarch64_float_const_representable_p): Likewise.
11489 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11490 (aarch64_output_simd_mov_immediate): New.
11491 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11492 (*movdf_aarch64): Likewise.
11493 * config/aarch64/constraints.md (Ufc): New.
11494 (Y): call aarch64_float_const_zero_rtx.
11495 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11496
e167c04d
RB
114972013-01-07 Richard Biener <rguenther@suse.de>
11498
11499 PR tree-optimization/55888
11500 PR tree-optimization/55862
11501 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11502 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11503 not if it is contained therein.
11504
0139aaab
GJL
115052013-01-07 Georg-Johann Lay <avr@gjlay.de>
11506
11507 * config/avr/t-avr: Typo.
11508
4a176b23
GJL
115092013-01-07 Georg-Johann Lay <avr@gjlay.de>
11510
11511 PR55243
11512 * config/avr/t-avr: Don't automatically rebuild
11513 $(srcdir)/config/avr/t-multilib
11514 $(srcdir)/config/avr/avr-tables.opt
11515 $(srcdir)/doc/avr-mmcu.texi
11516 (avr-mcus): New phony target to build them on request.
11517 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11518 * avr/avr-mcus.def: Adjust comments.
11519
c7afdc98
UB
115202013-01-07 Uros Bizjak <ubizjak@gmail.com>
11521
11522 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11523
1ab05c31
RS
115242013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11525
11526 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11527
488e3acc
RS
115282013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11529
11530 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11531
a89599d2
DE
115322013-01-05 David Edelsohn <dje.gcc@gmail.com>
11533
11534 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11535 to generate profiling.
11536 * config/rs6000/aix64.h (LIB_SPEC): Same.
11537
70f09188
AP
115382013-01-04 Andrew Pinski <apinski@cavium.com>
11539
11540 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11541 New function.
11542 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11543
918d445f
UB
115442013-01-04 Uros Bizjak <ubizjak@gmail.com>
11545
11546 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11547 unconditionally.
11548 (ix86_expand_move): Ditto.
11549 (ix86_zero_extend_to_Pmode): Ditto.
11550 (ix86_expand_call): Ditto.
11551 (ix86_expand_special_args_builtin): Ditto.
11552 (ix86_expand_builtin): Ditto.
11553
361618ec
RB
115542013-01-04 Richard Biener <rguenther@suse.de>
11555
11556 PR tree-optimization/55862
11557 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11558 translating them through PHI nodes.
11559
87eab554
MJ
115602013-01-04 Martin Jambor <mjambor@suse.cz>
11561
11562 PR tree-optimization/55755
11563 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11564 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11565
33879b9f
MP
115662013-01-04 Marek Polacek <polacek@redhat.com>
11567
11568 PR middle-end/55859
11569 * opts.c (default_options_optimization): Clarify error message.
11570
3068819a
RB
115712013-01-04 Richard Biener <rguenther@suse.de>
11572
11573 PR middle-end/55863
11574 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11575 reassociation.
11576
0e4ae794
JDA
115772013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11578
11579 PR target/53789
11580 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
11581 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11582 references.
0e4ae794 11583
65c88cef
RH
115842013-01-03 Richard Henderson <rth@redhat.com>
11585
11586 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11587 after eliminating TLS symbols.
11588
8ac16127
MG
115892013-01-03 Marc Glisse <marc.glisse@inria.fr>
11590
11591 PR bootstrap/50167
11592 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11593 * graphite-poly.c (debug_gmp_value): Likewise.
11594
bb664f09
UB
115952013-01-03 Uros Bizjak <ubizjak@gmail.com>
11596
11597 PR target/55712
11598 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11599 selected code model, define __code_mode_small__, __code_model_medium__,
11600 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11601 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11602 xchg temporary register with %k. Declare temporary register as
11603 early clobbered.
11604 [__x86_64__]: For medium and large code models, preserve %rbx register.
11605
bcf1ef00
RB
116062013-01-03 Richard Biener <rguenther@suse.de>
11607
0506634a 11608 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
11609 (dump_subscript): Adjust.
11610 (finalize_ddr_dependent): Do not dump redundant info.
11611 (analyze_siv_subscript): Adjust.
11612 (subscript_dependence_tester): Likewise.
11613 (compute_affine_dependence): Likewise.
11614
59fd17e3
RB
116152013-01-03 Richard Biener <rguenther@suse.de>
11616
11617 Revert
11618 2013-01-03 Richard Biener <rguenther@suse.de>
11619
11620 PR tree-optimization/55857
11621 * tree-vect-stmts.c (vectorizable_load): Do not setup
11622 re-alignment for invariant loads.
11623
11624 2013-01-02 Richard Biener <rguenther@suse.de>
11625
11626 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11627 invariant load do not generate a vector load from the scalar location.
59fd17e3 11628
595c2679
RB
116292013-01-03 Richard Biener <rguenther@suse.de>
11630
11631 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11632 for not vectorizing.
11633 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11634 not build INDIRECT_REFs, call get_name once only.
11635 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11636 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11637
90bb7d7a
RB
116382013-01-03 Richard Biener <rguenther@suse.de>
11639
11640 PR tree-optimization/55857
11641 * tree-vect-stmts.c (vectorizable_load): Do not setup
11642 re-alignment for invariant loads.
11643
f09b77ca
RB
116442013-01-03 Richard Biener <rguenther@suse.de>
11645
11646 PR lto/55848
11647 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11648 prefer a built-in decl.
11649
3461a16e
JJ
116502013-01-03 Jakub Jelinek <jakub@redhat.com>
11651
df8e2b4f
JJ
11652 * gcc.c (process_command): Update copyright notice dates.
11653 * gcov.c (print_version): Likewise.
11654 * gcov-dump.c (print_version): Likewise.
11655
3461a16e
JJ
11656 PR rtl-optimization/55838
11657 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11658 iv0.step, iv1.step and step.
11659
8b5546d6
JJ
116602013-01-03 Jakub Jelinek <jakub@redhat.com>
11661 Marc Glisse <marc.glisse@inria.fr>
11662
11663 PR tree-optimization/55832
11664 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11665 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11666 integer_{one,zero}_node.
11667
8ab1d2e9
JJ
116682013-01-03 Jakub Jelinek <jakub@redhat.com>
11669
11670 PR debug/54402
11671 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11672 * var-tracking.c (reverse_op): Don't add reverse ops to
11673 VALUEs that have already
0506634a 11674 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 11675
5b9ad1d4
GP
116762013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11677
11678 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11679
e25a6711
TJ
116802013-01-02 Teresa Johnson <tejohnson@google.com>
11681
11682 * dumpfile.c (dump_loc): Print filename with location.
11683 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11684 new location_t parameter to emit complete unroll message with
11685 new dump framework.
11686 (canonicalize_loop_induction_variables): Compute loops location
11687 and pass to try_unroll_loop_completely.
11688 * loop-unroll.c (report_unroll_peel): New function.
11689 (peel_loops_completely): Use new dump format with location
11690 for main dumpfile message, and invoke report_unroll_peel on success.
11691 (decide_unrolling_and_peeling): Ditto.
11692 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11693 by report_unroll_peel.
11694 (decide_peel_completely): Ditto.
11695 (decide_unroll_constant_iterations): Ditto.
11696 (decide_unroll_runtime_iterations): Ditto.
11697 (decide_peel_simple): Ditto.
11698 (decide_unroll_stupid): Ditto.
11699 * cfgloop.c (get_loop_location): New function.
11700 * cfgloop.h (get_loop_location): Declare.
11701
77878621
ST
117022013-01-02 Sriraman Tallam <tmsriram@google.com>
11703
11704 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11705 NULL.
11706
9e65d03e
JDA
117072013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11708
11709 PR middle-end/55198
11710 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11711 BLKmode objects when EXPAND_MEMORY is specified.
11712
6a7da30f
ST
117132013-01-02 Sriraman Tallam <tmsriram@google.com>
11714
11715 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11716 in loop predicate.
11717 (fold_builtin_cpu): Do not share cpu model decls across statements.
11718
e78167f2
JM
117192013-01-02 Jason Merrill <jason@redhat.com>
11720
11721 PR c++/55804
11722 * tree.c (build_array_type_1): Revert earlier change.
11723
8c075fb4
YZ
117242013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11725
11726 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11727 "cortex-a57".
11728 * config/aarch64/aarch64-tune.md: Re-generate.
11729
0682ed3e
RB
117302013-01-02 Richard Biener <rguenther@suse.de>
11731
11732 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11733 invariant load do not generate a vector load from the scalar location.
0682ed3e 11734
b8f6a302
RB
117352013-01-02 Richard Biener <rguenther@suse.de>
11736
11737 PR bootstrap/55784
11738 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11739 * configure: Regenerate.
11740
04b80dbb
RS
117412013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11742
11743 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11744 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11745 (expand_builtin_int_roundingfn_2): Keep the original target around
11746 for the fallback case.
11747
635b0b0c
RS
117482013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11749
11750 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11751 to be clear for sign changes.
11752
42d57399
JH
117532013-01-01 Jan Hubicka <jh@suse.cz>
11754
11755 * ipa-inline-analysis.c: Fix formatting.
11756
5bb6669d
JJ
117572013-01-01 Jakub Jelinek <jakub@redhat.com>
11758
11759 PR tree-optimization/55831
11760 * tree-vect-loop.c (get_initial_def_for_induction): Use
11761 gsi_after_labels instead of gsi_start_bb.
ad41bd84 11762\f
86a2db33 11763Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
11764
11765Copying and distribution of this file, with or without modification,
11766are permitted in any medium without royalty provided the copyright
11767notice and this notice are preserved.