]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR fortran/37336 ([F03] Finish derived-type finalization)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
aadaf24e
KT
12013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 * rtl.def: Add extra fourth optional field to define_cond_exec.
4 * gensupport.c (process_one_cond_exec): Process attributes from
5 define_cond_exec.
6 * doc/md.texi: Document fourth field in define_cond_exec.
7
0cd9e9ee
EB
82013-06-04 Eric Botcazou <ebotcazou@adacore.com>
9
10 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
11 out the processing order as in store_bit_field_1.
12
cb0f665d
JH
132013-06-04 Jan Hubicka <jh@suse.cz>
14
15 PR middle-end/57500
16 * cgraphunit.c (cgraph_process_same_body_aliases): Create
17 non-VAR_DECL node if it does not exist yet.
18
53984b9b
RS
192013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
20
21 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
22 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24 target_cpu_default setting.
25
5d318fd4
TJ
262013-06-03 Teresa Johnson <tejohnson@google.com>
27
28 * dumpfile.c (opt_info_switch_p): Change -fopt-info
29 default to -fopt-info=optimized instead of all.
30 * doc/invoke.texi: Ditto.
31 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
32 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
33 (execute_vect_slp): Emit BB vectorization success under
34 MSG_OPTIMIZED_LOCATIONS.
35 * tree-vect-slp.c (vect_slp_transform_bb): Change
36 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
37 * tree-vect-loop.c (vect_transform_loop): Ditto.
38
ec3af349
JM
392013-06-03 Jason Merrill <jason@redhat.com>
40
41 PR c++/57415
42 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
43 Use TARGET_EXPR for C++.
44
1baf9159
JJ
452013-06-03 Jakub Jelinek <jakub@redhat.com>
46
47 PR rtl-optimization/57268
0cd9e9ee 48 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
49 if DEBUG_INSN_P (insn).
50
51 Reapply
52 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
53
54 PR rtl-optimization/57268
55 * sched-deps.c (sched_analyze_2): Flush dependence lists if
56 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
57
0f1d3965
YR
582013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
59
60 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
61 (ix86_avoid_lea_for_addr): Likewise.
62 (exact_dependency_1): Likewise.
63 (ix86_adjust_cost): Likewise.
64 (swap_top_of_ready_list): Fix formatting and !reload_completed check
65 removed.
66 (do_reorder_for_imul): Fix typo, formatting and
67 !reload_completed check removed.
68 (ix86_sched_reorder): Fix typo and formatting.
69 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
70 list.
71
3bc30db4
SN
722013-06-03 Sofiane Naci <sofiane.naci@arm.com>
73
74 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
75
19cc6fac
EB
762013-06-03 Eric Botcazou <ebotcazou@adacore.com>
77
78 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
79 <STRING_CST>: Likewise.
80 <VECTOR_CST>: Likewise.
81
c68a6e08
JW
822013-06-01 Janus Weil <janus@gcc.gnu.org>
83 Mikael Morin <mikael@gcc.gnu.org>
84
85 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
86 * config.in: Regenerated.
87 * configure: Regenerated.
88
38e55e5c
JH
892013-06-01 Jan Hubicka <jh@suse.cz>
90
91 PR middle-end/57366
92 * cgraphunit.c (compile): When weakref is not supported,
93 set up transparent aliases before final output pass.
94 * varasm.c (assemble_alias): Do not try to do it here.
95
eb51d2ff
JH
962013-06-01 Jan Hubicka <jh@suse.cz>
97
98 PR middle-end/57467
99 * passes.c (for_per_function): Skip unanalyzed functions.
100
40a7fe1e
JH
1012013-06-01 Jan Hubicka <jh@suse.cz>
102
103 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
104 (lto_symtab_merge_symbols_1): ... this one.
105 (lto_symtab_merge_cgraph_nodes): Rename to ...
106 (lto_symtab_merge_symbols): ... this one; simplify.
107 * cgraph.c (same_body_aliases_done): Rename to ...
108 (cpp_implicit_aliases_done): ... this one.
109 (cgraph_create_function_alias): Update.
110 (cgraph_same_body_alias): Update.
111 (dump_cgraph_node): Remove alias dumping; simplify
112 thunk dumping.
113 (verify_edge_corresponds_to_fndecl): Simplify.
114 * cgraph.h (symtab_node_base): Add cpp_implicit_alias,
115 alias_target.
116 (cgraph_node): Remove same_body_alias.
117 (varpool_node): Remove alias_of and extra_name_alias.
118 (same_body_aliases_done): Rename to ..
119 (cpp_implicit_aliases_done): ... this one.
120 (symtab_alias_ultimate_target): Add default parameter.
121 (symtab_resolve_alias): New function.
122 (fixup_same_cpp_alias_visibility): Declare.
123 (cgraph_function_node): Add default parameter.
124 (cgraph_node_asm_name): Likewise.
125 (cgraph_function_or_thunk_node): Add default parameter; do
126 not ICE when it is NULL.
127 (varpool_variable_node): Likewise.
128 * tree-emutls.c (create_emultls_var): Update.
129 (ipa_lower_emutls): Update.
130 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
131 (cgraph_reset_node): Reset alias info.
132 (cgraph_finalize_function): Update.
133 (fixup_same_cpp_alias_visibility): Move to symtab.c.
134 (analyze_function): Simplify.
135 (cgraph_process_same_body_aliases): Simplify.
136 (analyze_functions): Fixup same body aliases.
137 (handle_alias_pairs): Simplify.
138 (assemble_thunk): Update.
139 (assemble_thunks_and_aliases): Update.
140 (output_weakrefs): Rewrite.
141 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
142 (lto_output_varpool_node): Likewise.
143 (compute_ltrans_boundary): Remve assert.
144 (get_alias_symbol): New functoin.
145 (input_node): Rewrite alias handling.
146 (input_varpool_node): Likewise.
147 * ipa-pure-const.c (propagate_pure_const): Fix formating.
148 * ipa.c (process_references): Handle weakrefs correctly.
149 (symtab_remove_unreachable_nodes): Likewise.
150 * trans-mem.c (get_cg_data): Update.
151 (ipa_tm_create_version_alias): Update.
152 (ipa_tm_execute): Update.
153 * symtab.c (dump_symtab_base): Dump aliases.
154 (verify_symtab_base): Verify aliases.
155 (symtab_node_availability): New function.
156 (symtab_alias_ultimate_target): Simplify.
157 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
158 handle all the fixup cases.
159 (symtab_resolve_alias): New function.
160 * passes.c (ipa_write_summaries): Handle weakrefs.
161 * varpool.c (varpool_analyze_node): Simplify.
162 (assemble_aliases): Update.
163 (varpool_create_variable_alias): Simplify.
164 (varpool_extra_name_alias): Simplify.
165 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
166 (lto_symtab_merge_symbols): ... this one.
167
21759881
DT
1682013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
169
170 Revert
171 PR rtl-optimization/57268
172 * sched-deps.c (sched_analyze_2): Flush dependence lists if
173 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
174
daf4e940
TB
1752013-06-01 Tobias Burnus <burnus@net-b.de>
176
177 Partially reverted:
178 2013-05-31 Tobias Burnus <burnus@net-b.de>
179
180 PR middle-end/57073
181 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
182 further up.
183
c359d8d0
DT
1842013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
185
186 PR rtl-optimization/57268
187 * sched-deps.c (sched_analyze_2): Flush dependence lists if
188 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
189
4172215d
EB
1902013-05-31 Eric Botcazou <ebotcazou@adacore.com>
191
192 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
193 unordered comparison operators when -fno-trapping-math is in effect
194 on the e500.
195 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
196 and implement unordered comparison operators properly on the e500.
197
a8c50132
EB
1982013-05-31 Eric Botcazou <ebotcazou@adacore.com>
199
200 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
201 for constant scalar integers.
202 (simplify_relational_operation_1): Likewise.
203
44626634
SB
2042013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
205
206 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
207 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
208 Fix comment.
209
55805e54
YR
2102013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
211 Igor Zamyatin <igor.zamyatin@intel.com>
212
213 Silvermont (SLM) architecture performance tuning.
214 * config/i386/i386.h (enum ix86_tune_indices): Add
215 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
216 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
217
218 * config/i386/i386.c (initial_ix86_tune_features)
219 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
220 (ix86_lea_outperforms): Handle Silvermont tuning.
221 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
222 call.
223 (ix86_use_lea_for_mov): Likewise.
224 (ix86_avoid_lea_for_addr): Likewise.
225 (ix86_lea_for_add_ok): Likewise.
226 (exact_dependency_1): New function.
227 (exact_store_load_dependency): Likewise.
228 (ix86_adjust_cost): Handle Silvermont tuning.
229 (do_reoder_for_imul): Likewise.
230 (swap_top_of_ready_list): New function.
231 (ix86_sched_reorder): Changed to handle Silvermont tuning.
232
233 * config/i386/i386.md (peepholes that split memory operand in fp
234 converts): New.
235
e19c9de2
MS
2362013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
237
238 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
239 Remove un-necessary braces.
240
38e6c9a6
MS
2412013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
242
243 * config/aarch64/aarch64.c (aarch64_classify_symbol):
244 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
245
e3530904
TB
2462013-05-31 Tobias Burnus <burnus@net-b.de>
247
248 PR middle-end/57073
249 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
250 further up.
251
b6af05a9
KT
2522013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
253
254 PR target/56315
255 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
256 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
257 * config/arm/neon.md (iordi3_neon): Remove.
258 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
259 * config/arm/predicates.md (imm_for_neon_logic_operand):
260 Move to earlier in the file.
261 (neon_logic_op2): Likewise.
262 (arm_iordi_operand_neon): New predicate.
263
f800c166
RB
2642013-05-31 Richard Biener <rguenther@suse.de>
265
266 PR tree-optimization/57478
267 PR tree-optimization/57453
268 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
269 are life as well.
270
e571fa59
KP
2712013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
272
273 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
274 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
275
0fa6e0ef
TB
2762013-05-30 Tobias Burnus <burnus@net-b.de>
277 Thomas Koenig <tkoenig@gcc.gnu.org>
278
279 PR middle-end/57073
280 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
281 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
282
4688ddf5
SB
2832013-05-30 Steven Bosscher <steven@gcc.gnu.org>
284
0fa6e0ef 285 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 286
3b9ceb4b
VM
2872013-05-30 Vladimir Makarov <vmakarov@redhat.com>
288
289 * target.def (register_usage_leveling_p): New hook.
290 * targhooks.c (default_register_usage_leveling_p): New.
291 * targhooks.h (default_register_usage_leveling_p): New prototype.
292 * lra-assigns.c (register_usage_leveling_p): Use the hook.
293 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
294 * doc/tm.texi: Update.
295 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
296
65f9e789
IB
2972013-05-30 Ian Bolton <ian.bolton@arm.com>
298
299 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
300 (*insv_reg<mode>): New define_insn.
301
ca035367
JR
3022013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
303
304 PR rtl-optimization/57439
305 * postreload.c (move2add_valid_value_p): Check that we have
306 a zero subreg_regno_offset when accessing the register in
307 the requested mode.
308
0b871ccf
YR
3092013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
310 Igor Zamyatin <igor.zamyatin@intel.com>
311
312 Silvermont (SLM) architecture pipeline model, tuning and
313 insn selection.
314 * config.gcc: Add slm config options and target.
315
316 * config/i386/slm.md: New.
317
318 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
319
320 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
321 PROCESSOR_SLM.
322 (ix86_target_macros_internal): Likewise.
323
324 * gcc/config/i386/i386.c (slm_cost): New cost.
325 (m_SLM): New macro flag.
326 (initial_ix86_tune_features): Set m_SLM.
327 (x86_accumulate_outgoing_args): Likewise.
328 (x86_arch_always_fancy_math_387): Likewise.
329 (processor_target_table): Add slm cost.
330 (cpu_names): Add slm cpu name.
331 (x86_option_override_internal): Set SLM ISA.
332 (ix86_issue_rate): New case PROCESSOR_SLM.
333 (ia32_multipass_dfa_lookahead): Likewise.
334 (fold_builtin_cpu): Add slm.
335
336 * config/i386/i386.h (TARGET_SLM): New target macro.
337 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
338 (processor_type): Add PROCESSOR_SLM.
339
340 * config/i386/i386.md (cpu): Add new value "slm".
341 (slm.md): Include slm.md.
342
24d5b097
XG
3432013-05-30 Bernd Schmidt <bernds@codesourcery.com>
344 Zhenqiang Chen <zhenqiang.chen@linaro.org>
345
346 * config/arm/arm-protos.h: Add and update function protos.
347 * config/arm/arm.c (use_simple_return_p): New added.
348 (thumb2_expand_return): Check simple_return flag.
349 * config/arm/arm.md: Add simple_return and conditional simple_return.
350 * config/arm/iterators.md: Add iterator for return and simple_return.
351
c1cccc15
ZC
3522013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
353
354 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
355 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
356 (arm_emit_vfp_multi_reg_pop): Likewise.
357 (thumb2_emit_ldrd_pop): Likewise.
358 (arm_expand_epilogue): Add misc REG_CFA notes.
359 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
360
3a4f280b
LC
3612013-05-29 Lawrence Crowl <crowl@google.com>
362
363 * config/arm/t-arm: Update for below.
364
365 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
366 Change type to hash_table. Update dependent calls and types.
367
368 * config/i386/t-cygming: Update for below.
369
370 * config/i386/t-interix: Update for below.
371
372 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
373 Change type to hash_table. Update dependent calls and types.
374 (i386_find_on_wrapper_list::wrappers): Likewise.
375
376 * config/ia64/t-ia64: Update for below.
377
378 * config/ia64/ia64.c (bundle_state_table):
379 Change type to hash_table. Update dependent calls and types.
380
381 * config/mips/mips.c (mips_reorg_process_insns::htab):
382 Change type to hash_table. Update dependent calls and types.
383
384 * config/sol2.c (solaris_comdat_htab):
385 Change type to hash_table. Update dependent calls and types.
386
387 * config/t-sol2: Update for above.
388
1388a0e3
TJ
3892013-05-29 Teresa Johnson <tejohnson@google.com>
390
391 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
392 functions are not yet marked as defined.
393
a5965b52
MM
3942013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
395 Pat Haugen <pthaugen@us.ibm.com>
396 Peter Bergner <bergner@vnet.ibm.com>
397
398 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
399 instructions.
400 (VEC_A): Likewise.
401 (VEC_C): Likewise.
402 (vrotl<mode>3): Likewise.
403 (vashl<mode>3): Likewise.
404 (vlshr<mode>3): Likewise.
405 (vashr<mode>3): Likewise.
406
407 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
408 support for power8 V2DI builtins.
409
410 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
411 power8 V2DI builtins.
412 (vupkhsw): Likewise.
413 (vupklsw): Likewise.
414 (vaddudm): Likewise.
415 (vminsd): Likewise.
416 (vmaxsd): Likewise.
417 (vminud): Likewise.
418 (vmaxud): Likewise.
419 (vpkudum): Likewise.
420 (vpksdss): Likewise.
421 (vpkudus): Likewise.
422 (vpksdus): Likewise.
423 (vrld): Likewise.
424 (vsld): Likewise.
425 (vsrd): Likewise.
426 (vsrad): Likewise.
427 (vsubudm): Likewise.
428 (vcmpequd): Likewise.
429 (vcmpgtsd): Likewise.
430 (vcmpgtud): Likewise.
431 (vcmpequd_p): Likewise.
432 (vcmpgtsd_p): Likewise.
433 (vcmpgtud_p): Likewise.
434 (vupkhsw): Likewise.
435 (vupklsw): Likewise.
436 (vaddudm): Likewise.
437 (vmaxsd): Likewise.
438 (vmaxud): Likewise.
439 (vminsd): Likewise.
440 (vminud): Likewise.
441 (vpksdss): Likewise.
442 (vpksdus): Likewise.
443 (vpkudum): Likewise.
444 (vpkudus): Likewise.
445 (vrld): Likewise.
446 (vsld): Likewise.
447 (vsrad): Likewise.
448 (vsrd): Likewise.
449 (vsubudm): Likewise.
450
451 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
452 support for power8 V2DI instructions.
453
454 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
455 power8 V2DI instructions. Combine pack and unpack insns to use an
456 iterator for each mode. Check whether a particular mode supports
457 Altivec instructions instead of just checking TARGET_ALTIVEC.
458 (UNSPEC_VPKUWUM): Likewise.
459 (UNSPEC_VPKSHSS): Likewise.
460 (UNSPEC_VPKSWSS): Likewise.
461 (UNSPEC_VPKUHUS): Likewise.
462 (UNSPEC_VPKSHUS): Likewise.
463 (UNSPEC_VPKUWUS): Likewise.
464 (UNSPEC_VPKSWUS): Likewise.
465 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
466 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
467 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
468 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
469 (UNSPEC_VUPKHSB): Likewise.
470 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
471 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
472 (UNSPEC_VUPKHSH): Likewise.
473 (UNSPEC_VUPKLSB): Likewise.
474 (UNSPEC_VUPKLSH): Likewise.
475 (VI2): Likewise.
476 (VI_char): Likewise.
477 (VI_scalar): Likewise.
478 (VI_unit): Likewise.
479 (VP): Likewise.
480 (VP_small): Likewise.
481 (VP_small_lc): Likewise.
482 (VU_char): Likewise.
483 (add<mode>3): Likewise.
484 (altivec_vaddcuw): Likewise.
485 (altivec_vaddu<VI_char>s): Likewise.
486 (altivec_vadds<VI_char>s): Likewise.
487 (sub<mode>3): Likewise.
488 (altivec_vsubcuw): Likewise.
489 (altivec_vsubu<VI_char>s): Likewise.
490 (altivec_vsubs<VI_char>s): Likewise.
491 (altivec_vavgs<VI_char>): Likewise.
492 (altivec_vcmpbfp): Likewise.
493 (altivec_eq<mode>): Likewise.
494 (altivec_gt<mode>): Likewise.
495 (altivec_gtu<mode>): Likewise.
496 (umax<mode>3): Likewise.
497 (smax<mode>3): Likewise.
498 (umin<mode>3): Likewise.
499 (smin<mode>3): Likewise.
500 (altivec_vpkuhum): Likewise.
501 (altivec_vpkuwum): Likewise.
502 (altivec_vpkshss): Likewise.
503 (altivec_vpkswss): Likewise.
504 (altivec_vpkuhus): Likewise.
505 (altivec_vpkshus): Likewise.
506 (altivec_vpkuwus): Likewise.
507 (altivec_vpkswus): Likewise.
508 (altivec_vpks<VI_char>ss): Likewise.
509 (altivec_vpks<VI_char>us): Likewise.
510 (altivec_vpku<VI_char>us): Likewise.
511 (altivec_vpku<VI_char>um): Likewise.
512 (altivec_vrl<VI_char>): Likewise.
513 (altivec_vsl<VI_char>): Likewise.
514 (altivec_vsr<VI_char>): Likewise.
515 (altivec_vsra<VI_char>): Likewise.
516 (altivec_vsldoi_<mode>): Likewise.
517 (altivec_vupkhsb): Likewise.
518 (altivec_vupkhs<VU_char>): Likewise.
519 (altivec_vupkls<VU_char>): Likewise.
520 (altivec_vupkhsh): Likewise.
521 (altivec_vupklsb): Likewise.
522 (altivec_vupklsh): Likewise.
523 (altivec_vcmpequ<VI_char>_p): Likewise.
524 (altivec_vcmpgts<VI_char>_p): Likewise.
525 (altivec_vcmpgtu<VI_char>_p): Likewise.
526 (abs<mode>2): Likewise.
527 (vec_unpacks_hi_v16qi): Likewise.
528 (vec_unpacks_hi_v8hi): Likewise.
529 (vec_unpacks_lo_v16qi): Likewise.
530 (vec_unpacks_hi_<VP_small_lc>): Likewise.
531 (vec_unpacks_lo_v8hi): Likewise.
532 (vec_unpacks_lo_<VP_small_lc>): Likewise.
533 (vec_pack_trunc_v8h): Likewise.
534 (vec_pack_trunc_v4si): Likewise.
535 (vec_pack_trunc_<mode>): Likewise.
536
537 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
538 V2DI builtins.
539 (vec_vmaxsd): Likewise.
540 (vec_vmaxud): Likewise.
541 (vec_vminsd): Likewise.
542 (vec_vminud): Likewise.
543 (vec_vpksdss): Likewise.
544 (vec_vpksdus): Likewise.
545 (vec_vpkudum): Likewise.
546 (vec_vpkudus): Likewise.
547 (vec_vrld): Likewise.
548 (vec_vsld): Likewise.
549 (vec_vsrad): Likewise.
550 (vec_vsrd): Likewise.
551 (vec_vsubudm): Likewise.
552 (vec_vupkhsw): Likewise.
553 (vec_vupklsw): Likewise.
554
e70670cf
JH
5552013-05-29 Jan Hubicka <jh@suse.cz>
556
557 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
558 flags; reorder rest of fields in more consistent way.
559 (varpool_node): Remove analyzed, finalized and alias.
560 (cgraph_ndoe): Likewise.
561 (symtab_alias_ultimate_target): New function.
562 (cgraph_function_node): Move offline.
563 (cgraph_reset_node): Declare.
564 (cgraph_comdat_can_be_unshared_p): Remove.
565 (varpool_remove_initializer): Declare.
566 (varpool_first_defined_variable, varpool_next_defined_variable
567 cgraph_first_defined_function, cgraph_next_defined_function): Update.
568 (cgraph_function_with_gimple_body_p): Update.
569 (varpool_all_refs_explicit_p): Update.
570 (symtab_alias_target): New function.
571 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
572 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
573 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
574 (varpool_variable_node): Likewise.
575 * cgraph.c (cgraph_create_function_alias): Update.
576 (cgraph_add_thunk): Update.
577 (cgraph_remove_node): Update.
578 (dump_cgraph_node): Do not dump removed flags.
579 (cgraph_function_body_availability): Update.
580 (cgraph_propagate_frequency): Update.
581 (verify_cgraph_node): Check sanity of local flag.
582 (cgraph_function_node): Move here from cgraph.h; revamp for
583 cgraph_function_or_thunk_node.
584 * lto-symtab.c (lto_varpool_replace_node): Update.
585 (lto_symtab_resolve_can_prevail_p): Update.
586 (lto_symtab_merge_cgraph_nodes): Update.
587 * ipa-cp.c (determine_versionability, initialize_node_lattices,
588 propagate_constants_accross_call, devirtualization_time_bonus,
589 ipcp_propagate_stage): Update.
590 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
591 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
592 * ipa-reference.c (propagate): Update.
593 (write_node_summary_p): Update.
594 * toplev.c (wrapup_global_declaration_2): Update.
595 * cgraphunit.c (cgraph_analyze_function): Rename to ...
596 (analyze_function) ... this one.
597 (cgraph_process_new_functions): Update.
598 (cgraph_reset_node): Export.
599 (cgraph_finalize_function): Update.
600 (cgraph_add_new_function): Update.
601 (process_function_and_variable_attributes): Update.
602 (varpool_finalize_decl): Update.
603 (symbol_finalized): Remove.
604 (symbol_finalized_and_needed): Rename to ...
605 (symbol_defined_and_needed): ... update.
606 (cgraph_analyze_functions): Update.
607 (handle_alias_pairs): Update.
608 (mark_functions_to_output): Update.
609 (assemble_thunk): Update.
610 (output_in_order): Update.
611 (output_weakrefs): Update.
612 (finalize_compilation_unit): Update.
613 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
614 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
615 input_node, input_varpool_node): Update.
616 * dbxout.c (dbxout_expand_expr): Update.
617 * cgraphclones.c (cgraph_clone_node): Update.
618 (cgraph_copy_node_for_versioning): Update.
619 (cgraph_materialize_clone): Update.
620 (cgraph_materialize_all_clones): Update.
621 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
622 propagate_pure_const, propagate_nothrow): Update.
623 * lto-streamer-out.c (lto_output, write_symbol): Update.
624 * ipa-utils.c (ipa_reverse_postorder): Update.
625 * ipa-inline.c (can_inline_edge_p): Update.
626 (update_caller_keys, ipa_inline): Update.
627 * dwarf2out.c (reference_to_unused,
628 premark_types_used_by_global_vars_helper): Update.
629 * tree-eh.c (tree_could_trap_p): Update.
630 * ipa-split.c (consider_split, execute_split_functions): Update.
631 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
632 has_addr_references_p): Update;
633 move ahead in file for better readability.
634 (process_references): Simplify.
635 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
636 bodies are removed.
637 (cgraph_comdat_can_be_unshared_p): Make static.
638 (cgraph_externally_visible_p): Update.
639 (varpool_externally_visible_p): Update.
640 (function_and_variable_visibility): Update.
641 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
642 ipa_tm_mark_force_output_node): Update.
643 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
644 estimate_edge_devirt_benefit, inline_generate_summary,
645 inline_write_summary): Update.
646 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
647 * ipa-prop.c (ipa_compute_jump_functions): Update.
648 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
649 read_replacements_section): Update.
650 * varasm.c (mark_decl_referenced): Update.
651 (assemble_alias, dump_tm_clone_pairs): Update.
652 * tree-inline.c (copy_bb): Update.
653 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
654 Update.
655 * symtab.c (dump_symtab_base): Print new flags.
656 (verify_symtab_base): Verify new flags.
657 (symtab_alias_ultimate_target): New function.
658 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
659 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
660 Update.
661 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
662 * i386.c (ix86_get_function_versions_dispatcher,
663 ix86_generate_version_dispatcher_body): Update.
664 (fold_builtin_cpu): Use varpool_add_new_variable.
665 * varpool.c (varpool_remove_initializer): Break out from ...
666 (varpool_remove_node): ... this one.
667 (dump_varpool_node, varpool_node_for_asm,
668 cgraph_variable_initializer_availability, varpool_analyze_node,
669 varpool_assemble_decl, varpool_remove_unreferenced_decls,
670 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
671
182802ad
JH
6722013-05-29 Jan Hubicka <jh@suse.cz>
673
674 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
675
8190b609
ER
6762013-05-29 Easwaran Raman <eraman@google.com>
677
678 PR tree-optimization/57442
679 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
680 when control exits the main loop.
681
69f5aa9b
SKS
6822013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
683
684 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
685 and RX600.
686 * rx/rx.opt: Add macro for rx100 with string rx100 and value
687 RX100.
688 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
689 * rx/t-rx: Add rx100 under multi library matches option for nofpu
690 option.
691
4b847da9
BS
6922013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
693
694 PR tree-optimization/57441
695 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
696 Don't limit size of incr_vec to number of candidates.
697
4fc43c39
SE
6982013-05-29 Steve Ellcey <sellcey@imgtec.com>
699
700 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
701 and mips16 directories.
702 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
703 mips16.
704 (MULTILIB_DIRNAMES): Ditto.
705 (MULTILIB_EXCEPTIONS): Add new exceptions.
706 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
707 (MULTILIB_DIRNAMES): Ditto.
708 (MULTILIB_EXCEPTIONS): Add new exceptions.
709
a5350ddc
CSS
7102012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
711 Marcus Shawcroft <marcus.shawcroft@arm.com>
712
713 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
714 SYMBOL_TINY_ABSOLUTE.
715 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
716 SYMBOL_TINY_ABSOLUTE.
717 (aarch64_expand_mov_immediate): Likewise.
718 (aarch64_classify_symbol): Likewise.
719 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
720 Permit SYMBOL_TINY_ABSOLUTE.
721 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
722
17f4d4bf
CSS
7232013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
724 Marcus Shawcroft <marcus.shawcroft@arm.com>
725
726 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
727 Refactor if/switch. Replace gcc_assert with if.
728
c0186656
GG
7292013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
730
731 * config/i386/i386.c (initial_ix86_tune_features): Enable
732 FP Reassociation for AMD bdver1 and bdver2.
733
d20188f3
MJ
7342013-05-29 Martin Jambor <mjambor@suse.cz>
735
736 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
737 and IMAGPART_EXPR do not occur within other handled_components.
738
292cba13
RB
7392013-05-29 Richard Biener <rguenther@suse.de>
740
741 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
742 access on whether the use is in the BB we currently try to
743 vectorize.
744 (vect_bb_vectorization_profitable_p): Pass the BB we currently
745 vectorize to vect_bb_slp_scalar_cost.
746
6eddf228
RB
7472013-05-29 Richard Biener <rguenther@suse.de>
748
749 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
750 computing scalar cost offsetted by stmts that are kept live
751 by scalar uses.
752 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
753 for computation of scalar cost.
754
7df36117
SE
7552013-05-28 Steve Ellcey <sellcey@mips.com>
756
757 * config/mips/mips-cpus.def (mips32r2): Change processor type.
758
36536d79
BI
7592013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
760
761 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
762 array notation built-in reduction functions.
763 * doc/passes.texi (Passes): Added documentation about changes done
764 for Cilk Plus.
765 * doc/invoke.texi (C Dialect Options): Added documentation about
766 the -fcilkplus flag.
767 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
768 (BUILTINS_DEF): Depend on cilkplus.def.
769 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
770 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
771 * cilkplus.def: New file.
772
b49eefa5
JR
7732013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
774
775 PR rtl-optimization/57439
776 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
777
9daf6dbb
ER
7782013-05-28 Easwaran Raman <eraman@google.com>
779
780 PR tree-optimization/57337
781 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
782 (find_insert_point): Correctly identify the insertion point
783 when two statements with the same UID is compared.
784
fbd7e877
RB
7852013-05-28 Richard Biener <rguenther@suse.de>
786
787 PR tree-optimization/56787
788 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
789 from the list of data references.
790 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
791 clobbers.
792 (vect_analyze_loop_operations): Likewise.
793 (vect_transform_loop): Remove clobbers.
794
bbba1117
MJ
7952013-05-28 Martin Jambor <mjambor@suse.cz>
796
797 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
798 and REALPART_EXPRs have scalar type.
799
bd388c2a
RB
8002013-05-28 Richard Biener <rguenther@suse.de>
801
802 PR tree-optimization/57411
803 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
804 virtual operands.
805 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
806 virtual operand propagation.
807
2f56a311
EB
8082013-05-28 Eric Botcazou <ebotcazou@adacore.com>
809
810 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
811 destination register for bmasksi_vis.
812 (vector_init_bshuffle): Likewise.
813 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
814
5c3eacbb
EB
8152013-05-28 Eric Botcazou <ebotcazou@adacore.com>
816
817 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
818 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
819 mode if the instruction isn't available in the original mode.
820 * config/sparc/sparc.opt (mfix-ut699): New option.
821 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
822 (divdf3): Turn into expander.
823 (divdf3_nofix): New insn.
824 (divdf3_fix): Likewise.
825 (divsf3): Disable if -mfix-ut699.
826 (sqrtdf2): Turn into expander.
827 (sqrtdf2_nofix): New insn.
828 (sqrtdf2_fix): Likewise.
829 (sqrtsf2): Disable if -mfix-ut699.
830
a1756c0a
RB
8312013-05-27 Richard Biener <rguenther@suse.de>
832
833 PR middle-end/57412
834 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
835 block for the new loop.
836
5a892248
RB
8372013-05-27 Richard Biener <rguenther@suse.de>
838
839 PR tree-optimization/57343
840 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
841 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
842 (number_of_iterations_cond): Do not build the folded tree.
843
d1de852b
RB
8442013-05-27 Richard Biener <rguenther@suse.de>
845
846 Revert
847 PR middle-end/57381
848 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
849 OEP_CONSTANT_ADDRESS_OF retained.
850
851 PR tree-optimization/57417
852 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
853 for unchanged base.
854 (set_ssa_val_to): Compare addresses using
855 get_addr_base_and_unit_offset.
856
7894bc6b
JR
8572013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
858
859 PR rtl-optimization/56833
860 * postreload.c (move2add_record_mode): New function.
861 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
862 (move2add_use_add2_insn): Use move2add_record_sym_value.
863 (move2add_use_add3_insn): Likewise.
864 (reload_cse_move2add): Use move2add_valid_value_p and
865 move2add_record_mode. Invalidate call-clobbered and REG_INC
866 affected regs by setting reg_mode to VOIDmode.
867 (move2add_note_store): Don't pretend the inside of a SUBREG is
868 the actual destination. Invalidate single/leading registers by
869 setting reg_mode to VOIDmode.
870 Use move2add_record_sym_value, move2add_valid_value_p and
871 move2add_record_mode.
872
b03be25f
RB
8732013-05-27 Richard Biener <rguenther@suse.de>
874
875 PR tree-optimization/57396
876 * tree-affine.c (double_int_constant_multiple_p): Properly
877 return false for val == 0 and div != 0.
878
44e88db2
RS
8792013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
880
881 * config/mips/mips.h: Use #elif in preprocessor conditions.
882
3b859704
RS
8832013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
884
885 PR target/53916
886 * config/mips/constraints.md (kl): New constraint.
887 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
888 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
889 constraint for operand 0. Split after CSE for MIPS16. Emit a move
890 from LO for MIPS16.
891 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
892
c979d5f5
RS
8932013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
894
895 PR target/55777
896 * config/mips/mips.c (mips_can_inline_p): New function.
897 (TARGET_CAN_INLINE_P): Define.
898
8e90de43
SB
8992013-05-25 Steven Bosscher <steven@gcc.gnu.org>
900
901 * sched-int.h (ds_t, dw_t): Make unsigned int.
902 Fix documentation that describes how all the ds_t bits are used.
903 Reserve the last bit for delayed-branch scheduling.
904 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
905 (BITS_PER_DEP_WEAK): Fix definition and documentation.
906 (gen_dep_weak_1): Remove prototype.
907 * sched-deps.c (get_dep_weak_1): Make static.
908 * target.def (speculate_insn, needs_block_p, gen_spec_check,
909 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
910 * doc/tm.texi: Regenerate.
911 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
912
cb5cb194
SB
9132013-05-24 Steven Bosscher <steven@gcc.gnu.org>
914
915 PR debug/56950
916 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
917
5bd93ff6
NS
9182013-05-24 Nathan Sidwell <nathan@codesourcery.com>
919 Sandra Loosemore <sandra@codesourcery.com>
920
921 * config.gcc (powerpc-*): Allow native for with-cpu.
922
2343af65
JL
9232013-05-24 Jeff Law <law@redhat.com>
924
925 PR tree-optimization/57124
926 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
927 conversion feeding a condition if the range has an overflow
928 if -fstrict-overflow. Add warnings for when we do make the
929 transformation.
930
3ad695b9
DC
9312013-05-24 Dehao Chen <dehao@google.com>
932
04960246 933 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
934 (locus_discrim_hasher): Likewise.
935 (locus_discrim_hasher::hash): Likewise.
936 (locus_discrim_hasher::equal): Likewise.
937
82338059
MJ
9382013-05-24 Martin Jambor <mjambor@suse.cz>
939
940 PR tree-optimization/57294
941 * cgraph.h (ipa_record_stmt_references): Declare.
942 * cgraphbuild.c (ipa_record_stmt_references): New function.
943 (build_cgraph_edges): Use ipa_record_stmt_references.
944 (rebuild_cgraph_edges): Likewise.
945 (cgraph_rebuild_references): Likewise.
946 * ipa-prop.c (ipa_modify_call_arguments): Discard references
947 associated with the old statement and build references from the
948 newly built statements.
949 * ipa-ref.c (ipa_remove_stmt_references): New function.
950 * ipa-ref.h (ipa_remove_stmt_references): Declare.
951
1ccd4874
VM
9522013-05-24 Vladimir Makarov <vmakarov@redhat.com>
953
55805e54 954 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 955 mem-mem moves.
55805e54 956 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 957 too.
55805e54 958 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
959 secondary memory moves.
960 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
961 reg set up in the current insn.
962
25e25c73
DC
9632013-05-24 Dehao Chen <dehao@google.com>
964
04960246 965 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
966 hash function.
967 (locus_descrim_hasher::equal): Likewise.
04960246 968 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
969 (make_edges): Likewise.
970 (next_discriminator_for_locus): Likewise.
971 (same_line_p): Likewise.
972 (assign_discriminators): Likewise.
973 (make_cond_expr_edges): Likewise.
974 (make_gimple_switch_edges): Likewise.
975 (make_goto_expr_edges): Likewise.
976 (make_gimple_asm_edges): Likewise.
977
50d38551
IB
9782013-05-24 Ian Bolton <ian.bolton@arm.com>
979
980 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
981 X format specifier to only display bottom 16 bits.
982 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
983 immediate to match for operand 2, since it will be masked.
984
aea0101d
RB
9852013-05-24 Richard Biener <rguenther@suse.de>
986
987 PR tree-optimization/57287
988 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
989 all SSA names that occur in abnormal PHIs.
990
634e03d3
AI
9912013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
992
993 PR tree-ssa/57385
994 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
995 that index is not negative.
996
b17c024f
EB
9972013-05-24 Eric Botcazou <ebotcazou@adacore.com>
998
999 PR rtl-optimization/55177
1000 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1001 (simplify_byte_swapping_operation): New.
1002 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1003 (simplify_relational_operation_1): Deal with BSWAP.
1004
46aeac1b
RH
10052013-05-23 Richard Henderson <rth@redhat.com>
1006
1007 PR target/56742
1008 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1009 (ix86_reorg): Call it.
1010
70cc1536
UB
10112013-05-23 Uros Bizjak <ubizjak@gmail.com>
1012
1013 PR target/57379
1014 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1015 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1016 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1017
b3851501
CB
10182013-05-23 Christian Bruel <christian.bruel@st.com>
1019
1020 PR debug/57351
1021 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1022
4e194912
CSS
10232013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1024 Marcus Shawcroft <marcus.shawcroft@arm.com>
1025
1026 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1027 * config/aarch64/constraints.md (Usa): Remove.
1028 * doc/md.texi (AArch64 Usa): Remove.
1029
83f8c414
CSS
10302013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1031 Marcus Shawcroft <marcus.shawcroft@arm.com>
1032
1033 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1034 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1035 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1036 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1037
b5574232
VP
10382013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1039
1040 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1041 instruction (AdvSIMD).
1042 * config/aarch64/aarch64-builtins.c
1043 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1044 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1045
76c36cb1 10462013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
1047
1048 PR middle-end/57347
1049 * tree.h (contains_bitfld_component_ref_p): Declare.
1050 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
1051 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1052 caller.
7d2fb524
MJ
1053 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1054 not access a bit-field. Assert all final offsets are byte-aligned.
1055
ce521ae6
RB
10562013-05-23 Richard Biener <rguenther@suse.de>
1057
1058 PR tree-optimization/57380
1059 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1060 least one invariant or re-used load.
1061 * passes.c (init_optimization_passes): Move pass_phiprop before
1062 pass_forwprop.
1063
75c7257f
JG
10642013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1065
1066 * config/aarch64/aarch64-simd.md
1067 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1068
af6d44b5
RB
10692013-05-23 Richard Biener <rguenther@suse.de>
1070
1071 PR middle-end/57381
1072 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1073 OEP_CONSTANT_ADDRESS_OF retained.
1074
bd3647bf
JJ
10752013-05-23 Jakub Jelinek <jakub@redhat.com>
1076
1077 PR middle-end/57344
70cc1536
UB
1078 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1079 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 1080
a55757ea
RB
10812013-05-23 Richard Biener <rguenther@suse.de>
1082
1083 PR rtl-optimization/57341
1084 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1085 instead of true_dependence.
1086
cfb00b41
DM
10872013-05-22 David Malcolm <dmalcolm@redhat.com>
1088
dd1c676f
DM
1089 * bb-reorder.c (branch_threshold): Make const.
1090 (exec_threshold): Ditto.
cfb00b41 1091
f62511da
MM
10922013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1093 Pat Haugen <pthaugen@us.ibm.com>
1094 Peter Bergner <bergner@vnet.ibm.com>
1095
1096 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1097 documentation for the power8 crypto builtins.
1098
1099 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1100
1101 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1102 macros for defining power8 builtin functions.
1103 (BU_P8V_AV_2): Likewise.
1104 (BU_P8V_AV_P): Likewise.
1105 (BU_P8V_VSX_1): Likewise.
1106 (BU_P8V_OVERLOAD_1): Likewise.
1107 (BU_P8V_OVERLOAD_2): Likewise.
1108 (BU_CRYPTO_1): Likewise.
1109 (BU_CRYPTO_2): Likewise.
1110 (BU_CRYPTO_3): Likewise.
1111 (BU_CRYPTO_OVERLOAD_1): Likewise.
1112 (BU_CRYPTO_OVERLOAD_2): Likewise.
1113 (XSCVSPDP): Fix typo, point to the correct instruction.
1114 (VCIPHER): Add power8 crypto builtins.
1115 (VCIPHERLAST): Likewise.
1116 (VNCIPHER): Likewise.
1117 (VNCIPHERLAST): Likewise.
1118 (VPMSUMB): Likewise.
1119 (VPMSUMH): Likewise.
1120 (VPMSUMW): Likewise.
1121 (VPERMXOR_V2DI): Likewise.
1122 (VPERMXOR_V4SI: Likewise.
1123 (VPERMXOR_V8HI: Likewise.
1124 (VPERMXOR_V16QI: Likewise.
1125 (VSHASIGMAW): Likewise.
1126 (VSHASIGMAD): Likewise.
1127 (VPMSUM): Likewise.
1128 (VPERMXOR): Likewise.
1129 (VSHASIGMA): Likewise.
1130
1131 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1132 __CRYPTO__ if the crypto instructions are available.
1133 (altivec_overloaded_builtins): Add support for overloaded power8
1134 builtins.
1135
1136 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1137 support for power8 crypto builtins.
1138 (builtin_function_type): Likewise.
1139 (altivec_init_builtins): Add support for builtins that take vector
1140 long long (V2DI) arguments.
1141
1142 * config/rs6000/crypto.md: New file, define power8 crypto
1143 instructions.
1144
11452013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1146 Pat Haugen <pthaugen@us.ibm.com>
1147 Peter Bergner <bergner@vnet.ibm.com>
1148
1149 * doc/invoke.texi (Option Summary): Add power8 options.
1150 (RS/6000 and PowerPC Options): Likewise.
1151
1152 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1153 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1154 wm, wn, wr documentation.
1155
1156 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1157 registers if direct move instructions are enabled.
1158 (wn): New constraint for no registers.
1159 (wq): New constraint for quad word even GPR registers.
1160 (wr): New constraint if 64-bit instructions are enabled.
1161 (wv): New constraint if power8 vector instructions are enabled.
1162 (wQ): New constraint for quad word memory locations.
1163
1164 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1165 constraint for 0..15 for crypto instructions.
1166 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1167 as GPR and floating point registers.
1168 (int_reg_operand): New predicate to match only GPR registers.
1169 (base_reg_operand): New predicate to match base registers.
1170 (quad_int_reg_operand): New predicate to match even GPR registers
1171 for quad memory operations.
1172 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1173 operations in both GPR and VSX registers.
1174 (quad_memory_operand): New predicate for quad memory operations.
1175 (reg_or_indexed_operand): New predicate for direct move support.
1176
1177 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1178 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1179 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1180 (POWERPC_MASKS): Add power8 options.
1181 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1182 various options.
1183
1184 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1185 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1186
1187 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1188 (-mpower8-fusion): New power8 options.
1189 (-mpower8-fusion-sign): Likewise.
1190 (-mpower8-vector): Likewise.
1191 (-mcrypto): Likewise.
1192 (-mdirect-move): Likewise.
1193 (-mquad-memory): Likewise.
1194
1195 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1196 power8.
1197 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1198 registers.
70cc1536 1199 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
1200 (rs6000_debug_vector_unit): Add p8_vector.
1201 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1202 definitions. Also print fusion state.
1203 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1204 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1205 (rs6000_option_override_internal): Add support for power8.
1206 (rs6000_common_init_builtins): Add debugging for skipped builtins
1207 if -mdebug=builtin.
1208 (rs6000_adjust_cost): Add power8 support.
1209 (rs6000_issue_rate): Likewise.
1210 (insn_must_be_first_in_group): Likewise.
1211 (insn_must_be_last_in_group): Likewise.
1212 (force_new_group): Likewise.
1213 (rs6000_register_move_cost): Likewise.
1214 (rs6000_opt_masks): Likewise.
1215
1216 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1217 power8 capable assembler, default to power7 options.
1218 (TARGET_DIRECT_MOVE): Likewise.
1219 (TARGET_CRYPTO): Likewise.
1220 (TARGET_P8_VECTOR): Likewise.
1221 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1222 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1223 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1224 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1225 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1226 (TARGET_XSCVDPSPN): Likewise.
1227 (TARGET_XSCVSPDPN): Likewsie.
1228 (TARGET_SYNC_HI_QI): Likewise.
1229 (TARGET_SYNC_TI): Likewise.
1230 (MASK_CRYPTO): Likewise.
1231 (MASK_DIRECT_MOVE): Likewise.
1232 (MASK_P8_FUSION): Likewise.
1233 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
1234 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1235 temporary used by some of the direct move instructions to get two FP
1236 temporary registers does not force creation of a stack frame.
f62511da
MM
1237 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1238 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1239 that any VSX registers are tieable, even if they are also an
1240 Altivec vector mode.
1241 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1242 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1243 (RS6000_BTM_CRYPTO): Likewise.
1244 (RS6000_BTM_COMMON): Likewise.
1245
1246 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1247 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1248 (enum rs6000_vector): Add power8 vector support.
1249
73a1a707
RR
12502013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1251
1252 PR target/19599
1253 PR target/57340
1254 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1255 (any_sibcall_could_use_r3): this and handle indirect calls.
1256 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1257
d28073d4
BS
12582013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1259
1260 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1261
bee0b10c
RB
12622013-05-22 Richard Biener <rguenther@suse.de>
1263
1264 PR middle-end/57349
1265 * profile.c (branch_prob): Do not split blocks that are
1266 abnormally receiving from ECF_RETURNS_TWICE functions.
1267
98409b51
RS
12682013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1269
1270 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1271 address mode. Move pointer mode initialization to the same place.
1272
c0602ab8
MZ
12732013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1274
1275 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1276 while it has any effect.
1277
4f7a634e
ER
12782013-05-21 Easwaran Raman <eraman@google.com>
1279
1280 PR tree-optimization/57322
9daf6dbb
ER
1281 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1282 UID of the statement added to the BB to be 1.
4f7a634e 1283
a4ce1258
JJ
12842013-05-21 Jakub Jelinek <jakub@redhat.com>
1285
1286 PR tree-optimization/57331
70cc1536
UB
1287 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1288 of conversion from pointer type to integral type with integer.
a4ce1258 1289
1b14621a
MJ
12902013-05-21 Martin Jambor <mjambor@suse.cz>
1291
1292 PR lto/57289
1293 * ipa-prop.c (ipa_read_node_info): Process param_used and
1294 controlled_uses in the same order as when writing.
1295
e60661f0
MG
12962013-05-21 Magnus Granberg <baldrick@free.fr>
1297
1298 PR plugins/56754
ee49aa34 1299 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 1300
4a61be9a
RB
13012013-05-21 Richard Biener <rguenther@suse.de>
1302
1303 PR tree-optimization/57318
1304 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1305 estimate stmts with side-effects as likely eliminated.
1306
c52da5f7
RB
13072013-05-21 Richard Biener <rguenther@suse.de>
1308
1309 PR tree-optimization/57330
1310 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1311 preserve the call stmts fntype.
1312
7ec67e2a
RB
13132013-05-21 Richard Biener <rguenther@suse.de>
1314
1315 PR tree-optimization/57303
1316 * tree-ssa-sink.c (statement_sink_location): Improve killing
1317 stmt detection and properly handle self-assignments.
1318
b112d513
CB
13192013-05-21 Christian Bruel <christian.bruel@st.com>
1320
55805e54
YR
1321 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1322 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
1323 registers. Set register size out of the PARALLEL loop.
1324
14c2ec26
OE
13252013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1326
1327 PR target/56547
1328 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1329 (*fmasf4, *fmasf4_media): New insns.
1330
da734fa1
RS
13312013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1332
1333 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1334 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1335 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1336 (mips_idiv_insns): Update the comments to say that the returned
1337 instruction counts are in units of BASE_INSN_LENGTH.
1338 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1339 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1340 using 2 rather than 4 as the length of indirect MIPS16 and
1341 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1342 length of a NOP. Don't divide MIPS16 lengths by 2.
1343 (mips16_split_long_branches): Assume a branch is long if the
1344 length is greater than 4 rather than 8.
1345 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1346 rather than multiplying them by 2. Multiply instruction counts
1347 by BASE_INSN_LENGTH rather than 4.
1348 (*jump_mips16, tls_get_tp_mips16_<mode>)
1349 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1350
13719e8b
RS
13512013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1352
1353 * config/mips/mips.md (extended_mips16): Remove branch case.
1354 (length): Remove duplicated extended_mips16 test.
1355
c3850d14
RS
13562013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1357
1358 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1359
8da2e059
RS
13602013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1361
1362 * recog.h (Recog_data): Rename to...
1363 (recog_data_d): ...this.
1364 (recog_data): Update accordingly.
1365 * recog.c (recog_data): Likewise.
1366 * reload.c (save_recog_data): Likewise.
1367 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1368 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1369
2df013f3
JB
13702013-05-17 Julian Brown <julian@codesourcery.com>
1371
1372 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1373 found in a REG_EQUAL note, invalidate it.
1374
933f507d
ER
13752013-05-17 Easwaran Raman <eraman@google.com>
1376
1377 * tree-ssa-reassoc.c (find_insert_point): New function.
1378 (insert_stmt_after): Likewise.
1379 (get_def_stmt): Likewise.
1380 (ensure_ops_are_available): Likewise.
1381 (not_dominated_by): Likewise.
1382 (rewrite_expr_tree): Do not move statements beyond what is
1383 necessary. Remove call to swap_ops_for_binary_stmt...
1384 (reassociate_bb): ... and move it here.
1385 (build_and_add_sum): Assign UIDs for new statements.
1386 (linearize_expr): Likewise.
1387 (do_reassoc): Renumber gimple statement UIDs.
1388
e01c7cca
JH
13892013-05-17 Jan Hubicka <jh@suse.cz>
1390
1391 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1392 weakrefs.
1393 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
1394 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1395 weakrefs.
e01c7cca
JH
1396 (output_weakrefs): Update.
1397
c3272a92
PCC
13982013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1399 Martin Jambor <mjambor@suse.cz>
1400
1401 PR middle-end/57276
1402 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1403 value that corresponds to the given aggval is found in values vector.
1404
11c2aa39
UB
14052013-05-17 Uros Bizjak <ubizjak@gmail.com>
1406
1407 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1408 sse, sse2, sse3, ssse3 and sse4a flags to options.
1409
abecc8c6
DM
14102013-05-17 David Malcolm <dmalcolm@redhat.com>
1411
1412 * gengtype-state.c: (s_expr_writer): New class, to handle
1413 prettifying of output layout of s-expressions.
1414 (state_writer): New class, to write out gtype.state.
1415 (state_written_type_count): Move this variable into member data of
1416 state_writer.
1417 (s_expr_writer::s_expr_writer): New code: constructor for new class
1418 (state_writer::state_writer(): ditto
1419 (s_expr_writer::write_new_line): New function
1420 (s_expr_writer::write_any_indent): ditto
1421 (s_expr_writer::begin_s_expr): ditto
1422 (s_expr_writer::end_s_expr): ditto
1423 (write_state_fileloc): convert to method of state_writer...
1424 (state_writer:: write_state_fileloc): ...and use methods of
1425 s_expr_writer to write indentation into the gtype.state output file
1426 to visually represent the hierarchical structure of the list
1427 structures
1428 (write_state_fields): ditto, renaming to...
1429 (state_writer::write_state_fields)
1430 (write_state_a_string): ditto, renaming to...
1431 (state_writer::write_state_a_string)
1432 (write_state_string_option): ditto, renaming to...
1433 (state_writer::write_state_string_option)
1434 (write_state_type_option): ditto, renaming to...
1435 (state_writer::write_state_type_option)
1436 (write_state_nested_option): ditto, renaming to...
1437 (state_writer::write_state_nested_option)
1438 (write_state_option): ditto, renaming to...
1439 (state_writer::write_state_option)
1440 (write_state_options): ditto, renaming to...
1441 (state_writer::write_state_options)
1442 (write_state_lang_bitmap): ditto, renaming to...
1443 (state_writer::write_state_lang_bitmap)
1444 (write_state_version): ditto, renaming to...
1445 (state_writer::write_state_version)
1446 (write_state_scalar_type): ditto, renaming to...
1447 (state_writer::write_state_scalar_type)
1448 (write_state_string_type): ditto, renaming to...
1449 (state_writer::write_state_string_type)
1450 (write_state_undefined_type): ditto, renaming to...
1451 (state_writer::write_state_undefined_type)
1452 (write_state_struct_union_type): ditto, renaming to...
1453 (state_writer::write_state_struct_union_type)
1454 (write_state_struct_type): ditto, renaming to...
1455 (state_writer::write_state_struct_type)
1456 (write_state_user_struct_type): ditto, renaming to...
1457 (state_writer::write_state_user_struct_type)
1458 (write_state_lang_struct_type): ditto, renaming to...
1459 (state_writer::write_state_lang_struct_type)
1460 (write_state_param_struct_type): ditto, renaming to...
1461 (state_writer::write_state_param_struct_type)
1462 (write_state_pointer_type): ditto, renaming to...
1463 (state_writer::write_state_pointer_type)
1464 (write_state_array_type): ditto, renaming to...
1465 (state_writer::write_state_array_type)
1466 (write_state_gc_used): ditto, renaming to...
1467 (state_writer::write_state_gc_used)
1468 (write_state_common_type_content): ditto, renaming to...
1469 (state_writer::write_state_common_type_content)
1470 (write_state_type): ditto, renaming to...
1471 (state_writer::write_state_type)
1472 (write_state_pair_list): ditto, renaming to...
1473 (state_writer::write_state_pair_list)
1474 (write_state_pair): ditto, renaming to...
1475 (state_writer::write_state_pair)
1476 (write_state_typedefs): ditto, renaming to...
1477 (state_writer::write_state_typedefs)
1478 (write_state_structures): ditto, renaming to...
1479 (state_writer::write_state_structures)
1480 (write_state_param_structs): ditto, renaming to...
1481 (state_writer::write_state_param_structs)
1482 (write_state_variables): ditto, renaming to...
1483 (state_writer::write_state_variables)
1484 (write_state_srcdir): ditto, renaming to...
1485 (state_writer::write_state_srcdir)
1486 (write_state_files_list): ditto, renaming to...
1487 (state_writer::write_state_files_list)
1488 (write_state_languages): ditto, renaming to...
1489 (state_writer::write_state_languages)
1490 (write_state): create a state_writer instance and use it when
1491 writing out the state file
1492
d6545f29
MS
14932013-05-17 Mike Stump <mikestump@comcast.net>
1494
816a3f73 1495 PR rtl-optimization/57304
d6545f29
MS
1496 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1497 accessing DF_REF_REAL_LOC.
1498
38c821cf
JJ
14992013-05-17 Jakub Jelinek <jakub@redhat.com>
1500
1501 PR rtl-optimization/57281
1502 PR rtl-optimization/57300
1503 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1504 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1505 what the other splitter did if the registers are dead.
1506
2a293391
RB
15072013-05-17 Richard Biener <rguenther@suse.de>
1508
1509 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1510 MEM_REF offsets.
1511
17042d2b
JJ
15122013-05-17 Jakub Jelinek <jakub@redhat.com>
1513
1514 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1515 linking.
1516
5b115c1f
MP
15172013-05-17 Marek Polacek <polacek@redhat.com>
1518
11c2aa39
UB
1519 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1520 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 1521
52d84413
JJ
15222013-05-17 Jakub Jelinek <jakub@redhat.com>
1523
68119618
JJ
1524 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1525 vect_external_def oprnd1 with loop_vinfo, try to emit
1526 optional cast, negation and and stmts on the loop preheader
1527 edge instead of into the pattern def seq.
1528
52d84413
JJ
1529 PR tree-optimization/57051
1530 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1531 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1532
17b962bd
NC
15332013-05-16 Nick Clifton <nickc@redhat.com>
1534
1535 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1536 (rl78_is_naked_func): New function.
1537 (rl78_expand_prologue): Skip prologue generation for naked
1538 functions.
1539 (rl78_expand_epilogue): Skip epilogue generation for naked
1540 functions.
1541 * doc/extend.texi (naked): Add RL78 to the list of processors
1542 that supports this attribute.
1543
b1a0f84e
JL
15442013-05-16 Jeff Law <law@redhat.com>
1545
1546 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1547
af0e415b
UB
15482013-05-16 Uros Bizjak <ubizjak@gmail.com>
1549
1550 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1551 cache parameters using detect_caches_amd also for CYRIX,
1552 NSC and TM2 signatures.
1553
19db293a
UB
15542013-05-16 Uros Bizjak <ubizjak@gmail.com>
1555 Dzianis Kahanovich <mahatma@eu.by>
1556
1557 PR target/45359
1558 PR target/46396
1559 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1560 VIA/Centaur processors and determine their cache parameters
1561 using detect_caches_amd.
1562
251a41b9
TJ
15632013-05-16 Teresa Johnson <tejohnson@google.com>
1564
1565 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1566 (rtl_verify_edges): New function.
1567 (rtl_verify_bb_insns): Ditto.
1568 (rtl_verify_bb_pointers): Ditto.
1569 (rtl_verify_bb_insn_chain): Ditto.
1570 (rtl_verify_fallthru): Ditto.
1571 (rtl_verify_bb_layout): Ditto.
1572 (rtl_verify_flow_info_1): Outline checks into new functions.
1573 (rtl_verify_flow_info): Ditto.
1574
f14540b6
SE
15752013-05-16 Steve Ellcey <sellcey@imgtec.com>
1576
1577 * cfghooks.c (copy_bbs): Add update_dominance argument.
1578 * cfghooks.h (copy_bbs): Update prototype.
1579 * tree-cfg.c (gimple_duplicate_sese_region):
1580 Add update_dominance argument.
1581 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1582 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1583 gimple_duplicate_sese_region call.
1584 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1585 Update copy_bbs call.
1586 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1587 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1588
7e9a3abb
JJ
15892013-05-16 Jakub Jelinek <jakub@redhat.com>
1590
1591 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1592 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1593 vect_recog_rotate_pattern.
1594 (vect_recog_rotate_pattern): New function.
1595
427b248d
JM
15962013-05-16 Jason Merrill <jason@redhat.com>
1597
1598 * Makefile.in (LLINKER): New variable.
1599 (mostlyclean): Remove link mutex.
1600 * configure.ac: Handle --enable-link-mutex.
1601 * lock-and-run.sh: New script.
1602
b871e3d2
RR
16032013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1604
1605 PR target/19599
1606 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1607 for NULL decl.
1608
ce858126
RO
16092013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1610
1611 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1612
798d3d04
GY
16132013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1614
1615 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1616 * config/arm/arm.c (next_consecutive_mem): New function.
1617 (gen_movmem_ldrd_strd): Likewise.
1618 * config/arm/arm.md (movmemqi): Update condition and code.
1619 (unaligned_loaddi, unaligned_storedi): New patterns.
1620
0baddc45
RO
16212013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1622
1623 * config.gcc: Obsolete *-*-solaris2.9*.
1624 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1625
aa9d5bcf
RB
16262013-05-16 Richard Biener <rguenther@suse.de>
1627
1628 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1629 earlier, after GRAPHITE transforms and IV canonicalization.
1630
5a0f4dd3
JJ
16312013-05-16 Jakub Jelinek <jakub@redhat.com>
1632
1633 * omp-low.c (extract_omp_for_data): For collapsed loops,
1634 if at least one of the loops is known at compile time to
1635 iterate zero times, set count to 0.
1636 (expand_omp_regimplify_p): New function.
1637 (expand_omp_for_generic): For collapsed loops, if at least
1638 one of the loops isn't known to iterate at least once,
1639 add runtime check with setting count to 0.
1640 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1641 For unsigned types if it isn't known at compile time that
1642 the loop will iterate at least once, add runtime check to bypass
1643 the whole loop if initial condition isn't true.
1644
e3753785
NS
16452013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1646
1647 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1648
43bb4dd1
MG
16492013-05-16 Marc Glisse <marc.glisse@inria.fr>
1650
1651 PR middle-end/57286
1652 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1653 transformations to avoid an infinite loop.
1654
3571dde6
MP
16552013-05-16 Marek Polacek <polacek@redhat.com>
1656
1657 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1658
b8b3f0ca
LE
16592013-05-15 Leif Ekblad <leif@rdos.net>
1660
1661 * config/i386/i386.c (ix86_decompose_address): Use
1662 DEFAULT_TLS_SEG_REG to access TLS segment register.
1663 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1664 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1665 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1666
e299a383
RS
16672013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1668
1669 PR target/57260
1670 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1671 sibling calls to functions that would normally be lazily bound,
1672 unless $gp is call-clobbered.
1673
e7208ea3
UB
16742013-05-15 Uros Bizjak <ubizjak@gmail.com>
1675
19db293a 1676 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 1677 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
1678 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1679 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
1680 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1681 of TARGET_3DNOW.
1682 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1683
e7413f3d
AS
16842013-05-15 Andreas Schwab <schwab@suse.de>
1685
1686 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1687 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1688 third operand.
1689
ad4db775
TJ
16902013-05-15 Teresa Johnson <tejohnson@google.com>
1691
1692 * loop-unroll.c (report_unroll_peel): Check decision before
1693 emitting unroll/peel message.
1694
af205f67
TJ
16952013-05-15 Teresa Johnson <tejohnson@google.com>
1696
1697 * function.h (has_bb_partition): New rtl_data flag.
1698 (bb_reorder_complete): Ditto.
1699 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1700 instead of flag_reorder_blocks_and_partition.
1701 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1702 with some enhancements.
1703 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1704 * bb-reorder.c (connect_traces): Check for has_bb_partition
1705 instead of flag_reorder_blocks_and_partition.
1706 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1707 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1708 verify_hot_cold_block_grouping.
1709 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1710
9adcfa3c
RR
17112013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1712
1713 PR target/19599
1714 * config/arm/predicates.md (call_insn_operand): New predicate.
1715 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1716 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1717 if insn is not a tail call.
1718 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1719 registers.
1720 * config/arm/arm.h (enum reg_class): New caller save register class.
1721 (REG_CLASS_NAMES): Likewise.
1722 (REG_CLASS_CONTENTS): Likewise.
1723 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1724 without decls.
1725
ccb3ad87
RB
17262013-05-15 Richard Biener <rguenther@suse.de>
1727
1728 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1729 of MSG_OPTIMIZED_LOCATIONS.
1730 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1731 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1732 message.
1733 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1734 of MSG_OPTIMIZED_LOCATIONS.
1735 (execute_vect_slp): Likewise.
1736 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1737 (vect_create_cond_for_alias_checks): Likewise.
1738 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1739 (vect_recog_widen_mult_pattern): Likewise.
1740 (vect_recog_widen_sum_pattern): Likewise.
1741 (vect_recog_over_widening_pattern): Likewise.
1742 (vect_recog_widen_shift_pattern): Likewise.
1743 (vect_recog_vector_vector_shift_pattern): Likewise.
1744 (vect_recog_divmod_pattern): Likewise.
1745 (vect_recog_mixed_size_cond_pattern): Likewise.
1746 (vect_recog_bool_pattern): Likewise.
1747 (vect_pattern_recog_1): Likewise.
1748
48b1474e
MJ
17492013-05-15 Martin Jambor <mjambor@suse.cz>
1750
1751 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1752 non-functions to builtin_unreachable.
1753 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1754 correct when new direct edges were discovered.
1755
9de04252
MJ
17562013-05-15 Martin Jambor <mjambor@suse.cz>
1757
1758 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1759 header, print symbol order instead of node uid, print more information
1760 about indirect edge targets.
1761 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1762 uids.
1763 (ipa_make_edge_direct_to_target): Likewise.
1764 (remove_described_reference): Likewise.
1765 (propagate_controlled_uses): Likewise.
1766 (ipa_print_node_params): Also print symbol order.
1767 (ipcp_transform_function): Print symbol order instead of node uids.
1768 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1769 (cgraph_get_create_real_symbol_node): Likewise.
1770 * ipa-cp.c (print_lattice): Likewise.
1771 (print_all_lattices): Likewise.
1772 (determine_versionability): Likewise.
1773 (initialize_node_lattices): Likewise.
1774 (estimate_local_effects): Likewise.
1775 (update_profiling_info): Likewise.
1776 (create_specialized_node): Likewise.
1777 (perhaps_add_new_callers): Likewise.
1778 (decide_about_value): Likewise.
1779 (decide_whether_version_node): Likewise.
1780 (identify_dead_nodes): Likewise.
1781 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1782 (dump_inline_summary): Likewise.
1783 (estimate_node_size_and_time): Likewise.
1784 (inline_analyze_function): Likewise.
1785 * ipa-inline.c (report_inline_failed_reason): Likewise.
1786 (want_early_inline_function_p): Likewise.
1787 (edge_badness): Likewise.
1788 (update_edge_key): Likewise.
1789 (inline_small_functions): Likewise. Add dumping of order to two other
1790 dumps.
1791 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1792 instead of node uids.
1793 (propagate_pure_const): Likewise.
1794 (propagate_pure_const): Likewise.
1795 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1796 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1797 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1798 of node uids.
1799 * tree-pretty-print.c (dump_function_header): Likewise.
1800 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1801 Print symbol order instead of node uids.
1802
1dd03b91
AK
18032013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1804
1805 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1806 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1807
fdf6a7b9
RB
18082013-05-15 Richard Biener <rguenther@suse.de>
1809
1810 PR tree-optimization/57275
1811 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1812 return value for fail to do runtime alias checks for gather loads.
1813
2d6e4603
JH
18142013-05-15 Jan Hubicka <jh@suse.cz>
1815
1816 PR lto/57038
1817 PR lto/47375
e7208ea3
UB
1818 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1819 weakrefs are not external.
1820 (lto_symtab_merge_decls): Fix thinko when dealing with
1821 non-lto_symtab decls.
2d6e4603
JH
1822 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1823 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1824 * varpool.c (dump_varpool_node): Dump more flags.
1825
83f44b39
GG
18262013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1827
1828 * config/i386/i386.c (processor_alias_table): Add instruction
1829 FSGSBASE for AMD bdver3 architecture.
1830
2e55d062
JJ
18312013-05-14 Jakub Jelinek <jakub@redhat.com>
1832
1833 * tree.c (warn_deprecated_use): Print file:line using locus color.
1834 * diagnostic.c (diagnostic_report_current_module): Print file:line
1835 and file:line:column using locus color.
1836
0bfdb81e
MS
18372013-05-14 Mike Stump <mikestump@comcast.net>
1838
1839 * gdbinit.in: Add __null.
1840
a508ef22
MS
18412013-05-14 Mike Stump <mikestump@comcast.net>
1842
1843 * recog.h: Rename struct recog_data to Recog_data.
1844 * recog.c: Likewise.
1845 * reload.c (can_reload_into): Likewise.
1846 * config/picochip/picochip.c: Likewise.
1847
e7180acb
MS
18482013-05-14 Mike Stump <mikestump@comcast.net>
1849
1850 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1851
61216c26
SB
18522013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1853
fd6beed4
SB
1854 * resource.h (struct resources): Remove unch_memory member.
1855 (CLEAR_RESOURCE): Don't clear unch_memory.
1856 * resource.c (mark_referenced_resources): Don't set it.
1857 (mark_set_resources): Likewise.
1858 (mark_target_live_regs): Don't clear it.
1859 (init_resource_info): Likewise.
1860 * reorg.c (resource_conflicts_p): Don't compare it.
1861 (redundant_insn): Don't set it.
1862
61216c26
SB
1863 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1864 Remove prototypes.
1865 * emit-rtl.c (next_label): Remove unused function.
1866 (skip_consecutive_labels, link_cc0_insns): Move to ...
1867 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1868 only place where these functions are used, and make them static.
1869
418d1b87
MG
18702013-05-14 Marc Glisse <marc.glisse@inria.fr>
1871
1872 * fold-const.c (fold_negate_expr): Handle vectors.
1873 (fold_truth_not_expr): Make it static.
1874 (fold_invert_truthvalue): New static function.
1875 (invert_truthvalue_loc): Handle vectors. Do not call
1876 fold_truth_not_expr directly.
1877 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1878 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1879 (fold_comparison): Handle vector constants.
1880 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1881 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1882 * tree.h (fold_truth_not_expr): Remove declaration.
1883
fc21784d
JG
18842013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1885
1886 * config/aarch64/aarch64-simd.md
1887 (aarch64_vcond_internal<mode>): Rename to...
1888 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1889 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1890 float modes. Clarify all iterator modes.
1891 (vcond<mode><mode>): Use new name for vcond expanders.
1892 (vcond<v_cmp_result><mode>): Likewise.
1893 (vcondu<mode><mode>: Likewise.
1894 * config/aarch64/iterators.md (VDQF_COND): New.
1895
d4c52634
MG
18962013-05-14 Marc Glisse <marc.glisse@inria.fr>
1897
1898 PR bootstrap/57266
1899 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1900 variable for the shift amount. Check that we shift by non-negative
1901 amounts.
1902
2b261262
CLT
19032013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1904
1905 PR target/42017
1906 * config/arm/arm.h (EPILOGUE_USES): Only return true
1907 for LR_REGNUM after epilogue_completed.
1908
6e022d7b
JR
19092013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1910
1911 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1912 is error_mark_node.
6e022d7b 1913
56cf7859
RO
19142013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1915
1916 PR target/57261
1917 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1918 and Solaris 11+/x86 with gld.
1919 * configure: Regenerate.
1920
75776c6d
JJ
19212013-05-14 Jakub Jelinek <jakub@redhat.com>
1922
1923 * expmed.c (expand_shift_1): Canonicalize rotates by
1924 constant bitsize / 2 to bitsize - 1.
7f998021 1925 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
1926 case ROTATERT>: Likewise.
1927
1928 Revert:
1929 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1930
1931 * config/i386/i386.md (rotateinv): New code attr.
1932 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1933 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1934 roll $31, %eax, etc.
1935
df35498a
RB
19362013-05-14 Richard Biener <rguenther@suse.de>
1937
1938 PR middle-end/57235
1939 * tree-eh.c (sink_clobbers): Give up for successors with
1940 multiple predecessors and no virtual uses.
1941
cc6e7ece
EB
19422013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1943
1944 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1945 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1946
f778dd4d
JJ
19472013-05-14 Jakub Jelinek <jakub@redhat.com>
1948
1949 PR middle-end/57251
1950 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1951 the case when both op0 and op1 have VOIDmode.
1952
bad4df9b
KP
19532013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1954
1955 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1956 in multiply-accumulate mode.
1957
56f3e9ac
GW
19582013-05-13 Guozhi Wei <carrot@google.com>
1959
1960 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1961
a3d7ab92
KT
19622013-05-13 Kai Tietz <ktietz@redhat.com>
1963
1964 PR target/56975
1965 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 1966 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 1967 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 1968 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
1969 (ix86_expand_prologue): Likewise.
1970 (ix86_expand_split_stack_prologue): Likewise.
1971 (legitimate_pic_address_disp_p): Likewise.
1972 (legitimize_pic_address): Likewise.
1973 (legitimize_tls_address): Likewise.
1974 (legitimize_pe_coff_symbol): Likewise.
1975 (output_pic_addr_const): Likewise.
1976 (construct_plt_address): Likewise.
1977 (ix86_expand_call): Likewise.
1978 (x86_output_mi_thunk): Likewise.
1979 (x86_function_profiler): Likewise.
1980
c59b7e28
SN
19812013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1982
1983 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1984 similar switch cases.
1985 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1986 (aarch64_simd_mov_to_<mode>low): Delete.
1987 (aarch64_simd_mov_to_<mode>high): Delete.
1988 (move_lo_quad_<mode>): Add w<-r alternative.
1989 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1990 (aarch64_simd_mov_from_*): Update type attribute.
1991 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1992 statement.
1993
5f28524a
JH
19942013-05-13 Jan Hubicka <jh@suse.cz>
1995
1996 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1997 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
1998 ix86_expand_epilogue, emit_i387_cw_initialization,
1999 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2000 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 2001
ae6fa899
JJ
20022013-05-13 Jakub Jelinek <jakub@redhat.com>
2003
2004 PR tree-optimization/45216
2005 PR tree-optimization/57157
2006 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2007 the (-Y) & (B - 1) variant if OP is |.
2008 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2009 return shifted. Use (-op1) & (prec - 1) as other_amount
2010 instead of prec - op1.
2011
4502fe8d
MJ
20122013-05-13 Martin Jambor <mjambor@suse.cz>
2013
2014 PR middle-end/42371
2015 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2016 (ipa_constant_data): New type.
2017 (ipa_jump_func): Use ipa_constant_data to hold information about
2018 constant jump functions.
2019 (ipa_get_jf_constant): Adjust to jump function type changes.
2020 (ipa_get_jf_constant_rdesc): New function.
2021 (ipa_param_descriptor): New field controlled_uses.
2022 (ipa_get_controlled_uses): New function.
2023 (ipa_set_controlled_uses): Likewise.
2024 * ipa-ref.h (ipa_find_reference): Declare.
2025 * ipa-prop.c (ipa_cst_ref_desc): New type.
2026 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2027 changes.
2028 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2029 New parameter cs. Adjust all callers.
2030 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2031 (remove_described_reference): New function.
2032 (jfunc_rdesc_usable): Likewise.
2033 (try_make_edge_direct_simple_call): Decrement controlled use count,
2034 attempt to remove reference if it hits zero.
2035 (combine_controlled_uses_counters): New function.
2036 (propagate_controlled_uses): Likewise.
2037 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2038 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2039 (ipa_print_node_params): Print described use counter.
2040 (ipa_write_jump_function): Adjust to jump function type changes.
2041 (ipa_read_jump_function): New parameter CS, pass it to
2042 ipa_set_jf_constant. Adjust caller.
2043 (ipa_write_node_info): Stream controlled use count
2044 (ipa_read_node_info): Likewise.
2045 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2046 asserting.
2047 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2048 count. Remove cloning-added reference if it reaches zero.
2049 * ipa-ref.c (ipa_find_reference): New function.
2050
0864bfc2
GG
20512013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2052
e7208ea3 2053 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
2054 alignment values for AMD BD and BT architectures.
2055
640bfeb2
MG
20562013-05-13 Marc Glisse <marc.glisse@inria.fr>
2057
2058 * tree-vect-generic.c (uniform_vector_p): Move ...
2059 * tree.c (uniform_vector_p): ... here.
2060 * tree.h (uniform_vector_p): Declare it.
2061 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2062 into a scalar.
2063
3a60f32b
JJ
20642013-05-13 Jakub Jelinek <jakub@redhat.com>
2065
198fe1bf
JJ
2066 PR tree-optimization/57230
2067 * tree-ssa-strlen.c (handle_char_store): Record length for
2068 array store from STRING_CST.
2069
3a60f32b
JJ
2070 PR tree-optimization/57230
2071 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2072 check.
2073
566be57c
JR
20742013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2075
2076 * config/epiphany/epiphany.c (epiphany_init): Check size of
2077 NUM_MODES_FOR_MODE_SWITCHING.
2078 (epiphany_expand_prologue):
2079 Remove CONFIG_REGNUM initial value handling code.
2080 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2081 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 2082 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
2083 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2084 Don't return 1 for FP_MODE_NONE.
2085 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2086 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2087 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2088 * config/epiphany/epiphany.md (save_config): New pattern.
2089
0f2c2331
UB
20902013-05-12 Uros Bizjak <ubizjak@gmail.com>
2091
2092 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2093
5b3f93c7
UB
20942013-05-10 Uros Bizjak <ubizjak@gmail.com>
2095
2096 * config/i386/i386.md (memory): Handle sseishft1.
2097 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2098 (*vec_extractv2di_1): Ditto.
2099
1f873f0e
VM
21002013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2101
2102 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2103 saved registers.
2104
341427fa 21052013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
2106
2107 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2108 Add mthumb/march=armv7-a multilib.
2109 Add mthumb/march=armv7-r multilib.
2110 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2111
9e69bdde
RC
21122013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2113
2114 * config/v850/t-rtems: Add more multilibs.
2115
9ff09a22
RB
21162013-05-10 Richard Biener <rguenther@suse.de>
2117
2118 PR tree-optimization/57214
2119 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2120 not propagate from SSA names that occur in abnormal PHI nodes.
2121
a5e0cd1d
MG
21222013-05-10 Marc Glisse <marc.glisse@inria.fr>
2123
2124 * stor-layout.c (element_precision): New function.
2125 * machmode.h (element_precision): Declare it.
2126 * tree.c (build_minus_one_cst): New function.
2127 (element_precision): Likewise.
2128 * tree.h (build_minus_one_cst): Declare new function.
2129 (element_precision): Likewise.
2130 * fold-const.c (operand_equal_p): Use element_precision.
2131 (fold_binary_loc): Handle vector types.
2132 * convert.c (convert_to_integer): Use element_precision.
2133 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2134 separately.
2135
cb2558bc
RS
21362013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2137
2138 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2139 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2140 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2141 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2142 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2143 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2144 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2145 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2146 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2147 (Uuw8): New constraints.
2148 (Usb4): Move into alphabetical order.
2149 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2150 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2151 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2152 previously unnamed patterns.
2153 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2154 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2155 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2156 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2157 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2158 of specific lengths.
2159
cb3b8d33
JJ
21602013-05-10 Jakub Jelinek <jakub@redhat.com>
2161
6f93c008
JJ
2162 * config/i386/i386.md (rotateinv): New code attr.
2163 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2164 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2165 roll $31, %eax, etc.
2166
cb3b8d33
JJ
2167 PR tree-optimization/45216
2168 PR tree-optimization/57157
2169 * tree-ssa-forwprop.c (simplify_rotate): New function.
2170 (ssa_forward_propagate_and_combine): Call it.
2171
afb119be
RB
21722013-05-10 Richard Biener <rguenther@suse.de>
2173
2174 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2175 disable peeling when we version for aliasing.
2176 (vector_alignment_reachable_p): Honor explicit user alignment.
2177 (vect_supportable_dr_alignment): Likewise.
2178 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2179 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2180 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2181 then peeling to arrange for the cost-model check to come first.
2182
01ae4861
AM
21832013-05-10 Alan Modra <amodra@gmail.com>
2184
2185 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2186 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2187 * configure: Regenerate.
2188
ebc9a431
AM
21892013-05-10 Alan Modra <amodra@gmail.com>
2190
2191 PR target/55033
2192 * varasm.c (default_elf_select_section): Move !DECL_P check..
2193 (get_named_section): ..to here before calling get_section_name.
2194 Adjust assertion.
2195 (default_section_type_flags): Add DECL_P check.
2196 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2197 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2198
d4bca93c
JR
21992013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2200
2201 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2202 When using gen_stack_adjust_str with a register offset, add a
2203 REG_FRAME_RELATED_EXPR note.
2204
60ca9a65
UB
22052013-05-09 Uros Bizjak <ubizjak@gmail.com>
2206
2207 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2208 (*vec_extractv4si_zext_mem): Ditto.
2209 (*vec_extractv2di): Add 0->x and x->x alternatives.
2210 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2211 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2212
a3409c02
JM
22132013-05-09 Jason Merrill <jason@redhat.com>
2214
0138d6b2
JM
2215 N3639 C++1y VLA support
2216 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2217 DECL_VALUE_EXPR.
2218
a3409c02
JM
2219 * tree.c (build_constructor_va): New.
2220 * tree.h: Declare it.
2221
66e6b990
MJ
22222013-05-09 Martin Jambor <mjambor@suse.cz>
2223
2224 PR lto/57084
2225 * gimple-fold.c (canonicalize_constructor_val): Call
2226 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2227
64cfa6c0
JH
22282013-05-09 Jan Hubicka <jh@suse.cz>
2229 Richard Biener <rguenther@suse.de>
2230
2231 PR lto/54095
2232 * symtab.c (symtab_make_decl_local): Do not add private names.
2233
c3167b00
JH
22342013-05-09 Jan Hubicka <jh@suse.cz>
2235
2236 PR lto/54095
2237 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2238 (unlink_from_assembler_name_hash): Likewise.
2239 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2240 symtab_unregister_node, symtab_initialize_asm_name_hash,
2241 change_decl_assembler_name): Update.
2242
12dc6974
SN
22432013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2244
2245 * config/aarch64/aarch64.md: New movtf split.
2246 (*movtf_aarch64): Update.
2247 (aarch64_movdi_tilow): Handle TF modes and rename to
2248 aarch64_movdi_<mode>low.
2249 (aarch64_movdi_tihigh): Handle TF modes and rename to
2250 aarch64_movdi_<mode>high
2251 (aarch64_movtihigh_di): Handle TF modes and rename to
2252 aarch64_mov<mode>high_di
2253 (aarch64_movtilow_di): Handle TF modes and rename to
2254 aarch64_mov<mode>low_di
2255 (aarch64_movtilow_tilow): Remove spurious whitespace.
2256 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2257 splits.
2258 (aarch64_print_operand): Update.
2259
227eb343
AM
22602013-05-09 Alan Modra <amodra@gmail.com>
2261
2262 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2263 powerpc64le.
2264 * configure: Regenerate.
2265
0b013847
UB
22662013-05-08 Uros Bizjak <ubizjak@gmail.com>
2267
2268 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2269 splitter preparation statements.
2270 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2271 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2272 adjust_address_nv.
2273
1dc3d6e9
BS
22742013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2275
2276 * gimple-ssa-strength-reduction.c (count_candidates): Change
2277 return value to int.
2278 (analyze_candidates_and_replace): Change type of length to int.
2279
e61e7d28
UB
22802013-05-08 Uros Bizjak <ubizjak@gmail.com>
2281
2282 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2283 (*vec_extract<mode>): Use VI12_128 mode iterator.
2284 (*vec_extract<mode>_mem): Ditto.
2285 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2286 attribute.
2287
4fbfcf44
DN
22882013-05-08 Diego Novillo <dnovillo@google.com>
2289
2290 PR bootstrap/54659
2291
2292 Revert:
4fbfcf44
DN
2293 2012-08-17 Diego Novillo <dnovillo@google.com>
2294
e61e7d28
UB
2295 PR bootstrap/54281
2296 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2297 * config.in: Regenerate.
2298 * configure: Regenerate.
2299 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 2300
702d8703
JH
23012013-05-08 Jan Hubicka <jh@suse.cz>
2302
2303 PR lto/54095
2304 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2305 * cgraph.h (symtab_node_base): Add unique_name.
2306 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2307 input_overwrite_node, input_varpool_node): Stream unique_name.
2308 * cgraphclones.c (cgraph_create_virtual_clone,
2309 cgraph_function_versioning): Set unique_name.
2310 * ipa.c (function_and_variable_visibility): Set unique_name.
2311
8b28cf47
BS
23122013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2313
2314 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2315 (alloc_cand_and_find_basis): Restrict conditional candidate
2316 processing to CAND_MULTs.
2317
e86074fd
JH
23182013-05-08 Jan Hubicka <jh@suse.cz>
2319
2320 PR lto/54095
2321 lto-symtab.c (lto_symtab_symbol_p): New function.
2322 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2323 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2324 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2325 Skip static symbols.
2326
44398cbe
PC
23272013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2328
2329 PR tree-optimization/57200
2330 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2331 Only call inform if the preceding warning_at returns true.
2332
f6bc1c4a
HS
23332013-05-07 Han Shen <shenhan@google.com>
2334
2335 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2336 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2337 * common.opt (fstack-protector-strong): New option.
2338 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2339 * doc/invoke.texi (Optimization Options): Document
2340 "-fstack-protector-strong".
2341 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2342
4ffecb1f
SB
23432013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2344
2345 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2346
5a107a0f
VM
23472013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2348
2349 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2350 it is not lhs of the insn.
2351 (setup_reg_equiv): Remove insn having equiv memory which it is not
2352 lhs of the insn.
2353 * lra-constraints.c (process_address): Try to improve generation
2354 code for address base + disp.
2355 (lra_constraints): Make correct the code for checking insn setting
2356 up backward equivalence. Remove insn only if it is in the init
2357 insn list.
2358 * lra-eliminations.c (update_reg_eliminate): Change return value.
2359 (lra_eliminate): Use the result.
2360
3f5783ea
UB
23612013-05-07 Uros Bizjak <ubizjak@gmail.com>
2362
2363 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2364 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2365 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2366 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2367 register target operands.
2368 (*vec_extractv8hi_sse2): New pattern.
2369 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2370 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2371 (*vec_extract<mode>_mem): New insn and split pattern.
2372
8a5800b8
CL
23732013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2374
2375 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2376 (TARGET_ASAN_SHADOW_OFFSET): Define.
2377 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2378 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2379
7bf55a70
BS
23802013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2381
2382 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2383 (incr_vec_index): Return -1 if increment not found.
2384 (create_add_on_incoming_edge): Assert if increment not found.
2385 (record_increment): Limit number of increments recorded.
2386 (all_phi_incrs_profitable): Return false if an increment not found.
2387 (replace_profitable_candidates): Don't process increments that were
2388 not recorded.
2389 (analyze_candidates_and_replace): Limit size of incr_vec.
2390
3f8825c0
RB
23912013-05-07 Richard Biener <rguenther@suse.de>
2392
2393 * calls.c (special_function_p): setjmp-like functions are leaf.
2394 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2395 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2396
fd4842cd
SN
23972013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2398
2399 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2400 (aarch64_simd_mov<mode>): New expander.
2401 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2402 (aarch64_simd_mov_to_<mode>high): Likewise.
2403 (aarch64_simd_mov_from_<mode>low): Likewise.
2404 (aarch64_simd_mov_from_<mode>high): Likewise.
2405 (aarch64_dup_lane<mode>): Update.
2406 (aarch64_dup_lanedi): New instruction pattern.
2407 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2408 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2409
a7a7d10e
BS
24102013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2411
2412 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2413 (replace_mult_candidate): Remove unnecessary argument; remove
2414 unnecessary parameter from call to introduce_cast_before_cand.
2415 (replace_unconditional_candidate): Remove unnecessary parameter
2416 from call to replace_mult_candidate.
2417 (replace_conditional_candidate): Likewise.
2418 (insert_initializers): Use make_temp_ssa_name.
2419 (introduce_cast_before_cand): Remove unnecessary argument; use
2420 make_temp_ssa_name.
2421 (replace_one_candidate): Remove unnecessary argument; remove
2422 unnecessary parameter from calls to introduce_cast_before_cand.
2423 (replace_profitable_candidates): Remove unnecessary parameters
2424 from calls to replace_one_candidate.
2425
29105868
BS
24262013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2427
2428 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2429 phi def as possibly hiding a basis for a CAND_ADD whose operands
2430 have been commuted in the analysis.
2431 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2432
4095f9fa
N
24332013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2434
2435 * config/aarch64/aarch64.md
2436 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2437 shift value between 0-4.
2438
39e843e8
RB
24392013-05-07 Richard Biener <rguenther@suse.de>
2440
2441 * double-int.h (rshift): New overload.
2442 * double-int.c (rshift): New function.
2443 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2444 (create_reference_ops_from_ref): Remove.
2445 (vn_reference_insert): Use shared ops for constructing the
2446 reference and copy it.
2447
0a1a83cb
RB
24482013-05-07 Richard Biener <rguenther@suse.de>
2449
2450 PR middle-end/57190
2451 * tree-eh.c (sink_clobbers): Properly propagate
2452 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2453
43303d6f
JJ
24542013-05-07 Jakub Jelinek <jakub@redhat.com>
2455
ba7e83f8
JJ
2456 PR tree-optimization/57149
2457 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2458 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2459 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2460 uninit_undefined_value_p instead of ssa_undefined_value_p.
2461
43303d6f
JJ
2462 PR debug/57184
2463 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2464 for modifier == EXPAND_INITIALIZER.
2465
14523c25
AB
24662013-05-07 Anton Blanchard <anton@samba.org>
2467
2468 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2469 for powerpc64 little endian.
2470 * configure: Regenerate.
2471
cb7c8be9
GS
24722013-05-06 Graham Stott <grahams@btinternet.com>
2473
2474 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2475 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2476 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2477 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2478
24792013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
2480
2481 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2482 codes which allow non-lvalues.
2483
9a0ee7b0
MG
24842013-05-06 Marc Glisse <marc.glisse@inria.fr>
2485
2486 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2487 components are all 1s.
2488 (integer_minus_onep): New function.
2489 * tree.h (integer_minus_onep): Declare it.
2490 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2491 integer_minus_onep instead of integer_all_onesp.
2492
f2c17ea9
OE
24932013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2494
2495 PR target/52933
2496 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2497 variations of these patterns.
2498
f75e6a51
UB
24992013-05-06 Uros Bizjak <ubizjak@gmail.com>
2500
2501 * config/i386/i386.md (isa): Add x64_sse4 member.
2502 (enabled): Handle x64_sse4.
2503 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2504 instruction for 64bit SSE4_1 targets. Update insn attributes.
2505 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2506 instruction for SSE4_1 targets. Update insn attributes.
2507 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2508 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2509 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2510 const_1 selector.
2511 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2512 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2513 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2514
a986d468
OE
25152013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2516
2517 PR target/57108
2518 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2519
382522cb
MK
25202013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2521
2522 * final.c (do_assembler_dialects): Don't handle curly braces and
2523 vertical bar escaped by % as dialect delimiters.
2524 (output_asm_insn): Print curly braces and vertical bar if escaped
2525 by % and ASSEMBLER_DIALECT defined.
2526 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2527 * doc/tm.texi: Regenerated.
2528
fb0d5c60
SB
25292013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2530
fb0d5c60
SB
2531 * config/mips/mips.c: Include tree-pass.h.
2532 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2533 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2534 (pass_mips_machine_reorg2): New machine specific pass.
2535 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2536 (mips_option_override): Register the new pass.
2537 * rtl.h (cleanup_barriers): Remove prototype.
2538 (dbr_schedule): Likewise.
2539 * jump.c (cleanup_barriers): Make static.
2540 * reorg.c (dbr_schedule): Likewise.
2541
aa06a978
RB
25422013-05-06 Richard Biener <rguenther@suse.de>
2543
2544 PR tree-optimization/57185
2545 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2546 SSA names properly.
2547
0b953bec
UB
25482013-05-06 Uros Bizjak <ubizjak@gmail.com>
2549
2550 PR target/57106
2551 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2552 between "first_arg" and "insn", not "last" and "insn".
2553
28708525
WS
25542013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2555
2556 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2557 (find_candidates_in_block): Re-enable slsr_process_phi.
2558 (create_phi_basis): Fix double counting of candidate adjustment.
2559
0107dca2
RB
25602013-05-06 Richard Biener <rguenther@suse.de>
2561
2562 PR middle-end/57147
2563 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2564 the edge is also fallthru, preserve it and just clear the
2565 abnormal flag.
2566 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2567 also complex, preserve that and just clear the fallthru flag.
2568 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2569 update virtual operands.
2570
470d4d13
AM
25712013-05-06 Alan Modra <amodra@gmail.com>
2572
2573 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2574 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2575 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2576 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2577 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2578 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2579
8f1dbf8d
AM
25802013-05-06 Alan Modra <amodra@gmail.com>
2581
2582 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2583 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2584 (DEFAULT_ASM_ENDIAN): Define.
2585 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2586 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2587 Update -K PIC clause from sysv4.h.
2588 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2589 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2590
54890767
AM
25912013-05-06 Alan Modra <amodra@gmail.com>
2592
2593 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2594 twice for little-endian.
2595 (ashrdi3_no_power, ashrdi3): Support little-endian.
2596
2353515d
OE
25972013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2598
2599 PR target/55303
2600 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2601 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2602 related expanders.
2603 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2604 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2605 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2606 New predicates.
2607
33e67557
SB
26082013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2609 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2610
2611 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2612 * config/pa/pa.opt: Make mbig-switch a no-op.
2613 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2614 (CASE_VECTOR_MODE): Always return SImode.
2615 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2616 for the !TARGET_BIG_SWITCH case.
2617 * config/pa/pa-linux.h: Likewise.
2618 * config/pa/pa-openbsd.h: Likewise.
2619 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2620 * config/pa/pa.md (short_jump): Remove define_insn.
2621 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2622 (casesi0): Remove define_insn.
2623 (type): Remove btable_branch.
2624 (pa_combine_type): Likewise.
2625 (in_nullified_branch_delay): Likewise.
2626 (in_call_delay): Likewise.
2627 (define_delay): Likewise.
2628 (define_insn_reservation "Z3"): Likewise.
2629 (define_insn_reservation "Z4"): Likewise.
2630 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2631 (pa_adjust_insn_length): Remove adjustment for btable branches.
2632 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2633 and mno-big-switch
2634
3095685e
UB
26352013-05-05 Uros Bizjak <ubizjak@gmail.com>
2636
2637 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2638 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2639 Add m->r,x alternatives.
2640 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2641 splitters using SWI48x mode iterator.
2642 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2643 TARGET_64BIT. Add m->x alternative.
2644 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2645 Add o->x alternative. Enable for TARGET_SSE.
2646 (sse_storeq): Remove expander.
2647 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2648 with memory input operand.
2649 (*vec_extractv2di_1 splitter): New.
2650 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2651 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2652
4b36ae28
SB
26532013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2654
2655 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2656 (INT_LOWPART): Delete.
2657 (extract_MB): Adjust.
2658 (extract_ME): Adjust.
2659 (print_operand): Adjust.
2660
da226db2
SB
26612013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2662
2663 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2664 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2665 (reg_or_logical_cint_operand, easy_fp_constant,
2666 logical_const_operand): Delete "CONST_DOUBLE" case.
2667 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2668 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 2669 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
2670 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2671 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2672 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2673 test.
2674 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2675 CONST_DOUBLE DImode/VOIDmode case.
2676 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2677 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2678 CONST_DOUBLE VOIDmode case.
2679 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2680 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2681 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2682 Delete CONST_DOUBLE case.
2683 (splitters for mov FMOVE64 const_double): Delete
2684 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2685 "HOST_BITS_PER_WIDE_INT >= 64" test.
2686 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2687 case.
2688 (mov DI const_double): Delete.
2689
40de22d6
JJ
26902013-05-04 Jakub Jelinek <jakub@redhat.com>
2691
2692 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2693 on op shows all bits zero in mode of a lowpart subreg, return zero.
2694
5ec6aff2
MM
26952013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2696
2697 PR target/57150
2698 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2699 to save TFmode registers and DImode to save TImode registers for
2700 caller save operations.
2701 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2702 mark being partially clobbered since they only use the first
2703 double word.
2704
2705 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2706 and TDmode only use the upper 64-bits of each VSX register.
2707
2cefad90
BS
27082013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2709
2710 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2711 (find_candidates_in_block): Disable slsr_process_phi.
2712
d6d7eee1
GW
27132013-05-03 Guozhi Wei <carrot@google.com>
2714
2715 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
2716 constructor to ...
2717 (build_init_ctor): ... here.
d6d7eee1 2718
9b92d12b
BS
27192013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2720
2721 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2722 (slsr_cand_d): Redefine def_phi.
2723 (stride_status, phi_adjust_status, count_phis_status): New enums.
2724 (find_phi_def): New.
2725 (find_basis_for_base_expr): New.
2726 (find_basis_for_candidate): Handle hidden bases.
2727 (alloc_cand_and_find_basis): Handle phi candidates.
2728 (slsr_process_phi): New.
2729 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2730 (create_mul_imm_cand): Likewise.
2731 (create_add_ssa_cand): Exclude phi base candidates.
2732 (create_add_imm_cand): Likewise.
2733 (slsr_process_cast): Likewise.
2734 (slsr_process_copy): Likewise.
2735 (find_candidates_in_block): Handle phi candidates.
2736 (dump_candidate): Likewise.
2737 (unconditional_cands): Delete.
2738 (unconditional_cands_with_known_stride_p): Delete.
2739 (phi_dependent_cand_p): New.
2740 (cand_increment): Handle phi-dependent candidates.
2741 (replace_dependent): Delete.
2742 (replace_mult_candidate): New.
2743 (replace_unconditional_candidate): New.
2744 (incr_vec_index): Move to avoid forward reference.
2745 (create_add_on_incoming_edge): New.
2746 (create_phi_basis): New.
2747 (replace_dependents): Delete.
2748 (replace_conditional_candidate): New.
2749 (phi_add_costs): New.
2750 (replace_uncond_cands_and_profitable_phis): New.
2751 (record_increment): Handle phi adjustments.
2752 (record_phi_increments): New.
2753 (record_increments): Handle phi adjustments.
2754 (phi_incr_cost): New.
2755 (lowest_cost_path): Handle phis.
2756 (total_savings): Likewise.
2757 (analyze_increments): Likewise.
2758 (ncd_with_phi): New.
2759 (ncd_of_cand_and_phis): New.
2760 (nearest_common_dominator_for_cands): Handle phi increments.
2761 (all_phi_incrs_profitable): New.
2762 (replace_profitable_candidates): Handle phi-dependent candidates.
2763 (analyze_candidates_and_replace): Likewise.
2764
68f073d4
TJ
27652013-05-03 Teresa Johnson <tejohnson@google.com>
2766
2767 PR bootstrap/57154
2768 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2769 do not exceed REG_BR_PROB_BASE.
2770
a4ee7cb9
JL
27712013-05-03 Jeff Law <law@redhat.com>
2772
ade67f70 2773 PR tree-optimization/57144
a4ee7cb9
JL
2774 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2775 operand of the condition will bit into the new type when eliminating
2776 a cast feeding a condition.
2777
47954c4e
JJ
27782013-05-03 Jakub Jelinek <jakub@redhat.com>
2779
2780 PR rtl-optimization/57130
3095685e
UB
2781 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2782 of COMPARE as in_code to the recursive call if needed.
47954c4e 2783
3c21604f
UB
27842013-05-03 Uros Bizjak <ubizjak@gmail.com>
2785
2786 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2787 (enabled): Handle new members.
2788 * config/i386/sse.md (*vec_concatv2si): Merge from
2789 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2790 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2791
95c03b36
JR
27922013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2793
2794 PR tree-optimization/57027
2795 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2796 for fnms opportunity, check we got the prerequisite kind
2797 of tree / gimple before using accessor functions.
2798
07bfc9ec
RB
27992013-05-03 Richard Biener <rguenther@suse.de>
2800
2801 * double-int.h (lshift): New overload without precision
2802 and arith argument.
2803 (operator *=, operator +=, operator -=): Move ...
2804 * double-int.c (operator *=, operator +=, operator -=): ... here
2805 and implement more efficiently.
2806 (mul_double_with_sign): Remove.
2807 (lshift_double): Adjust to take unsinged shift argument, push
2808 dispatching code to callers.
2809 (mul_double_wide_with_sign): Add early out for callers that
2810 are not interested in high parts or overflow.
2811 (lshift): New function.
2812 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2813 dispatch code here.
2814 (lrotate, rrotate): Use logical shifts.
2815 * expr.c (get_inner_reference): Use lshift.
2816 * fixed-value.c (do_fixed_divide): Likewise.
2817 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2818 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2819 (indirect_refs_may_alias_p): Likewise.
2820 (stmt_kills_ref_p_1): Likewise.
2821
7769bb64
VP
28222013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2823
2824 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2825
1d0c8e5c
VP
28262013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2827
2828 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2829 scalar form of FABD instruction.
2830
f15feaf9
VM
28312013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2832
2833 * lra-constraints.c (process_alt_operands): Add checking alt
2834 number to choose the best alternative.
2835
d90e76d4
RB
28362013-05-02 Richard Biener <rguenther@suse.de>
2837
2838 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2839 bitmap and its handling.
2840 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2841
9f8e7a96
RB
28422013-05-02 Richard Biener <rguenther@suse.de>
2843
2844 PR middle-end/57140
2845 * tree-inline.c (copy_loops): Properly handle removed loops.
2846 (copy_cfg_body): Mark destination loops for fixup if source
2847 loops needed fixup.
2848
f3a81b39
GY
28492013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2850
2851 PR target/56732
2852 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2853 generating simple_return for naked functions.
2854
7b920a9a
MJ
28552013-05-02 Martin Jambor <mjambor@suse.cz>
2856
2857 PR middle-end/56988
2858 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2859 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2860 flags match.
2861 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2862 ipa_agg_replacement_value structures.
2863 (known_aggs_to_agg_replacement_list): Likewise.
2864 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2865 (read_agg_replacement_chain): Likewise.
2866 (ipcp_transform_function): Also check that by_ref flags match.
2867
2c41c19d
RB
28682013-05-02 Richard Biener <rguenther@suse.de>
2869
2870 * graphds.h (struct graph): Add obstack member.
2871 * graphds.c (new_graph): Initialize obstack and allocate
2872 vertices from it.
2873 (add_edge): Allocate edge from the obstack.
3c21604f 2874 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2875
8b47039c
TJ
28762013-05-02 Teresa Johnson <tejohnson@google.com>
2877
2878 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2879 divides.
2880 * cfg.c (update_bb_profile_for_threading): Ditto.
2881 * tree-inline.c (copy_bb): Ditto.
2882 (copy_edges_for_bb): Ditto.
2883 (initialize_cfun): Ditto.
2884 (copy_cfg_body): Ditto.
2885 (expand_call_inline): Ditto.
2886 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2887 (estimate_node_size_and_time): Ditto.
2888 (inline_merge_summary): Ditto.
2889 * cgraphclones.c (cgraph_clone_edge): Ditto.
2890 (cgraph_clone_node): Ditto.
2891 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2892 (compute_trg_info): Ditto.
2893
da65928c
IB
28942013-05-02 Ian Bolton <ian.bolton@arm.com>
2895
2896 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2897 S reg when fp attribute set.
2898 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2899
add3c965
IB
29002013-05-02 Ian Bolton <ian.bolton@arm.com>
2901
2902 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2903 New pattern.
2904 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2905 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2906 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2907
fdd43ac4
RB
29082013-05-02 Richard Biener <rguenther@suse.de>
2909
2910 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2911 (struct instantiate_cache_entry): New type.
2912 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2913 (struct instantiate_cache_type): New type.
2914 (set_instantiated_value, get_instantiated_value): Remove.
2915 (get_instantiated_value_entry): New function.
2916 (instantiate_scev_name): Use the new cache and adjust.
2917 (instantiate_scev_poly): Adjust.
2918 (instantiate_scev_binary): Likewise.
2919 (instantiate_array_ref): Likewise.
2920 (instantiate_scev_convert): Likewise.
2921 (instantiate_scev_not): Likewise.
2922 (instantiate_scev_3): Likewise.
2923 (instantiate_scev_2): Likewise.
2924 (instantiate_scev_r): Likewise.
2925 (instantiate_scev): Likewise.
2926 (resolve_mixers): Likewise.
2927
36ff9dfb
VM
29282013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2929
2930 PR target/57091
2931 * lra-constraints.c (best_small_class_operands_num): Remove.
2932 (process_alt_operands): Remove small_class_operands_num. Take
2933 small classes operands into losers and only if the operand is not
2934 matched. Modify debugging output.
2935 (curr_insn_transform): Remove best_small_class_operands_num.
2936 Print insn name.
2937
36054fab
JG
29382013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2939
2940 * config/aarch64/aarch64-builtins.c
2941 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2942 * config/aarch64/aarch64-simd-builtins.def
2943 (reduc_splus_): Add new modes.
2944 (reduc_uplus_): New.
2945 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2946 (reduc_uplus_v4sf): Likewise.
2947 (reduc_splus_v4sf): Likewise.
2948 (aarch64_addv<mode>): Likewise.
2949 (reduc_uplus_<mode>): Likewise.
2950 (reduc_splus_<mode>): Likewise.
2951 (aarch64_addvv2di): Likewise.
2952 (reduc_uplus_v2di): Likewise.
2953 (reduc_splus_v2di): Likewise.
2954 (aarch64_addvv2si): Likewise.
2955 (reduc_uplus_v2si): Likewise.
2956 (reduc_splus_v2si): Likewise.
2957 (reduc_<sur>plus_<mode>): New.
2958 (reduc_<sur>plus_v2di): Likewise.
2959 (reduc_<sur>plus_v2si): Likewise.
2960 (reduc_<sur>plus_v4sf): Likewise.
2961 (aarch64_addpv4sf): Likewise.
2962 * config/aarch64/arm_neon.h
2963 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2964 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2965 add UNSPEC_SADDV, UNSPEC_UADDV.
2966 (SUADDV): New.
2967 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2968
6dce23a8
JG
29692013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2970
2971 * config/aarch64/arm_neon.h
2972 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2973
1598945b
JG
29742013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2975
2976 * config/aarch64/aarch64-builtins
2977 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2978
998eaf97
JG
29792013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2980
2981 * config/aarch64/aarch64-simd-builtins.def
2982 (reduc_smax_): New.
2983 (reduc_smin_): Likewise.
2984 (reduc_umax_): Likewise.
2985 (reduc_umin_): Likewise.
2986 (reduc_smax_nan_): Likewise.
2987 (reduc_smin_nan_): Likewise.
2988 (fmax): Remove.
2989 (fmin): Likewise.
2990 (smax): Update for V2SF, V4SF and V2DF modes.
2991 (smin): Likewise.
2992 (smax_nan): New.
2993 (smin_nan): Likewise.
2994 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2995 (<su><maxmin><mode>3): ...This, refactor.
2996 (s<maxmin><mode>3): New.
2997 (<maxmin_uns><mode>3): Likewise.
2998 (reduc_<maxmin_uns>_<mode>): Refactor.
2999 (reduc_<maxmin_uns>_v4sf): Likewise.
3000 (reduc_<maxmin_uns>_v2si): Likewise.
3001 (aarch64_<fmaxmin><mode>: Remove.
3002 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3003 new builtin names.
3004 (vmin<q>_f<32,64>): Likewise.
3005 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3006 (FMAXMIN): New.
3007 (su): Add mappings for smax, smin, umax, umin.
3008 (maxmin): New.
3009 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3010 (FMAXMIN): Rename as...
3011 (FMAXMIN_UNS): ...This.
3012 (maxminv): Remove.
3013 (fmaxminv): Likewise.
3014 (fmaxmin): Likewise.
3015 (maxmin_uns): New.
3016 (maxmin_uns_op): Likewise.
3017
bd11644e
JG
30182013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3019
3020 * config/aarch64/arm_neon.h
3021 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3022 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3023 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3024
75dd5ace
JG
30252013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3026
3027 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3028 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3029
7c19979f
JG
30302013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3031
3032 * config/aarch64/aarch64-simd.md
3033 (vcond<mode>_internal): Handle special cases for constant masks.
3034 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3035 (vcondu<mode><mode>): Likewise.
3036 (vcond<v_cmp_result><mode>): New.
3037
bb60efd9
JG
30382013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3039
3040 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3041 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3042 * config/aarch64/aarch64-simd-builtins.def
3043 (cmeq): Update to BUILTIN_VALLDI.
3044 (cmgt): Likewise.
3045 (cmge): Likewise.
3046 (cmle): Likewise.
3047 (cmlt): Likewise.
3048 * config/aarch64/arm_neon.h
3049 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3050 to builtins or C as appropriate.
3051
889b9412
JG
30522013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3053
3054 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3055 (cmgeu): ...This.
3056 (cmhi): Rename to...
3057 (cmgtu): ...This.
3058 * config/aarch64/aarch64-simd.md
3059 (simd_mode): Add SF.
3060 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3061 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3062 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3063 (cstore<mode>_neg): ...This.
3064 * config/aarch64/iterators.md
3065 (VALLF): new.
3066 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3067 (COMPARISONS): New.
3068 (UCOMPARISONS): Likewise.
3069 (optab): Add missing comparisons.
3070 (n_optab): New.
3071 (cmp_1): Likewise.
3072 (cmp_2): Likewise.
3073 (CMP): Likewise.
3074 (cmp): Remove.
3075 (VCMP_S): Likewise.
3076 (VCMP_U): Likewise.
3077 (V_cmp_result): Add DF, SF modes.
3078 (v_cmp_result): Likewise.
3079 (v): Likewise.
3080 (vmtype): Likewise.
3081 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3082
0a7dbb76
GY
30832013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3084
3085 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3086 define_insn to define_insn_and_split.
3087 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3088 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3089 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3090 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3091 (thumb2_negscc): Likewise.
3092
fb614ca6
GY
30932013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3094
3095 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3096
9e64a0bf
GY
30972013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3098
3099 * config/arm/thumb2.md: Remove trailing whitespaces.
3100
d6b28156
RS
31012013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3102
3103 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3104 Use gen_int_mode rather than GEN_INT.
3105
f91674c3
L
31062013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3107
b0dec607 3108 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
3109 debug_gimple_stmt.
3110
3551257c
RB
31112013-04-30 Richard Biener <rguenther@suse.de>
3112
3113 PR middle-end/57122
3c21604f 3114 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 3115
4c1aff1c
RB
31162013-04-30 Richard Biener <rguenther@suse.de>
3117
3118 PR middle-end/57107
3119 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3120
54b8379a
AB
31212013-04-30 Andrey Belevantsev <abel@ispras.ru>
3122
3123 PR rtl-optimization/56957
3124 PR rtl-optimization/57105
54b8379a
AB
3125 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3126 variable. Use just INSN_UID for determining whether an insn
3127 should be only disconnected from the insn stream.
3128 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3129
abc27962
JJ
31302013-04-30 Jakub Jelinek <jakub@redhat.com>
3131
3132 PR tree-optimization/57104
3133 * tsan.c (instrument_expr): Don't instrument accesses to
3134 DECL_HARD_REGISTER VAR_DECLs.
3135
0fc822d0
RB
31362013-04-30 Richard Biener <rguenther@suse.de>
3137
3138 * function.h (loops_for_fn): New inline function.
3139 (set_loops_for_fn): Likewise.
3140 * cfgloop.h (place_new_loop): Add struct function parameter.
3141 (get_loop): Likewise.
3142 (get_loops): Likewise.
3143 (number_of_loops): Likewise.
3144 (fel_next): Adjust.
3145 (fel_init): Likewise.
3146 * cfg.c (get_loop_copy): Adjust.
3147 * cfgloop.c (flow_loops_dump): Likewise.
3148 (record_loop_exits): Likewise.
3149 (verify_loop_structure): Likewise.
3150 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3151 (estimate_reg_pressure_cost): Likewise.
3152 (mark_loop_exit_edges): Likewise.
3153 * cfgloopmanip.c (place_new_loop): Likewise.
3154 (add_loop): Likewise.
3155 (duplicate_loop): Likewise.
3156 * graph.c (draw_cfg_nodes): Likewise.
3157 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3158 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3159 (extract_affine_chrec): Likewise.
3160 (build_scop_iteration_domain): Likewise.
3161 * graphite.c (graphite_initialize): Likewise.
3162 * ira-build.c (create_loop_tree_nodes): Likewise.
3163 (more_one_region_p): Likewise.
3164 (rebuild_regno_allocno_maps): Likewise.
3165 (mark_loops_for_removal): Likewise.
3166 (mark_all_loops_for_removal): Likewise.
3167 (remove_unnecessary_regions): Likewise.
3168 (ira_build): Likewise.
3169 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3170 * loop-init.c (fix_loop_structure): Likewise.
3171 (gate_rtl_move_loop_invariants): Likewise.
3172 (gate_rtl_unswitch): Likewise.
3173 (gate_rtl_unroll_and_peel_loops): Likewise.
3174 (rtl_doloop): Likewise.
3175 * lto-streamer-in.c (input_cfg): Likewise.
3176 * lto-streamer-out.c (output_cfg): Likewise.
3177 * modulo-sched.c (sms_schedule): Likewise.
3178 * predict.c (tree_estimate_probability): Likewise.
3179 (tree_estimate_probability_driver): Likewise.
3180 (estimate_loops): Likewise.
3181 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3182 (move_sese_region_to_fn): Likewise.
3183 (debug_loop_num): Likewise.
3184 * tree-chrec.c (chrec_evaluate): Likewise.
3185 (hide_evolution_in_other_loops_than_loop): Likewise.
3186 (chrec_component_in_loop_num): Likewise.
3187 (reset_evolution_in_loop): Likewise.
3188 (evolution_function_is_invariant_rec_p): Likewise.
3189 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3190 * tree-inline.c (copy_loops): Likewise.
3191 (copy_cfg_body): Likewise.
3192 (tree_function_versioning): Likewise.
3193 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3194 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3195 Likewise.
3196 (add_to_evolution_1): Likewise.
3197 (scev_const_prop): Likewise.
3198 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3199 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3200 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3201 (tree_ssa_lim_initialize): Likewise.
3202 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3203 (verify_loop_closed_ssa): Likewise.
3204 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3205 (tree_ssa_loop_im): Likewise.
3206 (tree_ssa_loop_unswitch): Likewise.
3207 (tree_vectorize): Likewise.
3208 (check_data_deps): Likewise.
3209 (tree_ssa_loop_ivcanon): Likewise.
3210 (tree_ssa_loop_bounds): Likewise.
3211 (tree_complete_unroll): Likewise.
3212 (tree_complete_unroll_inner): Likewise.
3213 (tree_parallelize_loops): Likewise.
3214 (tree_ssa_loop_prefetch): Likewise.
3215 (tree_ssa_loop_ivopts): Likewise.
3216 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3217 * tree-vectorizer.c (vectorize_loops): Likewise.
3218
37953bd3
MF
32192013-04-29 Mike Frysinger <vapier@gentoo.org>
3220
3221 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3222 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3223 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3224 with EABI_LINK_SPEC.
3225
f9ed28db
UB
32262013-04-29 Uros Bizjak <ubizjak@gmail.com>
3227
3228 PR target/44578
3229 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3230 alternative.
3231
deca73f5
VM
32322013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3233
3234 PR target/57097
37953bd3 3235 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
3236 using memory for pseudos. Print cost dump for alternatives.
3237 Modify cost values for conflicts with early clobbers.
3238 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3239
fdca7d03
UB
32402013-04-29 Uros Bizjak <ubizjak@gmail.com>
3241
3242 PR target/57098
3243 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3244
0b064172
IB
32452013-04-29 Ian Bolton <ian.bolton@arm.com>
3246
3247 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3248 from/to S register.
3249 (movdi_aarch64): Support LDR/STR from/to D register.
3250
473cec55
IB
32512013-04-29 Ian Bolton <ian.bolton@arm.com>
3252
3253 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3254 or higher by default.
3255
a6f30e66
RB
32562013-04-29 Richard Biener <rguenther@suse.de>
3257
3258 PR middle-end/57075
3259 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3260 even if not adding abnormal edges for calls that can make
3261 abnormal gotos.
3262
0c2b2040
RB
32632013-04-29 Richard Biener <rguenther@suse.de>
3264
3265 PR middle-end/57103
3266 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3267 TREE_BLOCK.
3268 (move_stmt_r): Remove redundant checking.
3269
f41f80f9
TJ
32702013-04-29 Teresa Johnson <tejohnson@google.com>
3271
3272 PR bootstrap/57077
3273 * basic-block.h (apply_scale): New function.
3274 (apply_probability): Use apply_scale.
3275 * gimple-streamer-in.c (input_bb): Ditto.
3276 * lto-streamer-in.c (input_cfg): Ditto.
3277 * lto-cgraph.c (merge_profile_summaries): Ditto.
3278 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 3279 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
3280 (copy_edges_for_bb): Ditto.
3281 (copy_cfg_body): Ditto.
3282
315bbd2e
TV
32832013-04-29 Tom de Vries <tom@codesourcery.com>
3284
3285 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3286 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3287 (tail_merge_optimize): Handle current_loops == NULL.
3288
ebbd90d8
JL
32892013-04-26 Jeff Law <law@redhat.com>
3290
3291 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3292 (simplify_cond_using_ranges): Generalize code to simplify
3293 COND_EXPRs where one argument is a constant and the other
3294 is an SSA_NAME created by an integral type conversion.
3295
8b9b57eb
KT
32962013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3297
3298 * config/arm/arm.md (store_minmaxsi): Use only when
3299 optimize_insn_for_size_p.
3300
9498e5dc
CB
33012013-04-29 Christian Bruel <christian.bruel@st.com>
3302
3303 PR target/57108
3304 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3305
6093bc06
RB
33062013-04-29 Richard Biener <rguenther@suse.de>
3307
3308 PR middle-end/57089
fdca7d03
UB
3309 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3310 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
3311 (expand_omp_for_generic): Properly add loops.
3312 (expand_omp_for_static_nochunk): Likewise.
3313 (expand_omp_for_static_chunk): Likewise.
3314 (expand_omp_for): For the degenerate case fixup loops.
3315 (expand_omp_sections): Fix default bb placement in loops.
3316 (expand_omp_atomic_pipeline): Properly add loops.
3317
84aacbfd
KT
33182013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3319
3320 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3321
8dee4479
TV
33222013-04-29 Tom de Vries <tom@codesourcery.com>
3323
3324 * tree-ssa-tail-merge.c: Update header comment.
3325
47934dc4
JG
33262013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3327
3328 * config/aarch64/arm_neon.h
3329 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3330 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3331 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3332 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3333 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3334 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3335 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3336 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3337
384be29f
JG
33382013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3339
3340 * config/aarch64/aarch64-simd.md
3341 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3342 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3343 fix_trunc, fixuns_trunc.
3344 (ftrunc<VDQF:mode>2): New.
3345 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3346 (fix_trunc_optab): New.
3347
0386b123
JG
33482013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3349
3350 * config/aarch64/aarch64-builtins.c
3351 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3352 iceilf, lround, iroundf.
3353
00fcb892
UB
33542013-04-29 Uros Bizjak <ubizjak@gmail.com>
3355
3356 PR target/54349
3357 * config/i386/i386.h (enum ix86_tune_indices)
3358 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3359 New, split from X86_TUNE_INTER_UNIT_MOVES.
3360 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3361 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3362 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3363 (TARGET_INTER_UNIT_MOVES): Remove.
3364 * config/i386/i386.c (initial_ix86_tune_features): Update.
3365 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3366 (ix86_expand_convert_uns_didf_sse): Use
3367 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3368 (ix86_expand_vector_init_one_nonzero): Ditto.
3369 (ix86_expand_vector_init_interleave): Ditto.
3370 (inline_secondary_memory_needed): Return true for moves from SSE class
3371 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3372 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3373 * config/i386/constraints.md (Yi, Ym): Depend on
3374 TARGET_INTER_UNIT_MOVES_TO_VEC.
3375 (Yj, Yn): New constraints.
3376 * config/i386/i386.md (*movdi_internal): Change constraints of
3377 operand 1 from Yi to Yj and from Ym to Yn.
3378 (*movsi_internal): Ditto.
3379 (*movdf_internal): Ditto.
3380 (*movsf_internal): Ditto.
3381 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3382 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3383 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3384 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3385 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3386 * config/i386/sse.md (movdi_to_sse): Ditto.
3387 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3388 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3389 TARGET_INTER_UNIT_MOVES.
3390 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3391 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3392 instead of TARGET_INTER_UNIT_MOVES.
3393 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3394 operand 1 from Yi to Yj and from Ym to Yn.
3395
4c871069
JG
33962013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3397
3398 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3399 (float_truncate_hi_): Likewise.
3400 (float_extend_lo_): Likewise.
3401 (float_truncate_lo_): Likewise.
3402 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3403 (aarch64_float_extend_lo_v2df): Likewise.
3404 (vec_unpacks_hi_v4sf): Likewise.
3405 (aarch64_float_truncate_lo_v2sf): Likewise.
3406 (aarch64_float_truncate_hi_v4sf): Likewise.
3407 (vec_pack_trunc_v2df): Likewise.
3408 (vec_pack_trunc_df): Likewise.
3409
1709ff9b
JG
34102013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3411
3412 * config/aarch64/aarch64-builtins.c
3413 (aarch64_fold_builtin): Fold float conversions.
3414 * config/aarch64/aarch64-simd-builtins.def
3415 (floatv2si, floatv4si, floatv2di): New.
3416 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3417 * config/aarch64/aarch64-simd.md
3418 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3419 * config/aarch64/iterators.md (FLOATUORS): New.
3420 (optab): Add float, floatuns.
3421 (su_optab): Likewise.
3422
ce966824
JG
34232013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3424
3425 * config/aarch64/aarch64-builtins.c
3426 (aarch64_builtin_vectorized_function): Use new names for
3427 fcvt builtins.
3428 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3429 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3430 (fcvtzu): Split as...
3431 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3432 (fcvtas): Split as...
3433 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3434 (fcvtau): Split as...
3435 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3436 (fcvtps): Split as...
3437 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3438 (fcvtpu): Split as...
3439 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3440 (fcvtms): Split as...
3441 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3442 (fcvtmu): Split as...
3443 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3444 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3445 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3446 (lfrintnusf, lfrintnudf): Likewise.
3447 * config/aarch64/aarch64-simd.md
3448 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3449 define_insn.
3450 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3451 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3452 (fcvt_pattern): Likewise.
3453
b9de24fe
JG
34542013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3455
3456 * config/aarch64/aarch64-simd.md
3457 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3458 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3459
77a205be
JG
34602013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3461
3462 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3463 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3464 (vrnd<a,m,n,p>_f32): Implement using builtins.
3465 (vrnd<i,x><q>_f<32, 64>): New.
3466
0659ce6f
JG
34672013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3468
3469 * config/aarch64/aarch64-builtins.c
3470 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3471 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3472 (frintz): Rename to...
3473 (btrunc): ...this.
3474 (frintp): Rename to...
3475 (ceil): ...this.
3476 (frintm): Rename to...
3477 (floor): ...this.
3478 (frinti): Rename to...
3479 (nearbyint): ...this.
3480 (frintx): Rename to...
3481 (rint): ...this.
3482 (frinta): Rename to...
3483 (round): ...this.
3484 * config/aarch64/aarch64-simd.md
3485 (aarch64_frint<frint_suffix><mode>): Delete.
3486 (<frint_pattern><mode>2): Convert to insn.
3487 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3488 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3489 (frint_pattern): Likewise.
3490 (frint_suffix): Likewise.
3491
ea78906a
RB
34922013-04-29 Richard Biener <rguenther@suse.de>
3493
3494 PR tree-optimization/57081
3495 * loop-init.c: Include tree-flow.h.
3496 (loop_optimizer_finalize): Free number of iteration estimates.
3497 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3498
baee1763
JJ
34992013-04-29 Jakub Jelinek <jakub@redhat.com>
3500
94dc5332
JJ
3501 PR tree-optimization/57083
3502 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3503 non-singleton shift count range, zero extend low_bound for uns case.
3504
baee1763
JJ
3505 * config/i386/predicates.md (general_vector_operand): New predicate.
3506 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3507 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3508 if they aren't nonimmediate operands. If their original values
3509 satisfy const_vector_equal_evenodd_p, don't shift them.
3510 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3511 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3512 if not nonimmediate_operand.
3513 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3514 instead of register_operand.
3515 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3516
a9073727 35172013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
3518
3519 * stor-layout.c (finalize_size_functions): Allocate a structure and
3520 reset cfun before dumping the functions.
3521
ba8011e6
JJ
35222013-04-27 Jakub Jelinek <jakub@redhat.com>
3523
d6fde69e
JJ
3524 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3525
ba8011e6
JJ
3526 PR target/56866
3527 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3528 use xop_pmacsdqh if uns_p.
3529 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3530 the immediate rotate count.
3531
2c62cbaa
VM
35322013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3533
3534 * rtl.h (struct rtx_def): Add comment for field jump.
3535 (LRA_SUBREG_P): New macro.
3536 * recog.c (register_operand): Check LRA_SUBREG_P.
3537 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3538 stack frame.
3539 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3540 (lra_final_code_change): Skip subreg change for operators.
3541 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3542 if there are no operand changes.
3543 * lra-constraints.c (curr_insn_set): New.
3544 (match_reload): Set LRA_SUBREG_P.
3545 (emit_spill_move): Ditto.
3546 (check_and_process_move): Use curr_insn_set. Process only single
3547 set insns. Don't initialize sec_mem_p and change_p.
3548 (simplify_operand_subreg): Use LRA_SUBREG_P.
3549 (reg_in_class_p): New function.
3550 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3551 of #ifdef. Add code to remove cycling.
3552 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3553 non-null disp. Reload inner instead of disp when base and index
3554 are null. Try to put lo_sum into register.
3555 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3556 (check_and_process_move): Move code for move cost check to
3557 simple_move_p. Remove equiv_substitution.
3558 (simple_move_p): New function.
3559 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3560 curr_insn_set. Call check_and_process_move only for single set
3561 insns. Use the new function. Move call of check_and_process_move
3562 after operand equiv substitution and address process.
3563
e7d764f3
JJ
35642013-04-26 Jakub Jelinek <jakub@redhat.com>
3565
3566 PR go/57045
3567 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3568 with nonlocal goto receivers or returns twice calls, ignore
3569 unininitialized values from abnormal edges to nl goto receiver
3570 or returns twice call.
3571
41e10689
JJ
35722013-04-26 Jakub Jelinek <jakub@redhat.com>
3573
3574 PR tree-optimization/57051
3575 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3576 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3577 bitsize.
3578
d7ed20db
RB
35792013-04-26 Richard Biener <rguenther@suse.de>
3580
3581 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3582 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3583 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3584 (fixup_loop_arrays_after_move): New function.
3585 (move_sese_region_to_fn): Properly outline the loop tree parts
3586 of the SESE region.
3587
df93505e
UB
35882013-04-26 Uros Bizjak <ubizjak@gmail.com>
3589
3590 * config/i386/i386.md (type, unit): Fix long lines.
3591
dd366ec3
RB
35922013-04-26 Richard Biener <rguenther@suse.de>
3593
3594 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3595 (lto-streamer-out.o): Likewise.
3596 * cfgloop.c (init_loops_structure): Export, add struct function
3597 argument and adjust.
3598 (flow_loops_find): Adjust.
3599 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3600 (init_loops_structure): Declare.
3601 * lto-streamer-in.c: Include cfgloop.h.
3602 (input_cfg): Input the loop tree.
3603 * lto-streamer-out.c: Include cfgloop.h.
3604 (output_cfg): Output the loop tree.
3605 (output_struct_function_base): Do not drop PROP_loops.
3606
a9e0d843
RB
36072013-03-26 Richard Biener <rguenther@suse.de>
3608
3609 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3610 (pass_build_cfg): Provide PROP_loops.
3611 (move_sese_region_to_fn): Remove loops that are outlined into fn
3612 for now.
3613 * tree-inline.c: Include cfgloop.h.
3614 (initialize_cfun): Do not drop PROP_loops.
3615 (copy_loops): New function.
3616 (copy_cfg_body): Copy loop structure.
3617 (tree_function_versioning): Initialize destination loop tree.
3618 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3619 (pass_parallelize_loops): Do IL verification.
3620 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3621 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3622 the CFG make sure we fixup loops as well.
3623 * tree-ssa-tail-merge.c: Include cfgloop.h.
3624 (replace_block_by): When merging loop latches mark loops for fixup.
3625 * lto-streamer-out.c (output_struct_function_base): Drop
3626 PROP_loops for now.
3627 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3628 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3629 * ipa-split.c: Include cfgloop.h.
3630 (split_function): Add the new return block to the loop tree root.
3631 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3632 whether we have removed the forwarder block.
3633 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3634 * cfgloop.h (place_new_loop): Declare.
3635 * cfgloopmanip.c (place_new_loop): Export.
3636 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3637 (tree-switch-conversion.o): Likewise.
3638 (tree-complex.o): Likewise.
3639 (tree-inline.o): Likewise.
3640 (tree-ssa-tailmerge.o): Likewise.
3641 (ipa-split.o): Likewise.
3642 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3643 (tree-ssa-copy.o): Likewise.
3644 * tree-switch-conversion.c: Include cfgloop.h
3645 (process_switch): If we emit a bit-test cascade, schedule loops
3646 for fixup.
3647 * tree-complex.c: Include cfgloop.h.
3648 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3649 * asan.c: Include cfgloop.h.
3650 (create_cond_insert_point): Properly add new basic-blocks to
3651 loops, schedule loop fixup.
3652 * cfgloop.c (verify_loop_structure): Check that looks are not
3653 marked for fixup.
3654 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3655 to loops.
3656 (expand_omp_for_generic): Likewise.
3657 (expand_omp_sections): Likewise.
3658 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3659 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3660 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3661 is initialized, not when loops are present.
3662 * tree-parloops.c (parallelize_loops): Remove checking here.
3663 * passes.c (init_optimization_passes): Schedule a copy-propagation
3664 pass before complete unrolling of inner loops.
3665
e78e8a0b
JJ
36662013-04-26 Jakub Jelinek <jakub@redhat.com>
3667
a2e836b2
JJ
3668 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3669 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3670 (colorize_init): Add argument to _WIN32 version.
3671 * toplev.c: Include diagnostic-color.h.
3672 (process_options): Default to -fdiagnostics-color=auto if
3673 GCC_COLORS env var is in the environment.
3674 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
3675 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3676 env var is in the environment, the default is auto rather than never.
a2e836b2 3677
e78e8a0b
JJ
3678 * diagnostic.h (file_name_as_prefix): Add context argument.
3679 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3680 the string as locus.
3681 * langhooks.c (lhd_print_error_function): Adjust caller.
3682
013e5ef9
LC
36832013-04-25 Lawrence Crowl <crowl@google.com>
3684
3685 * var-tracking.c (shared_hash_def::htab):
3686 Change type to hash_table. Update dependent calls and types.
3687
4a8fb1a1
LC
36882013-04-25 Lawrence Crowl <crowl@google.com>
3689
3690 * Makefile.in: Update as needed below.
3691
3692 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3693 Move declaration to after the type's method definitons.
3694
3695 * attribs.c (htab_t scoped_attributes::attribute_hash):
3696 Change type to hash_table. Update dependent calls and types.
3697
3698 * bitmap.c (htab_t bitmap_desc_hash):
3699 Change type to hash_table. Update dependent calls and types.
3700
3701 * cselib.c (htab_t cselib_hash_table):
3702 Change type to hash_table. Update dependent calls and types.
3703
3704 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3705 (hash_string_slot_node): Move implementation into lto-streamer.h
3706 struct string_slot_hasher.
3707 (eq_string_slot_node): Likewise.
3708
3709 * data-streamer-out.c: Update output_block::string_hash_table
3710 dependent calls and types.
3711
3712 * dwarf2cfi.c (htab_t trace_index):
3713 Change type to hash_table. Update dependent calls and types.
3714
3715 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3716 Change type to hash_table. Update dependent calls and types.
3717 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3718 (htab_t optimize_external_refs::map): Likewise.
3719 (htab_t output_comp_unit::extern_map): Likewise.
3720 (htab_t output_comdat_type_unit::extern_map): Likewise.
3721 (htab_t output_macinfo::macinfo_htab): Likewise.
3722 (htab_t optimize_location_lists::htab): Likewise.
3723 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3724
3725 * except.c (htab_t ehspec_hash_type):
3726 Change type to hash_table. Update dependent calls and types.
3727 (assign_filter_values::ttypes): Likewise.
3728 (assign_filter_values::ehspec): Likewise.
3729 (sjlj_assign_call_site_values::ar_hash): Likewise.
3730 (convert_to_eh_region_ranges::ar_hash): Likewise.
3731
3732 * gcse.c (htab_t pre_ldst_table):
3733 Change type to hash_table. Update dependent calls and types.
3734
3735 * ggc-common.c (htab_t saving_htab):
3736 Change type to hash_table. Update dependent calls and types.
3737 (htab_t loc_hash): Likewise.
3738 (htab_t ptr_hash): Likewise.
3739 (call_count): Rename ggc_call_count.
3740 (call_alloc): Rename ggc_call_alloc.
3741 (loc_descriptor): Rename make_loc_descriptor.
3742 (add_statistics): Rename ggc_add_statistics.
3743
3744 * ggc-common.c (saving_htab):
3745 Change type to hash_table. Update dependent calls and types.
3746
3747 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3748 (push_gimplify_context): Likewise.
3749 (pop_gimplify_context): Likewise.
3750 (struct gimple_temp_hash_elt): Added.
3751 (struct gimplify_hasher): Likewise.
3752 (struct gimplify_ctx.temp_htab):
3753 Change type to hash_table. Update dependent calls and types.
3754
3755 * gimple-fold.c: Include gimplify-ctx.h.
3756
3757 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3758 Change type to hash_table. Update dependent calls and types.
3759 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3760 avoid potential global name collision.
3761
3762 * gimplify.c: Include gimplify-ctx.h.
3763 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3764 (htab_t gimplify_ctx::temp_htab):
3765 Update dependent calls and types for new type hash_table.
3766 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3767 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3768
3769 * gimplify-ctx.h: New.
3770 (struct gimple_temp_hash_elt): Move from gimplify.c.
3771 (class gimplify_hasher): New.
3772 (struct gimplify_ctx): Move from gimple.h.
3773 (htab_t gimplify_ctx::temp_htab):
3774 Change type to hash_table. Update dependent calls and types.
3775
3776 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3777 (htab_t ivs_params::newivs_index):
3778 Change type to hash_table. Update dependent calls and types.
3779 (htab_t ivs_params::params_index): Likewise.
3780 (htab_t print_generated_program::params_index): Likewise.
3781 (htab_t gloog::newivs_index): Likewise.
3782 (htab_t gloog::params_index): Likewise.
3783
3784 * graphite.c: Include graphite-htab.h.
3785 4htab_t graphite_transform_loops::bb_pbb_mapping):
3786 Change type to hash_table. Update dependent calls and types.
3787
3788 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3789 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3790 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3791
3792 * graphite-dependences.c: Include graphite-htab.h.
3793 (loop_is_parallel_p): Change hash table type of parameter.
3794
3795 * graphite-htab.h: New.
3796 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3797 (extern find_pbb_via_hash): Move from graphite-poly.h.
3798 (extern loop_is_parallel_p): Move from graphite-poly.h.
3799 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3800
3801 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3802 (extern loop_is_parallel_p): Move to graphite-htab.h.
3803 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3804
3805 * haifa-sched.c (htab_t delay_htab):
3806 Change type to hash_table. Update dependent calls and types.
3807 (htab_t delay_htab_i2): Likewise.
3808
3809 * ira-color.c (htab_t allocno_hard_regs_htab):
3810 Change type to hash_table. Update dependent calls and types.
3811
3812 * ira-costs.c (htab_t cost_classes_htab):
3813 Change type to hash_table. Update dependent calls and types.
3814
3815 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3816 Change type to hash_table. Update dependent calls and types.
3817
3818 * loop-iv.c (htab_t bivs):
3819 Change type to hash_table. Update dependent calls and types.
3820
3821 * loop-unroll.c (htab_t opt_info::insns_to_split):
3822 Change type to hash_table. Update dependent calls and types.
3823 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3824
3825 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3826 (struct string_slot_hasher): New.
3827 (htab_t output_block::string_hash_table):
3828 Change type to hash_table. Update dependent calls and types.
3829
3830 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3831 (htab_t file_name_hash_table):
3832 Change type to hash_table. Update dependent calls and types.
3833
3834 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3835 calls and types.
3836
3837 * lto-streamer.c (htab_t tree_htab):
3838 Change type to hash_table. Update dependent calls and types.
3839
3840 * omp-low.c: Include gimplify-ctx.h.
3841
3842 * passes.c (htab_t name_to_pass_map):
3843 Change type to hash_table. Update dependent calls and types.
3844 (pass_traverse): Rename to passes_pass_traverse.
3845
3846 * plugin.c (htab_t event_tab):
3847 Change type to hash_table. Update dependent calls and types.
3848
3849 * postreload-gcse.c (htab_t expr_table):
3850 Change type to hash_table. Update dependent calls and types.
3851 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3852
3853 * sese.c (debug_rename_map_1): Make extern.
3854 (htab_t copy_bb_and_scalar_dependences::rename_map):
3855 Change type to hash_table. Update dependent calls and types.
3856
3857 * sese.h (extern debug_rename_map): Move to .c file.
3858
3859 * store-motion.c (htab_t store_motion_mems_table):
3860 Change type to hash_table. Update dependent calls and types.
3861
3862 * trans-mem.c (htab_t tm_new_mem_hash):
3863 Change type to hash_table. Update dependent calls and types.
3864
3865 * tree-browser.c (htab_t TB_up_ht):
3866 Change type to hash_table. Update dependent calls and types.
3867
3868 * tree-cfg.c (htab_t discriminator_per_locus):
3869 Change type to hash_table. Update dependent calls and types.
3870
3871 * tree-complex.c: Include tree-hasher.h
3872 (htab_t complex_variable_components):
3873 Change type to hash_table. Update dependent calls and types.
3874
3875 * tree-eh.c (htab_t finally_tree):
3876 Change type to hash_table. Update dependent calls and types.
3877
3878 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3879 struct int_tree_hasher.
3880 (extern int_tree_map_eq): Likewise.
3881 (uid_decl_map_hash): Removed.
3882 (extern decl_tree_map_eq): Likewise.
3883
3884 * tree-hasher.h: New.
3885 (struct int_tree_hasher): New.
3886 (typedef int_tree_htab_type): New.
3887
3888 * tree-inline.c: Include gimplify-ctx.h.
3889
3890 * tree-mudflap.c: Include gimplify-ctx.h.
3891
3892 * tree-parloops.c: Include tree-hasher.h.
3893 (htab_t eliminate_local_variables_stmt::decl_address):
3894 Change type to hash_table. Update dependent calls and types.
3895 (htab_t separate_decls_in_region::decl_copies): Likewise.
3896
3897 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3898 Change type to hash_table. Update dependent calls and types.
3899
3900 * tree-sra.c (candidates):
3901 Change type to hash_table. Update dependent calls and types.
3902
3903 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3904 in tree-flow.h.
3905 (int_tree_map_hash): Likewise.
3906
3907 * tree-ssa-dom.c (htab_t avail_exprs):
3908 Change type to hash_table. Update dependent calls and types.
3909
3910 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3911 Change type to hash_table. Update dependent calls and types.
3912
3913 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3914 Change type to hash_table. Update dependent calls and types.
3915
3916 * tree-ssa-phiopt.c (seen_ssa_names):
3917 Change type to hash_table. Update dependent calls and types.
3918
3919 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3920 Change type to hash_table. Update dependent calls and types.
3921
3922 * tree-ssa-uncprop.c (equiv):
3923 Change type to hash_table. Update dependent calls and types.
3924
c5a44004
JJ
39252013-04-25 Jakub Jelinek <jakub@redhat.com>
3926
3927 PR rtl-optimization/57003
3928 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3929 call note_stores with kill_clobbered_value callback again after
3930 killing regs_invalidated_by_call.
3931
09962a4a
JG
39322013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3933
3934 * config/aarch64/aarch64-simd.md
3935 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3936 (aarch64_simd_bsl<mode>): Likewise.
3937 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3938
ea28bb0b
MP
39392013-04-25 Marek Polacek <polacek@redhat.com>
3940
3941 PR tree-optimization/57066
3c21604f 3942 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 3943
96659611
JG
39442013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3945
3946 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3947
9697e620
JG
39482013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3949
3950 * config/aarch64/aarch64-builtins.c
3951 (aarch64_fold_builtin): New.
3952 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3953 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3954 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3955 * config/aarch64/arm_neon.h
3956 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3957
0ac198d3
JG
39582013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3959 Tejas Belagod <tejas.belagod@arm.com>
3960
3961 * config/aarch64/aarch64-builtins.c
3962 (aarch64_gimple_fold_builtin): New.
3963 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3964 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3965 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3966 (addvv4sf): Update.
3967 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3968
58cff58c
N
39692013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3970
df93505e 3971 * config/aarch64/aarch64.md
58cff58c
N
3972 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3973
7e0228bf
N
39742013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3975
3976 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3977 (*ngcsi_uxtw): New pattern.
3978
5819f96f 39792013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 3980 Julian Brown <julian@codesourcery.com>
5819f96f
KT
3981
3982 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3983 (TB_DREG): Add T_V4HF.
3984 (v4hf_UP): New macro.
3985 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 3986 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3987 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3988 built-ins.
df93505e 3989 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
3990 (arm_vector_mode_supported_p): Handle V4HF.
3991 (arm_mangle_map): Handle V4HFmode.
3992 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3993 * config/arm/arm_neon_builtins.def: Add entries for
3994 vcvtv4hfv4sf, vcvtv4sfv4hf.
3995 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3996 (neon_vcvtv4hfv4sf): Likewise.
3997 * config/arm/neon-gen.ml: Handle half-precision floating point
3998 features.
3999 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4000 * config/arm/arm_neon.h: Regenerate.
4001 * config/arm/neon.ml (type elts): Add F16.
4002 (type vectype): Add T_float16x4, T_floatHF.
4003 (type vecmode): Add V4HF.
4004 (type features): Add Requires_FP_bit feature.
4005 (elt_width): Handle F16.
4006 (elt_class): Likewise.
4007 (elt_of_class_width): Likewise.
4008 (mode_of_elt): Refactor.
4009 (type_for_elt): Handle F16, fix error messages.
4010 (vectype_size): Handle T_float16x4.
4011 (vcvt_sh): New function.
4012 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4013 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4014 (string_of_mode): Handle V4HF.
4015 * doc/arm-neon-intrinsics.texi: Regenerate.
4016
1ef395e4
JG
40172013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4018
4019 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4020 format specifier in 'X' case.
4021
41c34e94
AM
40222013-04-25 Alan Modra <amodra@gmail.com>
4023
4024 PR target/57052
4025 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4026 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4027 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4028 Repeat for many other rotate/shift and mask patterns using subregs.
4029 Name lshiftrt insns.
4030 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4031 on WORDS_BIG_ENDIAN.
4032
b9a7eb5d
AM
40332013-04-25 Alan Modra <amodra@gmail.com>
4034
4035 * config.gcc: Support little-endian powerpc-linux targets.
4036 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4037 (LINK_OS_LINUX_SPEC): Define.
4038 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4039 Preserve MASK_LITTLE_ENDIAN.
4040 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4041 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4042 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4043 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4044 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4045 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4046 Correct fp word order for little-endian. Don't shift toc entries
4047 smaller than a word for little-endian.
4048 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4049 (bswapdi2 splits): Correct low-part subreg for little-endian.
4050 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4051 low/high where such is correct only for be.
4052 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4053 little-endian for -mcall-aixdesc.
4054
87f73374
AM
40552013-04-25 Alan Modra <amodra@gmail.com>
4056
4057 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4058 replace_equiv_address_nv.
4059
cabf91cd
AM
40602013-04-25 Alan Modra <amodra@gmail.com>
4061
4062 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4063
0ae24cc8
VM
40642013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4065
4066 Revert:
4067 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4068 * rtl.h (struct rtx_def): ...
cabf91cd 4069
77bce07c
VM
40702013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4071
4072 PR rtl-optimizations/57046
4073 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4074 for multi-reg splits.
4075
0db63e7f
L
40762013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4077
4078 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4079
3362b6b6
SA
40802013-04-24 Sterling Augustine <saugustine@google.com>
4081
4082 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4083 (comp_dir_string, debug_str_dwo_section): New.
4084 (DEBUG_STR_DWO_SECTION): Rename to ...
4085 (DEBUG_DWO_STR_SECTION): ... this.
4086 (DEBUG_NORM_STR_SECTION): Delete.
4087 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4088 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4089 (find_AT_string): Move most logic to ...
4090 (find_AT_string_in_table): ... here. New.
4091 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4092 add_skeleton_AT_string. Delete logic.
4093 (output_skeleton_debug_sections): Remove call to
4094 add_top_level_skeleton_die_attrs.
4095 (add_comp_dir_attribute): Move logic to comp_dir_string.
4096 (dwarf2out_init): Initialize debug_str_dwo_section.
4097 (output_indirect_string): Call find_string_form.
4098 (output_indirect_strings): Rewrite.
4099 (prune_unused_types): Empty skeleton_debug_str_hash.
4100 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4101 (dwarf2out_finish): Call output_indirect_strings.
4102
e93e18e9
PC
41032013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4104
4105 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4106
f6ce35ac
VM
41072013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4108
cabf91cd 4109 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
4110 (LRA_SUBREG_P): New macro.
4111 * recog.c (register_operand): Check LRA_SUBREG_P.
4112 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4113 stack frame.
4114 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4115 (lra_final_code_change): Skip subreg change for operators.
4116 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4117 if there are no operand changes.
4118 * lra-constraints.c (curr_insn_set): New.
4119 (match_reload): Set LRA_SUBREG_P.
4120 (emit_spill_move): Ditto.
4121 (check_and_process_move): Use curr_insn_set. Process only single
4122 set insns. Don't initialize sec_mem_p and change_p.
4123 (simplify_operand_subreg): Use LRA_SUBREG_P.
4124 (reg_in_class_p): New function.
4125 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4126 of #ifdef. Add code to remove cycling.
4127 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4128 non-null disp. Reload inner instead of disp when base and index
4129 are null. Try to put lo_sum into register.
4130 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 4131 (check_and_process_move): Move code for move cost check to
f6ce35ac 4132 simple_move_p. Remove equiv_substitution.
cabf91cd 4133 (simple_move_p): New function.
f6ce35ac
VM
4134 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4135 curr_insn_set. Call check_and_process_move only for single set
4136 insns. Use the new function. Move call of check_and_process_move
4137 after operand equiv substitution and address process.
4138
38047d90
JG
41392013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4140
4141 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4142 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4143 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4144
13f39b2e
PC
41452013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4146
4147 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4148
97c116dc
MP
41492013-04-24 Marek Polacek <polacek@redhat.com>
4150
4151 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4152 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4153 (select_loops_exit_conditions): Likewise.
4154 (number_of_iterations_for_all_loops): Likewise.
4155 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4156 (scev_analysis): Likewise.
4157
83082391
CM
41582013-04-02 Catherine Moore <clm@codesourcery.com>
4159 Chao-ying Fu <fu@mips.com>
4160
cabf91cd
AM
4161 * config/mips/micromips.md (jraddiusp): New pattern.
4162 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4163 instruction if possible.
83082391 4164
19e34aa2
AM
41652013-04-24 Alan Modra <amodra@gmail.com>
4166
4167 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4168
fdb6603c
JB
41692013-04-24 Julian Brown <julian@codesourcery.com>
4170 Chung-Lin Tang <cltang@codesourcery.com>
4171
4172 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
4173 dependency behavior in enumeration type DIE generation. Add TODO note
4174 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 4175
bf190e8d
LC
41762013-04-23 Lawrence Crowl <crowl@google.com>
4177
4178 * Makefile.in: Update as needed below.
4179
4180 * hash-table.h (class hash_table):
4181 Correct many methods with parameter types compare_type to the correct
4182 value_type. (Correct code was unlikely to notice the change.)
4183 (hash_table::elements_with_deleted) New.
4184 (class hashtable::iterator): New.
4185 (hashtable::begin()): New.
4186 (hashtable::end()): New.
4187 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4188
4189 * statistics.c (statistics_hashes):
4190 Change type to hash_table. Update dependent calls and types.
4191
4192 * tree-into-ssa.c (var_infos):
4193 Change type to hash_table. Update dependent calls and types.
4194
4195 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4196 Change type to hash_table. Update dependent calls and types.
4197
4198 * tree-ssa-loop-im.c (struct mem_ref.refs):
4199 Change type to hash_table. Update dependent calls and types.
4200
4201 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4202 Change type to hash_table. Update dependent calls and types.
4203
4204 * tree-ssa-sccvn.c (vn_tables_s::nary):
4205 Change type to hash_table. Update dependent calls and types.
4206 (vn_tables_s::phis): Likewise.
4207 (vn_tables_s::references): Likewise.
4208
4209 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4210 (vn_reference_eq): Update parameter and return types.
4211
4212 * tree-ssa-structalias.c (pointer_equiv_class_table):
4213 Change type to hash_table. Update dependent calls and types.
4214 (location_equiv_class_table): Likewise.
4215
4216 * tree-vect-data-refs.c: Consequential changes for making
4217 peeling a hash_table.
4218
4219 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4220 (destroy_loop_vec_info): Dependent hash_table update.
4221
4222 * tree-vectorizer.h (peeling_htab):
4223 Change type to hash_table. Update dependent calls and types.
4224
d70a81dd
SC
42252013-04-23 Shiva Chen <shiva0217@gmail.com>
4226
cabf91cd
AM
4227 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4228 to check the register content is equal or not.
4229 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4230 to assign register content record.
4231 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 4232 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
4233 * lra-int.h (struct lra_reg): Add offset member.
4234 (lra_reg_val_equal_p): New static inline function.
4235 (lra_update_reg_val_offset): New static inline function.
4236 (lra_assign_reg_val): New static inline function.
4237 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4238 to assign register content record.
4239 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 4240
b894a1f3
CM
42412013-04-23 Catherine Moore <clm@codesourcery.com>
4242
4243 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4244 operands. Record compression.
4245
ecd14de9
XDL
42462013-04-23 Xinliang David Li <davidxl@google.com>
4247
4248 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4249
92e776e9
RB
42502013-04-23 Richard Biener <rguenther@suse.de>
4251
4252 PR middle-end/57036
4253 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4254 parameter, only add abnormal goto edges from the copied body
4255 if the call could perform abnormal gotos.
4256 (copy_cfg_body): Adjust.
4257
a15ee567
SN
42582013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4259
4260 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4261
08c52234
AS
42622013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4263
4264 * coretypes.h (gimple_stmt_iterator): Add struct to make
4265 compatible with C.
4266
999c1171
RB
42672013-04-23 Richard Biener <rguenther@suse.de>
4268
4269 PR tree-optimization/57026
4270 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4271 from SSA names occuring in abnormal PHI nodes.
4272
53669259
AK
42732013-04-22 Andi Kleen <ak@linux.intel.com>
4274
4275 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4276
1a0ad150
AK
42772013-04-22 Andi Kleen <ak@linux.intel.com>
4278
4279 * lto/lto.c (print_lto_report_1): Declare early.
4280 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4281
057f8f20
AK
42822013-04-22 Andi Kleen <ak@linux.intel.com>
4283
4284 * common.opt (-flto-report-wpa): Add.
4285 * doc/invoke.texi (-flto-report-wpa): Add.
4286 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4287 (lto_main): dito.
4288
473b1e05
XDL
42892013-04-22 Xinliang David Li <davidxl@google.com>
4290
4291 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4292 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4293 * Makefile.in: New dependency
4294
cabf91cd 4295 David Daney <ddaney.cavm@gmail.com>
b1485a33 4296
cabf91cd
AM
4297 * configure.ac (gcc_cv_as_micromips_support): Use the
4298 --fatal-warnings option.
4299 * configure: Regenerate.
b1485a33 4300
829d0168
MP
43012013-04-22 Marek Polacek <polacek@redhat.com>
4302
4303 PR sanitizer/56990
4304 * tsan.c (instrument_expr): Don't instrument expression
4305 in case its size is zero.
4306
6d9b7208
UB
43072013-04-22 Uros Bizjak <ubizjak@gmail.com>
4308
4309 PR target/57032
4310 Revert:
4311 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4312
4313 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4314
ea679d55
JG
43152013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4316
4317 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4318 (gimple_stmt_iterator): New typedef.
4319 * gimple.h (gimple_stmt_iterator): Rename to...
4320 (gimple_stmt_iterator_d): ... This.
4321 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4322 trees be valid for GIMPLE and GENERIC.
4323 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4324 * gimple-fold.c (gimple_fold_call): Call target hook
4325 gimple_fold_builtin.
4326 * hooks.c (hook_bool_gsiptr_false): New.
4327 * hooks.h (hook_bool_gsiptr_false): New.
4328 * target.def (fold_stmt): New.
4329 * doc/tm.texi: Regenerate.
4330
88a581da
VM
43312013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4332
4333 PR target/57018
4334 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4335 a set sp if no stack realignment.
4336
92be22dc
NC
43372013-04-22 Nick Clifton <nickc@redhat.com>
4338
4339 * config.gcc (tilegx-linux): Extend extra_objs rather than
4340 overwriting it.
4341 (tilepro-linux): Likewise.
4342
0ddec79f
JG
43432013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4344
4345 * config/aarch64/aarch64-builtins.c
4346 (CF): Remove.
4347 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4348 (VAR<1-12>): Add MAP parameter.
4349 (BUILTIN_*): Likewise.
4350 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4351 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4352 (aarch64_ushl_n<mode>): Likewise.
4353 (aarch64_sshr_n<mode>): Likewise.
4354 (aarch64_ushr_n<mode>): Likewise.
4355 (aarch64_<maxmin><mode>): Likewise.
4356 (aarch64_sqrt<mode>): Likewise.
4357 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4358 (vshr<q>_n_*): Likewise.
4359
0050faf8
JG
43602013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4361
4362 * config/aarch64/aarch64-builtins.c
4363 (aarch64_simd_builtin_type_mode): Handle SF types.
4364 (sf_UP): Define.
4365 (BUILTIN_GPF): Define.
4366 (aarch64_init_simd_builtins): Handle SF types.
4367 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4368 (frecps): Likewise.
4369 (frecpx): Likewise.
4370 * config/aarch64/aarch64-simd.md
4371 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4372 (aarch64_frecpe<mode>): New.
4373 (aarch64_frecps<mode>): Likewise.
4374 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4375 (v8type): Add frecp<esx>.
4376 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4377 (aarch64_frecps<mode>): Likewise.
4378 * config/aarch64/iterators.md (FRECP): New.
4379 (frecp_suffix): Likewise.
4380 * config/aarch64/arm_neon.h
4381 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4382
0fad3dbc 43832013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
4384
4385 PR target/56995
4386 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4387 (REG_CLASS_NAMES): Idem.
4388 (REG_CLASS_CONTENTS): Idem.
4389 (REGCLASS_HAS_FP_REG): Idem.
4390 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4391 (sh_conditional_register_usage): Idem.
4392
3e8a33f9
JL
43932013-04-21 Jeff Law <law@redhat.com>
4394
4395 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4396 (ssa_forward_propagate_and_combine): Use it.
4397
f38e1b0a
VM
43982013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4399
4400 * lra.c: Update the flow chart diagram.
4401
682303da
VM
44022013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4403
4404 PR rtl-optimization/56847
4405 * lra-constraints.c (process_alt_operands): Discourage alternative
4406 with non-matche doffsettable memory constraint fro memory with
4407 known offset.
4408
f6b64c35
RB
44092013-04-19 Richard Biener <rguenther@suse.de>
4410
4411 PR tree-optimization/56982
4412 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4413 function.
4414 * gimplify.c (gimplify_call_expr): Notice special calls.
4415 (gimplify_modify_expr): Likewise.
4416 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4417 abnormal control flow receivers.
4418 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4419 in the same way as cfun->has_nonlocal_labels.
4420 (gimple_purge_dead_abnormal_call_edges): Likewise.
4421 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4422 receivers start a basic-block.
4423
01d8bf07
RB
44242013-04-19 Richard Biener <rguenther@suse.de>
4425
4426 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4427 member ...
4428 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4429 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4430 (SLP_TREE_LOAD_PERMUTATION): Add.
4431 (vect_transform_slp_perm_load): Adjust prototype.
4432 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4433 (vect_free_slp_instance): Likewise.
4434 (vect_create_new_slp_node): Likewise.
4435 (vect_supported_slp_permutation_p): Remove.
4436 (vect_slp_rearrange_stmts): Adjust.
4437 (vect_supported_load_permutation_p): Likewise. Inline
4438 vect_supported_slp_permutation_p here.
4439 (vect_analyze_slp_instance): Compute load permutations per
4440 slp node instead of per instance.
4441 (vect_get_slp_defs): Adjust.
4442 (vect_transform_slp_perm_load): Likewise.
4443 (vect_schedule_slp_instance): Remove redundant code.
4444 (vect_schedule_slp): Remove hack for PR56270, add it ...
4445 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4446 CSE loads for SLP. Adjust.
4447
ede22fc3
GY
44482013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4449
4450 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4451 spelling in two comments.
4452
67bc84fb
GY
44532013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4454
4455 PR target/56797
4456 * config/arm/arm.c (load_multiple_sequence): Require SP
4457 as base register for loads if SP is in the register list.
4458
e248d83f
MJ
44592013-04-19 Martin Jambor <mjambor@suse.cz>
4460
4461 PR tree-optimization/56718
4462 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4463 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4464 and made public. Adjusted all callers.
4465 (ipa_intraprocedural_devirtualization): New function.
4466 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4467 (ipa_intraprocedural_devirtualization): Likewise.
4468 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4469
4891e8f8
RB
44702013-04-19 Richard Biener <rguenther@suse.de>
4471
4472 PR tree-optimization/57000
4473 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4474
dad89f7c
TG
44752013-04-19 Terry Guo <terry.guo@arm.com>
4476
4477 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4478 Replace with ...
4479 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4480 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4481 (cortex_m4_fmacs): Use new reservations.
4482 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4483
72ea0d47
VM
44842013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4485
f1e6512c 4486 PR rtl-optimization/56999
72ea0d47
VM
4487 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4488 related code.
4489 (lra_coalesce): Remove split_origin_bitmap and related code.
4490 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4491 ranges if necessary.
4492
780a5b71
UB
44932013-04-18 Uros Bizjak <ubizjak@gmail.com>
4494
4495 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4496 New array.
4497 (ix86_expand_call): Remove clobbered_registers array and use
4498 x86_64_ms_sysv_extra_clobbered_registers instead.
4499 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4500 Declare here.
4501 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4502 predicate.
4503 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4504 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4505 (*call_value_rex64_ms_sysv): Ditto.
4506
6f5a366a
CC
45072013-04-18 Cary Coutant <ccoutant@google.com>
4508
4509 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4510 parent instead of die_mark.
4511
475b8f37
DN
45122013-04-18 Diego Novillo <dnovillo@google.com>
4513
4514 * gimple.c (create_gimple_tmp): New.
4515 (get_expr_type): New.
4516 (build_assign): New.
4517 (build_type_cast): New.
4518 * gimple.h (enum ssa_mode): Define.
4519 (gimple_seq_set_location): New.
4520 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 4521 to use build_assign and build_type_cast.
475b8f37 4522
08940f33
RB
45232013-04-18 Richard Biener <rguenther@suse.de>
4524
4525 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4526 handle negative step. Remove redundant checks.
4527 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4528 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4529 for negative step and grouped loads fail to vectorize.
4530
0e0f87d4
SB
45312013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4532
4533 * emit-rtl.c (reset_insn_used_flags): New function.
4534 (reset_all_used_flags): Use it.
4535 (verify_insn_sharing): New function.
4536 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4537
4c445590
JJ
45382013-04-18 Jakub Jelinek <jakub@redhat.com>
4539
4540 PR tree-optimization/56984
4541 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4542 and (x >> M) >= N don't register any assertion if N << M is the
4543 minimum value.
4544
6873ecab
SB
45452013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4546
4547 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4548 do not delete_insn insns that have not yet been emitted, only
4549 unlink them with remove_insn.
4550 * df-scan.c (df_insn_delete): Revert r197492.
4551
3ccb989e
SB
45522013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4553
4554 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4555 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4556
45572013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
4558
4559 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4560 define_insn_and_split.
4561 (and_scc,ior_scc,negscc): Likewise.
4562 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4563
3ccb989e 45642013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
4565
4566 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4567 can benefit from using a sequence of LDRD instructions in epilogue
4568 instead of a single LDM instruction.
4569
6d10a203
MLI
45702013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4571
4572 PR 45688
4573 * doc/extend.texi: Fix typo.
4574
6983e6b5
RB
45752013-04-17 Richard Biener <rguenther@suse.de>
4576
4577 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4578 (vect_build_slp_tree): ... here.
4579 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4580 match. Remove special-casing of mismatched complex loads.
4581 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4582 re-try the match with swapped commutative operands.
4583 (vect_supported_load_permutation_p): Remove special-casing of
4584 mismatched complex loads.
4585 (vect_analyze_slp_instance): Adjust.
4586
ef23e6a2
RB
45872013-04-17 Richard Biener <rguenther@suse.de>
4588
4589 PR rtl-optimization/56921
4590 * cfgloop.h (struct loop): Add simple_loop_desc member.
4591 (struct niter_desc): Mark with GTY(()).
4592 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4593 * loop-iv.c (get_simple_loop_desc): Likewise.
4594 (free_simple_loop_desc): Likewise.
4595
4596 Revert
4597 2013-04-16 Richard Biener <rguenther@suse.de>
4598
4599 PR rtl-optimization/56921
4600 * loop-init.c (pass_rtl_move_loop_invariants): Add
4601 TODO_do_not_ggc_collect to todo_flags_finish.
4602 (pass_rtl_unswitch): Same.
4603 (pass_rtl_unroll_and_peel_loops): Same.
4604 (pass_rtl_doloop): Same.
4605
fc6f94f5
EB
46062013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4607
4608 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4609 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4610 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4611 references.
4612 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4613 * tree-streamer.c (record_common_node): Adjust reference in comment.
4614
10a88311
TG
46152013-04-17 Terry Guo <terry.guo@arm.com>
4616
4617 * config/arm/cortex-m4.md: Add a new bypass.
4618
6d9b7208 46192013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
4620
4621 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4622 New pattern.
4623 (*subs_<optab><mode>_multp2): New pattern.
4624 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4625 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4626
6d9b7208 46272013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
4628
4629 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4630 (*subs_mul_imm_<mode>): New pattern.
4631
18a6701e
DE
46322013-04-16 David Edelsohn <dje.gcc@gmail.com>
4633
4634 PR target/56948
4635 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4636 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4637 (vsx_movti_32bit): Change j->wa to O->wa.
4638
07c37b2f
RB
46392013-04-16 Richard Biener <rguenther@suse.de>
4640
4641 PR rtl-optimization/56921
4642 * loop-init.c (pass_rtl_move_loop_invariants): Add
4643 TODO_do_not_ggc_collect to todo_flags_finish.
4644 (pass_rtl_unswitch): Same.
4645 (pass_rtl_unroll_and_peel_loops): Same.
4646 (pass_rtl_doloop): Same.
4647
0e0f87d4 46482013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
4649
4650 * config/arm/arm.c (emit_multi_reg_push): New declaration
4651 for an existing function.
4652 (arm_emit_strd_push): New function.
4653 (arm_expand_prologue): Used here.
4654 (arm_emit_ldrd_pop): New function.
4655 (arm_expand_epilogue): Used here.
4656 (arm_get_frame_offsets): Update condition.
4657 (arm_emit_multi_reg_pop): Add a special case for load of a single
4658 register with writeback.
4659
5e8e2af4
UB
46602013-04-16 Uros Bizjak <ubizjak@gmail.com>
4661
4662 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4663 description.
4664
9fd9ccf7
RB
46652013-04-16 Richard Biener <rguenther@suse.de>
4666
4667 PR tree-optimization/56756
4668 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4669 (first_mem_ref_loc): New.
4670 (execute_sm): Place the load temporarily before a previous
4671 access instead of in the latch edge to ensure its SSA dependencies
4672 are defined at points dominating the load.
4673
96fba521
SB
46742013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4675
4c8af858
SB
4676 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4677 correct fix by moving header and footer insn to the footer of
4678 the merged basic block. Clear BB_END of the merged-away block.
4679
96fba521
SB
4680 PR middle-end/43631
4681 * emit-rtl.c (make_note_raw): New function.
4682 (link_insn_into_chain): New static inline function.
4683 (add_insn): Use it.
4684 (add_insn_before, add_insn_after): Factor insn chain linking code...
4685 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4686 using link_insn_into_chain.
4687 (note_outside_basic_block_p): New helper function for emit_note_after
4688 and emit_note_before.
4689 (emit_note_after): Use nobb variant of add_insn_after if the note
4690 should not be contained in a basic block.
4691 (emit_note_before): Use nobb variant of add_insn_before if the note
4692 should not be contained in a basic block.
4693 (emit_note_copy): Use make_note_raw.
4694 (emit_note): Likewise.
4695 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4696 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4697 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4698 the moved barrier the tail of the basic block it follows.
4699 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4700
7b8265ba
JJ
47012013-04-15 Jakub Jelinek <jakub@redhat.com>
4702
4703 PR tree-optimization/56962
4704 * gimple-ssa-strength-reduction.c (record_increment): Only set
4705 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4706 either rhs1 or rhs2 is equal to c->base_expr.
4707
5185d248
RB
47082013-04-15 Richard Biener <rguenther@suse.de>
4709
4710 PR tree-optimization/56933
4711 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4712 member.
4713 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4714 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4715 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4716 dependence check ...
4717 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4718 ... here.
4719 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4720 GROUP_READ_WRITE_DEPENDENCE.
4721
a24243a0
AK
47222013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4723
4724 * emit-rtl.c (reset_all_used_flags): New function.
4725 (verify_rtl_sharing): Call reset_all_used_flags before and after
4726 performing the checks.
4727
1c50eada
KT
47282013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4729
4730 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4731 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4732 * config/arm/constraints.md (De): New constraint.
4733 * config/arm/neon.md (anddi3_neon): Delete.
4734 (neon_vand<mode>): Expand to standard anddi3 pattern.
4735 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4736 Move earlier in the file.
4737 (neon_inv_logic_op2): Likewise.
4738 (arm_anddi_operand_neon): New predicate.
4739
e927b6ad
RO
47402013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4741
4742 * configure.ac (gcc_cv_ld_as_needed): Set
4743 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4744 Use -z ignore, -z record on *-*-solaris2*.
4745 (HAVE_LD_AS_NEEDED): Update comment.
4746 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4747 * configure: Regenerate.
4748 * config.in: Regenerate.
4749 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4750 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4751 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4752 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4753 equivalents. Fix markup.
4754 * doc/tm.texi: Regenerate.
4755
e0ea8797
AH
47562013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4757
4758 * config/i386/i386.opt: New option mstack-protector-guard=.
4759 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4760 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4761 TARGET_SSP_TLS_GUARD.
4762 * config/i386/i386.c (ix86_option_override_internal): Set
4763 ix86_stack_protector_guard.
4764 * config/i386/i386.md (stack_protect_set): Enable for
4765 TARGET_SSP_TLS_GUARD only.
4766 (stack_protect_set_<mode>): Ditto.
4767 (stack_protect_test): Ditto.
4768 (stack_protect_test_<mode>): Ditto.
4769 * doc/invoke.texi (i386 Option): Document.
4770
811b72f9
EB
47712013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4772
4773 PR target/56890
4774 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4775 (S_MODES): Set H_MODE bit.
4776 (SF_MODES): Set only S_MODE and SF_MODE bits.
4777 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4778 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4779 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4780 <MODE_FLOAT>: Likewise.
4781
5529fdd6
JY
47822013-04-15 Joey Ye <joey.ye@arm.com>
4783
4784 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4785
517b1da2
JY
47862013-04-15 Joey Ye <joey.ye@arm.com>
4787
4788 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4789 for real far jump.
4790 (thumb_far_jump_used_p): Count instruction size and set
4791 far_jump_used.
4792
01007ae0
EB
47932013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4794
4795 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4796 * resource.c (mark_target_live_regs): Reformat conditional block.
4797
c46f6580
SB
47982013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4799
4800 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4801 notes, they are emitted only just before final.
4802 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4803
1f397f45
SB
48042013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4805
4806 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4807 * cfgrtl.c (delete_insn): Call it here instead.
4808 * lra-spills.c (lra_final_code_change): Use delete_insn.
4809 * haifa-sched.c (sched_remove_insn): Likewise.
4810 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4811 returning to the nop pool.
4812 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4813 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4814
58a51369
SB
48152013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4816
4817 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4818 * doc/tm.texi: Regenerated.
4819
33159866
UB
48202013-04-12 Uros Bizjak <ubizjak@gmail.com>
4821
4822 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4823 QImode checks.
4824
226e378f
SB
48252013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4826
4827 * df-core.c (df_find_def): Compare register numbers.
4828 (df_find_use): Likewise.
4829
fafb9b18
VM
48302013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4831
4832 PR target/56903
4833 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4834 lra_in_progress for return.
4835
9a946fd6
GY
48362013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4837
4838 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4839 define_insn into define_insn_and_split and emit movsicc patterns.
4840
41b83758
GY
48412013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4842
4843 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4844
d3afd9aa
RB
48452013-04-12 Richard Biener <rguenther@suse.de>
4846
4847 * tree-pass.h (TODO_do_not_ggc_collect): New.
4848 * passes.c (execute_one_ipa_transform_pass): Honor
4849 TODO_do_not_ggc_collect.
4850 (execute_one_pass): Likewise.
4851
4852 Revert
4853 2013-04-10 Richard Biener <rguenther@suse.de>
4854
4855 * passes.c (init_optimization_passes): Remove reload pass.
4856 * ira.c (do_reload): Merge into ...
4857 (ira): ... this.
4858 (rest_of_handle_reload): Remove.
4859 (pass_reload): Likewise.
4860 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4861 of reload for vzeroupper pass placement.
4862
06f9b387
JJ
48632013-04-12 Jakub Jelinek <jakub@redhat.com>
4864
4865 PR tree-optimization/56918
4866 PR tree-optimization/56920
4867 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4868 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4869 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4870 use wide_mul_with_sign method.
4871
953094d2
RB
48722013-04-12 Richard Biener <rguenther@suse.de>
4873
4874 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4875 not be considered a gimple constant.
4876
bb506982
MG
48772013-04-12 Marc Glisse <marc.glisse@inria.fr>
4878
4879 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4880 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4881 operations.
4882
4b84d650
JJ
48832013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4884 Jakub Jelinek <jakub@redhat.com>
4885
4886 * opts.c: Include diagnostic-color.h.
4887 (common_handle_option): Handle OPT_fdiagnostics_color_.
4888 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4889 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4890 (diagnostic-color.o): New.
4891 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4892 (diagnostic_color_rule): New enum.
4893 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4894 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4895 the location string.
4896 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4897 either NULL, or color kind.
4898 * diagnostic-color.c: New file.
4899 * diagnostic-color.h: New file.
4900 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4901 arguments.
4902 * doc/invoke.texi (-fdiagnostics-color): Document.
4903 * pretty-print.h (pp_show_color): Define.
4904 (struct pretty_print_info): Add show_color field.
4905 * diagnostic.c: Include diagnostic-color.h.
4906 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4907 macros. Colorize error:, warning: etc. strings and also the location
4908 string.
4909 (diagnostic_show_locus): Colorize the caret line.
4910 * pretty-print.c: Include diagnostic-color.h.
4911 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4912 inside of %< %> quotes or quoted through q format modifier.
4913
067a1e71
AK
49142013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4915
33159866 4916 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4917
33159866 49182013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4919
4920 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4921 code in CC_NZ mode.
4922 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4923 pattern.
4924
7b55f98f
MP
49252013-04-11 Marek Polacek <polacek@redhat.com>
4926
4927 PR tree-optimization/48184
33159866 4928 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4929
966b587e
EB
49302013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4931
4932 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4933 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4934 (skip_simple_arithmetic): Tidy up.
4935 * tree.h (skip_simple_constant_arithmetic): Declare.
4936
33159866 49372013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
4938
4939 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4940
1d42c1ec
RB
49412013-04-11 Richard Biener <rguenther@suse.de>
4942
4943 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4944 generate vector constants.
4945
4ba5ea11
RB
49462013-04-11 Richard Biener <rguenther@suse.de>
4947
4948 PR tree-optimization/56878
4949 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4950 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4951 New function.
4952 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4953 Prefer to align the DR with the most invariant base address.
4954
f0defe58
SKS
49552013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4956
4957 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4958 comment.
4959
d07458be
JG
49602013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4961
4962 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4963 floating-point vector comparisons against 0.
4964
146b8692
JJ
49652013-04-11 Jakub Jelinek <jakub@redhat.com>
4966
4967 PR tree-optimization/56899
4968 * fold-const.c (extract_muldiv_1): Apply distributive law
4969 only if TYPE_OVERFLOW_WRAPS (ctype).
4970
b8578ff7
BC
49712013-04-11 Bin Cheng <bin.cheng@arm.com>
4972
4973 PR target/56124
4974 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4975 loading has side effect.
4976
0ea8a6f9
SB
49772013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4978
4979 * config/sparc/sparc.c: Include tree-pass.h.
4980 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4981 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4982 head of file. Change return type. Split off gate function.
4983 (sparc_gate_work_around_errata): New function.
4984 (pass_work_around_errata): New pass definition.
4985 (insert_pass_work_around_errata) New pass insert definition to
4986 insert pass_work_around_errata just after delayed-branch scheduling.
4987 (sparc_option_override): Insert the pass.
4988 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4989
42e37616
DM
49902013-04-10 David S. Miller <davem@davemloft.net>
4991
89deeb3b
DM
4992 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4993 or -mcpu=hypersparc.
4994
42e37616
DM
4995 * target.def (cstore_mode): New hook.
4996 * target.h: Include insn-codes.h
4997 * targhooks.c: Likewise.
4998 (default_cstore_mode): New function.
4999 * targhooks.h: Declare it.
5000 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5001 * doc/tm.texi: Rebuild.
5002 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5003 target hook, rather than inspecting the insn_data.
5004 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5005 (TARGET_CSTORE_MODE): Redefine.
5006 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5007 result patterns.
5008 * config/sparc/predicates.md (cstore_result_operand): New special
5009 predicate.
5010 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5011 Use it for operand 0.
5012 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5013 (*snesi_special): Likewise.
5014 (*snesi_zero): Likewise.
5015 (*seqsi_zero): Likewise.
5016 (*sltu_insn): Likewise.
5017 (*sgeu_insn): Likewise.
5018 (*seqdi_special): Make operand 0 and comparison operation be of
5019 DImode.
5020 (*snedi_special): Likewise.
5021 (*snedi_special_vis3): Likewise.
5022 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5023 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5024 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5025 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5026 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5027 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5028 (*sltu_extend_sp64): Likewise.
5029 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5030 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5031 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5032 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5033 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5034
95ca411e
YZ
50352013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5036
5037 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5038 (aarch64_start_file): Use the new function.
5039
6782438d 50402013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 5041 Jason Merrill <jason@redhat.com>
6782438d
SKS
5042
5043 * common.opt: Add -gdwarf.
5044 * opts.c (common_handle_option): Handle it.
5045 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5046
bb313b93
RB
50472013-04-10 Richard Biener <rguenther@suse.de>
5048
5049 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5050 (execute_one_ipa_transform_pass): But unconditionally here.
5051 (execute_one_pass): And here.
5052 (init_optimization_passes): Remove reload pass.
5053 * tree-pass.h (TODO_ggc_collect): Remove.
5054 (pass_reload): Likewise.
5055 * ira.c (do_reload): Merge into ...
5056 (ira): ... this.
5057 (rest_of_handle_reload): Remove.
5058 (pass_reload): Likewise.
5059 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5060 of reload for vzeroupper pass placement.
5061 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5062 and todo_flags_finish of all passes.
5063
793d9a16
RB
50642013-04-10 Richard Biener <rguenther@suse.de>
5065
5066 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5067 first_const_oprnd field, rename first_def_type to first_op_type.
5068 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5069 (vect_get_and_check_slp_defs): Always use the type of the
5070 operand. Allow mixed vect_external_def, vect_constant_def types.
5071 (vect_get_constant_vectors): Handle mixed vect_external_def,
5072 vect_constant_def types.
5073
ee8a9b7b
JR
50742013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5075
5076 PR tree-optimization/55524
5077 * tree-ssa-math-opts.c
5078 (convert_mult_to_fma): Don't use an fms construct
5079 when we don't have an fms operation, but fnma, and it looks
5080 likely that we'll be able to use the latter.
5081
6957a6f6
ZZ
50822013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5083
5084 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5085 function.
5086 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5087 inline fail caused by overwritable functions.
5088
34ab4a5b
CJW
50892013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5090
5091 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5092 unnecessary bits in the constant power of two case.
5093
abf9bfbc
RB
50942013-04-10 Richard Biener <rguenther@suse.de>
5095
5096 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5097 broken code swapping operands.
5098 (vect_build_slp_tree): Do not compute load permutations here.
5099 (vect_analyze_slp_instance): Compute load permutations here,
5100 after building the SLP tree.
5101
f408477e
CB
51022013-04-09 Christian Bruel <christian.bruel@st.com>
5103
5104 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5105 of next/prev_real_insn.
5106
5ac42672
JH
51072013-04-09 Jan Hubicka <jh@suse.cz>
5108
abf9bfbc
RB
5109 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5110 Drop aliased parameter.
5ac42672
JH
5111 (function_and_variable_visibility): Do not handle alias pairs.
5112 * cgraph.c (varpool_externally_visible_p): Update prototype.
5113 * varpool.c (varpool_add_new_variable): Update.
5114
5017f1d2
KT
51152013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5116
5117 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5118
48eecbee
SB
51192013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5120
a949cf1c
SB
5121 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5122
48eecbee
SB
5123 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5124
75ef8e3d
MP
51252013-04-09 Marek Polacek <polacek@redhat.com>
5126
5127 PR tree-optimization/48762
33159866 5128 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 5129
23847df4
RB
51302013-04-09 Richard Biener <rguenther@suse.de>
5131
5132 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5133 dealing with cost.
5134 (vect_build_slp_tree): Likewise.
5135 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5136 calculating the cost of a SLP instance.
5137 (vect_analyze_slp_instance): Use it from here, after building
5138 the SLP tree.
5139
ea3a0fde
JJ
51402013-04-09 Jakub Jelinek <jakub@redhat.com>
5141
5142 PR middle-end/56883
5143 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5144 expand_omp_for_static_chunk): Use simple_p = true in
5145 force_gimple_operand_gsi calls when assigning to addressable decls.
5146
a32dfe9d
JL
51472013-04-09 Jeff Law <law@redhat.com>
5148
5149 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5150 when the boolean was created by converting a wider object which
5151 had a boolean range.
5152
d755c7ef
RB
51532013-04-09 Richard Biener <rguenther@suse.de>
5154
5155 * tree-vectorizer.h (slp_void_p): Remove.
5156 (slp_tree): Typedef before _slp_tree declaration.
5157 (struct _slp_tree): Use a vector of slp_tree as children.
5158 (vect_get_place_in_interleaving_chain): Remove.
5159 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5160 Move ...
5161 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5162 and make static.
5163 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5164 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5165 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5166 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5167 Use slp_node instead of slp_void_p and adjust.
5168
3d741091
RB
51692013-04-09 Richard Biener <rguenther@suse.de>
5170
5171 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5172 work that is not necessary.
5173
39307ba7
JJ
51742013-04-09 Jakub Jelinek <jakub@redhat.com>
5175
5176 PR tree-optimization/56854
5177 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5178 forward into clobber stmts if it would change MEM_REF lhs into
5179 non-MEM_REF.
5180
343881fd
MK
51812013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5182
5183 * tree.c (type_hash_lookup, type_hash_add): Make static.
5184 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5185
3922658a
RB
51862013-04-09 Richard Biener <rguenther@suse.de>
5187
5188 * tree.h (unsave_expr_now): Remove.
5189 * tree-inline.c (mark_local_for_remap_r): Remove.
5190 (unsave_expr_1): Likewise.
5191 (unsave_r): Likewise.
5192 (unsave_expr_now): Likewise.
5193 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5194 (propagate_tree_value): Likewise.
5195
9fb6b620
SB
51962013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5197
5198 * doc/rtl.texi (sequence): Rewrite documentation to match the
5199 current use of SEQUENCE rtl objects.
5200 * rtl.def (SEQUENCE): Likewise.
5201
5202 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5203 Update documentation.
5204 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5205 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5206
5207 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5208
8ddb5a29
TJ
52092013-04-08 Teresa Johnson <tejohnson@google.com>
5210
5211 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5212 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 5213 methods.
8ddb5a29
TJ
5214 (estimate_edge_size_and_time): Add comment to suggest using rounding
5215 methods.
5216 (estimate_node_size_and_time): Ditto.
5217 (remap_edge_change_prob): Use helper rounding divide methods.
5218 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5219 (gimple_mod_pow2_value_transform): Ditto.
5220 (gimple_mod_subtract_transform): Ditto.
5221 (gimple_ic_transform): Ditto.
5222 (gimple_stringops_transform): Ditto.
5223 * stmt.c (conditional_probability): Ditto.
5224 (emit_case_dispatch_table): Ditto.
5225 * lto-cgraph.c (merge_profile_summaries): Ditto.
5226 * tree-optimize.c (execute_fixup_cfg): Ditto.
5227 * cfgcleanup.c (try_forward_edges): Ditto.
5228 * cfgloopmanip.c (scale_loop_profile): Ditto.
5229 (loopify): Ditto.
5230 (duplicate_loop_to_header_edge): Ditto.
5231 (lv_adjust_loop_entry_edge): Ditto.
5232 * tree-vect-loop.c (vect_transform_loop): Ditto.
5233 * profile.c (compute_branch_probabilities): Ditto.
5234 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5235 * lto-streamer-in.c (input_cfg): Ditto.
5236 * gimple-streamer-in.c (input_bb): Ditto.
5237 * ipa-cp.c (update_profiling_info): Ditto.
5238 (update_specialized_profile): Ditto.
5239 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5240 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 5241 rounding methods.
8ddb5a29
TJ
5242 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5243 (compute_trg_info): Ditto.
5244 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5245 (purge_dead_edges): Ditto.
5246 * loop-unswitch.c (unswitch_loop): Ditto.
5247 * cgraphclones.c (cgraph_clone_edge): Ditto.
5248 (cgraph_clone_node): Ditto.
5249 * tree-inline.c (copy_bb): Ditto.
5250 (copy_edges_for_bb): Ditto.
5251 (initialize_cfun): Ditto.
5252 (copy_cfg_body): Ditto.
5253 (expand_call_inline): Ditto.
5254
661e6bd7
KT
52552013-04-08 Kai Tietz <ktietz@redhat.com>
5256
5257 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5258 TARGET_CYGWIN64 by TARGET_64BIT.
5259
105766f3
JR
52602013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5261
5262 * config/epiphany/epiphany.md (GPR_1): New constant.
5263 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5264 * config/epiphany/epiphany.c (gen_compare_reg):
5265 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5266 is already in place.
5267 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5268 Don't require being called during rtl expansion; If y operlaps r0,
5269 return 0.
5270 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5271 (epiphany_expand_epilogue): Likewise.
5272
8afab237
JR
5273 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5274 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 5275 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 5276
fa7707d6
JR
5277 * config/epiphany/constraints.md (CnL): New constraint.
5278 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5279 * config/epiphany/predicates.md (add_operand): Allow 1024.
5280
5138e18d
JR
5281 * config/epiphany/epiphany.md (logical_op): New code iterator.
5282 (op_mnc): New code attribute.
5283 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5284 (mov_f+1, mov_f+2): New peephole2 patterns.
5285
2ccc703d
JR
5286 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5287 (cstoresi4): Also allow re-use of zero result when doing a NE
5288 comparison to a non-zero operand.
aefb0819 5289 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 5290
093ac0a5
JR
5291 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5292 Use gen_addsi3_i / gen_subsi3_i.
5293
f223bb13
JJ
52942013-04-08 Jakub Jelinek <jakub@redhat.com>
5295
5296 PR c++/34949
5297 PR c++/50243
5298 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5299 contain anything but clobbers, at most one __builtin_stack_restore,
5300 optionally debug stmts and final resx, and if it has at least one
5301 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5302 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5303 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5304 which isn't defaut definition, remove them.
5305 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5306 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5307 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5308 with MEM_REF LHS with SSA_NAME address.
5309
4481581f
JL
53102013-04-08 Jeff Law <law@redhat.com>
5311
5312 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 5313
451dabda
RB
53142013-04-08 Richard Biener <rguenther@suse.de>
5315
5316 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5317 extra newline.
5318 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5319 determined vector type.
5320 (vect_analyze_data_refs): Likewise.
5321 (vect_get_new_vect_var): Adjust.
5322 (vect_create_destination_var): Preserve SSA name versions.
5323 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5324 not dump anything here.
5325
3b088b47
JR
53262013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5327
5328 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5329 Add member lr_slot_known.
5330 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5331 if necessary.
5332 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5333 Remove code that sets lr_slot_offset according to what a previous
5334 version of epiphany_emit_save_restore used to do.
5335 (epiphany_emit_save_restore): When doing an lr save or restore,
5336 set/verify lr_slot_known and lr_slot_offset.
5337
d8484d41
XQ
53382013-04-08 Xinyu Qi <xyqi@marvell.com>
5339
33159866
UB
5340 PR target/54338
5341 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
5342 in ALL_REGS.
5343
481be1c4
RB
53442013-04-08 Richard Biener <rguenther@suse.de>
5345
5346 * alias.c (find_base_term): Fix thinko in previous change.
5347
401f3a81
JJ
53482013-04-08 Jakub Jelinek <jakub@redhat.com>
5349
5350 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5351 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5352 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5353 if possible to compute val.
5354 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5355 For QImode integers don't require anything about precision. Use
5356 const_with_all_bytes_same to find out if the constant doesn't have
5357 repeated bytes in it.
5358
03ed99a8
AK
53592013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5360
5361 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5362 within mode size.
5363
781b2e62
MP
53642013-04-08 Marek Polacek <polacek@redhat.com>
5365
5366 PR rtl-optimization/48182
5367 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5368 value to 1.
5369
27e430a2
JDA
53702013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5371
5372 PR target/55487
5373 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5374 nuses, make sure we have a label.
5375
4902aa64
BS
53762013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5377
5378 PR target/56843
5379 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5380 (rs6000_emit_swdiv_low_precision): Remove.
5381 (rs6000_emit_swdiv): Rewrite to handle between one and four
5382 iterations of Newton-Raphson generally; modify required number of
5383 iterations for some cases.
5384 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5385
7bca81dc
SB
53862013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5387
5388 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5389 set-but-unused variable.
5390
5391 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5392 basic blocks of released function bodies garbage-collectable.
5393
5394 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5395 (struct rtl_opt_pass): Add TODO_df_finish.
5396
5397 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5398
4542a38a
GY
53992013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5400
5401 * config/arm/constraints.md (q): New constraint.
5402 * config/arm/ldrdstrd.md: New file.
5403 * config/arm/arm.md (ldrdstrd.md) New include.
5404 (arm_movdi): Use "q" instead of "r" constraint
5405 for double-word memory access.
5406 (movdf_soft_insn): Likewise.
5407 * config/arm/vfp.md (movdi_vfp): Likewise.
5408 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 5409 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
5410 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5411 (mem_ok_for_ldrd_strd): Likewise.
5412 (output_move_double): Update assertion.
5413
2385b218
GY
54142013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5415
5416 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5417
75fe1cb5
GY
54182013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5419
5420 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5421 define_insn_and_split.
5422 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5423
dd660e8e
GY
54242013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5425
5426 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5427 define_insn_and_split.
33159866 5428 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
5429 (shiftsi3_compare): New pattern.
5430 (rrx): New pattern.
5431 * config/arm/unspecs.md (UNSPEC_RRX): New.
5432
045e472c
GY
54332013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5434
5435 * config/arm/arm.md (negdi_extendsidi): New pattern.
5436 (negdi_zero_extendsidi): Likewise.
5437
3f3bf1a8
GY
54382013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5439
5440 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5441 define_insn_and_split.
5442 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5443 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5444
b0b49556
GY
54452013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5446
5447 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5448 define_insn_and_split.
5449 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5450 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5451
d633dd84
GY
54522013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5453
5454 * config/arm/arm.md (subsi3_carryin): New pattern.
5455 (subsi3_carryin_const): Likewise.
5456 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5457 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5458
f4499066
GY
54592013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5460
5461 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5462
ceef6fd9
GY
54632013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5464
5465 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 5466 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 5467
ddbdd8a7
KT
54682013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5469
5470 * config/arm/arm.c (arm_expand_builtin): Change fcode
5471 type to unsigned int.
5472
8456d78a
RR
54732013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5474
5475 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5476
526c230f
ILT
54772013-04-04 Ian Lance Taylor <iant@google.com>
5478
33159866
UB
5479 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5480 language standard.
526c230f 5481
3cfbe04d
SB
54822013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5483
5484 PR middle-end/56729
5485 * df-scan.c (df_insn_delete): Disable failing assert.
5486
dfa3f8d0
KT
54872013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5488
5489 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5490 New function prototype.
5491 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5492 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5493 (arm_builtin_vectorized_function): New function.
5494
f7837758
KT
54952013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5496
5497 * config/arm/arm_neon_builtins.def: New file.
5498 * config/arm/arm.c (neon_builtin_data): Move contents to
5499 arm_neon_builtins.def.
5500 (enum arm_builtins): Include neon builtin definitions.
5501 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 5502 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 5503
39c1b6db
MP
55042013-04-04 Marek Polacek <polacek@redhat.com>
5505
5506 PR tree-optimization/48186
5507 * predict.c (maybe_hot_frequency_p): Return false if
5508 HOT_BB_FREQUENCY_FRACTION is 0.
5509 (cgraph_maybe_hot_edge_p): Likewise.
5510
314f64eb
RB
55112013-04-04 Richard Biener <rguenther@suse.de>
5512
5513 PR tree-optimization/56826
5514 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5515 more accurately.
5516
51a905b2
RB
55172013-04-04 Richard Biener <rguenther@suse.de>
5518
5519 PR tree-optimization/56213
5520 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 5521 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 5522
f1bf4f3a
RB
55232013-04-04 Richard Biener <rguenther@suse.de>
5524
5525 PR tree-optimization/56837
5526 * tree-loop-distribution.c (classify_partition): For non-zero
5527 values require that the value has the same precision as its
5528 mode to be useful as memset value.
5529
0bca7ded
NC
55302013-04-03 Nick Clifton <nickc@redhat.com>
5531
33159866 5532 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
5533 (fmssf4): Use fmsf.s on E3V5 architectures.
5534 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5535 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5536
b4019227
JL
55372013-04-03 Jeff Law <law@redhat.com>
5538
5539 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5540 (lra-eliminations.o): Likewise.
5541
f57ddb5b
TJ
55422013-04-03 Teresa Johnson <tejohnson@google.com>
5543
5544 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 5545 compute_working_sets here from profile.c.
f57ddb5b 5546 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
5547 (gcov_working_set_t): Moved typedef here from basic-block.h
5548 (compute_working_set): Declare.
f57ddb5b
TJ
5549 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5550 (get_working_sets): Renamed from compute_working_set,
33159866 5551 replace most of body with call to new compute_working_sets.
f57ddb5b 5552 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
5553 to get_working_sets.
5554 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 5555 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 5556 to get_working_sets.
f57ddb5b
TJ
5557 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5558 * gcov-dump.c (dump_working_sets): New function.
5559
5e0919f1
KZ
55602013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5561
5562 * hwint.c (sext_hwi, zext_hwi): New functions.
5563 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5564 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5565 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5566 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5567 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5568 (sext_hwi, zext_hwi): New functions.
0bca7ded 5569
be672e08
JL
55702013-04-03 Jeff Law <law@redhat.com>
5571
5572 PR tree-optimization/56799
33159866
UB
5573 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5574 back test for widening conversion erroneously dropped in prior change.
be672e08 5575
9d821fa5
KT
55762013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5577
5578 PR target/56809
5579 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5580 instead of next_real_insn.
5581
71c581e7
MP
55822013-04-03 Marek Polacek <polacek@redhat.com>
5583
5584 PR sanitizer/55702
33159866 5585 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 5586
4a32ef80
KT
55872013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5588
5589 PR target/56809
5590 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5591 next_real_insn.
5592 (thumb1_output_casesi): Likewise.
5593 (thumb2_output_casesi): Likewise.
5594
1b2253d4
RB
55952013-04-03 Richard Biener <rguenther@suse.de>
5596
5597 PR tree-optimization/56817
5598 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5599 Split out ...
5600 (tree_unroll_loops_completely_1): ... new function to manually
5601 walk the loop tree, properly defering outer loops of unrolled
5602 loops to later iterations.
5603
38000232
MG
56042013-04-03 Marc Glisse <marc.glisse@inria.fr>
5605
5606 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5607 (vectorizable_load): Likewise.
5608 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5609 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5610
3fa35298
MG
56112013-04-03 Marc Glisse <marc.glisse@inria.fr>
5612
5613 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5614 BIT_FIELD_REF.
5615
b3d45ff0
UW
56162013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5617
5618 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5619
ec9202a8
BC
56202013-04-03 Bin Cheng <bin.cheng@arm.com>
5621
5622 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5623
6805bd36
MG
56242013-04-03 Marc Glisse <marc.glisse@inria.fr>
5625
5626 PR tree-optimization/56790
33159866
UB
5627 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5628 folding.
6805bd36 5629
da694a77
MG
56302013-04-03 Marc Glisse <marc.glisse@inria.fr>
5631
5632 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5633 Handle VEC_MERGE.
5634 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5635 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5636 equal arguments.
5637
4e7d7b3d
JJ
56382013-04-03 Jakub Jelinek <jakub@redhat.com>
5639
5640 PR c/19449
5641 * tree.h (force_folding_builtin_constant_p): New decl.
5642 * builtins.c (force_folding_builtin_constant_p): New variable.
5643 (fold_builtin_constant_p): Fold immediately also if
5644 force_folding_builtin_constant_p.
5645
e6c9d234
RB
56462013-04-03 Richard Biener <rguenther@suse.de>
5647
5648 PR tree-optimization/56812
5649 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5650 DRs of the same interleaving chain are independent.
5651
984d07dd
JM
56522013-04-02 Jason Merrill <jason@redhat.com>
5653
5654 * gdbinit.in (pbb): Use debug fn.
5655
622849c9
LC
56562013-04-02 Lawrence Crowl <crowl@google.com>
5657
5658 * sese.h (struct ivtype_map_elt_s): Remove unused.
5659 (extern debug_ivtype_map): Remove unused.
5660 (extern eq_ivtype_map_elts): Remove unused.
5661 * sese.c (debug_ivtype_map): Removed unused.
5662 (debug_ivtype_map_1): Removed unused.
5663 (debug_ivtype_elt): Remove unused.
5664 (eq_ivtype_map_elts): Remove unused.
5665
5666
82c0e1a0
KT
56672013-04-02 Kai Tietz <ktietz@redhat.com>
5668
5669 PR target/52790
5670 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5671 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
5672 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5673 function.
82c0e1a0
KT
5674 (legitimize_pe_coff_symbol): Likewise.
5675 (is_imported_p): New helper-function.
5676 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5677 for Windows x64 targets.
5678 (ix86_expand_prologue): Optimize for pe-coff targets.
5679 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5680 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5681 medium/large code-model.
5682 (legitimize_pic_address): Likewise.
5683 (legitimize_tls_address): Likewise.
5684 (ix86_expand_call): Likewise.
5685 (x86_output_mi_thunk): Likewise.
5686 (get_dllimport_decl): Add new beimport argument.
5687 (construct_plt_address): Don't assert for x64 pe-coff targets.
5688 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5689 targets.
5690 (SYMBOL_FLAG_STUBVAR): New macro.
5691 (SYMBOL_REF_STUBVAR_P): Likewise.
5692 * config/i386/winnt.c (stub_list): New structure.
5693 (stub_head): New local variable.
5694 (i386_pe_record_stub): New function.
5695 (i386_pe_file_end): Emit refptr-stubs.
5696
5d751b0c
JJ
56972013-04-02 Jakub Jelinek <jakub@redhat.com>
5698
09bb4c99
JJ
5699 PR rtl-optimization/56745
5700 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5701 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5702
a1d8947a
JJ
5703 PR c++/34949
5704 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5705 and both of them are MEM_REFs, just compare first argument for
5706 equality and attempt to deal even with differing offsets.
5707
5d751b0c
JJ
5708 PR c++/34949
5709 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5710 of gimple_clobber_p to be MEM_REF.
5711 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5712 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5713 after gimplification.
5714 * asan.c (get_mem_ref_of_assignment): Don't instrument
5715 gimple_clobber_p stmts.
5716 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5717 gimple_clobber_p stmt if they have MEM_REF lhs and
5718 are dead because of another gimple_clobber_p stmt.
5719 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5720 gimple_clobber_p stmts like debug stmts.
5721 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5722 that refer to unused VAR_DECLs or uninitialized values.
5723 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5724 gimple_clobber_p stmts if they refer to removed parameters.
5725 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5726 formatting.
5727
e594716a
UB
57282013-04-02 Uros Bizjak <ubizjak@gmail.com>
5729
5730 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5731 using SWI48 mode attribute.
5732
7a80735b
WM
57332013-04-02 Wei Mi <wmi@google.com>
5734
5735 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5736 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5737 *<rotate_insn><mode>3_mask in i386.md.
5738
f423a9e4
AI
57392013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5740
5741 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5742
90eb75f2
RB
57432013-04-02 Richard Biener <rguenther@suse.de>
5744
5745 PR tree-optimization/56778
5746 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5747 Runtime alias tests are not supported for gather loads.
5748 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5749 stmts referenced from SSA operands before updating SSA form.
5750
d8c69a92
IC
57512013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5752 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5753
5754 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
5755 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5756 * config/arm/cortex-a53.md: New file.
5757 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5758 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5759 * config/arm/arm.c (arm_issue_rate): Likewise.
5760 * config/arm/arm-tune.md: Regenerate
5761 * config/arm/arm-tables.opt: Regenerate.
5762 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 5763
239eb04c
ZC
57642013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5765
5766 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5767 non-static link.
5768
c902d3c8
SN
57692013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5770
d8c69a92
IC
5771 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5772 scalar load/store operations using B/H registers.
c902d3c8
SN
5773 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5774
051d0e2f
SN
57752013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5776
5777 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5778 scalar move.
5779 * config/aarch64/aarch64.c
5780 (aarch64_simd_scalar_immediate_valid_for_move): New.
5781 * config/aarch64/aarch64-protos.h
5782 (aarch64_simd_scalar_immediate_valid_for_move): New.
5783 * config/aarch64/constraints.md (Dh, Dq): New.
5784 * config/aarch64/iterators.md (hq): New.
5785
0ee1e3d9
EB
57862013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5787
5788 * reorg.c (get_branch_condition): Deal with conditional returns.
5789 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5790
136fb3f7
WM
57912013-04-01 Wei Mi <wmi@google.com>
5792
5793 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5794 Truncate operand 2 using %b asm operand modifier.
5795 (*<shift_insn><mode>3_mask): Ditto.
5796 (*<rotate_insn><mode>3_mask): Ditto.
5797
6388c738
SB
57982013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5799
5800 PR middle-end/56798
5801 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5802
f7a4d826
KK
58032013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5804
5805 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5806 of next_real_insn.
5807 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5808
4b943a49
LC
58092013-03-30 Lawrence Crowl <crowl@google.com>
5810
5811 * dse.c (clear_alias_sets): Remove never set.
5812 (disqualified_clear_alias_sets): Remove never set.
5813 (clear_alias_mode_pool): Remove never set.
5814 (dse_step0): Remove condition that is never true.
5815 (canon_address): Remove condition that is never true.
5816 (dse_step7): Remove condition that is never true.
5817 (rest_of_handle_dse): Remove condition that is never true.
5818 (rest_of_handle_dse::did_global): Remove never read from above.
5819 (dse_step2_spill): Remove never called from above.
5820 (dse_step5_spill): Remove never called from above.
5821
39718607
SB
58222013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5823
da5c6bde
SB
5824 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5825 JUMP_TABLE_DATA changes.
5826 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5827 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5828 (Insns) <jump_table_data>: New entry.
5829 * doc/tm.texi: Regenerate.
5830
39718607
SB
5831 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5832
5833 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5834 for table jump at the end of a basic block using tablejump_p.
5835 * targhooks.c (default_invalid_within_doloop): Likewise.
5836 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5837 target hook implementation that is identical to the default hook.
5838 (rs6000_invalid_within_doloop): Remove.
5839
5840 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5841 unused variable from tablejump_p call.
5842
5843 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5844 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5845 (INSN_DELETED_P): Likewise.
5846 (emit_jump_table_data): New prototype.
5847 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5848 after 4th as unused.
5849 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5850 * sched-vis.c (print_insn): Likewise.
5851 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5852 insn for compatibility with back ends that use next_active_insn to
5853 identify jump table data.
5854 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5855 (remove_insn): Likewise.
5856 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5857 to be emitted.
5858 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5859 (emit_jump_table_data): New function.
5860
5861 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5862 basic block, a JUMP_TABLE_DATA never is.
5863 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5864 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5865 off from code handling real insns.
5866 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5867 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5868 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5869 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5870 is not a NONDEBUG_INSN_P.
5871 * ira-costs.c (scan_one_insn): Likewise.
5872 * jump.c (mark_all_labels): Likewise.
5873 (mark_jump_label_1): Likewise.
5874 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5875 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5876 a basic block.
5877 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5878 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5879 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5880 JUMP_TABLE_DATA_P insns.
5881 (calculate_elim_costs_all_insns): Likewise.
5882 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5883 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5884 (delete_output_reload): Code style fixups.
5885 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5886 insn flags on this non-insn.
5887 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5888 as scheduling barriers, for pre-change compatibility.
5889 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5890 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5891
5892 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5893 redundant JUMP_TABLE_DATA_P test.
5894 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5895 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5896 (frv_for_each_packet): Likewise.
5897 * config/i386/i386.c (min_insn_size): Likewise.
5898 (ix86_avoid_jump_mispredicts): Likewise.
5899 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5900 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5901 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5902 (mips16_insn_length): Robustify.
5903 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5904 (mips16_split_long_branches): Likewise.
5905 * config/pa/pa.c (pa_combine_instructions): Likewise.
5906 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5907 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5908 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5909 as contributing to pool range lengths.
5910 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5911 Remove redundant JUMP_TABLE_DATA_P test.
5912 (sh_loop_align): Likewise.
5913 (split_branches): Likewise.
5914 (sh_insn_length_adjustment): Likewise.
5915 * config/spu/spu.c (get_branch_target): Likewise.
5916
0208f7da
JH
59172013-03-29 Jan Hubicka <jh@suse.cz>
5918
5919 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5920 gcov streaming; stream hot bb threshold to ltrans.
5921 * predict.c (get_hot_bb_threshold): Break out from ....
5922 (maybe_hot_count_p): ... here.
5923 (set_hot_bb_threshold): New function.
5924 * lto-section-in.c (lto_section_name): Add profile.
5925 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5926 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5927 and data-streamer.h
5928 (histogram_entry): New structure.
5929 (histogram, histogram_pool): New global vars.
5930 (histogram_hash): New structure.
5931 (histogram_hash::hash): New method.
5932 (histogram_hash::equal): Likewise.
5933 (account_time_size): New function.
5934 (cmp_counts): New function.
5935 (dump_histogram): New function.
5936 (ipa_profile_generate_summary): New function.
5937 (ipa_profile_write_summary): New function.
5938 (ipa_profile_read_summary): New function.
5939 (ipa_profile): Decide on threshold.
e594716a
UB
5940 (pass_ipa_profile): Add ipa_profile_write_summary and
5941 ipa_profile_read_summary.
0208f7da
JH
5942 * Makefile.in (ipa.o): Update dependencies.
5943 * lto-streamer.h (LTO_section_ipa_profile): New section.
5944
5a6ccc94
GDR
59452013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5946
5947 * tree.h (VAR_P): New.
5948
39385fa6
PC
59492013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5950
5951 PR lto/56777
5952 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5953
34f0d87a
SB
59542013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5955
5956 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5957 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5958 (control_flow_insn_p): Likewise.
5959 * cfgrtl.c (duplicate_insn_chain): Likewise.
5960 * final.c (get_attr_length_1): Likewise.
5961 (shorten_branches): Likewise.
5962 (final_scan_insn): Likewise.
5963 * function.c (instantiate_virtual_regs): Likewise.
5964 * gcse.c (insert_insn_end_basic_block): Likewise.
5965 * ira-costs.c (scan_one_insn): Likewise.
5966 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5967 * lra.c (check_rtl): Likewise.
5968 * reload1.c (elimination_costs_in_insn): Likewise.
5969 * reorg.c (follow_jumps): Likewise.
5970
5971 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5972 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5973 (thumb_far_jump_used_p): Likewise.
5974 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5975 (workaround_speculation): Likewise.
5976 (add_sched_insns_for_speculation): Likewise.
5977 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5978 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5979 (frv_for_each_packet): Likewise.
5980 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5981 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5982 (final_emit_insn_group_barriers): Likewise.
5983 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5984 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5985 (mips16_insn_length): Likewise.
5986 * config/pa/pa.c (pa_reorg): Likewise.
5987 (pa_combine_instructions): Likewise.
5988 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5989 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5990 (sh_reorg): Likewise.
5991 (split_branches): Likewise.
5992 * config/spu/spu.c (get_branch_target): Likewise.
5993
5994 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5995 JUMP_TABLE_DATA_P.
5996
4ac761b0
KY
59972013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5998
39385fa6 5999 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
6000 Fix declaration name.
6001
58a49189
LC
60022013-03-28 Lawrence Crowl <crowl@google.com>
6003
6004 * graphds.h (struct graph.indicies): Remove unused.
6005 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6006 (SCOP_ORIGINAL_PDDRS): Remove unused.
6007 * sese.h (extern insert_loop_close_phis): Removed unused.
6008 (extern insert_guard_phis): Removed unused.
6009 (extern ivtype_map_elt_info): Removed unused.
6010 (new_ivtype_map_elt): Removed unused.
6011 * sese.c (ivtype_map_elt_info): Removed unused.
6012
7b3b6ae4
LC
60132013-03-28 Lawrence Crowl <crowl@google.com>
6014
6015 * Makefile.in: Add several missing include dependences.
6016 (DUMPFILE_H): New.
6017 (test-dump.o): New. This object is not added to any executable,
6018 but is present for ad-hoc testing.
6019 * bitmap.c
6020 (debug (const bitmap_head_def &)): New.
6021 (debug (const bitmap_head_def *)): New.
6022 * bitmap.h
6023 (extern debug (const bitmap_head_def &)): New.
6024 (extern debug (const bitmap_head_def *)): New.
6025 * cfg.c
6026 (debug (edge_def &)): New.
6027 (debug (edge_def *)): New.
6028 * cfghooks.c
6029 (debug (basic_block_def &)): New.
6030 (debug (basic_block_def *)): New.
6031 * dumpfile.h
6032 (dump_node (const_tree, int, FILE *)): Correct source file.
6033 * dwarf2out.c
6034 (debug (die_struct &)): New.
6035 (debug (die_struct *)): New.
6036 * dwarf2out.h
6037 (extern debug (die_struct &)): New.
6038 (extern debug (die_struct *)): New.
6039 * gimple-pretty-print.c
6040 (debug (gimple_statement_d &)): New.
6041 (debug (gimple_statement_d *)): New.
6042 * gimple-pretty-print.h
6043 (extern debug (gimple_statement_d &)): New.
6044 (extern debug (gimple_statement_d *)): New.
6045 * ira-build.c
6046 (debug (ira_allocno_copy &)): New.
6047 (debug (ira_allocno_copy *)): New.
6048 (debug (ira_allocno &)): New.
6049 (debug (ira_allocno *)): New.
6050 * ira-int.h
6051 (extern debug (ira_allocno_copy &)): New.
6052 (extern debug (ira_allocno_copy *)): New.
6053 (extern debug (ira_allocno &)): New.
6054 (extern debug (ira_allocno *)): New.
6055 * ira-lives.c
6056 (debug (live_range &)): New.
6057 (debug (live_range *)): New.
6058 * lra-int.h
6059 (debug (lra_live_range &)): New.
6060 (debug (lra_live_range *)): New.
6061 * lra-lives.c
6062 (debug (lra_live_range &)): New.
6063 (debug (lra_live_range *)): New.
6064 * omega.c
6065 (debug (omega_pb_d &)): New.
6066 (debug (omega_pb_d *)): New.
6067 * omega.h
6068 (extern debug (omega_pb_d &)): New.
6069 (extern debug (omega_pb_d *)): New.
6070 * print-rtl.c
6071 (debug (const rtx_def &)): New.
6072 (debug (const rtx_def *)): New.
6073 * print-tree.c
6074 (debug_tree (tree): Move within file.
6075 (debug_raw (const tree_node &)): New.
6076 (debug_raw (const tree_node *)): New.
6077 (dump_tree_via_hooks (const tree_node *, int)): New.
6078 (debug (const tree_node &)): New.
6079 (debug (const tree_node *)): New.
6080 (debug_verbose (const tree_node &)): New.
6081 (debug_verbose (const tree_node *)): New.
6082 (debug_head (const tree_node &)): New.
6083 (debug_head (const tree_node *)): New.
6084 (debug_body (const tree_node &)): New.
6085 (debug_body (const tree_node *)): New.
6086 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6087 (debug (vec<tree, va_gc> &)): New.
6088 (debug (vec<tree, va_gc> *)): New.
6089 * rtl.h
6090 (extern debug (const rtx_def &)): New.
6091 (extern debug (const rtx_def *)): New.
6092 * sbitmap.c
6093 (debug_raw (simple_bitmap_def &)): New.
6094 (debug_raw (simple_bitmap_def *)): New.
6095 (debug (simple_bitmap_def &)): New.
6096 (debug (simple_bitmap_def *)): New.
6097 * sbitmap.h
6098 (extern debug (simple_bitmap_def &)): New.
6099 (extern debug (simple_bitmap_def *)): New.
6100 (extern debug_raw (simple_bitmap_def &)): New.
6101 (extern debug_raw (simple_bitmap_def *)): New.
6102 * sel-sched-dump.c
6103 (debug (vinsn_def &)): New.
6104 (debug (vinsn_def *)): New.
6105 (debug_verbose (vinsn_def &)): New.
6106 (debug_verbose (vinsn_def *)): New.
6107 (debug (expr_def &)): New.
6108 (debug (expr_def *)): New.
6109 (debug_verbose (expr_def &)): New.
6110 (debug_verbose (expr_def *)): New.
6111 (debug (vec<rtx> &)): New.
6112 (debug (vec<rtx> *)): New.
6113 * sel-sched-dump.h
6114 (extern debug (vinsn_def &)): New.
6115 (extern debug (vinsn_def *)): New.
6116 (extern debug_verbose (vinsn_def &)): New.
6117 (extern debug_verbose (vinsn_def *)): New.
6118 (extern debug (expr_def &)): New.
6119 (extern debug (expr_def *)): New.
6120 (extern debug_verbose (expr_def &)): New.
6121 (extern debug_verbose (expr_def *)): New.
6122 (extern debug (vec<rtx> &)): New.
6123 (extern debug (vec<rtx> *)): New.
6124 * sel-sched-ir.h
6125 (_list_iter_cond_expr): Make inline instead of static.
6126 * sreal.c
6127 (debug (sreal &)): New.
6128 (debug (sreal *)): New.
6129 * sreal.h
6130 (extern debug (sreal &)): New.
6131 (extern debug (sreal *)): New.
6132 * tree.h
6133 (extern debug_raw (const tree_node &)): New.
6134 (extern debug_raw (const tree_node *)): New.
6135 (extern debug (const tree_node &)): New.
6136 (extern debug (const tree_node *)): New.
6137 (extern debug_verbose (const tree_node &)): New.
6138 (extern debug_verbose (const tree_node *)): New.
6139 (extern debug_head (const tree_node &)): New.
6140 (extern debug_head (const tree_node *)): New.
6141 (extern debug_body (const tree_node &)): New.
6142 (extern debug_body (const tree_node *)): New.
6143 (extern debug (vec<tree, va_gc> &)): New.
6144 (extern debug (vec<tree, va_gc> *)): New.
6145 * tree-cfg.c
6146 (debug (struct loop &)): New.
6147 (debug (struct loop *)): New.
6148 (debug_verbose (struct loop &)): New.
6149 (debug_verbose (struct loop *)): New.
6150 * tree-dump.c: Add header dependence.
6151 * tree-flow.h
6152 (extern debug (struct loop &)): New.
6153 (extern debug (struct loop *)): New.
6154 (extern debug_verbose (struct loop &)): New.
6155 (extern debug_verbose (struct loop *)): New.
6156 * tree-data-ref.c
6157 (debug (data_reference &)): New.
6158 (debug (data_reference *)): New.
6159 (debug (vec<data_reference_p> &)): New.
6160 (debug (vec<data_reference_p> *)): New.
6161 (debug (vec<ddr_p> &)): New.
6162 (debug (vec<ddr_p> *)): New.
6163 * tree-data-ref.h
6164 (extern debug (data_reference &)): New.
6165 (extern debug (data_reference *)): New.
6166 (extern debug (vec<data_reference_p> &)): New.
6167 (extern debug (vec<data_reference_p> *)): New.
6168 (extern debug (vec<ddr_p> &)): New.
6169 (extern debug (vec<ddr_p> *)): New.
6170 * tree-ssa-alias.c
6171 (debug (pt_solution &)): New.
6172 (debug (pt_solution *)): New.
6173 * tree-ssa-alias.h
6174 (extern debug (pt_solution &)): New.
6175 (extern debug (pt_solution *)): New.
6176 * tree-ssa-alias.c
6177 (debug (_var_map &)): New.
6178 (debug (_var_map *)): New.
6179 (debug (tree_live_info_d &)): New.
6180 (debug (tree_live_info_d *)): New.
6181 * tree-ssa-alias.h
6182 (extern debug (_var_map &)): New.
6183 (extern debug (_var_map *)): New.
6184 (extern debug (tree_live_info_d &)): New.
6185 (extern debug (tree_live_info_d *)): New.
6186
be77e1e5
JH
61872013-03-28 Jan Hubicka <jh@suse.cz>
6188
6189 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6190
777e6976
IB
61912013-03-28 Ian Bolton <ian.bolton@arm.com>
6192
6193 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6194 record only when desired or required.
6195
9cd347ae
UB
61962013-03-28 Uros Bizjak <ubizjak@gmail.com>
6197
6198 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6199 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6200
33159866 62012013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
6202
6203 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6204 (*andsi3_compare0_uxtw): New pattern.
6205 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6206 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6207
89ab31c1
JH
62082013-03-28 Jan Hubicka <jh@suse.cz>
6209
6210 * data-streamer-in.c (streamer_read_gcov_count): New function.
6211 * gimple-streamer-out.c: Include value-prof.h.
6212 (output_gimple_stmt): Output histogram.
6213 (output_bb): Use streamer_write_gcov_count.
6214 * value-prof.c: Include data-streamer.h
6215 (dump_histogram_value): Add HIST_TYPE_MAX.
6216 (stream_out_histogram_value): New function.
6217 (stream_in_histogram_value): New function.
6218 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6219 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6220 * data-streamer-out.c (streamer_write_gcov_count): New function.
6221 (streamer_write_gcov_count_stream): New function.
6222 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6223 (lto_output_node): Likewise.
6224 (input_node, input_edge): Likewise.
6225 * lto-streamer-out.c (output_cfg): Update streaming.
6226 * lto-streamer-in.c (input_cfg): Likewise.
6227 * data-streamer.h (streamer_write_gcov_count,
6228 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6229 * gimple-streamer-in.c: Include value-prof.h
6230 (input_gimple_stmt): Input histograms.
6231 (input_bb): Update profile streaming.
6232
e594716a 62332013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 6234
33159866 6235 * genmodes.c (emit_max_int): New function.
8697be17 6236 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
6237 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6238 Added doc.
8697be17 6239 * machmode.def: Fixed comment.
89ab31c1 6240
e594716a 62412013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
6242
6243 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
6244 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6245
74946978
MP
62462013-03-28 Marek Polacek <polacek@redhat.com>
6247 Richard Biener <rguenther@suse.de>
6248
6249 PR tree-optimization/56695
6250 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6251 build signed result of a vector comparison.
6252 * tree-cfg.c (verify_gimple_comparison): Check that a result
6253 of a vector comparison has signed type.
6254
a64b9c26
RB
62552013-03-28 Richard Biener <rguenther@suse.de>
6256
6257 PR tree-optimization/37021
6258 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6259 do not restrict gaps between groups.
6260 * tree-vect-stmts.c (vectorizable_load): Properly account for
6261 a gap between groups.
6262
a9dc2a2f
EB
62632013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6264
6265 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6266 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6267 is not enabled.
6268
53cb97f9
GP
62692013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6270
6271 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6272 * doc/extend.texi (Named Address Spaces): Ditto.
6273 (Variable Attributes): Ditto.
6274
b802ae5c
KT
62752013-03-27 Kai Tietz <ktietz@redhat.com>
6276
eddae10a
KT
6277 * config.build: Add support for cygwin x64 target.
6278 * config.gcc: Likewise.
6279 * config.host: Likewise.
6280 * configure.ac: Likewise
6281 * configure: Regenerated.
b802ae5c 6282
8269de54
KT
62832013-03-27 Kai Tietz <ktietz@redhat.com>
6284
6285 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6286 * config/i386/t-cygwin-w64: New file.
6287 * config/i386/cygwin-w64.h: New file.
6288 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6289 and add support for x64-cygwin target.
6290 (CPP_SPEC): Likewise.
6291 (CXX_WRAP_SPEC_LIST): Undefine before define.
6292 (LIBGCJ_SONAME): Use 15 as version.
6293
f49b33cb
RB
62942013-03-27 Richard Biener <rguenther@suse.de>
6295
6296 PR tree-optimization/56716
6297 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6298 dumping for ref nodes.
6299
b37a6ce5
MJ
63002013-03-27 Martin Jambor <mjambor@suse.cz>
6301
6302 PR tree-optimization/55334
6303 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6304 restricted pointers to arrays.
6305
9469b9b2
GDR
63062013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6307
6308 * Makefile.in (.SUFFIXES): Add .cc.
6309 (.c.o): Apply same recipe for implicit rule .cc.o.
6310
7d24f650
RB
63112013-03-27 Richard Biener <rguenther@suse.de>
6312
6313 PR tree-optimization/37021
6314 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6315 REALPART/IMAGPART_EXPRs around the supported refs.
6316 * tree-ssa-structalias.c (find_func_aliases): Assume that
6317 floating-point values are not used to transfer pointers.
6318
2f251a05
AI
63192013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6320
39385fa6
PC
6321 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6322 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6323 * doc/tm.texi: Regenerate.
6324 * targhooks.h (default_has_ifunc_p): New.
6325 * targhooks.c (default_has_ifunc_p): Ditto.
6326 * config/linux-protos.h: New file.
6327 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
6328 this hook for linux which disables support of indirect functions in
6329 android.
39385fa6
PC
6330 * config/linux-android.c: New file.
6331 * config/t-linux-android.c: Ditto.
6332 * config.gcc: Added new object file linux-android.o.
6333 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 6334 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 6335 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
6336 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6337 doesn't support indirect functions.
6338 * configure: Regenerate.
6339
78b4e425
BC
63402013-03-27 Bin Cheng <bin.cheng@arm.com>
6341
6342 PR target/56102
6343 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6344 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6345 mult-word mode.
6346
a5ba7b92
AK
63472013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6348
6349 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6350
be624986
TG
63512013-03-27 Terry Guo <terry.guo@arm.com>
6352
6353 * config/arm/arm-cores.def: Added core cortex-r7.
6354 * config/arm/arm-tune.md: Regenerated.
6355 * config/arm/arm-tables.opt: Regenerated.
6356 * doc/invoke.texi: Added entry for core cortex-r7.
6357
0a514f47
WL
63582013-03-27 Walter Lee <walt@tilera.com>
6359
6360 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6361 double-decrement of next_scratch_regno.
6362
9332b0d2
WL
63632013-03-27 Walter Lee <walt@tilera.com>
6364
801d9b2a 6365 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
6366 input operands.
6367 (insn_v1mulus): Ditto.
6368 (insn_v2muls): Ditto.
6369
f54ea5dd
WL
63702013-03-27 Walter Lee <walt@tilera.com>
6371
e594716a 6372 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
6373 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6374
bf60f4ca
WL
63752013-03-27 Walter Lee <walt@tilera.com>
6376
e594716a 6377 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
6378 (*sibcall_value): Ditto.
6379
e3b51eeb
WL
63802013-03-27 Walter Lee <walt@tilera.com>
6381
6382 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6383 (insn_mnz_v8qi): ... this ...
6384 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6385 vector equivalent.
6386 (insn_v<n>mnz): Replaced by ...
6387 (insn_v1mnz): ... this ...
6388 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6389 equivalent.
6390 (insn_mz_<mode>): Replaced by ...
6391 (insn_mz_v8qi): ... this ...
6392 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6393 vector equivalent.
6394 (insn_v<n>mz): Replaced by ...
6395 (insn_v1mz): ... this ...
6396 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6397 equivalent.
6398
4fc7b145
EB
63992013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6400
6401 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6402
6f33817e
RM
64032013-03-26 Roland McGrath <mcgrathr@google.com>
6404
6405 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6406 than fprintf with a non-constant, non-format string.
6407
93a4145b
UB
64082013-03-26 Uros Bizjak <ubizjak@gmail.com>
6409
6410 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6411 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6412 operand 0 predicate.
6413 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6414 attribute. Use general_x64nomem_operand as operand 1 predicate.
6415 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6416 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6417 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6418 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6419 (mov<mode>_insv_1): Remove expander. Merge insn with
6420 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6421 Use general_x64nomem_operand as operand 1 predicate.
6422 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6423 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6424 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6425 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6426 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6427 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6428 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6429 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6430 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6431 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6432 (general_x64nomem_operand): Ditto.
6433
c6a9ed5a 64342013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
6435
6436 * config/rtems.opt: Add -pthread option.
6437
31b0a960
RB
64382013-03-26 Richard Biener <rguenther@suse.de>
6439
93a4145b
UB
6440 * alias.c (find_base_term): Avoid redundant and not used recursion.
6441 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
6442 (true_dependence_1): Compute and pass base terms to base_alias_check.
6443 (write_dependence_p): Likewise.
6444 (may_alias_p): Likewise.
6445
79517551
SN
64462013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6447
6448 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6449 PC-relative load in SI modes and above only.
6450
a76213b9
XQ
64512013-03-26 Xinyu Qi <xyqi@marvell.com>
6452
6453 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
6454 * config/arm/iwmmxt.md (WCGR0): Update.
6455 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 6456
37ff9355
UB
64572013-03-26 Uros Bizjak <ubizjak@gmail.com>
6458
6459 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6460 Use x64 and nox64 isa attributes.
6461
30b0317c
RB
64622013-03-26 Richard Biener <rguenther@suse.de>
6463
6464 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6465 alignment computations and rely on get_object_alignment_1
6466 for the !TYPE_P case.
6467 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6468
cbcdb140
WL
64692013-03-26 Walter Lee <walt@tilera.com>
6470
6471 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6472 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6473
dd884525 64742013-03-25 Jeff Law <law@redhat.com>
be672e08 6475
33159866
UB
6476 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6477 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
6478 wrong version of prior patch.
6479
0051d3ec
WL
64802013-03-25 Walter Lee <walt@tilera.com>
6481
6482 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6483 TILEGX_INSN_SHUFFLEBYTES1.
6484 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6485 shufflebytes1.
6486 (tilegx_builtins): Ditto.
6487 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6488
065a3605
WL
64892013-03-25 Walter Lee <walt@tilera.com>
6490
6491 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
6492 (floatunssisf2): New pattern.
6493 (floatsidf2): New pattern.
6494 (floatunssidf2): New pattern.
065a3605 6495
5b2a3c82
WL
64962013-03-25 Walter Lee <walt@tilera.com>
6497
6498 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6499 tests for constraint J, K, N, P.
6500
192ea533
WL
65012013-03-25 Walter Lee <walt@tilera.com>
6502
6503 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6504 Use indirect/pcrel encoding.
6505 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6506 Ditto.
6507
855e0d0b
SE
65082013-03-25 Steve Ellcey <sellcey@mips.com>
6509
6510 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6511 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6512 * config/mips/mips.c (mips_option_override): Set IMADD default.
6513 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6514 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6515 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6516 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6517 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6518
39e45653
JL
65192013-03-25 Jeff Law <law@redhat.com>
6520
6521 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6522 slightly to avoid creating and folding useless trees. Simplify
6523 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6524
7482c470
UB
65252013-03-25 Uros Bizjak <ubizjak@gmail.com>
6526
6527 * config/i386/i386.md (*zero_extendsidi2): Merge with
6528 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6529 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6530 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6531 targets. Clarify comment.
6532
4a53743e
MJ
65332013-03-25 Martin Jambor <mjambor@suse.cz>
6534
6535 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6536 pass-through jump functions differently.
6537 (ipa_read_jump_function): Likewise. Also use setter functions to set
6538 up jump functions.
6539
162712de
MJ
65402013-03-25 Martin Jambor <mjambor@suse.cz>
6541
6542 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6543 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6544 process it.
6545 (ipa_get_indirect_edge_target): New function.
6546 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6547 ipa_get_indirect_edge_target. Update all callers.
6548 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6549 ipa_get_indirect_edge_target_1 instead of calling
6550 ipa_get_indirect_edge_target.
6551 (create_specialized_node): Pass aggvlas to
6552 ipcp_discover_new_direct_edges.
6553
a5a4c20a
KT
65542013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6555
6556 * config/arm/arm.md (f_sels, f_seld): New types.
6557 (*cmov<mode>): New pattern.
6558 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6559 predicate.
6560
f992b9fc
KT
65612013-03-25 Kai Tietz <ktietz@redhat.com>
6562
6563 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6564 POSIX-printf for mingw-hosted builds.
6565
c16fd676
RB
65662013-03-25 Richard Biener <rguenther@suse.de>
6567
6568 PR middle-end/56694
6569 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6570 must-not-throw stmt location.
6571
5ad29f12
KT
65722013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6573
6574 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6575 Emit load-acquire versions when acq is true.
6576 (arm_emit_store_exclusive): Add rel parameter.
6577 Emit store-release versions when rel is true.
6578 (arm_split_compare_and_swap): Use acquire-release instructions
6579 instead.
6580 of barriers when appropriate.
6581 (arm_split_atomic_op): Likewise.
6582 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6583 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6584 (VUNSPEC_SLX): Likewise.
6585 (VUNSPEC_LDA): Likewise.
6586 (VUNSPEC_STL): Likewise.
6587 * config/arm/sync.md (atomic_load<mode>): New pattern.
6588 (atomic_store<mode>): Likewise.
6589 (arm_load_acquire_exclusive<mode>): Likewise.
6590 (arm_load_acquire_exclusivesi): Likewise.
6591 (arm_load_acquire_exclusivedi): Likewise.
6592 (arm_store_release_exclusive<mode>): Likewise.
6593
03a7dddb
CM
65942013-03-25 Catherine Moore <clm@codesourcery.com>
6595
6596 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6597 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6598 * config/mip/predicates.md (lwsp_swsp_operand,
6599 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6600 sb16_operand, db4_operand, db7_operand, ib3_operand,
6601 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6602 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6603 andi16_operand): New predicates.
6604 * config/mips/mips.md (compression): New attribute.
6605 (enabled): New attribute.
6606 (length): Consider compression in computing length.
6607 (shift_compression): New code attribute.
6608 (*add<mode>3): New operands. Record compression.
6609 (sub<mode>3): Likewise.
6610 (one_cmpl<mode>2): Likewise.
6611 (*and<mode>3): Likewise.
6612 (*ior<mode>3): Likewise.
6613 (unnamed pattern for xor): Likewise.
6614 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6615 (*<optab><mode>3): Likewise.
6616 (*mov<mode>_internal: Likewise.
6617 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6618 (mips_unsigned_immediate_p): New.
6619 (umips_lwsp_swsp_address_p): New.
6620 (m16_based_address_p): New.
6621 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6622 (mips_unsigned_immediate_p): New prototype.
6623 (lwsp_swsp_address_p): New prototype.
6624 (m16_based_address_p): New prototype.
6625 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6626 (mips_signed_immediate_p): New function.
6627 (m16_based_address_p): New function.
6628 (lwsp_swsp_address_p): New function.
6629 (mips_print_operand_punctuation): Recognize short delay slot insns
6630 for microMIPS.add<mode>3"
6631
f35c297f 66322013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 6633
f35c297f
KT
6634 PR target/56720
6635 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6636 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6637
051b9446
RB
66382013-03-25 Richard Biener <rguenther@suse.de>
6639
6640 PR tree-optimization/56689
6641 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6642 any edge.
6643
374001cb
RB
66442013-03-25 Richard Biener <rguenther@suse.de>
6645
6646 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6647 of bitmap.
6648 (memory_references): Likewise.
6649 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6650 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6651 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6652 (gather_mem_refs_in_loops): Fold into ...
6653 (analyze_memory_references): ... this. Move initialization
6654 to tree_ssa_lim_initialize.
6655 (fill_always_executed_in): Rename to ...
6656 (fill_always_executed_in_1): ... this.
6657 (fill_always_executed_in): Move contains_call computation to
6658 this new function from ...
6659 (tree_ssa_lim_initialize): ... here.
6660 (tree_ssa_lim): Call fill_always_executed_in.
6661
57895947
EB
66622013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6663
6664 * postreload.c (reload_combine): Fix code detecting returns.
6665
1e1b18c1
EB
66662013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6667
6668 * function.c (emit_use_return_register_into_block): On cc0 targets,
6669 do not emit the sequence between cc0 setter and user.
6670
9216baf1
KT
66712013-03-25 Kai Tietz <ktietz@redhat.com>
6672
1e1b18c1
EB
6673 * config/i386/predicates.md (local_symbolic_operand): Interpret
6674 dll-imported symbols as none-local.
9216baf1 6675
76421b44
RB
66762013-03-25 Richard Biener <rguenther@suse.de>
6677
6678 * tree-ssa-loop-im.c (struct depend): Remove.
6679 (struct lim_aux_data): Make depends a vec of gimples.
6680 (free_lim_aux_data): Adjust.
6681 (add_dependency): Likewise.
6682 (set_level): Likewise.
6683
d154bfa2
RB
66842013-03-25 Richard Biener <rguenther@suse.de>
6685
6686 PR middle-end/56434
6687 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6688 the pointer returned by calls with ECF_MALLOC set.
6689
2cd9804e
UB
66902013-03-24 Uros Bizjak <ubizjak@gmail.com>
6691
acef5fe0
UB
6692 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6693
66942013-03-24 Uros Bizjak <ubizjak@gmail.com>
6695
6696 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
6697 using MMXMODE mode iterator.
6698 (*move<mode>_internal): Merge with *movv2sf_internal and
6699 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6700
225ccc68
SB
67012013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6702
85c0f02d
SB
6703 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6704 (record_last_mem_set_info): Likewise.
6705
225ccc68
SB
6706 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6707 of XNEWVEC followed by memset.
6708 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6709
b64925dc
SB
67102013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6711
6712 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6713 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6714 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6715 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6716 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6717 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6718 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6719 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6720 BARRIER_P instead of GET_CODE.
6721
b9aaf52e
EB
67222013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6723
6724 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6725 inaccuracy in the probing code.
6726
6727 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6728 (ctrapdi4): Likewise.
6729
66de4d7c
EB
67302013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6731
6732 * calls.c (expand_call): Add missing guard to code handling return
6733 of non-BLKmode structures in MSB.
6734 * function.c (expand_function_end): Likewise.
6735
4f25c8fb
EB
67362013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6737
6738 * combine.c (try_combine): Adjust comment. Do not add the set of
6739 insn #0 if the destination indirectly is set or dies in insn #2.
6740 Tidy up code to distribute a new note.
6741
23b7850d
UB
67422013-03-22 Uros Bizjak <ubizjak@gmail.com>
6743
6744 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6745 also for alternatives 16 and 17.
6746
bed852cf
UB
67472013-03-22 Uros Bizjak <ubizjak@gmail.com>
6748
6749 * config/i386/sse.md (*mov<mode>_internal): Merge with
6750 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6751 Emit insn template depending on type attribute. Use
6752 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6753 movd instead of movq mnemonic for interunit moves. Rewrite mode
6754 attribute calculation. Remove unit attribute calculation.
6755 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6756 Set prefix_data16 attribute for DImode ssemov types.
6757 Use Ym instead of y for SSE-MMX conversion alternatives.
6758 Reorder operand constraints.
6759
1e8a7937
SB
67602013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6761
6762 * df.h (df_insn_delete): Adjust prototype.
6763 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6764 and let it decide whether mark the basic block dirty.
6765 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6766 * df-scan.c (df_insn_info_delete): New helper function, split
6767 off from df_insn_delete.
6768 (df_scan_free_bb_info): Use it.
6769 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6770 Likewise.
6771 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6772 that the insn is actually an insn and it has a non-NULL basic block.
6773 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6774
e14d094c
RB
67752013-03-22 Richard Biener <rguenther@suse.de>
6776
6777 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6778 dep_ref members.
6779 (mem_ref_alloc): Do not allocate them.
6780 (refs_independent_p): Do not query or maintain a cache.
6781
e9cf7316
RB
67822013-03-22 Richard Biener <rguenther@suse.de>
6783
6784 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6785 (gather_mem_refs_in_loops): Do not compute it.
6786 (analyze_memory_references): Do not allocate it.
6787 (tree_ssa_lim_finalize): Do not free it.
6788 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6789
f046e81b
RB
67902013-03-22 Richard Biener <rguenther@suse.de>
6791
6792 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 6793
a05c0ddf
IB
67942013-03-22 Ian Bolton <ian.bolton@arm.com>
6795
6796 * config/aarch64/aarch64.c (aarch64_print_operand): New
6797 format specifier for printing a constant in hex.
6798 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6799 format specifier for printing second operand.
6800
c00217fc
RB
68012013-03-22 Richard Biener <rguenther@suse.de>
6802
6803 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6804 bitmaps.
6805 (gather_mem_refs_in_loops): Perform store accumulation here.
6806 (create_vop_ref_mapping_loop): Remove.
6807 (create_vop_ref_mapping): Likewise.
6808 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6809 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6810 (record_indep_loop): Remove.
6811 (record_dep_loop): New function.
6812 (ref_indep_loop_p_1): Adjust to only walk over references
6813 in the loop, not its subloops.
6814 (ref_indep_loop_p): Rename to ...
6815 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6816 maintaining a more fine-grained cache.
6817 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6818 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6819
15d19bf8
RB
68202013-03-22 Richard Biener <rguenther@suse.de>
6821
6822 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6823 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6824 aggregate mem_ref_loc.
6825 (free_mem_ref_locs): Inline into ...
6826 (memref_free): ... this and adjust.
6827 (mem_ref_alloc): Adjust.
6828 (mem_ref_locs_alloc): Remove.
6829 (record_mem_ref_loc): Adjust.
6830 (get_all_locs_in_loop): Rewrite into ...
6831 (for_all_locs_in_loop): ... this iterator.
6832 (rewrite_mem_ref_loc): New functor.
6833 (rewrite_mem_refs): Use for_all_locs_in_loop.
6834 (sm_set_flag_if_changed): New functor.
6835 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6836 (ref_always_accessed): New functor.
6837 (ref_always_accessed_p): Use for_all_locs_in_loop.
6838
6f37411d
MG
68392013-03-21 Marc Glisse <marc.glisse@inria.fr>
6840
6841 * tree-pass.h (PROP_gimple_lvec): New.
6842 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6843 (init_optimization_passes): Move pass_lower_vector.
6844 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6845 PROP_gimple_lvec.
6846 (pass_lower_vector): Provide PROP_gimple_lvec.
6847 (pass_lower_vector_ssa): Likewise.
6848 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6849
511ef689
MW
68502013-03-21 Mark Wielaard <mjw@redhat.com>
6851
6852 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6853
cc1df30b
UB
68542013-03-21 Uros Bizjak <ubizjak@gmail.com>
6855
6856 * config/i386/i386.md (*movdi_internal): Disparage slightly
6857 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6858 conversion alternatives.
6859
c845cfe1
JJ
68602013-03-21 Jakub Jelinek <jakub@redhat.com>
6861
37e99116
JJ
6862 PR middle-end/48087
6863 * diagnostic.def (DK_WERROR): New kind.
6864 * diagnostic.h (werrorcount): Define.
6865 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6866 promoted to DK_ERROR, increment DK_WERROR counter instead of
6867 DK_ERROR counter.
6868 * toplev.c (toplev_main): Call print_ignored_options even if
6869 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6870 even if just werrorcount is non-zero.
6871
c845cfe1
JJ
6872 PR debug/55608
6873 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6874 on failure.
6875 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6876 (string_cst_pool_decl): New function.
6877 (optimize_one_addr_into_implicit_ptr): New function.
6878 (resolve_addr_in_expr): Optimize DWARF location expression
6879 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6880 which doesn't live in memory, but has DW_AT_location or
6881 DW_AT_const_value, or refers to a string literal, into
6882 DW_OP_GNU_implicit_pointer.
6883 (optimize_location_into_implicit_ptr): New function.
6884 (resolve_addr): If removing DW_AT_location of a variable because
6885 it was DW_OP_addr of address of the variable, but the variable doesn't
6886 live in memory, try to emit const value attribute for the initializer.
6887
08e0cda6
MG
68882013-03-21 Marc Glisse <marc.glisse@inria.fr>
6889
6890 * tree.h (VECTOR_TYPE_P): New macro.
6891 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6892 TYPE_MODE): Use it.
6893 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6894 VEC_COND_EXPR cannot be lvalues.
6895 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6896
d08633b4
MG
68972013-03-21 Marc Glisse <marc.glisse@inria.fr>
6898
6899 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6900 Restrict the transformation to equal modes.
6901
e6647190
RB
69022013-03-21 Richard Biener <rguenther@suse.de>
6903
6904 PR tree-optimization/39326
6905 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6906 (MEM_ANALYZABLE): Adjust.
6907 (record_mem_ref_loc): Move bitmap ops ...
6908 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6909 unanalyzable refs, do not record locations for it.
6910 (analyze_memory_references): Allocate ref zero as shared
6911 unanalyzable ref.
6912 (refs_independent_p): Do not test for unanalyzed mems here.
6913 (ref_indep_loop_p_1): Special-case disambiguation against
6914 the unanalyzed ref.
cc1df30b 6915 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6916
65074f54
CL
69172013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6918
6919 * config/arm/arm-protos.h (tune_params): Add
6920 prefer_neon_for_64bits field.
6921 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6922 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6923 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6924 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6925 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6926 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6927 (arm_option_override): Handle -mneon-for-64bits new option.
6928 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6929 (prefer_neon_for_64bits): Declare new variable.
6930 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6931 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6932 (arch_enabled): Handle new arch types. Remove support for onlya8
6933 and nota8.
6934 (one_cmpldi2): Use new arch names.
bc5faa5b 6935 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6936 * config/arm/arm.opt (mneon-for-64bits): Add option.
6937 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6938 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6939 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6940 of onlya8.
6941 * doc/invoke.texi (-mneon-for-64bits): Document.
6942
5a2d2a79
RB
69432013-03-21 Richard Biener <rguenther@suse.de>
6944
6945 PR tree-optimization/39326
6946 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6947 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 6948 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 6949
5abe1e05
RB
69502013-03-21 Richard Biener <rguenther@suse.de>
6951
6952 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6953 (vect_insert_into_interleaving_chain): Likewise.
6954 (vect_drs_dependent_in_basic_block): Inline ...
6955 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6956 split out from ...
6957 (vect_analyze_data_ref_dependence): ... here. Simplify.
6958 (vect_check_interleaving): Simplify.
6959 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6960 (vect_slp_analyze_data_ref_dependences): ... this new function.
6961 (dr_group_sort_cmp): New function.
6962 (vect_analyze_data_ref_accesses): Compute data-reference groups
6963 here instead of in vect_analyze_data_ref_dependence. Use
6964 a more efficient algorithm.
6965 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6966 vect_slp_analyze_data_ref_dependences. Call
6967 vect_analyze_data_ref_accesses earlier.
6968 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6969 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6970 (vect_slp_analyze_data_ref_dependences): New prototype.
6971
cad1735b
RB
69722013-03-21 Richard Biener <rguenther@suse.de>
6973
6974 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6975 ref is stored in the loop.
6976 (find_refs_for_sm): Walk only over all stores.
6977 (store_motion_loop): Allocate from lim_bitmap_obstack.
6978 (store_motion): Likewise.
6979
141310ef
RB
69802013-03-21 Richard Biener <rguenther@suse.de>
6981
6982 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6983 Update virtual SSA form.
6984
5022315a
RO
69852013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6986
6987 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6988 * configure: Regenerate.
6989 * config.in: Regenerate.
6990 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6991 if !HAVE_LD_EH_FRAME_CIEV3.
6992
50d4421c
RB
69932013-03-21 Richard Biener <rguenther@suse.de>
6994
6995 * tree-cfg.c (verify_expr_no_block): New function.
6996 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6997 nor DECL_VALUE_EXPR have locations with associated blocks.
6998 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6999 (clear_unused_block_pointer): Remove code dealing with
7000 blocks in DECL_DEBUG_EXPR locations.
7001
839b422f
RB
70022013-03-21 Richard Biener <rguenther@suse.de>
7003
7004 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7005 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7006 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7007 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7008 instead of DECL_DEBUG_EXPR_IS_FROM.
7009 * gimplify.c (gimplify_modify_expr): Likewise.
7010 * tree-cfg.c (verify_expr_location_1): Likewise.
7011 * tree-complex.c (create_one_component_var): Likewise.
7012 * tree-sra.c (create_access_replacement): Likewise.
7013 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7014 (clear_unused_block_pointer): Likewise.
7015 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7016 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7017 * var-tracking.c (var_debug_decl): Likewise.
7018 (track_expr_p): Likewise.
7019 * tree-inline.c (add_local_variables): Likewise. Set
7020 DECL_HAS_DEBUG_EXPR_P after copying it.
7021 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7022 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7023
fe04878d
UB
70242013-03-21 Uros Bizjak <ubizjak@gmail.com>
7025
7026 PR bootstrap/56656
7027 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7028 * configure: Regenerate.
7029 * config.in: Regenerate.
7030 * config/i386/i386.md (*movdf_internal): Use
7031 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7032 movd instead of movq mnemonic for interunit moves.
7033 (*movdi_internal): Ditto.
7034
bd059b26 70352013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
7036
7037 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7038 (abd<mode>_3): New pattern.
7039 (aba<mode>_3): New pattern.
7040 (fabd<mode>_3): New pattern.
7041
bd059b26 70422013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
7043
7044 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7045 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7046 occurrence of REGISTER_PREFIX as its empty string.
7047
4f1f78b9
JL
70482013-03-20 Jeff Law <law@redhat.com>
7049
7050 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7051 addititional equivalences for equality comparisons between an SSA_NAME
7052 and a constant where the SSA_NAME was set from a widening conversion.
7053
327a1118
WL
70542013-03-20 Walter Lee <walt@tilera.com>
7055
7056 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7057
813e0036
UB
70582013-03-20 Uros Bizjak <ubizjak@gmail.com>
7059
7060 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7061 depending on type attribute.
7062 (*movti_internal): Ditto.
7063 (*movtf_internal): Ditto.
7064 (*movxf_internal): Ditto.
7065 (*movdf_internal): Ditto.
7066 (*movsf_internal): Ditto.
7067
7cf34aae
UB
70682013-03-20 Uros Bizjak <ubizjak@gmail.com>
7069
7070 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7071 maybe_vex for sselog1 and ssemov types.
7072 (*movdi_internal): Reorder operand constraints.
7073 (*movsi_internal): Ditto. Set prefix attribute to
7074 maybe_vex for sselog1 and ssemov types.
7075 (*movtf_internal): Set prefix attribute to maybe_vex
7076 for sselog1 and ssemov types.
7077 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7078 DImode ssemov types. Reorder operand constraints.
7079 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7080 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7081 attribute for SImode ssemov types. Reorder operand constraints.
7082
19321415
MJ
70832013-03-20 Martin Jambor <mjambor@suse.cz>
7084
7085 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7086 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7087
c6d5ff83
MM
70882013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7089
7090 * config/rs6000/predicates.md (indexed_address, update_address_mem
7091 update_indexed_address_mem): New predicates.
7092 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7093 attribute for load/store instructions.
7094 * config/rs6000/dfp.md (movsd_store): Likewise.
7095 (movsd_load): Likewise.
7096 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7097 (unnamed HI->DI extend define_insn): Likewise.
7098 (unnamed SI->DI extend define_insn): Likewise.
7099 (unnamed QI->SI extend define_insn): Likewise.
7100 (unnamed QI->HI extend define_insn): Likewise.
7101 (unnamed HI->SI extend define_insn): Likewise.
7102 (unnamed HI->SI extend define_insn): Likewise.
7103 (extendsfdf2_fpr): Likewise.
7104 (movsi_internal1): Likewise.
7105 (movsi_internal1_single): Likewise.
7106 (movhi_internal): Likewise.
7107 (movqi_internal): Likewise.
7108 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7109 attribute for load/store instructions.
7110 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7111 instructions.
7112 (mov<mode>_softfloat): Likewise.
7113 (mov<mode>_hardfloat32): Likewise.
7114 (mov<mode>_hardfloat64): Likewise.
7115 (mov<mode>_softfloat64): Likewise.
7116 (movdi_internal32): Likewise.
7117 (movdi_internal64): Likewise.
7118 (probe_stack_<mode>): Likewise.
7119
71202013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7121
7122 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7123 floating point, and decimal floating point to reload iterator.
7124
7125 * config/rs6000/constraints.md (wl constraint): New constraints to
7126 return FLOAT_REGS if certain options are used to reduce the number
7127 of separate patterns that exist in the file.
7128 (wx constraint): Likewise.
7129 (wz constraint): Likewise.
7130
7131 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7132 -mdebug=reg, print wg, wl, wx, and wz constraints.
7133 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7134 Initialize the reload functions for 64-bit binary/decimal floating
7135 point types.
7136 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7137 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7138 create the buffer on the stack to overcome not having a 32-bit
7139 load and store.
7140 (rs6000_emit_move): Likewise.
7141 (rs6000_secondary_memory_needed_rtx): Likewise.
7142 (rs6000_alloc_sdmode_stack_slot): Likewise.
7143 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7144 via xxlxor, just like DFmode 0.0.
7145
7146 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7147 define as 1 if we are running on a power7 or newer.
7148 (enum r6000_reg_class_enum): Add new constraints.
7149
7150 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7151 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7152 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 7153 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
7154 (movsd splitter): Likewise.
7155 (movsd_hardfloat): Likewise.
7156 (movsd_softfloat): Likewise.
7157
7158 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7159 binary and decimal floating point moves.
7160 (fmove_ok): New attributes to combine binary and decimal floating
7161 point moves, and to combine power6x (mfpgpr) moves along normal
7162 floating moves.
7163 (real_value_to_target): Likewise.
7164 (f32_lr): Likewise.
7165 (f32_lm): Likewise.
7166 (f32_li): Likewise.
7167 (f32_sr): Likewise.
7168 (f32_sm): Likewise.
7169 (f32_si): Likewise.
7170 (movsf): Combine binary and decimal floating point moves. Combine
7171 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 7172 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
7173 (mov<mode> for SFmode/SDmode); Likewise.
7174 (SFmode/SDmode splitters): Likewise.
7175 (movsf_hardfloat): Likewise.
7176 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7177 (movsf_softfloat): Likewise.
7178 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7179
7180 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7181 wx and wz constraints.
7182
7183 * config/rs6000/constraints.md (wg constraint): New constraint to
7184 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7185
7186 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7187 constraint.
7188
7189 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7190 -mdebug=reg, print wg, wl, wx, and wz constraints.
7191 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7192 Initialize the reload functions for 64-bit binary/decimal floating
7193 point types.
7194 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7195 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7196 create the buffer on the stack to overcome not having a 32-bit
7197 load and store.
7198 (rs6000_emit_move): Likewise.
7199 (rs6000_secondary_memory_needed_rtx): Likewise.
7200 (rs6000_alloc_sdmode_stack_slot): Likewise.
7201 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7202 via xxlxor, just like DFmode 0.0.
7203
c6d5ff83
MM
7204 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7205 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7206 with other moves by using conditional constraits (wg). Use LFIWZX
7207 and STFIWX for loading SDmode on power7.
7208 (movdd splitters): Likewise.
7209 (movdd_hardfloat32): Likewise.
7210 (movdd_softfloat32): Likewise.
7211 (movdd_hardfloat64_mfpgpr): Likewise.
7212 (movdd_hardfloat64): Likewise.
7213 (movdd_softfloat64): Likewise.
7214
7215 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7216 64-bit binary and decimal floating point moves.
7217 (FMOVE64X): Likewise.
7218 (movdf): Combine 64-bit binary and decimal floating point moves.
7219 Combine power6x (mfpgpr) moves with other moves by using
7220 conditional constraits (wg).
7221 (mov<mode> for DFmode/DDmode): Likewise.
7222 (DFmode/DDmode splitters): Likewise.
7223 (movdf_hardfloat32): Likewise.
7224 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7225 (movdf_softfloat32): Likewise.
7226 (movdf_hardfloat64_mfpgpr): Likewise.
7227 (movdf_hardfloat64): Likewise.
7228 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7229 (movdf_softfloat64): Likewise.
7230 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7231 (reload_<mode>_load): Move to later in the file so they aren't in
7232 the middle of the floating point move insns.
7233 (reload_<mode>_store): Likewise.
7234
7235 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7236 constraint.
7237
7238 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7239 constraint if -mdebug=reg.
bd059b26
UB
7240 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7241 Enable using dd reload support if needed.
c6d5ff83
MM
7242
7243 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7244 binary and decimal floating point moves in rs6000.md.
7245 (movtd_internal): Likewise.
7246
7247 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7248 decimal floating point moves.
7249 (movtf): Likewise.
7250 (movtf_internal): Likewise.
7251 (mov<mode>_internal, TDmode/TFmode): Likewise.
7252 (movtf_softfloat): Likewise.
7253 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7254
7255 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7256 movdi_internal64, using wg constraint for move direct operations.
7257 (movdi_internal64): Likewise.
7258
7259 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7260 MODES_TIEABLE_P for selected modes. Print the numerical value of
7261 the various virtual registers. Use GPR/FPR first/last values,
7262 instead of hard coding the register numbers. Print which modes
7263 have reload functions registered.
bd059b26
UB
7264 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7265 settings before/after setting cpu, target and subtarget settings.
7266 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7267 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
7268 (rs6000_secondary_reload_fail): Likewise.
7269 (rs6000_secondary_reload_inner): Likewise.
7270
7271 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7272 macros for first/last GPR and FPR registers.
7273 (LAST_GPR_REGNO): Likewise.
7274 (FIRST_FPR_REGNO): Likewise.
7275 (LAST_FPR_REGNO): Likewise.
7276
7277 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7278 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7279 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7280 (vcond<mode><mode>): Likewise.
7281 (vcondu<mode><mode>): Likewise.
7282 (vector_gtu<mode>): Likewise.
7283 (vector_gte<mode>): Likewise.
7284 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 7285 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
7286 (ior<mode>3): Likewise.
7287 (and<mode>3): Likewise.
7288 (one_cmpl<mode>2): Likewise.
7289 (nor<mode>3): Likewise.
7290 (andc<mode>3): Likewise.
7291
7292 * config/rs6000/constraints.md (wt constraint): New constraint
7293 that returns VSX_REGS if TImode is allowed in VSX registers.
7294
7295 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7296 constant under VSX.
7297
7298 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7299 similar to TImode, but it is restricted to being in the GPRs.
7300
7301 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7302 TImode to occupy a single VSX register.
7303
7304 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7305 -mvsx-timode for power7/power8.
7306 (power7 cpu): Likewise.
7307 (power8 cpu): Likewise.
7308
7309 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7310 sure that TFmode/TDmode take up two registers if they are ever
7311 allowed in the upper VSX registers.
7312 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7313 registers.
7314 (rs6000_init_hard_regno_mode_ok): Likewise.
7315 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7316 constraint. Print if LRA is turned on.
7317 (rs6000_option_override_internal): Give an error if -mvsx-timode
7318 and VSX is not enabled.
7319 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7320 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7321 to reg+offset addressing. Use PTImode when checking offset
7322 addresses for validity.
7323 (reg_offset_addressing_ok_p): Likewise.
7324 (rs6000_legitimate_offset_address_p): Likewise.
7325 (rs6000_legitimize_address): Likewise.
7326 (rs6000_legitimize_reload_address): Likewise.
7327 (rs6000_legitimate_address_p): Likewise.
7328 (rs6000_eliminate_indexed_memrefs): Likewise.
7329 (rs6000_emit_move): Likewise.
7330 (rs6000_secondary_reload): Likewise.
7331 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7332 reloads to fpr registers to continue to use reg+offset addressing,
7333 but 64-bit reloads to altivec registers need reg+reg addressing.
7334 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7335 it. Treat LO_SUM like a PLUS operation.
7336 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 7337 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
7338 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7339 registers to share a register with a smaller sized type, since VSX
7340 puts scalars in the upper 64-bits.
7341 (print_operand): Add support for PTImode.
7342 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7343 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7344 registers, but don't have arithmetic support.
7345 (rs6000_memory_move_cost): Add test for VSX.
7346 (rs6000_opt_masks): Add -mvsx-timode.
7347
7348 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7349 for TImode.
7350 (VSs): Likewise.
7351 (VSr): Use wt constraint for TImode.
7352 (VSv): Drop TImode support.
7353 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7354 (vsx_movti_64bit): Likewise.
7355 (vsx_movti_32bit): Likewise.
7356 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7357 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7358 one '?' on the appropriate output constraint. Do not allow TImode
7359 logical operations on 32-bit systems.
7360 (vsx_ior<mode>3): Likewise.
7361 (vsx_xor<mode>3): Likewise.
7362 (vsx_one_cmpl<mode>2): Likewise.
7363 (vsx_nor<mode>3): Likewise.
7364 (vsx_andc<mode>3): Likewise.
7365 (vsx_concat_<mode>): Likewise.
7366 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7367
7368 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7369 OPTION_MASK_VSX_TIMODE.
7370 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7371 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7372
7373 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7374 (TI2 iterator): New iterator for TImode, PTImode.
7375 (wd mode attribute): Add values for vector types.
bd059b26
UB
7376 (movti_string): Replace TI move operations with operations for TImode
7377 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
7378 (mov<mode>_string, TImode/PTImode): Likewise.
7379 (movti_ppc64): Likewise.
7380 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7381 (TI mode splitters): Likewise.
7382
7383 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7384 constraint.
7385
1fc5eced
MG
73862013-03-20 Marc Glisse <marc.glisse@inria.fr>
7387
7388 PR tree-optimization/56355
7389 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7390 Also handle integers with undefined overflow.
7391
22c4c869
CM
73922013-03-20 Catherine Moore <clm@codesourcery.com>
7393 Maciej W. Rozycki <macro@codesourcery.com>
7394 Tom de Vries <tom@codesourcery.com>
7395 Nathan Sidwell <nathan@codesourcery.com>
7396 Iain Sandoe <iain@codesourcery.com>
7397 Nathan Froyd <froydnj@codesourcery.com>
7398 Chao-ying Fu <fu@mips.com>
7399
7400 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 7401 Document new function attributes.
22c4c869
CM
7402 * doc/invoke.texi (minterlink-compressed, mmicromips,
7403 m14k, m14ke, m14kec): Document new options.
7404 (minterlink-mips16): Update documentation.
7405 * doc/md.texi (ZC, ZD): Document new constraints.
7406 * configure.ac (gcc_cv_as_micromips): Check if linker
7407 supports the .set micromips directive.
7408 * configure: Regenerate.
7409 * config.in: Regenerate.
7410 * config/mips/mips-tables.opt: Regenerate.
7411 * config/mips/micromips.md: New file.
7412 * constraints.md (ZC, ZD): New constraints.
7413 * config/mips/predicates.md (movep_src_register): New predicate.
7414 (movep_src_operand): New predicate.
7415 (non_volatile_mem_operand): New predicate.
7416 * config/mips/mips.md (multimem): New type.
7417 (length): Differentiate between 17-bit and 18-bit branch offsets.
7418 (MOVEP1, MOVEP2): New mode iterator.
33159866 7419 (mov_<load>l): Use ZC constraint.
22c4c869
CM
7420 (mov_<load>r): Likewise.
7421 (mov_<store>l): Likewise.
7422 (mov_<store>r): Likewise.
7423 (*branch_equality<mode>_inverted): Add microMIPS support.
7424 (*branch_equality<mode>): Likewise.
7425 (*jump_absolute): Likewise.
7426 (indirect_jump_<mode>): Likewise.
7427 (tablejump_<mode>): Likewise.
7428 (<optab>_internal): Likewise.
7429 (sibcall_internal): Likewise.
7430 (sibcall_value_internal): Likewise.
7431 (prefetch): Use constraint ZD.
7432 * config/mips/mips.opt (minterlink-compressed): New option.
7433 (minterlink-mips16): Now an alias for minterlink-compressed.
7434 (mmicromips): New option.
7435 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7436 (compare_and_swap_12): Likewise.
7437 (sync_add<mode>): Likewise.
7438 (sync_<optab>_12): Likewise.
7439 (sync_old_<optab>_12): Likewise.
7440 (sync_new_<optab>_12): Likewise.
7441 (sync_nand_12): Likewise.
7442 (sync_old_nand_12): Likewise.
7443 (sync_new_nand_12): Likewise.
7444 (sync_sub<mode>): Likewise.
7445 (sync_old_add<mode>): Likewise.
7446 (sync_old_sub<mode>): Likewise.
7447 (sync_new_add<mode>): Likewise.
7448 (sync_new_sub<mode>): Likewise.
7449 (sync_<optab><mode>): Likewise.
7450 (sync_old_<optab><mode>): Likewise.
7451 (sync_new_<optab><mode>): Likewise.
7452 (sync_nand<mode>): Likewise.
7453 (sync_old_nand<mode>): Likewise.
7454 (sync_new_nand<mode>): Likewise.
7455 (sync_lock_test_and_set<mode>): Likewise.
7456 (test_and_set_12): Likewise.
7457 (atomic_compare_and_swap<mode>): Likewise.
7458 (atomic_exchange<mode>_llsc): Likewise.
7459 (atomic_fetch_add<mode>_llsc): Likewise.
7460 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7461 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7462 (umips_save_restore_pattern_p): Likewise.
7463 (umips_load_store_pair_p): Likewise.
7464 (umips_output_load_store_pair): Likewise.
7465 (umips_movep_target_p): Likewise.
7466 (umips_12bit_offset_address_p): Likewise.
7467 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7468 (mips_base_mips16): Rename this...
7469 (mips_base_compression_flags): ...to this. Update all uses.
7470 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7471 (mips_mips16_decl_p): Delete.
7472 (mips_nomips16_decl_p): Delete.
33159866 7473 (mips_get_compress_on_flags): New function.
22c4c869
CM
7474 (mips_get_compress_off_flags): New function.
7475 (mips_get_compress_mode): New function.
7476 (mips_get_compress_on_name): New function.
7477 (mips_get_compress_off_name): New function.
7478 (mips_insert_attributes): Support multiple compression types.
7479 (mips_merge_decl_attributes): Likewise.
7480 (umips_12bit_offset_address_p): New function.
7481 (mips_start_function_definition): Emit .set micromips directive.
7482 (mips_call_may_need_jalx_p): New function.
7483 (mips_function_ok_for_sibcall): Add microMIPS support.
7484 (mips_print_operand_punctuation): Support short delay slots and
7485 compact jumps.
7486 (umips_swm_mask, umips_swm_encoding): New.
7487 (umips_build_save_restore): New function.
7488 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7489 (was_mips16_p): Remove.
7490 (old_compression_mode): New.
7491 (mips_set_compression_mode): New function.
7492 (mips_set_current_function): Add microMIPS support.
7493 (mips_option_override): Likewise.
7494 (umips_save_restore_pattern_p): New function.
7495 (umips_output_save_restore): New function.
7496 (umips_load_store_pair_p_1): New function.
7497 (umips_load_store_pair_p): New function.
7498 (umips_output_load_store_pair_1): New function.
7499 (umips_output_load_store_pair): New function.
7500 (umips_movep_target_p) New function.
7501 (mips_prepare_pch_save): Add microMIPS support.
7502 * config/mips/mips.h (TARGET_COMPRESSION): New.
7503 (TARGET_CPU_CPP_BUILTINS): Update macro
7504 to use new compression flags and to support microMIPS.
7505 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7506 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7507 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7508 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7509 (ASM_SPEC): Support mmicromips and mno-micromips.
7510 (M16STORE_REG_P): New macro.
7511 (MIPS_CALL): Support TARGET_MICROMIPS.
7512 (MICROMIPS_J): New macro.
7513 (mips_base_mips16): Rename this...
7514 (mips_base_compression_flags): ...to this.
7515 (UMIPS_12BIT_OFFSET_P): New macro.
7516 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7517 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
75182013-03-20 Richard Biener <rguenther@suse.de>
7519
7520 PR tree-optimization/56661
7521 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7522 the result does not have to be distinct.
7523
54714c68
RB
75242013-03-20 Richard Biener <rguenther@suse.de>
7525
7526 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7527 remap_gimple_op_r.
7528
cca1130d
BS
75292013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7530 Steven Bosscher <steven@gcc.gnu.org>
7531
7532 PR rtl-optimization/56605
7533 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7534
2a930377
UB
75352013-03-20 Uros Bizjak <ubizjak@gmail.com>
7536
7537 PR bootstrap/56656
7538 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7539 that require movd instead of movq.
7540
d6d305fe
RB
75412013-03-20 Richard Biener <rguenther@suse.de>
7542
7543 * tree-ssa-structalias.c (struct variable_info): Add pointer
7544 to the first field of an aggregate with sub-vars. Make
7545 this and the pointer to the next subfield its ID.
7546 (vi_next): New function.
7547 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7548 storedanything_id, integer_id): Increment by one.
7549 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7550 get_call_clobber_vi): Adjust.
7551 (solution_set_expand): Simplify and speedup.
7552 (solution_set_add): Inline into ...
7553 (set_union_with_increment): ... this. Adjust accordingly.
7554 (do_sd_constraint): Likewise.
7555 (do_ds_constraint): Likewise.
7556 (do_complex_constraint): Simplify.
7557 (build_pred_graph): Adjust.
7558 (solve_graph): Likewise. Simplify and speedup.
7559 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7560 get_constraint_for_component_ref, get_constraint_for_1,
7561 first_vi_for_offset, first_or_preceding_vi_for_offset,
7562 create_function_info_for, create_variable_info_for_1,
7563 create_variable_info_for, intra_create_variable_infos): Adjust.
7564 (init_base_vars): Push NULL for ID zero.
7565 (compute_points_to_sets): Adjust.
7566
a271b42d
RB
75672013-03-20 Richard Biener <rguenther@suse.de>
7568
7569 * cfgloop.c (verify_loop_structure): Streamline and avoid
7570 ICEing on corrupt loop tree.
7571 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7572 loop tree.
7573
ebd65954
RB
75742013-03-20 Richard Biener <rguenther@suse.de>
7575
7576 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7577 check whether an SSA update is needed.
7578
4547b7ee
RS
75792013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7580
7581 * config/mips/constraints.md (T): Rename to...
7582 (Yf): ...this.
7583 (U): Rename to...
7584 (Yd): ...this.
7585 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7586 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7587
0b8cdc58
IB
75882013-03-19 Ian Bolton <ian.bolton@arm.com>
7589
7590 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7591 (*subsi3_carryin_uxtw): Likewise.
7592
5977a10d
IB
75932013-03-19 Ian Bolton <ian.bolton@arm.com>
7594
7595 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7596 (*rorsi3_insn_uxtw): Likewise.
7597
bd83ff2c
IB
75982013-03-19 Ian Bolton <ian.bolton@arm.com>
7599
7600 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7601 (*extrsi5_insn_uxtw): Likewise.
7602
ba65123c
RB
76032013-03-19 Richard Biener <rguenther@suse.de>
7604
7605 PR tree-optimization/56273
7606 * passes.c (init_optimization_passes): Move second VRP after DOM.
7607
2eac0476
UB
76082013-03-19 Uros Bizjak <ubizjak@gmail.com>
7609
7610 * config/i386/i386.md (*movti_internal): Merge from
7611 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7612 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7613 nox64 isa attributes.
7614
6e55eda7
RB
76152013-03-18 Richard Biener <rguenther@suse.de>
7616
7617 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7618 (unite): Likewise.
7619 (merge_node_constraints): Likewise.
7620 (build_succ_graph): Likewise.
7621 (valid_graph_edge): Inline into single caller.
7622 (unify_nodes): Likewise. Use bitmap_set_bit return value
7623 and cache varinfo.
7624 (scc_visit): Fix formatting and variable use.
7625 (do_sd_constraint): Use gcc_checking_assert.
7626 (do_ds_constraint): Likewise.
7627 (do_complex_constraint): Likewise.
7628 (condense_visit): Likewise. Cleanup.
7629 (dump_pred_graph): New function.
7630 (perform_var_substitution): Dump the pred-graph before
7631 variable substitution.
7632 (find_equivalent_node): Use gcc_checking_assert.
7633 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7634
4bdd44c4
RB
76352013-03-18 Richard Biener <rguenther@suse.de>
7636
7637 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7638 Remove cond_expr_stmt_list argument and do not gimplify the
7639 built expression.
7640 (vect_loop_versioning): Adjust.
7641 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7642 Cleanup to use less temporaries.
7643 (vect_create_data_ref_ptr): Cleanup.
7644
38c56a5b
JJ
76452013-03-18 Jakub Jelinek <jakub@redhat.com>
7646
7647 PR tree-optimization/56635
7648 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7649 require types_compatible_p types.
7650
20b2e6a0
NC
76512013-03-18 Nick Clifton <nickc@redhat.com>
7652
a6178a25
NC
7653 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7654 spurious backslash.
7655
20b2e6a0
NC
7656 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7657 Add missing line to comment describing function.
7658
92608d0e
RB
76592013-03-18 Richard Biener <rguenther@suse.de>
7660
7661 PR tree-optimization/56210
7662 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7663 Handle string / character search functions.
7664 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7665
31348d52
RB
76662013-03-18 Richard Biener <rguenther@suse.de>
7667
7668 PR middle-end/56483
7669 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7670 and implement properly.
7671 * gimple.h (gimple_cond_single_var_p): Remove.
7672
fcac74a1
RB
76732013-03-18 Richard Biener <rguenther@suse.de>
7674
7675 * tree-data-ref.h (find_data_references_in_loop): Declare.
7676 * tree-data-ref.c (get_references_in_stmt): Use a stack
7677 vector pre-allocated in the callers.
7678 (find_data_references_in_stmt): Adjust.
7679 (graphite_find_data_references_in_stmt): Likewise.
7680 (create_rdg_vertices): Likewise.
7681 (find_data_references_in_loop): Export.
7682 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7683 Compute dependences here...
7684 (vect_analyze_data_refs): ...not here. When we encounter
7685 a non-vectorizable data reference in basic-block vectorization
7686 truncate the data reference vector. Do not bother to
7687 fixup data-dependence information for gather loads.
7688 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7689 of data references, as reported.
7690
0d5a1b56
RB
76912013-03-18 Richard Biener <rguenther@suse.de>
7692
7693 PR tree-optimization/3713
7694 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7695 has_constants and expr.
7696 (stmt_has_constants): Properly valueize SSA names when deciding
7697 whether the stmt has constants.
7698
789c34e3
RB
76992013-03-18 Richard Biener <rguenther@suse.de>
7700
7701 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7702 whole function when there is nothing to do.
7703 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7704 * tree-vectorizer.c (vectorize_loops): Update virtual and
7705 loop-closed SSA once.
7706 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7707
076b4605
RB
77082013-03-18 Richard Biener <rguenther@suse.de>
7709
7710 PR middle-end/56113
7711 * domwalk.c (bb_postorder): New global static.
7712 (cmp_bb_postorder): New function.
7713 (walk_dominator_tree): Replace scheme imposing an order for
7714 visiting dominator sons by one sorting them at the time they
7715 are pushed on the stack.
7716
bdb01696
RB
77172013-03-18 Richard Biener <rguenther@suse.de>
7718
7719 PR tree-optimization/39326
7720 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7721 (struct mem_ref): Replace mem member with ao_ref typed member.
7722 (MEM_ANALYZABLE): Adjust.
7723 (memref_eq): Likewise.
7724 (mem_ref_alloc): Likewise.
7725 (gather_mem_refs_stmt): Likewise.
7726 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7727 (execute_sm_if_changed_flag_set): Adjust.
7728 (execute_sm): Likewise.
7729 (ref_always_accessed_p): Likewise.
7730 (refs_independent_p): Likewise.
7731 (can_sm_ref_p): Likewise.
7732
12d2dc5e
JJ
77332013-03-18 Jakub Jelinek <jakub@redhat.com>
7734
7735 PR c/56566
7736 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7737 return 1 even for !unsignedp.
7738
286fb677
UB
77392013-03-17 Uros Bizjak <ubizjak@gmail.com>
7740
7741 * config/i386/i386.md (isa): Add x64 and nox64.
7742 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7743 (*pushtf): Enable *roF alternative for x64 isa only.
7744 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7745 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7746 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7747 (*movtf_internal): Merge from *movtf_internal_rex64 and
7748 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7749 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7750 nox64 isa attributes.
7751 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7752 nox64 isa attributes.
7753 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7754
88b97037
UB
77552013-03-17 Uros Bizjak <ubizjak@gmail.com>
7756
7757 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7758
9f4f1735
JJ
77592013-03-17 Jakub Jelinek <jakub@redhat.com>
7760
7761 PR target/56640
7762 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7763 class names. Remove trailing comma after "ALL_REGS".
7764
48f4a6fa
JH
77652013-03-16 Jan Hubicka <jh@suse.cz>
7766
7767 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7768 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7769 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7770 of cgraph_get_create_node.
7771 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7772
98e81123
JM
77732013-03-16 Jason Merrill <jason@redhat.com>
7774
7775 PR debug/49090
7776 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7777 with DW_AT_default_value.
7778
8a298c04
JJ
77792013-03-16 Jakub Jelinek <jakub@redhat.com>
7780
7781 * BASE-VER: Set to 4.9.0.
7782
4323afa0
AK
77832013-03-14 Andi Kleen <ak@linux.intel.com>
7784
7785 PR target/56619
7786 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7787 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7788 Document _x* TSX intrinsics.
7789
b3c0d469
JJ
77902013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7791 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
7792
7793 * configure.ac: Add MicroBlaze TLS support detection.
7794 * configure: Regenerate.
88b97037
UB
7795 * config/microblaze/microblaze-protos.h
7796 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7797 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7798 * config/microblaze/microblaze.c (microblaze_address_type): Add
7799 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
7800 (microblaze_address_info): Add tls_reloc.
7801 (TARGET_HAVE_TLS): Define.
7802 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7803 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
7804 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7805 load_tls_operand, microblaze_call_tls_get_addr,
7806 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7807 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7808 (get_base_reg): Use microblaze_tls_symbol_p.
7809 (microblaze_classify_address): Handle TLS.
88b97037
UB
7810 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7811 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7812 (microblaze_legitimize_address): Handle TLS.
7813 (microblaze_address_insns): Handle ADDRESS_TLS.
7814 (pic_address_needs_scratch): Handle TLS.
7815 (print_operand_address): Handle TLS.
7816 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7817 (microblaze_expand_move): Handle TLS.
88b97037
UB
7818 (microblaze_legitimate_constant_p): Check
7819 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7820 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7821 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7822 (PIC_OFFSET_TABLE_REGNUM): Set.
7823 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7824 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7825 (addsi3, movsi_internal2, movdf_internal): Update constraints
7826 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7827 (move_operand): Redefine as move_src_operand,
7828 check microblaze_tls_referenced_p.
8cc9a5a5 7829
d803a491
IB
78302013-03-14 Ian Bolton <ian.bolton@arm.com>
7831
7832 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7833 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7834
a8504f22
IB
78352013-03-14 Ian Bolton <ian.bolton@arm.com>
7836
7837 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7838 CC mode for AND.
7839
df2dfaea
JJ
78402013-03-14 Jakub Jelinek <jakub@redhat.com>
7841
fbd28bc3
JJ
7842 PR tree-optimization/53265
7843 * common.opt (Waggressive-loop-optimizations): New option.
7844 * tree-ssa-loop-niter.c: Include tree-pass.h.
7845 (do_warn_aggressive_loop_optimizations): New function.
7846 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7847 if number_of_latch_executions returned constant.
7848 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7849 early. If number_of_latch_executions returned constant, set
7850 nb_iterations_upper_bound back to it.
7851 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7852 field.
7853 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7854 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7855
df2dfaea
JJ
7856 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7857 (MULTILIB_OSDIRNAMES): Set.
7858 * genmultilib: If defaultosdirname doesn't start with :: , set
7859 defaultosdirname2 instead, clear it and emit two . multilib_raw
7860 entries instead of just one.
7861
ee0d2b68
KK
78622013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7863
7864 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7865 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7866 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7867 (SUBTARGET_OVERRIDE_OPTIONS): New.
7868
decc676e
OE
78692013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7870
7871 PR target/49880
7872 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7873 (musermode): Convert to Var(TARGET_USERMODE).
7874 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7875 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7876 * config/sh/sh.c (sh_option_override): Use
7877 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7878 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7879 condition.
7880 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7881 TARGET_SH4.
7882 (udivsi3_i4_single, divsi3_i4_single): Use
7883 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7884
f4b719c7
DK
78852013-03-13 Dave Korn <dave.korn.cygwin@....>
7886
7887 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7888 default setting.
7889
c40eced0
RB
78902013-03-13 Richard Biener <rguenther@suse.de>
7891
7892 PR tree-optimization/56608
7893 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7894 calls when vectorizing basic-blocks.
7895
1bfa5973
JJ
78962013-03-13 Jakub Jelinek <jakub@redhat.com>
7897
7898 PR plugins/45078
7899 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7900 tm_file.
7901
6fcf5434
JJ
79022013-03-12 Jakub Jelinek <jakub@redhat.com>
7903
7904 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7905
4f38fa8c
JH
79062013-03-11 Jan Hubicka <jh@suse.cz>
7907
7908 PR lto/56557
7909 * lto-streamer-out.c (output_symbol_p): Skip references from
7910 constructors of external variables.
7911
c5c5ba89
JH
79122013-03-11 Jan Hubicka <jh@suse.cz>
7913
7914 PR middle-end/56571
7915 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7916 from pseudos.
7917 * emit-rtl.c (verify_rtx_sharing): Likewise.
7918 (copy_insn_1): Likewise.
7919 * rtl.c (copy_rtx): Likewise.
7920
c2a939b1
GJL
79212013-03-11 Georg-Johann Lay <avr@gjlay.de>
7922
7923 PR target/56591
7924 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7925 output_operand_lossage message.
88b97037 7926
3c3279fb
RE
79272013-03-11 Richard Earnshaw <rearnsha@arm.com>
7928
7929 PR target/56470
7930 * arm.c (shift_op): Validate RTL pattern on the fly.
7931 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7932 the RTL.
7933
aef5ef9d
JDA
79342013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7935
7936 PR target/56347
7937 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7938 new call patterns that clobber %fr12.
7939 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7940 split and postreload patterns.
7941 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7942 registers %fr12 and %fr12R as call used.
7943
456610d3
SB
79442013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7945
7946 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7947 (canon_address, record_store, replace_read, check_mem_read_rtx,
7948 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7949 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7950 rest_of_handle_dse): Likewise.
7951
4b1baac8
RS
79522013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7953
7954 PR middle-end/56524
7955 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7956 Add base_optabs.
7957 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7958 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7959 (save_optabs_if_changed): Replace with...
7960 (init_tree_optimization_optabs): ...this.
7961 * optabs.c (save_optabs_if_changed): Rename to...
7962 (init_tree_optimization_optabs): ...this. Take the optimization node
7963 as argument. Do nothing if the base optabs are already correct.
7964 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7965 to recompute optabs.
7966 * function.h (function): Remove optabs field.
7967 * function.c (invoke_set_current_function_hook): Call
7968 init_tree_optimization_optabs. Use the result to initialize
7969 this_fn_optabs.
7970
b7a78683
AH
79712013-02-27 Aldy Hernandez <aldyh@redhat.com>
7972
7973 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7974 if GTMA_HAS_NO_INSTRUMENTATION.
7975 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7976 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7977 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7978 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7979 GTMA_HAS_NO_INSTRUMENTATION.
7980
6384c29b
JJ
79812013-03-08 Jakub Jelinek <jakub@redhat.com>
7982
7983 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7984 libasan_preinit.o.
7985
ecd4f20a
MP
79862013-03-08 Marek Polacek <polacek@redhat.com>
7987 Jakub Jelinek <jakub@redhat.com>
7988
7989 PR tree-optimization/56478
7990 * predict.c (is_comparison_with_loop_invariant_p): Change the
7991 type of loop_step to tree.
7992 (predict_loops): Adjust.
7993 (predict_iv_comparison): Perform the computations on double_ints.
7994
64366d35
RB
79952013-03-08 Richard Biener <rguenther@suse.de>
7996
7997 PR tree-optimization/56570
7998 * tree-cfg.c (verify_expr_location_1): Verify locations for
7999 DECL_DEBUG_EXPR.
8000 * tree-sra.c (create_access_replacement): Strip locations
8001 from DECL_DEBUG_EXPRs.
8002
a9d5a059
RB
80032013-03-08 Richard Biener <rguenther@suse.de>
8004
8005 * tree-inline.c (expand_call_inline): Do not associate
8006 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8007 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8008
b7aa4e9a
RB
80092013-03-08 Richard Biener <rguenther@suse.de>
8010
8011 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8012 or block changes with -Og. Fix for location / block encoding
8013 changes and PHI arguments with locations.
8014
c4c2f9fa
SB
80152013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8016
8017 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8018 for all counters.
8019 (struct output_info): Likewise.
8020 (register_overhead): Remove bad gcc_assert.
8021 (bitmap_find_bit): If there is only a single bitmap element, do not
8022 count a miss as a search.
8023 (print_statistics): Update for counter type changes.
8024 (dump_bitmap_statistics): Likewise. Print headers such that they
8025 are properly lined up with the printed counters.
8026
5bf6606a
JJ
80272013-03-07 Jakub Jelinek <jakub@redhat.com>
8028
8029 PR tree-optimization/56559
8030 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8031 check that it has only a single use.
8032
2c653d46
RB
80332013-03-07 Richard Biener <rguenther@suse.de>
8034
8035 * doc/invoke.texi (fwhole-program): Discourage use in combination
8036 with -flto.
8037
a72d8780
JJ
80382013-03-06 Jakub Jelinek <jakub@redhat.com>
8039
01a454df
JJ
8040 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8041
c1781047
JJ
8042 PR tree-optimization/56539
8043 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8044 instead of GSI_CONTINUE_LINKING as last argument to
8045 force_gimple_operand_gsi. Adjust function comment.
8046
9772c47a
JJ
8047 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8048 aarch64-cores.def.
8049
a72d8780
JJ
8050 PR middle-end/56548
8051 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8052 promoted mode, convert the result back to the original mode.
8053
fa5556de
RB
80542013-03-06 Richard Biener <rguenther@suse.de>
8055
8056 PR middle-end/56294
8057 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8058 (insert_updated_phi_nodes_compare_uids): New function.
8059 (update_ssa): Sort symbols_to_rename after UID before
8060 traversing it to insert PHI nodes.
8061
010403d1
RB
80622013-03-06 Richard Biener <rguenther@suse.de>
8063
8064 PR middle-end/50494
8065 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8066 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8067
8068 Revert
8069 2013-02-13 Richard Biener <rguenther@suse.de>
8070
8071 PR lto/50494
8072 * varasm.c (output_constant_def_1): Get the decl representing
8073 the constant as argument.
8074 (output_constant_def): Wrap output_constant_def_1.
8075 (make_decl_rtl): Use output_constant_def_1 with the decl
8076 representing the constant.
8077 (build_constant_desc): Optionally re-use a decl already
8078 representing the constant.
8079 (tree_output_constant_def): Adjust.
8080
3c27ce4c
JY
80812013-03-06 Joey Ye <joey.ye@arm.com>
8082
8083 PR lto/50293
8084 * gcc.c (convert_white_space): New function.
8085 (main): Handles white space in function name.
8086
8f6d1c86
OE
80872013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8088
8089 PR target/56529
8090 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8091 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8092 to SH_DIV_CALL_TABLE for TARGET_SH2.
8093 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8094 list.
8095 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8096 call-table options.
8097
798a209f
SA
80982013-03-05 Sterling Augustine <saugustine@google.com>
8099 Cary Coutant <ccoutant@google.com>
8100
8101 PR debug/55364
8102 * dwarf2out.c (resolve_addr): Don't call
8103 remove_loc_list_addr_table_entries a second time for the same
8104 expression.
8105
6cfa417f 81062013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 8107
6cfa417f
JJ
8108 PR debug/56510
8109 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8110 (avoid_complex_debug_insns): New function.
8111 (expand_debug_locations): Call it.
8112
8113 PR rtl-optimization/56484
8114 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8115 lifetimes of hard registers on small register class machines.
8116
81172013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8118
8119 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 8120 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 8121 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
8122 fast_interrupt.
8123 (microblaze_fast_interrupt_function_p): New function.
8124 (microblaze_is_interrupt_handler): Rename to
8125 microblaze_is_interrupt_variant and add fast_interrupt check.
8126 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8127 (save_restore_insns): Likewise.
8128 (compute_frame_size): Likewise.
8129 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8130 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
8131 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8132 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
8133 microblaze_is_interrupt_variant.
8134
731aefac
KT
81352013-03-05 Kai Tietz <ktietz@redhat.com>
8136
8137 * sdbout.c (sdbout_one_type): Switch to current function's section
8138 supporting cold/hot.
8139
a72d8780 81402013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
8141
8142 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8143 -mxl-reorder.
8144
334e71e8
JJ
81452013-03-05 Jakub Jelinek <jakub@redhat.com>
8146
0b50e654
JJ
8147 PR middle-end/56461
8148 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8149 if VALGRIND_GET_VBITS is defined, temporarily make object
8150 memory all defined, and restore previous valgrind addressability
8151 and definability afterwards. Free this_object at the end.
8152
4ccf8f43
JJ
8153 PR middle-end/56461
8154 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8155 right before calling lra_create_live_ranges, also call it
8156 when clearing live_p. Only call lra_clear_live_ranges
8157 at the end if live_p.
8158
334e71e8
JJ
8159 PR middle-end/56461
8160 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8161
9ca966ca
RB
81622013-03-05 Richard Biener <rguenther@suse.de>
8163
8164 PR tree-optimization/56521
8165 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8166 value-id.
8167
d273b176
SB
81682013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8169
8170 PR c++/55135
8171 * except.h (remove_unreachable_eh_regions): New prototype.
8172 * except.c (remove_eh_handler_splicer): New function, split out
8173 of remove_eh_handler.
8174 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8175 warning about running it on many EH regions one at a time.
8176 (remove_unreachable_eh_regions_worker): New function, walk the
8177 EH tree in depth-first order and remove non-marked regions.
8178 (remove_unreachable_eh_regions): New function.
8179 * tree-eh.c (mark_reachable_handlers): New function, split out
8180 from remove_unreachable_handlers.
8181 (remove_unreachable_handlers): Use mark_reachable_handlers and
8182 remove_unreachable_eh_regions.
8183 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8184 and remove_unreachable_eh_regions.
8185
5e7f1aef
RB
81862013-03-05 Richard Biener <rguenther@suse.de>
8187
8188 PR middle-end/56525
8189 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8190 not freeing them until the end.
8191
f276b762
AK
81922013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8193
8194 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8195
12a43ab8
RB
81962013-03-05 Richard Biener <rguenther@suse.de>
8197
8198 PR tree-optimization/56270
8199 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8200 of loads after scheduling an SLP instance.
8201
93675444
JJ
82022013-03-05 Jakub Jelinek <jakub@redhat.com>
8203
db4138e3
JJ
8204 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8205 tic6x.exp.
8206 (check_gcc_parallelize): Run guality.exp as a separate job from
8207 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8208 struct-layout-1.exp with stackalign.exp.
8209
dd3d1ec0
JJ
8210 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8211
b8d381a3
JJ
8212 PR middle-end/56461
8213 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8214 load_index sbitmap even if some bit in it isn't set.
8215
b4f9786b
JJ
8216 PR middle-end/56461
8217 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8218 (discover_iteration_bound_by_body_walk): Change queues to
8219 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8220 spelling in comment. Call safe_push on queues[bound_index] directly.
8221 Release queues[queue_index] in every iteration unconditionally.
8222 Release bounds vector.
8223
93675444
JJ
8224 PR middle-end/56461
8225 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8226 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8227 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8228 inner_phis vector.
8229
3e492e9c
RB
82302013-03-05 Richard Biener <rguenther@suse.de>
8231
8232 PR lto/56515
8233 * tree-inline.c (remap_blocks_to_null): New function.
8234 (expand_call_inline): When expanding a call stmt without
8235 an associated block inline remap all callee blocks to NULL.
8236
a5d1569a
JJ
82372013-03-05 Jakub Jelinek <jakub@redhat.com>
8238
86efb5cd
JJ
8239 PR rtl-optimization/56494
8240 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8241 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8242 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8243
85f5dbea
JJ
8244 PR middle-end/56461
8245 * sel-sched-ir.c (free_sched_pools): Release
8246 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8247 if succs_info_pool.max_top isn't -1.
8248
a5d1569a
JJ
8249 PR bootstrap/56509
8250 * opts.c (opts_obstack, opts_concat): Moved to...
8251 * opts-common.c (opts_obstack, opts_concat): ... here.
8252
4432aa6c
JJ
82532013-03-04 Jakub Jelinek <jakub@redhat.com>
8254
8255 PR middle-end/56461
8256 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8257
f3a1fb91
MJ
82582013-03-04 Martin Jambor <mjambor@suse.cz>
8259
8260 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8261 all appropriate places.
8262
22110e6c
EB
82632013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8264
8265 PR tree-optimization/56424
8266 * ipa-split.c (split_function): Do not set the RSO flag if result is
8267 not by reference and its type is a register type.
8268
a72d8780 82692013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 8270
88b97037 8271 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 8272 (microblaze_legitimate_pic_operand): Likewise
88b97037 8273 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
8274 new function microblaze_legitimate_pic_operand
8275 * config/microblaze/microblaze-protos.h
8276 (microblaze_legitimate_pic_operand): Declare.
8277
a72d8780 82782013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 8279
a72d8780 8280 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 8281 New predicate for supported rtx code types.
a72d8780 8282 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
8283 call_insn_simple_operand predicate.
8284
541d9ac8
JJ
82852013-03-04 Jakub Jelinek <jakub@redhat.com>
8286
5eb010bc
JJ
8287 PR middle-end/56461
8288 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8289 partitions.ordered_remove.
8290
30862efc
JJ
8291 PR middle-end/56461
8292 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8293 vec_oprnds0.create (1) for modifier == NONE.
8294
8930f723
JJ
8295 PR middle-end/56461
8296 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8297 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8298 vec_oprnds1 right before pushing anything to it for
8299 scalar_shift_arg.
8300
541d9ac8
JJ
8301 PR middle-end/56461
8302 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8303 set nbbs to 0 instead of having separate code path.
8304 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8305 instead of false as last argument if returning NULL.
8306
7aa7f2e3
SL
83072013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8308
8309 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8310 the attribute is now called "target" instead of "option".
8311 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8312 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8313 attribute/pragma name for TARGET_OPTION_VALID_P and
8314 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8315 * doc/tm.texi: Regenerated.
8316
8930f723 83172013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 8318
8930f723 8319 * config/microblaze/microblaze.c:
cb8a1637 8320 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
8321 * config/microblaze/microblaze.h: Add -mxl-reorder to
8322 DRIVER_SELF_SPECS.
8323 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8324 instructions emitted if TARGET_REORDER.
88b97037
UB
8325 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8326 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 8327 separately.
cb8a1637 8328
4dc1d68c
XDL
83292013-03-01 Xinliang David Li <davidxl@google.com>
8330
8331 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8332 walk length.
8333
689eaba3
JJ
83342013-03-01 Jakub Jelinek <jakub@redhat.com>
8335
9d676bf6
JJ
8336 PR middle-end/56461
8337 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8338 vector even when returning true. Fix up function comment formatting.
8339
caff7edf
JJ
8340 PR middle-end/56461
8341 * ira-build.c (ira_loop_nodes_count): New variable.
8342 (create_loop_tree_nodes): Initialize it.
8343 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8344
b6b9227d
JJ
8345 PR middle-end/56461
8346 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8347 method on dr_chain and result_chain.
8348 * tree-vect-stmts.c (vectorizable_store): Only call
8349 result_chain.create if j == 0.
8350
689eaba3
JJ
8351 PR middle-end/56461
8352 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8353 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8354 before overwriting it.
8355
40bf31ed
TB
83562013-03-01 Tobias Burnus <burnus@net-b.de>
8357
8358 * doc/extended.texi (C Extensions): Change order in @menu
8359 to match @node.
8360 (Other MIPS Built-in Functions): Move last MIPS entry before
8361 "picoChip Built-in Functions".
8362 (SH Built-in Functions): Move after RX Built-in Functions.
8363 * doc/gcc.texi (Introduction): Change order in @menu
8364 to match @node.
8365 * doc/md.texi (Constraints): Ditto.
8366 * gty.texi (Type Information): Ditto.
8367 (User-provided marking routines for template types): Make
8368 subsection.
8369 * doc/invoke.texi (AArch64 Options): Move before
8370 "Adapteva Epiphany Options".
8371
e664c61c
KS
83722013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8373 Jakub Jelinek <jakub@redhat.com>
8374
8375 PR sanitizer/56454
8376 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8377 no_address_safety_analysis attribute.
8378 * doc/extend.texi (no_address_safety_attribute): Rename to
8379 no_sanitize_address attribute, mention no_address_safety_analysis
8380 attribute as deprecated alias.
8381
37b5ec8f
JJ
83822013-02-28 Jakub Jelinek <jakub@redhat.com>
8383
8384 PR middle-end/56461
8385 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8386 type to vec<vec<tree> > *.
8387 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8388 to be vec<tree> instead of vec<tree> *, set vec_defs
8389 to vNULL and call vec_defs.create (number_of_vects), adjust other
8390 uses of vec_defs.
8391 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8392 vectorizable_condition): Adjust vect_get_slp_defs callers.
8393
ba96cdfb
JG
83942013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8395
8396 * config/aarch64/aarch64.c
8397 (aarch64_float_const_representable): Remove unused variable.
8398
6f549691
JG
83992013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8400
8401 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8402
af55e82d
JG
84032013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8404
8405 * config/aarch64/aarch64-builtins.c
8406 (aarch64_init_simd_builtins): Make static.
8407
1df3f464
JG
84082013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8409
8410 * config/aarch64/aarch64.c
8411 (aarch64_simd_make_constant): Make static.
8412
f8f42513
MJ
84132013-02-28 Martin Jambor <mjambor@suse.cz>
8414
8415 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8416 with no initialization to the RHS of debug statements.
8417
b48b3fc4
MJ
84182013-02-28 Martin Jambor <mjambor@suse.cz>
8419
8420 PR tree-optimization/56294
8421 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8422 Adjust dumping.
8423 (get_access_replacement): Do not call create_access_replacement.
8424 Assert a replacement exists.
8425 (get_repl_default_def_ssa_name): Create the replacement declaration
8426 itself.
8427
c3ae224c
RR
84282013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8429
8430 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8431 final_end_function.
8432
45fa0eef
MP
84332013-02-28 Marek Polacek <polacek@redhat.com>
8434
8435 PR rtl-optimization/56466
8436 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8437 if we're changing a loop.
8438 (peel_loops_completely): Likewise.
8439
502c067d
PC
84402013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8441
8442 PR c++/55813
8443 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8444
ff24afc8
GJL
84452013-02-28 Georg-Johann Lay <avr@gjlay.de>
8446
8447 PR target/56445
8448 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8449 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8450 INTX_FTYPE_FX, FX_FTYPE_INTX.
8451 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8452
c7b1fc1b
GJL
84532013-02-28 Georg-Johann Lay <avr@gjlay.de>
8454
8455 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8456 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8457 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8458 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8459 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8460 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8461 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8462 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8463 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8464 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8465 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8466 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8467 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8468 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8469 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8470 (avrxmega6): Increase max flash segments from 5 to 6.
8471 * config/avr/t-multilib: Regenerate.
8472 * config/avr/avr-tables.opt: Regenerate.
8473 * doc/avr-mmcu.texi: Regenerate.
8474
4a0e3cfe
GJL
84752013-02-28 Georg-Johann Lay <avr@gjlay.de>
8476
8477 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8478 (avr_device_to_arch): Rename to avr_device_to_ld.
8479 (avr_device_to_as): New prototype.
8480 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8481 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8482 * config/avr/driver-avr.c (avr_device_to_as): New.
8483 (avr_device_to_arch): Rename to avr_device_to_ld.
8484
97785e52
JJ
84852013-02-27 Jakub Jelinek <jakub@redhat.com>
8486
3f292312
JJ
8487 PR middle-end/56461
8488 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8489 method on dr_chain and result_chain.
8490
a344216b
JJ
8491 PR middle-end/56461
8492 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8493 pointer_set_destroy on not_executed_last_iteration.
8494
f121ad02 8495 PR middle-end/56461
88b97037 8496 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 8497
307f83a3
JJ
8498 PR middle-end/56461
8499 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8500 FOR_EACH_DEFINED_FUNCTION when freeing state.
8501
e19624ee
JJ
8502 PR middle-end/56461
8503 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8504 pool_free.
8505 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8506 overwriting it.
8507
90e709fd
JJ
8508 PR middle-end/56461
8509 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8510 known_aggs[i].items and release known_aggs vector.
8511
97785e52
JJ
8512 PR middle-end/56461
8513 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8514
85152013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 8516
97785e52
JJ
8517 * config/microblaze/microblaze.c (microblaze_emit_compare):
8518 Use xor for EQ/NE comparisions.
8519 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8520 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 8521
6fa5e0ed
JJ
85222013-02-27 Jakub Jelinek <jakub@redhat.com>
8523
8524 PR middle-end/56461
8525 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8526 vector.
8527 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8528 vec_safe_push, always update *slot.
8529 (redirect_edge_var_map_clear): Use vec_free.
8530 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8531 (free_var_map_entry): Use vec_free.
8532 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8533 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8534
436a956a
AB
85352013-02-27 Andrey Belevantsev <abel@ispras.ru>
8536
8537 PR middle-end/45472
436a956a
AB
8538 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8539 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
8540 Reorder tests for speculativeness in the logical and operator.
8541
f5c2caca
JJ
85422013-02-27 Jakub Jelinek <jakub@redhat.com>
8543
0fcb564b
JJ
8544 * incpath.c (add_standard_paths): Use reconcat instead of concat
8545 where appropriate and avoid leaking memory.
8546
dc357798
JJ
8547 * opts.h: Include obstack.h.
8548 (opts_concat): New prototype.
8549 (opts_obstack): New declaration.
8550 * opts.c (opts_concat): New function.
8551 (opts_obstack): New variable.
8552 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8553 (finish_options): Use opts_concat instead of concat
8554 and XOBNEWVEC instead of XNEWVEC.
8555 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8556 generate_option): Likewise.
8557 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8558 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8559
f5c2caca
JJ
8560 PR target/56455
8561 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8562 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8563
d0163673
JJ
85642013-02-26 Jakub Jelinek <jakub@redhat.com>
8565
8566 PR middle-end/56461
8567 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8568
b5ad2b8e
JR
85692013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8570
8571 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8572 (arm_block_move_unaligned_straight): Likewise.
8573 (arm_adjust_block_mem): Likewise.
8574
9b639e2c
JR
85752013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8576
8577 PR target/48901
8578 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8579 temp, cond and label.
8580 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8581
e13a0ccb
JR
8582 PR target/52500
8583 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8584 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8585
fbe4f171
JR
8586 PR target/52501
8587 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8588 of prologue/epilogue functions.
8589
ae006543
JR
8590 PR target/52550
8591 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8592 Remove unused variable cfa_offset.
8593 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8594
c81369fa
JR
8595 PR target/54639
8596 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8597 type promotion to unsigned.
8598
f8a8fea7
JR
8599 PR target/54640
8600 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8601 for HOST_WIDE_INT of 32 bit / same size as int.
8602 (arm_block_move_unaligned_straight): Likewise.
8603 (arm_adjust_block_mem): Likewise.
8604
f8be5169
JR
8605 PR target/54662
8606 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8607 ALL_CFLAGS.
8608
f1ad3354
MP
86092013-02-26 Marek Polacek <polacek@redhat.com>
8610
8611 PR tree-optimization/56426
88b97037 8612 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 8613
a6af0f42
RB
86142013-02-26 Richard Biener <rguenther@suse.de>
8615
8616 PR target/56444
8617 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8618 unused variable loops.
8619
aca43c6c
JJ
86202013-02-26 Jakub Jelinek <jakub@redhat.com>
8621
cecbe5d9
JJ
8622 PR tree-optimization/56448
8623 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8624 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8625 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8626 later operands of the references, or even first operand for
8627 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8628
aca43c6c
JJ
8629 PR tree-optimization/56443
8630 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8631 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8632 to type_for_mode langhook.
8633
53e2e141
MT
86342013-02-25 Matt Turner <mattst88@gmail.com>
8635
8636 * doc/invoke.texi: Document r4700.
8637
259ee451
RB
86382013-02-25 Richard Biener <rguenther@suse.de>
8639
8640 PR tree-optimization/56175
8641 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8642 split out from ...
8643 (simplify_bitwise_binary): ... here. Also guard the conversion
8644 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8645
6d65e8f1
CM
86462013-02-25 Catherine Moore <clm@codesourcery.com>
8647
8648 Revert:
8649 2013-02-24 Catherine Moore <clm@codesourcery.com>
8650 Maciej W. Rozycki <macro@codesourcery.com>
8651 Tom de Vries <tom@codesourcery.com>
a72d8780 8652 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
8653 Iain Sandoe <iain@codesourcery.com>
8654 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8655 Chao-ying Fu <fu@mips.com>
88b97037 8656
6d65e8f1 8657 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8658 Document new function attributes.
6d65e8f1
CM
8659 * doc/invoke.texi (minterlink-compressed, mmicromips,
8660 m14k, m14ke, m14kec): Document new options.
8661 (minterlink-mips16): Update documentation.
8662 * doc/md.texi (ZC, ZD): Document new constraints.
8663 * configure.ac (gcc_cv_as_micromips): Check if linker
8664 supports the .set micromips directive.
8665 * configure: Regenerate.
8666 * config.in: Regenerate.
8667 * config/mips/mips-tables.opt: Regenerate.
8668 * config/mips/micromips.md: New file.
8669 * constraints.md (ZC, AD): New constraints.
8670 * config/mips/predicates.md (movep_src_register): New predicate.
8671 (movep_src_operand): New predicate.
8672 (non_volatile_mem_operand): New predicate.
8673 * config/mips/mips.md (multimem): New type.
8674 (length): Differentiate between 17-bit and 18-bit branch offsets.
8675 (MOVEP1, MOVEP2): New mode iterator.
8676 (mov_<load>l): Use ZC constraint.
8677 (mov_<load>r): Likewise.
8678 (mov_<store>l): Likewise.
8679 (mov_<store>r): Likewise.
8680 (*branch_equality<mode>_inverted): Add microMIPS support.
8681 (*branch_equality<mode>): Likewise.
8682 (*jump_absolute): Likewise.
8683 (indirect_jump_<mode>): Likewise.
8684 (tablejump_<mode>): Likewise.
8685 (<optab>_internal): Likewise.
8686 (sibcall_internal): Likewise.
8687 (sibcall_value_internal): Likewise.
8688 (prefetch): Use constraint ZD.
8689 * config/mips/mips.opt (minterlink-compressed): New option.
8690 (minterlink-mips16): Now an alias for minterlink-compressed.
8691 (mmicromips): New option.
8692 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8693 (compare_and_swap_12): Likewise.
8694 (sync_add<mode>): Likewise.
8695 (sync_<optab>_12): Likewise.
8696 (sync_old_<optab>_12): Likewise.
8697 (sync_new_<optab>_12): Likewise.
8698 (sync_nand_12): Likewise.
8699 (sync_old_nand_12): Likewise.
8700 (sync_new_nand_12): Likewise.
8701 (sync_sub<mode>): Likewise.
8702 (sync_old_add<mode>): Likewise.
8703 (sync_old_sub<mode>): Likewise.
8704 (sync_new_add<mode>): Likewise.
8705 (sync_new_sub<mode>): Likewise.
8706 (sync_<optab><mode>): Likewise.
8707 (sync_old_<optab><mode>): Likewise.
8708 (sync_new_<optab><mode>): Likewise.
8709 (sync_nand<mode>): Likewise.
8710 (sync_old_nand<mode>): Likewise.
8711 (sync_new_nand<mode>): Likewise.
8712 (sync_lock_test_and_set<mode>): Likewise.
8713 (test_and_set_12): Likewise.
8714 (atomic_compare_and_swap<mode>): Likewise.
8715 (atomic_exchange<mode>_llsc): Likewise.
8716 (atomic_fetch_add<mode>_llsc): Likewise.
8717 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8718 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8719 (umips_save_restore_pattern_p): Likewise.
8720 (umips_load_store_pair_p): Likewise.
8721 (umips_output_load_store_pair): Likewise.
8722 (umips_movep_target_p): Likewise.
8723 (umips_12bit_offset_address_p): Likewise.
8724 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8725 (mips_base_mips16): Rename this...
8726 (mips_base_compression_flags): ...to this. Update all uses.
8727 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8728 (mips_mips16_decl_p): Delete.
8729 (mips_nomips16_decl_p): Delete.
8730 (mips_get_compress_on_flags): New function.
8731 (mips_get_compress_off_flags): New function.
8732 (mips_get_compress_mode): New function.
8733 (mips_get_compress_on_name): New function.
8734 (mips_get_compress_off_name): New function.
8735 (mips_insert_attributes): Support multiple compression types.
8736 (mips_merge_decl_attributes): Likewise.
8737 (umips_12bit_offset_address_p): New function.
8738 (mips_start_function_definition): Emit .set micromips directive.
8739 (mips_call_may_need_jalx_p): New function.
8740 (mips_function_ok_for_sibcall): Add microMIPS support.
8741 (mips_print_operand_punctuation): Support short delay slots and
8742 compact jumps.
8743 (umips_swm_mask, umips_swm_encoding): New.
8744 (umips_build_save_restore): New function.
8745 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8746 (was_mips16_p): Remove.
8747 (old_compression_mode): New.
8748 (mips_set_compression_mode): New function.
8749 (mips_set_current_function): Add microMIPS support.
8750 (mips_option_override): Likewise.
8751 (umips_save_restore_pattern_p): New function.
8752 (umips_output_save_restore): New function.
8753 (umips_load_store_pair_p_1): New function.
8754 (umips_load_store_pair_p): New function.
8755 (umips_output_load_store_pair_1): New function.
8756 (umips_output_load_store_pair): New function.
8757 (umips_movep_target_p) New function.
8758 (mips_prepare_pch_save): Add microMIPS support.
8759 * config/mips/mips.h (TARGET_COMPRESSION): New.
8760 (TARGET_CPU_CPP_BUILTINS): Update macro
8761 to use new compression flags and to support microMIPS.
8762 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8763 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8764 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8765 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8766 (ASM_SPEC): Support mmicromips and mno-micromips.
8767 (M16STORE_REG_P): New macro.
8768 (MIPS_CALL): Support TARGET_MICROMIPS.
8769 (MICROMIPS_J): New macro.
8770 (mips_base_mips16): Rename this...
8771 (mips_base_compression_flags): ...to this.
8772 (UMIPS_12BIT_OFFSET_P): New macro.
8773 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8774 (MULTILIB_DIRNAMES): Likewise.
8775
5e5df392
TV
87762013-02-25 Tom de Vries <tom@codesourcery.com>
8777
8778 PR rtl-optimization/56131
8779 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8780 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8781 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8782
3fdb53c1
TB
87832013-02-25 Tobias Burnus <burnus@net-b.de>
8784
8785 * doc/invoke.texi (-fsanitize=): Move from optimization
8786 to debugging options.
8787
ed358aea
AB
87882013-02-25 Andrey Belevantsev <abel@ispras.ru>
8789
8790 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8791
f45e9053
AB
87922013-02-25 Andrey Belevantsev <abel@ispras.ru>
8793 Alexander Monakov <amonakov@ispras.ru>
8794
8795 PR middle-end/56077
8796 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8797 flush pending lists also on non-jumps. Adjust comment.
8798
6941b508
CM
87992013-02-24 Catherine Moore <clm@codesourcery.com>
8800 Maciej W. Rozycki <macro@codesourcery.com>
8801 Tom de Vries <tom@codesourcery.com>
a72d8780 8802 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
8803 Iain Sandoe <iain@codesourcery.com>
8804 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8805 Chao-ying Fu <fu@mips.com>
6941b508
CM
8806
8807 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8808 Document new function attributes.
6941b508
CM
8809 * doc/invoke.texi (minterlink-compressed, mmicromips,
8810 m14k, m14ke, m14kec): Document new options.
8811 (minterlink-mips16): Update documentation.
8812 * doc/md.texi (ZC, ZD): Document new constraints.
8813 * configure.ac (gcc_cv_as_micromips): Check if linker
8814 supports the .set micromips directive.
8815 * configure: Regenerate.
8816 * config.in: Regenerate.
8817 * config/mips/mips-tables.opt: Regenerate.
8818 * config/mips/micromips.md: New file.
8819 * constraints.md (ZC, AD): New constraints.
8820 * config/mips/predicates.md (movep_src_register): New predicate.
8821 (movep_src_operand): New predicate.
8822 (non_volatile_mem_operand): New predicate.
8823 * config/mips/mips.md (multimem): New type.
8824 (length): Differentiate between 17-bit and 18-bit branch offsets.
8825 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8826 (mov_<load>l): Use ZC constraint.
6941b508
CM
8827 (mov_<load>r): Likewise.
8828 (mov_<store>l): Likewise.
8829 (mov_<store>r): Likewise.
8830 (*branch_equality<mode>_inverted): Add microMIPS support.
8831 (*branch_equality<mode>): Likewise.
8832 (*jump_absolute): Likewise.
8833 (indirect_jump_<mode>): Likewise.
8834 (tablejump_<mode>): Likewise.
8835 (<optab>_internal): Likewise.
8836 (sibcall_internal): Likewise.
8837 (sibcall_value_internal): Likewise.
8838 (prefetch): Use constraint ZD.
8839 * config/mips/mips.opt (minterlink-compressed): New option.
8840 (minterlink-mips16): Now an alias for minterlink-compressed.
8841 (mmicromips): New option.
8842 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8843 (compare_and_swap_12): Likewise.
8844 (sync_add<mode>): Likewise.
8845 (sync_<optab>_12): Likewise.
8846 (sync_old_<optab>_12): Likewise.
8847 (sync_new_<optab>_12): Likewise.
8848 (sync_nand_12): Likewise.
8849 (sync_old_nand_12): Likewise.
8850 (sync_new_nand_12): Likewise.
8851 (sync_sub<mode>): Likewise.
8852 (sync_old_add<mode>): Likewise.
8853 (sync_old_sub<mode>): Likewise.
8854 (sync_new_add<mode>): Likewise.
8855 (sync_new_sub<mode>): Likewise.
8856 (sync_<optab><mode>): Likewise.
8857 (sync_old_<optab><mode>): Likewise.
8858 (sync_new_<optab><mode>): Likewise.
8859 (sync_nand<mode>): Likewise.
8860 (sync_old_nand<mode>): Likewise.
8861 (sync_new_nand<mode>): Likewise.
8862 (sync_lock_test_and_set<mode>): Likewise.
8863 (test_and_set_12): Likewise.
8864 (atomic_compare_and_swap<mode>): Likewise.
8865 (atomic_exchange<mode>_llsc): Likewise.
8866 (atomic_fetch_add<mode>_llsc): Likewise.
8867 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8868 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8869 (umips_save_restore_pattern_p): Likewise.
8870 (umips_load_store_pair_p): Likewise.
8871 (umips_output_load_store_pair): Likewise.
8872 (umips_movep_target_p): Likewise.
8873 (umips_12bit_offset_address_p): Likewise.
8874 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8875 (mips_base_mips16): Rename this...
8876 (mips_base_compression_flags): ...to this. Update all uses.
8877 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8878 (mips_mips16_decl_p): Delete.
8879 (mips_nomips16_decl_p): Delete.
3fdb53c1 8880 (mips_get_compress_on_flags): New function.
6941b508
CM
8881 (mips_get_compress_off_flags): New function.
8882 (mips_get_compress_mode): New function.
8883 (mips_get_compress_on_name): New function.
8884 (mips_get_compress_off_name): New function.
8885 (mips_insert_attributes): Support multiple compression types.
8886 (mips_merge_decl_attributes): Likewise.
8887 (umips_12bit_offset_address_p): New function.
8888 (mips_start_function_definition): Emit .set micromips directive.
8889 (mips_call_may_need_jalx_p): New function.
8890 (mips_function_ok_for_sibcall): Add microMIPS support.
8891 (mips_print_operand_punctuation): Support short delay slots and
8892 compact jumps.
8893 (umips_swm_mask, umips_swm_encoding): New.
8894 (umips_build_save_restore): New function.
8895 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8896 (was_mips16_p): Remove.
8897 (old_compression_mode): New.
8898 (mips_set_compression_mode): New function.
8899 (mips_set_current_function): Add microMIPS support.
8900 (mips_option_override): Likewise.
8901 (umips_save_restore_pattern_p): New function.
8902 (umips_output_save_restore): New function.
8903 (umips_load_store_pair_p_1): New function.
8904 (umips_load_store_pair_p): New function.
8905 (umips_output_load_store_pair_1): New function.
8906 (umips_output_load_store_pair): New function.
8907 (umips_movep_target_p) New function.
8908 (mips_prepare_pch_save): Add microMIPS support.
8909 * config/mips/mips.h (TARGET_COMPRESSION): New.
8910 (TARGET_CPU_CPP_BUILTINS): Update macro
8911 to use new compression flags and to support microMIPS.
8912 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8913 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8914 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8915 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8916 (ASM_SPEC): Support mmicromips and mno-micromips.
8917 (M16STORE_REG_P): New macro.
8918 (MIPS_CALL): Support TARGET_MICROMIPS.
8919 (MICROMIPS_J): New macro.
8920 (mips_base_mips16): Rename this...
8921 (mips_base_compression_flags): ...to this.
8922 (UMIPS_12BIT_OFFSET_P): New macro.
8923 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8924 (MULTILIB_DIRNAMES): Likewise.
8925
cdebbc6d
JJ
89262013-02-24 Jakub Jelinek <jakub@redhat.com>
8927
8928 PR target/52555
8929 * target-globals.c (save_target_globals): For init_reg_sets and
8930 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8931
18c63565
JG
89322013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8933
8934 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8935 * config/aarch64/t-aarch64
8936 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8937
2194f7a2
VM
89382013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8939
8940 PR inline-asm/56148
8941 * lra-constraints.c (process_alt_operands): Reload operand
8942 conflicting with earlier clobber only if no more other conflicting
8943 operands.
8944
7d613735
JJ
89452013-02-22 Jakub Jelinek <jakub@redhat.com>
8946
8947 PR sanitizer/56393
8948 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8949 if not linking a shared library.
8950
ac8d93a7
SL
89512013-02-22 Seth LaForge <sethml@google.com>
8952
8953 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8954
e0237780
GY
89552013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8956
3fdb53c1
TB
8957 * config/arm/arm.md (split for extendsidi): Update condition.
8958 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8959 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8960 (qhs_zextenddi_cstr): Likewise.
e0237780 8961
d7fde18c
JJ
89622013-02-21 Jakub Jelinek <jakub@redhat.com>
8963
be63b77d
JJ
8964 PR middle-end/56420
8965 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8966 avoid signed wrapping.
8967 (expand_mult): Handle properly multiplication by
8968 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8969 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8970 in the compiler if coeff is HOST_WIDE_INT_MIN.
8971 (expand_divmod): Don't make ext_op1 static, change it's type to
8972 uhwi. Avoid undefined behavior in -INTVAL (op1).
8973
d7fde18c
JJ
8974 PR rtl-optimization/50339
8975 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8976 field.
8977 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8978 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8979 into splitting_ashiftrt field.
8980 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8981 ASHIFTRT.
8982 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8983 choices.
8984
6aad4455
AH
89852013-02-20 Aldy Hernandez <aldyh@redhat.com>
8986
8987 PR middle-end/56108
8988 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8989 are sure to go irrevocable.
8990
38fe784d
HPN
89912013-02-21 Hans-Peter Nilsson <hp@axis.com>
8992
8993 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8994 scalars are valid operands.
8995
0fd44da3
MJ
89962013-02-21 Martin Jambor <mjambor@suse.cz>
8997
8998 PR tree-optimization/56310
8999 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9000 only matching indices and non-negative final offsets.
9001 (intersect_aggregates_with_edge): Pass src_idx to
9002 agg_replacements_to_vector. Pass src_idx insstead of index to
9003 intersect_with_agg_replacements.
9004
7a92038b
MJ
90052013-02-21 Martin Jambor <mjambor@suse.cz>
9006
9007 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9008 instead of hard-wired defaults.
9009
c0da9c37
MR
90102013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9011
9012 * doc/invoke.texi (MIPS Options): Update documentation of the
9013 floating-point multiply-accumulate instruction restrictions.
9014
d247ea0c 90152013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
9016
9017 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9018 asan_shadow_offset on x86_64 linux.
9019
22deefcb
RB
90202013-02-21 Richard Biener <rguenther@suse.de>
9021
9022 PR tree-optimization/56415
9023 Revert
9024 2013-02-11 Richard Biener <rguenther@suse.de>
9025
9026 PR tree-optimization/56273
9027 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9028 first VRP run.
9029
7bcc6e75
JJ
90302013-02-21 Jakub Jelinek <jakub@redhat.com>
9031
a0ad148f
JJ
9032 PR bootstrap/56258
9033 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9034 instead of @itemx.
9035
7bcc6e75
JJ
9036 PR inline-asm/56405
9037 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9038 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9039
a0a7b611
JH
90402013-02-20 Jan Hubicka <jh@suse.cz>
9041
9042 PR tree-optimization/56265
88b97037
UB
9043 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9044 when target is referenced for first time.
a0a7b611 9045
c0e50f72
RB
90462013-02-20 Richard Biener <rguenther@suse.de>
9047
9048 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9049 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9050 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9051 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9052 not return anything.
9053 (rename_ssa_copies): Do not remove unused locals.
9054 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 9055 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
9056 * passes.c (execute_function_todo): Do not schedule unused locals
9057 removal if cleanup_tree_cfg did something.
9058 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9059 about the number of removed locals.
9060
a52ca739
RB
90612013-02-20 Richard Biener <rguenther@suse.de>
9062
9063 PR tree-optimization/56398
88b97037 9064 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 9065
ec9c9d1b
MJ
90662013-02-20 Martin Jambor <mjambor@suse.cz>
9067
9068 PR tree-optimization/55334
9069 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9070 restricted pointers to arrays.
9071
e91c8ed6 90722013-02-20 Richard Biener <rguenther@suse.de>
88b97037 9073 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
9074
9075 PR tree-optimization/56396
9076 * tree-ssa-ccp.c (n_const_val): New static variable.
9077 (get_value): Return NULL for SSA names we don't have a lattice
9078 entry for.
9079 (ccp_initialize): Initialize n_const_val.
9080 * tree-ssa-copy.c (n_copy_of): New static variable.
9081 (init_copy_prop): Initialize n_copy_of.
9082 (get_value): Return NULL_TREE for SSA names we don't have a
9083 lattice entry for.
9084
3d916479
MJ
90852013-02-20 Martin Jambor <mjambor@suse.cz>
9086
9087 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9088
71a86758
RB
90892013-02-20 Richard Biener <rguenther@suse.de>
9090
9091 * genpreds.c (write_lookup_constraint): Do not compare first
9092 letter of the constraint again.
9093
79836a12
RB
90942013-02-20 Richard Biener <rguenther@suse.de>
9095
9096 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9097 and ceil_log2.
9098 (get_use_iv_cost): Terminate hashtable walk when coming across
9099 an empty entry.
9100
bbe4fb2c
IZ
91012013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9102
9103 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9104 reassociation for avx2 targets.
9105
a72d8780 91062012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 9107
c77f83d5
EI
9108 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9109 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 9110 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
9111 version and TARGET_PATTERN_COMPARE check
9112 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 9113
a72d8780 91142012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 9115
a72d8780 9116 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
9117 function before branching.
9118
242387fa
AB
91192012-02-19 Andrey Belevantsev <abel@ispras.ru>
9120
9121 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9122 DUMP_INSN_RTX_UID.
9123 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9124
b4979ab9
AB
91252012-02-19 Andrey Belevantsev <abel@ispras.ru>
9126
9127 PR middle-end/55889
b4979ab9
AB
9128 * sel-sched.c: Include ira.h.
9129 (implicit_clobber_conflict_p): New function.
9130 (moveup_expr): Use it.
88b97037 9131 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 9132
24d63016
RB
91332013-02-19 Richard Biener <rguenther@suse.de>
9134
9135 PR tree-optimization/56384
9136 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9137 (vn_hash_type): Split out from ...
9138 (vn_hash_constant_with_type): ... here.
9139 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9140 (vn_phi_eq): Compare types from vn_phi_s structure.
9141 (vn_phi_lookup): Populate vn_phi_s type.
9142 (vn_phi_insert): Likewise.
9143
a475fd3d
JJ
91442013-02-19 Jakub Jelinek <jakub@redhat.com>
9145
47cc28f5
JJ
9146 PR tree-optimization/56350
9147 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9148 if haven't found reduction or nested cycle operand, rather than
9149 asserting we must find it.
9150
a475fd3d
JJ
9151 PR tree-optimization/56381
9152 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9153 to fold_build3.
9154
91552013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
9156 Jakub Jelinek <jakub@redhat.com>
9157
9158 PR target/52555
9159 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9160 (swap_optab_enable): Same.
9161 (init_all_optabs): Use argument instead of global.
88b97037 9162 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
9163 * expr.h (init_all_optabs): Add argument to prototype.
9164 (TREE_OPTIMIZATION_OPTABS): New.
9165 (save_optabs_if_changed): Protoize.
9166 * optabs.h: Declare this_fn_optabs.
9167 * optabs.c (save_optabs_if_changed): New.
9168 Declare this_fn_optabs.
9169 (init_optabs): Add argument to init_all_optabs() call.
9170 * function.c (invoke_set_current_function_hook): Handle per
9171 function optabs.
9172 * function.h (struct function): New field optabs.
9173 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9174 optimization_current_node has changed.
9175 * target-globals.h (save_target_globals_default_opts): Protoize.
9176 * target-globals.c (save_target_globals_default_opts): New.
9177
3f587ca3
JDA
91782013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9179
9180 PR target/56347
9181 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9182 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
9183
9184 PR target/56214
9185 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
9186 and HImode, require all displacements to be an integer multiple of
9187 their mode size.
ceaca33e
JDA
9188 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9189 only allow QImode and HImode when reload is in progress and strict is
9190 true. Likewise for symbolic addresses. Use base14_operand to check
9191 displacements in REG+BASE addresses.
9192
fe0b4796
RB
91932013-02-18 Richard Biener <rguenther@suse.de>
9194
9195 PR tree-optimization/56366
9196 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9197 handle sign-conversion of outer-loop initial induction value.
9198
6aaf596b
RB
91992013-02-18 Richard Biener <rguenther@suse.de>
9200
73db8ff1 9201 PR middle-end/56349
6aaf596b
RB
9202 * cfghooks.c (merge_blocks): If we merge a latch into another
9203 block adjust references to it.
9204 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9205 (verify_loop_structure): Verify that a recorded latch is in fact
9206 a latch.
9207
5e97dfb6
RB
92082013-02-18 Richard Biener <rguenther@suse.de>
9209
9210 PR tree-optimization/56321
9211 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9212 order SSA name release and virtual operand unlinking.
9213
825527e8
EI
92142013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9215
9216 * config/microblaze/microblaze.md (save_stack_block): Define.
9217 (restore_stack_block): Likewise.
9218
debd11d9
EI
92192013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9220
9221 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9222 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9223 * config/microblaze/microblaze.c (microblaze_option_override):
9224 Bail out early for PIC modes when target does not support PIC.
9225
8ec77be0
EI
92262013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9227
88b97037 9228 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
9229 Replace with a microblaze version.
9230 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 9231 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
9232 microblaze.
9233
b41288b3
JJ
92342013-02-16 Jakub Jelinek <jakub@redhat.com>
9235 Dodji Seketeli <dodji@redhat.com>
9236
9237 PR asan/56330
88b97037 9238 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
9239 (instrument_mem_region_access): Do not forget to always put
9240 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9241 0) statement, even for cases where either 'base' or 'base + len'
9242 are not instrumented -- because they have been previously
9243 instrumented. Simplify the logic by putting all the statements
9244 instrument 'base + len' inside a sequence, and then insert that
9245 sequence right before the current insertion point. Then, to
9246 instrument 'base + len', just get an iterator on that statement.
9247 And do not forget to update the pointer to iterator the function
9248 received as argument.
9249
47918951
VM
92502013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9251
9252 PR rtl-optimization/56348
9253 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9254
3fb7c699
SB
92552013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9256
9257 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9258 (clean_graph_dump_file): Pass base to start_graph_dump.
9259
576fe41a
RH
92602013-02-14 Richard Henderson <rth@redhat.com>
9261
9262 PR target/55941
9263 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9264
bb3accfa
SB
92652013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9266
9267 * collect2-aix.h: Define F_LOADONLY.
9268
03143140
RB
92692013-02-14 Richard Biener <rguenther@suse.de>
9270
9271 PR lto/50494
9272 * varasm.c (output_constant_def_1): Get the decl representing
9273 the constant as argument.
9274 (output_constant_def): Wrap output_constant_def_1.
9275 (make_decl_rtl): Use output_constant_def_1 with the decl
9276 representing the constant.
9277 (build_constant_desc): Optionally re-use a decl already
9278 representing the constant.
9279 (tree_output_constant_def): Adjust.
9280
8fb06726
DS
92812013-02-14 Dodji Seketeli <dodji@redhat.com>
9282
9283 Fix an asan crash
9284 * asan.c (instrument_builtin_call): Really put the length of the
9285 second source argument into src1_len.
9286
c4bfe8bf
JJ
92872013-02-13 Jakub Jelinek <jakub@redhat.com>
9288
9289 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9290 argument. If it is false, don't create edge from then_bb to
9291 fallthru_bb.
9292 (insert_if_then_before_iter): Pass true to it.
9293 (build_check_stmt): Pass false to it.
9294 (transform_statements): Flush hash table only on extended basic
9295 block boundaries, rather than at the beginning of every bb.
9296 Don't flush hash table on nonfreeing_call_p calls.
9297 * tree-flow.h (nonfreeing_call_p): New prototype.
9298 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9299
7afe2801
DM
93002013-02-13 David S. Miller <davem@davemloft.net>
9301
9302 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9303
70cc3288
VM
93042013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9305
9306 PR target/56184
9307 * ira.c (max_regno_before_ira): Move from ...
9308 (ira): ... here.
9309 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9310 vec_safe_length.
9311
6422242b
JJ
93122013-02-13 Jakub Jelinek <jakub@redhat.com>
9313
9314 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9315
976a81ee
RB
93162013-02-13 Richard Biener <rguenther@suse.de>
9317
9318 PR lto/56295
9319 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9320 globals in MEM_REFs.
9321
c1874a87
RB
93222013-02-13 Richard Biener <rguenther@suse.de>
9323
9324 * loop-init.c (loop_optimizer_init): Clear loop state when
9325 re-initializing preserved loops.
9326 * loop-unswitch.c (unswitch_single_loop): Return whether
9327 we unswitched the loop. Do not verify loop state here.
88b97037 9328 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 9329
b4ab7d34
KS
93302013-02-13 Kostya Serebryany <kcc@google.com>
9331
88b97037
UB
9332 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9333 on x86_64 linux.
b4ab7d34
KS
9334 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9335
bdcbe80c
DS
93362013-02-12 Dodji Seketeli <dodji@redhat.com>
9337
9338 Avoid instrumenting duplicated memory access in the same basic block
9339 * Makefile.in (asan.o): Add new dependency on hash-table.h
9340 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9341 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9342 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9343 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9344 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9345 (get_mem_ref_of_assignment): New functions.
9346 (get_mem_refs_of_builtin_call): Extract from
9347 instrument_builtin_call and tweak a little bit to make it fit with
9348 the new signature.
9349 (instrument_builtin_call): Use the new
9350 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9351 of is_gimple_builtin_call.
9352 (instrument_derefs, instrument_mem_region_access): Insert the
9353 instrumented memory reference into the hash table.
9354 (maybe_instrument_assignment): Renamed instrument_assignment into
9355 this, and change it to advance the iterator when instrumentation
9356 actually happened and return true in that case. This makes it
9357 homogeneous with maybe_instrument_assignment, and thus give a
9358 chance to callers to be more 'regular'.
9359 (transform_statements): Clear the memory reference hash table
9360 whenever we enter a new BB, when we cross a function call, or when
9361 we are done transforming statements. Use
9362 maybe_instrument_assignment instead of instrumentation. No more
9363 need to special case maybe_instrument_assignment and advance the
9364 iterator after calling it; it's now handled just like
9365 maybe_instrument_call. Update comment.
9366
4861a1f7
RB
93672013-02-13 Richard Biener <rguenther@suse.de>
9368
9369 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9370 Fix loop discovery code.
9371
1c86bd80
VM
93722013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9373
9374 PR inline-asm/56148
9375 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 9376 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
9377 the operand is not reloaded. Prefer to reload conflicting operand
9378 if earlyclobber and matching operands are the same.
9379
7cbda518
RB
93802013-02-12 Richard Biener <rguenther@suse.de>
9381
9382 PR lto/56297
9383 * lto-streamer-out.c (write_symbol): Do not output symbols
9384 for hard register variables.
9385
e68a4ef6
GJL
93862013-02-12 Georg-Johann Lay <avr@gjlay.de>
9387
9388 PR target/54222
9389 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9390 (umulsidi3_insn, mulsidi3_insn): New insns.
9391
a72d8780 93922013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
9393
9394 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9395 (struct tune_params): Add vec_costs field.
9396 * config/arm/arm.c (arm_builtin_vectorization_cost)
9397 (arm_add_stmt_cost): New functions.
9398 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9399 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9400 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9401 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9402 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9403 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9404 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9405
43320568
RB
94062013-02-12 Richard Biener <rguenther@suse.de>
9407
9408 PR lto/56295
9409 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9410 decls again if possible.
9411
a011aa39
RB
94122013-02-12 Richard Biener <rguenther@suse.de>
9413
9414 PR middle-end/56288
9415 * tree-ssa.c (verify_ssa_name): Fix check, move
9416 SSA_NAME_IN_FREE_LIST check up.
9417
6da26889
JJ
94182013-02-12 Jakub Jelinek <jakub@redhat.com>
9419 Steven Bosscher <steven@gcc.gnu.org>
9420
9421 PR rtl-optimization/56151
9422 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9423 equal to op0 or op1, and last_insn pattern is CODE operation
9424 with MEM dest and one of the operands matches that MEM.
9425
f80e0faf
ST
94262013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9427
9428 * doc/extend.texi: Document Function Multiversioning and "default"
9429 parameter string to target attribute.
9430 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9431 target attribute parameter is "default".
9432 (ix86_compare_version_priority): Remove checks for target attribute.
9433 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9434 Remove check for target attribute equal to NULL. Add assert.
9435 (ix86_generate_version_dispatcher_body): Change error to sorry.
9436
6c59ffd1
IS
94372013-02-11 Iain Sandoe <iain@codesourcery.com>
9438 Jack Howarth <howarth@bromo.med.uc.edu>
9439 Patrick Marlier <patrick.marlier@gmail.com>
9440
9441 PR libitm/55693
9442 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9443 define ENDFILE_SPEC as TM_DESTRUCTOR.
9444 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9445
a72d8780 94462013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
9447 Jack Howarth <howarth@bromo.med.uc.edu>
9448 Jakub Jelinek <jakub@redhat.com>
9449
9450 PR sanitizer/55617
9451 * config/darwin.c (cdtor_record): Rename ctor_record.
9452 (sort_cdtor_records): Rename sort_ctor_records.
9453 (finalize_dtors): New routine to sort destructors by
9454 priority before use in assemble_integer.
9455 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9456
b63fe007
UB
94572013-02-11 Uros Bizjak <ubizjak@gmail.com>
9458
9459 PR rtl-optimization/56275
9460 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9461 offset is non-negative and less than cmode size before
9462 calling simplify_subreg.
9463
8e89b5b5
RB
94642013-02-11 Richard Biener <rguenther@suse.de>
9465
9466 PR tree-optimization/56264
9467 * cfgloop.h (fix_loop_structure): Adjust prototype.
9468 * loop-init.c (fix_loop_structure): Return the number of
9469 newly discovered loops.
9470 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9471 are discovered, do a full loop-closed SSA rewrite.
9472
b4a4b56d
RB
94732013-02-11 Richard Biener <rguenther@suse.de>
9474
9475 PR tree-optimization/56273
9476 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9477 first VRP run.
9478 (check_array_ref): Fix missing newline in dumps.
9479 (search_for_addr_array): Likewise.
9480
0c885229
DE
94812013-02-09 David Edelsohn <dje.gcc@gmail.com>
9482
9483 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9484
59ac9a55
JJ
94852013-02-09 Jakub Jelinek <jakub@redhat.com>
9486
9487 PR target/56256
9488 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9489
25bb0bb5
VM
94902013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9491
9492 PR rtl-optimization/56246
0c885229 9493 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
9494 reload pseudo.
9495 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9496 constraints are satisfied.
9497
a698cc03
JL
94982013-02-08 Jeff Law <law@redhat.com>
9499
9500 PR debug/53948
9501 * emit-rtl.c (reg_is_parm_p): New function.
9502 * regs.h (reg_is_parm_p): New prototype.
9503 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9504 callee-clobbered registers.
9505
e1122ddd
MM
95062013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9507
9508 PR target/56043
9509 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9510 If there is no implicit builtin declaration, just return NULL.
9511
19c5f6e6
UB
95122013-02-08 Uros Bizjak <ubizjak@gmail.com>
9513
9514 * config/i386/sse.md (FMAMODEM): New mode iterator.
9515 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9516 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9517
2480f2ca 95182013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 9519
2480f2ca
UB
9520 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9521 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9522 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9523
95242013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9525
9526 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9527 (microblaze*-*-elf): Likewise.
9528 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9529 LINK_SPEC.
9530 * config/microblaze/microblaze-c.c: Add builtin defines for
9531 _LITTLE_ENDIAN and _BIG_ENDIAN.
9532 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9533 add to TARGET_DEFAULT flags.
76ef61fb 9534 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
9535 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9536 * config/microblaze/microblaze.md: Update extendsidi2 and
9537 movdi_internal instructions to use low-order / high-order reg
9538 print_operands.
9539 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9540 options and inversemask / mask of LITTLE_ENDIAN.
9541 * config/microblaze/t-microblaze: Expand multilib options to
9542 include mlittle-endian (le) and update exceptions patterns.
9543
600a5961
JJ
95442013-02-08 Jakub Jelinek <jakub@redhat.com>
9545
5df81313
JJ
9546 PR rtl-optimization/56195
9547 * lra-constraints.c (get_reload_reg): Don't reuse regs
9548 if they have smaller mode than requested, if they have
9549 wider mode than requested, try to return a SUBREG.
9550
600a5961
JJ
9551 PR tree-optimization/56250
9552 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9553 if type is unsigned and code isn't MULT_EXPR.
9554
ff544649
GJL
95552013-02-08 Georg-Johann Lay <avr@gjlay.de>
9556
9557 PR tree-optimization/56064
9558 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9559 bits according to mode.
9560 * fixed-value.h (fixed_from_double_int)
9561 (const_fixed_from_double_int): Adjust comments.
9562
e45cde98
RB
95632013-02-08 Richard Biener <rguenther@suse.de>
9564
9565 PR lto/56231
9566 * lto-streamer.h (struct data_in): Remove current_file, current_line
9567 and current_col members.
9568 * lto-streamer-out.c (lto_output_location): Stream changed bits
9569 en-block for efficiency.
9570 * lto-streamer-in.c (clear_line_info): Remove.
9571 (lto_input_location): Cache current file, line and column
9572 globally via local statics. Read changed bits en-block.
9573 (input_function): Do not call clear_line_info.
9574 (lto_read_body): Likewise.
9575 (lto_input_toplevel_asms): Likewise.
9576
c1ca73d8
MM
95772013-02-08 Michael Matz <matz@suse.de>
9578
9579 PR tree-optimization/52448
9580 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9581 (nt_call_phase): New static.
9582 (add_or_mark_expr): Only mark accesses with newer phase than any
9583 call seen.
9584 (nonfreeing_call_p): New.
9585 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9586 (nt_fini_block): Keep blocks marked as visited.
9587 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9588
57548aa2
RB
95892013-02-08 Richard Biener <rguenther@suse.de>
9590
9591 * ira.c (ira): Free broken dominator information.
9592
8e10366f
UB
95932013-02-08 Uros Bizjak <ubizjak@gmail.com>
9594
9595 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9596
f64fb0fa
MP
95972013-02-08 Marek Polacek <polacek@redhat.com>
9598
8e10366f 9599 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 9600
0375167b
RB
96012013-02-08 Richard Biener <rguenther@suse.de>
9602
9603 PR middle-end/56181
9604 * cfgloop.h (flow_loops_find): Adjust.
9605 (bb_loop_header_p): Declare.
9606 * cfgloop.c (bb_loop_header_p): New function split out from ...
9607 (flow_loops_find): ... here. Adjust function signature,
9608 support incremental loop structure update.
9609 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9610 * cfgloopmanip.c (fix_loop_structure): Move ...
9611 * loop-init.c (fix_loop_structure): ... here.
9612 (apply_loop_flags): Split out from ...
9613 (loop_optimizer_init): ... here.
9614 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9615 in incremental mode, only remove dead loops here.
9616
85d768f3
GJL
96172013-02-08 Georg-Johann Lay <avr@gjlay.de>
9618
9619 PR target/54222
9620 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9621 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9622 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9623 (*round<mode>3.libgcc): New insns for fixed-modes.
9624 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9625 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9626 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9627 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9628 implementations. Define to __builtin_avr_absFX,
9629 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9630 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9631 __builtin_avr_countlsFX, respectively.
9632 * config/avr/avr-c.c (target.h): Include it.
9633 (enum avr_builtin_id): New enum.
9634 (avr_resolve_overloaded_builtin): New static function.
9635 (avr_register_target_pragmas): Use it to set
9636 targetm.resolve_overloaded_builtin.
9637 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9638 tree nodes used by DEF_BUILTIN.
9639 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9640 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9641 <AVR_BUILTIN_xxBITS>: Same.
9642
661bc682
RB
96432013-02-08 Richard Biener <rguenther@suse.de>
9644
9645 * cfgloop.c (verify_loop_structure): Properly handle
9646 a loop exiting to another loop header.
9647 * ira-int.h (ira_loops): Remove.
9648 * ira.c (ira_loops): Remove.
9649 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9650 (do_reload): Use loop_optimizer_finalize.
9651 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9652 number_of_loops to access the loop tree.
9653 (more_one_region_p): Likewise.
9654 (finish_loop_tree_nodes): Likewise.
9655 (rebuild_regno_allocno_maps): Likewise.
9656 (mark_loops_for_removal): Likewise.
9657 (mark_all_loops_for_removal): Likewise.
9658 (remove_unnecessary_regions): Likewise.
9659 (ira_build): Likewise.
9660 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9661
0d5049b2
RB
96622013-02-08 Richard Biener <rguenther@suse.de>
9663
9664 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9665 * ipa-pure-const.c (analyze_function): Avoid calling
9666 mark_irreducible_loops twice.
8e10366f 9667 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 9668
499f32e8
DM
96692013-02-07 David S. Miller <davem@davemloft.net>
9670
9671 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9672 on 'reg'.
9673 * var-tracking.c (vt_add_function_parameter): Test the presence of
9674 HAVE_window_save properly and do not remap argument registers when
9675 we have a leaf function.
9676
6edc3e32
UB
96772013-02-07 Uros Bizjak <ubizjak@gmail.com>
9678
9679 PR bootstrap/56227
9680 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9681 instead of "ll".
9682 * config/i386/i386.c (ix86_print_operand): Ditto.
9683
5306401f
VM
96842013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9685
6edc3e32 9686 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 9687
027ece11
VM
96882013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9689
9690 PR rtl-optimization/56225
9691 * lra-constraints.c (process_alt_operands): Check that reload hard
9692 reg can hold value for strict_low_part.
9693
f980dfdb
JJ
96942013-02-07 Jakub Jelinek <jakub@redhat.com>
9695
9696 PR debug/56154
9697 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9698 dwarf2out_end_function.
9699 (in_first_function_p, maybe_at_text_label_p,
9700 first_loclabel_num_not_at_text_label): New variables.
9701 (dwarf2out_var_location): In the first function find out
6edc3e32 9702 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
9703 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9704 functions.
9705
73dd3123
EB
97062013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9707
9708 PR rtl-optimization/56178
9709 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9710 SUBREG of a register. Tidy up related block of code.
9711 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9712 note if the source is a register or a SUBREG of a register.
9713
e3936f47
JJ
97142013-02-07 Jakub Jelinek <jakub@redhat.com>
9715
9716 PR target/56228
9717 * config/rs6000/rs6000.md (ptrm): New mode attr.
9718 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9719 call_value_indirect_aix<pttrsize>,
9720 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9721 m in constraints.
9722
d96d674b
MH
97232013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9724
9725 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9726 if -bnortl. Convert to strcmp and strncmp.
9727
921f2dee
AM
97282013-02-07 Alan Modra <amodra@gmail.com>
9729
9730 PR target/54009
9731 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9732 addresses won't wrap when offsetting.
9733 (rs6000_secondary_reload): Provide secondary reloads needed for
9734 wrapping LO_SUM addresses.
9735
d09c7dba
TS
97362013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9737
9738 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9739 MACH, just __MACH__.
9740
a44bbd48
RB
97412013-02-06 Richard Biener <rguenther@suse.de>
9742
9743 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9744 instead of calling fix_loop_structure.
9745
6d840d99
JJ
97462013-02-06 Jakub Jelinek <jakub@redhat.com>
9747
9748 PR middle-end/56217
9749 * omp-low.c (use_pointer_for_field): Return false if
9750 lower_send_shared_vars doesn't generate any copy-out code.
9751
0f33baa9
TV
97522013-02-06 Tom de Vries <tom@codesourcery.com>
9753
9754 PR rtl-optimization/56131
9755 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9756 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9757 of the label is NULL. Add comment.
9758
11f1e3ab
JJ
97592013-02-05 Jakub Jelinek <jakub@redhat.com>
9760
31502f9f
JJ
9761 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9762
a74db9bd
JJ
9763 PR sanitizer/55374
9764 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9765 (STATIC_LIBTSAN_LIBS): Likewise.
9766 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9767 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9768 is defined, don't add anything else beyond that.
9769 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9770 (LINK_COMMAND_SPEC): Use them.
9771
11f1e3ab
JJ
9772 PR tree-optimization/56205
9773 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9774 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9775 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9776
14ac6aa2
RB
97772013-02-05 Richard Biener <rguenther@suse.de>
9778
9779 PR tree-optimization/53342
9780 PR tree-optimization/53185
9781 * tree-vectorizer.h (vect_check_strided_load): Remove.
9782 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9783 not disallow peeling for vectorized strided loads.
9784 (vect_check_strided_load): Make static and simplify.
9785 (vect_analyze_data_refs): Adjust.
9786 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9787 correctly when vectorizing strided loads.
9788
6f22445a
RB
97892013-02-05 Richard Biener <rguenther@suse.de>
9790
9791 * doc/install.texi: Refer to ISL, not PPL.
9792
39f9719e
JH
97932013-02-05 Jan Hubicka <jh@suse.cz>
9794
ec4224ac
JH
9795 PR tree-optimization/55789
9796 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9797
97982013-02-05 Jan Hubicka <jh@suse.cz>
9799
9800 PR tree-optimization/55789
39f9719e
JH
9801 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9802 the dead call anyway.
9803
956d3b33
EB
98042013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9805
9806 PR sanitizer/55374
9807 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9808
98092013-02-04 Alexander Potapenko <glider@google.com>
9810 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9811 Jakub Jelinek <jakub@redhat.com>
9812
9813 PR sanitizer/55617
9814 * config/darwin.c (sort_ctor_records): Stabilized qsort
9815 on constructor priority by using original position.
9816 (finalize_ctors): New routine to sort constructors by
9817 priority before use in assemble_integer.
9818 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9819
7ac3af38
JJ
98202013-02-04 Jakub Jelinek <jakub@redhat.com>
9821
9822 PR libstdc++/54314
9823 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9824 about visibility on artificial decls.
9825 * config/sol2.c (solaris_assemble_visibility): Likewise.
9826
152689dc
KT
98272013-02-04 Kai Tietz <ktietz@redhat.com>
9828
9829 PR target/56186
9830 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9831 argument and improve checking of return-argument types for 16-byte
9832 modes.
9833 (ix86_function_value_1): Add additional valtype argument on call
9834 of function_value_64.
9835 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9836 handling infunction_value_64 function.
9837
2b5987b5
MGD
98382013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9839
7ac3af38 9840 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9841
14597080
RB
98422013-02-04 Richard Biener <rguenther@suse.de>
9843
9844 PR tree-optimization/56188
9845 * tree-ssa-structalias.c (label_visit): Consider case with
9846 initially non-empty points-to set.
9847 (perform_var_substitution): Dump node mapping and clean up.
9848
ed73881e
RG
98492013-02-04 Richard Guenther <rguenther@suse.de>
9850
9851 PR lto/56168
9852 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9853 node prevail as last resort.
9854 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9855 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9856
139a0707
RB
98572013-02-04 Richard Biener <rguenther@suse.de>
9858
9859 PR tree-optimization/56113
9860 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9861 Merge into ...
9862 (equiv_class_lookup_or_add): ... this.
9863 (label_visit): Adjust and fix error in previous patch.
9864 (perform_var_substitution): Adjust.
9865
50fe8924
OE
98662013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9867
9868 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9869 * config/sh/sh4-300.md: Likewise.
9870 * config/sh/sh4a.md: Likewise.
9871 * config/sh/constraints.md: Likewise.
9872 * config/sh/sh.md: Likewise.
9873 * config/sh/netbsd-elf.h: Likewise.
9874 * config/sh/predicates.md: Likewise.
9875 * config/sh/sh-protos.h: Likewise.
9876 * config/sh/ushmedia.h: Likewise.
9877 * config/sh/linux.h: Likewise.
9878 * config/sh/sh.c: Likewise.
9879 * config/sh/superh.h: Likewise.
9880 * config/sh/elf.h: Likewise.
9881 * config/sh/sh4.md: Likewise.
9882 * config/sh/sh.h: Likewise.
9883
1a04ac2b
JDA
98842013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9885
9886 * config/pa/constraints.md: Adjust unused letters. Change "T"
9887 constraint to match_test floating_point_store_memory_operand().
9888 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9889 (base14_operand): New.
9890 (floating_point_store_memory_operand): New.
9891 (integer_store_memory_operand): Revise to use base14_operand and
9892 reg_plus_base_memory_operand.
9893 (move_dest_operand): Allow symbolic_memory_operands.
9894 (symbolic_memory_operand): Check for LO_SOM.
9895 (symbolic_operand): Change default case to break.
9896 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9897 CONST_DOUBLE values to be reloaded by putting them into memory when
9898 the destination is a floating point register.
9899 (movdf): Remove code to handle CONST_DOUBLE.
9900 (movsf): Likewise.
9901 (reload_indf_r1): New.
9902 (reload_insf_r1): New.
9903 Consistently use "Q" and "T" constraints with integer and floating
9904 point move instructions, respectively.
9905 (movdi): Remove FAIL.
9906 Change predicate for source operand unamed DImode move from
9907 general_operand to move_src_operand.
9908 (umulsidi3): Change predicate for destination operand to
9909 register_operand.
9910 Likewise for similar unamed patterns.
9911 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9912 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9913 (hppa_legitimize_address): Simplify mask calculation.
9914 (pa_emit_move_sequence): Revised handling of secondary reloads from
9915 REG+D addresses for floating point loads and stores. Directly handle
9916 loading CONST0_RTX (mode) to a floating point register.
9917 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9918 to floating point registers. Don't restrict secondary reloads to
9919 floating point registers to integer modes. Revise some comments and
9920 cleanup some code.
9921 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9922 (pa_legitimate_address_p): New.
9923 (pa_legitimize_reload_address): New.
9924 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9925 (STRICT_REG_OK_FOR_BASE_P): New.
9926 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9927 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9928
3bf65591
DE
99292013-02-03 David Edelsohn <dje.gcc@gmail.com>
9930 Andrew Dixie <andrewd@gentrack.com>
9931
9932 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9933 flag set.
9934
c0a8a3e6
RS
99352013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9936
9937 * expmed.c (extract_bit_field_1): Pass the full width of the
9938 structure to get_best_reg_extraction_insn.
9939
99113dff
DE
99402013-02-01 David Edelsohn <dje.gcc@gmail.com>
9941
9942 PR target/54601
9943 * configure.ac (use_cxa_atexit): Add AIX.
9944 * configure: Regenerate.
9945
9946 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9947
ddd84654
JJ
99482013-02-01 Jakub Jelinek <jakub@redhat.com>
9949
9950 PR debug/54793
9951 * final.c (need_profile_function): New variable.
9952 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9953 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9954 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9955 notes, targetm.asm_out.function_prologue doesn't emit anything,
9956 HAVE_prologue and profiler should be emitted before prologue,
9957 set need_profile_function instead of emitting it.
9958 (final_scan_insn): If need_profile_function, emit
9959 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9960 NOTE_INSN_FUNCTION_BEG note.
9961
99622013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
9963
9964 * config/rs6000/rs6000.md (smulditi3): New.
9965 (umulditi3): New.
9966
ff2a9d88
RH
9967 * config/alpha/alpha.md (umulditi3): New.
9968
14d52b90
DE
99692013-02-01 David Edelsohn <dje.gcc@gmail.com>
9970
9971 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9972 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9973
8c7ca45c
RB
99742013-02-01 Richard Biener <rguenther@suse.de>
9975
9976 PR tree-optimization/56113
9977 * tree-ssa-structalias.c (label_visit): Reduce work for
9978 single-predecessor nodes.
9979
9f419393
EB
99802013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9981
9982 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9983 range isn't testing for zero.
9984
c5f4be84
SB
99852013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9986
9987 PR middle-end/56113
9988 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9989
dbdbd982
NC
99902013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9991 Nick Clifton <nickc@redhat.com>
9992
9993 * config/v850/constraints.md (Q): Define as a memory constraint.
9994 * config/v850/predicates.md (label_ref_operand): New predicate.
9995 (e3v5_shift_operand): New predicate.
9996 (ior_operator): New predicate.
9997 * config/v850/t-v850: Add e3v5 multilib.
9998 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9999 (v850_gen_movdi): Prototype.
10000 * config/v850/v850.c: Add support for e3v5 architecture.
10001 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10002 TARGET_V850E_UP.
10003 (construct_save_jarl): Add e3v5 long JARL support.
10004 (v850_adjust_insn_length): New function. Adjust length of call
10005 insns when using e3v5 instructions.
10006 (v850_gen_movdi): New function: Generate instructions to move a
10007 DImode value.
10008 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10009 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10010 (TARGET_USE_FPU): Enable for e3v5.
10011 (CONST_OK_FOR_W): New macro.
10012 (ADJUST_INSN_LENGTH): Define.
10013 * config/v850/v850.md (UNSPEC_LOOP): Define.
10014 (attr cpu): Add v850e3v5.
10015 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10016 (movdi): New pattern.
10017 (movdi_internal): New pattern.
10018 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10019 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10020 (cstoresf4): Likewise.
10021 (cstoredf4): Likewise.
10022 (insv): New pattern.
10023 (rotlso3_a): New pattern.
10024 (rotlsi3_b): New pattern
10025 (rotlsi3_v850e3v5): New pattern.
10026 (doloop_begin): New pattern.
10027 (fix_loop_counter): New pattern.
10028 (doloop_end): New pattern.
10029 (branch_normal): Add e3v5 long branch support.
10030 (branch_invert): Likewise.
10031 (branch_z_normal): Likewise.
10032 (branch_z_invert): Likewise.
10033 (branch_nz_normal): Likewise.
10034 (branch_nz_invert): Likewise.
10035 (call_internal_short): Add e3v5 register-indirect JARL support.
10036 (call_internal_long): Likewise.
10037 (call_value_internal_short): Likewise.
10038 (call_value_internal_long): Likewise.
10039 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10040 (mloop): New option.
10041 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 10042 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 10043
73861a41
PK
100442013-01-31 Paul Koning <ni1d@arrl.net>
10045
10046 PR debug/55059
10047 PR debug/54508
10048 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10049 children if parent is a class.
10050 (prune_unused_types_prune): Don't add DW_AT_declaration.
10051
e44978dc
RB
100522013-01-31 Richard Biener <rguenther@suse.de>
10053
10054 PR tree-optimization/56157
10055 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10056 match up operand with SLP child.
10057
90b10dec
JM
100582013-01-31 Jason Merrill <jason@redhat.com>
10059
04d2dadd 10060 PR debug/54410
90b10dec
JM
10061 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10062 parameters the first time.
10063 (gen_scheduled_generic_parms_dies): Check completeness here.
10064
6e616110
RB
100652013-01-31 Richard Biener <rguenther@suse.de>
10066
10067 PR middle-end/53073
10068 * common.opt (faggressive-loop-optimizations): New flag,
10069 enabled by default.
10070 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10071 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10072 infer_loop_bounds_from_undefined by it.
10073
636f59cf
RB
100742013-01-31 Richard Biener <rguenther@suse.de>
10075
10076 PR tree-optimization/56150
10077 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10078 visit virtual operands.
10079 (find_uses_to_rename_bb): Likewise.
10080
100812013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
10082
10083 PR tree-optimization/56150
10084 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10085 mixed store non-store stmts.
10086
32887460
JJ
100872013-01-30 Jakub Jelinek <jakub@redhat.com>
10088
e60e09a0
JJ
10089 PR sanitizer/55374
10090 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10091 LIBASAN_EARLY_SPEC is defined.
10092 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10093 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10094 before %o.
10095 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10096
32887460
JJ
10097 PR c++/55742
10098 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10099 invalid args instead of ICEing on it.
10100 (ix86_valid_target_attribute_tree): Return error_mark_node if
10101 ix86_valid_target_attribute_inner_p failed.
10102 (ix86_valid_target_attribute_p): Return false only if
10103 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10104 target("default") attribute.
10105 (sorted_attr_string): Change argument from const char * to tree,
10106 merge in all target attribute arguments rather than just one.
10107 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10108 instead of free. Avoid using strcat.
10109 (ix86_mangle_function_version_assembler_name): Mangle
10110 target("default") as if no target attribute is present. Adjust
10111 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10112 instead of xmalloc and XDELETEVEC instead of free.
10113 (ix86_function_versions): Don't return true if one of the decls
10114 doesn't have target attribute. If they don't and one of the decls
10115 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10116 sorted_attr_string caller. Use XDELETEVEC instead of free.
10117 (ix86_supports_function_versions): Remove.
10118 (make_name): Fix up formatting.
10119 (make_dispatcher_decl): Remove resolver_name and its initialization.
10120 Avoid leaking memory.
10121 (is_function_default_version): Return true if there is
10122 target("default") attribute rather than no target attribute at all.
10123 (make_resolver_func): Avoid leaking memory.
10124 (ix86_generate_version_dispatcher_body): Likewise.
10125 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10126 * target.def (supports_function_versions): Remove.
10127 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10128 * doc/tm.texi: Regenerated.
10129
73cca0cc
VM
101302013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10131
10132 PR rtl-optimization/56144
10133 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10134 for values with side effects.
10135
11452e7b
RB
101362013-01-30 Richard Biener <rguenther@suse.de>
10137
10138 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10139 (sparseset_pop): Likewise.
10140 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10141 to be able to use quick_push in the worker loop.
10142
01cb1ef5
MP
101432013-01-30 Marek Polacek <polacek@redhat.com>
10144
10145 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10146
e892936e
RB
101472013-01-30 Richard Biener <rguenther@suse.de>
10148
10149 PR lto/56147
6edc3e32 10150 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 10151
cc06c01d
GJL
101522013-01-30 Georg-Johann Lay <avr@gjlay.de>
10153
10154 PR tree-optimization/56064
10155 * fixed-value.c (fixed_from_double_int): New function.
10156 * fixed-value.h (fixed_from_double_int): New prototype.
10157 (const_fixed_from_double_int): New static inline function.
10158 * fold-const.c (native_interpret_fixed): New static function.
10159 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10160 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10161 (native_encode_fixed): New static function.
10162 (native_encode_expr) <FIXED_CST>: Use it.
10163 (native_interpret_int): Move double_int worker code to...
10164 * double-int.c (double_int::from_buffer): ...this new static method.
10165 * double-int.h (double_int::from_buffer): Prototype it.
10166
d394a308
RB
101672013-01-30 Richard Biener <rguenther@suse.de>
10168
10169 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10170 New pointer-map and obstack.
10171 (init_alias_vars): Allocate pointer-map and obstack.
10172 (delete_points_to_sets): Free them.
10173 (find_what_var_points_to): Cache result.
10174 (find_what_p_points_to): Adjust for changed interface of
10175 find_what_var_points_to.
10176 (compute_points_to_sets): Likewise.
10177 (ipa_pta_execute): Likewise.
10178
20804d96
RO
101792013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10180
10181 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10182 * configure: Regenerate.
10183 * config.in: Regenerate.
10184 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10185 #nobits/#progbits if supported.
10186
a7ad88a2
OE
101872013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10188
10189 PR target/56121
10190 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10191 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10192 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10193
7af79f92
GY
101942013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10195
91bfca59
OE
10196 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10197 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 10198
753bcf7b
GY
101992013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10200
91bfca59
OE
10201 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10202 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 10203
8cbc2ea8
GY
102042013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10205
91bfca59
OE
10206 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10207 declaration.
10208 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10209 * config/arm/cortex-a7.md: New bypasses using
10210 arm_mac_accumulator_is_result.
8cbc2ea8 10211
697a3325
GY
102122013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10213
91bfca59 10214 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 10215 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
10216 (cortex_a7_fpfmad): New reservation.
10217 (cortex_a7_fpmacs): Use ffmas and update required units.
10218 (cortex_a7_fpmuld): Update required units and latency.
10219 (cortex_a7_fpmacd): Likewise.
10220 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10221 (cortex_a7_neon). Likewise.
10222 (bypass) Update participating units.
697a3325 10223
29637783
GY
102242013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10225
91bfca59
OE
10226 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10227 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10228 from fmac to ffma.
10229 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10230 (vfp_fmul): Use ffmad.
10231 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10232 (cortex_r4_fmacd): Use ffmad.
10233 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10234 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10235 (cortex_a9_fmacd): Use ffmad.
10236 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10237 (cortex_a8_vfp_macd): Use ffmad.
10238 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10239 (cortex_a5_fpmacd): Use ffmad.
10240 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10241 (cortex_a15_vfp_macd): Use ffmad.
10242 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 10243
2ee8a2d5
JM
102442013-01-29 Jason Merrill <jason@redhat.com>
10245
10246 PR libstdc++/54314
10247 * varasm.c (default_assemble_visibility): Don't warn about
10248 visibility on artificial decls.
10249
78d087bc
RB
102502013-01-29 Richard Biener <rguenther@suse.de>
10251
10252 PR tree-optimization/56113
10253 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10254 the bitmap leader.
10255 (label_visit): Free duplicate bitmaps and record the leader instead.
10256 (perform_var_substitution): Adjust.
10257
83ba4d6f
RB
102582013-01-29 Richard Biener <rguenther@suse.de>
10259
10260 PR tree-optimization/55270
10261 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10262 the CFG, schedule loops for fixup.
10263
66dfe13f
NC
102642013-01-29 Nick Clifton <nickc@redhat.com>
10265
10266 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10267 SP_REG.
10268
5a579c3b
LE
102692013-01-28 Leif Ekblad <leif@rdos.net>
10270
10271 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10272 * config/i386/i386.h (TARGET_RDOS): New macro.
10273 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10274 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10275 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10276 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10277 DEFAULT_LARGE_SECTION_THRESHOLD.
10278 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10279 * config/i386/rdos.h: New file.
10280 * config/i386/rdos64.h: New file.
10281
51e44392
BS
102822013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10283
10284 PR other/54814
10285 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10286 TEST_HARD_REG_BIT.
10287
db1fb332
JJ
102882013-01-28 Jakub Jelinek <jakub@redhat.com>
10289
10290 PR rtl-optimization/56117
10291 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10292 call cselib_lookup_from_insn on the MEM before calling
10293 add_insn_mem_dependence.
10294
16917761
RB
102952013-01-28 Richard Biener <rguenther@suse.de>
10296
10297 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10298 to a stmt that didn't have one.
10299 (copy_phis_for_bb): Likewise for PHI arguments.
10300 (copy_debug_stmt): Likewise for debug stmts.
10301
b9fc0497
RB
103022013-01-28 Richard Biener <rguenther@suse.de>
10303
10304 PR tree-optimization/56034
6edc3e32 10305 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
10306 (partition_builtin_p): Adjust.
10307 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10308 it is the last partition.
10309 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10310 up the vertex for the definition.
10311 (classify_partition): Classify whether a partition is a
10312 PKIND_REDUCTION, thus has uses outside of the loop.
10313 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10314 Merge all PKIND_REDUCTION partitions into the last partition.
10315 (tree_loop_distribution): Seed partitions from reductions as well.
10316
aa710d25
JJ
103172013-01-28 Jakub Jelinek <jakub@redhat.com>
10318
0bfbca58
JJ
10319 PR tree-optimization/56125
10320 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10321 pow(x,c) into sqrt(x) * powi(x, n/2) or
10322 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10323 optimizing for size.
10324 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10325 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10326 integer.
10327
aa710d25
JJ
10328 PR tree-optimization/56094
10329 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10330 to UNKNOWN_LOCATION while gimplifying expr.
10331
77dc5297
UB
103322013-01-27 Uros Bizjak <ubizjak@gmail.com>
10333
10334 PR target/56114
10335 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10336 operand 0 in movabs insn template for -masm=intel asm alternative.
10337 (*movabs<mode>_2): Ditto for operand 1.
10338
0bfbca58 103392013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
10340
10341 PR target/54663
10342 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10343 of microblaze-c.o
10344
0bfbca58 103452013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
10346
10347 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10348 tm_file.
10349
0bfbca58 103502013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
10351
10352 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10353 Undef to avoid warning.
10354
478f60f9
MH
103552013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10356
10357 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10358 * configure: Regenerate.
10359
d7fa6ee2
JJ
103602013-01-25 Jakub Jelinek <jakub@redhat.com>
10361
10362 PR tree-optimization/56098
10363 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10364 for stmts with volatile ops.
10365 (cond_store_replacement): Don't optimize if assign has volatile ops.
10366 (cond_if_else_store_replacement_1): Don't optimize if either
10367 then_assign or else_assign have volatile ops.
10368 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10369 volatile ops.
10370
f8fe87bd
GJL
103712013-01-25 Georg-Johann Lay <avr@gjlay.de>
10372
10373 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10374
28398d0d
GJL
103752013-01-25 Georg-Johann Lay <avr@gjlay.de>
10376
10377 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10378 missing ':' in asm example.
10379
b7d7d917
TB
103802013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10381
10382 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10383 entries into lane and laneq entries.
77dc5297
UB
10384 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10385 Remove AdvSIMD scalar modes.
b7d7d917
TB
10386 (aarch64_sq<r>dmulh_laneq<mode>): New.
10387 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10388 modes.
10389 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10390 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10391 * config/aarch64/iterators.md (VCOND): New.
10392 (VCONQ): New.
10393
556f9906
GJL
103942013-01-25 Georg-Johann Lay <avr@gjlay.de>
10395
10396 PR target/54222
10397 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10398 Add NULL LIBNAME argument to existing definitions.
10399 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10400 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10401 * config/avr/avr.c (DEF_BUILTIN): Same.
10402 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10403 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10404 implementation is available (DECL_ASSEMBLER_NAME is set).
10405 (avr_fold_absfx): New static function.
10406 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10407 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10408 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10409 AVR_BUILTIN_ABSLLK.
10410 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10411 (abshk, absk, abslk, absllk): Provide as static inline functions.
10412
1f546bbb
MP
104132013-01-25 Marek Polacek <polacek@redhat.com>
10414
10415 PR tree-optimization/56035
10416 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10417
7e184bd7
UB
104182012-01-24 Uros Bizjak <ubizjak@gmail.com>
10419
10420 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10421 (*movtf_internal_rex64): Add (!o,C) alternative
10422 (*movxf_internal_rex64): Ditto.
10423 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10424
f5ba49ac
SM
104252013-01-24 Shenghou Ma <minux.ma@gmail.com>
10426
10427 * doc/invoke.texi: fix typo.
10428 * doc/objc.texi: fix typo.
10429
a6343728
RS
104302013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10431
10432 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10433 for the first two alternatives.
10434
cd030c07
DN
104352013-01-24 Diego Novillo <dnovillo@google.com>
10436
77dc5297 10437 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
10438 (ggc-zone.o): Remove.
10439 * configure.ac: Remove option --with-gc.
10440 * configure: Re-generate.
10441 * doc/install.texi: Remove documentation for --with-gc.
10442 * gengtype.c (write_enum_defn): Remove. Update all users.
10443 (write_Types_process_field): Remove generation of gt_e_* argument.
10444 (output_type_enum): Remove. Update all users.
10445 (write_enum_defn): Remove. Update all users.
10446 (enum alloc_zone): Remove. Update all users.
77dc5297 10447 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
10448 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10449 Update all callers.
10450 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 10451 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
10452 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10453 Update all users.
aaf1e810 10454 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
10455 (struct alloc_zone): Remove.
10456 (ggc_internal_alloc_zone_stat): Remove.
10457 (ggc_internal_cleared_alloc_zone_stat): Remove.
10458 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
10459 (ggc_pch_count_object): Remove last argument. Update all users.
10460 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
10461 (struct alloc_zone): Remove.
10462 * ggc-zone.c: Remove.
77dc5297 10463 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
10464 (struct alloc_zone): Remove.
10465 (ggc_alloc_typed_stat): Remove.
10466 (ggc_alloc_typed): Remove.
10467 (ggc_splay_alloc): Remove first argument.
10468 (rtl_zone): Remove. Update all users.
10469 (tree_zone): Remove. Update all users.
10470 (tree_id_zone): Remove. Update all users.
10471 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 10472 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 10473 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 10474 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 10475
a861ffa4
GJL
104762013-01-24 Georg-Johann Lay <avr@gjlay.de>
10477
10478 * config/avr/avr.c (avr_out_fract): Make register numbers that
10479 might be outside of source operand signed.
10480
593c0ddd
UB
104812013-01-24 Uros Bizjak <ubizjak@gmail.com>
10482
10483 * config/i386/constraints.md (Yf): New constraint.
10484 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10485 of f constraint to conditionaly disable x87 register preferences.
10486 (*movdf_internal): Ditto.
10487 (*movsf_internal): Ditto.
10488
e86c0101
SB
104892013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10490
10491 PR inline-asm/55934
10492 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10493 that have operands with impossible constraints.
10494 Add a FIXME for a speed-up opportunity.
10495 * lra-constraints.c (process_alt_operands): Verify that a class
10496 selected from constraints on asms is valid for the operand mode.
10497 (curr_insn_transform): Remove incorrect comment.
10498
f6fee35f
DE
104992013-01-23 David Edelsohn <dje.gcc@gmail.com>
10500
10501 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10502 TOC operand is a valid symbol ref in the constant pool.
10503
105042013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 10505
aaf1e810 10506 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 10507
dc62d7d1
GJL
105082013-01-23 Georg-Johann Lay <avr@gjlay.de>
10509
10510 PR target/54222
10511 * config/avr/stdfix.h: New file.
10512 * t-avr (stdfix-gcc.h): New rule to build it.
10513 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10514
2660d12d
KS
105152013-01-23 Kostya Serebryany <kcc@google.com>
10516
77dc5297
UB
10517 * config/darwin.h: remove dependency on
10518 CoreFoundation (asan on Mac OS).
2660d12d 10519
a70418fc
JJ
105202013-01-23 Jakub Jelinek <jakub@redhat.com>
10521
10522 PR target/49069
10523 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10524 instead of cmpdi_operand for first comparison operand.
10525 Don't assert that comparison operands aren't both constants.
10526
47876a2a
JW
105272013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10528
10529 * doc/install.texi (Downloading the Source): Update references to
10530 downloading separate components.
10531
105322013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
10533
10534 * doc/extend.texi (__int128): Improve grammar.
10535
47876a2a 105362013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
10537
10538 PR target/56028
10539 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10540 alternative to (o,r).
10541 (*movdi_internal_rex64): Remove (!o,n) alternative.
10542 (DImode immediate->memory splitter): Remove.
10543 (DImode immediate->memory peephole2): Remove.
10544 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10545 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10546 alternative to (!o,*r).
10547 (*movtf_internal_sse): New pattern.
10548 (*movxf_internal_rex64): New pattern.
10549 (*movxf_internal): Disable for TARGET_64BIT.
10550 (*movdf_internal_rex64): Remove (!o,F) alternative.
10551
3a984f10
JJ
105522013-01-22 Jakub Jelinek <jakub@redhat.com>
10553
502498d5
JJ
10554 PR middle-end/56074
10555 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10556 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10557 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10558 stmt locations where LOCATION_LOCUS of the stmt location is
10559 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10560
3a984f10
JJ
10561 PR target/55686
10562 * config/i386/i386.md (UNSPEC_STOS): New.
10563 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10564 *strsetqi_1): Add UNSPEC_STOS.
10565
fa817f7f
PC
105662013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10567
10568 PR c++/56067
10569 * doc/invoke.texi: Remove left over -Wsynth example.
10570
8f498c1b
JJ
105712013-01-21 Jakub Jelinek <jakub@redhat.com>
10572
10573 PR tree-optimization/56051
10574 * fold-const.c (fold_binary_loc): Don't fold
10575 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10576 a narrowing conversion, or widening conversion from signed
10577 to unsigned.
10578
47876a2a 105792013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
10580
10581 PR rtl-optimization/56023
10582 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10583 dependent on debug instruction.
10584
5b9db1bc
MJ
105852013-01-21 Martin Jambor <mjambor@suse.cz>
10586
10587 PR middle-end/56022
10588 * function.c (allocate_struct_function): Call
10589 invoke_set_current_function_hook earlier.
10590
e8bb7d68
JJ
105912013-01-21 Jakub Jelinek <jakub@redhat.com>
10592
10593 * reload1.c (init_reload): Only initialize reload_obstack
10594 during the first call.
10595
616a4e32
MP
105962013-01-21 Marek Polacek <polacek@redhat.com>
10597
10598 * cfgloop.c (verify_loop_structure): Fix up grammar.
10599
4401981b
YHH
106002013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10601
10602 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10603 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10604
8e87740b
RR
106052013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10606
10607 PR target/56058
10608 * config/arm/marvell-pj4.md: Update copyright year.
10609 Fix up use of alu to alu_reg and simple_alu_imm.
10610
47876a2a 106112013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
10612
10613 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10614
89d56d79
VM
106152013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10616
10617 PR target/55433
10618 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 10619 insn for secondary memory move when memory mode should be different.
89d56d79 10620
fe603553
JDA
106212013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10622
10623 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10624 atomic_storedi_1): New patterns.
10625
01284895
VK
106262013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10627
10628 btver2 pipeline descriptions.
10629 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10630 descriptions.
10631 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 10632 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
10633 type attributes.
10634 * config/i386/btver2.md: New file describing btver2 pipelines.
10635
5630e3e1
JL
106362013-01-19 Andrew Pinski <apinski@cavium.com>
10637
10638 PR tree-optimization/52631
10639 * tree-ssa-sccvn (visit_use): Before looking up the original
10640 statement, try looking up the simplified expression.
10641
650ae806
AG
106422013-01-19 Anthony Green <green@moxielogic.com>
10643
10644 * config/moxie/moxie.c (moxie_expand_prologue): Set
10645 current_function_static_stack_size.
10646
e300ec2d
JJ
106472013-01-18 Jakub Jelinek <jakub@redhat.com>
10648
10649 PR tree-optimization/56029
10650 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10651 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10652
a3d7af04
SS
106532013-01-18 Sharad Singhai <singhai@google.com>
10654
10655 PR tree-optimization/55995
10656 * dumpfile.c (dump_loc): Print location only if available.
10657 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10658
66aa7879
VM
106592013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10660
10661 PR target/55433
10662 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10663 secondary memory move.
10664 (inherit_reload_reg): Use rclass instead of cl for
10665 check_secondary_memory_needed_p.
10666
3f0fee7b
JJ
106672013-01-18 Jakub Jelinek <jakub@redhat.com>
10668
10669 PR middle-end/56015
10670 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 10671 the case where writing real complex part of target modifies op1.
3f0fee7b 10672
70c67693
JG
106732013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10674
10675 * config/aarch64/aarch64-simd.md
10676 (aarch64_vcond_internal<mode>): Handle unordered cases.
10677 * config/aarch64/iterators.md (v_cmp_result): New.
10678
df8de9b3
YHH
106792013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10680 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10681
10682 * config/arm/marvell-pj4.md: New file.
10683 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10684 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10685 (generic_vfp): Likewise.
10686 * config/arm/arm-cores.def: Add marvell-pj4.
10687 * config/arm/arm-tune.md: Regenerate.
10688 * config/arm/arm-tables.opt: Regenerate.
10689 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10690 * doc/invoke.texi: Document marvell-pj4.
10691
be30c356
TB
106922013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10693
10694 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10695
0bfbca58 106962013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
10697
10698 PR debug/54114
10699 PR debug/54402
10700 PR debug/49888
10701 * var-tracking.c (negative_power_of_two_p): New.
10702 (global_get_addr_cache, local_get_addr_cache): New.
10703 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10704 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10705 heading comment.
10706 (vt_stack_offset_p): Remove.
10707 (vt_canon_true_dep): Always canonicalize loc's address.
10708 (clobber_overlapping_mems): Make sure we have a MEM.
10709 (local_get_addr_clear_given_value): New.
10710 (val_reset): Clear local cached entries.
10711 (compute_bb_dataflow): Create and release the local cache.
10712 Disable duplicate MEMs clobbering.
10713 (emit_notes_in_bb): Clobber MEMs likewise.
10714 (vt_emit_notes): Create and release the local cache.
10715 (vt_initialize, vt_finalize): Create and release the global
10716 cache, respectively.
1f6bc337 10717 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 10718
0bfbca58 107192013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
10720
10721 PR libmudflap/53359
10722 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10723 not found in the symtab.
10724
0bfbca58 107252013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 10726
c350ba53 10727 PR debug/56006
3aa03517
AO
10728 PR rtl-optimization/55547
10729 PR rtl-optimization/53827
10730 PR debug/53671
10731 PR debug/49888
10732 * alias.c (offset_overlap_p): New, factored out of...
10733 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10734 the conservative special case for symbolic constants. Don't
10735 adjust zero sizes on alignment.
10736
c664546f
JL
107372013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10738
10739 PR rtl-optimization/52573
10740 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10741 REG_UNUSED for the same register.
10742
1bd3f750
MP
107432013-01-17 Richard Biener <rguenther@suse.de>
10744 Marek Polacek <polacek@redhat.com>
10745
10746 PR rtl-optimization/55833
10747 * loop-unswitch.c (unswitch_loops): Move loop verification...
10748 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10749 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10750 Set it to true when we're removing a loop from hierarchy tree in
10751 an irreducible region.
10752 (fix_bb_placements): Adjust caller.
10753 (fix_loop_placements): Likewise.
10754
e52a8b71
GJL
107552013-01-17 Georg-Johann Lay <avr@gjlay.de>
10756
10757 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10758 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10759 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10760 Remove ID. Adjust comments.
10761 * config/avr/avr-c.c (avr_builtin_name): Remove.
10762 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10763 * config/avr/avr.c (avr_tolower): New static function.
10764 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10765 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10766 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10767 default expansion.
10768
8386a7ea
JH
107692013-01-17 Jan Hubicka <jh@suse.cz>
10770
610fb637 10771 PR tree-optimization/55273
8386a7ea
JH
10772 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10773
47876a2a 107742013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
10775
10776 PR target/55981
10777 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10778 store through atomic_store<mode>_1.
10779 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10780
8222c37e
MJ
107812013-01-17 Martin Jambor <mjambor@suse.cz>
10782
10783 PR tree-optimizations/55264
10784 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10785 for virtual methods.
10786 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10787 virtual methods before inlining is over.
10788 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10789 virtual functions.
10790 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10791 non-virtual.
10792
79f01c76
VM
107932013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10794
10795 PR rtl-optimization/56005
10796 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10797 pending reads for prefetch.
10798
d0b6bb1b
IB
107992013-01-16 Ian Bolton <ian.bolton@arm.com>
10800
aaf1e810 10801 * config/aarch64/aarch64.md
d0b6bb1b
IB
10802 (*cstoresi_neg_uxtw): New pattern.
10803 (*cmovsi_insn_uxtw): New pattern.
10804 (*<optab>si3_uxtw): New pattern.
10805 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10806 (*<optab>si3_insn_uxtw): New pattern.
10807 (*bswapsi2_uxtw): New pattern.
10808
cb9cf03b
RB
108092013-01-16 Richard Biener <rguenther@suse.de>
10810
10811 * tree-inline.c (tree_function_versioning): Remove set but
10812 never used variable.
10813
2cfc56b9
RB
108142013-01-16 Richard Biener <rguenther@suse.de>
10815
10816 PR tree-optimization/55964
10817 * tree-flow.h (rename_variables_in_loop): Remove.
10818 (rename_variables_in_bb): Likewise.
10819 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10820 (copy_loop_before): Adjust and delete update-ssa status.
10821 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10822 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10823 (rename_variables_in_loop): Remove.
10824 (slpeel_update_phis_for_duplicate_loop): Likewise.
10825 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10826 use available cfg machinery instead of duplicating it.
10827 Update PHI nodes and perform poor-mans SSA update here.
10828 (slpeel_tree_peel_loop_to_edge): Adjust.
10829
c25a0c60
RB
108302013-01-16 Richard Biener <rguenther@suse.de>
10831
10832 PR tree-optimization/54767
10833 PR tree-optimization/53465
10834 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10835 (vrp_visit_phi_node): For PHI arguments coming via backedges
10836 drop all symbolical range information.
10837 (execute_vrp): Compute backedges.
10838
04b535af
RB
108392013-01-16 Richard Biener <rguenther@suse.de>
10840
10841 * doc/install.texi: Update CLooG and ISL requirements to
10842 0.18.0 and 0.11.1.
10843
8b0a1e0b
CB
108442013-01-16 Christian Bruel <christian.bruel@st.com>
10845
10846 PR target/55301
10847 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10848 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10849 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10850
108512013-01-16 DJ Delorie <dj@redhat.com>
10852
10853 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10854 (UNSPECV_SP_SWITCH_E): New.
10855 (sp_switch_1): Change to an unspec.
10856 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10857 replace $r15.
10858
108592013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10860
10861 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10862 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10863 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10864 (expand_mem_thread_fence): Ditto.
10865 (expand_mem_signal_fence): Ditto.
10866 (expand_atomic_load): Ditto.
10867 (expand_atomic_store): Ditto.
10868
0bfbca58 108692013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10870
10871 PR rtl-optimization/55547
10872 PR rtl-optimization/53827
10873 PR debug/53671
10874 PR debug/49888
10875 * alias.c (memrefs_conflict_p): Set sizes to negative after
10876 AND adjustments.
10877
305e3ac1
JJ
108782013-01-15 Jakub Jelinek <jakub@redhat.com>
10879
10880 PR target/55940
10881 * function.c (thread_prologue_and_epilogue_insns): Always
10882 add crtl->drap_reg to set_up_by_prologue.set, even if
10883 stack_realign_drap is false.
10884
f78ac4f2
JBG
108852013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10886
10887 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10888 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10889 *call): Fix indention.
10890
a78a8cc4
TV
108912013-01-15 Tom de Vries <tom@codesourcery.com>
10892
10893 PR target/55876
10894 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10895 Update comment.
10896
0e80383f
VM
108972013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10898
305e3ac1 10899 PR rtl-optimization/55153
0e80383f
VM
10900 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10901
207b5956
MJ
109022013-01-15 Martin Jambor <mjambor@suse.cz>
10903
10904 PR tree-optimization/55920
10905 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10906 accesses as grp_to_be_debug_replaced.
10907
a7818b54
JJ
109082013-01-15 Jakub Jelinek <jakub@redhat.com>
10909
10910 PR tree-optimization/55920
10911 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10912 there is non-useless type conversion needed from debug rhs to lhs,
10913 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10914
b0fe107e
JM
109152013-01-15 Joseph Myers <joseph@codesourcery.com>
10916 Mikael Pettersson <mikpe@it.uu.se>
10917
10918 PR target/43961
10919 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10920 Thumb.
10921 (ASM_OUTPUT_CASE_LABEL): Remove.
10922 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10923 * final.c (shorten_branches): Update alignment of labels before
10924 jump tables if CASE_VECTOR_SHORTEN_MODE.
10925
34ab62ee
RB
109262013-01-15 Richard Biener <rguenther@suse.de>
10927
10928 PR bootstrap/55961
10929 * system.h: Do not include gmp.h for building host tools.
10930
783a3a05
RB
109312013-01-15 Richard Biener <rguenther@suse.de>
10932
10933 PR middle-end/55882
10934 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10935 account for bitpos when computing alignment.
10936
3a579e09
VY
109372013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10938
10939 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10940 (ix86_target_macros_internal): Likewise.
10941
10942 * config/i386/i386.c (m_CORE2I7): Removed.
10943 (m_CORE_HASWELL): New macro.
10944 (m_CORE_ALL): Likewise.
10945 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10946 (initial_ix86_arch_features): Likewise.
10947 (processor_target_table): Initializations for Core avx2.
10948 (cpu_names): New names "core-avx2".
10949 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10950 PROCESSOR_CORE_HASWELL.
10951 (ix86_issue_rate): New case.
10952 (ia32_multipass_dfa_lookahead): Likewise.
10953 (ix86_sched_init_global): Likewise.
10954
10955 * config/i386/i386.h (TARGET_HASWELL): New macro.
10956 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10957 (processor_type): New PROCESSOR_HASWELL.
10958
955f5a07
JJ
109592013-01-15 Jakub Jelinek <jakub@redhat.com>
10960
ff784829
JJ
10961 PR tree-optimization/55955
10962 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10963 *SHIFT_EXPR and *ROTATE_EXPR codes.
10964
955f5a07
JJ
10965 PR tree-optimization/48766
10966 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10967 -ftrapv disable -fwrapv.
10968
aeb8b4e9
GJL
109692013-01-14 Georg-Johann Lay <avr@gjlay.de>
10970
10971 PR target/55974
10972 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10973 etc. to 1 and not to __flash.
10974 Use LL suffix for __INT24_MAX__ with -mint8.
10975 Use ULL suffix for __UINT24_MAX__ with -mint8.
10976
1c494c6a
GJL
109772013-01-14 Georg-Johann Lay <avr@gjlay.de>
10978
10979 * config/avr/avr-arch.h
10980 (struct base_arch_s): Use typedef avr_arch_t instead.
10981 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10982 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10983 * config/avr/avr.c: Same.
10984 * config/avr/avr-devices.c: Same.
10985 * config/avr/driver-avr.c: Same.
10986 * config/avr/gen-avr-mmcu-texi.c: Same.
10987 * config/avr/avr-mcus.def: Adjust comment.
10988
a50344cb
TB
109892013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10990
88e784e6
UB
10991 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10992 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 10993
47876a2a 109942013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
10995 Andi Kleen <ak@linux.intel.com>
10996
10997 PR target/55948
10998 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10999 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11000 memmodel flag.
11001
00892272
GJL
110022013-01-14 Georg-Johann Lay <avr@gjlay.de>
11003
11004 * config/avr/avr-stdint.h: Remove trailing blanks.
11005 * config/avr/avr-log.h: Same.
11006 * config/avr/avr-arch.h: Same.
11007 * config/avr/avr-devices.c: Same.
11008 * config/avr/avr-dimode.md: Same.
11009 * config/avr/predicates.md: Same.
11010 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 11011
00892272
GJL
11012 * config/avr/avr-protos.h: Same. And:
11013 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11014 (init_cumulative_args): Rename to avr_init_cumulative_args.
11015 (expand_prologue): Rename to avr_expand_prologue.
11016 (expand_epilogue): Rename to avr_expand_epilogue.
11017 (adjust_insn_length): Rename to avr_adjust_insn_length.
11018 (notice_update_cc): Rename to avr_notice_update_cc.
11019 (final_prescan_insn): Rename to avr_final_prescan_insn.
11020 * config/avr/avr.c: Same.
11021 * config/avr/avr.h: Same.
11022 * config/avr/avr.md: Remove trailing blanks.
11023 (prologue): Use avr_expand_prologue.
11024 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11025
7bb01996
RB
110262013-01-14 Richard Biener <rguenther@suse.de>
11027
11028 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11029 verify_location, collect_subblocks): New functions.
11030 (verify_gimple_in_cfg): Verify that locations only reference
11031 BLOCKs in the functions BLOCK tree.
11032
2724573f
RB
110332013-01-14 Richard Biener <rguenther@suse.de>
11034
11035 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11036 PHI argument.
11037 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11038 unshare reference.
11039 (insert_out_of_ssa_copy_on_edge): Likewise.
11040 (rewrite_close_phi_out_of_ssa): Likewise.
11041 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11042 debug expressions.
11043 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11044 propagated constants.
11045 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11046 can not be shared.
11047
9a0bbab6
GJL
110482013-01-14 Georg-Johann Lay <avr@gjlay.de>
11049
11050 * config/avr/avr-modes.def: Add GPL copyright notice.
11051
45805f17
UB
110522013-01-13 Uros Bizjak <ubizjak@gmail.com>
11053
11054 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11055 MEMMODEL_MASK to determine memory model.
11056 (atomic_store<mode>): Ditto from operands[2].
11057 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11058
9d60be38
JJ
110592013-01-13 Jakub Jelinek <jakub@redhat.com>
11060
11061 PR fortran/55935
45805f17 11062 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
11063 (fold_gimple_assign): Don't call unshare_expr here.
11064 (fold_ctor_reference): Call unshare_expr.
11065
e7f49d92
TG
110662013-01-13 Terry Guo <terry.guo@arm.com>
11067
aaf1e810
EB
11068 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11069 * doc/fragments.texi: Document MULTILIB_REUSE.
11070 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 11071 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 11072 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
11073 (tmpmultilib4): Ditto.
11074 (multilib_reuse): New multilib argument.
11075
fbd03a27
RS
110762013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11077
11078 * Makefile.in: Update copyright.
11079
b3681f13
TV
110802013-01-12 Tom de Vries <tom@codesourcery.com>
11081
11082 PR middle-end/55890
11083 * calls.c (expand_call): Check if arg_nr is valid.
11084
3f287e4b
MM
110852013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11086
11087 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11088 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
11089 documentation. Add missing '__' in front of
11090 __builtin_ia32_packssdw256.
3f287e4b 11091
1abcd5eb
AK
110922013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11093
11094 PR target/55719
11095 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11096 NO_REGS for larl operands.
11097 (s390_reload_larl_operand): Use s390_load_address instead of
11098 emit_move_insn.
11099
980d0812
RB
111002013-01-11 Richard Biener <rguenther@suse.de>
11101
11102 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11103 (verify_node_sharing): ... here.
11104 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11105
7cb9fd07
EB
111062013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11107
11108 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11109 Substitute TREECHECKING.
11110 * configure: Regenerate.
11111 * Makefile.in (TREECHECKING): New.
11112
47876a2a 111132013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
11114
11115 PR tree-optimization/44061
11116 * tree-vrp.c (extract_range_basic): Compute zero as
11117 value-range for __builtin_constant_p of function parameters.
11118
d1e082c2
RS
111192013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11120
45805f17 11121 Update copyright years.
d1e082c2 11122
f85021b0
VM
111232013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11124
9d60be38 11125 PR rtl-optimization/55672
0160442c
VM
11126 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11127 const to be eliminable.
f85021b0 11128
7a8b1ec4
DE
111292013-01-10 David Edelsohn <dje.gcc@gmail.com>
11130
11131 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11132 * configure: Regenerate.
11133
ad2e5b71
RB
111342013-01-10 Richard Biener <rguenther@suse.de>
11135
ddf9322d 11136 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 11137
ffc5b2bb
RB
111382013-01-10 Richard Biener <rguenther@suse.de>
11139
11140 PR bootstrap/55792
11141 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11142 locations for virtual PHI arguments.
11143 (rewrite_update_phi_arguments): Likewise.
11144
e1f674e4
JS
111452013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11146
11147 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11148 on to assembler.
11149
a57fc743
JJ
111502013-01-10 Jakub Jelinek <jakub@redhat.com>
11151
11152 PR tree-optimization/55921
11153 * tree-complex.c (expand_complex_asm): New function.
11154 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11155
0ff4390d
AK
111562013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11157
11158 PR target/55718
11159 * config/s390/s390.c (s390_symref_operand_p)
11160 (s390_loadrelative_operand_p): Merge the two functions.
11161 (s390_check_qrst_address, print_operand_address): Add parameters
11162 to s390_loadrelative_operand_p invokation.
11163 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11164 (s390_reload_larl_operand, s390_secondary_reload): Use
11165 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11166 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11167
6f557e0e
MS
111682013-01-09 Mike Stump <mikestump@comcast.net>
11169
11170 * dse.c (record_store): Remove unnecessary assert.
11171
7770c9e9
JH
111722013-01-09 Jan Hubicka <jh@suse.cz>
11173
11174 PR tree-optimization/55569
11175 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11176 * cfgloop.h (scale_loop_profile): Likewise.
11177
a19b1432
JH
111782013-01-09 Jan Hubicka <jh@suse.cz>
11179
11180 PR lto/45375
ddf9322d
UB
11181 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11182 functions.
a19b1432
JH
11183 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11184
9a002da8
RS
111852013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11186
11187 PR middle-end/55114
11188 * expr.h (maybe_emit_group_store): Declare.
11189 * expr.c (maybe_emit_group_store): New function.
11190 * builtins.c (expand_builtin_int_roundingfn): Call it.
11191 (expand_builtin_int_roundingfn_2): Likewise.
11192
511dcace
VM
111932013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11194
e1f2b729 11195 PR rtl-optimization/55829
511dcace
VM
11196 * lra-constraints.c (match_reload): Add code for absent output.
11197 (curr_insn_transform): Add code for reloads of matched inputs
11198 without output.
11199
7b0fe4f4
UB
112002013-01-09 Uros Bizjak <ubizjak@gmail.com>
11201
11202 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11203 attribute of movddup insn to DF.
11204 (*vec_interleave_lowv2df): Ditto.
11205 (vec_dupv2df): Ditto.
11206
870ca331
JH
112072013-01-09 Jan Hubicka <jh@suse.cz>
11208
11209 PR tree-optimiation/55875
11210 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11211 EVERY_ITERATION parameter.
7b0fe4f4 11212 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
11213 (idx_infer_loop_bounds): Similarly here.
11214 (n_of_executions_at_most): Simplify
11215 to only test for cases where statement is dominated by the
7b0fe4f4 11216 particular bound; handle correctly the "postdominance" test.
870ca331
JH
11217 (scev_probably_wraps_p): Use max loop iterations info
11218 as a global bound first.
11219
6f575fe4 112202013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
11221 Nick Clifton <nickc@redhat.com>
11222
11223 * config/v850/v850.md (cbranchsf4): New pattern.
11224 (cstoresf4): New pattern.
11225 (cbranchdf4): New pattern.
11226 (cstoredf4): New pattern.
11227 (movsicc): Disallow floating point comparisons.
11228 (cmpsf_le_insn): Fix order of operators.
11229 (cmpsf_lt_insn): Likewise.
11230 (cmpsf_eq_insn): Likewise.
11231 (cmpdf_le_insn): Likewise.
11232 (cmpdf_lt_insn): Likewise.
11233 (cmpdf_eq_insn): Likewise.
11234 (cmpsf_ge_insn): Use LE comparison.
11235 (cmpdf_ge_insn): Likewise.
11236 (cmpsf_gt_insn): Use LT comparison.
11237 (cmpdf_gt_insn): Likewise.
11238 (cmpsf_ne_insn): Delete pattern.
11239 (cmpdf_ne_insn): Delete pattern.
11240 * config/v850/v850.c (v850_gen_float_compare): Use
11241 gen_cmpdf_eq_insn for NE comparison.
11242 (v850_float_z_comparison_operator)
11243 (v850_float_nz_comparison_operator): Move from here ...
11244 * config/v850/predicates.md: ... to here. Move GT and GE
11245 comparisons into v850_float_z_comparison_operator.
11246 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11247 Delete prototype.
11248 (v850_float_nz_comparison_operator): Likewise.
11249
f0d54148
JDA
112502013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11251
11252 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11253 with calls to gen_insvsi/gen_insvdi.
11254
8f01beca
VK
112552013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11256
11257 * config/i386/i386.c (initial_ix86_tune_features): Set up
11258 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11259
2aa579ad
JJ
112602013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11261 Jakub Jelinek <jakub@redhat.com>
11262
11263 PR tree-optimization/48189
11264 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11265 If nitercst is 0, don't predict the exit edge.
11266
6edc3e32 112672013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
11268
11269 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11270 in asm_fprintf with reg_names.
11271 (aarch64_print_operand_address): Likewise.
11272 (aarch64_return_addr): Likewise.
11273 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11274
f6f94d94
JDA
112752013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11276
11277 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11278 (INT_U6_BITS): Likewise.
11279 * config/pa/predicates.md (uint6_operand): New predicate.
11280 (shift5_operand, shift6_operand): Likewise.
11281 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11282 arith32_operand.
11283 (lshrdi3): Use shift6_operand.
11284 (shrpsi4, shrpdi4): New insn patterns.
11285 (extzv): Delete expander.
11286 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11287 predicates in unamed zero extract patterns. Tighten common constraint.
11288 (extv): Delete expander.
11289 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11290 predicates in unamed sign extract patterns. Tighten common constraint.
11291 (insv): Delete expander.
11292 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11293 predicates in unamed insert patterns. Tighten common constraint.
11294 Change uint32_operand predicate to uint6_operand predicate in unamed
11295 DImode pattern to insert constant values of type 1...1xxxx.
11296
36b72910
JH
112972013-01-04 Jan Hubicka <jh@suse.cz>
11298
11299 PR tree-optimization/55823
7b0fe4f4
UB
11300 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11301 issue.
36b72910 11302
47876a2a 113032013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
11304 Uros Bizjak <ubizjak@gmail.com>
11305
11306 PR rtl-optimization/55845
11307 * df-problems.c (can_move_insns_across): Stop scanning at
11308 volatile_insn_p source instruction or give up if
11309 across_from .. across_to range contains any volatile_insn_p
11310 instructions.
11311
4369c11e
TB
113122013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11313
7b0fe4f4
UB
11314 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11315 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11316 Declare.
4369c11e 11317 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 11318 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 11319
aeb7e7c1
JJ
113202013-01-08 Jakub Jelinek <jakub@redhat.com>
11321
11322 PR fortran/55341
11323 * asan.c (asan_clear_shadow): New function.
11324 (asan_emit_stack_protection): Use it.
11325
a02ad1aa
TB
113262013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11327
11328 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11329 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11330 with tab instead of space.
11331
f90d87f5
NC
113322013-01-08 Nick Clifton <nickc@redhat.com>
11333
11334 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11335 register bank 0 at the start of an interrupt handler.
83ffd964
NC
11336 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11337 MDBH registers.
f90d87f5 11338
385eb93d
JG
113392013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11340
11341 * config/aarch64/aarch64-simd.md
11342 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11343 (aarch64_simd_bsl): Likewise.
11344 (aarch64_vcond_internal<mode>): Likewise.
11345 (vcond<mode><mode>): Likewise.
11346 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11347 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11348
4dcd1054
JG
113492013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11350
11351 * config/aarch64/aarch64-builtins.c
11352 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11353
4267a4a6
MJ
113542013-01-08 Martin Jambor <mjambor@suse.cz>
11355
11356 PR debug/55579
11357 * tree-sra.c (analyze_access_subtree): Return true also after
11358 potentially creating a debug-only replacement.
11359
5f4e6de3
JJ
113602013-01-08 Jakub Jelinek <jakub@redhat.com>
11361
3138f224
JJ
11362 PR middle-end/55890
11363 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11364
5f4e6de3
JJ
11365 PR tree-optimization/54120
11366 * tree-vrp.c (range_fits_type_p): Don't allow
11367 src_precision < precision from signed vr to unsigned_p
11368 if vr->min or vr->max is negative.
11369 (simplify_float_conversion_using_ranges): Test can_float_p
11370 against CODE_FOR_nothing.
11371
f3ef18ff
JJ
113722013-01-08 Jakub Jelinek <jakub@redhat.com>
11373 Richard Biener <rguenther@suse.de>
11374
11375 PR middle-end/55851
11376 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11377 types instead of just INTEGER_TYPE types.
11378
25c210f9
MK
113792013-01-07 Mark Kettenis <kettenis@openbsd.org>
11380
11381 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11382 TF_SIZE): Define.
f90d87f5 11383
81826a7b
SE
113842013-01-07 Steve Ellcey <sellcey@mips.com>
11385
11386 PR target/42661
11387 * config/mips/mips.opt: Change mad to mmad to match documentation.
11388
35678514
GJL
113892013-01-07 Georg-Johann Lay <avr@gjlay.de>
11390
11391 PR target/55897
11392 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11393 .progmemx.data now.
11394
e5669488
GJL
113952013-01-07 Georg-Johann Lay <avr@gjlay.de>
11396
11397 PR target/55897
11398 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11399 (avr_addrspace_t): Add .section_name field.
11400 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11401 array size.
11402 (avr_addrspace): Same. Initialize .section_name. Remove last
11403 NULL entry. Put __memx into .progmemx.data.
11404 (progmem_section_prefix): Remove.
11405 (avr_asm_init_sections): No need to initialize progmem_section.
11406 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11407 section name prefix.
11408 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11409 retrieve the progmem section.
11410 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11411 boundary to run over avr_addrspace[].
11412 (avr_register_target_pragmas): Ditto.
11413
656e6f37
JJ
114142013-01-06 Jakub Jelinek <jakub@redhat.com>
11415
11416 * varasm.c (output_constant_def_contents): For asan_protect_global
11417 protected strings, adjust DECL_ALIGN if needed, before testing for
11418 anchored symbols.
11419 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11420 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11421 normal decls.
11422 (output_object_block): For asan protected decls, emit asan padding
11423 after their contents.
11424 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11425 (asan_finish_file): Test it here instead.
11426
6edc3e32
UB
114272013-01-07 Nick Clifton <nickc@redhat.com>
11428 Matthias Klose <doko@debian.org>
11429 Doug Kwan <dougkwan@google.com>
11430 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
11431
11432 PR driver/55470
11433 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11434
11435 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11436
11437 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11438
7b0fe4f4 11439 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
11440
11441 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11442
2a095093
GJL
114432013-01-07 Georg-Johann Lay <avr@gjlay.de>
11444
f3b503f4 11445 PR target/54461
2a095093
GJL
11446 * doc/install.texi (Cross-Compiler-Specific Options): Document
11447 --with-avrlibc.
11448
383f9b34
TB
114492013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11450
11451 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11452 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11453 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11454 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11455 vqmovun_high_s64): Fix source operand number and update copyright.
11456
3626621a
RB
114572013-01-07 Richard Biener <rguenther@suse.de>
11458
11459 PR middle-end/55890
11460 * gimple.h (gimple_call_builtin_p): New overload.
11461 * gimple.c (validate_call): New function.
11462 (gimple_call_builtin_p): Likewise.
11463 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11464 Use gimple_call_builtin_p.
11465 (find_func_clobbers): Likewise.
11466 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11467 (strlen_optimize_stmt): Likewise.
11468
8b2ea410
JG
114692013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11470
11471 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11472 (vld1q_dup_*): Likewise.
11473 (vld1_*): Likewise.
11474 (vld1q_*): Likewise.
11475 (vld1_lane_*): Likewise.
11476 (vld1q_lane_*): Likewise.
11477
9713d329
RB
114782013-01-07 Richard Biener <rguenther@suse.de>
11479
11480 * lto-streamer.h (LTO_minor_version): Bump to 2.
11481
3520f7cc
JG
114822013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11483
11484 * config/aarch64/aarch64-protos.h
11485 (aarch64_const_double_zero_rtx_p): Rename to...
11486 (aarch64_float_const_zero_rtx_p): ...this.
11487 (aarch64_float_const_representable_p): New.
11488 (aarch64_output_simd_mov_immediate): Likewise.
11489 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11490 move immediate case.
11491 * config/aarch64/aarch64.c
11492 (aarch64_const_double_zero_rtx_p): Rename to...
11493 (aarch64_float_const_zero_rtx_p): ...this.
11494 (aarch64_print_operand): Allow printing of new constants.
11495 (aarch64_valid_floating_const): New.
11496 (aarch64_legitimate_constant_p): Check for valid floating-point
11497 constants.
11498 (aarch64_simd_valid_immediate): Likewise.
11499 (aarch64_vect_float_const_representable_p): New.
11500 (aarch64_float_const_representable_p): Likewise.
11501 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11502 (aarch64_output_simd_mov_immediate): New.
11503 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11504 (*movdf_aarch64): Likewise.
11505 * config/aarch64/constraints.md (Ufc): New.
11506 (Y): call aarch64_float_const_zero_rtx.
11507 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11508
e167c04d
RB
115092013-01-07 Richard Biener <rguenther@suse.de>
11510
11511 PR tree-optimization/55888
11512 PR tree-optimization/55862
11513 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11514 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11515 not if it is contained therein.
11516
0139aaab
GJL
115172013-01-07 Georg-Johann Lay <avr@gjlay.de>
11518
11519 * config/avr/t-avr: Typo.
11520
4a176b23
GJL
115212013-01-07 Georg-Johann Lay <avr@gjlay.de>
11522
11523 PR55243
11524 * config/avr/t-avr: Don't automatically rebuild
11525 $(srcdir)/config/avr/t-multilib
11526 $(srcdir)/config/avr/avr-tables.opt
11527 $(srcdir)/doc/avr-mmcu.texi
11528 (avr-mcus): New phony target to build them on request.
11529 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11530 * avr/avr-mcus.def: Adjust comments.
11531
c7afdc98
UB
115322013-01-07 Uros Bizjak <ubizjak@gmail.com>
11533
11534 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11535
1ab05c31
RS
115362013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11537
11538 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11539
488e3acc
RS
115402013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11541
11542 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11543
a89599d2
DE
115442013-01-05 David Edelsohn <dje.gcc@gmail.com>
11545
11546 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11547 to generate profiling.
11548 * config/rs6000/aix64.h (LIB_SPEC): Same.
11549
70f09188
AP
115502013-01-04 Andrew Pinski <apinski@cavium.com>
11551
11552 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11553 New function.
11554 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11555
918d445f
UB
115562013-01-04 Uros Bizjak <ubizjak@gmail.com>
11557
11558 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11559 unconditionally.
11560 (ix86_expand_move): Ditto.
11561 (ix86_zero_extend_to_Pmode): Ditto.
11562 (ix86_expand_call): Ditto.
11563 (ix86_expand_special_args_builtin): Ditto.
11564 (ix86_expand_builtin): Ditto.
11565
361618ec
RB
115662013-01-04 Richard Biener <rguenther@suse.de>
11567
11568 PR tree-optimization/55862
11569 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11570 translating them through PHI nodes.
11571
87eab554
MJ
115722013-01-04 Martin Jambor <mjambor@suse.cz>
11573
11574 PR tree-optimization/55755
11575 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11576 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11577
33879b9f
MP
115782013-01-04 Marek Polacek <polacek@redhat.com>
11579
11580 PR middle-end/55859
11581 * opts.c (default_options_optimization): Clarify error message.
11582
3068819a
RB
115832013-01-04 Richard Biener <rguenther@suse.de>
11584
11585 PR middle-end/55863
11586 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11587 reassociation.
11588
0e4ae794
JDA
115892013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11590
11591 PR target/53789
11592 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
11593 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11594 references.
0e4ae794 11595
65c88cef
RH
115962013-01-03 Richard Henderson <rth@redhat.com>
11597
11598 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11599 after eliminating TLS symbols.
11600
8ac16127
MG
116012013-01-03 Marc Glisse <marc.glisse@inria.fr>
11602
11603 PR bootstrap/50167
11604 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11605 * graphite-poly.c (debug_gmp_value): Likewise.
11606
bb664f09
UB
116072013-01-03 Uros Bizjak <ubizjak@gmail.com>
11608
11609 PR target/55712
11610 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11611 selected code model, define __code_mode_small__, __code_model_medium__,
11612 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11613 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11614 xchg temporary register with %k. Declare temporary register as
11615 early clobbered.
11616 [__x86_64__]: For medium and large code models, preserve %rbx register.
11617
bcf1ef00
RB
116182013-01-03 Richard Biener <rguenther@suse.de>
11619
0506634a 11620 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
11621 (dump_subscript): Adjust.
11622 (finalize_ddr_dependent): Do not dump redundant info.
11623 (analyze_siv_subscript): Adjust.
11624 (subscript_dependence_tester): Likewise.
11625 (compute_affine_dependence): Likewise.
11626
59fd17e3
RB
116272013-01-03 Richard Biener <rguenther@suse.de>
11628
11629 Revert
11630 2013-01-03 Richard Biener <rguenther@suse.de>
11631
11632 PR tree-optimization/55857
11633 * tree-vect-stmts.c (vectorizable_load): Do not setup
11634 re-alignment for invariant loads.
11635
11636 2013-01-02 Richard Biener <rguenther@suse.de>
11637
11638 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11639 invariant load do not generate a vector load from the scalar location.
59fd17e3 11640
595c2679
RB
116412013-01-03 Richard Biener <rguenther@suse.de>
11642
11643 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11644 for not vectorizing.
11645 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11646 not build INDIRECT_REFs, call get_name once only.
11647 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11648 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11649
90bb7d7a
RB
116502013-01-03 Richard Biener <rguenther@suse.de>
11651
11652 PR tree-optimization/55857
11653 * tree-vect-stmts.c (vectorizable_load): Do not setup
11654 re-alignment for invariant loads.
11655
f09b77ca
RB
116562013-01-03 Richard Biener <rguenther@suse.de>
11657
11658 PR lto/55848
11659 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11660 prefer a built-in decl.
11661
3461a16e
JJ
116622013-01-03 Jakub Jelinek <jakub@redhat.com>
11663
df8e2b4f
JJ
11664 * gcc.c (process_command): Update copyright notice dates.
11665 * gcov.c (print_version): Likewise.
11666 * gcov-dump.c (print_version): Likewise.
11667
3461a16e
JJ
11668 PR rtl-optimization/55838
11669 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11670 iv0.step, iv1.step and step.
11671
8b5546d6
JJ
116722013-01-03 Jakub Jelinek <jakub@redhat.com>
11673 Marc Glisse <marc.glisse@inria.fr>
11674
11675 PR tree-optimization/55832
11676 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11677 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11678 integer_{one,zero}_node.
11679
8ab1d2e9
JJ
116802013-01-03 Jakub Jelinek <jakub@redhat.com>
11681
11682 PR debug/54402
11683 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11684 * var-tracking.c (reverse_op): Don't add reverse ops to
11685 VALUEs that have already
0506634a 11686 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 11687
5b9ad1d4
GP
116882013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11689
11690 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11691
e25a6711
TJ
116922013-01-02 Teresa Johnson <tejohnson@google.com>
11693
11694 * dumpfile.c (dump_loc): Print filename with location.
11695 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11696 new location_t parameter to emit complete unroll message with
11697 new dump framework.
11698 (canonicalize_loop_induction_variables): Compute loops location
11699 and pass to try_unroll_loop_completely.
11700 * loop-unroll.c (report_unroll_peel): New function.
11701 (peel_loops_completely): Use new dump format with location
11702 for main dumpfile message, and invoke report_unroll_peel on success.
11703 (decide_unrolling_and_peeling): Ditto.
11704 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11705 by report_unroll_peel.
11706 (decide_peel_completely): Ditto.
11707 (decide_unroll_constant_iterations): Ditto.
11708 (decide_unroll_runtime_iterations): Ditto.
11709 (decide_peel_simple): Ditto.
11710 (decide_unroll_stupid): Ditto.
11711 * cfgloop.c (get_loop_location): New function.
11712 * cfgloop.h (get_loop_location): Declare.
11713
77878621
ST
117142013-01-02 Sriraman Tallam <tmsriram@google.com>
11715
11716 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11717 NULL.
11718
9e65d03e
JDA
117192013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11720
11721 PR middle-end/55198
11722 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11723 BLKmode objects when EXPAND_MEMORY is specified.
11724
6a7da30f
ST
117252013-01-02 Sriraman Tallam <tmsriram@google.com>
11726
11727 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11728 in loop predicate.
11729 (fold_builtin_cpu): Do not share cpu model decls across statements.
11730
e78167f2
JM
117312013-01-02 Jason Merrill <jason@redhat.com>
11732
11733 PR c++/55804
11734 * tree.c (build_array_type_1): Revert earlier change.
11735
8c075fb4
YZ
117362013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11737
11738 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11739 "cortex-a57".
11740 * config/aarch64/aarch64-tune.md: Re-generate.
11741
0682ed3e
RB
117422013-01-02 Richard Biener <rguenther@suse.de>
11743
11744 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11745 invariant load do not generate a vector load from the scalar location.
0682ed3e 11746
b8f6a302
RB
117472013-01-02 Richard Biener <rguenther@suse.de>
11748
11749 PR bootstrap/55784
11750 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11751 * configure: Regenerate.
11752
04b80dbb
RS
117532013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11754
11755 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11756 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11757 (expand_builtin_int_roundingfn_2): Keep the original target around
11758 for the fallback case.
11759
635b0b0c
RS
117602013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11761
11762 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11763 to be clear for sign changes.
11764
42d57399
JH
117652013-01-01 Jan Hubicka <jh@suse.cz>
11766
11767 * ipa-inline-analysis.c: Fix formatting.
11768
5bb6669d
JJ
117692013-01-01 Jakub Jelinek <jakub@redhat.com>
11770
11771 PR tree-optimization/55831
11772 * tree-vect-loop.c (get_initial_def_for_induction): Use
11773 gsi_after_labels instead of gsi_start_bb.
ad41bd84 11774\f
86a2db33 11775Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
11776
11777Copying and distribution of this file, with or without modification,
11778are permitted in any medium without royalty provided the copyright
11779notice and this notice are preserved.