]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
AArch64 - Improve MOVI handling (4/5)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
81c2dfb9
IB
12013-06-04 Ian Bolton <ian.bolton@arm.com>
2
3 * config/aarch64/aarch64.c (simd_immediate_info): Remove
4 element_char member.
5 (sizetochar): Return signed char.
6 (aarch64_simd_valid_immediate): Remove elchar and other
7 unnecessary variables.
8 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
9 Calculate element_char as required.
10 * config/aarch64/aarch64-protos.h: Update and move prototype
11 for aarch64_output_simd_mov_immediate.
12 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
13 Update arguments.
14
48063b9d
IB
152013-06-04 Ian Bolton <ian.bolton@arm.com>
16
17 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
18 information completed by aarch64_simd_valid_immediate.
19 (aarch64_legitimate_constant_p): Update arguments.
20 (aarch64_simd_valid_immediate): Work with struct rather than many
21 pointers.
22 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
23 (aarch64_simd_make_constant): Update arguments.
24 (aarch64_output_simd_mov_immediate): Work with struct rather than
25 many pointers. Output immediate directly rather than as operand.
26 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27 Update prototype.
28 * config/aarch64/constraints.md (Dn): Update arguments.
29
3ea63f60
IB
302013-06-04 Ian Bolton <ian.bolton@arm.com>
31
32 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
33 longer static.
34 (aarch64_simd_immediate_valid_for_move): Remove.
35 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
36 (aarch64_simd_make_constant): Update call.
37 (aarch64_output_simd_mov_immediate): Update call.
38 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
39 Add prototype.
40 * config/aarch64/constraints.md (Dn): Update call.
41
d8edd899
IB
422013-06-04 Ian Bolton <ian.bolton@arm.com>
43
44 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
45 return type to bool for prototype.
46 (aarch64_legitimate_constant_p): Check for true instead of not -1.
47 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
48 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
49
44b20bb8
CM
502013-06-04 Catherine Moore <clm@codesourcery.com>
51
52 * config/mips/mips.opt (meva): New.
53 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS):
54 Define __mips_eva.
55 (ASM_SPEC): Handle -meva.
56 * doc/invoke.texi (meva): Document.
57
52befbd8
AM
582013-06-04 Alan Modra <amodra@gmail.com>
59
60 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
61 constant output.
62
aadaf24e
KT
632013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
64
65 * rtl.def: Add extra fourth optional field to define_cond_exec.
66 * gensupport.c (process_one_cond_exec): Process attributes from
67 define_cond_exec.
68 * doc/md.texi: Document fourth field in define_cond_exec.
69
0cd9e9ee
EB
702013-06-04 Eric Botcazou <ebotcazou@adacore.com>
71
72 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
73 out the processing order as in store_bit_field_1.
74
cb0f665d
JH
752013-06-04 Jan Hubicka <jh@suse.cz>
76
77 PR middle-end/57500
78 * cgraphunit.c (cgraph_process_same_body_aliases): Create
79 non-VAR_DECL node if it does not exist yet.
80
53984b9b
RS
812013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
82
83 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
84 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
85 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
86 target_cpu_default setting.
87
5d318fd4
TJ
882013-06-03 Teresa Johnson <tejohnson@google.com>
89
90 * dumpfile.c (opt_info_switch_p): Change -fopt-info
91 default to -fopt-info=optimized instead of all.
92 * doc/invoke.texi: Ditto.
93 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
94 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
95 (execute_vect_slp): Emit BB vectorization success under
96 MSG_OPTIMIZED_LOCATIONS.
97 * tree-vect-slp.c (vect_slp_transform_bb): Change
98 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
99 * tree-vect-loop.c (vect_transform_loop): Ditto.
100
ec3af349
JM
1012013-06-03 Jason Merrill <jason@redhat.com>
102
103 PR c++/57415
104 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
105 Use TARGET_EXPR for C++.
106
1baf9159
JJ
1072013-06-03 Jakub Jelinek <jakub@redhat.com>
108
109 PR rtl-optimization/57268
0cd9e9ee 110 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
111 if DEBUG_INSN_P (insn).
112
113 Reapply
114 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
115
116 PR rtl-optimization/57268
117 * sched-deps.c (sched_analyze_2): Flush dependence lists if
118 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
119
0f1d3965
YR
1202013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
121
122 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
123 (ix86_avoid_lea_for_addr): Likewise.
124 (exact_dependency_1): Likewise.
125 (ix86_adjust_cost): Likewise.
126 (swap_top_of_ready_list): Fix formatting and !reload_completed check
127 removed.
128 (do_reorder_for_imul): Fix typo, formatting and
129 !reload_completed check removed.
130 (ix86_sched_reorder): Fix typo and formatting.
131 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
132 list.
133
3bc30db4
SN
1342013-06-03 Sofiane Naci <sofiane.naci@arm.com>
135
136 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
137
19cc6fac
EB
1382013-06-03 Eric Botcazou <ebotcazou@adacore.com>
139
140 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
141 <STRING_CST>: Likewise.
142 <VECTOR_CST>: Likewise.
143
c68a6e08
JW
1442013-06-01 Janus Weil <janus@gcc.gnu.org>
145 Mikael Morin <mikael@gcc.gnu.org>
146
147 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
148 * config.in: Regenerated.
149 * configure: Regenerated.
150
38e55e5c
JH
1512013-06-01 Jan Hubicka <jh@suse.cz>
152
153 PR middle-end/57366
154 * cgraphunit.c (compile): When weakref is not supported,
155 set up transparent aliases before final output pass.
156 * varasm.c (assemble_alias): Do not try to do it here.
157
eb51d2ff
JH
1582013-06-01 Jan Hubicka <jh@suse.cz>
159
160 PR middle-end/57467
161 * passes.c (for_per_function): Skip unanalyzed functions.
162
40a7fe1e
JH
1632013-06-01 Jan Hubicka <jh@suse.cz>
164
165 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
166 (lto_symtab_merge_symbols_1): ... this one.
167 (lto_symtab_merge_cgraph_nodes): Rename to ...
168 (lto_symtab_merge_symbols): ... this one; simplify.
169 * cgraph.c (same_body_aliases_done): Rename to ...
170 (cpp_implicit_aliases_done): ... this one.
171 (cgraph_create_function_alias): Update.
172 (cgraph_same_body_alias): Update.
173 (dump_cgraph_node): Remove alias dumping; simplify
174 thunk dumping.
175 (verify_edge_corresponds_to_fndecl): Simplify.
176 * cgraph.h (symtab_node_base): Add cpp_implicit_alias,
177 alias_target.
178 (cgraph_node): Remove same_body_alias.
179 (varpool_node): Remove alias_of and extra_name_alias.
180 (same_body_aliases_done): Rename to ..
181 (cpp_implicit_aliases_done): ... this one.
182 (symtab_alias_ultimate_target): Add default parameter.
183 (symtab_resolve_alias): New function.
184 (fixup_same_cpp_alias_visibility): Declare.
185 (cgraph_function_node): Add default parameter.
186 (cgraph_node_asm_name): Likewise.
187 (cgraph_function_or_thunk_node): Add default parameter; do
188 not ICE when it is NULL.
189 (varpool_variable_node): Likewise.
190 * tree-emutls.c (create_emultls_var): Update.
191 (ipa_lower_emutls): Update.
192 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
193 (cgraph_reset_node): Reset alias info.
194 (cgraph_finalize_function): Update.
195 (fixup_same_cpp_alias_visibility): Move to symtab.c.
196 (analyze_function): Simplify.
197 (cgraph_process_same_body_aliases): Simplify.
198 (analyze_functions): Fixup same body aliases.
199 (handle_alias_pairs): Simplify.
200 (assemble_thunk): Update.
201 (assemble_thunks_and_aliases): Update.
202 (output_weakrefs): Rewrite.
203 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
204 (lto_output_varpool_node): Likewise.
205 (compute_ltrans_boundary): Remve assert.
206 (get_alias_symbol): New functoin.
207 (input_node): Rewrite alias handling.
208 (input_varpool_node): Likewise.
209 * ipa-pure-const.c (propagate_pure_const): Fix formating.
210 * ipa.c (process_references): Handle weakrefs correctly.
211 (symtab_remove_unreachable_nodes): Likewise.
212 * trans-mem.c (get_cg_data): Update.
213 (ipa_tm_create_version_alias): Update.
214 (ipa_tm_execute): Update.
215 * symtab.c (dump_symtab_base): Dump aliases.
216 (verify_symtab_base): Verify aliases.
217 (symtab_node_availability): New function.
218 (symtab_alias_ultimate_target): Simplify.
219 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
220 handle all the fixup cases.
221 (symtab_resolve_alias): New function.
222 * passes.c (ipa_write_summaries): Handle weakrefs.
223 * varpool.c (varpool_analyze_node): Simplify.
224 (assemble_aliases): Update.
225 (varpool_create_variable_alias): Simplify.
226 (varpool_extra_name_alias): Simplify.
227 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
228 (lto_symtab_merge_symbols): ... this one.
229
21759881
DT
2302013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
231
232 Revert
233 PR rtl-optimization/57268
234 * sched-deps.c (sched_analyze_2): Flush dependence lists if
235 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
236
daf4e940
TB
2372013-06-01 Tobias Burnus <burnus@net-b.de>
238
239 Partially reverted:
240 2013-05-31 Tobias Burnus <burnus@net-b.de>
241
242 PR middle-end/57073
243 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
244 further up.
245
c359d8d0
DT
2462013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
247
248 PR rtl-optimization/57268
249 * sched-deps.c (sched_analyze_2): Flush dependence lists if
250 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
251
4172215d
EB
2522013-05-31 Eric Botcazou <ebotcazou@adacore.com>
253
254 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
255 unordered comparison operators when -fno-trapping-math is in effect
256 on the e500.
257 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
258 and implement unordered comparison operators properly on the e500.
259
a8c50132
EB
2602013-05-31 Eric Botcazou <ebotcazou@adacore.com>
261
262 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
263 for constant scalar integers.
264 (simplify_relational_operation_1): Likewise.
265
44626634
SB
2662013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
267
268 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
269 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
270 Fix comment.
271
55805e54
YR
2722013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
273 Igor Zamyatin <igor.zamyatin@intel.com>
274
275 Silvermont (SLM) architecture performance tuning.
276 * config/i386/i386.h (enum ix86_tune_indices): Add
277 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
278 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
279
280 * config/i386/i386.c (initial_ix86_tune_features)
281 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
282 (ix86_lea_outperforms): Handle Silvermont tuning.
283 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
284 call.
285 (ix86_use_lea_for_mov): Likewise.
286 (ix86_avoid_lea_for_addr): Likewise.
287 (ix86_lea_for_add_ok): Likewise.
288 (exact_dependency_1): New function.
289 (exact_store_load_dependency): Likewise.
290 (ix86_adjust_cost): Handle Silvermont tuning.
291 (do_reoder_for_imul): Likewise.
292 (swap_top_of_ready_list): New function.
293 (ix86_sched_reorder): Changed to handle Silvermont tuning.
294
295 * config/i386/i386.md (peepholes that split memory operand in fp
296 converts): New.
297
e19c9de2
MS
2982013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
299
300 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
301 Remove un-necessary braces.
302
38e6c9a6
MS
3032013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
304
305 * config/aarch64/aarch64.c (aarch64_classify_symbol):
306 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
307
e3530904
TB
3082013-05-31 Tobias Burnus <burnus@net-b.de>
309
310 PR middle-end/57073
311 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
312 further up.
313
b6af05a9
KT
3142013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
315
316 PR target/56315
317 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
318 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
319 * config/arm/neon.md (iordi3_neon): Remove.
320 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
321 * config/arm/predicates.md (imm_for_neon_logic_operand):
322 Move to earlier in the file.
323 (neon_logic_op2): Likewise.
324 (arm_iordi_operand_neon): New predicate.
325
f800c166
RB
3262013-05-31 Richard Biener <rguenther@suse.de>
327
328 PR tree-optimization/57478
329 PR tree-optimization/57453
330 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
331 are life as well.
332
e571fa59
KP
3332013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
334
335 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
336 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
337
0fa6e0ef
TB
3382013-05-30 Tobias Burnus <burnus@net-b.de>
339 Thomas Koenig <tkoenig@gcc.gnu.org>
340
341 PR middle-end/57073
342 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
343 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
344
4688ddf5
SB
3452013-05-30 Steven Bosscher <steven@gcc.gnu.org>
346
0fa6e0ef 347 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 348
3b9ceb4b
VM
3492013-05-30 Vladimir Makarov <vmakarov@redhat.com>
350
351 * target.def (register_usage_leveling_p): New hook.
352 * targhooks.c (default_register_usage_leveling_p): New.
353 * targhooks.h (default_register_usage_leveling_p): New prototype.
354 * lra-assigns.c (register_usage_leveling_p): Use the hook.
355 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
356 * doc/tm.texi: Update.
357 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
358
65f9e789
IB
3592013-05-30 Ian Bolton <ian.bolton@arm.com>
360
361 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
362 (*insv_reg<mode>): New define_insn.
363
ca035367
JR
3642013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
365
366 PR rtl-optimization/57439
367 * postreload.c (move2add_valid_value_p): Check that we have
368 a zero subreg_regno_offset when accessing the register in
369 the requested mode.
370
0b871ccf
YR
3712013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
372 Igor Zamyatin <igor.zamyatin@intel.com>
373
374 Silvermont (SLM) architecture pipeline model, tuning and
375 insn selection.
376 * config.gcc: Add slm config options and target.
377
378 * config/i386/slm.md: New.
379
380 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
381
382 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
383 PROCESSOR_SLM.
384 (ix86_target_macros_internal): Likewise.
385
386 * gcc/config/i386/i386.c (slm_cost): New cost.
387 (m_SLM): New macro flag.
388 (initial_ix86_tune_features): Set m_SLM.
389 (x86_accumulate_outgoing_args): Likewise.
390 (x86_arch_always_fancy_math_387): Likewise.
391 (processor_target_table): Add slm cost.
392 (cpu_names): Add slm cpu name.
393 (x86_option_override_internal): Set SLM ISA.
394 (ix86_issue_rate): New case PROCESSOR_SLM.
395 (ia32_multipass_dfa_lookahead): Likewise.
396 (fold_builtin_cpu): Add slm.
397
398 * config/i386/i386.h (TARGET_SLM): New target macro.
399 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
400 (processor_type): Add PROCESSOR_SLM.
401
402 * config/i386/i386.md (cpu): Add new value "slm".
403 (slm.md): Include slm.md.
404
24d5b097
XG
4052013-05-30 Bernd Schmidt <bernds@codesourcery.com>
406 Zhenqiang Chen <zhenqiang.chen@linaro.org>
407
408 * config/arm/arm-protos.h: Add and update function protos.
409 * config/arm/arm.c (use_simple_return_p): New added.
410 (thumb2_expand_return): Check simple_return flag.
411 * config/arm/arm.md: Add simple_return and conditional simple_return.
412 * config/arm/iterators.md: Add iterator for return and simple_return.
413
c1cccc15
ZC
4142013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
415
416 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
417 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
418 (arm_emit_vfp_multi_reg_pop): Likewise.
419 (thumb2_emit_ldrd_pop): Likewise.
420 (arm_expand_epilogue): Add misc REG_CFA notes.
421 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
422
3a4f280b
LC
4232013-05-29 Lawrence Crowl <crowl@google.com>
424
425 * config/arm/t-arm: Update for below.
426
427 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
428 Change type to hash_table. Update dependent calls and types.
429
430 * config/i386/t-cygming: Update for below.
431
432 * config/i386/t-interix: Update for below.
433
434 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
435 Change type to hash_table. Update dependent calls and types.
436 (i386_find_on_wrapper_list::wrappers): Likewise.
437
438 * config/ia64/t-ia64: Update for below.
439
440 * config/ia64/ia64.c (bundle_state_table):
441 Change type to hash_table. Update dependent calls and types.
442
443 * config/mips/mips.c (mips_reorg_process_insns::htab):
444 Change type to hash_table. Update dependent calls and types.
445
446 * config/sol2.c (solaris_comdat_htab):
447 Change type to hash_table. Update dependent calls and types.
448
449 * config/t-sol2: Update for above.
450
1388a0e3
TJ
4512013-05-29 Teresa Johnson <tejohnson@google.com>
452
453 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
454 functions are not yet marked as defined.
455
a5965b52
MM
4562013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
457 Pat Haugen <pthaugen@us.ibm.com>
458 Peter Bergner <bergner@vnet.ibm.com>
459
460 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
461 instructions.
462 (VEC_A): Likewise.
463 (VEC_C): Likewise.
464 (vrotl<mode>3): Likewise.
465 (vashl<mode>3): Likewise.
466 (vlshr<mode>3): Likewise.
467 (vashr<mode>3): Likewise.
468
469 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
470 support for power8 V2DI builtins.
471
472 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
473 power8 V2DI builtins.
474 (vupkhsw): Likewise.
475 (vupklsw): Likewise.
476 (vaddudm): Likewise.
477 (vminsd): Likewise.
478 (vmaxsd): Likewise.
479 (vminud): Likewise.
480 (vmaxud): Likewise.
481 (vpkudum): Likewise.
482 (vpksdss): Likewise.
483 (vpkudus): Likewise.
484 (vpksdus): Likewise.
485 (vrld): Likewise.
486 (vsld): Likewise.
487 (vsrd): Likewise.
488 (vsrad): Likewise.
489 (vsubudm): Likewise.
490 (vcmpequd): Likewise.
491 (vcmpgtsd): Likewise.
492 (vcmpgtud): Likewise.
493 (vcmpequd_p): Likewise.
494 (vcmpgtsd_p): Likewise.
495 (vcmpgtud_p): Likewise.
496 (vupkhsw): Likewise.
497 (vupklsw): Likewise.
498 (vaddudm): Likewise.
499 (vmaxsd): Likewise.
500 (vmaxud): Likewise.
501 (vminsd): Likewise.
502 (vminud): Likewise.
503 (vpksdss): Likewise.
504 (vpksdus): Likewise.
505 (vpkudum): Likewise.
506 (vpkudus): Likewise.
507 (vrld): Likewise.
508 (vsld): Likewise.
509 (vsrad): Likewise.
510 (vsrd): Likewise.
511 (vsubudm): Likewise.
512
513 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
514 support for power8 V2DI instructions.
515
516 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
517 power8 V2DI instructions. Combine pack and unpack insns to use an
518 iterator for each mode. Check whether a particular mode supports
519 Altivec instructions instead of just checking TARGET_ALTIVEC.
520 (UNSPEC_VPKUWUM): Likewise.
521 (UNSPEC_VPKSHSS): Likewise.
522 (UNSPEC_VPKSWSS): Likewise.
523 (UNSPEC_VPKUHUS): Likewise.
524 (UNSPEC_VPKSHUS): Likewise.
525 (UNSPEC_VPKUWUS): Likewise.
526 (UNSPEC_VPKSWUS): Likewise.
527 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
528 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
529 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
530 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
531 (UNSPEC_VUPKHSB): Likewise.
532 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
533 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
534 (UNSPEC_VUPKHSH): Likewise.
535 (UNSPEC_VUPKLSB): Likewise.
536 (UNSPEC_VUPKLSH): Likewise.
537 (VI2): Likewise.
538 (VI_char): Likewise.
539 (VI_scalar): Likewise.
540 (VI_unit): Likewise.
541 (VP): Likewise.
542 (VP_small): Likewise.
543 (VP_small_lc): Likewise.
544 (VU_char): Likewise.
545 (add<mode>3): Likewise.
546 (altivec_vaddcuw): Likewise.
547 (altivec_vaddu<VI_char>s): Likewise.
548 (altivec_vadds<VI_char>s): Likewise.
549 (sub<mode>3): Likewise.
550 (altivec_vsubcuw): Likewise.
551 (altivec_vsubu<VI_char>s): Likewise.
552 (altivec_vsubs<VI_char>s): Likewise.
553 (altivec_vavgs<VI_char>): Likewise.
554 (altivec_vcmpbfp): Likewise.
555 (altivec_eq<mode>): Likewise.
556 (altivec_gt<mode>): Likewise.
557 (altivec_gtu<mode>): Likewise.
558 (umax<mode>3): Likewise.
559 (smax<mode>3): Likewise.
560 (umin<mode>3): Likewise.
561 (smin<mode>3): Likewise.
562 (altivec_vpkuhum): Likewise.
563 (altivec_vpkuwum): Likewise.
564 (altivec_vpkshss): Likewise.
565 (altivec_vpkswss): Likewise.
566 (altivec_vpkuhus): Likewise.
567 (altivec_vpkshus): Likewise.
568 (altivec_vpkuwus): Likewise.
569 (altivec_vpkswus): Likewise.
570 (altivec_vpks<VI_char>ss): Likewise.
571 (altivec_vpks<VI_char>us): Likewise.
572 (altivec_vpku<VI_char>us): Likewise.
573 (altivec_vpku<VI_char>um): Likewise.
574 (altivec_vrl<VI_char>): Likewise.
575 (altivec_vsl<VI_char>): Likewise.
576 (altivec_vsr<VI_char>): Likewise.
577 (altivec_vsra<VI_char>): Likewise.
578 (altivec_vsldoi_<mode>): Likewise.
579 (altivec_vupkhsb): Likewise.
580 (altivec_vupkhs<VU_char>): Likewise.
581 (altivec_vupkls<VU_char>): Likewise.
582 (altivec_vupkhsh): Likewise.
583 (altivec_vupklsb): Likewise.
584 (altivec_vupklsh): Likewise.
585 (altivec_vcmpequ<VI_char>_p): Likewise.
586 (altivec_vcmpgts<VI_char>_p): Likewise.
587 (altivec_vcmpgtu<VI_char>_p): Likewise.
588 (abs<mode>2): Likewise.
589 (vec_unpacks_hi_v16qi): Likewise.
590 (vec_unpacks_hi_v8hi): Likewise.
591 (vec_unpacks_lo_v16qi): Likewise.
592 (vec_unpacks_hi_<VP_small_lc>): Likewise.
593 (vec_unpacks_lo_v8hi): Likewise.
594 (vec_unpacks_lo_<VP_small_lc>): Likewise.
595 (vec_pack_trunc_v8h): Likewise.
596 (vec_pack_trunc_v4si): Likewise.
597 (vec_pack_trunc_<mode>): Likewise.
598
599 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
600 V2DI builtins.
601 (vec_vmaxsd): Likewise.
602 (vec_vmaxud): Likewise.
603 (vec_vminsd): Likewise.
604 (vec_vminud): Likewise.
605 (vec_vpksdss): Likewise.
606 (vec_vpksdus): Likewise.
607 (vec_vpkudum): Likewise.
608 (vec_vpkudus): Likewise.
609 (vec_vrld): Likewise.
610 (vec_vsld): Likewise.
611 (vec_vsrad): Likewise.
612 (vec_vsrd): Likewise.
613 (vec_vsubudm): Likewise.
614 (vec_vupkhsw): Likewise.
615 (vec_vupklsw): Likewise.
616
e70670cf
JH
6172013-05-29 Jan Hubicka <jh@suse.cz>
618
619 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
620 flags; reorder rest of fields in more consistent way.
621 (varpool_node): Remove analyzed, finalized and alias.
622 (cgraph_ndoe): Likewise.
623 (symtab_alias_ultimate_target): New function.
624 (cgraph_function_node): Move offline.
625 (cgraph_reset_node): Declare.
626 (cgraph_comdat_can_be_unshared_p): Remove.
627 (varpool_remove_initializer): Declare.
628 (varpool_first_defined_variable, varpool_next_defined_variable
629 cgraph_first_defined_function, cgraph_next_defined_function): Update.
630 (cgraph_function_with_gimple_body_p): Update.
631 (varpool_all_refs_explicit_p): Update.
632 (symtab_alias_target): New function.
633 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
634 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
635 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
636 (varpool_variable_node): Likewise.
637 * cgraph.c (cgraph_create_function_alias): Update.
638 (cgraph_add_thunk): Update.
639 (cgraph_remove_node): Update.
640 (dump_cgraph_node): Do not dump removed flags.
641 (cgraph_function_body_availability): Update.
642 (cgraph_propagate_frequency): Update.
643 (verify_cgraph_node): Check sanity of local flag.
644 (cgraph_function_node): Move here from cgraph.h; revamp for
645 cgraph_function_or_thunk_node.
646 * lto-symtab.c (lto_varpool_replace_node): Update.
647 (lto_symtab_resolve_can_prevail_p): Update.
648 (lto_symtab_merge_cgraph_nodes): Update.
649 * ipa-cp.c (determine_versionability, initialize_node_lattices,
650 propagate_constants_accross_call, devirtualization_time_bonus,
651 ipcp_propagate_stage): Update.
652 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
653 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
654 * ipa-reference.c (propagate): Update.
655 (write_node_summary_p): Update.
656 * toplev.c (wrapup_global_declaration_2): Update.
657 * cgraphunit.c (cgraph_analyze_function): Rename to ...
658 (analyze_function) ... this one.
659 (cgraph_process_new_functions): Update.
660 (cgraph_reset_node): Export.
661 (cgraph_finalize_function): Update.
662 (cgraph_add_new_function): Update.
663 (process_function_and_variable_attributes): Update.
664 (varpool_finalize_decl): Update.
665 (symbol_finalized): Remove.
666 (symbol_finalized_and_needed): Rename to ...
667 (symbol_defined_and_needed): ... update.
668 (cgraph_analyze_functions): Update.
669 (handle_alias_pairs): Update.
670 (mark_functions_to_output): Update.
671 (assemble_thunk): Update.
672 (output_in_order): Update.
673 (output_weakrefs): Update.
674 (finalize_compilation_unit): Update.
675 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
676 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
677 input_node, input_varpool_node): Update.
678 * dbxout.c (dbxout_expand_expr): Update.
679 * cgraphclones.c (cgraph_clone_node): Update.
680 (cgraph_copy_node_for_versioning): Update.
681 (cgraph_materialize_clone): Update.
682 (cgraph_materialize_all_clones): Update.
683 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
684 propagate_pure_const, propagate_nothrow): Update.
685 * lto-streamer-out.c (lto_output, write_symbol): Update.
686 * ipa-utils.c (ipa_reverse_postorder): Update.
687 * ipa-inline.c (can_inline_edge_p): Update.
688 (update_caller_keys, ipa_inline): Update.
689 * dwarf2out.c (reference_to_unused,
690 premark_types_used_by_global_vars_helper): Update.
691 * tree-eh.c (tree_could_trap_p): Update.
692 * ipa-split.c (consider_split, execute_split_functions): Update.
693 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
694 has_addr_references_p): Update;
695 move ahead in file for better readability.
696 (process_references): Simplify.
697 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
698 bodies are removed.
699 (cgraph_comdat_can_be_unshared_p): Make static.
700 (cgraph_externally_visible_p): Update.
701 (varpool_externally_visible_p): Update.
702 (function_and_variable_visibility): Update.
703 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
704 ipa_tm_mark_force_output_node): Update.
705 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
706 estimate_edge_devirt_benefit, inline_generate_summary,
707 inline_write_summary): Update.
708 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
709 * ipa-prop.c (ipa_compute_jump_functions): Update.
710 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
711 read_replacements_section): Update.
712 * varasm.c (mark_decl_referenced): Update.
713 (assemble_alias, dump_tm_clone_pairs): Update.
714 * tree-inline.c (copy_bb): Update.
715 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
716 Update.
717 * symtab.c (dump_symtab_base): Print new flags.
718 (verify_symtab_base): Verify new flags.
719 (symtab_alias_ultimate_target): New function.
720 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
721 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
722 Update.
723 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
724 * i386.c (ix86_get_function_versions_dispatcher,
725 ix86_generate_version_dispatcher_body): Update.
726 (fold_builtin_cpu): Use varpool_add_new_variable.
727 * varpool.c (varpool_remove_initializer): Break out from ...
728 (varpool_remove_node): ... this one.
729 (dump_varpool_node, varpool_node_for_asm,
730 cgraph_variable_initializer_availability, varpool_analyze_node,
731 varpool_assemble_decl, varpool_remove_unreferenced_decls,
732 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
733
182802ad
JH
7342013-05-29 Jan Hubicka <jh@suse.cz>
735
736 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
737
8190b609
ER
7382013-05-29 Easwaran Raman <eraman@google.com>
739
740 PR tree-optimization/57442
741 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
742 when control exits the main loop.
743
69f5aa9b
SKS
7442013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
745
746 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
747 and RX600.
748 * rx/rx.opt: Add macro for rx100 with string rx100 and value
749 RX100.
750 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
751 * rx/t-rx: Add rx100 under multi library matches option for nofpu
752 option.
753
4b847da9
BS
7542013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
755
756 PR tree-optimization/57441
757 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
758 Don't limit size of incr_vec to number of candidates.
759
4fc43c39
SE
7602013-05-29 Steve Ellcey <sellcey@imgtec.com>
761
762 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
763 and mips16 directories.
764 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
765 mips16.
766 (MULTILIB_DIRNAMES): Ditto.
767 (MULTILIB_EXCEPTIONS): Add new exceptions.
768 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
769 (MULTILIB_DIRNAMES): Ditto.
770 (MULTILIB_EXCEPTIONS): Add new exceptions.
771
a5350ddc
CSS
7722012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
773 Marcus Shawcroft <marcus.shawcroft@arm.com>
774
775 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
776 SYMBOL_TINY_ABSOLUTE.
777 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
778 SYMBOL_TINY_ABSOLUTE.
779 (aarch64_expand_mov_immediate): Likewise.
780 (aarch64_classify_symbol): Likewise.
781 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
782 Permit SYMBOL_TINY_ABSOLUTE.
783 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
784
17f4d4bf
CSS
7852013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
786 Marcus Shawcroft <marcus.shawcroft@arm.com>
787
788 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
789 Refactor if/switch. Replace gcc_assert with if.
790
c0186656
GG
7912013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
792
793 * config/i386/i386.c (initial_ix86_tune_features): Enable
794 FP Reassociation for AMD bdver1 and bdver2.
795
d20188f3
MJ
7962013-05-29 Martin Jambor <mjambor@suse.cz>
797
798 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
799 and IMAGPART_EXPR do not occur within other handled_components.
800
292cba13
RB
8012013-05-29 Richard Biener <rguenther@suse.de>
802
803 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
804 access on whether the use is in the BB we currently try to
805 vectorize.
806 (vect_bb_vectorization_profitable_p): Pass the BB we currently
807 vectorize to vect_bb_slp_scalar_cost.
808
6eddf228
RB
8092013-05-29 Richard Biener <rguenther@suse.de>
810
811 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
812 computing scalar cost offsetted by stmts that are kept live
813 by scalar uses.
814 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
815 for computation of scalar cost.
816
7df36117
SE
8172013-05-28 Steve Ellcey <sellcey@mips.com>
818
819 * config/mips/mips-cpus.def (mips32r2): Change processor type.
820
36536d79
BI
8212013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
822
823 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
824 array notation built-in reduction functions.
825 * doc/passes.texi (Passes): Added documentation about changes done
826 for Cilk Plus.
827 * doc/invoke.texi (C Dialect Options): Added documentation about
828 the -fcilkplus flag.
829 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
830 (BUILTINS_DEF): Depend on cilkplus.def.
831 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
832 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
833 * cilkplus.def: New file.
834
b49eefa5
JR
8352013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
836
837 PR rtl-optimization/57439
838 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
839
9daf6dbb
ER
8402013-05-28 Easwaran Raman <eraman@google.com>
841
842 PR tree-optimization/57337
843 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
844 (find_insert_point): Correctly identify the insertion point
845 when two statements with the same UID is compared.
846
fbd7e877
RB
8472013-05-28 Richard Biener <rguenther@suse.de>
848
849 PR tree-optimization/56787
850 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
851 from the list of data references.
852 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
853 clobbers.
854 (vect_analyze_loop_operations): Likewise.
855 (vect_transform_loop): Remove clobbers.
856
bbba1117
MJ
8572013-05-28 Martin Jambor <mjambor@suse.cz>
858
859 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
860 and REALPART_EXPRs have scalar type.
861
bd388c2a
RB
8622013-05-28 Richard Biener <rguenther@suse.de>
863
864 PR tree-optimization/57411
865 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
866 virtual operands.
867 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
868 virtual operand propagation.
869
2f56a311
EB
8702013-05-28 Eric Botcazou <ebotcazou@adacore.com>
871
872 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
873 destination register for bmasksi_vis.
874 (vector_init_bshuffle): Likewise.
875 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
876
5c3eacbb
EB
8772013-05-28 Eric Botcazou <ebotcazou@adacore.com>
878
879 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
880 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
881 mode if the instruction isn't available in the original mode.
882 * config/sparc/sparc.opt (mfix-ut699): New option.
883 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
884 (divdf3): Turn into expander.
885 (divdf3_nofix): New insn.
886 (divdf3_fix): Likewise.
887 (divsf3): Disable if -mfix-ut699.
888 (sqrtdf2): Turn into expander.
889 (sqrtdf2_nofix): New insn.
890 (sqrtdf2_fix): Likewise.
891 (sqrtsf2): Disable if -mfix-ut699.
892
a1756c0a
RB
8932013-05-27 Richard Biener <rguenther@suse.de>
894
895 PR middle-end/57412
896 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
897 block for the new loop.
898
5a892248
RB
8992013-05-27 Richard Biener <rguenther@suse.de>
900
901 PR tree-optimization/57343
902 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
903 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
904 (number_of_iterations_cond): Do not build the folded tree.
905
d1de852b
RB
9062013-05-27 Richard Biener <rguenther@suse.de>
907
908 Revert
909 PR middle-end/57381
910 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
911 OEP_CONSTANT_ADDRESS_OF retained.
912
913 PR tree-optimization/57417
914 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
915 for unchanged base.
916 (set_ssa_val_to): Compare addresses using
917 get_addr_base_and_unit_offset.
918
7894bc6b
JR
9192013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
920
921 PR rtl-optimization/56833
922 * postreload.c (move2add_record_mode): New function.
923 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
924 (move2add_use_add2_insn): Use move2add_record_sym_value.
925 (move2add_use_add3_insn): Likewise.
926 (reload_cse_move2add): Use move2add_valid_value_p and
927 move2add_record_mode. Invalidate call-clobbered and REG_INC
928 affected regs by setting reg_mode to VOIDmode.
929 (move2add_note_store): Don't pretend the inside of a SUBREG is
930 the actual destination. Invalidate single/leading registers by
931 setting reg_mode to VOIDmode.
932 Use move2add_record_sym_value, move2add_valid_value_p and
933 move2add_record_mode.
934
b03be25f
RB
9352013-05-27 Richard Biener <rguenther@suse.de>
936
937 PR tree-optimization/57396
938 * tree-affine.c (double_int_constant_multiple_p): Properly
939 return false for val == 0 and div != 0.
940
44e88db2
RS
9412013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
942
943 * config/mips/mips.h: Use #elif in preprocessor conditions.
944
3b859704
RS
9452013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
946
947 PR target/53916
948 * config/mips/constraints.md (kl): New constraint.
949 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
950 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
951 constraint for operand 0. Split after CSE for MIPS16. Emit a move
952 from LO for MIPS16.
953 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
954
c979d5f5
RS
9552013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
956
957 PR target/55777
958 * config/mips/mips.c (mips_can_inline_p): New function.
959 (TARGET_CAN_INLINE_P): Define.
960
8e90de43
SB
9612013-05-25 Steven Bosscher <steven@gcc.gnu.org>
962
963 * sched-int.h (ds_t, dw_t): Make unsigned int.
964 Fix documentation that describes how all the ds_t bits are used.
965 Reserve the last bit for delayed-branch scheduling.
966 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
967 (BITS_PER_DEP_WEAK): Fix definition and documentation.
968 (gen_dep_weak_1): Remove prototype.
969 * sched-deps.c (get_dep_weak_1): Make static.
970 * target.def (speculate_insn, needs_block_p, gen_spec_check,
971 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
972 * doc/tm.texi: Regenerate.
973 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
974
cb5cb194
SB
9752013-05-24 Steven Bosscher <steven@gcc.gnu.org>
976
977 PR debug/56950
978 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
979
5bd93ff6
NS
9802013-05-24 Nathan Sidwell <nathan@codesourcery.com>
981 Sandra Loosemore <sandra@codesourcery.com>
982
983 * config.gcc (powerpc-*): Allow native for with-cpu.
984
2343af65
JL
9852013-05-24 Jeff Law <law@redhat.com>
986
987 PR tree-optimization/57124
988 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
989 conversion feeding a condition if the range has an overflow
990 if -fstrict-overflow. Add warnings for when we do make the
991 transformation.
992
3ad695b9
DC
9932013-05-24 Dehao Chen <dehao@google.com>
994
04960246 995 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
996 (locus_discrim_hasher): Likewise.
997 (locus_discrim_hasher::hash): Likewise.
998 (locus_discrim_hasher::equal): Likewise.
999
82338059
MJ
10002013-05-24 Martin Jambor <mjambor@suse.cz>
1001
1002 PR tree-optimization/57294
1003 * cgraph.h (ipa_record_stmt_references): Declare.
1004 * cgraphbuild.c (ipa_record_stmt_references): New function.
1005 (build_cgraph_edges): Use ipa_record_stmt_references.
1006 (rebuild_cgraph_edges): Likewise.
1007 (cgraph_rebuild_references): Likewise.
1008 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1009 associated with the old statement and build references from the
1010 newly built statements.
1011 * ipa-ref.c (ipa_remove_stmt_references): New function.
1012 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1013
1ccd4874
VM
10142013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1015
55805e54 1016 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 1017 mem-mem moves.
55805e54 1018 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 1019 too.
55805e54 1020 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
1021 secondary memory moves.
1022 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1023 reg set up in the current insn.
1024
25e25c73
DC
10252013-05-24 Dehao Chen <dehao@google.com>
1026
04960246 1027 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
1028 hash function.
1029 (locus_descrim_hasher::equal): Likewise.
04960246 1030 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
1031 (make_edges): Likewise.
1032 (next_discriminator_for_locus): Likewise.
1033 (same_line_p): Likewise.
1034 (assign_discriminators): Likewise.
1035 (make_cond_expr_edges): Likewise.
1036 (make_gimple_switch_edges): Likewise.
1037 (make_goto_expr_edges): Likewise.
1038 (make_gimple_asm_edges): Likewise.
1039
50d38551
IB
10402013-05-24 Ian Bolton <ian.bolton@arm.com>
1041
1042 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1043 X format specifier to only display bottom 16 bits.
1044 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1045 immediate to match for operand 2, since it will be masked.
1046
aea0101d
RB
10472013-05-24 Richard Biener <rguenther@suse.de>
1048
1049 PR tree-optimization/57287
1050 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1051 all SSA names that occur in abnormal PHIs.
1052
634e03d3
AI
10532013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1054
1055 PR tree-ssa/57385
1056 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1057 that index is not negative.
1058
b17c024f
EB
10592013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1060
1061 PR rtl-optimization/55177
1062 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1063 (simplify_byte_swapping_operation): New.
1064 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1065 (simplify_relational_operation_1): Deal with BSWAP.
1066
46aeac1b
RH
10672013-05-23 Richard Henderson <rth@redhat.com>
1068
1069 PR target/56742
1070 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1071 (ix86_reorg): Call it.
1072
70cc1536
UB
10732013-05-23 Uros Bizjak <ubizjak@gmail.com>
1074
1075 PR target/57379
1076 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1077 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1078 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1079
b3851501
CB
10802013-05-23 Christian Bruel <christian.bruel@st.com>
1081
1082 PR debug/57351
1083 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1084
4e194912
CSS
10852013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1086 Marcus Shawcroft <marcus.shawcroft@arm.com>
1087
1088 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1089 * config/aarch64/constraints.md (Usa): Remove.
1090 * doc/md.texi (AArch64 Usa): Remove.
1091
83f8c414
CSS
10922013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1093 Marcus Shawcroft <marcus.shawcroft@arm.com>
1094
1095 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1096 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1097 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1098 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1099
b5574232
VP
11002013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1101
1102 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1103 instruction (AdvSIMD).
1104 * config/aarch64/aarch64-builtins.c
1105 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1106 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1107
76c36cb1 11082013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
1109
1110 PR middle-end/57347
1111 * tree.h (contains_bitfld_component_ref_p): Declare.
1112 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
1113 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1114 caller.
7d2fb524
MJ
1115 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1116 not access a bit-field. Assert all final offsets are byte-aligned.
1117
ce521ae6
RB
11182013-05-23 Richard Biener <rguenther@suse.de>
1119
1120 PR tree-optimization/57380
1121 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1122 least one invariant or re-used load.
1123 * passes.c (init_optimization_passes): Move pass_phiprop before
1124 pass_forwprop.
1125
75c7257f
JG
11262013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1127
1128 * config/aarch64/aarch64-simd.md
1129 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1130
af6d44b5
RB
11312013-05-23 Richard Biener <rguenther@suse.de>
1132
1133 PR middle-end/57381
1134 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1135 OEP_CONSTANT_ADDRESS_OF retained.
1136
bd3647bf
JJ
11372013-05-23 Jakub Jelinek <jakub@redhat.com>
1138
1139 PR middle-end/57344
70cc1536
UB
1140 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1141 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 1142
a55757ea
RB
11432013-05-23 Richard Biener <rguenther@suse.de>
1144
1145 PR rtl-optimization/57341
1146 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1147 instead of true_dependence.
1148
cfb00b41
DM
11492013-05-22 David Malcolm <dmalcolm@redhat.com>
1150
dd1c676f
DM
1151 * bb-reorder.c (branch_threshold): Make const.
1152 (exec_threshold): Ditto.
cfb00b41 1153
f62511da
MM
11542013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1155 Pat Haugen <pthaugen@us.ibm.com>
1156 Peter Bergner <bergner@vnet.ibm.com>
1157
1158 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1159 documentation for the power8 crypto builtins.
1160
1161 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1162
1163 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1164 macros for defining power8 builtin functions.
1165 (BU_P8V_AV_2): Likewise.
1166 (BU_P8V_AV_P): Likewise.
1167 (BU_P8V_VSX_1): Likewise.
1168 (BU_P8V_OVERLOAD_1): Likewise.
1169 (BU_P8V_OVERLOAD_2): Likewise.
1170 (BU_CRYPTO_1): Likewise.
1171 (BU_CRYPTO_2): Likewise.
1172 (BU_CRYPTO_3): Likewise.
1173 (BU_CRYPTO_OVERLOAD_1): Likewise.
1174 (BU_CRYPTO_OVERLOAD_2): Likewise.
1175 (XSCVSPDP): Fix typo, point to the correct instruction.
1176 (VCIPHER): Add power8 crypto builtins.
1177 (VCIPHERLAST): Likewise.
1178 (VNCIPHER): Likewise.
1179 (VNCIPHERLAST): Likewise.
1180 (VPMSUMB): Likewise.
1181 (VPMSUMH): Likewise.
1182 (VPMSUMW): Likewise.
1183 (VPERMXOR_V2DI): Likewise.
1184 (VPERMXOR_V4SI: Likewise.
1185 (VPERMXOR_V8HI: Likewise.
1186 (VPERMXOR_V16QI: Likewise.
1187 (VSHASIGMAW): Likewise.
1188 (VSHASIGMAD): Likewise.
1189 (VPMSUM): Likewise.
1190 (VPERMXOR): Likewise.
1191 (VSHASIGMA): Likewise.
1192
1193 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1194 __CRYPTO__ if the crypto instructions are available.
1195 (altivec_overloaded_builtins): Add support for overloaded power8
1196 builtins.
1197
1198 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1199 support for power8 crypto builtins.
1200 (builtin_function_type): Likewise.
1201 (altivec_init_builtins): Add support for builtins that take vector
1202 long long (V2DI) arguments.
1203
1204 * config/rs6000/crypto.md: New file, define power8 crypto
1205 instructions.
1206
12072013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1208 Pat Haugen <pthaugen@us.ibm.com>
1209 Peter Bergner <bergner@vnet.ibm.com>
1210
1211 * doc/invoke.texi (Option Summary): Add power8 options.
1212 (RS/6000 and PowerPC Options): Likewise.
1213
1214 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1215 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1216 wm, wn, wr documentation.
1217
1218 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1219 registers if direct move instructions are enabled.
1220 (wn): New constraint for no registers.
1221 (wq): New constraint for quad word even GPR registers.
1222 (wr): New constraint if 64-bit instructions are enabled.
1223 (wv): New constraint if power8 vector instructions are enabled.
1224 (wQ): New constraint for quad word memory locations.
1225
1226 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1227 constraint for 0..15 for crypto instructions.
1228 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1229 as GPR and floating point registers.
1230 (int_reg_operand): New predicate to match only GPR registers.
1231 (base_reg_operand): New predicate to match base registers.
1232 (quad_int_reg_operand): New predicate to match even GPR registers
1233 for quad memory operations.
1234 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1235 operations in both GPR and VSX registers.
1236 (quad_memory_operand): New predicate for quad memory operations.
1237 (reg_or_indexed_operand): New predicate for direct move support.
1238
1239 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1240 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1241 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1242 (POWERPC_MASKS): Add power8 options.
1243 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1244 various options.
1245
1246 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1247 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1248
1249 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1250 (-mpower8-fusion): New power8 options.
1251 (-mpower8-fusion-sign): Likewise.
1252 (-mpower8-vector): Likewise.
1253 (-mcrypto): Likewise.
1254 (-mdirect-move): Likewise.
1255 (-mquad-memory): Likewise.
1256
1257 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1258 power8.
1259 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1260 registers.
70cc1536 1261 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
1262 (rs6000_debug_vector_unit): Add p8_vector.
1263 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1264 definitions. Also print fusion state.
1265 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1266 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1267 (rs6000_option_override_internal): Add support for power8.
1268 (rs6000_common_init_builtins): Add debugging for skipped builtins
1269 if -mdebug=builtin.
1270 (rs6000_adjust_cost): Add power8 support.
1271 (rs6000_issue_rate): Likewise.
1272 (insn_must_be_first_in_group): Likewise.
1273 (insn_must_be_last_in_group): Likewise.
1274 (force_new_group): Likewise.
1275 (rs6000_register_move_cost): Likewise.
1276 (rs6000_opt_masks): Likewise.
1277
1278 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1279 power8 capable assembler, default to power7 options.
1280 (TARGET_DIRECT_MOVE): Likewise.
1281 (TARGET_CRYPTO): Likewise.
1282 (TARGET_P8_VECTOR): Likewise.
1283 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1284 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1285 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1286 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1287 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1288 (TARGET_XSCVDPSPN): Likewise.
1289 (TARGET_XSCVSPDPN): Likewsie.
1290 (TARGET_SYNC_HI_QI): Likewise.
1291 (TARGET_SYNC_TI): Likewise.
1292 (MASK_CRYPTO): Likewise.
1293 (MASK_DIRECT_MOVE): Likewise.
1294 (MASK_P8_FUSION): Likewise.
1295 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
1296 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1297 temporary used by some of the direct move instructions to get two FP
1298 temporary registers does not force creation of a stack frame.
f62511da
MM
1299 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1300 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1301 that any VSX registers are tieable, even if they are also an
1302 Altivec vector mode.
1303 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1304 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1305 (RS6000_BTM_CRYPTO): Likewise.
1306 (RS6000_BTM_COMMON): Likewise.
1307
1308 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1309 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1310 (enum rs6000_vector): Add power8 vector support.
1311
73a1a707
RR
13122013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1313
1314 PR target/19599
1315 PR target/57340
1316 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1317 (any_sibcall_could_use_r3): this and handle indirect calls.
1318 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1319
d28073d4
BS
13202013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1321
1322 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1323
bee0b10c
RB
13242013-05-22 Richard Biener <rguenther@suse.de>
1325
1326 PR middle-end/57349
1327 * profile.c (branch_prob): Do not split blocks that are
1328 abnormally receiving from ECF_RETURNS_TWICE functions.
1329
98409b51
RS
13302013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1331
1332 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1333 address mode. Move pointer mode initialization to the same place.
1334
c0602ab8
MZ
13352013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1336
1337 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1338 while it has any effect.
1339
4f7a634e
ER
13402013-05-21 Easwaran Raman <eraman@google.com>
1341
1342 PR tree-optimization/57322
9daf6dbb
ER
1343 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1344 UID of the statement added to the BB to be 1.
4f7a634e 1345
a4ce1258
JJ
13462013-05-21 Jakub Jelinek <jakub@redhat.com>
1347
1348 PR tree-optimization/57331
70cc1536
UB
1349 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1350 of conversion from pointer type to integral type with integer.
a4ce1258 1351
1b14621a
MJ
13522013-05-21 Martin Jambor <mjambor@suse.cz>
1353
1354 PR lto/57289
1355 * ipa-prop.c (ipa_read_node_info): Process param_used and
1356 controlled_uses in the same order as when writing.
1357
e60661f0
MG
13582013-05-21 Magnus Granberg <baldrick@free.fr>
1359
1360 PR plugins/56754
ee49aa34 1361 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 1362
4a61be9a
RB
13632013-05-21 Richard Biener <rguenther@suse.de>
1364
1365 PR tree-optimization/57318
1366 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1367 estimate stmts with side-effects as likely eliminated.
1368
c52da5f7
RB
13692013-05-21 Richard Biener <rguenther@suse.de>
1370
1371 PR tree-optimization/57330
1372 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1373 preserve the call stmts fntype.
1374
7ec67e2a
RB
13752013-05-21 Richard Biener <rguenther@suse.de>
1376
1377 PR tree-optimization/57303
1378 * tree-ssa-sink.c (statement_sink_location): Improve killing
1379 stmt detection and properly handle self-assignments.
1380
b112d513
CB
13812013-05-21 Christian Bruel <christian.bruel@st.com>
1382
55805e54
YR
1383 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1384 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
1385 registers. Set register size out of the PARALLEL loop.
1386
14c2ec26
OE
13872013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1388
1389 PR target/56547
1390 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1391 (*fmasf4, *fmasf4_media): New insns.
1392
da734fa1
RS
13932013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1394
1395 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1396 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1397 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1398 (mips_idiv_insns): Update the comments to say that the returned
1399 instruction counts are in units of BASE_INSN_LENGTH.
1400 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1401 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1402 using 2 rather than 4 as the length of indirect MIPS16 and
1403 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1404 length of a NOP. Don't divide MIPS16 lengths by 2.
1405 (mips16_split_long_branches): Assume a branch is long if the
1406 length is greater than 4 rather than 8.
1407 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1408 rather than multiplying them by 2. Multiply instruction counts
1409 by BASE_INSN_LENGTH rather than 4.
1410 (*jump_mips16, tls_get_tp_mips16_<mode>)
1411 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1412
13719e8b
RS
14132013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1414
1415 * config/mips/mips.md (extended_mips16): Remove branch case.
1416 (length): Remove duplicated extended_mips16 test.
1417
c3850d14
RS
14182013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1419
1420 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1421
8da2e059
RS
14222013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1423
1424 * recog.h (Recog_data): Rename to...
1425 (recog_data_d): ...this.
1426 (recog_data): Update accordingly.
1427 * recog.c (recog_data): Likewise.
1428 * reload.c (save_recog_data): Likewise.
1429 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1430 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1431
2df013f3
JB
14322013-05-17 Julian Brown <julian@codesourcery.com>
1433
1434 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1435 found in a REG_EQUAL note, invalidate it.
1436
933f507d
ER
14372013-05-17 Easwaran Raman <eraman@google.com>
1438
1439 * tree-ssa-reassoc.c (find_insert_point): New function.
1440 (insert_stmt_after): Likewise.
1441 (get_def_stmt): Likewise.
1442 (ensure_ops_are_available): Likewise.
1443 (not_dominated_by): Likewise.
1444 (rewrite_expr_tree): Do not move statements beyond what is
1445 necessary. Remove call to swap_ops_for_binary_stmt...
1446 (reassociate_bb): ... and move it here.
1447 (build_and_add_sum): Assign UIDs for new statements.
1448 (linearize_expr): Likewise.
1449 (do_reassoc): Renumber gimple statement UIDs.
1450
e01c7cca
JH
14512013-05-17 Jan Hubicka <jh@suse.cz>
1452
1453 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1454 weakrefs.
1455 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
1456 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1457 weakrefs.
e01c7cca
JH
1458 (output_weakrefs): Update.
1459
c3272a92
PCC
14602013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1461 Martin Jambor <mjambor@suse.cz>
1462
1463 PR middle-end/57276
1464 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1465 value that corresponds to the given aggval is found in values vector.
1466
11c2aa39
UB
14672013-05-17 Uros Bizjak <ubizjak@gmail.com>
1468
1469 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1470 sse, sse2, sse3, ssse3 and sse4a flags to options.
1471
abecc8c6
DM
14722013-05-17 David Malcolm <dmalcolm@redhat.com>
1473
1474 * gengtype-state.c: (s_expr_writer): New class, to handle
1475 prettifying of output layout of s-expressions.
1476 (state_writer): New class, to write out gtype.state.
1477 (state_written_type_count): Move this variable into member data of
1478 state_writer.
1479 (s_expr_writer::s_expr_writer): New code: constructor for new class
1480 (state_writer::state_writer(): ditto
1481 (s_expr_writer::write_new_line): New function
1482 (s_expr_writer::write_any_indent): ditto
1483 (s_expr_writer::begin_s_expr): ditto
1484 (s_expr_writer::end_s_expr): ditto
1485 (write_state_fileloc): convert to method of state_writer...
1486 (state_writer:: write_state_fileloc): ...and use methods of
1487 s_expr_writer to write indentation into the gtype.state output file
1488 to visually represent the hierarchical structure of the list
1489 structures
1490 (write_state_fields): ditto, renaming to...
1491 (state_writer::write_state_fields)
1492 (write_state_a_string): ditto, renaming to...
1493 (state_writer::write_state_a_string)
1494 (write_state_string_option): ditto, renaming to...
1495 (state_writer::write_state_string_option)
1496 (write_state_type_option): ditto, renaming to...
1497 (state_writer::write_state_type_option)
1498 (write_state_nested_option): ditto, renaming to...
1499 (state_writer::write_state_nested_option)
1500 (write_state_option): ditto, renaming to...
1501 (state_writer::write_state_option)
1502 (write_state_options): ditto, renaming to...
1503 (state_writer::write_state_options)
1504 (write_state_lang_bitmap): ditto, renaming to...
1505 (state_writer::write_state_lang_bitmap)
1506 (write_state_version): ditto, renaming to...
1507 (state_writer::write_state_version)
1508 (write_state_scalar_type): ditto, renaming to...
1509 (state_writer::write_state_scalar_type)
1510 (write_state_string_type): ditto, renaming to...
1511 (state_writer::write_state_string_type)
1512 (write_state_undefined_type): ditto, renaming to...
1513 (state_writer::write_state_undefined_type)
1514 (write_state_struct_union_type): ditto, renaming to...
1515 (state_writer::write_state_struct_union_type)
1516 (write_state_struct_type): ditto, renaming to...
1517 (state_writer::write_state_struct_type)
1518 (write_state_user_struct_type): ditto, renaming to...
1519 (state_writer::write_state_user_struct_type)
1520 (write_state_lang_struct_type): ditto, renaming to...
1521 (state_writer::write_state_lang_struct_type)
1522 (write_state_param_struct_type): ditto, renaming to...
1523 (state_writer::write_state_param_struct_type)
1524 (write_state_pointer_type): ditto, renaming to...
1525 (state_writer::write_state_pointer_type)
1526 (write_state_array_type): ditto, renaming to...
1527 (state_writer::write_state_array_type)
1528 (write_state_gc_used): ditto, renaming to...
1529 (state_writer::write_state_gc_used)
1530 (write_state_common_type_content): ditto, renaming to...
1531 (state_writer::write_state_common_type_content)
1532 (write_state_type): ditto, renaming to...
1533 (state_writer::write_state_type)
1534 (write_state_pair_list): ditto, renaming to...
1535 (state_writer::write_state_pair_list)
1536 (write_state_pair): ditto, renaming to...
1537 (state_writer::write_state_pair)
1538 (write_state_typedefs): ditto, renaming to...
1539 (state_writer::write_state_typedefs)
1540 (write_state_structures): ditto, renaming to...
1541 (state_writer::write_state_structures)
1542 (write_state_param_structs): ditto, renaming to...
1543 (state_writer::write_state_param_structs)
1544 (write_state_variables): ditto, renaming to...
1545 (state_writer::write_state_variables)
1546 (write_state_srcdir): ditto, renaming to...
1547 (state_writer::write_state_srcdir)
1548 (write_state_files_list): ditto, renaming to...
1549 (state_writer::write_state_files_list)
1550 (write_state_languages): ditto, renaming to...
1551 (state_writer::write_state_languages)
1552 (write_state): create a state_writer instance and use it when
1553 writing out the state file
1554
d6545f29
MS
15552013-05-17 Mike Stump <mikestump@comcast.net>
1556
816a3f73 1557 PR rtl-optimization/57304
d6545f29
MS
1558 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1559 accessing DF_REF_REAL_LOC.
1560
38c821cf
JJ
15612013-05-17 Jakub Jelinek <jakub@redhat.com>
1562
1563 PR rtl-optimization/57281
1564 PR rtl-optimization/57300
1565 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1566 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1567 what the other splitter did if the registers are dead.
1568
2a293391
RB
15692013-05-17 Richard Biener <rguenther@suse.de>
1570
1571 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1572 MEM_REF offsets.
1573
17042d2b
JJ
15742013-05-17 Jakub Jelinek <jakub@redhat.com>
1575
1576 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1577 linking.
1578
5b115c1f
MP
15792013-05-17 Marek Polacek <polacek@redhat.com>
1580
11c2aa39
UB
1581 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1582 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 1583
52d84413
JJ
15842013-05-17 Jakub Jelinek <jakub@redhat.com>
1585
68119618
JJ
1586 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1587 vect_external_def oprnd1 with loop_vinfo, try to emit
1588 optional cast, negation and and stmts on the loop preheader
1589 edge instead of into the pattern def seq.
1590
52d84413
JJ
1591 PR tree-optimization/57051
1592 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1593 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1594
17b962bd
NC
15952013-05-16 Nick Clifton <nickc@redhat.com>
1596
1597 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1598 (rl78_is_naked_func): New function.
1599 (rl78_expand_prologue): Skip prologue generation for naked
1600 functions.
1601 (rl78_expand_epilogue): Skip epilogue generation for naked
1602 functions.
1603 * doc/extend.texi (naked): Add RL78 to the list of processors
1604 that supports this attribute.
1605
b1a0f84e
JL
16062013-05-16 Jeff Law <law@redhat.com>
1607
1608 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1609
af0e415b
UB
16102013-05-16 Uros Bizjak <ubizjak@gmail.com>
1611
1612 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1613 cache parameters using detect_caches_amd also for CYRIX,
1614 NSC and TM2 signatures.
1615
19db293a
UB
16162013-05-16 Uros Bizjak <ubizjak@gmail.com>
1617 Dzianis Kahanovich <mahatma@eu.by>
1618
1619 PR target/45359
1620 PR target/46396
1621 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1622 VIA/Centaur processors and determine their cache parameters
1623 using detect_caches_amd.
1624
251a41b9
TJ
16252013-05-16 Teresa Johnson <tejohnson@google.com>
1626
1627 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1628 (rtl_verify_edges): New function.
1629 (rtl_verify_bb_insns): Ditto.
1630 (rtl_verify_bb_pointers): Ditto.
1631 (rtl_verify_bb_insn_chain): Ditto.
1632 (rtl_verify_fallthru): Ditto.
1633 (rtl_verify_bb_layout): Ditto.
1634 (rtl_verify_flow_info_1): Outline checks into new functions.
1635 (rtl_verify_flow_info): Ditto.
1636
f14540b6
SE
16372013-05-16 Steve Ellcey <sellcey@imgtec.com>
1638
1639 * cfghooks.c (copy_bbs): Add update_dominance argument.
1640 * cfghooks.h (copy_bbs): Update prototype.
1641 * tree-cfg.c (gimple_duplicate_sese_region):
1642 Add update_dominance argument.
1643 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1644 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1645 gimple_duplicate_sese_region call.
1646 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1647 Update copy_bbs call.
1648 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1649 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1650
7e9a3abb
JJ
16512013-05-16 Jakub Jelinek <jakub@redhat.com>
1652
1653 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1654 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1655 vect_recog_rotate_pattern.
1656 (vect_recog_rotate_pattern): New function.
1657
427b248d
JM
16582013-05-16 Jason Merrill <jason@redhat.com>
1659
1660 * Makefile.in (LLINKER): New variable.
1661 (mostlyclean): Remove link mutex.
1662 * configure.ac: Handle --enable-link-mutex.
1663 * lock-and-run.sh: New script.
1664
b871e3d2
RR
16652013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1666
1667 PR target/19599
1668 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1669 for NULL decl.
1670
ce858126
RO
16712013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1672
1673 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1674
798d3d04
GY
16752013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1676
1677 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1678 * config/arm/arm.c (next_consecutive_mem): New function.
1679 (gen_movmem_ldrd_strd): Likewise.
1680 * config/arm/arm.md (movmemqi): Update condition and code.
1681 (unaligned_loaddi, unaligned_storedi): New patterns.
1682
0baddc45
RO
16832013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1684
1685 * config.gcc: Obsolete *-*-solaris2.9*.
1686 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1687
aa9d5bcf
RB
16882013-05-16 Richard Biener <rguenther@suse.de>
1689
1690 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1691 earlier, after GRAPHITE transforms and IV canonicalization.
1692
5a0f4dd3
JJ
16932013-05-16 Jakub Jelinek <jakub@redhat.com>
1694
1695 * omp-low.c (extract_omp_for_data): For collapsed loops,
1696 if at least one of the loops is known at compile time to
1697 iterate zero times, set count to 0.
1698 (expand_omp_regimplify_p): New function.
1699 (expand_omp_for_generic): For collapsed loops, if at least
1700 one of the loops isn't known to iterate at least once,
1701 add runtime check with setting count to 0.
1702 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1703 For unsigned types if it isn't known at compile time that
1704 the loop will iterate at least once, add runtime check to bypass
1705 the whole loop if initial condition isn't true.
1706
e3753785
NS
17072013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1708
1709 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1710
43bb4dd1
MG
17112013-05-16 Marc Glisse <marc.glisse@inria.fr>
1712
1713 PR middle-end/57286
1714 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1715 transformations to avoid an infinite loop.
1716
3571dde6
MP
17172013-05-16 Marek Polacek <polacek@redhat.com>
1718
1719 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1720
b8b3f0ca
LE
17212013-05-15 Leif Ekblad <leif@rdos.net>
1722
1723 * config/i386/i386.c (ix86_decompose_address): Use
1724 DEFAULT_TLS_SEG_REG to access TLS segment register.
1725 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1726 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1727 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1728
e299a383
RS
17292013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1730
1731 PR target/57260
1732 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1733 sibling calls to functions that would normally be lazily bound,
1734 unless $gp is call-clobbered.
1735
e7208ea3
UB
17362013-05-15 Uros Bizjak <ubizjak@gmail.com>
1737
19db293a 1738 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 1739 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
1740 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1741 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
1742 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1743 of TARGET_3DNOW.
1744 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1745
e7413f3d
AS
17462013-05-15 Andreas Schwab <schwab@suse.de>
1747
1748 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1749 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1750 third operand.
1751
ad4db775
TJ
17522013-05-15 Teresa Johnson <tejohnson@google.com>
1753
1754 * loop-unroll.c (report_unroll_peel): Check decision before
1755 emitting unroll/peel message.
1756
af205f67
TJ
17572013-05-15 Teresa Johnson <tejohnson@google.com>
1758
1759 * function.h (has_bb_partition): New rtl_data flag.
1760 (bb_reorder_complete): Ditto.
1761 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1762 instead of flag_reorder_blocks_and_partition.
1763 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1764 with some enhancements.
1765 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1766 * bb-reorder.c (connect_traces): Check for has_bb_partition
1767 instead of flag_reorder_blocks_and_partition.
1768 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1769 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1770 verify_hot_cold_block_grouping.
1771 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1772
9adcfa3c
RR
17732013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1774
1775 PR target/19599
1776 * config/arm/predicates.md (call_insn_operand): New predicate.
1777 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1778 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1779 if insn is not a tail call.
1780 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1781 registers.
1782 * config/arm/arm.h (enum reg_class): New caller save register class.
1783 (REG_CLASS_NAMES): Likewise.
1784 (REG_CLASS_CONTENTS): Likewise.
1785 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1786 without decls.
1787
ccb3ad87
RB
17882013-05-15 Richard Biener <rguenther@suse.de>
1789
1790 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1791 of MSG_OPTIMIZED_LOCATIONS.
1792 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1793 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1794 message.
1795 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1796 of MSG_OPTIMIZED_LOCATIONS.
1797 (execute_vect_slp): Likewise.
1798 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1799 (vect_create_cond_for_alias_checks): Likewise.
1800 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1801 (vect_recog_widen_mult_pattern): Likewise.
1802 (vect_recog_widen_sum_pattern): Likewise.
1803 (vect_recog_over_widening_pattern): Likewise.
1804 (vect_recog_widen_shift_pattern): Likewise.
1805 (vect_recog_vector_vector_shift_pattern): Likewise.
1806 (vect_recog_divmod_pattern): Likewise.
1807 (vect_recog_mixed_size_cond_pattern): Likewise.
1808 (vect_recog_bool_pattern): Likewise.
1809 (vect_pattern_recog_1): Likewise.
1810
48b1474e
MJ
18112013-05-15 Martin Jambor <mjambor@suse.cz>
1812
1813 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1814 non-functions to builtin_unreachable.
1815 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1816 correct when new direct edges were discovered.
1817
9de04252
MJ
18182013-05-15 Martin Jambor <mjambor@suse.cz>
1819
1820 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1821 header, print symbol order instead of node uid, print more information
1822 about indirect edge targets.
1823 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1824 uids.
1825 (ipa_make_edge_direct_to_target): Likewise.
1826 (remove_described_reference): Likewise.
1827 (propagate_controlled_uses): Likewise.
1828 (ipa_print_node_params): Also print symbol order.
1829 (ipcp_transform_function): Print symbol order instead of node uids.
1830 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1831 (cgraph_get_create_real_symbol_node): Likewise.
1832 * ipa-cp.c (print_lattice): Likewise.
1833 (print_all_lattices): Likewise.
1834 (determine_versionability): Likewise.
1835 (initialize_node_lattices): Likewise.
1836 (estimate_local_effects): Likewise.
1837 (update_profiling_info): Likewise.
1838 (create_specialized_node): Likewise.
1839 (perhaps_add_new_callers): Likewise.
1840 (decide_about_value): Likewise.
1841 (decide_whether_version_node): Likewise.
1842 (identify_dead_nodes): Likewise.
1843 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1844 (dump_inline_summary): Likewise.
1845 (estimate_node_size_and_time): Likewise.
1846 (inline_analyze_function): Likewise.
1847 * ipa-inline.c (report_inline_failed_reason): Likewise.
1848 (want_early_inline_function_p): Likewise.
1849 (edge_badness): Likewise.
1850 (update_edge_key): Likewise.
1851 (inline_small_functions): Likewise. Add dumping of order to two other
1852 dumps.
1853 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1854 instead of node uids.
1855 (propagate_pure_const): Likewise.
1856 (propagate_pure_const): Likewise.
1857 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1858 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1859 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1860 of node uids.
1861 * tree-pretty-print.c (dump_function_header): Likewise.
1862 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1863 Print symbol order instead of node uids.
1864
1dd03b91
AK
18652013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1866
1867 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1868 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1869
fdf6a7b9
RB
18702013-05-15 Richard Biener <rguenther@suse.de>
1871
1872 PR tree-optimization/57275
1873 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1874 return value for fail to do runtime alias checks for gather loads.
1875
2d6e4603
JH
18762013-05-15 Jan Hubicka <jh@suse.cz>
1877
1878 PR lto/57038
1879 PR lto/47375
e7208ea3
UB
1880 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1881 weakrefs are not external.
1882 (lto_symtab_merge_decls): Fix thinko when dealing with
1883 non-lto_symtab decls.
2d6e4603
JH
1884 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1885 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1886 * varpool.c (dump_varpool_node): Dump more flags.
1887
83f44b39
GG
18882013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1889
1890 * config/i386/i386.c (processor_alias_table): Add instruction
1891 FSGSBASE for AMD bdver3 architecture.
1892
2e55d062
JJ
18932013-05-14 Jakub Jelinek <jakub@redhat.com>
1894
1895 * tree.c (warn_deprecated_use): Print file:line using locus color.
1896 * diagnostic.c (diagnostic_report_current_module): Print file:line
1897 and file:line:column using locus color.
1898
0bfdb81e
MS
18992013-05-14 Mike Stump <mikestump@comcast.net>
1900
1901 * gdbinit.in: Add __null.
1902
a508ef22
MS
19032013-05-14 Mike Stump <mikestump@comcast.net>
1904
1905 * recog.h: Rename struct recog_data to Recog_data.
1906 * recog.c: Likewise.
1907 * reload.c (can_reload_into): Likewise.
1908 * config/picochip/picochip.c: Likewise.
1909
e7180acb
MS
19102013-05-14 Mike Stump <mikestump@comcast.net>
1911
1912 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1913
61216c26
SB
19142013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1915
fd6beed4
SB
1916 * resource.h (struct resources): Remove unch_memory member.
1917 (CLEAR_RESOURCE): Don't clear unch_memory.
1918 * resource.c (mark_referenced_resources): Don't set it.
1919 (mark_set_resources): Likewise.
1920 (mark_target_live_regs): Don't clear it.
1921 (init_resource_info): Likewise.
1922 * reorg.c (resource_conflicts_p): Don't compare it.
1923 (redundant_insn): Don't set it.
1924
61216c26
SB
1925 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1926 Remove prototypes.
1927 * emit-rtl.c (next_label): Remove unused function.
1928 (skip_consecutive_labels, link_cc0_insns): Move to ...
1929 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1930 only place where these functions are used, and make them static.
1931
418d1b87
MG
19322013-05-14 Marc Glisse <marc.glisse@inria.fr>
1933
1934 * fold-const.c (fold_negate_expr): Handle vectors.
1935 (fold_truth_not_expr): Make it static.
1936 (fold_invert_truthvalue): New static function.
1937 (invert_truthvalue_loc): Handle vectors. Do not call
1938 fold_truth_not_expr directly.
1939 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1940 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1941 (fold_comparison): Handle vector constants.
1942 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1943 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1944 * tree.h (fold_truth_not_expr): Remove declaration.
1945
fc21784d
JG
19462013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1947
1948 * config/aarch64/aarch64-simd.md
1949 (aarch64_vcond_internal<mode>): Rename to...
1950 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1951 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1952 float modes. Clarify all iterator modes.
1953 (vcond<mode><mode>): Use new name for vcond expanders.
1954 (vcond<v_cmp_result><mode>): Likewise.
1955 (vcondu<mode><mode>: Likewise.
1956 * config/aarch64/iterators.md (VDQF_COND): New.
1957
d4c52634
MG
19582013-05-14 Marc Glisse <marc.glisse@inria.fr>
1959
1960 PR bootstrap/57266
1961 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1962 variable for the shift amount. Check that we shift by non-negative
1963 amounts.
1964
2b261262
CLT
19652013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1966
1967 PR target/42017
1968 * config/arm/arm.h (EPILOGUE_USES): Only return true
1969 for LR_REGNUM after epilogue_completed.
1970
6e022d7b
JR
19712013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1972
1973 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 1974 is error_mark_node.
6e022d7b 1975
56cf7859
RO
19762013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1977
1978 PR target/57261
1979 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1980 and Solaris 11+/x86 with gld.
1981 * configure: Regenerate.
1982
75776c6d
JJ
19832013-05-14 Jakub Jelinek <jakub@redhat.com>
1984
1985 * expmed.c (expand_shift_1): Canonicalize rotates by
1986 constant bitsize / 2 to bitsize - 1.
7f998021 1987 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
1988 case ROTATERT>: Likewise.
1989
1990 Revert:
1991 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1992
1993 * config/i386/i386.md (rotateinv): New code attr.
1994 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1995 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1996 roll $31, %eax, etc.
1997
df35498a
RB
19982013-05-14 Richard Biener <rguenther@suse.de>
1999
2000 PR middle-end/57235
2001 * tree-eh.c (sink_clobbers): Give up for successors with
2002 multiple predecessors and no virtual uses.
2003
cc6e7ece
EB
20042013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2005
2006 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2007 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2008
f778dd4d
JJ
20092013-05-14 Jakub Jelinek <jakub@redhat.com>
2010
2011 PR middle-end/57251
2012 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2013 the case when both op0 and op1 have VOIDmode.
2014
bad4df9b
KP
20152013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2016
2017 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2018 in multiply-accumulate mode.
2019
56f3e9ac
GW
20202013-05-13 Guozhi Wei <carrot@google.com>
2021
2022 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2023
a3d7ab92
KT
20242013-05-13 Kai Tietz <ktietz@redhat.com>
2025
2026 PR target/56975
2027 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 2028 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 2029 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 2030 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
2031 (ix86_expand_prologue): Likewise.
2032 (ix86_expand_split_stack_prologue): Likewise.
2033 (legitimate_pic_address_disp_p): Likewise.
2034 (legitimize_pic_address): Likewise.
2035 (legitimize_tls_address): Likewise.
2036 (legitimize_pe_coff_symbol): Likewise.
2037 (output_pic_addr_const): Likewise.
2038 (construct_plt_address): Likewise.
2039 (ix86_expand_call): Likewise.
2040 (x86_output_mi_thunk): Likewise.
2041 (x86_function_profiler): Likewise.
2042
c59b7e28
SN
20432013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2044
2045 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2046 similar switch cases.
2047 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2048 (aarch64_simd_mov_to_<mode>low): Delete.
2049 (aarch64_simd_mov_to_<mode>high): Delete.
2050 (move_lo_quad_<mode>): Add w<-r alternative.
2051 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2052 (aarch64_simd_mov_from_*): Update type attribute.
2053 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2054 statement.
2055
5f28524a
JH
20562013-05-13 Jan Hubicka <jh@suse.cz>
2057
2058 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2059 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
2060 ix86_expand_epilogue, emit_i387_cw_initialization,
2061 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2062 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 2063
ae6fa899
JJ
20642013-05-13 Jakub Jelinek <jakub@redhat.com>
2065
2066 PR tree-optimization/45216
2067 PR tree-optimization/57157
2068 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2069 the (-Y) & (B - 1) variant if OP is |.
2070 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2071 return shifted. Use (-op1) & (prec - 1) as other_amount
2072 instead of prec - op1.
2073
4502fe8d
MJ
20742013-05-13 Martin Jambor <mjambor@suse.cz>
2075
2076 PR middle-end/42371
2077 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2078 (ipa_constant_data): New type.
2079 (ipa_jump_func): Use ipa_constant_data to hold information about
2080 constant jump functions.
2081 (ipa_get_jf_constant): Adjust to jump function type changes.
2082 (ipa_get_jf_constant_rdesc): New function.
2083 (ipa_param_descriptor): New field controlled_uses.
2084 (ipa_get_controlled_uses): New function.
2085 (ipa_set_controlled_uses): Likewise.
2086 * ipa-ref.h (ipa_find_reference): Declare.
2087 * ipa-prop.c (ipa_cst_ref_desc): New type.
2088 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2089 changes.
2090 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2091 New parameter cs. Adjust all callers.
2092 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2093 (remove_described_reference): New function.
2094 (jfunc_rdesc_usable): Likewise.
2095 (try_make_edge_direct_simple_call): Decrement controlled use count,
2096 attempt to remove reference if it hits zero.
2097 (combine_controlled_uses_counters): New function.
2098 (propagate_controlled_uses): Likewise.
2099 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2100 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2101 (ipa_print_node_params): Print described use counter.
2102 (ipa_write_jump_function): Adjust to jump function type changes.
2103 (ipa_read_jump_function): New parameter CS, pass it to
2104 ipa_set_jf_constant. Adjust caller.
2105 (ipa_write_node_info): Stream controlled use count
2106 (ipa_read_node_info): Likewise.
2107 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2108 asserting.
2109 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2110 count. Remove cloning-added reference if it reaches zero.
2111 * ipa-ref.c (ipa_find_reference): New function.
2112
0864bfc2
GG
21132013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2114
e7208ea3 2115 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
2116 alignment values for AMD BD and BT architectures.
2117
640bfeb2
MG
21182013-05-13 Marc Glisse <marc.glisse@inria.fr>
2119
2120 * tree-vect-generic.c (uniform_vector_p): Move ...
2121 * tree.c (uniform_vector_p): ... here.
2122 * tree.h (uniform_vector_p): Declare it.
2123 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2124 into a scalar.
2125
3a60f32b
JJ
21262013-05-13 Jakub Jelinek <jakub@redhat.com>
2127
198fe1bf
JJ
2128 PR tree-optimization/57230
2129 * tree-ssa-strlen.c (handle_char_store): Record length for
2130 array store from STRING_CST.
2131
3a60f32b
JJ
2132 PR tree-optimization/57230
2133 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2134 check.
2135
566be57c
JR
21362013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2137
2138 * config/epiphany/epiphany.c (epiphany_init): Check size of
2139 NUM_MODES_FOR_MODE_SWITCHING.
2140 (epiphany_expand_prologue):
2141 Remove CONFIG_REGNUM initial value handling code.
2142 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2143 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 2144 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
2145 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2146 Don't return 1 for FP_MODE_NONE.
2147 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2148 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2149 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2150 * config/epiphany/epiphany.md (save_config): New pattern.
2151
0f2c2331
UB
21522013-05-12 Uros Bizjak <ubizjak@gmail.com>
2153
2154 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2155
5b3f93c7
UB
21562013-05-10 Uros Bizjak <ubizjak@gmail.com>
2157
2158 * config/i386/i386.md (memory): Handle sseishft1.
2159 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2160 (*vec_extractv2di_1): Ditto.
2161
1f873f0e
VM
21622013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2163
2164 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2165 saved registers.
2166
341427fa 21672013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
2168
2169 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2170 Add mthumb/march=armv7-a multilib.
2171 Add mthumb/march=armv7-r multilib.
2172 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2173
9e69bdde
RC
21742013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2175
2176 * config/v850/t-rtems: Add more multilibs.
2177
9ff09a22
RB
21782013-05-10 Richard Biener <rguenther@suse.de>
2179
2180 PR tree-optimization/57214
2181 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2182 not propagate from SSA names that occur in abnormal PHI nodes.
2183
a5e0cd1d
MG
21842013-05-10 Marc Glisse <marc.glisse@inria.fr>
2185
2186 * stor-layout.c (element_precision): New function.
2187 * machmode.h (element_precision): Declare it.
2188 * tree.c (build_minus_one_cst): New function.
2189 (element_precision): Likewise.
2190 * tree.h (build_minus_one_cst): Declare new function.
2191 (element_precision): Likewise.
2192 * fold-const.c (operand_equal_p): Use element_precision.
2193 (fold_binary_loc): Handle vector types.
2194 * convert.c (convert_to_integer): Use element_precision.
2195 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2196 separately.
2197
cb2558bc
RS
21982013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2199
2200 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2201 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2202 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2203 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2204 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2205 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2206 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2207 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2208 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2209 (Uuw8): New constraints.
2210 (Usb4): Move into alphabetical order.
2211 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2212 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2213 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2214 previously unnamed patterns.
2215 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2216 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2217 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2218 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2219 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2220 of specific lengths.
2221
cb3b8d33
JJ
22222013-05-10 Jakub Jelinek <jakub@redhat.com>
2223
6f93c008
JJ
2224 * config/i386/i386.md (rotateinv): New code attr.
2225 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2226 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2227 roll $31, %eax, etc.
2228
cb3b8d33
JJ
2229 PR tree-optimization/45216
2230 PR tree-optimization/57157
2231 * tree-ssa-forwprop.c (simplify_rotate): New function.
2232 (ssa_forward_propagate_and_combine): Call it.
2233
afb119be
RB
22342013-05-10 Richard Biener <rguenther@suse.de>
2235
2236 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2237 disable peeling when we version for aliasing.
2238 (vector_alignment_reachable_p): Honor explicit user alignment.
2239 (vect_supportable_dr_alignment): Likewise.
2240 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2241 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2242 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2243 then peeling to arrange for the cost-model check to come first.
2244
01ae4861
AM
22452013-05-10 Alan Modra <amodra@gmail.com>
2246
2247 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2248 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2249 * configure: Regenerate.
2250
ebc9a431
AM
22512013-05-10 Alan Modra <amodra@gmail.com>
2252
2253 PR target/55033
2254 * varasm.c (default_elf_select_section): Move !DECL_P check..
2255 (get_named_section): ..to here before calling get_section_name.
2256 Adjust assertion.
2257 (default_section_type_flags): Add DECL_P check.
2258 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2259 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2260
d4bca93c
JR
22612013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2262
2263 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2264 When using gen_stack_adjust_str with a register offset, add a
2265 REG_FRAME_RELATED_EXPR note.
2266
60ca9a65
UB
22672013-05-09 Uros Bizjak <ubizjak@gmail.com>
2268
2269 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2270 (*vec_extractv4si_zext_mem): Ditto.
2271 (*vec_extractv2di): Add 0->x and x->x alternatives.
2272 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2273 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2274
a3409c02
JM
22752013-05-09 Jason Merrill <jason@redhat.com>
2276
0138d6b2
JM
2277 N3639 C++1y VLA support
2278 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2279 DECL_VALUE_EXPR.
2280
a3409c02
JM
2281 * tree.c (build_constructor_va): New.
2282 * tree.h: Declare it.
2283
66e6b990
MJ
22842013-05-09 Martin Jambor <mjambor@suse.cz>
2285
2286 PR lto/57084
2287 * gimple-fold.c (canonicalize_constructor_val): Call
2288 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2289
64cfa6c0
JH
22902013-05-09 Jan Hubicka <jh@suse.cz>
2291 Richard Biener <rguenther@suse.de>
2292
2293 PR lto/54095
2294 * symtab.c (symtab_make_decl_local): Do not add private names.
2295
c3167b00
JH
22962013-05-09 Jan Hubicka <jh@suse.cz>
2297
2298 PR lto/54095
2299 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2300 (unlink_from_assembler_name_hash): Likewise.
2301 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2302 symtab_unregister_node, symtab_initialize_asm_name_hash,
2303 change_decl_assembler_name): Update.
2304
12dc6974
SN
23052013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2306
2307 * config/aarch64/aarch64.md: New movtf split.
2308 (*movtf_aarch64): Update.
2309 (aarch64_movdi_tilow): Handle TF modes and rename to
2310 aarch64_movdi_<mode>low.
2311 (aarch64_movdi_tihigh): Handle TF modes and rename to
2312 aarch64_movdi_<mode>high
2313 (aarch64_movtihigh_di): Handle TF modes and rename to
2314 aarch64_mov<mode>high_di
2315 (aarch64_movtilow_di): Handle TF modes and rename to
2316 aarch64_mov<mode>low_di
2317 (aarch64_movtilow_tilow): Remove spurious whitespace.
2318 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2319 splits.
2320 (aarch64_print_operand): Update.
2321
227eb343
AM
23222013-05-09 Alan Modra <amodra@gmail.com>
2323
2324 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2325 powerpc64le.
2326 * configure: Regenerate.
2327
0b013847
UB
23282013-05-08 Uros Bizjak <ubizjak@gmail.com>
2329
2330 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2331 splitter preparation statements.
2332 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2333 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2334 adjust_address_nv.
2335
1dc3d6e9
BS
23362013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2337
2338 * gimple-ssa-strength-reduction.c (count_candidates): Change
2339 return value to int.
2340 (analyze_candidates_and_replace): Change type of length to int.
2341
e61e7d28
UB
23422013-05-08 Uros Bizjak <ubizjak@gmail.com>
2343
2344 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2345 (*vec_extract<mode>): Use VI12_128 mode iterator.
2346 (*vec_extract<mode>_mem): Ditto.
2347 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2348 attribute.
2349
4fbfcf44
DN
23502013-05-08 Diego Novillo <dnovillo@google.com>
2351
2352 PR bootstrap/54659
2353
2354 Revert:
4fbfcf44
DN
2355 2012-08-17 Diego Novillo <dnovillo@google.com>
2356
e61e7d28
UB
2357 PR bootstrap/54281
2358 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2359 * config.in: Regenerate.
2360 * configure: Regenerate.
2361 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 2362
702d8703
JH
23632013-05-08 Jan Hubicka <jh@suse.cz>
2364
2365 PR lto/54095
2366 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2367 * cgraph.h (symtab_node_base): Add unique_name.
2368 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2369 input_overwrite_node, input_varpool_node): Stream unique_name.
2370 * cgraphclones.c (cgraph_create_virtual_clone,
2371 cgraph_function_versioning): Set unique_name.
2372 * ipa.c (function_and_variable_visibility): Set unique_name.
2373
8b28cf47
BS
23742013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2375
2376 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2377 (alloc_cand_and_find_basis): Restrict conditional candidate
2378 processing to CAND_MULTs.
2379
e86074fd
JH
23802013-05-08 Jan Hubicka <jh@suse.cz>
2381
2382 PR lto/54095
2383 lto-symtab.c (lto_symtab_symbol_p): New function.
2384 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2385 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2386 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2387 Skip static symbols.
2388
44398cbe
PC
23892013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2390
2391 PR tree-optimization/57200
2392 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2393 Only call inform if the preceding warning_at returns true.
2394
f6bc1c4a
HS
23952013-05-07 Han Shen <shenhan@google.com>
2396
2397 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2398 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2399 * common.opt (fstack-protector-strong): New option.
2400 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2401 * doc/invoke.texi (Optimization Options): Document
2402 "-fstack-protector-strong".
2403 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2404
4ffecb1f
SB
24052013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2406
2407 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2408
5a107a0f
VM
24092013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2410
2411 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2412 it is not lhs of the insn.
2413 (setup_reg_equiv): Remove insn having equiv memory which it is not
2414 lhs of the insn.
2415 * lra-constraints.c (process_address): Try to improve generation
2416 code for address base + disp.
2417 (lra_constraints): Make correct the code for checking insn setting
2418 up backward equivalence. Remove insn only if it is in the init
2419 insn list.
2420 * lra-eliminations.c (update_reg_eliminate): Change return value.
2421 (lra_eliminate): Use the result.
2422
3f5783ea
UB
24232013-05-07 Uros Bizjak <ubizjak@gmail.com>
2424
2425 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2426 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2427 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2428 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2429 register target operands.
2430 (*vec_extractv8hi_sse2): New pattern.
2431 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2432 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2433 (*vec_extract<mode>_mem): New insn and split pattern.
2434
8a5800b8
CL
24352013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2436
2437 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2438 (TARGET_ASAN_SHADOW_OFFSET): Define.
2439 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2440 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2441
7bf55a70
BS
24422013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2443
2444 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2445 (incr_vec_index): Return -1 if increment not found.
2446 (create_add_on_incoming_edge): Assert if increment not found.
2447 (record_increment): Limit number of increments recorded.
2448 (all_phi_incrs_profitable): Return false if an increment not found.
2449 (replace_profitable_candidates): Don't process increments that were
2450 not recorded.
2451 (analyze_candidates_and_replace): Limit size of incr_vec.
2452
3f8825c0
RB
24532013-05-07 Richard Biener <rguenther@suse.de>
2454
2455 * calls.c (special_function_p): setjmp-like functions are leaf.
2456 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2457 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2458
fd4842cd
SN
24592013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2460
2461 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2462 (aarch64_simd_mov<mode>): New expander.
2463 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2464 (aarch64_simd_mov_to_<mode>high): Likewise.
2465 (aarch64_simd_mov_from_<mode>low): Likewise.
2466 (aarch64_simd_mov_from_<mode>high): Likewise.
2467 (aarch64_dup_lane<mode>): Update.
2468 (aarch64_dup_lanedi): New instruction pattern.
2469 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2470 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2471
a7a7d10e
BS
24722013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2473
2474 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2475 (replace_mult_candidate): Remove unnecessary argument; remove
2476 unnecessary parameter from call to introduce_cast_before_cand.
2477 (replace_unconditional_candidate): Remove unnecessary parameter
2478 from call to replace_mult_candidate.
2479 (replace_conditional_candidate): Likewise.
2480 (insert_initializers): Use make_temp_ssa_name.
2481 (introduce_cast_before_cand): Remove unnecessary argument; use
2482 make_temp_ssa_name.
2483 (replace_one_candidate): Remove unnecessary argument; remove
2484 unnecessary parameter from calls to introduce_cast_before_cand.
2485 (replace_profitable_candidates): Remove unnecessary parameters
2486 from calls to replace_one_candidate.
2487
29105868
BS
24882013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2489
2490 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2491 phi def as possibly hiding a basis for a CAND_ADD whose operands
2492 have been commuted in the analysis.
2493 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2494
4095f9fa
N
24952013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2496
2497 * config/aarch64/aarch64.md
2498 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2499 shift value between 0-4.
2500
39e843e8
RB
25012013-05-07 Richard Biener <rguenther@suse.de>
2502
2503 * double-int.h (rshift): New overload.
2504 * double-int.c (rshift): New function.
2505 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2506 (create_reference_ops_from_ref): Remove.
2507 (vn_reference_insert): Use shared ops for constructing the
2508 reference and copy it.
2509
0a1a83cb
RB
25102013-05-07 Richard Biener <rguenther@suse.de>
2511
2512 PR middle-end/57190
2513 * tree-eh.c (sink_clobbers): Properly propagate
2514 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2515
43303d6f
JJ
25162013-05-07 Jakub Jelinek <jakub@redhat.com>
2517
ba7e83f8
JJ
2518 PR tree-optimization/57149
2519 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2520 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2521 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2522 uninit_undefined_value_p instead of ssa_undefined_value_p.
2523
43303d6f
JJ
2524 PR debug/57184
2525 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2526 for modifier == EXPAND_INITIALIZER.
2527
14523c25
AB
25282013-05-07 Anton Blanchard <anton@samba.org>
2529
2530 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2531 for powerpc64 little endian.
2532 * configure: Regenerate.
2533
cb7c8be9
GS
25342013-05-06 Graham Stott <grahams@btinternet.com>
2535
2536 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2537 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2538 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2539 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2540
25412013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
2542
2543 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2544 codes which allow non-lvalues.
2545
9a0ee7b0
MG
25462013-05-06 Marc Glisse <marc.glisse@inria.fr>
2547
2548 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2549 components are all 1s.
2550 (integer_minus_onep): New function.
2551 * tree.h (integer_minus_onep): Declare it.
2552 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2553 integer_minus_onep instead of integer_all_onesp.
2554
f2c17ea9
OE
25552013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2556
2557 PR target/52933
2558 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2559 variations of these patterns.
2560
f75e6a51
UB
25612013-05-06 Uros Bizjak <ubizjak@gmail.com>
2562
2563 * config/i386/i386.md (isa): Add x64_sse4 member.
2564 (enabled): Handle x64_sse4.
2565 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2566 instruction for 64bit SSE4_1 targets. Update insn attributes.
2567 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2568 instruction for SSE4_1 targets. Update insn attributes.
2569 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2570 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2571 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2572 const_1 selector.
2573 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2574 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2575 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2576
a986d468
OE
25772013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2578
2579 PR target/57108
2580 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2581
382522cb
MK
25822013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2583
2584 * final.c (do_assembler_dialects): Don't handle curly braces and
2585 vertical bar escaped by % as dialect delimiters.
2586 (output_asm_insn): Print curly braces and vertical bar if escaped
2587 by % and ASSEMBLER_DIALECT defined.
2588 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2589 * doc/tm.texi: Regenerated.
2590
fb0d5c60
SB
25912013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2592
fb0d5c60
SB
2593 * config/mips/mips.c: Include tree-pass.h.
2594 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2595 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2596 (pass_mips_machine_reorg2): New machine specific pass.
2597 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2598 (mips_option_override): Register the new pass.
2599 * rtl.h (cleanup_barriers): Remove prototype.
2600 (dbr_schedule): Likewise.
2601 * jump.c (cleanup_barriers): Make static.
2602 * reorg.c (dbr_schedule): Likewise.
2603
aa06a978
RB
26042013-05-06 Richard Biener <rguenther@suse.de>
2605
2606 PR tree-optimization/57185
2607 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2608 SSA names properly.
2609
0b953bec
UB
26102013-05-06 Uros Bizjak <ubizjak@gmail.com>
2611
2612 PR target/57106
2613 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2614 between "first_arg" and "insn", not "last" and "insn".
2615
28708525
WS
26162013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2617
2618 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2619 (find_candidates_in_block): Re-enable slsr_process_phi.
2620 (create_phi_basis): Fix double counting of candidate adjustment.
2621
0107dca2
RB
26222013-05-06 Richard Biener <rguenther@suse.de>
2623
2624 PR middle-end/57147
2625 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2626 the edge is also fallthru, preserve it and just clear the
2627 abnormal flag.
2628 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2629 also complex, preserve that and just clear the fallthru flag.
2630 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2631 update virtual operands.
2632
470d4d13
AM
26332013-05-06 Alan Modra <amodra@gmail.com>
2634
2635 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2636 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2637 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2638 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2639 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2640 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2641
8f1dbf8d
AM
26422013-05-06 Alan Modra <amodra@gmail.com>
2643
2644 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2645 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2646 (DEFAULT_ASM_ENDIAN): Define.
2647 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2648 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2649 Update -K PIC clause from sysv4.h.
2650 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2651 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2652
54890767
AM
26532013-05-06 Alan Modra <amodra@gmail.com>
2654
2655 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2656 twice for little-endian.
2657 (ashrdi3_no_power, ashrdi3): Support little-endian.
2658
2353515d
OE
26592013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2660
2661 PR target/55303
2662 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2663 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2664 related expanders.
2665 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2666 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2667 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2668 New predicates.
2669
33e67557
SB
26702013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2671 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2672
2673 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2674 * config/pa/pa.opt: Make mbig-switch a no-op.
2675 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2676 (CASE_VECTOR_MODE): Always return SImode.
2677 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2678 for the !TARGET_BIG_SWITCH case.
2679 * config/pa/pa-linux.h: Likewise.
2680 * config/pa/pa-openbsd.h: Likewise.
2681 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2682 * config/pa/pa.md (short_jump): Remove define_insn.
2683 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2684 (casesi0): Remove define_insn.
2685 (type): Remove btable_branch.
2686 (pa_combine_type): Likewise.
2687 (in_nullified_branch_delay): Likewise.
2688 (in_call_delay): Likewise.
2689 (define_delay): Likewise.
2690 (define_insn_reservation "Z3"): Likewise.
2691 (define_insn_reservation "Z4"): Likewise.
2692 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2693 (pa_adjust_insn_length): Remove adjustment for btable branches.
2694 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2695 and mno-big-switch
2696
3095685e
UB
26972013-05-05 Uros Bizjak <ubizjak@gmail.com>
2698
2699 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2700 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2701 Add m->r,x alternatives.
2702 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2703 splitters using SWI48x mode iterator.
2704 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2705 TARGET_64BIT. Add m->x alternative.
2706 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2707 Add o->x alternative. Enable for TARGET_SSE.
2708 (sse_storeq): Remove expander.
2709 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2710 with memory input operand.
2711 (*vec_extractv2di_1 splitter): New.
2712 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2713 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2714
4b36ae28
SB
27152013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2716
2717 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2718 (INT_LOWPART): Delete.
2719 (extract_MB): Adjust.
2720 (extract_ME): Adjust.
2721 (print_operand): Adjust.
2722
da226db2
SB
27232013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2724
2725 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2726 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2727 (reg_or_logical_cint_operand, easy_fp_constant,
2728 logical_const_operand): Delete "CONST_DOUBLE" case.
2729 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2730 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 2731 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
2732 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2733 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2734 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2735 test.
2736 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2737 CONST_DOUBLE DImode/VOIDmode case.
2738 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2739 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2740 CONST_DOUBLE VOIDmode case.
2741 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2742 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2743 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2744 Delete CONST_DOUBLE case.
2745 (splitters for mov FMOVE64 const_double): Delete
2746 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2747 "HOST_BITS_PER_WIDE_INT >= 64" test.
2748 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2749 case.
2750 (mov DI const_double): Delete.
2751
40de22d6
JJ
27522013-05-04 Jakub Jelinek <jakub@redhat.com>
2753
2754 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2755 on op shows all bits zero in mode of a lowpart subreg, return zero.
2756
5ec6aff2
MM
27572013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2758
2759 PR target/57150
2760 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2761 to save TFmode registers and DImode to save TImode registers for
2762 caller save operations.
2763 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2764 mark being partially clobbered since they only use the first
2765 double word.
2766
2767 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2768 and TDmode only use the upper 64-bits of each VSX register.
2769
2cefad90
BS
27702013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2771
2772 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2773 (find_candidates_in_block): Disable slsr_process_phi.
2774
d6d7eee1
GW
27752013-05-03 Guozhi Wei <carrot@google.com>
2776
2777 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
2778 constructor to ...
2779 (build_init_ctor): ... here.
d6d7eee1 2780
9b92d12b
BS
27812013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2782
2783 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2784 (slsr_cand_d): Redefine def_phi.
2785 (stride_status, phi_adjust_status, count_phis_status): New enums.
2786 (find_phi_def): New.
2787 (find_basis_for_base_expr): New.
2788 (find_basis_for_candidate): Handle hidden bases.
2789 (alloc_cand_and_find_basis): Handle phi candidates.
2790 (slsr_process_phi): New.
2791 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2792 (create_mul_imm_cand): Likewise.
2793 (create_add_ssa_cand): Exclude phi base candidates.
2794 (create_add_imm_cand): Likewise.
2795 (slsr_process_cast): Likewise.
2796 (slsr_process_copy): Likewise.
2797 (find_candidates_in_block): Handle phi candidates.
2798 (dump_candidate): Likewise.
2799 (unconditional_cands): Delete.
2800 (unconditional_cands_with_known_stride_p): Delete.
2801 (phi_dependent_cand_p): New.
2802 (cand_increment): Handle phi-dependent candidates.
2803 (replace_dependent): Delete.
2804 (replace_mult_candidate): New.
2805 (replace_unconditional_candidate): New.
2806 (incr_vec_index): Move to avoid forward reference.
2807 (create_add_on_incoming_edge): New.
2808 (create_phi_basis): New.
2809 (replace_dependents): Delete.
2810 (replace_conditional_candidate): New.
2811 (phi_add_costs): New.
2812 (replace_uncond_cands_and_profitable_phis): New.
2813 (record_increment): Handle phi adjustments.
2814 (record_phi_increments): New.
2815 (record_increments): Handle phi adjustments.
2816 (phi_incr_cost): New.
2817 (lowest_cost_path): Handle phis.
2818 (total_savings): Likewise.
2819 (analyze_increments): Likewise.
2820 (ncd_with_phi): New.
2821 (ncd_of_cand_and_phis): New.
2822 (nearest_common_dominator_for_cands): Handle phi increments.
2823 (all_phi_incrs_profitable): New.
2824 (replace_profitable_candidates): Handle phi-dependent candidates.
2825 (analyze_candidates_and_replace): Likewise.
2826
68f073d4
TJ
28272013-05-03 Teresa Johnson <tejohnson@google.com>
2828
2829 PR bootstrap/57154
2830 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2831 do not exceed REG_BR_PROB_BASE.
2832
a4ee7cb9
JL
28332013-05-03 Jeff Law <law@redhat.com>
2834
ade67f70 2835 PR tree-optimization/57144
a4ee7cb9
JL
2836 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2837 operand of the condition will bit into the new type when eliminating
2838 a cast feeding a condition.
2839
47954c4e
JJ
28402013-05-03 Jakub Jelinek <jakub@redhat.com>
2841
2842 PR rtl-optimization/57130
3095685e
UB
2843 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2844 of COMPARE as in_code to the recursive call if needed.
47954c4e 2845
3c21604f
UB
28462013-05-03 Uros Bizjak <ubizjak@gmail.com>
2847
2848 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2849 (enabled): Handle new members.
2850 * config/i386/sse.md (*vec_concatv2si): Merge from
2851 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2852 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2853
95c03b36
JR
28542013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2855
2856 PR tree-optimization/57027
2857 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2858 for fnms opportunity, check we got the prerequisite kind
2859 of tree / gimple before using accessor functions.
2860
07bfc9ec
RB
28612013-05-03 Richard Biener <rguenther@suse.de>
2862
2863 * double-int.h (lshift): New overload without precision
2864 and arith argument.
2865 (operator *=, operator +=, operator -=): Move ...
2866 * double-int.c (operator *=, operator +=, operator -=): ... here
2867 and implement more efficiently.
2868 (mul_double_with_sign): Remove.
2869 (lshift_double): Adjust to take unsinged shift argument, push
2870 dispatching code to callers.
2871 (mul_double_wide_with_sign): Add early out for callers that
2872 are not interested in high parts or overflow.
2873 (lshift): New function.
2874 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2875 dispatch code here.
2876 (lrotate, rrotate): Use logical shifts.
2877 * expr.c (get_inner_reference): Use lshift.
2878 * fixed-value.c (do_fixed_divide): Likewise.
2879 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2880 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2881 (indirect_refs_may_alias_p): Likewise.
2882 (stmt_kills_ref_p_1): Likewise.
2883
7769bb64
VP
28842013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2885
2886 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2887
1d0c8e5c
VP
28882013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2889
2890 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2891 scalar form of FABD instruction.
2892
f15feaf9
VM
28932013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2894
2895 * lra-constraints.c (process_alt_operands): Add checking alt
2896 number to choose the best alternative.
2897
d90e76d4
RB
28982013-05-02 Richard Biener <rguenther@suse.de>
2899
2900 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2901 bitmap and its handling.
2902 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2903
9f8e7a96
RB
29042013-05-02 Richard Biener <rguenther@suse.de>
2905
2906 PR middle-end/57140
2907 * tree-inline.c (copy_loops): Properly handle removed loops.
2908 (copy_cfg_body): Mark destination loops for fixup if source
2909 loops needed fixup.
2910
f3a81b39
GY
29112013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2912
2913 PR target/56732
2914 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2915 generating simple_return for naked functions.
2916
7b920a9a
MJ
29172013-05-02 Martin Jambor <mjambor@suse.cz>
2918
2919 PR middle-end/56988
2920 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2921 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2922 flags match.
2923 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2924 ipa_agg_replacement_value structures.
2925 (known_aggs_to_agg_replacement_list): Likewise.
2926 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2927 (read_agg_replacement_chain): Likewise.
2928 (ipcp_transform_function): Also check that by_ref flags match.
2929
2c41c19d
RB
29302013-05-02 Richard Biener <rguenther@suse.de>
2931
2932 * graphds.h (struct graph): Add obstack member.
2933 * graphds.c (new_graph): Initialize obstack and allocate
2934 vertices from it.
2935 (add_edge): Allocate edge from the obstack.
3c21604f 2936 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 2937
8b47039c
TJ
29382013-05-02 Teresa Johnson <tejohnson@google.com>
2939
2940 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2941 divides.
2942 * cfg.c (update_bb_profile_for_threading): Ditto.
2943 * tree-inline.c (copy_bb): Ditto.
2944 (copy_edges_for_bb): Ditto.
2945 (initialize_cfun): Ditto.
2946 (copy_cfg_body): Ditto.
2947 (expand_call_inline): Ditto.
2948 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2949 (estimate_node_size_and_time): Ditto.
2950 (inline_merge_summary): Ditto.
2951 * cgraphclones.c (cgraph_clone_edge): Ditto.
2952 (cgraph_clone_node): Ditto.
2953 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2954 (compute_trg_info): Ditto.
2955
da65928c
IB
29562013-05-02 Ian Bolton <ian.bolton@arm.com>
2957
2958 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2959 S reg when fp attribute set.
2960 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2961
add3c965
IB
29622013-05-02 Ian Bolton <ian.bolton@arm.com>
2963
2964 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2965 New pattern.
2966 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2967 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2968 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2969
fdd43ac4
RB
29702013-05-02 Richard Biener <rguenther@suse.de>
2971
2972 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2973 (struct instantiate_cache_entry): New type.
2974 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2975 (struct instantiate_cache_type): New type.
2976 (set_instantiated_value, get_instantiated_value): Remove.
2977 (get_instantiated_value_entry): New function.
2978 (instantiate_scev_name): Use the new cache and adjust.
2979 (instantiate_scev_poly): Adjust.
2980 (instantiate_scev_binary): Likewise.
2981 (instantiate_array_ref): Likewise.
2982 (instantiate_scev_convert): Likewise.
2983 (instantiate_scev_not): Likewise.
2984 (instantiate_scev_3): Likewise.
2985 (instantiate_scev_2): Likewise.
2986 (instantiate_scev_r): Likewise.
2987 (instantiate_scev): Likewise.
2988 (resolve_mixers): Likewise.
2989
36ff9dfb
VM
29902013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2991
2992 PR target/57091
2993 * lra-constraints.c (best_small_class_operands_num): Remove.
2994 (process_alt_operands): Remove small_class_operands_num. Take
2995 small classes operands into losers and only if the operand is not
2996 matched. Modify debugging output.
2997 (curr_insn_transform): Remove best_small_class_operands_num.
2998 Print insn name.
2999
36054fab
JG
30002013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3001
3002 * config/aarch64/aarch64-builtins.c
3003 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3004 * config/aarch64/aarch64-simd-builtins.def
3005 (reduc_splus_): Add new modes.
3006 (reduc_uplus_): New.
3007 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3008 (reduc_uplus_v4sf): Likewise.
3009 (reduc_splus_v4sf): Likewise.
3010 (aarch64_addv<mode>): Likewise.
3011 (reduc_uplus_<mode>): Likewise.
3012 (reduc_splus_<mode>): Likewise.
3013 (aarch64_addvv2di): Likewise.
3014 (reduc_uplus_v2di): Likewise.
3015 (reduc_splus_v2di): Likewise.
3016 (aarch64_addvv2si): Likewise.
3017 (reduc_uplus_v2si): Likewise.
3018 (reduc_splus_v2si): Likewise.
3019 (reduc_<sur>plus_<mode>): New.
3020 (reduc_<sur>plus_v2di): Likewise.
3021 (reduc_<sur>plus_v2si): Likewise.
3022 (reduc_<sur>plus_v4sf): Likewise.
3023 (aarch64_addpv4sf): Likewise.
3024 * config/aarch64/arm_neon.h
3025 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3026 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3027 add UNSPEC_SADDV, UNSPEC_UADDV.
3028 (SUADDV): New.
3029 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3030
6dce23a8
JG
30312013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3032
3033 * config/aarch64/arm_neon.h
3034 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3035
1598945b
JG
30362013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3037
3038 * config/aarch64/aarch64-builtins
3039 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3040
998eaf97
JG
30412013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3042
3043 * config/aarch64/aarch64-simd-builtins.def
3044 (reduc_smax_): New.
3045 (reduc_smin_): Likewise.
3046 (reduc_umax_): Likewise.
3047 (reduc_umin_): Likewise.
3048 (reduc_smax_nan_): Likewise.
3049 (reduc_smin_nan_): Likewise.
3050 (fmax): Remove.
3051 (fmin): Likewise.
3052 (smax): Update for V2SF, V4SF and V2DF modes.
3053 (smin): Likewise.
3054 (smax_nan): New.
3055 (smin_nan): Likewise.
3056 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3057 (<su><maxmin><mode>3): ...This, refactor.
3058 (s<maxmin><mode>3): New.
3059 (<maxmin_uns><mode>3): Likewise.
3060 (reduc_<maxmin_uns>_<mode>): Refactor.
3061 (reduc_<maxmin_uns>_v4sf): Likewise.
3062 (reduc_<maxmin_uns>_v2si): Likewise.
3063 (aarch64_<fmaxmin><mode>: Remove.
3064 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3065 new builtin names.
3066 (vmin<q>_f<32,64>): Likewise.
3067 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3068 (FMAXMIN): New.
3069 (su): Add mappings for smax, smin, umax, umin.
3070 (maxmin): New.
3071 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3072 (FMAXMIN): Rename as...
3073 (FMAXMIN_UNS): ...This.
3074 (maxminv): Remove.
3075 (fmaxminv): Likewise.
3076 (fmaxmin): Likewise.
3077 (maxmin_uns): New.
3078 (maxmin_uns_op): Likewise.
3079
bd11644e
JG
30802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3081
3082 * config/aarch64/arm_neon.h
3083 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3084 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3085 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3086
75dd5ace
JG
30872013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3088
3089 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3090 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3091
7c19979f
JG
30922013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3093
3094 * config/aarch64/aarch64-simd.md
3095 (vcond<mode>_internal): Handle special cases for constant masks.
3096 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3097 (vcondu<mode><mode>): Likewise.
3098 (vcond<v_cmp_result><mode>): New.
3099
bb60efd9
JG
31002013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3101
3102 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3103 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3104 * config/aarch64/aarch64-simd-builtins.def
3105 (cmeq): Update to BUILTIN_VALLDI.
3106 (cmgt): Likewise.
3107 (cmge): Likewise.
3108 (cmle): Likewise.
3109 (cmlt): Likewise.
3110 * config/aarch64/arm_neon.h
3111 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3112 to builtins or C as appropriate.
3113
889b9412
JG
31142013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3115
3116 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3117 (cmgeu): ...This.
3118 (cmhi): Rename to...
3119 (cmgtu): ...This.
3120 * config/aarch64/aarch64-simd.md
3121 (simd_mode): Add SF.
3122 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3123 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3124 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3125 (cstore<mode>_neg): ...This.
3126 * config/aarch64/iterators.md
3127 (VALLF): new.
3128 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3129 (COMPARISONS): New.
3130 (UCOMPARISONS): Likewise.
3131 (optab): Add missing comparisons.
3132 (n_optab): New.
3133 (cmp_1): Likewise.
3134 (cmp_2): Likewise.
3135 (CMP): Likewise.
3136 (cmp): Remove.
3137 (VCMP_S): Likewise.
3138 (VCMP_U): Likewise.
3139 (V_cmp_result): Add DF, SF modes.
3140 (v_cmp_result): Likewise.
3141 (v): Likewise.
3142 (vmtype): Likewise.
3143 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3144
0a7dbb76
GY
31452013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3146
3147 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3148 define_insn to define_insn_and_split.
3149 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3150 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3151 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3152 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3153 (thumb2_negscc): Likewise.
3154
fb614ca6
GY
31552013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3156
3157 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3158
9e64a0bf
GY
31592013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3160
3161 * config/arm/thumb2.md: Remove trailing whitespaces.
3162
d6b28156
RS
31632013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3164
3165 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3166 Use gen_int_mode rather than GEN_INT.
3167
f91674c3
L
31682013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3169
b0dec607 3170 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
3171 debug_gimple_stmt.
3172
3551257c
RB
31732013-04-30 Richard Biener <rguenther@suse.de>
3174
3175 PR middle-end/57122
3c21604f 3176 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 3177
4c1aff1c
RB
31782013-04-30 Richard Biener <rguenther@suse.de>
3179
3180 PR middle-end/57107
3181 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3182
54b8379a
AB
31832013-04-30 Andrey Belevantsev <abel@ispras.ru>
3184
3185 PR rtl-optimization/56957
3186 PR rtl-optimization/57105
54b8379a
AB
3187 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3188 variable. Use just INSN_UID for determining whether an insn
3189 should be only disconnected from the insn stream.
3190 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3191
abc27962
JJ
31922013-04-30 Jakub Jelinek <jakub@redhat.com>
3193
3194 PR tree-optimization/57104
3195 * tsan.c (instrument_expr): Don't instrument accesses to
3196 DECL_HARD_REGISTER VAR_DECLs.
3197
0fc822d0
RB
31982013-04-30 Richard Biener <rguenther@suse.de>
3199
3200 * function.h (loops_for_fn): New inline function.
3201 (set_loops_for_fn): Likewise.
3202 * cfgloop.h (place_new_loop): Add struct function parameter.
3203 (get_loop): Likewise.
3204 (get_loops): Likewise.
3205 (number_of_loops): Likewise.
3206 (fel_next): Adjust.
3207 (fel_init): Likewise.
3208 * cfg.c (get_loop_copy): Adjust.
3209 * cfgloop.c (flow_loops_dump): Likewise.
3210 (record_loop_exits): Likewise.
3211 (verify_loop_structure): Likewise.
3212 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3213 (estimate_reg_pressure_cost): Likewise.
3214 (mark_loop_exit_edges): Likewise.
3215 * cfgloopmanip.c (place_new_loop): Likewise.
3216 (add_loop): Likewise.
3217 (duplicate_loop): Likewise.
3218 * graph.c (draw_cfg_nodes): Likewise.
3219 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3220 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3221 (extract_affine_chrec): Likewise.
3222 (build_scop_iteration_domain): Likewise.
3223 * graphite.c (graphite_initialize): Likewise.
3224 * ira-build.c (create_loop_tree_nodes): Likewise.
3225 (more_one_region_p): Likewise.
3226 (rebuild_regno_allocno_maps): Likewise.
3227 (mark_loops_for_removal): Likewise.
3228 (mark_all_loops_for_removal): Likewise.
3229 (remove_unnecessary_regions): Likewise.
3230 (ira_build): Likewise.
3231 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3232 * loop-init.c (fix_loop_structure): Likewise.
3233 (gate_rtl_move_loop_invariants): Likewise.
3234 (gate_rtl_unswitch): Likewise.
3235 (gate_rtl_unroll_and_peel_loops): Likewise.
3236 (rtl_doloop): Likewise.
3237 * lto-streamer-in.c (input_cfg): Likewise.
3238 * lto-streamer-out.c (output_cfg): Likewise.
3239 * modulo-sched.c (sms_schedule): Likewise.
3240 * predict.c (tree_estimate_probability): Likewise.
3241 (tree_estimate_probability_driver): Likewise.
3242 (estimate_loops): Likewise.
3243 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3244 (move_sese_region_to_fn): Likewise.
3245 (debug_loop_num): Likewise.
3246 * tree-chrec.c (chrec_evaluate): Likewise.
3247 (hide_evolution_in_other_loops_than_loop): Likewise.
3248 (chrec_component_in_loop_num): Likewise.
3249 (reset_evolution_in_loop): Likewise.
3250 (evolution_function_is_invariant_rec_p): Likewise.
3251 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3252 * tree-inline.c (copy_loops): Likewise.
3253 (copy_cfg_body): Likewise.
3254 (tree_function_versioning): Likewise.
3255 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3256 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3257 Likewise.
3258 (add_to_evolution_1): Likewise.
3259 (scev_const_prop): Likewise.
3260 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3261 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3262 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3263 (tree_ssa_lim_initialize): Likewise.
3264 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3265 (verify_loop_closed_ssa): Likewise.
3266 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3267 (tree_ssa_loop_im): Likewise.
3268 (tree_ssa_loop_unswitch): Likewise.
3269 (tree_vectorize): Likewise.
3270 (check_data_deps): Likewise.
3271 (tree_ssa_loop_ivcanon): Likewise.
3272 (tree_ssa_loop_bounds): Likewise.
3273 (tree_complete_unroll): Likewise.
3274 (tree_complete_unroll_inner): Likewise.
3275 (tree_parallelize_loops): Likewise.
3276 (tree_ssa_loop_prefetch): Likewise.
3277 (tree_ssa_loop_ivopts): Likewise.
3278 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3279 * tree-vectorizer.c (vectorize_loops): Likewise.
3280
37953bd3
MF
32812013-04-29 Mike Frysinger <vapier@gentoo.org>
3282
3283 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3284 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3285 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3286 with EABI_LINK_SPEC.
3287
f9ed28db
UB
32882013-04-29 Uros Bizjak <ubizjak@gmail.com>
3289
3290 PR target/44578
3291 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3292 alternative.
3293
deca73f5
VM
32942013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3295
3296 PR target/57097
37953bd3 3297 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
3298 using memory for pseudos. Print cost dump for alternatives.
3299 Modify cost values for conflicts with early clobbers.
3300 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3301
fdca7d03
UB
33022013-04-29 Uros Bizjak <ubizjak@gmail.com>
3303
3304 PR target/57098
3305 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3306
0b064172
IB
33072013-04-29 Ian Bolton <ian.bolton@arm.com>
3308
3309 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3310 from/to S register.
3311 (movdi_aarch64): Support LDR/STR from/to D register.
3312
473cec55
IB
33132013-04-29 Ian Bolton <ian.bolton@arm.com>
3314
3315 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3316 or higher by default.
3317
a6f30e66
RB
33182013-04-29 Richard Biener <rguenther@suse.de>
3319
3320 PR middle-end/57075
3321 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3322 even if not adding abnormal edges for calls that can make
3323 abnormal gotos.
3324
0c2b2040
RB
33252013-04-29 Richard Biener <rguenther@suse.de>
3326
3327 PR middle-end/57103
3328 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3329 TREE_BLOCK.
3330 (move_stmt_r): Remove redundant checking.
3331
f41f80f9
TJ
33322013-04-29 Teresa Johnson <tejohnson@google.com>
3333
3334 PR bootstrap/57077
3335 * basic-block.h (apply_scale): New function.
3336 (apply_probability): Use apply_scale.
3337 * gimple-streamer-in.c (input_bb): Ditto.
3338 * lto-streamer-in.c (input_cfg): Ditto.
3339 * lto-cgraph.c (merge_profile_summaries): Ditto.
3340 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 3341 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
3342 (copy_edges_for_bb): Ditto.
3343 (copy_cfg_body): Ditto.
3344
315bbd2e
TV
33452013-04-29 Tom de Vries <tom@codesourcery.com>
3346
3347 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3348 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3349 (tail_merge_optimize): Handle current_loops == NULL.
3350
ebbd90d8
JL
33512013-04-26 Jeff Law <law@redhat.com>
3352
3353 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3354 (simplify_cond_using_ranges): Generalize code to simplify
3355 COND_EXPRs where one argument is a constant and the other
3356 is an SSA_NAME created by an integral type conversion.
3357
8b9b57eb
KT
33582013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3359
3360 * config/arm/arm.md (store_minmaxsi): Use only when
3361 optimize_insn_for_size_p.
3362
9498e5dc
CB
33632013-04-29 Christian Bruel <christian.bruel@st.com>
3364
3365 PR target/57108
3366 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3367
6093bc06
RB
33682013-04-29 Richard Biener <rguenther@suse.de>
3369
3370 PR middle-end/57089
fdca7d03
UB
3371 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3372 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
3373 (expand_omp_for_generic): Properly add loops.
3374 (expand_omp_for_static_nochunk): Likewise.
3375 (expand_omp_for_static_chunk): Likewise.
3376 (expand_omp_for): For the degenerate case fixup loops.
3377 (expand_omp_sections): Fix default bb placement in loops.
3378 (expand_omp_atomic_pipeline): Properly add loops.
3379
84aacbfd
KT
33802013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3381
3382 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3383
8dee4479
TV
33842013-04-29 Tom de Vries <tom@codesourcery.com>
3385
3386 * tree-ssa-tail-merge.c: Update header comment.
3387
47934dc4
JG
33882013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3389
3390 * config/aarch64/arm_neon.h
3391 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3392 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3393 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3394 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3395 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3396 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3397 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3398 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3399
384be29f
JG
34002013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3401
3402 * config/aarch64/aarch64-simd.md
3403 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3404 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3405 fix_trunc, fixuns_trunc.
3406 (ftrunc<VDQF:mode>2): New.
3407 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3408 (fix_trunc_optab): New.
3409
0386b123
JG
34102013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3411
3412 * config/aarch64/aarch64-builtins.c
3413 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3414 iceilf, lround, iroundf.
3415
00fcb892
UB
34162013-04-29 Uros Bizjak <ubizjak@gmail.com>
3417
3418 PR target/54349
3419 * config/i386/i386.h (enum ix86_tune_indices)
3420 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3421 New, split from X86_TUNE_INTER_UNIT_MOVES.
3422 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3423 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3424 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3425 (TARGET_INTER_UNIT_MOVES): Remove.
3426 * config/i386/i386.c (initial_ix86_tune_features): Update.
3427 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3428 (ix86_expand_convert_uns_didf_sse): Use
3429 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3430 (ix86_expand_vector_init_one_nonzero): Ditto.
3431 (ix86_expand_vector_init_interleave): Ditto.
3432 (inline_secondary_memory_needed): Return true for moves from SSE class
3433 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3434 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3435 * config/i386/constraints.md (Yi, Ym): Depend on
3436 TARGET_INTER_UNIT_MOVES_TO_VEC.
3437 (Yj, Yn): New constraints.
3438 * config/i386/i386.md (*movdi_internal): Change constraints of
3439 operand 1 from Yi to Yj and from Ym to Yn.
3440 (*movsi_internal): Ditto.
3441 (*movdf_internal): Ditto.
3442 (*movsf_internal): Ditto.
3443 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3444 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3445 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3446 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3447 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3448 * config/i386/sse.md (movdi_to_sse): Ditto.
3449 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3450 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3451 TARGET_INTER_UNIT_MOVES.
3452 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3453 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3454 instead of TARGET_INTER_UNIT_MOVES.
3455 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3456 operand 1 from Yi to Yj and from Ym to Yn.
3457
4c871069
JG
34582013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3459
3460 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3461 (float_truncate_hi_): Likewise.
3462 (float_extend_lo_): Likewise.
3463 (float_truncate_lo_): Likewise.
3464 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3465 (aarch64_float_extend_lo_v2df): Likewise.
3466 (vec_unpacks_hi_v4sf): Likewise.
3467 (aarch64_float_truncate_lo_v2sf): Likewise.
3468 (aarch64_float_truncate_hi_v4sf): Likewise.
3469 (vec_pack_trunc_v2df): Likewise.
3470 (vec_pack_trunc_df): Likewise.
3471
1709ff9b
JG
34722013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3473
3474 * config/aarch64/aarch64-builtins.c
3475 (aarch64_fold_builtin): Fold float conversions.
3476 * config/aarch64/aarch64-simd-builtins.def
3477 (floatv2si, floatv4si, floatv2di): New.
3478 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3479 * config/aarch64/aarch64-simd.md
3480 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3481 * config/aarch64/iterators.md (FLOATUORS): New.
3482 (optab): Add float, floatuns.
3483 (su_optab): Likewise.
3484
ce966824
JG
34852013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3486
3487 * config/aarch64/aarch64-builtins.c
3488 (aarch64_builtin_vectorized_function): Use new names for
3489 fcvt builtins.
3490 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3491 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3492 (fcvtzu): Split as...
3493 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3494 (fcvtas): Split as...
3495 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3496 (fcvtau): Split as...
3497 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3498 (fcvtps): Split as...
3499 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3500 (fcvtpu): Split as...
3501 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3502 (fcvtms): Split as...
3503 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3504 (fcvtmu): Split as...
3505 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3506 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3507 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3508 (lfrintnusf, lfrintnudf): Likewise.
3509 * config/aarch64/aarch64-simd.md
3510 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3511 define_insn.
3512 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3513 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3514 (fcvt_pattern): Likewise.
3515
b9de24fe
JG
35162013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3517
3518 * config/aarch64/aarch64-simd.md
3519 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3520 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3521
77a205be
JG
35222013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3523
3524 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3525 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3526 (vrnd<a,m,n,p>_f32): Implement using builtins.
3527 (vrnd<i,x><q>_f<32, 64>): New.
3528
0659ce6f
JG
35292013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3530
3531 * config/aarch64/aarch64-builtins.c
3532 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3533 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3534 (frintz): Rename to...
3535 (btrunc): ...this.
3536 (frintp): Rename to...
3537 (ceil): ...this.
3538 (frintm): Rename to...
3539 (floor): ...this.
3540 (frinti): Rename to...
3541 (nearbyint): ...this.
3542 (frintx): Rename to...
3543 (rint): ...this.
3544 (frinta): Rename to...
3545 (round): ...this.
3546 * config/aarch64/aarch64-simd.md
3547 (aarch64_frint<frint_suffix><mode>): Delete.
3548 (<frint_pattern><mode>2): Convert to insn.
3549 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3550 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3551 (frint_pattern): Likewise.
3552 (frint_suffix): Likewise.
3553
ea78906a
RB
35542013-04-29 Richard Biener <rguenther@suse.de>
3555
3556 PR tree-optimization/57081
3557 * loop-init.c: Include tree-flow.h.
3558 (loop_optimizer_finalize): Free number of iteration estimates.
3559 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3560
baee1763
JJ
35612013-04-29 Jakub Jelinek <jakub@redhat.com>
3562
94dc5332
JJ
3563 PR tree-optimization/57083
3564 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3565 non-singleton shift count range, zero extend low_bound for uns case.
3566
baee1763
JJ
3567 * config/i386/predicates.md (general_vector_operand): New predicate.
3568 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3569 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3570 if they aren't nonimmediate operands. If their original values
3571 satisfy const_vector_equal_evenodd_p, don't shift them.
3572 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3573 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3574 if not nonimmediate_operand.
3575 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3576 instead of register_operand.
3577 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3578
a9073727 35792013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
3580
3581 * stor-layout.c (finalize_size_functions): Allocate a structure and
3582 reset cfun before dumping the functions.
3583
ba8011e6
JJ
35842013-04-27 Jakub Jelinek <jakub@redhat.com>
3585
d6fde69e
JJ
3586 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3587
ba8011e6
JJ
3588 PR target/56866
3589 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3590 use xop_pmacsdqh if uns_p.
3591 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3592 the immediate rotate count.
3593
2c62cbaa
VM
35942013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3595
3596 * rtl.h (struct rtx_def): Add comment for field jump.
3597 (LRA_SUBREG_P): New macro.
3598 * recog.c (register_operand): Check LRA_SUBREG_P.
3599 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3600 stack frame.
3601 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3602 (lra_final_code_change): Skip subreg change for operators.
3603 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3604 if there are no operand changes.
3605 * lra-constraints.c (curr_insn_set): New.
3606 (match_reload): Set LRA_SUBREG_P.
3607 (emit_spill_move): Ditto.
3608 (check_and_process_move): Use curr_insn_set. Process only single
3609 set insns. Don't initialize sec_mem_p and change_p.
3610 (simplify_operand_subreg): Use LRA_SUBREG_P.
3611 (reg_in_class_p): New function.
3612 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3613 of #ifdef. Add code to remove cycling.
3614 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3615 non-null disp. Reload inner instead of disp when base and index
3616 are null. Try to put lo_sum into register.
3617 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3618 (check_and_process_move): Move code for move cost check to
3619 simple_move_p. Remove equiv_substitution.
3620 (simple_move_p): New function.
3621 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3622 curr_insn_set. Call check_and_process_move only for single set
3623 insns. Use the new function. Move call of check_and_process_move
3624 after operand equiv substitution and address process.
3625
e7d764f3
JJ
36262013-04-26 Jakub Jelinek <jakub@redhat.com>
3627
3628 PR go/57045
3629 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3630 with nonlocal goto receivers or returns twice calls, ignore
3631 unininitialized values from abnormal edges to nl goto receiver
3632 or returns twice call.
3633
41e10689
JJ
36342013-04-26 Jakub Jelinek <jakub@redhat.com>
3635
3636 PR tree-optimization/57051
3637 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3638 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3639 bitsize.
3640
d7ed20db
RB
36412013-04-26 Richard Biener <rguenther@suse.de>
3642
3643 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3644 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3645 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3646 (fixup_loop_arrays_after_move): New function.
3647 (move_sese_region_to_fn): Properly outline the loop tree parts
3648 of the SESE region.
3649
df93505e
UB
36502013-04-26 Uros Bizjak <ubizjak@gmail.com>
3651
3652 * config/i386/i386.md (type, unit): Fix long lines.
3653
dd366ec3
RB
36542013-04-26 Richard Biener <rguenther@suse.de>
3655
3656 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3657 (lto-streamer-out.o): Likewise.
3658 * cfgloop.c (init_loops_structure): Export, add struct function
3659 argument and adjust.
3660 (flow_loops_find): Adjust.
3661 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3662 (init_loops_structure): Declare.
3663 * lto-streamer-in.c: Include cfgloop.h.
3664 (input_cfg): Input the loop tree.
3665 * lto-streamer-out.c: Include cfgloop.h.
3666 (output_cfg): Output the loop tree.
3667 (output_struct_function_base): Do not drop PROP_loops.
3668
a9e0d843
RB
36692013-03-26 Richard Biener <rguenther@suse.de>
3670
3671 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3672 (pass_build_cfg): Provide PROP_loops.
3673 (move_sese_region_to_fn): Remove loops that are outlined into fn
3674 for now.
3675 * tree-inline.c: Include cfgloop.h.
3676 (initialize_cfun): Do not drop PROP_loops.
3677 (copy_loops): New function.
3678 (copy_cfg_body): Copy loop structure.
3679 (tree_function_versioning): Initialize destination loop tree.
3680 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3681 (pass_parallelize_loops): Do IL verification.
3682 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3683 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3684 the CFG make sure we fixup loops as well.
3685 * tree-ssa-tail-merge.c: Include cfgloop.h.
3686 (replace_block_by): When merging loop latches mark loops for fixup.
3687 * lto-streamer-out.c (output_struct_function_base): Drop
3688 PROP_loops for now.
3689 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3690 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3691 * ipa-split.c: Include cfgloop.h.
3692 (split_function): Add the new return block to the loop tree root.
3693 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3694 whether we have removed the forwarder block.
3695 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3696 * cfgloop.h (place_new_loop): Declare.
3697 * cfgloopmanip.c (place_new_loop): Export.
3698 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3699 (tree-switch-conversion.o): Likewise.
3700 (tree-complex.o): Likewise.
3701 (tree-inline.o): Likewise.
3702 (tree-ssa-tailmerge.o): Likewise.
3703 (ipa-split.o): Likewise.
3704 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3705 (tree-ssa-copy.o): Likewise.
3706 * tree-switch-conversion.c: Include cfgloop.h
3707 (process_switch): If we emit a bit-test cascade, schedule loops
3708 for fixup.
3709 * tree-complex.c: Include cfgloop.h.
3710 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3711 * asan.c: Include cfgloop.h.
3712 (create_cond_insert_point): Properly add new basic-blocks to
3713 loops, schedule loop fixup.
3714 * cfgloop.c (verify_loop_structure): Check that looks are not
3715 marked for fixup.
3716 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3717 to loops.
3718 (expand_omp_for_generic): Likewise.
3719 (expand_omp_sections): Likewise.
3720 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3721 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3722 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3723 is initialized, not when loops are present.
3724 * tree-parloops.c (parallelize_loops): Remove checking here.
3725 * passes.c (init_optimization_passes): Schedule a copy-propagation
3726 pass before complete unrolling of inner loops.
3727
e78e8a0b
JJ
37282013-04-26 Jakub Jelinek <jakub@redhat.com>
3729
a2e836b2
JJ
3730 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3731 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3732 (colorize_init): Add argument to _WIN32 version.
3733 * toplev.c: Include diagnostic-color.h.
3734 (process_options): Default to -fdiagnostics-color=auto if
3735 GCC_COLORS env var is in the environment.
3736 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
3737 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3738 env var is in the environment, the default is auto rather than never.
a2e836b2 3739
e78e8a0b
JJ
3740 * diagnostic.h (file_name_as_prefix): Add context argument.
3741 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3742 the string as locus.
3743 * langhooks.c (lhd_print_error_function): Adjust caller.
3744
013e5ef9
LC
37452013-04-25 Lawrence Crowl <crowl@google.com>
3746
3747 * var-tracking.c (shared_hash_def::htab):
3748 Change type to hash_table. Update dependent calls and types.
3749
4a8fb1a1
LC
37502013-04-25 Lawrence Crowl <crowl@google.com>
3751
3752 * Makefile.in: Update as needed below.
3753
3754 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3755 Move declaration to after the type's method definitons.
3756
3757 * attribs.c (htab_t scoped_attributes::attribute_hash):
3758 Change type to hash_table. Update dependent calls and types.
3759
3760 * bitmap.c (htab_t bitmap_desc_hash):
3761 Change type to hash_table. Update dependent calls and types.
3762
3763 * cselib.c (htab_t cselib_hash_table):
3764 Change type to hash_table. Update dependent calls and types.
3765
3766 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3767 (hash_string_slot_node): Move implementation into lto-streamer.h
3768 struct string_slot_hasher.
3769 (eq_string_slot_node): Likewise.
3770
3771 * data-streamer-out.c: Update output_block::string_hash_table
3772 dependent calls and types.
3773
3774 * dwarf2cfi.c (htab_t trace_index):
3775 Change type to hash_table. Update dependent calls and types.
3776
3777 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3778 Change type to hash_table. Update dependent calls and types.
3779 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3780 (htab_t optimize_external_refs::map): Likewise.
3781 (htab_t output_comp_unit::extern_map): Likewise.
3782 (htab_t output_comdat_type_unit::extern_map): Likewise.
3783 (htab_t output_macinfo::macinfo_htab): Likewise.
3784 (htab_t optimize_location_lists::htab): Likewise.
3785 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3786
3787 * except.c (htab_t ehspec_hash_type):
3788 Change type to hash_table. Update dependent calls and types.
3789 (assign_filter_values::ttypes): Likewise.
3790 (assign_filter_values::ehspec): Likewise.
3791 (sjlj_assign_call_site_values::ar_hash): Likewise.
3792 (convert_to_eh_region_ranges::ar_hash): Likewise.
3793
3794 * gcse.c (htab_t pre_ldst_table):
3795 Change type to hash_table. Update dependent calls and types.
3796
3797 * ggc-common.c (htab_t saving_htab):
3798 Change type to hash_table. Update dependent calls and types.
3799 (htab_t loc_hash): Likewise.
3800 (htab_t ptr_hash): Likewise.
3801 (call_count): Rename ggc_call_count.
3802 (call_alloc): Rename ggc_call_alloc.
3803 (loc_descriptor): Rename make_loc_descriptor.
3804 (add_statistics): Rename ggc_add_statistics.
3805
3806 * ggc-common.c (saving_htab):
3807 Change type to hash_table. Update dependent calls and types.
3808
3809 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3810 (push_gimplify_context): Likewise.
3811 (pop_gimplify_context): Likewise.
3812 (struct gimple_temp_hash_elt): Added.
3813 (struct gimplify_hasher): Likewise.
3814 (struct gimplify_ctx.temp_htab):
3815 Change type to hash_table. Update dependent calls and types.
3816
3817 * gimple-fold.c: Include gimplify-ctx.h.
3818
3819 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3820 Change type to hash_table. Update dependent calls and types.
3821 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3822 avoid potential global name collision.
3823
3824 * gimplify.c: Include gimplify-ctx.h.
3825 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3826 (htab_t gimplify_ctx::temp_htab):
3827 Update dependent calls and types for new type hash_table.
3828 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3829 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3830
3831 * gimplify-ctx.h: New.
3832 (struct gimple_temp_hash_elt): Move from gimplify.c.
3833 (class gimplify_hasher): New.
3834 (struct gimplify_ctx): Move from gimple.h.
3835 (htab_t gimplify_ctx::temp_htab):
3836 Change type to hash_table. Update dependent calls and types.
3837
3838 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3839 (htab_t ivs_params::newivs_index):
3840 Change type to hash_table. Update dependent calls and types.
3841 (htab_t ivs_params::params_index): Likewise.
3842 (htab_t print_generated_program::params_index): Likewise.
3843 (htab_t gloog::newivs_index): Likewise.
3844 (htab_t gloog::params_index): Likewise.
3845
3846 * graphite.c: Include graphite-htab.h.
3847 4htab_t graphite_transform_loops::bb_pbb_mapping):
3848 Change type to hash_table. Update dependent calls and types.
3849
3850 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3851 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3852 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3853
3854 * graphite-dependences.c: Include graphite-htab.h.
3855 (loop_is_parallel_p): Change hash table type of parameter.
3856
3857 * graphite-htab.h: New.
3858 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3859 (extern find_pbb_via_hash): Move from graphite-poly.h.
3860 (extern loop_is_parallel_p): Move from graphite-poly.h.
3861 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3862
3863 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3864 (extern loop_is_parallel_p): Move to graphite-htab.h.
3865 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3866
3867 * haifa-sched.c (htab_t delay_htab):
3868 Change type to hash_table. Update dependent calls and types.
3869 (htab_t delay_htab_i2): Likewise.
3870
3871 * ira-color.c (htab_t allocno_hard_regs_htab):
3872 Change type to hash_table. Update dependent calls and types.
3873
3874 * ira-costs.c (htab_t cost_classes_htab):
3875 Change type to hash_table. Update dependent calls and types.
3876
3877 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3878 Change type to hash_table. Update dependent calls and types.
3879
3880 * loop-iv.c (htab_t bivs):
3881 Change type to hash_table. Update dependent calls and types.
3882
3883 * loop-unroll.c (htab_t opt_info::insns_to_split):
3884 Change type to hash_table. Update dependent calls and types.
3885 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3886
3887 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3888 (struct string_slot_hasher): New.
3889 (htab_t output_block::string_hash_table):
3890 Change type to hash_table. Update dependent calls and types.
3891
3892 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3893 (htab_t file_name_hash_table):
3894 Change type to hash_table. Update dependent calls and types.
3895
3896 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3897 calls and types.
3898
3899 * lto-streamer.c (htab_t tree_htab):
3900 Change type to hash_table. Update dependent calls and types.
3901
3902 * omp-low.c: Include gimplify-ctx.h.
3903
3904 * passes.c (htab_t name_to_pass_map):
3905 Change type to hash_table. Update dependent calls and types.
3906 (pass_traverse): Rename to passes_pass_traverse.
3907
3908 * plugin.c (htab_t event_tab):
3909 Change type to hash_table. Update dependent calls and types.
3910
3911 * postreload-gcse.c (htab_t expr_table):
3912 Change type to hash_table. Update dependent calls and types.
3913 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3914
3915 * sese.c (debug_rename_map_1): Make extern.
3916 (htab_t copy_bb_and_scalar_dependences::rename_map):
3917 Change type to hash_table. Update dependent calls and types.
3918
3919 * sese.h (extern debug_rename_map): Move to .c file.
3920
3921 * store-motion.c (htab_t store_motion_mems_table):
3922 Change type to hash_table. Update dependent calls and types.
3923
3924 * trans-mem.c (htab_t tm_new_mem_hash):
3925 Change type to hash_table. Update dependent calls and types.
3926
3927 * tree-browser.c (htab_t TB_up_ht):
3928 Change type to hash_table. Update dependent calls and types.
3929
3930 * tree-cfg.c (htab_t discriminator_per_locus):
3931 Change type to hash_table. Update dependent calls and types.
3932
3933 * tree-complex.c: Include tree-hasher.h
3934 (htab_t complex_variable_components):
3935 Change type to hash_table. Update dependent calls and types.
3936
3937 * tree-eh.c (htab_t finally_tree):
3938 Change type to hash_table. Update dependent calls and types.
3939
3940 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3941 struct int_tree_hasher.
3942 (extern int_tree_map_eq): Likewise.
3943 (uid_decl_map_hash): Removed.
3944 (extern decl_tree_map_eq): Likewise.
3945
3946 * tree-hasher.h: New.
3947 (struct int_tree_hasher): New.
3948 (typedef int_tree_htab_type): New.
3949
3950 * tree-inline.c: Include gimplify-ctx.h.
3951
3952 * tree-mudflap.c: Include gimplify-ctx.h.
3953
3954 * tree-parloops.c: Include tree-hasher.h.
3955 (htab_t eliminate_local_variables_stmt::decl_address):
3956 Change type to hash_table. Update dependent calls and types.
3957 (htab_t separate_decls_in_region::decl_copies): Likewise.
3958
3959 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3960 Change type to hash_table. Update dependent calls and types.
3961
3962 * tree-sra.c (candidates):
3963 Change type to hash_table. Update dependent calls and types.
3964
3965 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3966 in tree-flow.h.
3967 (int_tree_map_hash): Likewise.
3968
3969 * tree-ssa-dom.c (htab_t avail_exprs):
3970 Change type to hash_table. Update dependent calls and types.
3971
3972 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3973 Change type to hash_table. Update dependent calls and types.
3974
3975 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3976 Change type to hash_table. Update dependent calls and types.
3977
3978 * tree-ssa-phiopt.c (seen_ssa_names):
3979 Change type to hash_table. Update dependent calls and types.
3980
3981 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3982 Change type to hash_table. Update dependent calls and types.
3983
3984 * tree-ssa-uncprop.c (equiv):
3985 Change type to hash_table. Update dependent calls and types.
3986
c5a44004
JJ
39872013-04-25 Jakub Jelinek <jakub@redhat.com>
3988
3989 PR rtl-optimization/57003
3990 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3991 call note_stores with kill_clobbered_value callback again after
3992 killing regs_invalidated_by_call.
3993
09962a4a
JG
39942013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3995
3996 * config/aarch64/aarch64-simd.md
3997 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3998 (aarch64_simd_bsl<mode>): Likewise.
3999 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4000
ea28bb0b
MP
40012013-04-25 Marek Polacek <polacek@redhat.com>
4002
4003 PR tree-optimization/57066
3c21604f 4004 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 4005
96659611
JG
40062013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4007
4008 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4009
9697e620
JG
40102013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4011
4012 * config/aarch64/aarch64-builtins.c
4013 (aarch64_fold_builtin): New.
4014 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4015 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4016 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4017 * config/aarch64/arm_neon.h
4018 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4019
0ac198d3
JG
40202013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4021 Tejas Belagod <tejas.belagod@arm.com>
4022
4023 * config/aarch64/aarch64-builtins.c
4024 (aarch64_gimple_fold_builtin): New.
4025 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4026 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4027 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4028 (addvv4sf): Update.
4029 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4030
58cff58c
N
40312013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4032
df93505e 4033 * config/aarch64/aarch64.md
58cff58c
N
4034 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4035
7e0228bf
N
40362013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4037
4038 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4039 (*ngcsi_uxtw): New pattern.
4040
5819f96f 40412013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 4042 Julian Brown <julian@codesourcery.com>
5819f96f
KT
4043
4044 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4045 (TB_DREG): Add T_V4HF.
4046 (v4hf_UP): New macro.
4047 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 4048 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
4049 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4050 built-ins.
df93505e 4051 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
4052 (arm_vector_mode_supported_p): Handle V4HF.
4053 (arm_mangle_map): Handle V4HFmode.
4054 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4055 * config/arm/arm_neon_builtins.def: Add entries for
4056 vcvtv4hfv4sf, vcvtv4sfv4hf.
4057 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4058 (neon_vcvtv4hfv4sf): Likewise.
4059 * config/arm/neon-gen.ml: Handle half-precision floating point
4060 features.
4061 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4062 * config/arm/arm_neon.h: Regenerate.
4063 * config/arm/neon.ml (type elts): Add F16.
4064 (type vectype): Add T_float16x4, T_floatHF.
4065 (type vecmode): Add V4HF.
4066 (type features): Add Requires_FP_bit feature.
4067 (elt_width): Handle F16.
4068 (elt_class): Likewise.
4069 (elt_of_class_width): Likewise.
4070 (mode_of_elt): Refactor.
4071 (type_for_elt): Handle F16, fix error messages.
4072 (vectype_size): Handle T_float16x4.
4073 (vcvt_sh): New function.
4074 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4075 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4076 (string_of_mode): Handle V4HF.
4077 * doc/arm-neon-intrinsics.texi: Regenerate.
4078
1ef395e4
JG
40792013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4080
4081 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4082 format specifier in 'X' case.
4083
41c34e94
AM
40842013-04-25 Alan Modra <amodra@gmail.com>
4085
4086 PR target/57052
4087 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4088 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4089 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4090 Repeat for many other rotate/shift and mask patterns using subregs.
4091 Name lshiftrt insns.
4092 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4093 on WORDS_BIG_ENDIAN.
4094
b9a7eb5d
AM
40952013-04-25 Alan Modra <amodra@gmail.com>
4096
4097 * config.gcc: Support little-endian powerpc-linux targets.
4098 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4099 (LINK_OS_LINUX_SPEC): Define.
4100 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4101 Preserve MASK_LITTLE_ENDIAN.
4102 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4103 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4104 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4105 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4106 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4107 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4108 Correct fp word order for little-endian. Don't shift toc entries
4109 smaller than a word for little-endian.
4110 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4111 (bswapdi2 splits): Correct low-part subreg for little-endian.
4112 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4113 low/high where such is correct only for be.
4114 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4115 little-endian for -mcall-aixdesc.
4116
87f73374
AM
41172013-04-25 Alan Modra <amodra@gmail.com>
4118
4119 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4120 replace_equiv_address_nv.
4121
cabf91cd
AM
41222013-04-25 Alan Modra <amodra@gmail.com>
4123
4124 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4125
0ae24cc8
VM
41262013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4127
4128 Revert:
4129 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4130 * rtl.h (struct rtx_def): ...
cabf91cd 4131
77bce07c
VM
41322013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4133
4134 PR rtl-optimizations/57046
4135 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4136 for multi-reg splits.
4137
0db63e7f
L
41382013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4139
4140 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4141
3362b6b6
SA
41422013-04-24 Sterling Augustine <saugustine@google.com>
4143
4144 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4145 (comp_dir_string, debug_str_dwo_section): New.
4146 (DEBUG_STR_DWO_SECTION): Rename to ...
4147 (DEBUG_DWO_STR_SECTION): ... this.
4148 (DEBUG_NORM_STR_SECTION): Delete.
4149 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4150 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4151 (find_AT_string): Move most logic to ...
4152 (find_AT_string_in_table): ... here. New.
4153 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4154 add_skeleton_AT_string. Delete logic.
4155 (output_skeleton_debug_sections): Remove call to
4156 add_top_level_skeleton_die_attrs.
4157 (add_comp_dir_attribute): Move logic to comp_dir_string.
4158 (dwarf2out_init): Initialize debug_str_dwo_section.
4159 (output_indirect_string): Call find_string_form.
4160 (output_indirect_strings): Rewrite.
4161 (prune_unused_types): Empty skeleton_debug_str_hash.
4162 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4163 (dwarf2out_finish): Call output_indirect_strings.
4164
e93e18e9
PC
41652013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4166
4167 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4168
f6ce35ac
VM
41692013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4170
cabf91cd 4171 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
4172 (LRA_SUBREG_P): New macro.
4173 * recog.c (register_operand): Check LRA_SUBREG_P.
4174 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4175 stack frame.
4176 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4177 (lra_final_code_change): Skip subreg change for operators.
4178 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4179 if there are no operand changes.
4180 * lra-constraints.c (curr_insn_set): New.
4181 (match_reload): Set LRA_SUBREG_P.
4182 (emit_spill_move): Ditto.
4183 (check_and_process_move): Use curr_insn_set. Process only single
4184 set insns. Don't initialize sec_mem_p and change_p.
4185 (simplify_operand_subreg): Use LRA_SUBREG_P.
4186 (reg_in_class_p): New function.
4187 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4188 of #ifdef. Add code to remove cycling.
4189 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4190 non-null disp. Reload inner instead of disp when base and index
4191 are null. Try to put lo_sum into register.
4192 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 4193 (check_and_process_move): Move code for move cost check to
f6ce35ac 4194 simple_move_p. Remove equiv_substitution.
cabf91cd 4195 (simple_move_p): New function.
f6ce35ac
VM
4196 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4197 curr_insn_set. Call check_and_process_move only for single set
4198 insns. Use the new function. Move call of check_and_process_move
4199 after operand equiv substitution and address process.
4200
38047d90
JG
42012013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4202
4203 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4204 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4205 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4206
13f39b2e
PC
42072013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4208
4209 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4210
97c116dc
MP
42112013-04-24 Marek Polacek <polacek@redhat.com>
4212
4213 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4214 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4215 (select_loops_exit_conditions): Likewise.
4216 (number_of_iterations_for_all_loops): Likewise.
4217 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4218 (scev_analysis): Likewise.
4219
83082391
CM
42202013-04-02 Catherine Moore <clm@codesourcery.com>
4221 Chao-ying Fu <fu@mips.com>
4222
cabf91cd
AM
4223 * config/mips/micromips.md (jraddiusp): New pattern.
4224 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4225 instruction if possible.
83082391 4226
19e34aa2
AM
42272013-04-24 Alan Modra <amodra@gmail.com>
4228
4229 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4230
fdb6603c
JB
42312013-04-24 Julian Brown <julian@codesourcery.com>
4232 Chung-Lin Tang <cltang@codesourcery.com>
4233
4234 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
4235 dependency behavior in enumeration type DIE generation. Add TODO note
4236 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 4237
bf190e8d
LC
42382013-04-23 Lawrence Crowl <crowl@google.com>
4239
4240 * Makefile.in: Update as needed below.
4241
4242 * hash-table.h (class hash_table):
4243 Correct many methods with parameter types compare_type to the correct
4244 value_type. (Correct code was unlikely to notice the change.)
4245 (hash_table::elements_with_deleted) New.
4246 (class hashtable::iterator): New.
4247 (hashtable::begin()): New.
4248 (hashtable::end()): New.
4249 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4250
4251 * statistics.c (statistics_hashes):
4252 Change type to hash_table. Update dependent calls and types.
4253
4254 * tree-into-ssa.c (var_infos):
4255 Change type to hash_table. Update dependent calls and types.
4256
4257 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4258 Change type to hash_table. Update dependent calls and types.
4259
4260 * tree-ssa-loop-im.c (struct mem_ref.refs):
4261 Change type to hash_table. Update dependent calls and types.
4262
4263 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4264 Change type to hash_table. Update dependent calls and types.
4265
4266 * tree-ssa-sccvn.c (vn_tables_s::nary):
4267 Change type to hash_table. Update dependent calls and types.
4268 (vn_tables_s::phis): Likewise.
4269 (vn_tables_s::references): Likewise.
4270
4271 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4272 (vn_reference_eq): Update parameter and return types.
4273
4274 * tree-ssa-structalias.c (pointer_equiv_class_table):
4275 Change type to hash_table. Update dependent calls and types.
4276 (location_equiv_class_table): Likewise.
4277
4278 * tree-vect-data-refs.c: Consequential changes for making
4279 peeling a hash_table.
4280
4281 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4282 (destroy_loop_vec_info): Dependent hash_table update.
4283
4284 * tree-vectorizer.h (peeling_htab):
4285 Change type to hash_table. Update dependent calls and types.
4286
d70a81dd
SC
42872013-04-23 Shiva Chen <shiva0217@gmail.com>
4288
cabf91cd
AM
4289 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4290 to check the register content is equal or not.
4291 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4292 to assign register content record.
4293 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 4294 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
4295 * lra-int.h (struct lra_reg): Add offset member.
4296 (lra_reg_val_equal_p): New static inline function.
4297 (lra_update_reg_val_offset): New static inline function.
4298 (lra_assign_reg_val): New static inline function.
4299 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4300 to assign register content record.
4301 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 4302
b894a1f3
CM
43032013-04-23 Catherine Moore <clm@codesourcery.com>
4304
4305 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4306 operands. Record compression.
4307
ecd14de9
XDL
43082013-04-23 Xinliang David Li <davidxl@google.com>
4309
4310 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4311
92e776e9
RB
43122013-04-23 Richard Biener <rguenther@suse.de>
4313
4314 PR middle-end/57036
4315 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4316 parameter, only add abnormal goto edges from the copied body
4317 if the call could perform abnormal gotos.
4318 (copy_cfg_body): Adjust.
4319
a15ee567
SN
43202013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4321
4322 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4323
08c52234
AS
43242013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4325
4326 * coretypes.h (gimple_stmt_iterator): Add struct to make
4327 compatible with C.
4328
999c1171
RB
43292013-04-23 Richard Biener <rguenther@suse.de>
4330
4331 PR tree-optimization/57026
4332 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4333 from SSA names occuring in abnormal PHI nodes.
4334
53669259
AK
43352013-04-22 Andi Kleen <ak@linux.intel.com>
4336
4337 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4338
1a0ad150
AK
43392013-04-22 Andi Kleen <ak@linux.intel.com>
4340
4341 * lto/lto.c (print_lto_report_1): Declare early.
4342 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4343
057f8f20
AK
43442013-04-22 Andi Kleen <ak@linux.intel.com>
4345
4346 * common.opt (-flto-report-wpa): Add.
4347 * doc/invoke.texi (-flto-report-wpa): Add.
4348 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4349 (lto_main): dito.
4350
473b1e05
XDL
43512013-04-22 Xinliang David Li <davidxl@google.com>
4352
4353 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4354 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4355 * Makefile.in: New dependency
4356
cabf91cd 4357 David Daney <ddaney.cavm@gmail.com>
b1485a33 4358
cabf91cd
AM
4359 * configure.ac (gcc_cv_as_micromips_support): Use the
4360 --fatal-warnings option.
4361 * configure: Regenerate.
b1485a33 4362
829d0168
MP
43632013-04-22 Marek Polacek <polacek@redhat.com>
4364
4365 PR sanitizer/56990
4366 * tsan.c (instrument_expr): Don't instrument expression
4367 in case its size is zero.
4368
6d9b7208
UB
43692013-04-22 Uros Bizjak <ubizjak@gmail.com>
4370
4371 PR target/57032
4372 Revert:
4373 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4374
4375 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4376
ea679d55
JG
43772013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4378
4379 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4380 (gimple_stmt_iterator): New typedef.
4381 * gimple.h (gimple_stmt_iterator): Rename to...
4382 (gimple_stmt_iterator_d): ... This.
4383 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4384 trees be valid for GIMPLE and GENERIC.
4385 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4386 * gimple-fold.c (gimple_fold_call): Call target hook
4387 gimple_fold_builtin.
4388 * hooks.c (hook_bool_gsiptr_false): New.
4389 * hooks.h (hook_bool_gsiptr_false): New.
4390 * target.def (fold_stmt): New.
4391 * doc/tm.texi: Regenerate.
4392
88a581da
VM
43932013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4394
4395 PR target/57018
4396 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4397 a set sp if no stack realignment.
4398
92be22dc
NC
43992013-04-22 Nick Clifton <nickc@redhat.com>
4400
4401 * config.gcc (tilegx-linux): Extend extra_objs rather than
4402 overwriting it.
4403 (tilepro-linux): Likewise.
4404
0ddec79f
JG
44052013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4406
4407 * config/aarch64/aarch64-builtins.c
4408 (CF): Remove.
4409 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4410 (VAR<1-12>): Add MAP parameter.
4411 (BUILTIN_*): Likewise.
4412 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4413 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4414 (aarch64_ushl_n<mode>): Likewise.
4415 (aarch64_sshr_n<mode>): Likewise.
4416 (aarch64_ushr_n<mode>): Likewise.
4417 (aarch64_<maxmin><mode>): Likewise.
4418 (aarch64_sqrt<mode>): Likewise.
4419 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4420 (vshr<q>_n_*): Likewise.
4421
0050faf8
JG
44222013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4423
4424 * config/aarch64/aarch64-builtins.c
4425 (aarch64_simd_builtin_type_mode): Handle SF types.
4426 (sf_UP): Define.
4427 (BUILTIN_GPF): Define.
4428 (aarch64_init_simd_builtins): Handle SF types.
4429 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4430 (frecps): Likewise.
4431 (frecpx): Likewise.
4432 * config/aarch64/aarch64-simd.md
4433 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4434 (aarch64_frecpe<mode>): New.
4435 (aarch64_frecps<mode>): Likewise.
4436 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4437 (v8type): Add frecp<esx>.
4438 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4439 (aarch64_frecps<mode>): Likewise.
4440 * config/aarch64/iterators.md (FRECP): New.
4441 (frecp_suffix): Likewise.
4442 * config/aarch64/arm_neon.h
4443 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4444
0fad3dbc 44452013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
4446
4447 PR target/56995
4448 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4449 (REG_CLASS_NAMES): Idem.
4450 (REG_CLASS_CONTENTS): Idem.
4451 (REGCLASS_HAS_FP_REG): Idem.
4452 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4453 (sh_conditional_register_usage): Idem.
4454
3e8a33f9
JL
44552013-04-21 Jeff Law <law@redhat.com>
4456
4457 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4458 (ssa_forward_propagate_and_combine): Use it.
4459
f38e1b0a
VM
44602013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4461
4462 * lra.c: Update the flow chart diagram.
4463
682303da
VM
44642013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4465
4466 PR rtl-optimization/56847
4467 * lra-constraints.c (process_alt_operands): Discourage alternative
4468 with non-matche doffsettable memory constraint fro memory with
4469 known offset.
4470
f6b64c35
RB
44712013-04-19 Richard Biener <rguenther@suse.de>
4472
4473 PR tree-optimization/56982
4474 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4475 function.
4476 * gimplify.c (gimplify_call_expr): Notice special calls.
4477 (gimplify_modify_expr): Likewise.
4478 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4479 abnormal control flow receivers.
4480 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4481 in the same way as cfun->has_nonlocal_labels.
4482 (gimple_purge_dead_abnormal_call_edges): Likewise.
4483 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4484 receivers start a basic-block.
4485
01d8bf07
RB
44862013-04-19 Richard Biener <rguenther@suse.de>
4487
4488 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4489 member ...
4490 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4491 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4492 (SLP_TREE_LOAD_PERMUTATION): Add.
4493 (vect_transform_slp_perm_load): Adjust prototype.
4494 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4495 (vect_free_slp_instance): Likewise.
4496 (vect_create_new_slp_node): Likewise.
4497 (vect_supported_slp_permutation_p): Remove.
4498 (vect_slp_rearrange_stmts): Adjust.
4499 (vect_supported_load_permutation_p): Likewise. Inline
4500 vect_supported_slp_permutation_p here.
4501 (vect_analyze_slp_instance): Compute load permutations per
4502 slp node instead of per instance.
4503 (vect_get_slp_defs): Adjust.
4504 (vect_transform_slp_perm_load): Likewise.
4505 (vect_schedule_slp_instance): Remove redundant code.
4506 (vect_schedule_slp): Remove hack for PR56270, add it ...
4507 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4508 CSE loads for SLP. Adjust.
4509
ede22fc3
GY
45102013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4511
4512 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4513 spelling in two comments.
4514
67bc84fb
GY
45152013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4516
4517 PR target/56797
4518 * config/arm/arm.c (load_multiple_sequence): Require SP
4519 as base register for loads if SP is in the register list.
4520
e248d83f
MJ
45212013-04-19 Martin Jambor <mjambor@suse.cz>
4522
4523 PR tree-optimization/56718
4524 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4525 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4526 and made public. Adjusted all callers.
4527 (ipa_intraprocedural_devirtualization): New function.
4528 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4529 (ipa_intraprocedural_devirtualization): Likewise.
4530 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4531
4891e8f8
RB
45322013-04-19 Richard Biener <rguenther@suse.de>
4533
4534 PR tree-optimization/57000
4535 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4536
dad89f7c
TG
45372013-04-19 Terry Guo <terry.guo@arm.com>
4538
4539 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4540 Replace with ...
4541 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4542 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4543 (cortex_m4_fmacs): Use new reservations.
4544 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4545
72ea0d47
VM
45462013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4547
f1e6512c 4548 PR rtl-optimization/56999
72ea0d47
VM
4549 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4550 related code.
4551 (lra_coalesce): Remove split_origin_bitmap and related code.
4552 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4553 ranges if necessary.
4554
780a5b71
UB
45552013-04-18 Uros Bizjak <ubizjak@gmail.com>
4556
4557 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4558 New array.
4559 (ix86_expand_call): Remove clobbered_registers array and use
4560 x86_64_ms_sysv_extra_clobbered_registers instead.
4561 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4562 Declare here.
4563 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4564 predicate.
4565 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4566 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4567 (*call_value_rex64_ms_sysv): Ditto.
4568
6f5a366a
CC
45692013-04-18 Cary Coutant <ccoutant@google.com>
4570
4571 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4572 parent instead of die_mark.
4573
475b8f37
DN
45742013-04-18 Diego Novillo <dnovillo@google.com>
4575
4576 * gimple.c (create_gimple_tmp): New.
4577 (get_expr_type): New.
4578 (build_assign): New.
4579 (build_type_cast): New.
4580 * gimple.h (enum ssa_mode): Define.
4581 (gimple_seq_set_location): New.
4582 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 4583 to use build_assign and build_type_cast.
475b8f37 4584
08940f33
RB
45852013-04-18 Richard Biener <rguenther@suse.de>
4586
4587 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4588 handle negative step. Remove redundant checks.
4589 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4590 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4591 for negative step and grouped loads fail to vectorize.
4592
0e0f87d4
SB
45932013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4594
4595 * emit-rtl.c (reset_insn_used_flags): New function.
4596 (reset_all_used_flags): Use it.
4597 (verify_insn_sharing): New function.
4598 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4599
4c445590
JJ
46002013-04-18 Jakub Jelinek <jakub@redhat.com>
4601
4602 PR tree-optimization/56984
4603 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4604 and (x >> M) >= N don't register any assertion if N << M is the
4605 minimum value.
4606
6873ecab
SB
46072013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4608
4609 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4610 do not delete_insn insns that have not yet been emitted, only
4611 unlink them with remove_insn.
4612 * df-scan.c (df_insn_delete): Revert r197492.
4613
3ccb989e
SB
46142013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4615
4616 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4617 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4618
46192013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
4620
4621 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4622 define_insn_and_split.
4623 (and_scc,ior_scc,negscc): Likewise.
4624 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4625
3ccb989e 46262013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
4627
4628 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4629 can benefit from using a sequence of LDRD instructions in epilogue
4630 instead of a single LDM instruction.
4631
6d10a203
MLI
46322013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4633
4634 PR 45688
4635 * doc/extend.texi: Fix typo.
4636
6983e6b5
RB
46372013-04-17 Richard Biener <rguenther@suse.de>
4638
4639 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4640 (vect_build_slp_tree): ... here.
4641 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4642 match. Remove special-casing of mismatched complex loads.
4643 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4644 re-try the match with swapped commutative operands.
4645 (vect_supported_load_permutation_p): Remove special-casing of
4646 mismatched complex loads.
4647 (vect_analyze_slp_instance): Adjust.
4648
ef23e6a2
RB
46492013-04-17 Richard Biener <rguenther@suse.de>
4650
4651 PR rtl-optimization/56921
4652 * cfgloop.h (struct loop): Add simple_loop_desc member.
4653 (struct niter_desc): Mark with GTY(()).
4654 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4655 * loop-iv.c (get_simple_loop_desc): Likewise.
4656 (free_simple_loop_desc): Likewise.
4657
4658 Revert
4659 2013-04-16 Richard Biener <rguenther@suse.de>
4660
4661 PR rtl-optimization/56921
4662 * loop-init.c (pass_rtl_move_loop_invariants): Add
4663 TODO_do_not_ggc_collect to todo_flags_finish.
4664 (pass_rtl_unswitch): Same.
4665 (pass_rtl_unroll_and_peel_loops): Same.
4666 (pass_rtl_doloop): Same.
4667
fc6f94f5
EB
46682013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4669
4670 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4671 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4672 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4673 references.
4674 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4675 * tree-streamer.c (record_common_node): Adjust reference in comment.
4676
10a88311
TG
46772013-04-17 Terry Guo <terry.guo@arm.com>
4678
4679 * config/arm/cortex-m4.md: Add a new bypass.
4680
6d9b7208 46812013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
4682
4683 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4684 New pattern.
4685 (*subs_<optab><mode>_multp2): New pattern.
4686 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4687 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4688
6d9b7208 46892013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
4690
4691 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4692 (*subs_mul_imm_<mode>): New pattern.
4693
18a6701e
DE
46942013-04-16 David Edelsohn <dje.gcc@gmail.com>
4695
4696 PR target/56948
4697 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4698 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4699 (vsx_movti_32bit): Change j->wa to O->wa.
4700
07c37b2f
RB
47012013-04-16 Richard Biener <rguenther@suse.de>
4702
4703 PR rtl-optimization/56921
4704 * loop-init.c (pass_rtl_move_loop_invariants): Add
4705 TODO_do_not_ggc_collect to todo_flags_finish.
4706 (pass_rtl_unswitch): Same.
4707 (pass_rtl_unroll_and_peel_loops): Same.
4708 (pass_rtl_doloop): Same.
4709
0e0f87d4 47102013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
4711
4712 * config/arm/arm.c (emit_multi_reg_push): New declaration
4713 for an existing function.
4714 (arm_emit_strd_push): New function.
4715 (arm_expand_prologue): Used here.
4716 (arm_emit_ldrd_pop): New function.
4717 (arm_expand_epilogue): Used here.
4718 (arm_get_frame_offsets): Update condition.
4719 (arm_emit_multi_reg_pop): Add a special case for load of a single
4720 register with writeback.
4721
5e8e2af4
UB
47222013-04-16 Uros Bizjak <ubizjak@gmail.com>
4723
4724 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4725 description.
4726
9fd9ccf7
RB
47272013-04-16 Richard Biener <rguenther@suse.de>
4728
4729 PR tree-optimization/56756
4730 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4731 (first_mem_ref_loc): New.
4732 (execute_sm): Place the load temporarily before a previous
4733 access instead of in the latch edge to ensure its SSA dependencies
4734 are defined at points dominating the load.
4735
96fba521
SB
47362013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4737
4c8af858
SB
4738 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4739 correct fix by moving header and footer insn to the footer of
4740 the merged basic block. Clear BB_END of the merged-away block.
4741
96fba521
SB
4742 PR middle-end/43631
4743 * emit-rtl.c (make_note_raw): New function.
4744 (link_insn_into_chain): New static inline function.
4745 (add_insn): Use it.
4746 (add_insn_before, add_insn_after): Factor insn chain linking code...
4747 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4748 using link_insn_into_chain.
4749 (note_outside_basic_block_p): New helper function for emit_note_after
4750 and emit_note_before.
4751 (emit_note_after): Use nobb variant of add_insn_after if the note
4752 should not be contained in a basic block.
4753 (emit_note_before): Use nobb variant of add_insn_before if the note
4754 should not be contained in a basic block.
4755 (emit_note_copy): Use make_note_raw.
4756 (emit_note): Likewise.
4757 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4758 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4759 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4760 the moved barrier the tail of the basic block it follows.
4761 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4762
7b8265ba
JJ
47632013-04-15 Jakub Jelinek <jakub@redhat.com>
4764
4765 PR tree-optimization/56962
4766 * gimple-ssa-strength-reduction.c (record_increment): Only set
4767 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4768 either rhs1 or rhs2 is equal to c->base_expr.
4769
5185d248
RB
47702013-04-15 Richard Biener <rguenther@suse.de>
4771
4772 PR tree-optimization/56933
4773 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4774 member.
4775 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4776 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4777 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4778 dependence check ...
4779 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4780 ... here.
4781 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4782 GROUP_READ_WRITE_DEPENDENCE.
4783
a24243a0
AK
47842013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4785
4786 * emit-rtl.c (reset_all_used_flags): New function.
4787 (verify_rtl_sharing): Call reset_all_used_flags before and after
4788 performing the checks.
4789
1c50eada
KT
47902013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4791
4792 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4793 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4794 * config/arm/constraints.md (De): New constraint.
4795 * config/arm/neon.md (anddi3_neon): Delete.
4796 (neon_vand<mode>): Expand to standard anddi3 pattern.
4797 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4798 Move earlier in the file.
4799 (neon_inv_logic_op2): Likewise.
4800 (arm_anddi_operand_neon): New predicate.
4801
e927b6ad
RO
48022013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4803
4804 * configure.ac (gcc_cv_ld_as_needed): Set
4805 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4806 Use -z ignore, -z record on *-*-solaris2*.
4807 (HAVE_LD_AS_NEEDED): Update comment.
4808 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4809 * configure: Regenerate.
4810 * config.in: Regenerate.
4811 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4812 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4813 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4814 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4815 equivalents. Fix markup.
4816 * doc/tm.texi: Regenerate.
4817
e0ea8797
AH
48182013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4819
4820 * config/i386/i386.opt: New option mstack-protector-guard=.
4821 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4822 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4823 TARGET_SSP_TLS_GUARD.
4824 * config/i386/i386.c (ix86_option_override_internal): Set
4825 ix86_stack_protector_guard.
4826 * config/i386/i386.md (stack_protect_set): Enable for
4827 TARGET_SSP_TLS_GUARD only.
4828 (stack_protect_set_<mode>): Ditto.
4829 (stack_protect_test): Ditto.
4830 (stack_protect_test_<mode>): Ditto.
4831 * doc/invoke.texi (i386 Option): Document.
4832
811b72f9
EB
48332013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4834
4835 PR target/56890
4836 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4837 (S_MODES): Set H_MODE bit.
4838 (SF_MODES): Set only S_MODE and SF_MODE bits.
4839 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4840 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4841 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4842 <MODE_FLOAT>: Likewise.
4843
5529fdd6
JY
48442013-04-15 Joey Ye <joey.ye@arm.com>
4845
4846 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4847
517b1da2
JY
48482013-04-15 Joey Ye <joey.ye@arm.com>
4849
4850 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4851 for real far jump.
4852 (thumb_far_jump_used_p): Count instruction size and set
4853 far_jump_used.
4854
01007ae0
EB
48552013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4856
4857 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4858 * resource.c (mark_target_live_regs): Reformat conditional block.
4859
c46f6580
SB
48602013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4861
4862 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4863 notes, they are emitted only just before final.
4864 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4865
1f397f45
SB
48662013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4867
4868 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4869 * cfgrtl.c (delete_insn): Call it here instead.
4870 * lra-spills.c (lra_final_code_change): Use delete_insn.
4871 * haifa-sched.c (sched_remove_insn): Likewise.
4872 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4873 returning to the nop pool.
4874 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4875 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4876
58a51369
SB
48772013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4878
4879 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4880 * doc/tm.texi: Regenerated.
4881
33159866
UB
48822013-04-12 Uros Bizjak <ubizjak@gmail.com>
4883
4884 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4885 QImode checks.
4886
226e378f
SB
48872013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4888
4889 * df-core.c (df_find_def): Compare register numbers.
4890 (df_find_use): Likewise.
4891
fafb9b18
VM
48922013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4893
4894 PR target/56903
4895 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4896 lra_in_progress for return.
4897
9a946fd6
GY
48982013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4899
4900 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4901 define_insn into define_insn_and_split and emit movsicc patterns.
4902
41b83758
GY
49032013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4904
4905 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4906
d3afd9aa
RB
49072013-04-12 Richard Biener <rguenther@suse.de>
4908
4909 * tree-pass.h (TODO_do_not_ggc_collect): New.
4910 * passes.c (execute_one_ipa_transform_pass): Honor
4911 TODO_do_not_ggc_collect.
4912 (execute_one_pass): Likewise.
4913
4914 Revert
4915 2013-04-10 Richard Biener <rguenther@suse.de>
4916
4917 * passes.c (init_optimization_passes): Remove reload pass.
4918 * ira.c (do_reload): Merge into ...
4919 (ira): ... this.
4920 (rest_of_handle_reload): Remove.
4921 (pass_reload): Likewise.
4922 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4923 of reload for vzeroupper pass placement.
4924
06f9b387
JJ
49252013-04-12 Jakub Jelinek <jakub@redhat.com>
4926
4927 PR tree-optimization/56918
4928 PR tree-optimization/56920
4929 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4930 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4931 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4932 use wide_mul_with_sign method.
4933
953094d2
RB
49342013-04-12 Richard Biener <rguenther@suse.de>
4935
4936 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4937 not be considered a gimple constant.
4938
bb506982
MG
49392013-04-12 Marc Glisse <marc.glisse@inria.fr>
4940
4941 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4942 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4943 operations.
4944
4b84d650
JJ
49452013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4946 Jakub Jelinek <jakub@redhat.com>
4947
4948 * opts.c: Include diagnostic-color.h.
4949 (common_handle_option): Handle OPT_fdiagnostics_color_.
4950 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4951 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4952 (diagnostic-color.o): New.
4953 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4954 (diagnostic_color_rule): New enum.
4955 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4956 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4957 the location string.
4958 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4959 either NULL, or color kind.
4960 * diagnostic-color.c: New file.
4961 * diagnostic-color.h: New file.
4962 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4963 arguments.
4964 * doc/invoke.texi (-fdiagnostics-color): Document.
4965 * pretty-print.h (pp_show_color): Define.
4966 (struct pretty_print_info): Add show_color field.
4967 * diagnostic.c: Include diagnostic-color.h.
4968 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4969 macros. Colorize error:, warning: etc. strings and also the location
4970 string.
4971 (diagnostic_show_locus): Colorize the caret line.
4972 * pretty-print.c: Include diagnostic-color.h.
4973 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4974 inside of %< %> quotes or quoted through q format modifier.
4975
067a1e71
AK
49762013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4977
33159866 4978 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 4979
33159866 49802013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
4981
4982 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4983 code in CC_NZ mode.
4984 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4985 pattern.
4986
7b55f98f
MP
49872013-04-11 Marek Polacek <polacek@redhat.com>
4988
4989 PR tree-optimization/48184
33159866 4990 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 4991
966b587e
EB
49922013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4993
4994 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4995 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4996 (skip_simple_arithmetic): Tidy up.
4997 * tree.h (skip_simple_constant_arithmetic): Declare.
4998
33159866 49992013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
5000
5001 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5002
1d42c1ec
RB
50032013-04-11 Richard Biener <rguenther@suse.de>
5004
5005 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5006 generate vector constants.
5007
4ba5ea11
RB
50082013-04-11 Richard Biener <rguenther@suse.de>
5009
5010 PR tree-optimization/56878
5011 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5012 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5013 New function.
5014 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5015 Prefer to align the DR with the most invariant base address.
5016
f0defe58
SKS
50172013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5018
5019 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5020 comment.
5021
d07458be
JG
50222013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5023
5024 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5025 floating-point vector comparisons against 0.
5026
146b8692
JJ
50272013-04-11 Jakub Jelinek <jakub@redhat.com>
5028
5029 PR tree-optimization/56899
5030 * fold-const.c (extract_muldiv_1): Apply distributive law
5031 only if TYPE_OVERFLOW_WRAPS (ctype).
5032
b8578ff7
BC
50332013-04-11 Bin Cheng <bin.cheng@arm.com>
5034
5035 PR target/56124
5036 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5037 loading has side effect.
5038
0ea8a6f9
SB
50392013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5040
5041 * config/sparc/sparc.c: Include tree-pass.h.
5042 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5043 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5044 head of file. Change return type. Split off gate function.
5045 (sparc_gate_work_around_errata): New function.
5046 (pass_work_around_errata): New pass definition.
5047 (insert_pass_work_around_errata) New pass insert definition to
5048 insert pass_work_around_errata just after delayed-branch scheduling.
5049 (sparc_option_override): Insert the pass.
5050 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5051
42e37616
DM
50522013-04-10 David S. Miller <davem@davemloft.net>
5053
89deeb3b
DM
5054 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5055 or -mcpu=hypersparc.
5056
42e37616
DM
5057 * target.def (cstore_mode): New hook.
5058 * target.h: Include insn-codes.h
5059 * targhooks.c: Likewise.
5060 (default_cstore_mode): New function.
5061 * targhooks.h: Declare it.
5062 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5063 * doc/tm.texi: Rebuild.
5064 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5065 target hook, rather than inspecting the insn_data.
5066 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5067 (TARGET_CSTORE_MODE): Redefine.
5068 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5069 result patterns.
5070 * config/sparc/predicates.md (cstore_result_operand): New special
5071 predicate.
5072 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5073 Use it for operand 0.
5074 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5075 (*snesi_special): Likewise.
5076 (*snesi_zero): Likewise.
5077 (*seqsi_zero): Likewise.
5078 (*sltu_insn): Likewise.
5079 (*sgeu_insn): Likewise.
5080 (*seqdi_special): Make operand 0 and comparison operation be of
5081 DImode.
5082 (*snedi_special): Likewise.
5083 (*snedi_special_vis3): Likewise.
5084 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5085 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5086 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5087 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5088 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5089 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5090 (*sltu_extend_sp64): Likewise.
5091 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5092 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5093 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5094 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5095 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5096
95ca411e
YZ
50972013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5098
5099 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5100 (aarch64_start_file): Use the new function.
5101
6782438d 51022013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 5103 Jason Merrill <jason@redhat.com>
6782438d
SKS
5104
5105 * common.opt: Add -gdwarf.
5106 * opts.c (common_handle_option): Handle it.
5107 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5108
bb313b93
RB
51092013-04-10 Richard Biener <rguenther@suse.de>
5110
5111 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5112 (execute_one_ipa_transform_pass): But unconditionally here.
5113 (execute_one_pass): And here.
5114 (init_optimization_passes): Remove reload pass.
5115 * tree-pass.h (TODO_ggc_collect): Remove.
5116 (pass_reload): Likewise.
5117 * ira.c (do_reload): Merge into ...
5118 (ira): ... this.
5119 (rest_of_handle_reload): Remove.
5120 (pass_reload): Likewise.
5121 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5122 of reload for vzeroupper pass placement.
5123 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5124 and todo_flags_finish of all passes.
5125
793d9a16
RB
51262013-04-10 Richard Biener <rguenther@suse.de>
5127
5128 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5129 first_const_oprnd field, rename first_def_type to first_op_type.
5130 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5131 (vect_get_and_check_slp_defs): Always use the type of the
5132 operand. Allow mixed vect_external_def, vect_constant_def types.
5133 (vect_get_constant_vectors): Handle mixed vect_external_def,
5134 vect_constant_def types.
5135
ee8a9b7b
JR
51362013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5137
5138 PR tree-optimization/55524
5139 * tree-ssa-math-opts.c
5140 (convert_mult_to_fma): Don't use an fms construct
5141 when we don't have an fms operation, but fnma, and it looks
5142 likely that we'll be able to use the latter.
5143
6957a6f6
ZZ
51442013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5145
5146 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5147 function.
5148 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5149 inline fail caused by overwritable functions.
5150
34ab4a5b
CJW
51512013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5152
5153 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5154 unnecessary bits in the constant power of two case.
5155
abf9bfbc
RB
51562013-04-10 Richard Biener <rguenther@suse.de>
5157
5158 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5159 broken code swapping operands.
5160 (vect_build_slp_tree): Do not compute load permutations here.
5161 (vect_analyze_slp_instance): Compute load permutations here,
5162 after building the SLP tree.
5163
f408477e
CB
51642013-04-09 Christian Bruel <christian.bruel@st.com>
5165
5166 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5167 of next/prev_real_insn.
5168
5ac42672
JH
51692013-04-09 Jan Hubicka <jh@suse.cz>
5170
abf9bfbc
RB
5171 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5172 Drop aliased parameter.
5ac42672
JH
5173 (function_and_variable_visibility): Do not handle alias pairs.
5174 * cgraph.c (varpool_externally_visible_p): Update prototype.
5175 * varpool.c (varpool_add_new_variable): Update.
5176
5017f1d2
KT
51772013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5178
5179 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5180
48eecbee
SB
51812013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5182
a949cf1c
SB
5183 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5184
48eecbee
SB
5185 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5186
75ef8e3d
MP
51872013-04-09 Marek Polacek <polacek@redhat.com>
5188
5189 PR tree-optimization/48762
33159866 5190 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 5191
23847df4
RB
51922013-04-09 Richard Biener <rguenther@suse.de>
5193
5194 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5195 dealing with cost.
5196 (vect_build_slp_tree): Likewise.
5197 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5198 calculating the cost of a SLP instance.
5199 (vect_analyze_slp_instance): Use it from here, after building
5200 the SLP tree.
5201
ea3a0fde
JJ
52022013-04-09 Jakub Jelinek <jakub@redhat.com>
5203
5204 PR middle-end/56883
5205 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5206 expand_omp_for_static_chunk): Use simple_p = true in
5207 force_gimple_operand_gsi calls when assigning to addressable decls.
5208
a32dfe9d
JL
52092013-04-09 Jeff Law <law@redhat.com>
5210
5211 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5212 when the boolean was created by converting a wider object which
5213 had a boolean range.
5214
d755c7ef
RB
52152013-04-09 Richard Biener <rguenther@suse.de>
5216
5217 * tree-vectorizer.h (slp_void_p): Remove.
5218 (slp_tree): Typedef before _slp_tree declaration.
5219 (struct _slp_tree): Use a vector of slp_tree as children.
5220 (vect_get_place_in_interleaving_chain): Remove.
5221 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5222 Move ...
5223 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5224 and make static.
5225 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5226 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5227 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5228 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5229 Use slp_node instead of slp_void_p and adjust.
5230
3d741091
RB
52312013-04-09 Richard Biener <rguenther@suse.de>
5232
5233 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5234 work that is not necessary.
5235
39307ba7
JJ
52362013-04-09 Jakub Jelinek <jakub@redhat.com>
5237
5238 PR tree-optimization/56854
5239 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5240 forward into clobber stmts if it would change MEM_REF lhs into
5241 non-MEM_REF.
5242
343881fd
MK
52432013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5244
5245 * tree.c (type_hash_lookup, type_hash_add): Make static.
5246 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5247
3922658a
RB
52482013-04-09 Richard Biener <rguenther@suse.de>
5249
5250 * tree.h (unsave_expr_now): Remove.
5251 * tree-inline.c (mark_local_for_remap_r): Remove.
5252 (unsave_expr_1): Likewise.
5253 (unsave_r): Likewise.
5254 (unsave_expr_now): Likewise.
5255 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5256 (propagate_tree_value): Likewise.
5257
9fb6b620
SB
52582013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5259
5260 * doc/rtl.texi (sequence): Rewrite documentation to match the
5261 current use of SEQUENCE rtl objects.
5262 * rtl.def (SEQUENCE): Likewise.
5263
5264 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5265 Update documentation.
5266 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5267 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5268
5269 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5270
8ddb5a29
TJ
52712013-04-08 Teresa Johnson <tejohnson@google.com>
5272
5273 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5274 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 5275 methods.
8ddb5a29
TJ
5276 (estimate_edge_size_and_time): Add comment to suggest using rounding
5277 methods.
5278 (estimate_node_size_and_time): Ditto.
5279 (remap_edge_change_prob): Use helper rounding divide methods.
5280 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5281 (gimple_mod_pow2_value_transform): Ditto.
5282 (gimple_mod_subtract_transform): Ditto.
5283 (gimple_ic_transform): Ditto.
5284 (gimple_stringops_transform): Ditto.
5285 * stmt.c (conditional_probability): Ditto.
5286 (emit_case_dispatch_table): Ditto.
5287 * lto-cgraph.c (merge_profile_summaries): Ditto.
5288 * tree-optimize.c (execute_fixup_cfg): Ditto.
5289 * cfgcleanup.c (try_forward_edges): Ditto.
5290 * cfgloopmanip.c (scale_loop_profile): Ditto.
5291 (loopify): Ditto.
5292 (duplicate_loop_to_header_edge): Ditto.
5293 (lv_adjust_loop_entry_edge): Ditto.
5294 * tree-vect-loop.c (vect_transform_loop): Ditto.
5295 * profile.c (compute_branch_probabilities): Ditto.
5296 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5297 * lto-streamer-in.c (input_cfg): Ditto.
5298 * gimple-streamer-in.c (input_bb): Ditto.
5299 * ipa-cp.c (update_profiling_info): Ditto.
5300 (update_specialized_profile): Ditto.
5301 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5302 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 5303 rounding methods.
8ddb5a29
TJ
5304 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5305 (compute_trg_info): Ditto.
5306 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5307 (purge_dead_edges): Ditto.
5308 * loop-unswitch.c (unswitch_loop): Ditto.
5309 * cgraphclones.c (cgraph_clone_edge): Ditto.
5310 (cgraph_clone_node): Ditto.
5311 * tree-inline.c (copy_bb): Ditto.
5312 (copy_edges_for_bb): Ditto.
5313 (initialize_cfun): Ditto.
5314 (copy_cfg_body): Ditto.
5315 (expand_call_inline): Ditto.
5316
661e6bd7
KT
53172013-04-08 Kai Tietz <ktietz@redhat.com>
5318
5319 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5320 TARGET_CYGWIN64 by TARGET_64BIT.
5321
105766f3
JR
53222013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5323
5324 * config/epiphany/epiphany.md (GPR_1): New constant.
5325 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5326 * config/epiphany/epiphany.c (gen_compare_reg):
5327 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5328 is already in place.
5329 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5330 Don't require being called during rtl expansion; If y operlaps r0,
5331 return 0.
5332 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5333 (epiphany_expand_epilogue): Likewise.
5334
8afab237
JR
5335 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5336 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 5337 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 5338
fa7707d6
JR
5339 * config/epiphany/constraints.md (CnL): New constraint.
5340 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5341 * config/epiphany/predicates.md (add_operand): Allow 1024.
5342
5138e18d
JR
5343 * config/epiphany/epiphany.md (logical_op): New code iterator.
5344 (op_mnc): New code attribute.
5345 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5346 (mov_f+1, mov_f+2): New peephole2 patterns.
5347
2ccc703d
JR
5348 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5349 (cstoresi4): Also allow re-use of zero result when doing a NE
5350 comparison to a non-zero operand.
aefb0819 5351 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 5352
093ac0a5
JR
5353 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5354 Use gen_addsi3_i / gen_subsi3_i.
5355
f223bb13
JJ
53562013-04-08 Jakub Jelinek <jakub@redhat.com>
5357
5358 PR c++/34949
5359 PR c++/50243
5360 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5361 contain anything but clobbers, at most one __builtin_stack_restore,
5362 optionally debug stmts and final resx, and if it has at least one
5363 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5364 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5365 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5366 which isn't defaut definition, remove them.
5367 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5368 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5369 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5370 with MEM_REF LHS with SSA_NAME address.
5371
4481581f
JL
53722013-04-08 Jeff Law <law@redhat.com>
5373
5374 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 5375
451dabda
RB
53762013-04-08 Richard Biener <rguenther@suse.de>
5377
5378 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5379 extra newline.
5380 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5381 determined vector type.
5382 (vect_analyze_data_refs): Likewise.
5383 (vect_get_new_vect_var): Adjust.
5384 (vect_create_destination_var): Preserve SSA name versions.
5385 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5386 not dump anything here.
5387
3b088b47
JR
53882013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5389
5390 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5391 Add member lr_slot_known.
5392 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5393 if necessary.
5394 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5395 Remove code that sets lr_slot_offset according to what a previous
5396 version of epiphany_emit_save_restore used to do.
5397 (epiphany_emit_save_restore): When doing an lr save or restore,
5398 set/verify lr_slot_known and lr_slot_offset.
5399
d8484d41
XQ
54002013-04-08 Xinyu Qi <xyqi@marvell.com>
5401
33159866
UB
5402 PR target/54338
5403 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
5404 in ALL_REGS.
5405
481be1c4
RB
54062013-04-08 Richard Biener <rguenther@suse.de>
5407
5408 * alias.c (find_base_term): Fix thinko in previous change.
5409
401f3a81
JJ
54102013-04-08 Jakub Jelinek <jakub@redhat.com>
5411
5412 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5413 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5414 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5415 if possible to compute val.
5416 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5417 For QImode integers don't require anything about precision. Use
5418 const_with_all_bytes_same to find out if the constant doesn't have
5419 repeated bytes in it.
5420
03ed99a8
AK
54212013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5422
5423 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5424 within mode size.
5425
781b2e62
MP
54262013-04-08 Marek Polacek <polacek@redhat.com>
5427
5428 PR rtl-optimization/48182
5429 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5430 value to 1.
5431
27e430a2
JDA
54322013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5433
5434 PR target/55487
5435 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5436 nuses, make sure we have a label.
5437
4902aa64
BS
54382013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5439
5440 PR target/56843
5441 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5442 (rs6000_emit_swdiv_low_precision): Remove.
5443 (rs6000_emit_swdiv): Rewrite to handle between one and four
5444 iterations of Newton-Raphson generally; modify required number of
5445 iterations for some cases.
5446 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5447
7bca81dc
SB
54482013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5449
5450 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5451 set-but-unused variable.
5452
5453 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5454 basic blocks of released function bodies garbage-collectable.
5455
5456 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5457 (struct rtl_opt_pass): Add TODO_df_finish.
5458
5459 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5460
4542a38a
GY
54612013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5462
5463 * config/arm/constraints.md (q): New constraint.
5464 * config/arm/ldrdstrd.md: New file.
5465 * config/arm/arm.md (ldrdstrd.md) New include.
5466 (arm_movdi): Use "q" instead of "r" constraint
5467 for double-word memory access.
5468 (movdf_soft_insn): Likewise.
5469 * config/arm/vfp.md (movdi_vfp): Likewise.
5470 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 5471 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
5472 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5473 (mem_ok_for_ldrd_strd): Likewise.
5474 (output_move_double): Update assertion.
5475
2385b218
GY
54762013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5477
5478 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5479
75fe1cb5
GY
54802013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5481
5482 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5483 define_insn_and_split.
5484 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5485
dd660e8e
GY
54862013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5487
5488 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5489 define_insn_and_split.
33159866 5490 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
5491 (shiftsi3_compare): New pattern.
5492 (rrx): New pattern.
5493 * config/arm/unspecs.md (UNSPEC_RRX): New.
5494
045e472c
GY
54952013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5496
5497 * config/arm/arm.md (negdi_extendsidi): New pattern.
5498 (negdi_zero_extendsidi): Likewise.
5499
3f3bf1a8
GY
55002013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5501
5502 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5503 define_insn_and_split.
5504 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5505 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5506
b0b49556
GY
55072013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5508
5509 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5510 define_insn_and_split.
5511 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5512 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5513
d633dd84
GY
55142013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5515
5516 * config/arm/arm.md (subsi3_carryin): New pattern.
5517 (subsi3_carryin_const): Likewise.
5518 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5519 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5520
f4499066
GY
55212013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5522
5523 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5524
ceef6fd9
GY
55252013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5526
5527 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 5528 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 5529
ddbdd8a7
KT
55302013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5531
5532 * config/arm/arm.c (arm_expand_builtin): Change fcode
5533 type to unsigned int.
5534
8456d78a
RR
55352013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5536
5537 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5538
526c230f
ILT
55392013-04-04 Ian Lance Taylor <iant@google.com>
5540
33159866
UB
5541 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5542 language standard.
526c230f 5543
3cfbe04d
SB
55442013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5545
5546 PR middle-end/56729
5547 * df-scan.c (df_insn_delete): Disable failing assert.
5548
dfa3f8d0
KT
55492013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5550
5551 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5552 New function prototype.
5553 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5554 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5555 (arm_builtin_vectorized_function): New function.
5556
f7837758
KT
55572013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5558
5559 * config/arm/arm_neon_builtins.def: New file.
5560 * config/arm/arm.c (neon_builtin_data): Move contents to
5561 arm_neon_builtins.def.
5562 (enum arm_builtins): Include neon builtin definitions.
5563 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 5564 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 5565
39c1b6db
MP
55662013-04-04 Marek Polacek <polacek@redhat.com>
5567
5568 PR tree-optimization/48186
5569 * predict.c (maybe_hot_frequency_p): Return false if
5570 HOT_BB_FREQUENCY_FRACTION is 0.
5571 (cgraph_maybe_hot_edge_p): Likewise.
5572
314f64eb
RB
55732013-04-04 Richard Biener <rguenther@suse.de>
5574
5575 PR tree-optimization/56826
5576 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5577 more accurately.
5578
51a905b2
RB
55792013-04-04 Richard Biener <rguenther@suse.de>
5580
5581 PR tree-optimization/56213
5582 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 5583 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 5584
f1bf4f3a
RB
55852013-04-04 Richard Biener <rguenther@suse.de>
5586
5587 PR tree-optimization/56837
5588 * tree-loop-distribution.c (classify_partition): For non-zero
5589 values require that the value has the same precision as its
5590 mode to be useful as memset value.
5591
0bca7ded
NC
55922013-04-03 Nick Clifton <nickc@redhat.com>
5593
33159866 5594 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
5595 (fmssf4): Use fmsf.s on E3V5 architectures.
5596 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5597 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5598
b4019227
JL
55992013-04-03 Jeff Law <law@redhat.com>
5600
5601 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5602 (lra-eliminations.o): Likewise.
5603
f57ddb5b
TJ
56042013-04-03 Teresa Johnson <tejohnson@google.com>
5605
5606 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 5607 compute_working_sets here from profile.c.
f57ddb5b 5608 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
5609 (gcov_working_set_t): Moved typedef here from basic-block.h
5610 (compute_working_set): Declare.
f57ddb5b
TJ
5611 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5612 (get_working_sets): Renamed from compute_working_set,
33159866 5613 replace most of body with call to new compute_working_sets.
f57ddb5b 5614 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
5615 to get_working_sets.
5616 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 5617 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 5618 to get_working_sets.
f57ddb5b
TJ
5619 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5620 * gcov-dump.c (dump_working_sets): New function.
5621
5e0919f1
KZ
56222013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5623
5624 * hwint.c (sext_hwi, zext_hwi): New functions.
5625 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5626 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5627 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5628 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5629 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5630 (sext_hwi, zext_hwi): New functions.
0bca7ded 5631
be672e08
JL
56322013-04-03 Jeff Law <law@redhat.com>
5633
5634 PR tree-optimization/56799
33159866
UB
5635 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5636 back test for widening conversion erroneously dropped in prior change.
be672e08 5637
9d821fa5
KT
56382013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5639
5640 PR target/56809
5641 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5642 instead of next_real_insn.
5643
71c581e7
MP
56442013-04-03 Marek Polacek <polacek@redhat.com>
5645
5646 PR sanitizer/55702
33159866 5647 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 5648
4a32ef80
KT
56492013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5650
5651 PR target/56809
5652 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5653 next_real_insn.
5654 (thumb1_output_casesi): Likewise.
5655 (thumb2_output_casesi): Likewise.
5656
1b2253d4
RB
56572013-04-03 Richard Biener <rguenther@suse.de>
5658
5659 PR tree-optimization/56817
5660 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5661 Split out ...
5662 (tree_unroll_loops_completely_1): ... new function to manually
5663 walk the loop tree, properly defering outer loops of unrolled
5664 loops to later iterations.
5665
38000232
MG
56662013-04-03 Marc Glisse <marc.glisse@inria.fr>
5667
5668 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5669 (vectorizable_load): Likewise.
5670 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5671 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5672
3fa35298
MG
56732013-04-03 Marc Glisse <marc.glisse@inria.fr>
5674
5675 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5676 BIT_FIELD_REF.
5677
b3d45ff0
UW
56782013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5679
5680 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5681
ec9202a8
BC
56822013-04-03 Bin Cheng <bin.cheng@arm.com>
5683
5684 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5685
6805bd36
MG
56862013-04-03 Marc Glisse <marc.glisse@inria.fr>
5687
5688 PR tree-optimization/56790
33159866
UB
5689 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5690 folding.
6805bd36 5691
da694a77
MG
56922013-04-03 Marc Glisse <marc.glisse@inria.fr>
5693
5694 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5695 Handle VEC_MERGE.
5696 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5697 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5698 equal arguments.
5699
4e7d7b3d
JJ
57002013-04-03 Jakub Jelinek <jakub@redhat.com>
5701
5702 PR c/19449
5703 * tree.h (force_folding_builtin_constant_p): New decl.
5704 * builtins.c (force_folding_builtin_constant_p): New variable.
5705 (fold_builtin_constant_p): Fold immediately also if
5706 force_folding_builtin_constant_p.
5707
e6c9d234
RB
57082013-04-03 Richard Biener <rguenther@suse.de>
5709
5710 PR tree-optimization/56812
5711 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5712 DRs of the same interleaving chain are independent.
5713
984d07dd
JM
57142013-04-02 Jason Merrill <jason@redhat.com>
5715
5716 * gdbinit.in (pbb): Use debug fn.
5717
622849c9
LC
57182013-04-02 Lawrence Crowl <crowl@google.com>
5719
5720 * sese.h (struct ivtype_map_elt_s): Remove unused.
5721 (extern debug_ivtype_map): Remove unused.
5722 (extern eq_ivtype_map_elts): Remove unused.
5723 * sese.c (debug_ivtype_map): Removed unused.
5724 (debug_ivtype_map_1): Removed unused.
5725 (debug_ivtype_elt): Remove unused.
5726 (eq_ivtype_map_elts): Remove unused.
5727
5728
82c0e1a0
KT
57292013-04-02 Kai Tietz <ktietz@redhat.com>
5730
5731 PR target/52790
5732 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5733 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
5734 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5735 function.
82c0e1a0
KT
5736 (legitimize_pe_coff_symbol): Likewise.
5737 (is_imported_p): New helper-function.
5738 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5739 for Windows x64 targets.
5740 (ix86_expand_prologue): Optimize for pe-coff targets.
5741 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5742 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5743 medium/large code-model.
5744 (legitimize_pic_address): Likewise.
5745 (legitimize_tls_address): Likewise.
5746 (ix86_expand_call): Likewise.
5747 (x86_output_mi_thunk): Likewise.
5748 (get_dllimport_decl): Add new beimport argument.
5749 (construct_plt_address): Don't assert for x64 pe-coff targets.
5750 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5751 targets.
5752 (SYMBOL_FLAG_STUBVAR): New macro.
5753 (SYMBOL_REF_STUBVAR_P): Likewise.
5754 * config/i386/winnt.c (stub_list): New structure.
5755 (stub_head): New local variable.
5756 (i386_pe_record_stub): New function.
5757 (i386_pe_file_end): Emit refptr-stubs.
5758
5d751b0c
JJ
57592013-04-02 Jakub Jelinek <jakub@redhat.com>
5760
09bb4c99
JJ
5761 PR rtl-optimization/56745
5762 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5763 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5764
a1d8947a
JJ
5765 PR c++/34949
5766 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5767 and both of them are MEM_REFs, just compare first argument for
5768 equality and attempt to deal even with differing offsets.
5769
5d751b0c
JJ
5770 PR c++/34949
5771 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5772 of gimple_clobber_p to be MEM_REF.
5773 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5774 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5775 after gimplification.
5776 * asan.c (get_mem_ref_of_assignment): Don't instrument
5777 gimple_clobber_p stmts.
5778 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5779 gimple_clobber_p stmt if they have MEM_REF lhs and
5780 are dead because of another gimple_clobber_p stmt.
5781 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5782 gimple_clobber_p stmts like debug stmts.
5783 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5784 that refer to unused VAR_DECLs or uninitialized values.
5785 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5786 gimple_clobber_p stmts if they refer to removed parameters.
5787 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5788 formatting.
5789
e594716a
UB
57902013-04-02 Uros Bizjak <ubizjak@gmail.com>
5791
5792 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5793 using SWI48 mode attribute.
5794
7a80735b
WM
57952013-04-02 Wei Mi <wmi@google.com>
5796
5797 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5798 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5799 *<rotate_insn><mode>3_mask in i386.md.
5800
f423a9e4
AI
58012013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5802
5803 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5804
90eb75f2
RB
58052013-04-02 Richard Biener <rguenther@suse.de>
5806
5807 PR tree-optimization/56778
5808 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5809 Runtime alias tests are not supported for gather loads.
5810 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5811 stmts referenced from SSA operands before updating SSA form.
5812
d8c69a92
IC
58132013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5814 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5815
5816 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
5817 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5818 * config/arm/cortex-a53.md: New file.
5819 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5820 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5821 * config/arm/arm.c (arm_issue_rate): Likewise.
5822 * config/arm/arm-tune.md: Regenerate
5823 * config/arm/arm-tables.opt: Regenerate.
5824 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 5825
239eb04c
ZC
58262013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5827
5828 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5829 non-static link.
5830
c902d3c8
SN
58312013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5832
d8c69a92
IC
5833 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5834 scalar load/store operations using B/H registers.
c902d3c8
SN
5835 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5836
051d0e2f
SN
58372013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5838
5839 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5840 scalar move.
5841 * config/aarch64/aarch64.c
5842 (aarch64_simd_scalar_immediate_valid_for_move): New.
5843 * config/aarch64/aarch64-protos.h
5844 (aarch64_simd_scalar_immediate_valid_for_move): New.
5845 * config/aarch64/constraints.md (Dh, Dq): New.
5846 * config/aarch64/iterators.md (hq): New.
5847
0ee1e3d9
EB
58482013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5849
5850 * reorg.c (get_branch_condition): Deal with conditional returns.
5851 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5852
136fb3f7
WM
58532013-04-01 Wei Mi <wmi@google.com>
5854
5855 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5856 Truncate operand 2 using %b asm operand modifier.
5857 (*<shift_insn><mode>3_mask): Ditto.
5858 (*<rotate_insn><mode>3_mask): Ditto.
5859
6388c738
SB
58602013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5861
5862 PR middle-end/56798
5863 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5864
f7a4d826
KK
58652013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5866
5867 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5868 of next_real_insn.
5869 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5870
4b943a49
LC
58712013-03-30 Lawrence Crowl <crowl@google.com>
5872
5873 * dse.c (clear_alias_sets): Remove never set.
5874 (disqualified_clear_alias_sets): Remove never set.
5875 (clear_alias_mode_pool): Remove never set.
5876 (dse_step0): Remove condition that is never true.
5877 (canon_address): Remove condition that is never true.
5878 (dse_step7): Remove condition that is never true.
5879 (rest_of_handle_dse): Remove condition that is never true.
5880 (rest_of_handle_dse::did_global): Remove never read from above.
5881 (dse_step2_spill): Remove never called from above.
5882 (dse_step5_spill): Remove never called from above.
5883
39718607
SB
58842013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5885
da5c6bde
SB
5886 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5887 JUMP_TABLE_DATA changes.
5888 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5889 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5890 (Insns) <jump_table_data>: New entry.
5891 * doc/tm.texi: Regenerate.
5892
39718607
SB
5893 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5894
5895 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5896 for table jump at the end of a basic block using tablejump_p.
5897 * targhooks.c (default_invalid_within_doloop): Likewise.
5898 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5899 target hook implementation that is identical to the default hook.
5900 (rs6000_invalid_within_doloop): Remove.
5901
5902 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5903 unused variable from tablejump_p call.
5904
5905 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5906 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5907 (INSN_DELETED_P): Likewise.
5908 (emit_jump_table_data): New prototype.
5909 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5910 after 4th as unused.
5911 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5912 * sched-vis.c (print_insn): Likewise.
5913 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5914 insn for compatibility with back ends that use next_active_insn to
5915 identify jump table data.
5916 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5917 (remove_insn): Likewise.
5918 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5919 to be emitted.
5920 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5921 (emit_jump_table_data): New function.
5922
5923 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5924 basic block, a JUMP_TABLE_DATA never is.
5925 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5926 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5927 off from code handling real insns.
5928 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5929 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5930 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5931 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5932 is not a NONDEBUG_INSN_P.
5933 * ira-costs.c (scan_one_insn): Likewise.
5934 * jump.c (mark_all_labels): Likewise.
5935 (mark_jump_label_1): Likewise.
5936 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5937 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5938 a basic block.
5939 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5940 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5941 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5942 JUMP_TABLE_DATA_P insns.
5943 (calculate_elim_costs_all_insns): Likewise.
5944 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5945 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5946 (delete_output_reload): Code style fixups.
5947 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5948 insn flags on this non-insn.
5949 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5950 as scheduling barriers, for pre-change compatibility.
5951 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5952 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5953
5954 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5955 redundant JUMP_TABLE_DATA_P test.
5956 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5957 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5958 (frv_for_each_packet): Likewise.
5959 * config/i386/i386.c (min_insn_size): Likewise.
5960 (ix86_avoid_jump_mispredicts): Likewise.
5961 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5962 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5963 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5964 (mips16_insn_length): Robustify.
5965 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5966 (mips16_split_long_branches): Likewise.
5967 * config/pa/pa.c (pa_combine_instructions): Likewise.
5968 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5969 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5970 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5971 as contributing to pool range lengths.
5972 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5973 Remove redundant JUMP_TABLE_DATA_P test.
5974 (sh_loop_align): Likewise.
5975 (split_branches): Likewise.
5976 (sh_insn_length_adjustment): Likewise.
5977 * config/spu/spu.c (get_branch_target): Likewise.
5978
0208f7da
JH
59792013-03-29 Jan Hubicka <jh@suse.cz>
5980
5981 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5982 gcov streaming; stream hot bb threshold to ltrans.
5983 * predict.c (get_hot_bb_threshold): Break out from ....
5984 (maybe_hot_count_p): ... here.
5985 (set_hot_bb_threshold): New function.
5986 * lto-section-in.c (lto_section_name): Add profile.
5987 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5988 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5989 and data-streamer.h
5990 (histogram_entry): New structure.
5991 (histogram, histogram_pool): New global vars.
5992 (histogram_hash): New structure.
5993 (histogram_hash::hash): New method.
5994 (histogram_hash::equal): Likewise.
5995 (account_time_size): New function.
5996 (cmp_counts): New function.
5997 (dump_histogram): New function.
5998 (ipa_profile_generate_summary): New function.
5999 (ipa_profile_write_summary): New function.
6000 (ipa_profile_read_summary): New function.
6001 (ipa_profile): Decide on threshold.
e594716a
UB
6002 (pass_ipa_profile): Add ipa_profile_write_summary and
6003 ipa_profile_read_summary.
0208f7da
JH
6004 * Makefile.in (ipa.o): Update dependencies.
6005 * lto-streamer.h (LTO_section_ipa_profile): New section.
6006
5a6ccc94
GDR
60072013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6008
6009 * tree.h (VAR_P): New.
6010
39385fa6
PC
60112013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6012
6013 PR lto/56777
6014 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6015
34f0d87a
SB
60162013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6017
6018 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6019 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6020 (control_flow_insn_p): Likewise.
6021 * cfgrtl.c (duplicate_insn_chain): Likewise.
6022 * final.c (get_attr_length_1): Likewise.
6023 (shorten_branches): Likewise.
6024 (final_scan_insn): Likewise.
6025 * function.c (instantiate_virtual_regs): Likewise.
6026 * gcse.c (insert_insn_end_basic_block): Likewise.
6027 * ira-costs.c (scan_one_insn): Likewise.
6028 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6029 * lra.c (check_rtl): Likewise.
6030 * reload1.c (elimination_costs_in_insn): Likewise.
6031 * reorg.c (follow_jumps): Likewise.
6032
6033 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6034 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6035 (thumb_far_jump_used_p): Likewise.
6036 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6037 (workaround_speculation): Likewise.
6038 (add_sched_insns_for_speculation): Likewise.
6039 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6040 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6041 (frv_for_each_packet): Likewise.
6042 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6043 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6044 (final_emit_insn_group_barriers): Likewise.
6045 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6046 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6047 (mips16_insn_length): Likewise.
6048 * config/pa/pa.c (pa_reorg): Likewise.
6049 (pa_combine_instructions): Likewise.
6050 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6051 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6052 (sh_reorg): Likewise.
6053 (split_branches): Likewise.
6054 * config/spu/spu.c (get_branch_target): Likewise.
6055
6056 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6057 JUMP_TABLE_DATA_P.
6058
4ac761b0
KY
60592013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6060
39385fa6 6061 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
6062 Fix declaration name.
6063
58a49189
LC
60642013-03-28 Lawrence Crowl <crowl@google.com>
6065
6066 * graphds.h (struct graph.indicies): Remove unused.
6067 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6068 (SCOP_ORIGINAL_PDDRS): Remove unused.
6069 * sese.h (extern insert_loop_close_phis): Removed unused.
6070 (extern insert_guard_phis): Removed unused.
6071 (extern ivtype_map_elt_info): Removed unused.
6072 (new_ivtype_map_elt): Removed unused.
6073 * sese.c (ivtype_map_elt_info): Removed unused.
6074
7b3b6ae4
LC
60752013-03-28 Lawrence Crowl <crowl@google.com>
6076
6077 * Makefile.in: Add several missing include dependences.
6078 (DUMPFILE_H): New.
6079 (test-dump.o): New. This object is not added to any executable,
6080 but is present for ad-hoc testing.
6081 * bitmap.c
6082 (debug (const bitmap_head_def &)): New.
6083 (debug (const bitmap_head_def *)): New.
6084 * bitmap.h
6085 (extern debug (const bitmap_head_def &)): New.
6086 (extern debug (const bitmap_head_def *)): New.
6087 * cfg.c
6088 (debug (edge_def &)): New.
6089 (debug (edge_def *)): New.
6090 * cfghooks.c
6091 (debug (basic_block_def &)): New.
6092 (debug (basic_block_def *)): New.
6093 * dumpfile.h
6094 (dump_node (const_tree, int, FILE *)): Correct source file.
6095 * dwarf2out.c
6096 (debug (die_struct &)): New.
6097 (debug (die_struct *)): New.
6098 * dwarf2out.h
6099 (extern debug (die_struct &)): New.
6100 (extern debug (die_struct *)): New.
6101 * gimple-pretty-print.c
6102 (debug (gimple_statement_d &)): New.
6103 (debug (gimple_statement_d *)): New.
6104 * gimple-pretty-print.h
6105 (extern debug (gimple_statement_d &)): New.
6106 (extern debug (gimple_statement_d *)): New.
6107 * ira-build.c
6108 (debug (ira_allocno_copy &)): New.
6109 (debug (ira_allocno_copy *)): New.
6110 (debug (ira_allocno &)): New.
6111 (debug (ira_allocno *)): New.
6112 * ira-int.h
6113 (extern debug (ira_allocno_copy &)): New.
6114 (extern debug (ira_allocno_copy *)): New.
6115 (extern debug (ira_allocno &)): New.
6116 (extern debug (ira_allocno *)): New.
6117 * ira-lives.c
6118 (debug (live_range &)): New.
6119 (debug (live_range *)): New.
6120 * lra-int.h
6121 (debug (lra_live_range &)): New.
6122 (debug (lra_live_range *)): New.
6123 * lra-lives.c
6124 (debug (lra_live_range &)): New.
6125 (debug (lra_live_range *)): New.
6126 * omega.c
6127 (debug (omega_pb_d &)): New.
6128 (debug (omega_pb_d *)): New.
6129 * omega.h
6130 (extern debug (omega_pb_d &)): New.
6131 (extern debug (omega_pb_d *)): New.
6132 * print-rtl.c
6133 (debug (const rtx_def &)): New.
6134 (debug (const rtx_def *)): New.
6135 * print-tree.c
6136 (debug_tree (tree): Move within file.
6137 (debug_raw (const tree_node &)): New.
6138 (debug_raw (const tree_node *)): New.
6139 (dump_tree_via_hooks (const tree_node *, int)): New.
6140 (debug (const tree_node &)): New.
6141 (debug (const tree_node *)): New.
6142 (debug_verbose (const tree_node &)): New.
6143 (debug_verbose (const tree_node *)): New.
6144 (debug_head (const tree_node &)): New.
6145 (debug_head (const tree_node *)): New.
6146 (debug_body (const tree_node &)): New.
6147 (debug_body (const tree_node *)): New.
6148 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6149 (debug (vec<tree, va_gc> &)): New.
6150 (debug (vec<tree, va_gc> *)): New.
6151 * rtl.h
6152 (extern debug (const rtx_def &)): New.
6153 (extern debug (const rtx_def *)): New.
6154 * sbitmap.c
6155 (debug_raw (simple_bitmap_def &)): New.
6156 (debug_raw (simple_bitmap_def *)): New.
6157 (debug (simple_bitmap_def &)): New.
6158 (debug (simple_bitmap_def *)): New.
6159 * sbitmap.h
6160 (extern debug (simple_bitmap_def &)): New.
6161 (extern debug (simple_bitmap_def *)): New.
6162 (extern debug_raw (simple_bitmap_def &)): New.
6163 (extern debug_raw (simple_bitmap_def *)): New.
6164 * sel-sched-dump.c
6165 (debug (vinsn_def &)): New.
6166 (debug (vinsn_def *)): New.
6167 (debug_verbose (vinsn_def &)): New.
6168 (debug_verbose (vinsn_def *)): New.
6169 (debug (expr_def &)): New.
6170 (debug (expr_def *)): New.
6171 (debug_verbose (expr_def &)): New.
6172 (debug_verbose (expr_def *)): New.
6173 (debug (vec<rtx> &)): New.
6174 (debug (vec<rtx> *)): New.
6175 * sel-sched-dump.h
6176 (extern debug (vinsn_def &)): New.
6177 (extern debug (vinsn_def *)): New.
6178 (extern debug_verbose (vinsn_def &)): New.
6179 (extern debug_verbose (vinsn_def *)): New.
6180 (extern debug (expr_def &)): New.
6181 (extern debug (expr_def *)): New.
6182 (extern debug_verbose (expr_def &)): New.
6183 (extern debug_verbose (expr_def *)): New.
6184 (extern debug (vec<rtx> &)): New.
6185 (extern debug (vec<rtx> *)): New.
6186 * sel-sched-ir.h
6187 (_list_iter_cond_expr): Make inline instead of static.
6188 * sreal.c
6189 (debug (sreal &)): New.
6190 (debug (sreal *)): New.
6191 * sreal.h
6192 (extern debug (sreal &)): New.
6193 (extern debug (sreal *)): New.
6194 * tree.h
6195 (extern debug_raw (const tree_node &)): New.
6196 (extern debug_raw (const tree_node *)): New.
6197 (extern debug (const tree_node &)): New.
6198 (extern debug (const tree_node *)): New.
6199 (extern debug_verbose (const tree_node &)): New.
6200 (extern debug_verbose (const tree_node *)): New.
6201 (extern debug_head (const tree_node &)): New.
6202 (extern debug_head (const tree_node *)): New.
6203 (extern debug_body (const tree_node &)): New.
6204 (extern debug_body (const tree_node *)): New.
6205 (extern debug (vec<tree, va_gc> &)): New.
6206 (extern debug (vec<tree, va_gc> *)): New.
6207 * tree-cfg.c
6208 (debug (struct loop &)): New.
6209 (debug (struct loop *)): New.
6210 (debug_verbose (struct loop &)): New.
6211 (debug_verbose (struct loop *)): New.
6212 * tree-dump.c: Add header dependence.
6213 * tree-flow.h
6214 (extern debug (struct loop &)): New.
6215 (extern debug (struct loop *)): New.
6216 (extern debug_verbose (struct loop &)): New.
6217 (extern debug_verbose (struct loop *)): New.
6218 * tree-data-ref.c
6219 (debug (data_reference &)): New.
6220 (debug (data_reference *)): New.
6221 (debug (vec<data_reference_p> &)): New.
6222 (debug (vec<data_reference_p> *)): New.
6223 (debug (vec<ddr_p> &)): New.
6224 (debug (vec<ddr_p> *)): New.
6225 * tree-data-ref.h
6226 (extern debug (data_reference &)): New.
6227 (extern debug (data_reference *)): New.
6228 (extern debug (vec<data_reference_p> &)): New.
6229 (extern debug (vec<data_reference_p> *)): New.
6230 (extern debug (vec<ddr_p> &)): New.
6231 (extern debug (vec<ddr_p> *)): New.
6232 * tree-ssa-alias.c
6233 (debug (pt_solution &)): New.
6234 (debug (pt_solution *)): New.
6235 * tree-ssa-alias.h
6236 (extern debug (pt_solution &)): New.
6237 (extern debug (pt_solution *)): New.
6238 * tree-ssa-alias.c
6239 (debug (_var_map &)): New.
6240 (debug (_var_map *)): New.
6241 (debug (tree_live_info_d &)): New.
6242 (debug (tree_live_info_d *)): New.
6243 * tree-ssa-alias.h
6244 (extern debug (_var_map &)): New.
6245 (extern debug (_var_map *)): New.
6246 (extern debug (tree_live_info_d &)): New.
6247 (extern debug (tree_live_info_d *)): New.
6248
be77e1e5
JH
62492013-03-28 Jan Hubicka <jh@suse.cz>
6250
6251 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6252
777e6976
IB
62532013-03-28 Ian Bolton <ian.bolton@arm.com>
6254
6255 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6256 record only when desired or required.
6257
9cd347ae
UB
62582013-03-28 Uros Bizjak <ubizjak@gmail.com>
6259
6260 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6261 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6262
33159866 62632013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
6264
6265 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6266 (*andsi3_compare0_uxtw): New pattern.
6267 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6268 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6269
89ab31c1
JH
62702013-03-28 Jan Hubicka <jh@suse.cz>
6271
6272 * data-streamer-in.c (streamer_read_gcov_count): New function.
6273 * gimple-streamer-out.c: Include value-prof.h.
6274 (output_gimple_stmt): Output histogram.
6275 (output_bb): Use streamer_write_gcov_count.
6276 * value-prof.c: Include data-streamer.h
6277 (dump_histogram_value): Add HIST_TYPE_MAX.
6278 (stream_out_histogram_value): New function.
6279 (stream_in_histogram_value): New function.
6280 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6281 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6282 * data-streamer-out.c (streamer_write_gcov_count): New function.
6283 (streamer_write_gcov_count_stream): New function.
6284 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6285 (lto_output_node): Likewise.
6286 (input_node, input_edge): Likewise.
6287 * lto-streamer-out.c (output_cfg): Update streaming.
6288 * lto-streamer-in.c (input_cfg): Likewise.
6289 * data-streamer.h (streamer_write_gcov_count,
6290 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6291 * gimple-streamer-in.c: Include value-prof.h
6292 (input_gimple_stmt): Input histograms.
6293 (input_bb): Update profile streaming.
6294
e594716a 62952013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 6296
33159866 6297 * genmodes.c (emit_max_int): New function.
8697be17 6298 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
6299 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6300 Added doc.
8697be17 6301 * machmode.def: Fixed comment.
89ab31c1 6302
e594716a 63032013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
6304
6305 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
6306 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6307
74946978
MP
63082013-03-28 Marek Polacek <polacek@redhat.com>
6309 Richard Biener <rguenther@suse.de>
6310
6311 PR tree-optimization/56695
6312 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6313 build signed result of a vector comparison.
6314 * tree-cfg.c (verify_gimple_comparison): Check that a result
6315 of a vector comparison has signed type.
6316
a64b9c26
RB
63172013-03-28 Richard Biener <rguenther@suse.de>
6318
6319 PR tree-optimization/37021
6320 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6321 do not restrict gaps between groups.
6322 * tree-vect-stmts.c (vectorizable_load): Properly account for
6323 a gap between groups.
6324
a9dc2a2f
EB
63252013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6326
6327 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6328 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6329 is not enabled.
6330
53cb97f9
GP
63312013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6332
6333 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6334 * doc/extend.texi (Named Address Spaces): Ditto.
6335 (Variable Attributes): Ditto.
6336
b802ae5c
KT
63372013-03-27 Kai Tietz <ktietz@redhat.com>
6338
eddae10a
KT
6339 * config.build: Add support for cygwin x64 target.
6340 * config.gcc: Likewise.
6341 * config.host: Likewise.
6342 * configure.ac: Likewise
6343 * configure: Regenerated.
b802ae5c 6344
8269de54
KT
63452013-03-27 Kai Tietz <ktietz@redhat.com>
6346
6347 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6348 * config/i386/t-cygwin-w64: New file.
6349 * config/i386/cygwin-w64.h: New file.
6350 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6351 and add support for x64-cygwin target.
6352 (CPP_SPEC): Likewise.
6353 (CXX_WRAP_SPEC_LIST): Undefine before define.
6354 (LIBGCJ_SONAME): Use 15 as version.
6355
f49b33cb
RB
63562013-03-27 Richard Biener <rguenther@suse.de>
6357
6358 PR tree-optimization/56716
6359 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6360 dumping for ref nodes.
6361
b37a6ce5
MJ
63622013-03-27 Martin Jambor <mjambor@suse.cz>
6363
6364 PR tree-optimization/55334
6365 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6366 restricted pointers to arrays.
6367
9469b9b2
GDR
63682013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6369
6370 * Makefile.in (.SUFFIXES): Add .cc.
6371 (.c.o): Apply same recipe for implicit rule .cc.o.
6372
7d24f650
RB
63732013-03-27 Richard Biener <rguenther@suse.de>
6374
6375 PR tree-optimization/37021
6376 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6377 REALPART/IMAGPART_EXPRs around the supported refs.
6378 * tree-ssa-structalias.c (find_func_aliases): Assume that
6379 floating-point values are not used to transfer pointers.
6380
2f251a05
AI
63812013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6382
39385fa6
PC
6383 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6384 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6385 * doc/tm.texi: Regenerate.
6386 * targhooks.h (default_has_ifunc_p): New.
6387 * targhooks.c (default_has_ifunc_p): Ditto.
6388 * config/linux-protos.h: New file.
6389 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
6390 this hook for linux which disables support of indirect functions in
6391 android.
39385fa6
PC
6392 * config/linux-android.c: New file.
6393 * config/t-linux-android.c: Ditto.
6394 * config.gcc: Added new object file linux-android.o.
6395 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 6396 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 6397 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
6398 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6399 doesn't support indirect functions.
6400 * configure: Regenerate.
6401
78b4e425
BC
64022013-03-27 Bin Cheng <bin.cheng@arm.com>
6403
6404 PR target/56102
6405 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6406 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6407 mult-word mode.
6408
a5ba7b92
AK
64092013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6410
6411 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6412
be624986
TG
64132013-03-27 Terry Guo <terry.guo@arm.com>
6414
6415 * config/arm/arm-cores.def: Added core cortex-r7.
6416 * config/arm/arm-tune.md: Regenerated.
6417 * config/arm/arm-tables.opt: Regenerated.
6418 * doc/invoke.texi: Added entry for core cortex-r7.
6419
0a514f47
WL
64202013-03-27 Walter Lee <walt@tilera.com>
6421
6422 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6423 double-decrement of next_scratch_regno.
6424
9332b0d2
WL
64252013-03-27 Walter Lee <walt@tilera.com>
6426
801d9b2a 6427 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
6428 input operands.
6429 (insn_v1mulus): Ditto.
6430 (insn_v2muls): Ditto.
6431
f54ea5dd
WL
64322013-03-27 Walter Lee <walt@tilera.com>
6433
e594716a 6434 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
6435 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6436
bf60f4ca
WL
64372013-03-27 Walter Lee <walt@tilera.com>
6438
e594716a 6439 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
6440 (*sibcall_value): Ditto.
6441
e3b51eeb
WL
64422013-03-27 Walter Lee <walt@tilera.com>
6443
6444 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6445 (insn_mnz_v8qi): ... this ...
6446 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6447 vector equivalent.
6448 (insn_v<n>mnz): Replaced by ...
6449 (insn_v1mnz): ... this ...
6450 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6451 equivalent.
6452 (insn_mz_<mode>): Replaced by ...
6453 (insn_mz_v8qi): ... this ...
6454 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6455 vector equivalent.
6456 (insn_v<n>mz): Replaced by ...
6457 (insn_v1mz): ... this ...
6458 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6459 equivalent.
6460
4fc7b145
EB
64612013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6462
6463 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6464
6f33817e
RM
64652013-03-26 Roland McGrath <mcgrathr@google.com>
6466
6467 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6468 than fprintf with a non-constant, non-format string.
6469
93a4145b
UB
64702013-03-26 Uros Bizjak <ubizjak@gmail.com>
6471
6472 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6473 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6474 operand 0 predicate.
6475 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6476 attribute. Use general_x64nomem_operand as operand 1 predicate.
6477 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6478 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6479 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6480 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6481 (mov<mode>_insv_1): Remove expander. Merge insn with
6482 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6483 Use general_x64nomem_operand as operand 1 predicate.
6484 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6485 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6486 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6487 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6488 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6489 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6490 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6491 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6492 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6493 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6494 (general_x64nomem_operand): Ditto.
6495
c6a9ed5a 64962013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
6497
6498 * config/rtems.opt: Add -pthread option.
6499
31b0a960
RB
65002013-03-26 Richard Biener <rguenther@suse.de>
6501
93a4145b
UB
6502 * alias.c (find_base_term): Avoid redundant and not used recursion.
6503 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
6504 (true_dependence_1): Compute and pass base terms to base_alias_check.
6505 (write_dependence_p): Likewise.
6506 (may_alias_p): Likewise.
6507
79517551
SN
65082013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6509
6510 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6511 PC-relative load in SI modes and above only.
6512
a76213b9
XQ
65132013-03-26 Xinyu Qi <xyqi@marvell.com>
6514
6515 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
6516 * config/arm/iwmmxt.md (WCGR0): Update.
6517 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 6518
37ff9355
UB
65192013-03-26 Uros Bizjak <ubizjak@gmail.com>
6520
6521 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6522 Use x64 and nox64 isa attributes.
6523
30b0317c
RB
65242013-03-26 Richard Biener <rguenther@suse.de>
6525
6526 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6527 alignment computations and rely on get_object_alignment_1
6528 for the !TYPE_P case.
6529 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6530
cbcdb140
WL
65312013-03-26 Walter Lee <walt@tilera.com>
6532
6533 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6534 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6535
dd884525 65362013-03-25 Jeff Law <law@redhat.com>
be672e08 6537
33159866
UB
6538 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6539 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
6540 wrong version of prior patch.
6541
0051d3ec
WL
65422013-03-25 Walter Lee <walt@tilera.com>
6543
6544 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6545 TILEGX_INSN_SHUFFLEBYTES1.
6546 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6547 shufflebytes1.
6548 (tilegx_builtins): Ditto.
6549 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6550
065a3605
WL
65512013-03-25 Walter Lee <walt@tilera.com>
6552
6553 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
6554 (floatunssisf2): New pattern.
6555 (floatsidf2): New pattern.
6556 (floatunssidf2): New pattern.
065a3605 6557
5b2a3c82
WL
65582013-03-25 Walter Lee <walt@tilera.com>
6559
6560 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6561 tests for constraint J, K, N, P.
6562
192ea533
WL
65632013-03-25 Walter Lee <walt@tilera.com>
6564
6565 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6566 Use indirect/pcrel encoding.
6567 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6568 Ditto.
6569
855e0d0b
SE
65702013-03-25 Steve Ellcey <sellcey@mips.com>
6571
6572 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6573 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6574 * config/mips/mips.c (mips_option_override): Set IMADD default.
6575 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6576 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6577 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6578 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6579 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6580
39e45653
JL
65812013-03-25 Jeff Law <law@redhat.com>
6582
6583 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6584 slightly to avoid creating and folding useless trees. Simplify
6585 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6586
7482c470
UB
65872013-03-25 Uros Bizjak <ubizjak@gmail.com>
6588
6589 * config/i386/i386.md (*zero_extendsidi2): Merge with
6590 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6591 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6592 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6593 targets. Clarify comment.
6594
4a53743e
MJ
65952013-03-25 Martin Jambor <mjambor@suse.cz>
6596
6597 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6598 pass-through jump functions differently.
6599 (ipa_read_jump_function): Likewise. Also use setter functions to set
6600 up jump functions.
6601
162712de
MJ
66022013-03-25 Martin Jambor <mjambor@suse.cz>
6603
6604 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6605 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6606 process it.
6607 (ipa_get_indirect_edge_target): New function.
6608 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6609 ipa_get_indirect_edge_target. Update all callers.
6610 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6611 ipa_get_indirect_edge_target_1 instead of calling
6612 ipa_get_indirect_edge_target.
6613 (create_specialized_node): Pass aggvlas to
6614 ipcp_discover_new_direct_edges.
6615
a5a4c20a
KT
66162013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6617
6618 * config/arm/arm.md (f_sels, f_seld): New types.
6619 (*cmov<mode>): New pattern.
6620 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6621 predicate.
6622
f992b9fc
KT
66232013-03-25 Kai Tietz <ktietz@redhat.com>
6624
6625 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6626 POSIX-printf for mingw-hosted builds.
6627
c16fd676
RB
66282013-03-25 Richard Biener <rguenther@suse.de>
6629
6630 PR middle-end/56694
6631 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6632 must-not-throw stmt location.
6633
5ad29f12
KT
66342013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6635
6636 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6637 Emit load-acquire versions when acq is true.
6638 (arm_emit_store_exclusive): Add rel parameter.
6639 Emit store-release versions when rel is true.
6640 (arm_split_compare_and_swap): Use acquire-release instructions
6641 instead.
6642 of barriers when appropriate.
6643 (arm_split_atomic_op): Likewise.
6644 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6645 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6646 (VUNSPEC_SLX): Likewise.
6647 (VUNSPEC_LDA): Likewise.
6648 (VUNSPEC_STL): Likewise.
6649 * config/arm/sync.md (atomic_load<mode>): New pattern.
6650 (atomic_store<mode>): Likewise.
6651 (arm_load_acquire_exclusive<mode>): Likewise.
6652 (arm_load_acquire_exclusivesi): Likewise.
6653 (arm_load_acquire_exclusivedi): Likewise.
6654 (arm_store_release_exclusive<mode>): Likewise.
6655
03a7dddb
CM
66562013-03-25 Catherine Moore <clm@codesourcery.com>
6657
6658 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6659 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6660 * config/mip/predicates.md (lwsp_swsp_operand,
6661 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6662 sb16_operand, db4_operand, db7_operand, ib3_operand,
6663 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6664 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6665 andi16_operand): New predicates.
6666 * config/mips/mips.md (compression): New attribute.
6667 (enabled): New attribute.
6668 (length): Consider compression in computing length.
6669 (shift_compression): New code attribute.
6670 (*add<mode>3): New operands. Record compression.
6671 (sub<mode>3): Likewise.
6672 (one_cmpl<mode>2): Likewise.
6673 (*and<mode>3): Likewise.
6674 (*ior<mode>3): Likewise.
6675 (unnamed pattern for xor): Likewise.
6676 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6677 (*<optab><mode>3): Likewise.
6678 (*mov<mode>_internal: Likewise.
6679 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6680 (mips_unsigned_immediate_p): New.
6681 (umips_lwsp_swsp_address_p): New.
6682 (m16_based_address_p): New.
6683 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6684 (mips_unsigned_immediate_p): New prototype.
6685 (lwsp_swsp_address_p): New prototype.
6686 (m16_based_address_p): New prototype.
6687 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6688 (mips_signed_immediate_p): New function.
6689 (m16_based_address_p): New function.
6690 (lwsp_swsp_address_p): New function.
6691 (mips_print_operand_punctuation): Recognize short delay slot insns
6692 for microMIPS.add<mode>3"
6693
f35c297f 66942013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 6695
f35c297f
KT
6696 PR target/56720
6697 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6698 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6699
051b9446
RB
67002013-03-25 Richard Biener <rguenther@suse.de>
6701
6702 PR tree-optimization/56689
6703 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6704 any edge.
6705
374001cb
RB
67062013-03-25 Richard Biener <rguenther@suse.de>
6707
6708 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6709 of bitmap.
6710 (memory_references): Likewise.
6711 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6712 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6713 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6714 (gather_mem_refs_in_loops): Fold into ...
6715 (analyze_memory_references): ... this. Move initialization
6716 to tree_ssa_lim_initialize.
6717 (fill_always_executed_in): Rename to ...
6718 (fill_always_executed_in_1): ... this.
6719 (fill_always_executed_in): Move contains_call computation to
6720 this new function from ...
6721 (tree_ssa_lim_initialize): ... here.
6722 (tree_ssa_lim): Call fill_always_executed_in.
6723
57895947
EB
67242013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6725
6726 * postreload.c (reload_combine): Fix code detecting returns.
6727
1e1b18c1
EB
67282013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6729
6730 * function.c (emit_use_return_register_into_block): On cc0 targets,
6731 do not emit the sequence between cc0 setter and user.
6732
9216baf1
KT
67332013-03-25 Kai Tietz <ktietz@redhat.com>
6734
1e1b18c1
EB
6735 * config/i386/predicates.md (local_symbolic_operand): Interpret
6736 dll-imported symbols as none-local.
9216baf1 6737
76421b44
RB
67382013-03-25 Richard Biener <rguenther@suse.de>
6739
6740 * tree-ssa-loop-im.c (struct depend): Remove.
6741 (struct lim_aux_data): Make depends a vec of gimples.
6742 (free_lim_aux_data): Adjust.
6743 (add_dependency): Likewise.
6744 (set_level): Likewise.
6745
d154bfa2
RB
67462013-03-25 Richard Biener <rguenther@suse.de>
6747
6748 PR middle-end/56434
6749 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6750 the pointer returned by calls with ECF_MALLOC set.
6751
2cd9804e
UB
67522013-03-24 Uros Bizjak <ubizjak@gmail.com>
6753
acef5fe0
UB
6754 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6755
67562013-03-24 Uros Bizjak <ubizjak@gmail.com>
6757
6758 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
6759 using MMXMODE mode iterator.
6760 (*move<mode>_internal): Merge with *movv2sf_internal and
6761 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6762
225ccc68
SB
67632013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6764
85c0f02d
SB
6765 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6766 (record_last_mem_set_info): Likewise.
6767
225ccc68
SB
6768 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6769 of XNEWVEC followed by memset.
6770 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6771
b64925dc
SB
67722013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6773
6774 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6775 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6776 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6777 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6778 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6779 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6780 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6781 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6782 BARRIER_P instead of GET_CODE.
6783
b9aaf52e
EB
67842013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6785
6786 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6787 inaccuracy in the probing code.
6788
6789 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6790 (ctrapdi4): Likewise.
6791
66de4d7c
EB
67922013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6793
6794 * calls.c (expand_call): Add missing guard to code handling return
6795 of non-BLKmode structures in MSB.
6796 * function.c (expand_function_end): Likewise.
6797
4f25c8fb
EB
67982013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6799
6800 * combine.c (try_combine): Adjust comment. Do not add the set of
6801 insn #0 if the destination indirectly is set or dies in insn #2.
6802 Tidy up code to distribute a new note.
6803
23b7850d
UB
68042013-03-22 Uros Bizjak <ubizjak@gmail.com>
6805
6806 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6807 also for alternatives 16 and 17.
6808
bed852cf
UB
68092013-03-22 Uros Bizjak <ubizjak@gmail.com>
6810
6811 * config/i386/sse.md (*mov<mode>_internal): Merge with
6812 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6813 Emit insn template depending on type attribute. Use
6814 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6815 movd instead of movq mnemonic for interunit moves. Rewrite mode
6816 attribute calculation. Remove unit attribute calculation.
6817 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6818 Set prefix_data16 attribute for DImode ssemov types.
6819 Use Ym instead of y for SSE-MMX conversion alternatives.
6820 Reorder operand constraints.
6821
1e8a7937
SB
68222013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6823
6824 * df.h (df_insn_delete): Adjust prototype.
6825 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6826 and let it decide whether mark the basic block dirty.
6827 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6828 * df-scan.c (df_insn_info_delete): New helper function, split
6829 off from df_insn_delete.
6830 (df_scan_free_bb_info): Use it.
6831 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6832 Likewise.
6833 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6834 that the insn is actually an insn and it has a non-NULL basic block.
6835 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6836
e14d094c
RB
68372013-03-22 Richard Biener <rguenther@suse.de>
6838
6839 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6840 dep_ref members.
6841 (mem_ref_alloc): Do not allocate them.
6842 (refs_independent_p): Do not query or maintain a cache.
6843
e9cf7316
RB
68442013-03-22 Richard Biener <rguenther@suse.de>
6845
6846 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6847 (gather_mem_refs_in_loops): Do not compute it.
6848 (analyze_memory_references): Do not allocate it.
6849 (tree_ssa_lim_finalize): Do not free it.
6850 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6851
f046e81b
RB
68522013-03-22 Richard Biener <rguenther@suse.de>
6853
6854 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 6855
a05c0ddf
IB
68562013-03-22 Ian Bolton <ian.bolton@arm.com>
6857
6858 * config/aarch64/aarch64.c (aarch64_print_operand): New
6859 format specifier for printing a constant in hex.
6860 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6861 format specifier for printing second operand.
6862
c00217fc
RB
68632013-03-22 Richard Biener <rguenther@suse.de>
6864
6865 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6866 bitmaps.
6867 (gather_mem_refs_in_loops): Perform store accumulation here.
6868 (create_vop_ref_mapping_loop): Remove.
6869 (create_vop_ref_mapping): Likewise.
6870 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 6871 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
6872 (record_indep_loop): Remove.
6873 (record_dep_loop): New function.
6874 (ref_indep_loop_p_1): Adjust to only walk over references
6875 in the loop, not its subloops.
6876 (ref_indep_loop_p): Rename to ...
6877 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6878 maintaining a more fine-grained cache.
6879 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6880 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6881
15d19bf8
RB
68822013-03-22 Richard Biener <rguenther@suse.de>
6883
6884 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6885 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6886 aggregate mem_ref_loc.
6887 (free_mem_ref_locs): Inline into ...
6888 (memref_free): ... this and adjust.
6889 (mem_ref_alloc): Adjust.
6890 (mem_ref_locs_alloc): Remove.
6891 (record_mem_ref_loc): Adjust.
6892 (get_all_locs_in_loop): Rewrite into ...
6893 (for_all_locs_in_loop): ... this iterator.
6894 (rewrite_mem_ref_loc): New functor.
6895 (rewrite_mem_refs): Use for_all_locs_in_loop.
6896 (sm_set_flag_if_changed): New functor.
6897 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6898 (ref_always_accessed): New functor.
6899 (ref_always_accessed_p): Use for_all_locs_in_loop.
6900
6f37411d
MG
69012013-03-21 Marc Glisse <marc.glisse@inria.fr>
6902
6903 * tree-pass.h (PROP_gimple_lvec): New.
6904 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6905 (init_optimization_passes): Move pass_lower_vector.
6906 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6907 PROP_gimple_lvec.
6908 (pass_lower_vector): Provide PROP_gimple_lvec.
6909 (pass_lower_vector_ssa): Likewise.
6910 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6911
511ef689
MW
69122013-03-21 Mark Wielaard <mjw@redhat.com>
6913
6914 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6915
cc1df30b
UB
69162013-03-21 Uros Bizjak <ubizjak@gmail.com>
6917
6918 * config/i386/i386.md (*movdi_internal): Disparage slightly
6919 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6920 conversion alternatives.
6921
c845cfe1
JJ
69222013-03-21 Jakub Jelinek <jakub@redhat.com>
6923
37e99116
JJ
6924 PR middle-end/48087
6925 * diagnostic.def (DK_WERROR): New kind.
6926 * diagnostic.h (werrorcount): Define.
6927 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6928 promoted to DK_ERROR, increment DK_WERROR counter instead of
6929 DK_ERROR counter.
6930 * toplev.c (toplev_main): Call print_ignored_options even if
6931 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6932 even if just werrorcount is non-zero.
6933
c845cfe1
JJ
6934 PR debug/55608
6935 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6936 on failure.
6937 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6938 (string_cst_pool_decl): New function.
6939 (optimize_one_addr_into_implicit_ptr): New function.
6940 (resolve_addr_in_expr): Optimize DWARF location expression
6941 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6942 which doesn't live in memory, but has DW_AT_location or
6943 DW_AT_const_value, or refers to a string literal, into
6944 DW_OP_GNU_implicit_pointer.
6945 (optimize_location_into_implicit_ptr): New function.
6946 (resolve_addr): If removing DW_AT_location of a variable because
6947 it was DW_OP_addr of address of the variable, but the variable doesn't
6948 live in memory, try to emit const value attribute for the initializer.
6949
08e0cda6
MG
69502013-03-21 Marc Glisse <marc.glisse@inria.fr>
6951
6952 * tree.h (VECTOR_TYPE_P): New macro.
6953 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6954 TYPE_MODE): Use it.
6955 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6956 VEC_COND_EXPR cannot be lvalues.
6957 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6958
d08633b4
MG
69592013-03-21 Marc Glisse <marc.glisse@inria.fr>
6960
6961 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6962 Restrict the transformation to equal modes.
6963
e6647190
RB
69642013-03-21 Richard Biener <rguenther@suse.de>
6965
6966 PR tree-optimization/39326
6967 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6968 (MEM_ANALYZABLE): Adjust.
6969 (record_mem_ref_loc): Move bitmap ops ...
6970 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6971 unanalyzable refs, do not record locations for it.
6972 (analyze_memory_references): Allocate ref zero as shared
6973 unanalyzable ref.
6974 (refs_independent_p): Do not test for unanalyzed mems here.
6975 (ref_indep_loop_p_1): Special-case disambiguation against
6976 the unanalyzed ref.
cc1df30b 6977 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 6978
65074f54
CL
69792013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6980
6981 * config/arm/arm-protos.h (tune_params): Add
6982 prefer_neon_for_64bits field.
6983 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6984 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6985 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6986 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6987 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6988 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6989 (arm_option_override): Handle -mneon-for-64bits new option.
6990 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6991 (prefer_neon_for_64bits): Declare new variable.
6992 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 6993 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
6994 (arch_enabled): Handle new arch types. Remove support for onlya8
6995 and nota8.
6996 (one_cmpldi2): Use new arch names.
bc5faa5b 6997 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
6998 * config/arm/arm.opt (mneon-for-64bits): Add option.
6999 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7000 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7001 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7002 of onlya8.
7003 * doc/invoke.texi (-mneon-for-64bits): Document.
7004
5a2d2a79
RB
70052013-03-21 Richard Biener <rguenther@suse.de>
7006
7007 PR tree-optimization/39326
7008 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7009 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 7010 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 7011
5abe1e05
RB
70122013-03-21 Richard Biener <rguenther@suse.de>
7013
7014 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7015 (vect_insert_into_interleaving_chain): Likewise.
7016 (vect_drs_dependent_in_basic_block): Inline ...
7017 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7018 split out from ...
7019 (vect_analyze_data_ref_dependence): ... here. Simplify.
7020 (vect_check_interleaving): Simplify.
7021 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7022 (vect_slp_analyze_data_ref_dependences): ... this new function.
7023 (dr_group_sort_cmp): New function.
7024 (vect_analyze_data_ref_accesses): Compute data-reference groups
7025 here instead of in vect_analyze_data_ref_dependence. Use
7026 a more efficient algorithm.
7027 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7028 vect_slp_analyze_data_ref_dependences. Call
7029 vect_analyze_data_ref_accesses earlier.
7030 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7031 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7032 (vect_slp_analyze_data_ref_dependences): New prototype.
7033
cad1735b
RB
70342013-03-21 Richard Biener <rguenther@suse.de>
7035
7036 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7037 ref is stored in the loop.
7038 (find_refs_for_sm): Walk only over all stores.
7039 (store_motion_loop): Allocate from lim_bitmap_obstack.
7040 (store_motion): Likewise.
7041
141310ef
RB
70422013-03-21 Richard Biener <rguenther@suse.de>
7043
7044 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7045 Update virtual SSA form.
7046
5022315a
RO
70472013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7048
7049 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7050 * configure: Regenerate.
7051 * config.in: Regenerate.
7052 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7053 if !HAVE_LD_EH_FRAME_CIEV3.
7054
50d4421c
RB
70552013-03-21 Richard Biener <rguenther@suse.de>
7056
7057 * tree-cfg.c (verify_expr_no_block): New function.
7058 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7059 nor DECL_VALUE_EXPR have locations with associated blocks.
7060 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7061 (clear_unused_block_pointer): Remove code dealing with
7062 blocks in DECL_DEBUG_EXPR locations.
7063
839b422f
RB
70642013-03-21 Richard Biener <rguenther@suse.de>
7065
7066 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7067 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7068 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7069 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7070 instead of DECL_DEBUG_EXPR_IS_FROM.
7071 * gimplify.c (gimplify_modify_expr): Likewise.
7072 * tree-cfg.c (verify_expr_location_1): Likewise.
7073 * tree-complex.c (create_one_component_var): Likewise.
7074 * tree-sra.c (create_access_replacement): Likewise.
7075 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7076 (clear_unused_block_pointer): Likewise.
7077 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7078 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7079 * var-tracking.c (var_debug_decl): Likewise.
7080 (track_expr_p): Likewise.
7081 * tree-inline.c (add_local_variables): Likewise. Set
7082 DECL_HAS_DEBUG_EXPR_P after copying it.
7083 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7084 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7085
fe04878d
UB
70862013-03-21 Uros Bizjak <ubizjak@gmail.com>
7087
7088 PR bootstrap/56656
7089 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7090 * configure: Regenerate.
7091 * config.in: Regenerate.
7092 * config/i386/i386.md (*movdf_internal): Use
7093 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7094 movd instead of movq mnemonic for interunit moves.
7095 (*movdi_internal): Ditto.
7096
bd059b26 70972013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
7098
7099 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7100 (abd<mode>_3): New pattern.
7101 (aba<mode>_3): New pattern.
7102 (fabd<mode>_3): New pattern.
7103
bd059b26 71042013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
7105
7106 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7107 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7108 occurrence of REGISTER_PREFIX as its empty string.
7109
4f1f78b9
JL
71102013-03-20 Jeff Law <law@redhat.com>
7111
7112 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7113 addititional equivalences for equality comparisons between an SSA_NAME
7114 and a constant where the SSA_NAME was set from a widening conversion.
7115
327a1118
WL
71162013-03-20 Walter Lee <walt@tilera.com>
7117
7118 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7119
813e0036
UB
71202013-03-20 Uros Bizjak <ubizjak@gmail.com>
7121
7122 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7123 depending on type attribute.
7124 (*movti_internal): Ditto.
7125 (*movtf_internal): Ditto.
7126 (*movxf_internal): Ditto.
7127 (*movdf_internal): Ditto.
7128 (*movsf_internal): Ditto.
7129
7cf34aae
UB
71302013-03-20 Uros Bizjak <ubizjak@gmail.com>
7131
7132 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7133 maybe_vex for sselog1 and ssemov types.
7134 (*movdi_internal): Reorder operand constraints.
7135 (*movsi_internal): Ditto. Set prefix attribute to
7136 maybe_vex for sselog1 and ssemov types.
7137 (*movtf_internal): Set prefix attribute to maybe_vex
7138 for sselog1 and ssemov types.
7139 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7140 DImode ssemov types. Reorder operand constraints.
7141 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7142 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7143 attribute for SImode ssemov types. Reorder operand constraints.
7144
19321415
MJ
71452013-03-20 Martin Jambor <mjambor@suse.cz>
7146
7147 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7148 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7149
c6d5ff83
MM
71502013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7151
7152 * config/rs6000/predicates.md (indexed_address, update_address_mem
7153 update_indexed_address_mem): New predicates.
7154 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7155 attribute for load/store instructions.
7156 * config/rs6000/dfp.md (movsd_store): Likewise.
7157 (movsd_load): Likewise.
7158 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7159 (unnamed HI->DI extend define_insn): Likewise.
7160 (unnamed SI->DI extend define_insn): Likewise.
7161 (unnamed QI->SI extend define_insn): Likewise.
7162 (unnamed QI->HI extend define_insn): Likewise.
7163 (unnamed HI->SI extend define_insn): Likewise.
7164 (unnamed HI->SI extend define_insn): Likewise.
7165 (extendsfdf2_fpr): Likewise.
7166 (movsi_internal1): Likewise.
7167 (movsi_internal1_single): Likewise.
7168 (movhi_internal): Likewise.
7169 (movqi_internal): Likewise.
7170 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7171 attribute for load/store instructions.
7172 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7173 instructions.
7174 (mov<mode>_softfloat): Likewise.
7175 (mov<mode>_hardfloat32): Likewise.
7176 (mov<mode>_hardfloat64): Likewise.
7177 (mov<mode>_softfloat64): Likewise.
7178 (movdi_internal32): Likewise.
7179 (movdi_internal64): Likewise.
7180 (probe_stack_<mode>): Likewise.
7181
71822013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7183
7184 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7185 floating point, and decimal floating point to reload iterator.
7186
7187 * config/rs6000/constraints.md (wl constraint): New constraints to
7188 return FLOAT_REGS if certain options are used to reduce the number
7189 of separate patterns that exist in the file.
7190 (wx constraint): Likewise.
7191 (wz constraint): Likewise.
7192
7193 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7194 -mdebug=reg, print wg, wl, wx, and wz constraints.
7195 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7196 Initialize the reload functions for 64-bit binary/decimal floating
7197 point types.
7198 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7199 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7200 create the buffer on the stack to overcome not having a 32-bit
7201 load and store.
7202 (rs6000_emit_move): Likewise.
7203 (rs6000_secondary_memory_needed_rtx): Likewise.
7204 (rs6000_alloc_sdmode_stack_slot): Likewise.
7205 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7206 via xxlxor, just like DFmode 0.0.
7207
7208 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7209 define as 1 if we are running on a power7 or newer.
7210 (enum r6000_reg_class_enum): Add new constraints.
7211
7212 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7213 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7214 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 7215 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
7216 (movsd splitter): Likewise.
7217 (movsd_hardfloat): Likewise.
7218 (movsd_softfloat): Likewise.
7219
7220 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7221 binary and decimal floating point moves.
7222 (fmove_ok): New attributes to combine binary and decimal floating
7223 point moves, and to combine power6x (mfpgpr) moves along normal
7224 floating moves.
7225 (real_value_to_target): Likewise.
7226 (f32_lr): Likewise.
7227 (f32_lm): Likewise.
7228 (f32_li): Likewise.
7229 (f32_sr): Likewise.
7230 (f32_sm): Likewise.
7231 (f32_si): Likewise.
7232 (movsf): Combine binary and decimal floating point moves. Combine
7233 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 7234 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
7235 (mov<mode> for SFmode/SDmode); Likewise.
7236 (SFmode/SDmode splitters): Likewise.
7237 (movsf_hardfloat): Likewise.
7238 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7239 (movsf_softfloat): Likewise.
7240 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7241
7242 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7243 wx and wz constraints.
7244
7245 * config/rs6000/constraints.md (wg constraint): New constraint to
7246 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7247
7248 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7249 constraint.
7250
7251 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7252 -mdebug=reg, print wg, wl, wx, and wz constraints.
7253 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7254 Initialize the reload functions for 64-bit binary/decimal floating
7255 point types.
7256 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7257 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7258 create the buffer on the stack to overcome not having a 32-bit
7259 load and store.
7260 (rs6000_emit_move): Likewise.
7261 (rs6000_secondary_memory_needed_rtx): Likewise.
7262 (rs6000_alloc_sdmode_stack_slot): Likewise.
7263 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7264 via xxlxor, just like DFmode 0.0.
7265
c6d5ff83
MM
7266 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7267 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7268 with other moves by using conditional constraits (wg). Use LFIWZX
7269 and STFIWX for loading SDmode on power7.
7270 (movdd splitters): Likewise.
7271 (movdd_hardfloat32): Likewise.
7272 (movdd_softfloat32): Likewise.
7273 (movdd_hardfloat64_mfpgpr): Likewise.
7274 (movdd_hardfloat64): Likewise.
7275 (movdd_softfloat64): Likewise.
7276
7277 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7278 64-bit binary and decimal floating point moves.
7279 (FMOVE64X): Likewise.
7280 (movdf): Combine 64-bit binary and decimal floating point moves.
7281 Combine power6x (mfpgpr) moves with other moves by using
7282 conditional constraits (wg).
7283 (mov<mode> for DFmode/DDmode): Likewise.
7284 (DFmode/DDmode splitters): Likewise.
7285 (movdf_hardfloat32): Likewise.
7286 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7287 (movdf_softfloat32): Likewise.
7288 (movdf_hardfloat64_mfpgpr): Likewise.
7289 (movdf_hardfloat64): Likewise.
7290 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7291 (movdf_softfloat64): Likewise.
7292 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7293 (reload_<mode>_load): Move to later in the file so they aren't in
7294 the middle of the floating point move insns.
7295 (reload_<mode>_store): Likewise.
7296
7297 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7298 constraint.
7299
7300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7301 constraint if -mdebug=reg.
bd059b26
UB
7302 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7303 Enable using dd reload support if needed.
c6d5ff83
MM
7304
7305 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7306 binary and decimal floating point moves in rs6000.md.
7307 (movtd_internal): Likewise.
7308
7309 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7310 decimal floating point moves.
7311 (movtf): Likewise.
7312 (movtf_internal): Likewise.
7313 (mov<mode>_internal, TDmode/TFmode): Likewise.
7314 (movtf_softfloat): Likewise.
7315 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7316
7317 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7318 movdi_internal64, using wg constraint for move direct operations.
7319 (movdi_internal64): Likewise.
7320
7321 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7322 MODES_TIEABLE_P for selected modes. Print the numerical value of
7323 the various virtual registers. Use GPR/FPR first/last values,
7324 instead of hard coding the register numbers. Print which modes
7325 have reload functions registered.
bd059b26
UB
7326 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7327 settings before/after setting cpu, target and subtarget settings.
7328 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7329 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
7330 (rs6000_secondary_reload_fail): Likewise.
7331 (rs6000_secondary_reload_inner): Likewise.
7332
7333 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7334 macros for first/last GPR and FPR registers.
7335 (LAST_GPR_REGNO): Likewise.
7336 (FIRST_FPR_REGNO): Likewise.
7337 (LAST_FPR_REGNO): Likewise.
7338
7339 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7340 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7341 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7342 (vcond<mode><mode>): Likewise.
7343 (vcondu<mode><mode>): Likewise.
7344 (vector_gtu<mode>): Likewise.
7345 (vector_gte<mode>): Likewise.
7346 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 7347 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
7348 (ior<mode>3): Likewise.
7349 (and<mode>3): Likewise.
7350 (one_cmpl<mode>2): Likewise.
7351 (nor<mode>3): Likewise.
7352 (andc<mode>3): Likewise.
7353
7354 * config/rs6000/constraints.md (wt constraint): New constraint
7355 that returns VSX_REGS if TImode is allowed in VSX registers.
7356
7357 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7358 constant under VSX.
7359
7360 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7361 similar to TImode, but it is restricted to being in the GPRs.
7362
7363 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7364 TImode to occupy a single VSX register.
7365
7366 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7367 -mvsx-timode for power7/power8.
7368 (power7 cpu): Likewise.
7369 (power8 cpu): Likewise.
7370
7371 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7372 sure that TFmode/TDmode take up two registers if they are ever
7373 allowed in the upper VSX registers.
7374 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7375 registers.
7376 (rs6000_init_hard_regno_mode_ok): Likewise.
7377 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7378 constraint. Print if LRA is turned on.
7379 (rs6000_option_override_internal): Give an error if -mvsx-timode
7380 and VSX is not enabled.
7381 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7382 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7383 to reg+offset addressing. Use PTImode when checking offset
7384 addresses for validity.
7385 (reg_offset_addressing_ok_p): Likewise.
7386 (rs6000_legitimate_offset_address_p): Likewise.
7387 (rs6000_legitimize_address): Likewise.
7388 (rs6000_legitimize_reload_address): Likewise.
7389 (rs6000_legitimate_address_p): Likewise.
7390 (rs6000_eliminate_indexed_memrefs): Likewise.
7391 (rs6000_emit_move): Likewise.
7392 (rs6000_secondary_reload): Likewise.
7393 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7394 reloads to fpr registers to continue to use reg+offset addressing,
7395 but 64-bit reloads to altivec registers need reg+reg addressing.
7396 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7397 it. Treat LO_SUM like a PLUS operation.
7398 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 7399 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
7400 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7401 registers to share a register with a smaller sized type, since VSX
7402 puts scalars in the upper 64-bits.
7403 (print_operand): Add support for PTImode.
7404 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7405 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7406 registers, but don't have arithmetic support.
7407 (rs6000_memory_move_cost): Add test for VSX.
7408 (rs6000_opt_masks): Add -mvsx-timode.
7409
7410 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7411 for TImode.
7412 (VSs): Likewise.
7413 (VSr): Use wt constraint for TImode.
7414 (VSv): Drop TImode support.
7415 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7416 (vsx_movti_64bit): Likewise.
7417 (vsx_movti_32bit): Likewise.
7418 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7419 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7420 one '?' on the appropriate output constraint. Do not allow TImode
7421 logical operations on 32-bit systems.
7422 (vsx_ior<mode>3): Likewise.
7423 (vsx_xor<mode>3): Likewise.
7424 (vsx_one_cmpl<mode>2): Likewise.
7425 (vsx_nor<mode>3): Likewise.
7426 (vsx_andc<mode>3): Likewise.
7427 (vsx_concat_<mode>): Likewise.
7428 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7429
7430 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7431 OPTION_MASK_VSX_TIMODE.
7432 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7433 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7434
7435 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7436 (TI2 iterator): New iterator for TImode, PTImode.
7437 (wd mode attribute): Add values for vector types.
bd059b26
UB
7438 (movti_string): Replace TI move operations with operations for TImode
7439 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
7440 (mov<mode>_string, TImode/PTImode): Likewise.
7441 (movti_ppc64): Likewise.
7442 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7443 (TI mode splitters): Likewise.
7444
7445 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7446 constraint.
7447
1fc5eced
MG
74482013-03-20 Marc Glisse <marc.glisse@inria.fr>
7449
7450 PR tree-optimization/56355
7451 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7452 Also handle integers with undefined overflow.
7453
22c4c869
CM
74542013-03-20 Catherine Moore <clm@codesourcery.com>
7455 Maciej W. Rozycki <macro@codesourcery.com>
7456 Tom de Vries <tom@codesourcery.com>
7457 Nathan Sidwell <nathan@codesourcery.com>
7458 Iain Sandoe <iain@codesourcery.com>
7459 Nathan Froyd <froydnj@codesourcery.com>
7460 Chao-ying Fu <fu@mips.com>
7461
7462 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 7463 Document new function attributes.
22c4c869
CM
7464 * doc/invoke.texi (minterlink-compressed, mmicromips,
7465 m14k, m14ke, m14kec): Document new options.
7466 (minterlink-mips16): Update documentation.
7467 * doc/md.texi (ZC, ZD): Document new constraints.
7468 * configure.ac (gcc_cv_as_micromips): Check if linker
7469 supports the .set micromips directive.
7470 * configure: Regenerate.
7471 * config.in: Regenerate.
7472 * config/mips/mips-tables.opt: Regenerate.
7473 * config/mips/micromips.md: New file.
7474 * constraints.md (ZC, ZD): New constraints.
7475 * config/mips/predicates.md (movep_src_register): New predicate.
7476 (movep_src_operand): New predicate.
7477 (non_volatile_mem_operand): New predicate.
7478 * config/mips/mips.md (multimem): New type.
7479 (length): Differentiate between 17-bit and 18-bit branch offsets.
7480 (MOVEP1, MOVEP2): New mode iterator.
33159866 7481 (mov_<load>l): Use ZC constraint.
22c4c869
CM
7482 (mov_<load>r): Likewise.
7483 (mov_<store>l): Likewise.
7484 (mov_<store>r): Likewise.
7485 (*branch_equality<mode>_inverted): Add microMIPS support.
7486 (*branch_equality<mode>): Likewise.
7487 (*jump_absolute): Likewise.
7488 (indirect_jump_<mode>): Likewise.
7489 (tablejump_<mode>): Likewise.
7490 (<optab>_internal): Likewise.
7491 (sibcall_internal): Likewise.
7492 (sibcall_value_internal): Likewise.
7493 (prefetch): Use constraint ZD.
7494 * config/mips/mips.opt (minterlink-compressed): New option.
7495 (minterlink-mips16): Now an alias for minterlink-compressed.
7496 (mmicromips): New option.
7497 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7498 (compare_and_swap_12): Likewise.
7499 (sync_add<mode>): Likewise.
7500 (sync_<optab>_12): Likewise.
7501 (sync_old_<optab>_12): Likewise.
7502 (sync_new_<optab>_12): Likewise.
7503 (sync_nand_12): Likewise.
7504 (sync_old_nand_12): Likewise.
7505 (sync_new_nand_12): Likewise.
7506 (sync_sub<mode>): Likewise.
7507 (sync_old_add<mode>): Likewise.
7508 (sync_old_sub<mode>): Likewise.
7509 (sync_new_add<mode>): Likewise.
7510 (sync_new_sub<mode>): Likewise.
7511 (sync_<optab><mode>): Likewise.
7512 (sync_old_<optab><mode>): Likewise.
7513 (sync_new_<optab><mode>): Likewise.
7514 (sync_nand<mode>): Likewise.
7515 (sync_old_nand<mode>): Likewise.
7516 (sync_new_nand<mode>): Likewise.
7517 (sync_lock_test_and_set<mode>): Likewise.
7518 (test_and_set_12): Likewise.
7519 (atomic_compare_and_swap<mode>): Likewise.
7520 (atomic_exchange<mode>_llsc): Likewise.
7521 (atomic_fetch_add<mode>_llsc): Likewise.
7522 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7523 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7524 (umips_save_restore_pattern_p): Likewise.
7525 (umips_load_store_pair_p): Likewise.
7526 (umips_output_load_store_pair): Likewise.
7527 (umips_movep_target_p): Likewise.
7528 (umips_12bit_offset_address_p): Likewise.
7529 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7530 (mips_base_mips16): Rename this...
7531 (mips_base_compression_flags): ...to this. Update all uses.
7532 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7533 (mips_mips16_decl_p): Delete.
7534 (mips_nomips16_decl_p): Delete.
33159866 7535 (mips_get_compress_on_flags): New function.
22c4c869
CM
7536 (mips_get_compress_off_flags): New function.
7537 (mips_get_compress_mode): New function.
7538 (mips_get_compress_on_name): New function.
7539 (mips_get_compress_off_name): New function.
7540 (mips_insert_attributes): Support multiple compression types.
7541 (mips_merge_decl_attributes): Likewise.
7542 (umips_12bit_offset_address_p): New function.
7543 (mips_start_function_definition): Emit .set micromips directive.
7544 (mips_call_may_need_jalx_p): New function.
7545 (mips_function_ok_for_sibcall): Add microMIPS support.
7546 (mips_print_operand_punctuation): Support short delay slots and
7547 compact jumps.
7548 (umips_swm_mask, umips_swm_encoding): New.
7549 (umips_build_save_restore): New function.
7550 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7551 (was_mips16_p): Remove.
7552 (old_compression_mode): New.
7553 (mips_set_compression_mode): New function.
7554 (mips_set_current_function): Add microMIPS support.
7555 (mips_option_override): Likewise.
7556 (umips_save_restore_pattern_p): New function.
7557 (umips_output_save_restore): New function.
7558 (umips_load_store_pair_p_1): New function.
7559 (umips_load_store_pair_p): New function.
7560 (umips_output_load_store_pair_1): New function.
7561 (umips_output_load_store_pair): New function.
7562 (umips_movep_target_p) New function.
7563 (mips_prepare_pch_save): Add microMIPS support.
7564 * config/mips/mips.h (TARGET_COMPRESSION): New.
7565 (TARGET_CPU_CPP_BUILTINS): Update macro
7566 to use new compression flags and to support microMIPS.
7567 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7568 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7569 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7570 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7571 (ASM_SPEC): Support mmicromips and mno-micromips.
7572 (M16STORE_REG_P): New macro.
7573 (MIPS_CALL): Support TARGET_MICROMIPS.
7574 (MICROMIPS_J): New macro.
7575 (mips_base_mips16): Rename this...
7576 (mips_base_compression_flags): ...to this.
7577 (UMIPS_12BIT_OFFSET_P): New macro.
7578 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7579 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
75802013-03-20 Richard Biener <rguenther@suse.de>
7581
7582 PR tree-optimization/56661
7583 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7584 the result does not have to be distinct.
7585
54714c68
RB
75862013-03-20 Richard Biener <rguenther@suse.de>
7587
7588 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7589 remap_gimple_op_r.
7590
cca1130d
BS
75912013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7592 Steven Bosscher <steven@gcc.gnu.org>
7593
7594 PR rtl-optimization/56605
7595 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7596
2a930377
UB
75972013-03-20 Uros Bizjak <ubizjak@gmail.com>
7598
7599 PR bootstrap/56656
7600 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7601 that require movd instead of movq.
7602
d6d305fe
RB
76032013-03-20 Richard Biener <rguenther@suse.de>
7604
7605 * tree-ssa-structalias.c (struct variable_info): Add pointer
7606 to the first field of an aggregate with sub-vars. Make
7607 this and the pointer to the next subfield its ID.
7608 (vi_next): New function.
7609 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7610 storedanything_id, integer_id): Increment by one.
7611 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7612 get_call_clobber_vi): Adjust.
7613 (solution_set_expand): Simplify and speedup.
7614 (solution_set_add): Inline into ...
7615 (set_union_with_increment): ... this. Adjust accordingly.
7616 (do_sd_constraint): Likewise.
7617 (do_ds_constraint): Likewise.
7618 (do_complex_constraint): Simplify.
7619 (build_pred_graph): Adjust.
7620 (solve_graph): Likewise. Simplify and speedup.
7621 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7622 get_constraint_for_component_ref, get_constraint_for_1,
7623 first_vi_for_offset, first_or_preceding_vi_for_offset,
7624 create_function_info_for, create_variable_info_for_1,
7625 create_variable_info_for, intra_create_variable_infos): Adjust.
7626 (init_base_vars): Push NULL for ID zero.
7627 (compute_points_to_sets): Adjust.
7628
a271b42d
RB
76292013-03-20 Richard Biener <rguenther@suse.de>
7630
7631 * cfgloop.c (verify_loop_structure): Streamline and avoid
7632 ICEing on corrupt loop tree.
7633 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7634 loop tree.
7635
ebd65954
RB
76362013-03-20 Richard Biener <rguenther@suse.de>
7637
7638 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7639 check whether an SSA update is needed.
7640
4547b7ee
RS
76412013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7642
7643 * config/mips/constraints.md (T): Rename to...
7644 (Yf): ...this.
7645 (U): Rename to...
7646 (Yd): ...this.
7647 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7648 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7649
0b8cdc58
IB
76502013-03-19 Ian Bolton <ian.bolton@arm.com>
7651
7652 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7653 (*subsi3_carryin_uxtw): Likewise.
7654
5977a10d
IB
76552013-03-19 Ian Bolton <ian.bolton@arm.com>
7656
7657 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7658 (*rorsi3_insn_uxtw): Likewise.
7659
bd83ff2c
IB
76602013-03-19 Ian Bolton <ian.bolton@arm.com>
7661
7662 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7663 (*extrsi5_insn_uxtw): Likewise.
7664
ba65123c
RB
76652013-03-19 Richard Biener <rguenther@suse.de>
7666
7667 PR tree-optimization/56273
7668 * passes.c (init_optimization_passes): Move second VRP after DOM.
7669
2eac0476
UB
76702013-03-19 Uros Bizjak <ubizjak@gmail.com>
7671
7672 * config/i386/i386.md (*movti_internal): Merge from
7673 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7674 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7675 nox64 isa attributes.
7676
6e55eda7
RB
76772013-03-18 Richard Biener <rguenther@suse.de>
7678
7679 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7680 (unite): Likewise.
7681 (merge_node_constraints): Likewise.
7682 (build_succ_graph): Likewise.
7683 (valid_graph_edge): Inline into single caller.
7684 (unify_nodes): Likewise. Use bitmap_set_bit return value
7685 and cache varinfo.
7686 (scc_visit): Fix formatting and variable use.
7687 (do_sd_constraint): Use gcc_checking_assert.
7688 (do_ds_constraint): Likewise.
7689 (do_complex_constraint): Likewise.
7690 (condense_visit): Likewise. Cleanup.
7691 (dump_pred_graph): New function.
7692 (perform_var_substitution): Dump the pred-graph before
7693 variable substitution.
7694 (find_equivalent_node): Use gcc_checking_assert.
7695 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7696
4bdd44c4
RB
76972013-03-18 Richard Biener <rguenther@suse.de>
7698
7699 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7700 Remove cond_expr_stmt_list argument and do not gimplify the
7701 built expression.
7702 (vect_loop_versioning): Adjust.
7703 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7704 Cleanup to use less temporaries.
7705 (vect_create_data_ref_ptr): Cleanup.
7706
38c56a5b
JJ
77072013-03-18 Jakub Jelinek <jakub@redhat.com>
7708
7709 PR tree-optimization/56635
7710 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7711 require types_compatible_p types.
7712
20b2e6a0
NC
77132013-03-18 Nick Clifton <nickc@redhat.com>
7714
a6178a25
NC
7715 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7716 spurious backslash.
7717
20b2e6a0
NC
7718 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7719 Add missing line to comment describing function.
7720
92608d0e
RB
77212013-03-18 Richard Biener <rguenther@suse.de>
7722
7723 PR tree-optimization/56210
7724 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7725 Handle string / character search functions.
7726 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7727
31348d52
RB
77282013-03-18 Richard Biener <rguenther@suse.de>
7729
7730 PR middle-end/56483
7731 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7732 and implement properly.
7733 * gimple.h (gimple_cond_single_var_p): Remove.
7734
fcac74a1
RB
77352013-03-18 Richard Biener <rguenther@suse.de>
7736
7737 * tree-data-ref.h (find_data_references_in_loop): Declare.
7738 * tree-data-ref.c (get_references_in_stmt): Use a stack
7739 vector pre-allocated in the callers.
7740 (find_data_references_in_stmt): Adjust.
7741 (graphite_find_data_references_in_stmt): Likewise.
7742 (create_rdg_vertices): Likewise.
7743 (find_data_references_in_loop): Export.
7744 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7745 Compute dependences here...
7746 (vect_analyze_data_refs): ...not here. When we encounter
7747 a non-vectorizable data reference in basic-block vectorization
7748 truncate the data reference vector. Do not bother to
7749 fixup data-dependence information for gather loads.
7750 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7751 of data references, as reported.
7752
0d5a1b56
RB
77532013-03-18 Richard Biener <rguenther@suse.de>
7754
7755 PR tree-optimization/3713
7756 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7757 has_constants and expr.
7758 (stmt_has_constants): Properly valueize SSA names when deciding
7759 whether the stmt has constants.
7760
789c34e3
RB
77612013-03-18 Richard Biener <rguenther@suse.de>
7762
7763 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7764 whole function when there is nothing to do.
7765 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7766 * tree-vectorizer.c (vectorize_loops): Update virtual and
7767 loop-closed SSA once.
7768 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7769
076b4605
RB
77702013-03-18 Richard Biener <rguenther@suse.de>
7771
7772 PR middle-end/56113
7773 * domwalk.c (bb_postorder): New global static.
7774 (cmp_bb_postorder): New function.
7775 (walk_dominator_tree): Replace scheme imposing an order for
7776 visiting dominator sons by one sorting them at the time they
7777 are pushed on the stack.
7778
bdb01696
RB
77792013-03-18 Richard Biener <rguenther@suse.de>
7780
7781 PR tree-optimization/39326
7782 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7783 (struct mem_ref): Replace mem member with ao_ref typed member.
7784 (MEM_ANALYZABLE): Adjust.
7785 (memref_eq): Likewise.
7786 (mem_ref_alloc): Likewise.
7787 (gather_mem_refs_stmt): Likewise.
7788 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7789 (execute_sm_if_changed_flag_set): Adjust.
7790 (execute_sm): Likewise.
7791 (ref_always_accessed_p): Likewise.
7792 (refs_independent_p): Likewise.
7793 (can_sm_ref_p): Likewise.
7794
12d2dc5e
JJ
77952013-03-18 Jakub Jelinek <jakub@redhat.com>
7796
7797 PR c/56566
7798 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7799 return 1 even for !unsignedp.
7800
286fb677
UB
78012013-03-17 Uros Bizjak <ubizjak@gmail.com>
7802
7803 * config/i386/i386.md (isa): Add x64 and nox64.
7804 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7805 (*pushtf): Enable *roF alternative for x64 isa only.
7806 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7807 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7808 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7809 (*movtf_internal): Merge from *movtf_internal_rex64 and
7810 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7811 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7812 nox64 isa attributes.
7813 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7814 nox64 isa attributes.
7815 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7816
88b97037
UB
78172013-03-17 Uros Bizjak <ubizjak@gmail.com>
7818
7819 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7820
9f4f1735
JJ
78212013-03-17 Jakub Jelinek <jakub@redhat.com>
7822
7823 PR target/56640
7824 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7825 class names. Remove trailing comma after "ALL_REGS".
7826
48f4a6fa
JH
78272013-03-16 Jan Hubicka <jh@suse.cz>
7828
7829 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7830 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7831 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7832 of cgraph_get_create_node.
7833 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7834
98e81123
JM
78352013-03-16 Jason Merrill <jason@redhat.com>
7836
7837 PR debug/49090
7838 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7839 with DW_AT_default_value.
7840
8a298c04
JJ
78412013-03-16 Jakub Jelinek <jakub@redhat.com>
7842
7843 * BASE-VER: Set to 4.9.0.
7844
4323afa0
AK
78452013-03-14 Andi Kleen <ak@linux.intel.com>
7846
7847 PR target/56619
7848 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7849 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7850 Document _x* TSX intrinsics.
7851
b3c0d469
JJ
78522013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7853 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
7854
7855 * configure.ac: Add MicroBlaze TLS support detection.
7856 * configure: Regenerate.
88b97037
UB
7857 * config/microblaze/microblaze-protos.h
7858 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7859 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7860 * config/microblaze/microblaze.c (microblaze_address_type): Add
7861 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
7862 (microblaze_address_info): Add tls_reloc.
7863 (TARGET_HAVE_TLS): Define.
7864 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7865 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
7866 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7867 load_tls_operand, microblaze_call_tls_get_addr,
7868 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
7869 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7870 (get_base_reg): Use microblaze_tls_symbol_p.
7871 (microblaze_classify_address): Handle TLS.
88b97037
UB
7872 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7873 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
7874 (microblaze_legitimize_address): Handle TLS.
7875 (microblaze_address_insns): Handle ADDRESS_TLS.
7876 (pic_address_needs_scratch): Handle TLS.
7877 (print_operand_address): Handle TLS.
7878 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7879 (microblaze_expand_move): Handle TLS.
88b97037
UB
7880 (microblaze_legitimate_constant_p): Check
7881 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
7882 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7883 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7884 (PIC_OFFSET_TABLE_REGNUM): Set.
7885 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7886 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7887 (addsi3, movsi_internal2, movdf_internal): Update constraints
7888 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
7889 (move_operand): Redefine as move_src_operand,
7890 check microblaze_tls_referenced_p.
8cc9a5a5 7891
d803a491
IB
78922013-03-14 Ian Bolton <ian.bolton@arm.com>
7893
7894 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7895 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7896
a8504f22
IB
78972013-03-14 Ian Bolton <ian.bolton@arm.com>
7898
7899 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7900 CC mode for AND.
7901
df2dfaea
JJ
79022013-03-14 Jakub Jelinek <jakub@redhat.com>
7903
fbd28bc3
JJ
7904 PR tree-optimization/53265
7905 * common.opt (Waggressive-loop-optimizations): New option.
7906 * tree-ssa-loop-niter.c: Include tree-pass.h.
7907 (do_warn_aggressive_loop_optimizations): New function.
7908 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7909 if number_of_latch_executions returned constant.
7910 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7911 early. If number_of_latch_executions returned constant, set
7912 nb_iterations_upper_bound back to it.
7913 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7914 field.
7915 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7916 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7917
df2dfaea
JJ
7918 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7919 (MULTILIB_OSDIRNAMES): Set.
7920 * genmultilib: If defaultosdirname doesn't start with :: , set
7921 defaultosdirname2 instead, clear it and emit two . multilib_raw
7922 entries instead of just one.
7923
ee0d2b68
KK
79242013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7925
7926 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7927 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7928 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7929 (SUBTARGET_OVERRIDE_OPTIONS): New.
7930
decc676e
OE
79312013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7932
7933 PR target/49880
7934 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7935 (musermode): Convert to Var(TARGET_USERMODE).
7936 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7937 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7938 * config/sh/sh.c (sh_option_override): Use
7939 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7940 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7941 condition.
7942 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7943 TARGET_SH4.
7944 (udivsi3_i4_single, divsi3_i4_single): Use
7945 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7946
f4b719c7
DK
79472013-03-13 Dave Korn <dave.korn.cygwin@....>
7948
7949 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7950 default setting.
7951
c40eced0
RB
79522013-03-13 Richard Biener <rguenther@suse.de>
7953
7954 PR tree-optimization/56608
7955 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7956 calls when vectorizing basic-blocks.
7957
1bfa5973
JJ
79582013-03-13 Jakub Jelinek <jakub@redhat.com>
7959
7960 PR plugins/45078
7961 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7962 tm_file.
7963
6fcf5434
JJ
79642013-03-12 Jakub Jelinek <jakub@redhat.com>
7965
7966 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7967
4f38fa8c
JH
79682013-03-11 Jan Hubicka <jh@suse.cz>
7969
7970 PR lto/56557
7971 * lto-streamer-out.c (output_symbol_p): Skip references from
7972 constructors of external variables.
7973
c5c5ba89
JH
79742013-03-11 Jan Hubicka <jh@suse.cz>
7975
7976 PR middle-end/56571
7977 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7978 from pseudos.
7979 * emit-rtl.c (verify_rtx_sharing): Likewise.
7980 (copy_insn_1): Likewise.
7981 * rtl.c (copy_rtx): Likewise.
7982
c2a939b1
GJL
79832013-03-11 Georg-Johann Lay <avr@gjlay.de>
7984
7985 PR target/56591
7986 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7987 output_operand_lossage message.
88b97037 7988
3c3279fb
RE
79892013-03-11 Richard Earnshaw <rearnsha@arm.com>
7990
7991 PR target/56470
7992 * arm.c (shift_op): Validate RTL pattern on the fly.
7993 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7994 the RTL.
7995
aef5ef9d
JDA
79962013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7997
7998 PR target/56347
7999 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8000 new call patterns that clobber %fr12.
8001 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8002 split and postreload patterns.
8003 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8004 registers %fr12 and %fr12R as call used.
8005
456610d3
SB
80062013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8007
8008 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8009 (canon_address, record_store, replace_read, check_mem_read_rtx,
8010 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8011 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8012 rest_of_handle_dse): Likewise.
8013
4b1baac8
RS
80142013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8015
8016 PR middle-end/56524
8017 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8018 Add base_optabs.
8019 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8020 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8021 (save_optabs_if_changed): Replace with...
8022 (init_tree_optimization_optabs): ...this.
8023 * optabs.c (save_optabs_if_changed): Rename to...
8024 (init_tree_optimization_optabs): ...this. Take the optimization node
8025 as argument. Do nothing if the base optabs are already correct.
8026 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8027 to recompute optabs.
8028 * function.h (function): Remove optabs field.
8029 * function.c (invoke_set_current_function_hook): Call
8030 init_tree_optimization_optabs. Use the result to initialize
8031 this_fn_optabs.
8032
b7a78683
AH
80332013-02-27 Aldy Hernandez <aldyh@redhat.com>
8034
8035 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8036 if GTMA_HAS_NO_INSTRUMENTATION.
8037 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8038 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8039 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8040 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8041 GTMA_HAS_NO_INSTRUMENTATION.
8042
6384c29b
JJ
80432013-03-08 Jakub Jelinek <jakub@redhat.com>
8044
8045 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8046 libasan_preinit.o.
8047
ecd4f20a
MP
80482013-03-08 Marek Polacek <polacek@redhat.com>
8049 Jakub Jelinek <jakub@redhat.com>
8050
8051 PR tree-optimization/56478
8052 * predict.c (is_comparison_with_loop_invariant_p): Change the
8053 type of loop_step to tree.
8054 (predict_loops): Adjust.
8055 (predict_iv_comparison): Perform the computations on double_ints.
8056
64366d35
RB
80572013-03-08 Richard Biener <rguenther@suse.de>
8058
8059 PR tree-optimization/56570
8060 * tree-cfg.c (verify_expr_location_1): Verify locations for
8061 DECL_DEBUG_EXPR.
8062 * tree-sra.c (create_access_replacement): Strip locations
8063 from DECL_DEBUG_EXPRs.
8064
a9d5a059
RB
80652013-03-08 Richard Biener <rguenther@suse.de>
8066
8067 * tree-inline.c (expand_call_inline): Do not associate
8068 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8069 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8070
b7aa4e9a
RB
80712013-03-08 Richard Biener <rguenther@suse.de>
8072
8073 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8074 or block changes with -Og. Fix for location / block encoding
8075 changes and PHI arguments with locations.
8076
c4c2f9fa
SB
80772013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8078
8079 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8080 for all counters.
8081 (struct output_info): Likewise.
8082 (register_overhead): Remove bad gcc_assert.
8083 (bitmap_find_bit): If there is only a single bitmap element, do not
8084 count a miss as a search.
8085 (print_statistics): Update for counter type changes.
8086 (dump_bitmap_statistics): Likewise. Print headers such that they
8087 are properly lined up with the printed counters.
8088
5bf6606a
JJ
80892013-03-07 Jakub Jelinek <jakub@redhat.com>
8090
8091 PR tree-optimization/56559
8092 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8093 check that it has only a single use.
8094
2c653d46
RB
80952013-03-07 Richard Biener <rguenther@suse.de>
8096
8097 * doc/invoke.texi (fwhole-program): Discourage use in combination
8098 with -flto.
8099
a72d8780
JJ
81002013-03-06 Jakub Jelinek <jakub@redhat.com>
8101
01a454df
JJ
8102 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8103
c1781047
JJ
8104 PR tree-optimization/56539
8105 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8106 instead of GSI_CONTINUE_LINKING as last argument to
8107 force_gimple_operand_gsi. Adjust function comment.
8108
9772c47a
JJ
8109 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8110 aarch64-cores.def.
8111
a72d8780
JJ
8112 PR middle-end/56548
8113 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8114 promoted mode, convert the result back to the original mode.
8115
fa5556de
RB
81162013-03-06 Richard Biener <rguenther@suse.de>
8117
8118 PR middle-end/56294
8119 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8120 (insert_updated_phi_nodes_compare_uids): New function.
8121 (update_ssa): Sort symbols_to_rename after UID before
8122 traversing it to insert PHI nodes.
8123
010403d1
RB
81242013-03-06 Richard Biener <rguenther@suse.de>
8125
8126 PR middle-end/50494
8127 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8128 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8129
8130 Revert
8131 2013-02-13 Richard Biener <rguenther@suse.de>
8132
8133 PR lto/50494
8134 * varasm.c (output_constant_def_1): Get the decl representing
8135 the constant as argument.
8136 (output_constant_def): Wrap output_constant_def_1.
8137 (make_decl_rtl): Use output_constant_def_1 with the decl
8138 representing the constant.
8139 (build_constant_desc): Optionally re-use a decl already
8140 representing the constant.
8141 (tree_output_constant_def): Adjust.
8142
3c27ce4c
JY
81432013-03-06 Joey Ye <joey.ye@arm.com>
8144
8145 PR lto/50293
8146 * gcc.c (convert_white_space): New function.
8147 (main): Handles white space in function name.
8148
8f6d1c86
OE
81492013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8150
8151 PR target/56529
8152 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8153 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8154 to SH_DIV_CALL_TABLE for TARGET_SH2.
8155 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8156 list.
8157 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8158 call-table options.
8159
798a209f
SA
81602013-03-05 Sterling Augustine <saugustine@google.com>
8161 Cary Coutant <ccoutant@google.com>
8162
8163 PR debug/55364
8164 * dwarf2out.c (resolve_addr): Don't call
8165 remove_loc_list_addr_table_entries a second time for the same
8166 expression.
8167
6cfa417f 81682013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 8169
6cfa417f
JJ
8170 PR debug/56510
8171 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8172 (avoid_complex_debug_insns): New function.
8173 (expand_debug_locations): Call it.
8174
8175 PR rtl-optimization/56484
8176 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8177 lifetimes of hard registers on small register class machines.
8178
81792013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8180
8181 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 8182 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 8183 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
8184 fast_interrupt.
8185 (microblaze_fast_interrupt_function_p): New function.
8186 (microblaze_is_interrupt_handler): Rename to
8187 microblaze_is_interrupt_variant and add fast_interrupt check.
8188 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8189 (save_restore_insns): Likewise.
8190 (compute_frame_size): Likewise.
8191 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8192 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
8193 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8194 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
8195 microblaze_is_interrupt_variant.
8196
731aefac
KT
81972013-03-05 Kai Tietz <ktietz@redhat.com>
8198
8199 * sdbout.c (sdbout_one_type): Switch to current function's section
8200 supporting cold/hot.
8201
a72d8780 82022013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
8203
8204 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8205 -mxl-reorder.
8206
334e71e8
JJ
82072013-03-05 Jakub Jelinek <jakub@redhat.com>
8208
0b50e654
JJ
8209 PR middle-end/56461
8210 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8211 if VALGRIND_GET_VBITS is defined, temporarily make object
8212 memory all defined, and restore previous valgrind addressability
8213 and definability afterwards. Free this_object at the end.
8214
4ccf8f43
JJ
8215 PR middle-end/56461
8216 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8217 right before calling lra_create_live_ranges, also call it
8218 when clearing live_p. Only call lra_clear_live_ranges
8219 at the end if live_p.
8220
334e71e8
JJ
8221 PR middle-end/56461
8222 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8223
9ca966ca
RB
82242013-03-05 Richard Biener <rguenther@suse.de>
8225
8226 PR tree-optimization/56521
8227 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8228 value-id.
8229
d273b176
SB
82302013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8231
8232 PR c++/55135
8233 * except.h (remove_unreachable_eh_regions): New prototype.
8234 * except.c (remove_eh_handler_splicer): New function, split out
8235 of remove_eh_handler.
8236 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8237 warning about running it on many EH regions one at a time.
8238 (remove_unreachable_eh_regions_worker): New function, walk the
8239 EH tree in depth-first order and remove non-marked regions.
8240 (remove_unreachable_eh_regions): New function.
8241 * tree-eh.c (mark_reachable_handlers): New function, split out
8242 from remove_unreachable_handlers.
8243 (remove_unreachable_handlers): Use mark_reachable_handlers and
8244 remove_unreachable_eh_regions.
8245 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8246 and remove_unreachable_eh_regions.
8247
5e7f1aef
RB
82482013-03-05 Richard Biener <rguenther@suse.de>
8249
8250 PR middle-end/56525
8251 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8252 not freeing them until the end.
8253
f276b762
AK
82542013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8255
8256 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8257
12a43ab8
RB
82582013-03-05 Richard Biener <rguenther@suse.de>
8259
8260 PR tree-optimization/56270
8261 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8262 of loads after scheduling an SLP instance.
8263
93675444
JJ
82642013-03-05 Jakub Jelinek <jakub@redhat.com>
8265
db4138e3
JJ
8266 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8267 tic6x.exp.
8268 (check_gcc_parallelize): Run guality.exp as a separate job from
8269 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8270 struct-layout-1.exp with stackalign.exp.
8271
dd3d1ec0
JJ
8272 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8273
b8d381a3
JJ
8274 PR middle-end/56461
8275 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8276 load_index sbitmap even if some bit in it isn't set.
8277
b4f9786b
JJ
8278 PR middle-end/56461
8279 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8280 (discover_iteration_bound_by_body_walk): Change queues to
8281 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8282 spelling in comment. Call safe_push on queues[bound_index] directly.
8283 Release queues[queue_index] in every iteration unconditionally.
8284 Release bounds vector.
8285
93675444
JJ
8286 PR middle-end/56461
8287 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8288 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8289 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8290 inner_phis vector.
8291
3e492e9c
RB
82922013-03-05 Richard Biener <rguenther@suse.de>
8293
8294 PR lto/56515
8295 * tree-inline.c (remap_blocks_to_null): New function.
8296 (expand_call_inline): When expanding a call stmt without
8297 an associated block inline remap all callee blocks to NULL.
8298
a5d1569a
JJ
82992013-03-05 Jakub Jelinek <jakub@redhat.com>
8300
86efb5cd
JJ
8301 PR rtl-optimization/56494
8302 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8303 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8304 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8305
85f5dbea
JJ
8306 PR middle-end/56461
8307 * sel-sched-ir.c (free_sched_pools): Release
8308 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8309 if succs_info_pool.max_top isn't -1.
8310
a5d1569a
JJ
8311 PR bootstrap/56509
8312 * opts.c (opts_obstack, opts_concat): Moved to...
8313 * opts-common.c (opts_obstack, opts_concat): ... here.
8314
4432aa6c
JJ
83152013-03-04 Jakub Jelinek <jakub@redhat.com>
8316
8317 PR middle-end/56461
8318 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8319
f3a1fb91
MJ
83202013-03-04 Martin Jambor <mjambor@suse.cz>
8321
8322 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8323 all appropriate places.
8324
22110e6c
EB
83252013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8326
8327 PR tree-optimization/56424
8328 * ipa-split.c (split_function): Do not set the RSO flag if result is
8329 not by reference and its type is a register type.
8330
a72d8780 83312013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 8332
88b97037 8333 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 8334 (microblaze_legitimate_pic_operand): Likewise
88b97037 8335 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
8336 new function microblaze_legitimate_pic_operand
8337 * config/microblaze/microblaze-protos.h
8338 (microblaze_legitimate_pic_operand): Declare.
8339
a72d8780 83402013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 8341
a72d8780 8342 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 8343 New predicate for supported rtx code types.
a72d8780 8344 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
8345 call_insn_simple_operand predicate.
8346
541d9ac8
JJ
83472013-03-04 Jakub Jelinek <jakub@redhat.com>
8348
5eb010bc
JJ
8349 PR middle-end/56461
8350 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8351 partitions.ordered_remove.
8352
30862efc
JJ
8353 PR middle-end/56461
8354 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8355 vec_oprnds0.create (1) for modifier == NONE.
8356
8930f723
JJ
8357 PR middle-end/56461
8358 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8359 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8360 vec_oprnds1 right before pushing anything to it for
8361 scalar_shift_arg.
8362
541d9ac8
JJ
8363 PR middle-end/56461
8364 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8365 set nbbs to 0 instead of having separate code path.
8366 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8367 instead of false as last argument if returning NULL.
8368
7aa7f2e3
SL
83692013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8370
8371 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8372 the attribute is now called "target" instead of "option".
8373 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8374 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8375 attribute/pragma name for TARGET_OPTION_VALID_P and
8376 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8377 * doc/tm.texi: Regenerated.
8378
8930f723 83792013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 8380
8930f723 8381 * config/microblaze/microblaze.c:
cb8a1637 8382 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
8383 * config/microblaze/microblaze.h: Add -mxl-reorder to
8384 DRIVER_SELF_SPECS.
8385 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8386 instructions emitted if TARGET_REORDER.
88b97037
UB
8387 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8388 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 8389 separately.
cb8a1637 8390
4dc1d68c
XDL
83912013-03-01 Xinliang David Li <davidxl@google.com>
8392
8393 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8394 walk length.
8395
689eaba3
JJ
83962013-03-01 Jakub Jelinek <jakub@redhat.com>
8397
9d676bf6
JJ
8398 PR middle-end/56461
8399 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8400 vector even when returning true. Fix up function comment formatting.
8401
caff7edf
JJ
8402 PR middle-end/56461
8403 * ira-build.c (ira_loop_nodes_count): New variable.
8404 (create_loop_tree_nodes): Initialize it.
8405 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8406
b6b9227d
JJ
8407 PR middle-end/56461
8408 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8409 method on dr_chain and result_chain.
8410 * tree-vect-stmts.c (vectorizable_store): Only call
8411 result_chain.create if j == 0.
8412
689eaba3
JJ
8413 PR middle-end/56461
8414 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8415 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8416 before overwriting it.
8417
40bf31ed
TB
84182013-03-01 Tobias Burnus <burnus@net-b.de>
8419
8420 * doc/extended.texi (C Extensions): Change order in @menu
8421 to match @node.
8422 (Other MIPS Built-in Functions): Move last MIPS entry before
8423 "picoChip Built-in Functions".
8424 (SH Built-in Functions): Move after RX Built-in Functions.
8425 * doc/gcc.texi (Introduction): Change order in @menu
8426 to match @node.
8427 * doc/md.texi (Constraints): Ditto.
8428 * gty.texi (Type Information): Ditto.
8429 (User-provided marking routines for template types): Make
8430 subsection.
8431 * doc/invoke.texi (AArch64 Options): Move before
8432 "Adapteva Epiphany Options".
8433
e664c61c
KS
84342013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8435 Jakub Jelinek <jakub@redhat.com>
8436
8437 PR sanitizer/56454
8438 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8439 no_address_safety_analysis attribute.
8440 * doc/extend.texi (no_address_safety_attribute): Rename to
8441 no_sanitize_address attribute, mention no_address_safety_analysis
8442 attribute as deprecated alias.
8443
37b5ec8f
JJ
84442013-02-28 Jakub Jelinek <jakub@redhat.com>
8445
8446 PR middle-end/56461
8447 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8448 type to vec<vec<tree> > *.
8449 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8450 to be vec<tree> instead of vec<tree> *, set vec_defs
8451 to vNULL and call vec_defs.create (number_of_vects), adjust other
8452 uses of vec_defs.
8453 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8454 vectorizable_condition): Adjust vect_get_slp_defs callers.
8455
ba96cdfb
JG
84562013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8457
8458 * config/aarch64/aarch64.c
8459 (aarch64_float_const_representable): Remove unused variable.
8460
6f549691
JG
84612013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8462
8463 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8464
af55e82d
JG
84652013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8466
8467 * config/aarch64/aarch64-builtins.c
8468 (aarch64_init_simd_builtins): Make static.
8469
1df3f464
JG
84702013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8471
8472 * config/aarch64/aarch64.c
8473 (aarch64_simd_make_constant): Make static.
8474
f8f42513
MJ
84752013-02-28 Martin Jambor <mjambor@suse.cz>
8476
8477 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8478 with no initialization to the RHS of debug statements.
8479
b48b3fc4
MJ
84802013-02-28 Martin Jambor <mjambor@suse.cz>
8481
8482 PR tree-optimization/56294
8483 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8484 Adjust dumping.
8485 (get_access_replacement): Do not call create_access_replacement.
8486 Assert a replacement exists.
8487 (get_repl_default_def_ssa_name): Create the replacement declaration
8488 itself.
8489
c3ae224c
RR
84902013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8491
8492 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8493 final_end_function.
8494
45fa0eef
MP
84952013-02-28 Marek Polacek <polacek@redhat.com>
8496
8497 PR rtl-optimization/56466
8498 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8499 if we're changing a loop.
8500 (peel_loops_completely): Likewise.
8501
502c067d
PC
85022013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8503
8504 PR c++/55813
8505 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8506
ff24afc8
GJL
85072013-02-28 Georg-Johann Lay <avr@gjlay.de>
8508
8509 PR target/56445
8510 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8511 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8512 INTX_FTYPE_FX, FX_FTYPE_INTX.
8513 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8514
c7b1fc1b
GJL
85152013-02-28 Georg-Johann Lay <avr@gjlay.de>
8516
8517 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8518 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8519 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8520 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8521 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8522 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8523 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8524 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8525 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8526 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8527 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8528 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8529 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8530 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8531 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8532 (avrxmega6): Increase max flash segments from 5 to 6.
8533 * config/avr/t-multilib: Regenerate.
8534 * config/avr/avr-tables.opt: Regenerate.
8535 * doc/avr-mmcu.texi: Regenerate.
8536
4a0e3cfe
GJL
85372013-02-28 Georg-Johann Lay <avr@gjlay.de>
8538
8539 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8540 (avr_device_to_arch): Rename to avr_device_to_ld.
8541 (avr_device_to_as): New prototype.
8542 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8543 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8544 * config/avr/driver-avr.c (avr_device_to_as): New.
8545 (avr_device_to_arch): Rename to avr_device_to_ld.
8546
97785e52
JJ
85472013-02-27 Jakub Jelinek <jakub@redhat.com>
8548
3f292312
JJ
8549 PR middle-end/56461
8550 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8551 method on dr_chain and result_chain.
8552
a344216b
JJ
8553 PR middle-end/56461
8554 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8555 pointer_set_destroy on not_executed_last_iteration.
8556
f121ad02 8557 PR middle-end/56461
88b97037 8558 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 8559
307f83a3
JJ
8560 PR middle-end/56461
8561 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8562 FOR_EACH_DEFINED_FUNCTION when freeing state.
8563
e19624ee
JJ
8564 PR middle-end/56461
8565 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8566 pool_free.
8567 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8568 overwriting it.
8569
90e709fd
JJ
8570 PR middle-end/56461
8571 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8572 known_aggs[i].items and release known_aggs vector.
8573
97785e52
JJ
8574 PR middle-end/56461
8575 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8576
85772013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 8578
97785e52
JJ
8579 * config/microblaze/microblaze.c (microblaze_emit_compare):
8580 Use xor for EQ/NE comparisions.
8581 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8582 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 8583
6fa5e0ed
JJ
85842013-02-27 Jakub Jelinek <jakub@redhat.com>
8585
8586 PR middle-end/56461
8587 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8588 vector.
8589 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8590 vec_safe_push, always update *slot.
8591 (redirect_edge_var_map_clear): Use vec_free.
8592 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8593 (free_var_map_entry): Use vec_free.
8594 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8595 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8596
436a956a
AB
85972013-02-27 Andrey Belevantsev <abel@ispras.ru>
8598
8599 PR middle-end/45472
436a956a
AB
8600 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8601 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
8602 Reorder tests for speculativeness in the logical and operator.
8603
f5c2caca
JJ
86042013-02-27 Jakub Jelinek <jakub@redhat.com>
8605
0fcb564b
JJ
8606 * incpath.c (add_standard_paths): Use reconcat instead of concat
8607 where appropriate and avoid leaking memory.
8608
dc357798
JJ
8609 * opts.h: Include obstack.h.
8610 (opts_concat): New prototype.
8611 (opts_obstack): New declaration.
8612 * opts.c (opts_concat): New function.
8613 (opts_obstack): New variable.
8614 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8615 (finish_options): Use opts_concat instead of concat
8616 and XOBNEWVEC instead of XNEWVEC.
8617 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8618 generate_option): Likewise.
8619 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8620 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8621
f5c2caca
JJ
8622 PR target/56455
8623 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8624 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8625
d0163673
JJ
86262013-02-26 Jakub Jelinek <jakub@redhat.com>
8627
8628 PR middle-end/56461
8629 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8630
b5ad2b8e
JR
86312013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8632
8633 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8634 (arm_block_move_unaligned_straight): Likewise.
8635 (arm_adjust_block_mem): Likewise.
8636
9b639e2c
JR
86372013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8638
8639 PR target/48901
8640 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8641 temp, cond and label.
8642 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8643
e13a0ccb
JR
8644 PR target/52500
8645 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8646 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8647
fbe4f171
JR
8648 PR target/52501
8649 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8650 of prologue/epilogue functions.
8651
ae006543
JR
8652 PR target/52550
8653 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8654 Remove unused variable cfa_offset.
8655 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8656
c81369fa
JR
8657 PR target/54639
8658 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8659 type promotion to unsigned.
8660
f8a8fea7
JR
8661 PR target/54640
8662 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8663 for HOST_WIDE_INT of 32 bit / same size as int.
8664 (arm_block_move_unaligned_straight): Likewise.
8665 (arm_adjust_block_mem): Likewise.
8666
f8be5169
JR
8667 PR target/54662
8668 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8669 ALL_CFLAGS.
8670
f1ad3354
MP
86712013-02-26 Marek Polacek <polacek@redhat.com>
8672
8673 PR tree-optimization/56426
88b97037 8674 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 8675
a6af0f42
RB
86762013-02-26 Richard Biener <rguenther@suse.de>
8677
8678 PR target/56444
8679 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8680 unused variable loops.
8681
aca43c6c
JJ
86822013-02-26 Jakub Jelinek <jakub@redhat.com>
8683
cecbe5d9
JJ
8684 PR tree-optimization/56448
8685 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8686 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8687 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8688 later operands of the references, or even first operand for
8689 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8690
aca43c6c
JJ
8691 PR tree-optimization/56443
8692 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8693 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8694 to type_for_mode langhook.
8695
53e2e141
MT
86962013-02-25 Matt Turner <mattst88@gmail.com>
8697
8698 * doc/invoke.texi: Document r4700.
8699
259ee451
RB
87002013-02-25 Richard Biener <rguenther@suse.de>
8701
8702 PR tree-optimization/56175
8703 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8704 split out from ...
8705 (simplify_bitwise_binary): ... here. Also guard the conversion
8706 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8707
6d65e8f1
CM
87082013-02-25 Catherine Moore <clm@codesourcery.com>
8709
8710 Revert:
8711 2013-02-24 Catherine Moore <clm@codesourcery.com>
8712 Maciej W. Rozycki <macro@codesourcery.com>
8713 Tom de Vries <tom@codesourcery.com>
a72d8780 8714 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
8715 Iain Sandoe <iain@codesourcery.com>
8716 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8717 Chao-ying Fu <fu@mips.com>
88b97037 8718
6d65e8f1 8719 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8720 Document new function attributes.
6d65e8f1
CM
8721 * doc/invoke.texi (minterlink-compressed, mmicromips,
8722 m14k, m14ke, m14kec): Document new options.
8723 (minterlink-mips16): Update documentation.
8724 * doc/md.texi (ZC, ZD): Document new constraints.
8725 * configure.ac (gcc_cv_as_micromips): Check if linker
8726 supports the .set micromips directive.
8727 * configure: Regenerate.
8728 * config.in: Regenerate.
8729 * config/mips/mips-tables.opt: Regenerate.
8730 * config/mips/micromips.md: New file.
8731 * constraints.md (ZC, AD): New constraints.
8732 * config/mips/predicates.md (movep_src_register): New predicate.
8733 (movep_src_operand): New predicate.
8734 (non_volatile_mem_operand): New predicate.
8735 * config/mips/mips.md (multimem): New type.
8736 (length): Differentiate between 17-bit and 18-bit branch offsets.
8737 (MOVEP1, MOVEP2): New mode iterator.
8738 (mov_<load>l): Use ZC constraint.
8739 (mov_<load>r): Likewise.
8740 (mov_<store>l): Likewise.
8741 (mov_<store>r): Likewise.
8742 (*branch_equality<mode>_inverted): Add microMIPS support.
8743 (*branch_equality<mode>): Likewise.
8744 (*jump_absolute): Likewise.
8745 (indirect_jump_<mode>): Likewise.
8746 (tablejump_<mode>): Likewise.
8747 (<optab>_internal): Likewise.
8748 (sibcall_internal): Likewise.
8749 (sibcall_value_internal): Likewise.
8750 (prefetch): Use constraint ZD.
8751 * config/mips/mips.opt (minterlink-compressed): New option.
8752 (minterlink-mips16): Now an alias for minterlink-compressed.
8753 (mmicromips): New option.
8754 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8755 (compare_and_swap_12): Likewise.
8756 (sync_add<mode>): Likewise.
8757 (sync_<optab>_12): Likewise.
8758 (sync_old_<optab>_12): Likewise.
8759 (sync_new_<optab>_12): Likewise.
8760 (sync_nand_12): Likewise.
8761 (sync_old_nand_12): Likewise.
8762 (sync_new_nand_12): Likewise.
8763 (sync_sub<mode>): Likewise.
8764 (sync_old_add<mode>): Likewise.
8765 (sync_old_sub<mode>): Likewise.
8766 (sync_new_add<mode>): Likewise.
8767 (sync_new_sub<mode>): Likewise.
8768 (sync_<optab><mode>): Likewise.
8769 (sync_old_<optab><mode>): Likewise.
8770 (sync_new_<optab><mode>): Likewise.
8771 (sync_nand<mode>): Likewise.
8772 (sync_old_nand<mode>): Likewise.
8773 (sync_new_nand<mode>): Likewise.
8774 (sync_lock_test_and_set<mode>): Likewise.
8775 (test_and_set_12): Likewise.
8776 (atomic_compare_and_swap<mode>): Likewise.
8777 (atomic_exchange<mode>_llsc): Likewise.
8778 (atomic_fetch_add<mode>_llsc): Likewise.
8779 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8780 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8781 (umips_save_restore_pattern_p): Likewise.
8782 (umips_load_store_pair_p): Likewise.
8783 (umips_output_load_store_pair): Likewise.
8784 (umips_movep_target_p): Likewise.
8785 (umips_12bit_offset_address_p): Likewise.
8786 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8787 (mips_base_mips16): Rename this...
8788 (mips_base_compression_flags): ...to this. Update all uses.
8789 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8790 (mips_mips16_decl_p): Delete.
8791 (mips_nomips16_decl_p): Delete.
8792 (mips_get_compress_on_flags): New function.
8793 (mips_get_compress_off_flags): New function.
8794 (mips_get_compress_mode): New function.
8795 (mips_get_compress_on_name): New function.
8796 (mips_get_compress_off_name): New function.
8797 (mips_insert_attributes): Support multiple compression types.
8798 (mips_merge_decl_attributes): Likewise.
8799 (umips_12bit_offset_address_p): New function.
8800 (mips_start_function_definition): Emit .set micromips directive.
8801 (mips_call_may_need_jalx_p): New function.
8802 (mips_function_ok_for_sibcall): Add microMIPS support.
8803 (mips_print_operand_punctuation): Support short delay slots and
8804 compact jumps.
8805 (umips_swm_mask, umips_swm_encoding): New.
8806 (umips_build_save_restore): New function.
8807 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8808 (was_mips16_p): Remove.
8809 (old_compression_mode): New.
8810 (mips_set_compression_mode): New function.
8811 (mips_set_current_function): Add microMIPS support.
8812 (mips_option_override): Likewise.
8813 (umips_save_restore_pattern_p): New function.
8814 (umips_output_save_restore): New function.
8815 (umips_load_store_pair_p_1): New function.
8816 (umips_load_store_pair_p): New function.
8817 (umips_output_load_store_pair_1): New function.
8818 (umips_output_load_store_pair): New function.
8819 (umips_movep_target_p) New function.
8820 (mips_prepare_pch_save): Add microMIPS support.
8821 * config/mips/mips.h (TARGET_COMPRESSION): New.
8822 (TARGET_CPU_CPP_BUILTINS): Update macro
8823 to use new compression flags and to support microMIPS.
8824 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8825 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8826 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8827 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8828 (ASM_SPEC): Support mmicromips and mno-micromips.
8829 (M16STORE_REG_P): New macro.
8830 (MIPS_CALL): Support TARGET_MICROMIPS.
8831 (MICROMIPS_J): New macro.
8832 (mips_base_mips16): Rename this...
8833 (mips_base_compression_flags): ...to this.
8834 (UMIPS_12BIT_OFFSET_P): New macro.
8835 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8836 (MULTILIB_DIRNAMES): Likewise.
8837
5e5df392
TV
88382013-02-25 Tom de Vries <tom@codesourcery.com>
8839
8840 PR rtl-optimization/56131
8841 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8842 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8843 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8844
3fdb53c1
TB
88452013-02-25 Tobias Burnus <burnus@net-b.de>
8846
8847 * doc/invoke.texi (-fsanitize=): Move from optimization
8848 to debugging options.
8849
ed358aea
AB
88502013-02-25 Andrey Belevantsev <abel@ispras.ru>
8851
8852 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8853
f45e9053
AB
88542013-02-25 Andrey Belevantsev <abel@ispras.ru>
8855 Alexander Monakov <amonakov@ispras.ru>
8856
8857 PR middle-end/56077
8858 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8859 flush pending lists also on non-jumps. Adjust comment.
8860
6941b508
CM
88612013-02-24 Catherine Moore <clm@codesourcery.com>
8862 Maciej W. Rozycki <macro@codesourcery.com>
8863 Tom de Vries <tom@codesourcery.com>
a72d8780 8864 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
8865 Iain Sandoe <iain@codesourcery.com>
8866 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8867 Chao-ying Fu <fu@mips.com>
6941b508
CM
8868
8869 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8870 Document new function attributes.
6941b508
CM
8871 * doc/invoke.texi (minterlink-compressed, mmicromips,
8872 m14k, m14ke, m14kec): Document new options.
8873 (minterlink-mips16): Update documentation.
8874 * doc/md.texi (ZC, ZD): Document new constraints.
8875 * configure.ac (gcc_cv_as_micromips): Check if linker
8876 supports the .set micromips directive.
8877 * configure: Regenerate.
8878 * config.in: Regenerate.
8879 * config/mips/mips-tables.opt: Regenerate.
8880 * config/mips/micromips.md: New file.
8881 * constraints.md (ZC, AD): New constraints.
8882 * config/mips/predicates.md (movep_src_register): New predicate.
8883 (movep_src_operand): New predicate.
8884 (non_volatile_mem_operand): New predicate.
8885 * config/mips/mips.md (multimem): New type.
8886 (length): Differentiate between 17-bit and 18-bit branch offsets.
8887 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 8888 (mov_<load>l): Use ZC constraint.
6941b508
CM
8889 (mov_<load>r): Likewise.
8890 (mov_<store>l): Likewise.
8891 (mov_<store>r): Likewise.
8892 (*branch_equality<mode>_inverted): Add microMIPS support.
8893 (*branch_equality<mode>): Likewise.
8894 (*jump_absolute): Likewise.
8895 (indirect_jump_<mode>): Likewise.
8896 (tablejump_<mode>): Likewise.
8897 (<optab>_internal): Likewise.
8898 (sibcall_internal): Likewise.
8899 (sibcall_value_internal): Likewise.
8900 (prefetch): Use constraint ZD.
8901 * config/mips/mips.opt (minterlink-compressed): New option.
8902 (minterlink-mips16): Now an alias for minterlink-compressed.
8903 (mmicromips): New option.
8904 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8905 (compare_and_swap_12): Likewise.
8906 (sync_add<mode>): Likewise.
8907 (sync_<optab>_12): Likewise.
8908 (sync_old_<optab>_12): Likewise.
8909 (sync_new_<optab>_12): Likewise.
8910 (sync_nand_12): Likewise.
8911 (sync_old_nand_12): Likewise.
8912 (sync_new_nand_12): Likewise.
8913 (sync_sub<mode>): Likewise.
8914 (sync_old_add<mode>): Likewise.
8915 (sync_old_sub<mode>): Likewise.
8916 (sync_new_add<mode>): Likewise.
8917 (sync_new_sub<mode>): Likewise.
8918 (sync_<optab><mode>): Likewise.
8919 (sync_old_<optab><mode>): Likewise.
8920 (sync_new_<optab><mode>): Likewise.
8921 (sync_nand<mode>): Likewise.
8922 (sync_old_nand<mode>): Likewise.
8923 (sync_new_nand<mode>): Likewise.
8924 (sync_lock_test_and_set<mode>): Likewise.
8925 (test_and_set_12): Likewise.
8926 (atomic_compare_and_swap<mode>): Likewise.
8927 (atomic_exchange<mode>_llsc): Likewise.
8928 (atomic_fetch_add<mode>_llsc): Likewise.
8929 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8930 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8931 (umips_save_restore_pattern_p): Likewise.
8932 (umips_load_store_pair_p): Likewise.
8933 (umips_output_load_store_pair): Likewise.
8934 (umips_movep_target_p): Likewise.
8935 (umips_12bit_offset_address_p): Likewise.
8936 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8937 (mips_base_mips16): Rename this...
8938 (mips_base_compression_flags): ...to this. Update all uses.
8939 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8940 (mips_mips16_decl_p): Delete.
8941 (mips_nomips16_decl_p): Delete.
3fdb53c1 8942 (mips_get_compress_on_flags): New function.
6941b508
CM
8943 (mips_get_compress_off_flags): New function.
8944 (mips_get_compress_mode): New function.
8945 (mips_get_compress_on_name): New function.
8946 (mips_get_compress_off_name): New function.
8947 (mips_insert_attributes): Support multiple compression types.
8948 (mips_merge_decl_attributes): Likewise.
8949 (umips_12bit_offset_address_p): New function.
8950 (mips_start_function_definition): Emit .set micromips directive.
8951 (mips_call_may_need_jalx_p): New function.
8952 (mips_function_ok_for_sibcall): Add microMIPS support.
8953 (mips_print_operand_punctuation): Support short delay slots and
8954 compact jumps.
8955 (umips_swm_mask, umips_swm_encoding): New.
8956 (umips_build_save_restore): New function.
8957 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8958 (was_mips16_p): Remove.
8959 (old_compression_mode): New.
8960 (mips_set_compression_mode): New function.
8961 (mips_set_current_function): Add microMIPS support.
8962 (mips_option_override): Likewise.
8963 (umips_save_restore_pattern_p): New function.
8964 (umips_output_save_restore): New function.
8965 (umips_load_store_pair_p_1): New function.
8966 (umips_load_store_pair_p): New function.
8967 (umips_output_load_store_pair_1): New function.
8968 (umips_output_load_store_pair): New function.
8969 (umips_movep_target_p) New function.
8970 (mips_prepare_pch_save): Add microMIPS support.
8971 * config/mips/mips.h (TARGET_COMPRESSION): New.
8972 (TARGET_CPU_CPP_BUILTINS): Update macro
8973 to use new compression flags and to support microMIPS.
8974 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8975 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8976 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8977 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8978 (ASM_SPEC): Support mmicromips and mno-micromips.
8979 (M16STORE_REG_P): New macro.
8980 (MIPS_CALL): Support TARGET_MICROMIPS.
8981 (MICROMIPS_J): New macro.
8982 (mips_base_mips16): Rename this...
8983 (mips_base_compression_flags): ...to this.
8984 (UMIPS_12BIT_OFFSET_P): New macro.
8985 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8986 (MULTILIB_DIRNAMES): Likewise.
8987
cdebbc6d
JJ
89882013-02-24 Jakub Jelinek <jakub@redhat.com>
8989
8990 PR target/52555
8991 * target-globals.c (save_target_globals): For init_reg_sets and
8992 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8993
18c63565
JG
89942013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8995
8996 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8997 * config/aarch64/t-aarch64
8998 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8999
2194f7a2
VM
90002013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9001
9002 PR inline-asm/56148
9003 * lra-constraints.c (process_alt_operands): Reload operand
9004 conflicting with earlier clobber only if no more other conflicting
9005 operands.
9006
7d613735
JJ
90072013-02-22 Jakub Jelinek <jakub@redhat.com>
9008
9009 PR sanitizer/56393
9010 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9011 if not linking a shared library.
9012
ac8d93a7
SL
90132013-02-22 Seth LaForge <sethml@google.com>
9014
9015 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9016
e0237780
GY
90172013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9018
3fdb53c1
TB
9019 * config/arm/arm.md (split for extendsidi): Update condition.
9020 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9021 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9022 (qhs_zextenddi_cstr): Likewise.
e0237780 9023
d7fde18c
JJ
90242013-02-21 Jakub Jelinek <jakub@redhat.com>
9025
be63b77d
JJ
9026 PR middle-end/56420
9027 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9028 avoid signed wrapping.
9029 (expand_mult): Handle properly multiplication by
9030 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9031 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9032 in the compiler if coeff is HOST_WIDE_INT_MIN.
9033 (expand_divmod): Don't make ext_op1 static, change it's type to
9034 uhwi. Avoid undefined behavior in -INTVAL (op1).
9035
d7fde18c
JJ
9036 PR rtl-optimization/50339
9037 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9038 field.
9039 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9040 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9041 into splitting_ashiftrt field.
9042 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9043 ASHIFTRT.
9044 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9045 choices.
9046
6aad4455
AH
90472013-02-20 Aldy Hernandez <aldyh@redhat.com>
9048
9049 PR middle-end/56108
9050 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9051 are sure to go irrevocable.
9052
38fe784d
HPN
90532013-02-21 Hans-Peter Nilsson <hp@axis.com>
9054
9055 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9056 scalars are valid operands.
9057
0fd44da3
MJ
90582013-02-21 Martin Jambor <mjambor@suse.cz>
9059
9060 PR tree-optimization/56310
9061 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9062 only matching indices and non-negative final offsets.
9063 (intersect_aggregates_with_edge): Pass src_idx to
9064 agg_replacements_to_vector. Pass src_idx insstead of index to
9065 intersect_with_agg_replacements.
9066
7a92038b
MJ
90672013-02-21 Martin Jambor <mjambor@suse.cz>
9068
9069 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9070 instead of hard-wired defaults.
9071
c0da9c37
MR
90722013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9073
9074 * doc/invoke.texi (MIPS Options): Update documentation of the
9075 floating-point multiply-accumulate instruction restrictions.
9076
d247ea0c 90772013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
9078
9079 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9080 asan_shadow_offset on x86_64 linux.
9081
22deefcb
RB
90822013-02-21 Richard Biener <rguenther@suse.de>
9083
9084 PR tree-optimization/56415
9085 Revert
9086 2013-02-11 Richard Biener <rguenther@suse.de>
9087
9088 PR tree-optimization/56273
9089 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9090 first VRP run.
9091
7bcc6e75
JJ
90922013-02-21 Jakub Jelinek <jakub@redhat.com>
9093
a0ad148f
JJ
9094 PR bootstrap/56258
9095 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9096 instead of @itemx.
9097
7bcc6e75
JJ
9098 PR inline-asm/56405
9099 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9100 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9101
a0a7b611
JH
91022013-02-20 Jan Hubicka <jh@suse.cz>
9103
9104 PR tree-optimization/56265
88b97037
UB
9105 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9106 when target is referenced for first time.
a0a7b611 9107
c0e50f72
RB
91082013-02-20 Richard Biener <rguenther@suse.de>
9109
9110 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9111 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9112 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9113 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9114 not return anything.
9115 (rename_ssa_copies): Do not remove unused locals.
9116 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 9117 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
9118 * passes.c (execute_function_todo): Do not schedule unused locals
9119 removal if cleanup_tree_cfg did something.
9120 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9121 about the number of removed locals.
9122
a52ca739
RB
91232013-02-20 Richard Biener <rguenther@suse.de>
9124
9125 PR tree-optimization/56398
88b97037 9126 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 9127
ec9c9d1b
MJ
91282013-02-20 Martin Jambor <mjambor@suse.cz>
9129
9130 PR tree-optimization/55334
9131 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9132 restricted pointers to arrays.
9133
e91c8ed6 91342013-02-20 Richard Biener <rguenther@suse.de>
88b97037 9135 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
9136
9137 PR tree-optimization/56396
9138 * tree-ssa-ccp.c (n_const_val): New static variable.
9139 (get_value): Return NULL for SSA names we don't have a lattice
9140 entry for.
9141 (ccp_initialize): Initialize n_const_val.
9142 * tree-ssa-copy.c (n_copy_of): New static variable.
9143 (init_copy_prop): Initialize n_copy_of.
9144 (get_value): Return NULL_TREE for SSA names we don't have a
9145 lattice entry for.
9146
3d916479
MJ
91472013-02-20 Martin Jambor <mjambor@suse.cz>
9148
9149 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9150
71a86758
RB
91512013-02-20 Richard Biener <rguenther@suse.de>
9152
9153 * genpreds.c (write_lookup_constraint): Do not compare first
9154 letter of the constraint again.
9155
79836a12
RB
91562013-02-20 Richard Biener <rguenther@suse.de>
9157
9158 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9159 and ceil_log2.
9160 (get_use_iv_cost): Terminate hashtable walk when coming across
9161 an empty entry.
9162
bbe4fb2c
IZ
91632013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9164
9165 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9166 reassociation for avx2 targets.
9167
a72d8780 91682012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 9169
c77f83d5
EI
9170 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9171 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 9172 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
9173 version and TARGET_PATTERN_COMPARE check
9174 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 9175
a72d8780 91762012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 9177
a72d8780 9178 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
9179 function before branching.
9180
242387fa
AB
91812012-02-19 Andrey Belevantsev <abel@ispras.ru>
9182
9183 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9184 DUMP_INSN_RTX_UID.
9185 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9186
b4979ab9
AB
91872012-02-19 Andrey Belevantsev <abel@ispras.ru>
9188
9189 PR middle-end/55889
b4979ab9
AB
9190 * sel-sched.c: Include ira.h.
9191 (implicit_clobber_conflict_p): New function.
9192 (moveup_expr): Use it.
88b97037 9193 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 9194
24d63016
RB
91952013-02-19 Richard Biener <rguenther@suse.de>
9196
9197 PR tree-optimization/56384
9198 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9199 (vn_hash_type): Split out from ...
9200 (vn_hash_constant_with_type): ... here.
9201 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9202 (vn_phi_eq): Compare types from vn_phi_s structure.
9203 (vn_phi_lookup): Populate vn_phi_s type.
9204 (vn_phi_insert): Likewise.
9205
a475fd3d
JJ
92062013-02-19 Jakub Jelinek <jakub@redhat.com>
9207
47cc28f5
JJ
9208 PR tree-optimization/56350
9209 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9210 if haven't found reduction or nested cycle operand, rather than
9211 asserting we must find it.
9212
a475fd3d
JJ
9213 PR tree-optimization/56381
9214 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9215 to fold_build3.
9216
92172013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
9218 Jakub Jelinek <jakub@redhat.com>
9219
9220 PR target/52555
9221 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9222 (swap_optab_enable): Same.
9223 (init_all_optabs): Use argument instead of global.
88b97037 9224 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
9225 * expr.h (init_all_optabs): Add argument to prototype.
9226 (TREE_OPTIMIZATION_OPTABS): New.
9227 (save_optabs_if_changed): Protoize.
9228 * optabs.h: Declare this_fn_optabs.
9229 * optabs.c (save_optabs_if_changed): New.
9230 Declare this_fn_optabs.
9231 (init_optabs): Add argument to init_all_optabs() call.
9232 * function.c (invoke_set_current_function_hook): Handle per
9233 function optabs.
9234 * function.h (struct function): New field optabs.
9235 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9236 optimization_current_node has changed.
9237 * target-globals.h (save_target_globals_default_opts): Protoize.
9238 * target-globals.c (save_target_globals_default_opts): New.
9239
3f587ca3
JDA
92402013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9241
9242 PR target/56347
9243 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9244 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
9245
9246 PR target/56214
9247 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
9248 and HImode, require all displacements to be an integer multiple of
9249 their mode size.
ceaca33e
JDA
9250 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9251 only allow QImode and HImode when reload is in progress and strict is
9252 true. Likewise for symbolic addresses. Use base14_operand to check
9253 displacements in REG+BASE addresses.
9254
fe0b4796
RB
92552013-02-18 Richard Biener <rguenther@suse.de>
9256
9257 PR tree-optimization/56366
9258 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9259 handle sign-conversion of outer-loop initial induction value.
9260
6aaf596b
RB
92612013-02-18 Richard Biener <rguenther@suse.de>
9262
73db8ff1 9263 PR middle-end/56349
6aaf596b
RB
9264 * cfghooks.c (merge_blocks): If we merge a latch into another
9265 block adjust references to it.
9266 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9267 (verify_loop_structure): Verify that a recorded latch is in fact
9268 a latch.
9269
5e97dfb6
RB
92702013-02-18 Richard Biener <rguenther@suse.de>
9271
9272 PR tree-optimization/56321
9273 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9274 order SSA name release and virtual operand unlinking.
9275
825527e8
EI
92762013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9277
9278 * config/microblaze/microblaze.md (save_stack_block): Define.
9279 (restore_stack_block): Likewise.
9280
debd11d9
EI
92812013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9282
9283 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9284 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9285 * config/microblaze/microblaze.c (microblaze_option_override):
9286 Bail out early for PIC modes when target does not support PIC.
9287
8ec77be0
EI
92882013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9289
88b97037 9290 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
9291 Replace with a microblaze version.
9292 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 9293 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
9294 microblaze.
9295
b41288b3
JJ
92962013-02-16 Jakub Jelinek <jakub@redhat.com>
9297 Dodji Seketeli <dodji@redhat.com>
9298
9299 PR asan/56330
88b97037 9300 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
9301 (instrument_mem_region_access): Do not forget to always put
9302 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9303 0) statement, even for cases where either 'base' or 'base + len'
9304 are not instrumented -- because they have been previously
9305 instrumented. Simplify the logic by putting all the statements
9306 instrument 'base + len' inside a sequence, and then insert that
9307 sequence right before the current insertion point. Then, to
9308 instrument 'base + len', just get an iterator on that statement.
9309 And do not forget to update the pointer to iterator the function
9310 received as argument.
9311
47918951
VM
93122013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9313
9314 PR rtl-optimization/56348
9315 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9316
3fb7c699
SB
93172013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9318
9319 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9320 (clean_graph_dump_file): Pass base to start_graph_dump.
9321
576fe41a
RH
93222013-02-14 Richard Henderson <rth@redhat.com>
9323
9324 PR target/55941
9325 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9326
bb3accfa
SB
93272013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9328
9329 * collect2-aix.h: Define F_LOADONLY.
9330
03143140
RB
93312013-02-14 Richard Biener <rguenther@suse.de>
9332
9333 PR lto/50494
9334 * varasm.c (output_constant_def_1): Get the decl representing
9335 the constant as argument.
9336 (output_constant_def): Wrap output_constant_def_1.
9337 (make_decl_rtl): Use output_constant_def_1 with the decl
9338 representing the constant.
9339 (build_constant_desc): Optionally re-use a decl already
9340 representing the constant.
9341 (tree_output_constant_def): Adjust.
9342
8fb06726
DS
93432013-02-14 Dodji Seketeli <dodji@redhat.com>
9344
9345 Fix an asan crash
9346 * asan.c (instrument_builtin_call): Really put the length of the
9347 second source argument into src1_len.
9348
c4bfe8bf
JJ
93492013-02-13 Jakub Jelinek <jakub@redhat.com>
9350
9351 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9352 argument. If it is false, don't create edge from then_bb to
9353 fallthru_bb.
9354 (insert_if_then_before_iter): Pass true to it.
9355 (build_check_stmt): Pass false to it.
9356 (transform_statements): Flush hash table only on extended basic
9357 block boundaries, rather than at the beginning of every bb.
9358 Don't flush hash table on nonfreeing_call_p calls.
9359 * tree-flow.h (nonfreeing_call_p): New prototype.
9360 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9361
7afe2801
DM
93622013-02-13 David S. Miller <davem@davemloft.net>
9363
9364 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9365
70cc3288
VM
93662013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9367
9368 PR target/56184
9369 * ira.c (max_regno_before_ira): Move from ...
9370 (ira): ... here.
9371 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9372 vec_safe_length.
9373
6422242b
JJ
93742013-02-13 Jakub Jelinek <jakub@redhat.com>
9375
9376 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9377
976a81ee
RB
93782013-02-13 Richard Biener <rguenther@suse.de>
9379
9380 PR lto/56295
9381 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9382 globals in MEM_REFs.
9383
c1874a87
RB
93842013-02-13 Richard Biener <rguenther@suse.de>
9385
9386 * loop-init.c (loop_optimizer_init): Clear loop state when
9387 re-initializing preserved loops.
9388 * loop-unswitch.c (unswitch_single_loop): Return whether
9389 we unswitched the loop. Do not verify loop state here.
88b97037 9390 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 9391
b4ab7d34
KS
93922013-02-13 Kostya Serebryany <kcc@google.com>
9393
88b97037
UB
9394 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9395 on x86_64 linux.
b4ab7d34
KS
9396 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9397
bdcbe80c
DS
93982013-02-12 Dodji Seketeli <dodji@redhat.com>
9399
9400 Avoid instrumenting duplicated memory access in the same basic block
9401 * Makefile.in (asan.o): Add new dependency on hash-table.h
9402 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9403 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9404 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9405 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9406 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9407 (get_mem_ref_of_assignment): New functions.
9408 (get_mem_refs_of_builtin_call): Extract from
9409 instrument_builtin_call and tweak a little bit to make it fit with
9410 the new signature.
9411 (instrument_builtin_call): Use the new
9412 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9413 of is_gimple_builtin_call.
9414 (instrument_derefs, instrument_mem_region_access): Insert the
9415 instrumented memory reference into the hash table.
9416 (maybe_instrument_assignment): Renamed instrument_assignment into
9417 this, and change it to advance the iterator when instrumentation
9418 actually happened and return true in that case. This makes it
9419 homogeneous with maybe_instrument_assignment, and thus give a
9420 chance to callers to be more 'regular'.
9421 (transform_statements): Clear the memory reference hash table
9422 whenever we enter a new BB, when we cross a function call, or when
9423 we are done transforming statements. Use
9424 maybe_instrument_assignment instead of instrumentation. No more
9425 need to special case maybe_instrument_assignment and advance the
9426 iterator after calling it; it's now handled just like
9427 maybe_instrument_call. Update comment.
9428
4861a1f7
RB
94292013-02-13 Richard Biener <rguenther@suse.de>
9430
9431 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9432 Fix loop discovery code.
9433
1c86bd80
VM
94342013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9435
9436 PR inline-asm/56148
9437 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 9438 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
9439 the operand is not reloaded. Prefer to reload conflicting operand
9440 if earlyclobber and matching operands are the same.
9441
7cbda518
RB
94422013-02-12 Richard Biener <rguenther@suse.de>
9443
9444 PR lto/56297
9445 * lto-streamer-out.c (write_symbol): Do not output symbols
9446 for hard register variables.
9447
e68a4ef6
GJL
94482013-02-12 Georg-Johann Lay <avr@gjlay.de>
9449
9450 PR target/54222
9451 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9452 (umulsidi3_insn, mulsidi3_insn): New insns.
9453
a72d8780 94542013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
9455
9456 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9457 (struct tune_params): Add vec_costs field.
9458 * config/arm/arm.c (arm_builtin_vectorization_cost)
9459 (arm_add_stmt_cost): New functions.
9460 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9461 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9462 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9463 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9464 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9465 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9466 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9467
43320568
RB
94682013-02-12 Richard Biener <rguenther@suse.de>
9469
9470 PR lto/56295
9471 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9472 decls again if possible.
9473
a011aa39
RB
94742013-02-12 Richard Biener <rguenther@suse.de>
9475
9476 PR middle-end/56288
9477 * tree-ssa.c (verify_ssa_name): Fix check, move
9478 SSA_NAME_IN_FREE_LIST check up.
9479
6da26889
JJ
94802013-02-12 Jakub Jelinek <jakub@redhat.com>
9481 Steven Bosscher <steven@gcc.gnu.org>
9482
9483 PR rtl-optimization/56151
9484 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9485 equal to op0 or op1, and last_insn pattern is CODE operation
9486 with MEM dest and one of the operands matches that MEM.
9487
f80e0faf
ST
94882013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9489
9490 * doc/extend.texi: Document Function Multiversioning and "default"
9491 parameter string to target attribute.
9492 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9493 target attribute parameter is "default".
9494 (ix86_compare_version_priority): Remove checks for target attribute.
9495 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9496 Remove check for target attribute equal to NULL. Add assert.
9497 (ix86_generate_version_dispatcher_body): Change error to sorry.
9498
6c59ffd1
IS
94992013-02-11 Iain Sandoe <iain@codesourcery.com>
9500 Jack Howarth <howarth@bromo.med.uc.edu>
9501 Patrick Marlier <patrick.marlier@gmail.com>
9502
9503 PR libitm/55693
9504 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9505 define ENDFILE_SPEC as TM_DESTRUCTOR.
9506 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9507
a72d8780 95082013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
9509 Jack Howarth <howarth@bromo.med.uc.edu>
9510 Jakub Jelinek <jakub@redhat.com>
9511
9512 PR sanitizer/55617
9513 * config/darwin.c (cdtor_record): Rename ctor_record.
9514 (sort_cdtor_records): Rename sort_ctor_records.
9515 (finalize_dtors): New routine to sort destructors by
9516 priority before use in assemble_integer.
9517 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9518
b63fe007
UB
95192013-02-11 Uros Bizjak <ubizjak@gmail.com>
9520
9521 PR rtl-optimization/56275
9522 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9523 offset is non-negative and less than cmode size before
9524 calling simplify_subreg.
9525
8e89b5b5
RB
95262013-02-11 Richard Biener <rguenther@suse.de>
9527
9528 PR tree-optimization/56264
9529 * cfgloop.h (fix_loop_structure): Adjust prototype.
9530 * loop-init.c (fix_loop_structure): Return the number of
9531 newly discovered loops.
9532 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9533 are discovered, do a full loop-closed SSA rewrite.
9534
b4a4b56d
RB
95352013-02-11 Richard Biener <rguenther@suse.de>
9536
9537 PR tree-optimization/56273
9538 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9539 first VRP run.
9540 (check_array_ref): Fix missing newline in dumps.
9541 (search_for_addr_array): Likewise.
9542
0c885229
DE
95432013-02-09 David Edelsohn <dje.gcc@gmail.com>
9544
9545 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9546
59ac9a55
JJ
95472013-02-09 Jakub Jelinek <jakub@redhat.com>
9548
9549 PR target/56256
9550 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9551
25bb0bb5
VM
95522013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9553
9554 PR rtl-optimization/56246
0c885229 9555 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
9556 reload pseudo.
9557 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9558 constraints are satisfied.
9559
a698cc03
JL
95602013-02-08 Jeff Law <law@redhat.com>
9561
9562 PR debug/53948
9563 * emit-rtl.c (reg_is_parm_p): New function.
9564 * regs.h (reg_is_parm_p): New prototype.
9565 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9566 callee-clobbered registers.
9567
e1122ddd
MM
95682013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9569
9570 PR target/56043
9571 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9572 If there is no implicit builtin declaration, just return NULL.
9573
19c5f6e6
UB
95742013-02-08 Uros Bizjak <ubizjak@gmail.com>
9575
9576 * config/i386/sse.md (FMAMODEM): New mode iterator.
9577 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9578 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9579
2480f2ca 95802013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 9581
2480f2ca
UB
9582 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9583 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9584 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9585
95862013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9587
9588 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9589 (microblaze*-*-elf): Likewise.
9590 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9591 LINK_SPEC.
9592 * config/microblaze/microblaze-c.c: Add builtin defines for
9593 _LITTLE_ENDIAN and _BIG_ENDIAN.
9594 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9595 add to TARGET_DEFAULT flags.
76ef61fb 9596 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
9597 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9598 * config/microblaze/microblaze.md: Update extendsidi2 and
9599 movdi_internal instructions to use low-order / high-order reg
9600 print_operands.
9601 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9602 options and inversemask / mask of LITTLE_ENDIAN.
9603 * config/microblaze/t-microblaze: Expand multilib options to
9604 include mlittle-endian (le) and update exceptions patterns.
9605
600a5961
JJ
96062013-02-08 Jakub Jelinek <jakub@redhat.com>
9607
5df81313
JJ
9608 PR rtl-optimization/56195
9609 * lra-constraints.c (get_reload_reg): Don't reuse regs
9610 if they have smaller mode than requested, if they have
9611 wider mode than requested, try to return a SUBREG.
9612
600a5961
JJ
9613 PR tree-optimization/56250
9614 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9615 if type is unsigned and code isn't MULT_EXPR.
9616
ff544649
GJL
96172013-02-08 Georg-Johann Lay <avr@gjlay.de>
9618
9619 PR tree-optimization/56064
9620 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9621 bits according to mode.
9622 * fixed-value.h (fixed_from_double_int)
9623 (const_fixed_from_double_int): Adjust comments.
9624
e45cde98
RB
96252013-02-08 Richard Biener <rguenther@suse.de>
9626
9627 PR lto/56231
9628 * lto-streamer.h (struct data_in): Remove current_file, current_line
9629 and current_col members.
9630 * lto-streamer-out.c (lto_output_location): Stream changed bits
9631 en-block for efficiency.
9632 * lto-streamer-in.c (clear_line_info): Remove.
9633 (lto_input_location): Cache current file, line and column
9634 globally via local statics. Read changed bits en-block.
9635 (input_function): Do not call clear_line_info.
9636 (lto_read_body): Likewise.
9637 (lto_input_toplevel_asms): Likewise.
9638
c1ca73d8
MM
96392013-02-08 Michael Matz <matz@suse.de>
9640
9641 PR tree-optimization/52448
9642 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9643 (nt_call_phase): New static.
9644 (add_or_mark_expr): Only mark accesses with newer phase than any
9645 call seen.
9646 (nonfreeing_call_p): New.
9647 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9648 (nt_fini_block): Keep blocks marked as visited.
9649 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9650
57548aa2
RB
96512013-02-08 Richard Biener <rguenther@suse.de>
9652
9653 * ira.c (ira): Free broken dominator information.
9654
8e10366f
UB
96552013-02-08 Uros Bizjak <ubizjak@gmail.com>
9656
9657 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9658
f64fb0fa
MP
96592013-02-08 Marek Polacek <polacek@redhat.com>
9660
8e10366f 9661 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 9662
0375167b
RB
96632013-02-08 Richard Biener <rguenther@suse.de>
9664
9665 PR middle-end/56181
9666 * cfgloop.h (flow_loops_find): Adjust.
9667 (bb_loop_header_p): Declare.
9668 * cfgloop.c (bb_loop_header_p): New function split out from ...
9669 (flow_loops_find): ... here. Adjust function signature,
9670 support incremental loop structure update.
9671 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9672 * cfgloopmanip.c (fix_loop_structure): Move ...
9673 * loop-init.c (fix_loop_structure): ... here.
9674 (apply_loop_flags): Split out from ...
9675 (loop_optimizer_init): ... here.
9676 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9677 in incremental mode, only remove dead loops here.
9678
85d768f3
GJL
96792013-02-08 Georg-Johann Lay <avr@gjlay.de>
9680
9681 PR target/54222
9682 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9683 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9684 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9685 (*round<mode>3.libgcc): New insns for fixed-modes.
9686 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9687 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9688 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9689 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9690 implementations. Define to __builtin_avr_absFX,
9691 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9692 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9693 __builtin_avr_countlsFX, respectively.
9694 * config/avr/avr-c.c (target.h): Include it.
9695 (enum avr_builtin_id): New enum.
9696 (avr_resolve_overloaded_builtin): New static function.
9697 (avr_register_target_pragmas): Use it to set
9698 targetm.resolve_overloaded_builtin.
9699 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9700 tree nodes used by DEF_BUILTIN.
9701 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9702 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9703 <AVR_BUILTIN_xxBITS>: Same.
9704
661bc682
RB
97052013-02-08 Richard Biener <rguenther@suse.de>
9706
9707 * cfgloop.c (verify_loop_structure): Properly handle
9708 a loop exiting to another loop header.
9709 * ira-int.h (ira_loops): Remove.
9710 * ira.c (ira_loops): Remove.
9711 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9712 (do_reload): Use loop_optimizer_finalize.
9713 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9714 number_of_loops to access the loop tree.
9715 (more_one_region_p): Likewise.
9716 (finish_loop_tree_nodes): Likewise.
9717 (rebuild_regno_allocno_maps): Likewise.
9718 (mark_loops_for_removal): Likewise.
9719 (mark_all_loops_for_removal): Likewise.
9720 (remove_unnecessary_regions): Likewise.
9721 (ira_build): Likewise.
9722 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9723
0d5049b2
RB
97242013-02-08 Richard Biener <rguenther@suse.de>
9725
9726 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9727 * ipa-pure-const.c (analyze_function): Avoid calling
9728 mark_irreducible_loops twice.
8e10366f 9729 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 9730
499f32e8
DM
97312013-02-07 David S. Miller <davem@davemloft.net>
9732
9733 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9734 on 'reg'.
9735 * var-tracking.c (vt_add_function_parameter): Test the presence of
9736 HAVE_window_save properly and do not remap argument registers when
9737 we have a leaf function.
9738
6edc3e32
UB
97392013-02-07 Uros Bizjak <ubizjak@gmail.com>
9740
9741 PR bootstrap/56227
9742 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9743 instead of "ll".
9744 * config/i386/i386.c (ix86_print_operand): Ditto.
9745
5306401f
VM
97462013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9747
6edc3e32 9748 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 9749
027ece11
VM
97502013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9751
9752 PR rtl-optimization/56225
9753 * lra-constraints.c (process_alt_operands): Check that reload hard
9754 reg can hold value for strict_low_part.
9755
f980dfdb
JJ
97562013-02-07 Jakub Jelinek <jakub@redhat.com>
9757
9758 PR debug/56154
9759 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9760 dwarf2out_end_function.
9761 (in_first_function_p, maybe_at_text_label_p,
9762 first_loclabel_num_not_at_text_label): New variables.
9763 (dwarf2out_var_location): In the first function find out
6edc3e32 9764 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
9765 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9766 functions.
9767
73dd3123
EB
97682013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9769
9770 PR rtl-optimization/56178
9771 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9772 SUBREG of a register. Tidy up related block of code.
9773 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9774 note if the source is a register or a SUBREG of a register.
9775
e3936f47
JJ
97762013-02-07 Jakub Jelinek <jakub@redhat.com>
9777
9778 PR target/56228
9779 * config/rs6000/rs6000.md (ptrm): New mode attr.
9780 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9781 call_value_indirect_aix<pttrsize>,
9782 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9783 m in constraints.
9784
d96d674b
MH
97852013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9786
9787 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9788 if -bnortl. Convert to strcmp and strncmp.
9789
921f2dee
AM
97902013-02-07 Alan Modra <amodra@gmail.com>
9791
9792 PR target/54009
9793 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9794 addresses won't wrap when offsetting.
9795 (rs6000_secondary_reload): Provide secondary reloads needed for
9796 wrapping LO_SUM addresses.
9797
d09c7dba
TS
97982013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9799
9800 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9801 MACH, just __MACH__.
9802
a44bbd48
RB
98032013-02-06 Richard Biener <rguenther@suse.de>
9804
9805 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9806 instead of calling fix_loop_structure.
9807
6d840d99
JJ
98082013-02-06 Jakub Jelinek <jakub@redhat.com>
9809
9810 PR middle-end/56217
9811 * omp-low.c (use_pointer_for_field): Return false if
9812 lower_send_shared_vars doesn't generate any copy-out code.
9813
0f33baa9
TV
98142013-02-06 Tom de Vries <tom@codesourcery.com>
9815
9816 PR rtl-optimization/56131
9817 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9818 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9819 of the label is NULL. Add comment.
9820
11f1e3ab
JJ
98212013-02-05 Jakub Jelinek <jakub@redhat.com>
9822
31502f9f
JJ
9823 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9824
a74db9bd
JJ
9825 PR sanitizer/55374
9826 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9827 (STATIC_LIBTSAN_LIBS): Likewise.
9828 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9829 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9830 is defined, don't add anything else beyond that.
9831 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9832 (LINK_COMMAND_SPEC): Use them.
9833
11f1e3ab
JJ
9834 PR tree-optimization/56205
9835 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9836 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9837 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9838
14ac6aa2
RB
98392013-02-05 Richard Biener <rguenther@suse.de>
9840
9841 PR tree-optimization/53342
9842 PR tree-optimization/53185
9843 * tree-vectorizer.h (vect_check_strided_load): Remove.
9844 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9845 not disallow peeling for vectorized strided loads.
9846 (vect_check_strided_load): Make static and simplify.
9847 (vect_analyze_data_refs): Adjust.
9848 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9849 correctly when vectorizing strided loads.
9850
6f22445a
RB
98512013-02-05 Richard Biener <rguenther@suse.de>
9852
9853 * doc/install.texi: Refer to ISL, not PPL.
9854
39f9719e
JH
98552013-02-05 Jan Hubicka <jh@suse.cz>
9856
ec4224ac
JH
9857 PR tree-optimization/55789
9858 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9859
98602013-02-05 Jan Hubicka <jh@suse.cz>
9861
9862 PR tree-optimization/55789
39f9719e
JH
9863 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9864 the dead call anyway.
9865
956d3b33
EB
98662013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9867
9868 PR sanitizer/55374
9869 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9870
98712013-02-04 Alexander Potapenko <glider@google.com>
9872 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
9873 Jakub Jelinek <jakub@redhat.com>
9874
9875 PR sanitizer/55617
9876 * config/darwin.c (sort_ctor_records): Stabilized qsort
9877 on constructor priority by using original position.
9878 (finalize_ctors): New routine to sort constructors by
9879 priority before use in assemble_integer.
9880 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9881
7ac3af38
JJ
98822013-02-04 Jakub Jelinek <jakub@redhat.com>
9883
9884 PR libstdc++/54314
9885 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9886 about visibility on artificial decls.
9887 * config/sol2.c (solaris_assemble_visibility): Likewise.
9888
152689dc
KT
98892013-02-04 Kai Tietz <ktietz@redhat.com>
9890
9891 PR target/56186
9892 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9893 argument and improve checking of return-argument types for 16-byte
9894 modes.
9895 (ix86_function_value_1): Add additional valtype argument on call
9896 of function_value_64.
9897 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9898 handling infunction_value_64 function.
9899
2b5987b5
MGD
99002013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9901
7ac3af38 9902 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 9903
14597080
RB
99042013-02-04 Richard Biener <rguenther@suse.de>
9905
9906 PR tree-optimization/56188
9907 * tree-ssa-structalias.c (label_visit): Consider case with
9908 initially non-empty points-to set.
9909 (perform_var_substitution): Dump node mapping and clean up.
9910
ed73881e
RG
99112013-02-04 Richard Guenther <rguenther@suse.de>
9912
9913 PR lto/56168
9914 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9915 node prevail as last resort.
9916 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 9917 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 9918
139a0707
RB
99192013-02-04 Richard Biener <rguenther@suse.de>
9920
9921 PR tree-optimization/56113
9922 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9923 Merge into ...
9924 (equiv_class_lookup_or_add): ... this.
9925 (label_visit): Adjust and fix error in previous patch.
9926 (perform_var_substitution): Adjust.
9927
50fe8924
OE
99282013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9929
9930 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9931 * config/sh/sh4-300.md: Likewise.
9932 * config/sh/sh4a.md: Likewise.
9933 * config/sh/constraints.md: Likewise.
9934 * config/sh/sh.md: Likewise.
9935 * config/sh/netbsd-elf.h: Likewise.
9936 * config/sh/predicates.md: Likewise.
9937 * config/sh/sh-protos.h: Likewise.
9938 * config/sh/ushmedia.h: Likewise.
9939 * config/sh/linux.h: Likewise.
9940 * config/sh/sh.c: Likewise.
9941 * config/sh/superh.h: Likewise.
9942 * config/sh/elf.h: Likewise.
9943 * config/sh/sh4.md: Likewise.
9944 * config/sh/sh.h: Likewise.
9945
1a04ac2b
JDA
99462013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9947
9948 * config/pa/constraints.md: Adjust unused letters. Change "T"
9949 constraint to match_test floating_point_store_memory_operand().
9950 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9951 (base14_operand): New.
9952 (floating_point_store_memory_operand): New.
9953 (integer_store_memory_operand): Revise to use base14_operand and
9954 reg_plus_base_memory_operand.
9955 (move_dest_operand): Allow symbolic_memory_operands.
9956 (symbolic_memory_operand): Check for LO_SOM.
9957 (symbolic_operand): Change default case to break.
9958 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9959 CONST_DOUBLE values to be reloaded by putting them into memory when
9960 the destination is a floating point register.
9961 (movdf): Remove code to handle CONST_DOUBLE.
9962 (movsf): Likewise.
9963 (reload_indf_r1): New.
9964 (reload_insf_r1): New.
9965 Consistently use "Q" and "T" constraints with integer and floating
9966 point move instructions, respectively.
9967 (movdi): Remove FAIL.
9968 Change predicate for source operand unamed DImode move from
9969 general_operand to move_src_operand.
9970 (umulsidi3): Change predicate for destination operand to
9971 register_operand.
9972 Likewise for similar unamed patterns.
9973 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9974 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9975 (hppa_legitimize_address): Simplify mask calculation.
9976 (pa_emit_move_sequence): Revised handling of secondary reloads from
9977 REG+D addresses for floating point loads and stores. Directly handle
9978 loading CONST0_RTX (mode) to a floating point register.
9979 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9980 to floating point registers. Don't restrict secondary reloads to
9981 floating point registers to integer modes. Revise some comments and
9982 cleanup some code.
9983 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9984 (pa_legitimate_address_p): New.
9985 (pa_legitimize_reload_address): New.
9986 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9987 (STRICT_REG_OK_FOR_BASE_P): New.
9988 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9989 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9990
3bf65591
DE
99912013-02-03 David Edelsohn <dje.gcc@gmail.com>
9992 Andrew Dixie <andrewd@gentrack.com>
9993
9994 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9995 flag set.
9996
c0a8a3e6
RS
99972013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9998
9999 * expmed.c (extract_bit_field_1): Pass the full width of the
10000 structure to get_best_reg_extraction_insn.
10001
99113dff
DE
100022013-02-01 David Edelsohn <dje.gcc@gmail.com>
10003
10004 PR target/54601
10005 * configure.ac (use_cxa_atexit): Add AIX.
10006 * configure: Regenerate.
10007
10008 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10009
ddd84654
JJ
100102013-02-01 Jakub Jelinek <jakub@redhat.com>
10011
10012 PR debug/54793
10013 * final.c (need_profile_function): New variable.
10014 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10015 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10016 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10017 notes, targetm.asm_out.function_prologue doesn't emit anything,
10018 HAVE_prologue and profiler should be emitted before prologue,
10019 set need_profile_function instead of emitting it.
10020 (final_scan_insn): If need_profile_function, emit
10021 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10022 NOTE_INSN_FUNCTION_BEG note.
10023
100242013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
10025
10026 * config/rs6000/rs6000.md (smulditi3): New.
10027 (umulditi3): New.
10028
ff2a9d88
RH
10029 * config/alpha/alpha.md (umulditi3): New.
10030
14d52b90
DE
100312013-02-01 David Edelsohn <dje.gcc@gmail.com>
10032
10033 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10034 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10035
8c7ca45c
RB
100362013-02-01 Richard Biener <rguenther@suse.de>
10037
10038 PR tree-optimization/56113
10039 * tree-ssa-structalias.c (label_visit): Reduce work for
10040 single-predecessor nodes.
10041
9f419393
EB
100422013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10043
10044 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10045 range isn't testing for zero.
10046
c5f4be84
SB
100472013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10048
10049 PR middle-end/56113
10050 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10051
dbdbd982
NC
100522013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10053 Nick Clifton <nickc@redhat.com>
10054
10055 * config/v850/constraints.md (Q): Define as a memory constraint.
10056 * config/v850/predicates.md (label_ref_operand): New predicate.
10057 (e3v5_shift_operand): New predicate.
10058 (ior_operator): New predicate.
10059 * config/v850/t-v850: Add e3v5 multilib.
10060 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10061 (v850_gen_movdi): Prototype.
10062 * config/v850/v850.c: Add support for e3v5 architecture.
10063 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10064 TARGET_V850E_UP.
10065 (construct_save_jarl): Add e3v5 long JARL support.
10066 (v850_adjust_insn_length): New function. Adjust length of call
10067 insns when using e3v5 instructions.
10068 (v850_gen_movdi): New function: Generate instructions to move a
10069 DImode value.
10070 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10071 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10072 (TARGET_USE_FPU): Enable for e3v5.
10073 (CONST_OK_FOR_W): New macro.
10074 (ADJUST_INSN_LENGTH): Define.
10075 * config/v850/v850.md (UNSPEC_LOOP): Define.
10076 (attr cpu): Add v850e3v5.
10077 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10078 (movdi): New pattern.
10079 (movdi_internal): New pattern.
10080 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10081 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10082 (cstoresf4): Likewise.
10083 (cstoredf4): Likewise.
10084 (insv): New pattern.
10085 (rotlso3_a): New pattern.
10086 (rotlsi3_b): New pattern
10087 (rotlsi3_v850e3v5): New pattern.
10088 (doloop_begin): New pattern.
10089 (fix_loop_counter): New pattern.
10090 (doloop_end): New pattern.
10091 (branch_normal): Add e3v5 long branch support.
10092 (branch_invert): Likewise.
10093 (branch_z_normal): Likewise.
10094 (branch_z_invert): Likewise.
10095 (branch_nz_normal): Likewise.
10096 (branch_nz_invert): Likewise.
10097 (call_internal_short): Add e3v5 register-indirect JARL support.
10098 (call_internal_long): Likewise.
10099 (call_value_internal_short): Likewise.
10100 (call_value_internal_long): Likewise.
10101 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10102 (mloop): New option.
10103 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 10104 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 10105
73861a41
PK
101062013-01-31 Paul Koning <ni1d@arrl.net>
10107
10108 PR debug/55059
10109 PR debug/54508
10110 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10111 children if parent is a class.
10112 (prune_unused_types_prune): Don't add DW_AT_declaration.
10113
e44978dc
RB
101142013-01-31 Richard Biener <rguenther@suse.de>
10115
10116 PR tree-optimization/56157
10117 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10118 match up operand with SLP child.
10119
90b10dec
JM
101202013-01-31 Jason Merrill <jason@redhat.com>
10121
04d2dadd 10122 PR debug/54410
90b10dec
JM
10123 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10124 parameters the first time.
10125 (gen_scheduled_generic_parms_dies): Check completeness here.
10126
6e616110
RB
101272013-01-31 Richard Biener <rguenther@suse.de>
10128
10129 PR middle-end/53073
10130 * common.opt (faggressive-loop-optimizations): New flag,
10131 enabled by default.
10132 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10133 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10134 infer_loop_bounds_from_undefined by it.
10135
636f59cf
RB
101362013-01-31 Richard Biener <rguenther@suse.de>
10137
10138 PR tree-optimization/56150
10139 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10140 visit virtual operands.
10141 (find_uses_to_rename_bb): Likewise.
10142
101432013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
10144
10145 PR tree-optimization/56150
10146 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10147 mixed store non-store stmts.
10148
32887460
JJ
101492013-01-30 Jakub Jelinek <jakub@redhat.com>
10150
e60e09a0
JJ
10151 PR sanitizer/55374
10152 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10153 LIBASAN_EARLY_SPEC is defined.
10154 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10155 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10156 before %o.
10157 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10158
32887460
JJ
10159 PR c++/55742
10160 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10161 invalid args instead of ICEing on it.
10162 (ix86_valid_target_attribute_tree): Return error_mark_node if
10163 ix86_valid_target_attribute_inner_p failed.
10164 (ix86_valid_target_attribute_p): Return false only if
10165 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10166 target("default") attribute.
10167 (sorted_attr_string): Change argument from const char * to tree,
10168 merge in all target attribute arguments rather than just one.
10169 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10170 instead of free. Avoid using strcat.
10171 (ix86_mangle_function_version_assembler_name): Mangle
10172 target("default") as if no target attribute is present. Adjust
10173 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10174 instead of xmalloc and XDELETEVEC instead of free.
10175 (ix86_function_versions): Don't return true if one of the decls
10176 doesn't have target attribute. If they don't and one of the decls
10177 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10178 sorted_attr_string caller. Use XDELETEVEC instead of free.
10179 (ix86_supports_function_versions): Remove.
10180 (make_name): Fix up formatting.
10181 (make_dispatcher_decl): Remove resolver_name and its initialization.
10182 Avoid leaking memory.
10183 (is_function_default_version): Return true if there is
10184 target("default") attribute rather than no target attribute at all.
10185 (make_resolver_func): Avoid leaking memory.
10186 (ix86_generate_version_dispatcher_body): Likewise.
10187 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10188 * target.def (supports_function_versions): Remove.
10189 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10190 * doc/tm.texi: Regenerated.
10191
73cca0cc
VM
101922013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10193
10194 PR rtl-optimization/56144
10195 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10196 for values with side effects.
10197
11452e7b
RB
101982013-01-30 Richard Biener <rguenther@suse.de>
10199
10200 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10201 (sparseset_pop): Likewise.
10202 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10203 to be able to use quick_push in the worker loop.
10204
01cb1ef5
MP
102052013-01-30 Marek Polacek <polacek@redhat.com>
10206
10207 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10208
e892936e
RB
102092013-01-30 Richard Biener <rguenther@suse.de>
10210
10211 PR lto/56147
6edc3e32 10212 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 10213
cc06c01d
GJL
102142013-01-30 Georg-Johann Lay <avr@gjlay.de>
10215
10216 PR tree-optimization/56064
10217 * fixed-value.c (fixed_from_double_int): New function.
10218 * fixed-value.h (fixed_from_double_int): New prototype.
10219 (const_fixed_from_double_int): New static inline function.
10220 * fold-const.c (native_interpret_fixed): New static function.
10221 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10222 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10223 (native_encode_fixed): New static function.
10224 (native_encode_expr) <FIXED_CST>: Use it.
10225 (native_interpret_int): Move double_int worker code to...
10226 * double-int.c (double_int::from_buffer): ...this new static method.
10227 * double-int.h (double_int::from_buffer): Prototype it.
10228
d394a308
RB
102292013-01-30 Richard Biener <rguenther@suse.de>
10230
10231 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10232 New pointer-map and obstack.
10233 (init_alias_vars): Allocate pointer-map and obstack.
10234 (delete_points_to_sets): Free them.
10235 (find_what_var_points_to): Cache result.
10236 (find_what_p_points_to): Adjust for changed interface of
10237 find_what_var_points_to.
10238 (compute_points_to_sets): Likewise.
10239 (ipa_pta_execute): Likewise.
10240
20804d96
RO
102412013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10242
10243 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10244 * configure: Regenerate.
10245 * config.in: Regenerate.
10246 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10247 #nobits/#progbits if supported.
10248
a7ad88a2
OE
102492013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10250
10251 PR target/56121
10252 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10253 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10254 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10255
7af79f92
GY
102562013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10257
91bfca59
OE
10258 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10259 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 10260
753bcf7b
GY
102612013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10262
91bfca59
OE
10263 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10264 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 10265
8cbc2ea8
GY
102662013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10267
91bfca59
OE
10268 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10269 declaration.
10270 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10271 * config/arm/cortex-a7.md: New bypasses using
10272 arm_mac_accumulator_is_result.
8cbc2ea8 10273
697a3325
GY
102742013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10275
91bfca59 10276 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 10277 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
10278 (cortex_a7_fpfmad): New reservation.
10279 (cortex_a7_fpmacs): Use ffmas and update required units.
10280 (cortex_a7_fpmuld): Update required units and latency.
10281 (cortex_a7_fpmacd): Likewise.
10282 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10283 (cortex_a7_neon). Likewise.
10284 (bypass) Update participating units.
697a3325 10285
29637783
GY
102862013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10287
91bfca59
OE
10288 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10289 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10290 from fmac to ffma.
10291 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10292 (vfp_fmul): Use ffmad.
10293 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10294 (cortex_r4_fmacd): Use ffmad.
10295 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10296 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10297 (cortex_a9_fmacd): Use ffmad.
10298 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10299 (cortex_a8_vfp_macd): Use ffmad.
10300 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10301 (cortex_a5_fpmacd): Use ffmad.
10302 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10303 (cortex_a15_vfp_macd): Use ffmad.
10304 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 10305
2ee8a2d5
JM
103062013-01-29 Jason Merrill <jason@redhat.com>
10307
10308 PR libstdc++/54314
10309 * varasm.c (default_assemble_visibility): Don't warn about
10310 visibility on artificial decls.
10311
78d087bc
RB
103122013-01-29 Richard Biener <rguenther@suse.de>
10313
10314 PR tree-optimization/56113
10315 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10316 the bitmap leader.
10317 (label_visit): Free duplicate bitmaps and record the leader instead.
10318 (perform_var_substitution): Adjust.
10319
83ba4d6f
RB
103202013-01-29 Richard Biener <rguenther@suse.de>
10321
10322 PR tree-optimization/55270
10323 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10324 the CFG, schedule loops for fixup.
10325
66dfe13f
NC
103262013-01-29 Nick Clifton <nickc@redhat.com>
10327
10328 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10329 SP_REG.
10330
5a579c3b
LE
103312013-01-28 Leif Ekblad <leif@rdos.net>
10332
10333 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10334 * config/i386/i386.h (TARGET_RDOS): New macro.
10335 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10336 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10337 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10338 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10339 DEFAULT_LARGE_SECTION_THRESHOLD.
10340 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10341 * config/i386/rdos.h: New file.
10342 * config/i386/rdos64.h: New file.
10343
51e44392
BS
103442013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10345
10346 PR other/54814
10347 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10348 TEST_HARD_REG_BIT.
10349
db1fb332
JJ
103502013-01-28 Jakub Jelinek <jakub@redhat.com>
10351
10352 PR rtl-optimization/56117
10353 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10354 call cselib_lookup_from_insn on the MEM before calling
10355 add_insn_mem_dependence.
10356
16917761
RB
103572013-01-28 Richard Biener <rguenther@suse.de>
10358
10359 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10360 to a stmt that didn't have one.
10361 (copy_phis_for_bb): Likewise for PHI arguments.
10362 (copy_debug_stmt): Likewise for debug stmts.
10363
b9fc0497
RB
103642013-01-28 Richard Biener <rguenther@suse.de>
10365
10366 PR tree-optimization/56034
6edc3e32 10367 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
10368 (partition_builtin_p): Adjust.
10369 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10370 it is the last partition.
10371 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10372 up the vertex for the definition.
10373 (classify_partition): Classify whether a partition is a
10374 PKIND_REDUCTION, thus has uses outside of the loop.
10375 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10376 Merge all PKIND_REDUCTION partitions into the last partition.
10377 (tree_loop_distribution): Seed partitions from reductions as well.
10378
aa710d25
JJ
103792013-01-28 Jakub Jelinek <jakub@redhat.com>
10380
0bfbca58
JJ
10381 PR tree-optimization/56125
10382 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10383 pow(x,c) into sqrt(x) * powi(x, n/2) or
10384 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10385 optimizing for size.
10386 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10387 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10388 integer.
10389
aa710d25
JJ
10390 PR tree-optimization/56094
10391 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10392 to UNKNOWN_LOCATION while gimplifying expr.
10393
77dc5297
UB
103942013-01-27 Uros Bizjak <ubizjak@gmail.com>
10395
10396 PR target/56114
10397 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10398 operand 0 in movabs insn template for -masm=intel asm alternative.
10399 (*movabs<mode>_2): Ditto for operand 1.
10400
0bfbca58 104012013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
10402
10403 PR target/54663
10404 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10405 of microblaze-c.o
10406
0bfbca58 104072013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
10408
10409 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10410 tm_file.
10411
0bfbca58 104122013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
10413
10414 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10415 Undef to avoid warning.
10416
478f60f9
MH
104172013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10418
10419 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10420 * configure: Regenerate.
10421
d7fa6ee2
JJ
104222013-01-25 Jakub Jelinek <jakub@redhat.com>
10423
10424 PR tree-optimization/56098
10425 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10426 for stmts with volatile ops.
10427 (cond_store_replacement): Don't optimize if assign has volatile ops.
10428 (cond_if_else_store_replacement_1): Don't optimize if either
10429 then_assign or else_assign have volatile ops.
10430 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10431 volatile ops.
10432
f8fe87bd
GJL
104332013-01-25 Georg-Johann Lay <avr@gjlay.de>
10434
10435 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10436
28398d0d
GJL
104372013-01-25 Georg-Johann Lay <avr@gjlay.de>
10438
10439 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10440 missing ':' in asm example.
10441
b7d7d917
TB
104422013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10443
10444 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10445 entries into lane and laneq entries.
77dc5297
UB
10446 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10447 Remove AdvSIMD scalar modes.
b7d7d917
TB
10448 (aarch64_sq<r>dmulh_laneq<mode>): New.
10449 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10450 modes.
10451 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10452 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10453 * config/aarch64/iterators.md (VCOND): New.
10454 (VCONQ): New.
10455
556f9906
GJL
104562013-01-25 Georg-Johann Lay <avr@gjlay.de>
10457
10458 PR target/54222
10459 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10460 Add NULL LIBNAME argument to existing definitions.
10461 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10462 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10463 * config/avr/avr.c (DEF_BUILTIN): Same.
10464 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10465 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10466 implementation is available (DECL_ASSEMBLER_NAME is set).
10467 (avr_fold_absfx): New static function.
10468 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10469 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10470 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10471 AVR_BUILTIN_ABSLLK.
10472 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10473 (abshk, absk, abslk, absllk): Provide as static inline functions.
10474
1f546bbb
MP
104752013-01-25 Marek Polacek <polacek@redhat.com>
10476
10477 PR tree-optimization/56035
10478 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10479
7e184bd7
UB
104802012-01-24 Uros Bizjak <ubizjak@gmail.com>
10481
10482 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10483 (*movtf_internal_rex64): Add (!o,C) alternative
10484 (*movxf_internal_rex64): Ditto.
10485 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10486
f5ba49ac
SM
104872013-01-24 Shenghou Ma <minux.ma@gmail.com>
10488
10489 * doc/invoke.texi: fix typo.
10490 * doc/objc.texi: fix typo.
10491
a6343728
RS
104922013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10493
10494 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10495 for the first two alternatives.
10496
cd030c07
DN
104972013-01-24 Diego Novillo <dnovillo@google.com>
10498
77dc5297 10499 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
10500 (ggc-zone.o): Remove.
10501 * configure.ac: Remove option --with-gc.
10502 * configure: Re-generate.
10503 * doc/install.texi: Remove documentation for --with-gc.
10504 * gengtype.c (write_enum_defn): Remove. Update all users.
10505 (write_Types_process_field): Remove generation of gt_e_* argument.
10506 (output_type_enum): Remove. Update all users.
10507 (write_enum_defn): Remove. Update all users.
10508 (enum alloc_zone): Remove. Update all users.
77dc5297 10509 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
10510 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10511 Update all callers.
10512 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 10513 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
10514 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10515 Update all users.
aaf1e810 10516 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
10517 (struct alloc_zone): Remove.
10518 (ggc_internal_alloc_zone_stat): Remove.
10519 (ggc_internal_cleared_alloc_zone_stat): Remove.
10520 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
10521 (ggc_pch_count_object): Remove last argument. Update all users.
10522 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
10523 (struct alloc_zone): Remove.
10524 * ggc-zone.c: Remove.
77dc5297 10525 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
10526 (struct alloc_zone): Remove.
10527 (ggc_alloc_typed_stat): Remove.
10528 (ggc_alloc_typed): Remove.
10529 (ggc_splay_alloc): Remove first argument.
10530 (rtl_zone): Remove. Update all users.
10531 (tree_zone): Remove. Update all users.
10532 (tree_id_zone): Remove. Update all users.
10533 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 10534 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 10535 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 10536 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 10537
a861ffa4
GJL
105382013-01-24 Georg-Johann Lay <avr@gjlay.de>
10539
10540 * config/avr/avr.c (avr_out_fract): Make register numbers that
10541 might be outside of source operand signed.
10542
593c0ddd
UB
105432013-01-24 Uros Bizjak <ubizjak@gmail.com>
10544
10545 * config/i386/constraints.md (Yf): New constraint.
10546 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10547 of f constraint to conditionaly disable x87 register preferences.
10548 (*movdf_internal): Ditto.
10549 (*movsf_internal): Ditto.
10550
e86c0101
SB
105512013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10552
10553 PR inline-asm/55934
10554 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10555 that have operands with impossible constraints.
10556 Add a FIXME for a speed-up opportunity.
10557 * lra-constraints.c (process_alt_operands): Verify that a class
10558 selected from constraints on asms is valid for the operand mode.
10559 (curr_insn_transform): Remove incorrect comment.
10560
f6fee35f
DE
105612013-01-23 David Edelsohn <dje.gcc@gmail.com>
10562
10563 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10564 TOC operand is a valid symbol ref in the constant pool.
10565
105662013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 10567
aaf1e810 10568 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 10569
dc62d7d1
GJL
105702013-01-23 Georg-Johann Lay <avr@gjlay.de>
10571
10572 PR target/54222
10573 * config/avr/stdfix.h: New file.
10574 * t-avr (stdfix-gcc.h): New rule to build it.
10575 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10576
2660d12d
KS
105772013-01-23 Kostya Serebryany <kcc@google.com>
10578
77dc5297
UB
10579 * config/darwin.h: remove dependency on
10580 CoreFoundation (asan on Mac OS).
2660d12d 10581
a70418fc
JJ
105822013-01-23 Jakub Jelinek <jakub@redhat.com>
10583
10584 PR target/49069
10585 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10586 instead of cmpdi_operand for first comparison operand.
10587 Don't assert that comparison operands aren't both constants.
10588
47876a2a
JW
105892013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10590
10591 * doc/install.texi (Downloading the Source): Update references to
10592 downloading separate components.
10593
105942013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
10595
10596 * doc/extend.texi (__int128): Improve grammar.
10597
47876a2a 105982013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
10599
10600 PR target/56028
10601 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10602 alternative to (o,r).
10603 (*movdi_internal_rex64): Remove (!o,n) alternative.
10604 (DImode immediate->memory splitter): Remove.
10605 (DImode immediate->memory peephole2): Remove.
10606 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10607 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10608 alternative to (!o,*r).
10609 (*movtf_internal_sse): New pattern.
10610 (*movxf_internal_rex64): New pattern.
10611 (*movxf_internal): Disable for TARGET_64BIT.
10612 (*movdf_internal_rex64): Remove (!o,F) alternative.
10613
3a984f10
JJ
106142013-01-22 Jakub Jelinek <jakub@redhat.com>
10615
502498d5
JJ
10616 PR middle-end/56074
10617 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10618 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10619 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10620 stmt locations where LOCATION_LOCUS of the stmt location is
10621 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10622
3a984f10
JJ
10623 PR target/55686
10624 * config/i386/i386.md (UNSPEC_STOS): New.
10625 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10626 *strsetqi_1): Add UNSPEC_STOS.
10627
fa817f7f
PC
106282013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10629
10630 PR c++/56067
10631 * doc/invoke.texi: Remove left over -Wsynth example.
10632
8f498c1b
JJ
106332013-01-21 Jakub Jelinek <jakub@redhat.com>
10634
10635 PR tree-optimization/56051
10636 * fold-const.c (fold_binary_loc): Don't fold
10637 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10638 a narrowing conversion, or widening conversion from signed
10639 to unsigned.
10640
47876a2a 106412013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
10642
10643 PR rtl-optimization/56023
10644 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10645 dependent on debug instruction.
10646
5b9db1bc
MJ
106472013-01-21 Martin Jambor <mjambor@suse.cz>
10648
10649 PR middle-end/56022
10650 * function.c (allocate_struct_function): Call
10651 invoke_set_current_function_hook earlier.
10652
e8bb7d68
JJ
106532013-01-21 Jakub Jelinek <jakub@redhat.com>
10654
10655 * reload1.c (init_reload): Only initialize reload_obstack
10656 during the first call.
10657
616a4e32
MP
106582013-01-21 Marek Polacek <polacek@redhat.com>
10659
10660 * cfgloop.c (verify_loop_structure): Fix up grammar.
10661
4401981b
YHH
106622013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10663
10664 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10665 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10666
8e87740b
RR
106672013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10668
10669 PR target/56058
10670 * config/arm/marvell-pj4.md: Update copyright year.
10671 Fix up use of alu to alu_reg and simple_alu_imm.
10672
47876a2a 106732013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
10674
10675 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10676
89d56d79
VM
106772013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10678
10679 PR target/55433
10680 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 10681 insn for secondary memory move when memory mode should be different.
89d56d79 10682
fe603553
JDA
106832013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10684
10685 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10686 atomic_storedi_1): New patterns.
10687
01284895
VK
106882013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10689
10690 btver2 pipeline descriptions.
10691 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10692 descriptions.
10693 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 10694 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
10695 type attributes.
10696 * config/i386/btver2.md: New file describing btver2 pipelines.
10697
5630e3e1
JL
106982013-01-19 Andrew Pinski <apinski@cavium.com>
10699
10700 PR tree-optimization/52631
10701 * tree-ssa-sccvn (visit_use): Before looking up the original
10702 statement, try looking up the simplified expression.
10703
650ae806
AG
107042013-01-19 Anthony Green <green@moxielogic.com>
10705
10706 * config/moxie/moxie.c (moxie_expand_prologue): Set
10707 current_function_static_stack_size.
10708
e300ec2d
JJ
107092013-01-18 Jakub Jelinek <jakub@redhat.com>
10710
10711 PR tree-optimization/56029
10712 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10713 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10714
a3d7af04
SS
107152013-01-18 Sharad Singhai <singhai@google.com>
10716
10717 PR tree-optimization/55995
10718 * dumpfile.c (dump_loc): Print location only if available.
10719 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10720
66aa7879
VM
107212013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10722
10723 PR target/55433
10724 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10725 secondary memory move.
10726 (inherit_reload_reg): Use rclass instead of cl for
10727 check_secondary_memory_needed_p.
10728
3f0fee7b
JJ
107292013-01-18 Jakub Jelinek <jakub@redhat.com>
10730
10731 PR middle-end/56015
10732 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 10733 the case where writing real complex part of target modifies op1.
3f0fee7b 10734
70c67693
JG
107352013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10736
10737 * config/aarch64/aarch64-simd.md
10738 (aarch64_vcond_internal<mode>): Handle unordered cases.
10739 * config/aarch64/iterators.md (v_cmp_result): New.
10740
df8de9b3
YHH
107412013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10742 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10743
10744 * config/arm/marvell-pj4.md: New file.
10745 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10746 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10747 (generic_vfp): Likewise.
10748 * config/arm/arm-cores.def: Add marvell-pj4.
10749 * config/arm/arm-tune.md: Regenerate.
10750 * config/arm/arm-tables.opt: Regenerate.
10751 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10752 * doc/invoke.texi: Document marvell-pj4.
10753
be30c356
TB
107542013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10755
10756 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10757
0bfbca58 107582013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
10759
10760 PR debug/54114
10761 PR debug/54402
10762 PR debug/49888
10763 * var-tracking.c (negative_power_of_two_p): New.
10764 (global_get_addr_cache, local_get_addr_cache): New.
10765 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10766 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10767 heading comment.
10768 (vt_stack_offset_p): Remove.
10769 (vt_canon_true_dep): Always canonicalize loc's address.
10770 (clobber_overlapping_mems): Make sure we have a MEM.
10771 (local_get_addr_clear_given_value): New.
10772 (val_reset): Clear local cached entries.
10773 (compute_bb_dataflow): Create and release the local cache.
10774 Disable duplicate MEMs clobbering.
10775 (emit_notes_in_bb): Clobber MEMs likewise.
10776 (vt_emit_notes): Create and release the local cache.
10777 (vt_initialize, vt_finalize): Create and release the global
10778 cache, respectively.
1f6bc337 10779 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 10780
0bfbca58 107812013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
10782
10783 PR libmudflap/53359
10784 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10785 not found in the symtab.
10786
0bfbca58 107872013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 10788
c350ba53 10789 PR debug/56006
3aa03517
AO
10790 PR rtl-optimization/55547
10791 PR rtl-optimization/53827
10792 PR debug/53671
10793 PR debug/49888
10794 * alias.c (offset_overlap_p): New, factored out of...
10795 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10796 the conservative special case for symbolic constants. Don't
10797 adjust zero sizes on alignment.
10798
c664546f
JL
107992013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10800
10801 PR rtl-optimization/52573
10802 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10803 REG_UNUSED for the same register.
10804
1bd3f750
MP
108052013-01-17 Richard Biener <rguenther@suse.de>
10806 Marek Polacek <polacek@redhat.com>
10807
10808 PR rtl-optimization/55833
10809 * loop-unswitch.c (unswitch_loops): Move loop verification...
10810 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10811 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10812 Set it to true when we're removing a loop from hierarchy tree in
10813 an irreducible region.
10814 (fix_bb_placements): Adjust caller.
10815 (fix_loop_placements): Likewise.
10816
e52a8b71
GJL
108172013-01-17 Georg-Johann Lay <avr@gjlay.de>
10818
10819 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10820 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10821 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10822 Remove ID. Adjust comments.
10823 * config/avr/avr-c.c (avr_builtin_name): Remove.
10824 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10825 * config/avr/avr.c (avr_tolower): New static function.
10826 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10827 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10828 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10829 default expansion.
10830
8386a7ea
JH
108312013-01-17 Jan Hubicka <jh@suse.cz>
10832
610fb637 10833 PR tree-optimization/55273
8386a7ea
JH
10834 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10835
47876a2a 108362013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
10837
10838 PR target/55981
10839 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10840 store through atomic_store<mode>_1.
10841 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10842
8222c37e
MJ
108432013-01-17 Martin Jambor <mjambor@suse.cz>
10844
10845 PR tree-optimizations/55264
10846 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10847 for virtual methods.
10848 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10849 virtual methods before inlining is over.
10850 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10851 virtual functions.
10852 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10853 non-virtual.
10854
79f01c76
VM
108552013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10856
10857 PR rtl-optimization/56005
10858 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10859 pending reads for prefetch.
10860
d0b6bb1b
IB
108612013-01-16 Ian Bolton <ian.bolton@arm.com>
10862
aaf1e810 10863 * config/aarch64/aarch64.md
d0b6bb1b
IB
10864 (*cstoresi_neg_uxtw): New pattern.
10865 (*cmovsi_insn_uxtw): New pattern.
10866 (*<optab>si3_uxtw): New pattern.
10867 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10868 (*<optab>si3_insn_uxtw): New pattern.
10869 (*bswapsi2_uxtw): New pattern.
10870
cb9cf03b
RB
108712013-01-16 Richard Biener <rguenther@suse.de>
10872
10873 * tree-inline.c (tree_function_versioning): Remove set but
10874 never used variable.
10875
2cfc56b9
RB
108762013-01-16 Richard Biener <rguenther@suse.de>
10877
10878 PR tree-optimization/55964
10879 * tree-flow.h (rename_variables_in_loop): Remove.
10880 (rename_variables_in_bb): Likewise.
10881 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10882 (copy_loop_before): Adjust and delete update-ssa status.
10883 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 10884 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
10885 (rename_variables_in_loop): Remove.
10886 (slpeel_update_phis_for_duplicate_loop): Likewise.
10887 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10888 use available cfg machinery instead of duplicating it.
10889 Update PHI nodes and perform poor-mans SSA update here.
10890 (slpeel_tree_peel_loop_to_edge): Adjust.
10891
c25a0c60
RB
108922013-01-16 Richard Biener <rguenther@suse.de>
10893
10894 PR tree-optimization/54767
10895 PR tree-optimization/53465
10896 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10897 (vrp_visit_phi_node): For PHI arguments coming via backedges
10898 drop all symbolical range information.
10899 (execute_vrp): Compute backedges.
10900
04b535af
RB
109012013-01-16 Richard Biener <rguenther@suse.de>
10902
10903 * doc/install.texi: Update CLooG and ISL requirements to
10904 0.18.0 and 0.11.1.
10905
8b0a1e0b
CB
109062013-01-16 Christian Bruel <christian.bruel@st.com>
10907
10908 PR target/55301
10909 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10910 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10911 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10912
109132013-01-16 DJ Delorie <dj@redhat.com>
10914
10915 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10916 (UNSPECV_SP_SWITCH_E): New.
10917 (sp_switch_1): Change to an unspec.
10918 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10919 replace $r15.
10920
109212013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
10922
10923 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10924 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10925 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10926 (expand_mem_thread_fence): Ditto.
10927 (expand_mem_signal_fence): Ditto.
10928 (expand_atomic_load): Ditto.
10929 (expand_atomic_store): Ditto.
10930
0bfbca58 109312013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
10932
10933 PR rtl-optimization/55547
10934 PR rtl-optimization/53827
10935 PR debug/53671
10936 PR debug/49888
10937 * alias.c (memrefs_conflict_p): Set sizes to negative after
10938 AND adjustments.
10939
305e3ac1
JJ
109402013-01-15 Jakub Jelinek <jakub@redhat.com>
10941
10942 PR target/55940
10943 * function.c (thread_prologue_and_epilogue_insns): Always
10944 add crtl->drap_reg to set_up_by_prologue.set, even if
10945 stack_realign_drap is false.
10946
f78ac4f2
JBG
109472013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10948
10949 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10950 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10951 *call): Fix indention.
10952
a78a8cc4
TV
109532013-01-15 Tom de Vries <tom@codesourcery.com>
10954
10955 PR target/55876
10956 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10957 Update comment.
10958
0e80383f
VM
109592013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10960
305e3ac1 10961 PR rtl-optimization/55153
0e80383f
VM
10962 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10963
207b5956
MJ
109642013-01-15 Martin Jambor <mjambor@suse.cz>
10965
10966 PR tree-optimization/55920
10967 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10968 accesses as grp_to_be_debug_replaced.
10969
a7818b54
JJ
109702013-01-15 Jakub Jelinek <jakub@redhat.com>
10971
10972 PR tree-optimization/55920
10973 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10974 there is non-useless type conversion needed from debug rhs to lhs,
10975 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10976
b0fe107e
JM
109772013-01-15 Joseph Myers <joseph@codesourcery.com>
10978 Mikael Pettersson <mikpe@it.uu.se>
10979
10980 PR target/43961
10981 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10982 Thumb.
10983 (ASM_OUTPUT_CASE_LABEL): Remove.
10984 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10985 * final.c (shorten_branches): Update alignment of labels before
10986 jump tables if CASE_VECTOR_SHORTEN_MODE.
10987
34ab62ee
RB
109882013-01-15 Richard Biener <rguenther@suse.de>
10989
10990 PR bootstrap/55961
10991 * system.h: Do not include gmp.h for building host tools.
10992
783a3a05
RB
109932013-01-15 Richard Biener <rguenther@suse.de>
10994
10995 PR middle-end/55882
10996 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10997 account for bitpos when computing alignment.
10998
3a579e09
VY
109992013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11000
11001 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11002 (ix86_target_macros_internal): Likewise.
11003
11004 * config/i386/i386.c (m_CORE2I7): Removed.
11005 (m_CORE_HASWELL): New macro.
11006 (m_CORE_ALL): Likewise.
11007 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11008 (initial_ix86_arch_features): Likewise.
11009 (processor_target_table): Initializations for Core avx2.
11010 (cpu_names): New names "core-avx2".
11011 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11012 PROCESSOR_CORE_HASWELL.
11013 (ix86_issue_rate): New case.
11014 (ia32_multipass_dfa_lookahead): Likewise.
11015 (ix86_sched_init_global): Likewise.
11016
11017 * config/i386/i386.h (TARGET_HASWELL): New macro.
11018 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11019 (processor_type): New PROCESSOR_HASWELL.
11020
955f5a07
JJ
110212013-01-15 Jakub Jelinek <jakub@redhat.com>
11022
ff784829
JJ
11023 PR tree-optimization/55955
11024 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11025 *SHIFT_EXPR and *ROTATE_EXPR codes.
11026
955f5a07
JJ
11027 PR tree-optimization/48766
11028 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11029 -ftrapv disable -fwrapv.
11030
aeb8b4e9
GJL
110312013-01-14 Georg-Johann Lay <avr@gjlay.de>
11032
11033 PR target/55974
11034 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11035 etc. to 1 and not to __flash.
11036 Use LL suffix for __INT24_MAX__ with -mint8.
11037 Use ULL suffix for __UINT24_MAX__ with -mint8.
11038
1c494c6a
GJL
110392013-01-14 Georg-Johann Lay <avr@gjlay.de>
11040
11041 * config/avr/avr-arch.h
11042 (struct base_arch_s): Use typedef avr_arch_t instead.
11043 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11044 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11045 * config/avr/avr.c: Same.
11046 * config/avr/avr-devices.c: Same.
11047 * config/avr/driver-avr.c: Same.
11048 * config/avr/gen-avr-mmcu-texi.c: Same.
11049 * config/avr/avr-mcus.def: Adjust comment.
11050
a50344cb
TB
110512013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11052
88e784e6
UB
11053 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11054 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 11055
47876a2a 110562013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
11057 Andi Kleen <ak@linux.intel.com>
11058
11059 PR target/55948
11060 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11061 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11062 memmodel flag.
11063
00892272
GJL
110642013-01-14 Georg-Johann Lay <avr@gjlay.de>
11065
11066 * config/avr/avr-stdint.h: Remove trailing blanks.
11067 * config/avr/avr-log.h: Same.
11068 * config/avr/avr-arch.h: Same.
11069 * config/avr/avr-devices.c: Same.
11070 * config/avr/avr-dimode.md: Same.
11071 * config/avr/predicates.md: Same.
11072 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 11073
00892272
GJL
11074 * config/avr/avr-protos.h: Same. And:
11075 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11076 (init_cumulative_args): Rename to avr_init_cumulative_args.
11077 (expand_prologue): Rename to avr_expand_prologue.
11078 (expand_epilogue): Rename to avr_expand_epilogue.
11079 (adjust_insn_length): Rename to avr_adjust_insn_length.
11080 (notice_update_cc): Rename to avr_notice_update_cc.
11081 (final_prescan_insn): Rename to avr_final_prescan_insn.
11082 * config/avr/avr.c: Same.
11083 * config/avr/avr.h: Same.
11084 * config/avr/avr.md: Remove trailing blanks.
11085 (prologue): Use avr_expand_prologue.
11086 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11087
7bb01996
RB
110882013-01-14 Richard Biener <rguenther@suse.de>
11089
11090 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11091 verify_location, collect_subblocks): New functions.
11092 (verify_gimple_in_cfg): Verify that locations only reference
11093 BLOCKs in the functions BLOCK tree.
11094
2724573f
RB
110952013-01-14 Richard Biener <rguenther@suse.de>
11096
11097 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11098 PHI argument.
11099 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11100 unshare reference.
11101 (insert_out_of_ssa_copy_on_edge): Likewise.
11102 (rewrite_close_phi_out_of_ssa): Likewise.
11103 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11104 debug expressions.
11105 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11106 propagated constants.
11107 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11108 can not be shared.
11109
9a0bbab6
GJL
111102013-01-14 Georg-Johann Lay <avr@gjlay.de>
11111
11112 * config/avr/avr-modes.def: Add GPL copyright notice.
11113
45805f17
UB
111142013-01-13 Uros Bizjak <ubizjak@gmail.com>
11115
11116 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11117 MEMMODEL_MASK to determine memory model.
11118 (atomic_store<mode>): Ditto from operands[2].
11119 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11120
9d60be38
JJ
111212013-01-13 Jakub Jelinek <jakub@redhat.com>
11122
11123 PR fortran/55935
45805f17 11124 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
11125 (fold_gimple_assign): Don't call unshare_expr here.
11126 (fold_ctor_reference): Call unshare_expr.
11127
e7f49d92
TG
111282013-01-13 Terry Guo <terry.guo@arm.com>
11129
aaf1e810
EB
11130 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11131 * doc/fragments.texi: Document MULTILIB_REUSE.
11132 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 11133 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 11134 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
11135 (tmpmultilib4): Ditto.
11136 (multilib_reuse): New multilib argument.
11137
fbd03a27
RS
111382013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11139
11140 * Makefile.in: Update copyright.
11141
b3681f13
TV
111422013-01-12 Tom de Vries <tom@codesourcery.com>
11143
11144 PR middle-end/55890
11145 * calls.c (expand_call): Check if arg_nr is valid.
11146
3f287e4b
MM
111472013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11148
11149 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11150 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
11151 documentation. Add missing '__' in front of
11152 __builtin_ia32_packssdw256.
3f287e4b 11153
1abcd5eb
AK
111542013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11155
11156 PR target/55719
11157 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11158 NO_REGS for larl operands.
11159 (s390_reload_larl_operand): Use s390_load_address instead of
11160 emit_move_insn.
11161
980d0812
RB
111622013-01-11 Richard Biener <rguenther@suse.de>
11163
11164 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11165 (verify_node_sharing): ... here.
11166 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11167
7cb9fd07
EB
111682013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11169
11170 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11171 Substitute TREECHECKING.
11172 * configure: Regenerate.
11173 * Makefile.in (TREECHECKING): New.
11174
47876a2a 111752013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
11176
11177 PR tree-optimization/44061
11178 * tree-vrp.c (extract_range_basic): Compute zero as
11179 value-range for __builtin_constant_p of function parameters.
11180
d1e082c2
RS
111812013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11182
45805f17 11183 Update copyright years.
d1e082c2 11184
f85021b0
VM
111852013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11186
9d60be38 11187 PR rtl-optimization/55672
0160442c
VM
11188 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11189 const to be eliminable.
f85021b0 11190
7a8b1ec4
DE
111912013-01-10 David Edelsohn <dje.gcc@gmail.com>
11192
11193 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11194 * configure: Regenerate.
11195
ad2e5b71
RB
111962013-01-10 Richard Biener <rguenther@suse.de>
11197
ddf9322d 11198 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 11199
ffc5b2bb
RB
112002013-01-10 Richard Biener <rguenther@suse.de>
11201
11202 PR bootstrap/55792
11203 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11204 locations for virtual PHI arguments.
11205 (rewrite_update_phi_arguments): Likewise.
11206
e1f674e4
JS
112072013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11208
11209 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11210 on to assembler.
11211
a57fc743
JJ
112122013-01-10 Jakub Jelinek <jakub@redhat.com>
11213
11214 PR tree-optimization/55921
11215 * tree-complex.c (expand_complex_asm): New function.
11216 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11217
0ff4390d
AK
112182013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11219
11220 PR target/55718
11221 * config/s390/s390.c (s390_symref_operand_p)
11222 (s390_loadrelative_operand_p): Merge the two functions.
11223 (s390_check_qrst_address, print_operand_address): Add parameters
11224 to s390_loadrelative_operand_p invokation.
11225 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11226 (s390_reload_larl_operand, s390_secondary_reload): Use
11227 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11228 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11229
6f557e0e
MS
112302013-01-09 Mike Stump <mikestump@comcast.net>
11231
11232 * dse.c (record_store): Remove unnecessary assert.
11233
7770c9e9
JH
112342013-01-09 Jan Hubicka <jh@suse.cz>
11235
11236 PR tree-optimization/55569
11237 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11238 * cfgloop.h (scale_loop_profile): Likewise.
11239
a19b1432
JH
112402013-01-09 Jan Hubicka <jh@suse.cz>
11241
11242 PR lto/45375
ddf9322d
UB
11243 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11244 functions.
a19b1432
JH
11245 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11246
9a002da8
RS
112472013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11248
11249 PR middle-end/55114
11250 * expr.h (maybe_emit_group_store): Declare.
11251 * expr.c (maybe_emit_group_store): New function.
11252 * builtins.c (expand_builtin_int_roundingfn): Call it.
11253 (expand_builtin_int_roundingfn_2): Likewise.
11254
511dcace
VM
112552013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11256
e1f2b729 11257 PR rtl-optimization/55829
511dcace
VM
11258 * lra-constraints.c (match_reload): Add code for absent output.
11259 (curr_insn_transform): Add code for reloads of matched inputs
11260 without output.
11261
7b0fe4f4
UB
112622013-01-09 Uros Bizjak <ubizjak@gmail.com>
11263
11264 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11265 attribute of movddup insn to DF.
11266 (*vec_interleave_lowv2df): Ditto.
11267 (vec_dupv2df): Ditto.
11268
870ca331
JH
112692013-01-09 Jan Hubicka <jh@suse.cz>
11270
11271 PR tree-optimiation/55875
11272 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11273 EVERY_ITERATION parameter.
7b0fe4f4 11274 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
11275 (idx_infer_loop_bounds): Similarly here.
11276 (n_of_executions_at_most): Simplify
11277 to only test for cases where statement is dominated by the
7b0fe4f4 11278 particular bound; handle correctly the "postdominance" test.
870ca331
JH
11279 (scev_probably_wraps_p): Use max loop iterations info
11280 as a global bound first.
11281
6f575fe4 112822013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
11283 Nick Clifton <nickc@redhat.com>
11284
11285 * config/v850/v850.md (cbranchsf4): New pattern.
11286 (cstoresf4): New pattern.
11287 (cbranchdf4): New pattern.
11288 (cstoredf4): New pattern.
11289 (movsicc): Disallow floating point comparisons.
11290 (cmpsf_le_insn): Fix order of operators.
11291 (cmpsf_lt_insn): Likewise.
11292 (cmpsf_eq_insn): Likewise.
11293 (cmpdf_le_insn): Likewise.
11294 (cmpdf_lt_insn): Likewise.
11295 (cmpdf_eq_insn): Likewise.
11296 (cmpsf_ge_insn): Use LE comparison.
11297 (cmpdf_ge_insn): Likewise.
11298 (cmpsf_gt_insn): Use LT comparison.
11299 (cmpdf_gt_insn): Likewise.
11300 (cmpsf_ne_insn): Delete pattern.
11301 (cmpdf_ne_insn): Delete pattern.
11302 * config/v850/v850.c (v850_gen_float_compare): Use
11303 gen_cmpdf_eq_insn for NE comparison.
11304 (v850_float_z_comparison_operator)
11305 (v850_float_nz_comparison_operator): Move from here ...
11306 * config/v850/predicates.md: ... to here. Move GT and GE
11307 comparisons into v850_float_z_comparison_operator.
11308 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11309 Delete prototype.
11310 (v850_float_nz_comparison_operator): Likewise.
11311
f0d54148
JDA
113122013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11313
11314 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11315 with calls to gen_insvsi/gen_insvdi.
11316
8f01beca
VK
113172013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11318
11319 * config/i386/i386.c (initial_ix86_tune_features): Set up
11320 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11321
2aa579ad
JJ
113222013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11323 Jakub Jelinek <jakub@redhat.com>
11324
11325 PR tree-optimization/48189
11326 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11327 If nitercst is 0, don't predict the exit edge.
11328
6edc3e32 113292013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
11330
11331 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11332 in asm_fprintf with reg_names.
11333 (aarch64_print_operand_address): Likewise.
11334 (aarch64_return_addr): Likewise.
11335 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11336
f6f94d94
JDA
113372013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11338
11339 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11340 (INT_U6_BITS): Likewise.
11341 * config/pa/predicates.md (uint6_operand): New predicate.
11342 (shift5_operand, shift6_operand): Likewise.
11343 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11344 arith32_operand.
11345 (lshrdi3): Use shift6_operand.
11346 (shrpsi4, shrpdi4): New insn patterns.
11347 (extzv): Delete expander.
11348 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11349 predicates in unamed zero extract patterns. Tighten common constraint.
11350 (extv): Delete expander.
11351 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11352 predicates in unamed sign extract patterns. Tighten common constraint.
11353 (insv): Delete expander.
11354 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11355 predicates in unamed insert patterns. Tighten common constraint.
11356 Change uint32_operand predicate to uint6_operand predicate in unamed
11357 DImode pattern to insert constant values of type 1...1xxxx.
11358
36b72910
JH
113592013-01-04 Jan Hubicka <jh@suse.cz>
11360
11361 PR tree-optimization/55823
7b0fe4f4
UB
11362 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11363 issue.
36b72910 11364
47876a2a 113652013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
11366 Uros Bizjak <ubizjak@gmail.com>
11367
11368 PR rtl-optimization/55845
11369 * df-problems.c (can_move_insns_across): Stop scanning at
11370 volatile_insn_p source instruction or give up if
11371 across_from .. across_to range contains any volatile_insn_p
11372 instructions.
11373
4369c11e
TB
113742013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11375
7b0fe4f4
UB
11376 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11377 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11378 Declare.
4369c11e 11379 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 11380 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 11381
aeb7e7c1
JJ
113822013-01-08 Jakub Jelinek <jakub@redhat.com>
11383
11384 PR fortran/55341
11385 * asan.c (asan_clear_shadow): New function.
11386 (asan_emit_stack_protection): Use it.
11387
a02ad1aa
TB
113882013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11389
11390 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11391 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11392 with tab instead of space.
11393
f90d87f5
NC
113942013-01-08 Nick Clifton <nickc@redhat.com>
11395
11396 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11397 register bank 0 at the start of an interrupt handler.
83ffd964
NC
11398 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11399 MDBH registers.
f90d87f5 11400
385eb93d
JG
114012013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11402
11403 * config/aarch64/aarch64-simd.md
11404 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11405 (aarch64_simd_bsl): Likewise.
11406 (aarch64_vcond_internal<mode>): Likewise.
11407 (vcond<mode><mode>): Likewise.
11408 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11409 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11410
4dcd1054
JG
114112013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11412
11413 * config/aarch64/aarch64-builtins.c
11414 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11415
4267a4a6
MJ
114162013-01-08 Martin Jambor <mjambor@suse.cz>
11417
11418 PR debug/55579
11419 * tree-sra.c (analyze_access_subtree): Return true also after
11420 potentially creating a debug-only replacement.
11421
5f4e6de3
JJ
114222013-01-08 Jakub Jelinek <jakub@redhat.com>
11423
3138f224
JJ
11424 PR middle-end/55890
11425 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11426
5f4e6de3
JJ
11427 PR tree-optimization/54120
11428 * tree-vrp.c (range_fits_type_p): Don't allow
11429 src_precision < precision from signed vr to unsigned_p
11430 if vr->min or vr->max is negative.
11431 (simplify_float_conversion_using_ranges): Test can_float_p
11432 against CODE_FOR_nothing.
11433
f3ef18ff
JJ
114342013-01-08 Jakub Jelinek <jakub@redhat.com>
11435 Richard Biener <rguenther@suse.de>
11436
11437 PR middle-end/55851
11438 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11439 types instead of just INTEGER_TYPE types.
11440
25c210f9
MK
114412013-01-07 Mark Kettenis <kettenis@openbsd.org>
11442
11443 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11444 TF_SIZE): Define.
f90d87f5 11445
81826a7b
SE
114462013-01-07 Steve Ellcey <sellcey@mips.com>
11447
11448 PR target/42661
11449 * config/mips/mips.opt: Change mad to mmad to match documentation.
11450
35678514
GJL
114512013-01-07 Georg-Johann Lay <avr@gjlay.de>
11452
11453 PR target/55897
11454 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11455 .progmemx.data now.
11456
e5669488
GJL
114572013-01-07 Georg-Johann Lay <avr@gjlay.de>
11458
11459 PR target/55897
11460 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11461 (avr_addrspace_t): Add .section_name field.
11462 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11463 array size.
11464 (avr_addrspace): Same. Initialize .section_name. Remove last
11465 NULL entry. Put __memx into .progmemx.data.
11466 (progmem_section_prefix): Remove.
11467 (avr_asm_init_sections): No need to initialize progmem_section.
11468 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11469 section name prefix.
11470 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11471 retrieve the progmem section.
11472 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11473 boundary to run over avr_addrspace[].
11474 (avr_register_target_pragmas): Ditto.
11475
656e6f37
JJ
114762013-01-06 Jakub Jelinek <jakub@redhat.com>
11477
11478 * varasm.c (output_constant_def_contents): For asan_protect_global
11479 protected strings, adjust DECL_ALIGN if needed, before testing for
11480 anchored symbols.
11481 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11482 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11483 normal decls.
11484 (output_object_block): For asan protected decls, emit asan padding
11485 after their contents.
11486 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11487 (asan_finish_file): Test it here instead.
11488
6edc3e32
UB
114892013-01-07 Nick Clifton <nickc@redhat.com>
11490 Matthias Klose <doko@debian.org>
11491 Doug Kwan <dougkwan@google.com>
11492 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
11493
11494 PR driver/55470
11495 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11496
11497 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11498
11499 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11500
7b0fe4f4 11501 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
11502
11503 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11504
2a095093
GJL
115052013-01-07 Georg-Johann Lay <avr@gjlay.de>
11506
f3b503f4 11507 PR target/54461
2a095093
GJL
11508 * doc/install.texi (Cross-Compiler-Specific Options): Document
11509 --with-avrlibc.
11510
383f9b34
TB
115112013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11512
11513 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11514 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11515 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11516 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11517 vqmovun_high_s64): Fix source operand number and update copyright.
11518
3626621a
RB
115192013-01-07 Richard Biener <rguenther@suse.de>
11520
11521 PR middle-end/55890
11522 * gimple.h (gimple_call_builtin_p): New overload.
11523 * gimple.c (validate_call): New function.
11524 (gimple_call_builtin_p): Likewise.
11525 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11526 Use gimple_call_builtin_p.
11527 (find_func_clobbers): Likewise.
11528 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11529 (strlen_optimize_stmt): Likewise.
11530
8b2ea410
JG
115312013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11532
11533 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11534 (vld1q_dup_*): Likewise.
11535 (vld1_*): Likewise.
11536 (vld1q_*): Likewise.
11537 (vld1_lane_*): Likewise.
11538 (vld1q_lane_*): Likewise.
11539
9713d329
RB
115402013-01-07 Richard Biener <rguenther@suse.de>
11541
11542 * lto-streamer.h (LTO_minor_version): Bump to 2.
11543
3520f7cc
JG
115442013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11545
11546 * config/aarch64/aarch64-protos.h
11547 (aarch64_const_double_zero_rtx_p): Rename to...
11548 (aarch64_float_const_zero_rtx_p): ...this.
11549 (aarch64_float_const_representable_p): New.
11550 (aarch64_output_simd_mov_immediate): Likewise.
11551 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11552 move immediate case.
11553 * config/aarch64/aarch64.c
11554 (aarch64_const_double_zero_rtx_p): Rename to...
11555 (aarch64_float_const_zero_rtx_p): ...this.
11556 (aarch64_print_operand): Allow printing of new constants.
11557 (aarch64_valid_floating_const): New.
11558 (aarch64_legitimate_constant_p): Check for valid floating-point
11559 constants.
11560 (aarch64_simd_valid_immediate): Likewise.
11561 (aarch64_vect_float_const_representable_p): New.
11562 (aarch64_float_const_representable_p): Likewise.
11563 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11564 (aarch64_output_simd_mov_immediate): New.
11565 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11566 (*movdf_aarch64): Likewise.
11567 * config/aarch64/constraints.md (Ufc): New.
11568 (Y): call aarch64_float_const_zero_rtx.
11569 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11570
e167c04d
RB
115712013-01-07 Richard Biener <rguenther@suse.de>
11572
11573 PR tree-optimization/55888
11574 PR tree-optimization/55862
11575 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11576 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11577 not if it is contained therein.
11578
0139aaab
GJL
115792013-01-07 Georg-Johann Lay <avr@gjlay.de>
11580
11581 * config/avr/t-avr: Typo.
11582
4a176b23
GJL
115832013-01-07 Georg-Johann Lay <avr@gjlay.de>
11584
11585 PR55243
11586 * config/avr/t-avr: Don't automatically rebuild
11587 $(srcdir)/config/avr/t-multilib
11588 $(srcdir)/config/avr/avr-tables.opt
11589 $(srcdir)/doc/avr-mmcu.texi
11590 (avr-mcus): New phony target to build them on request.
11591 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11592 * avr/avr-mcus.def: Adjust comments.
11593
c7afdc98
UB
115942013-01-07 Uros Bizjak <ubizjak@gmail.com>
11595
11596 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11597
1ab05c31
RS
115982013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11599
11600 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11601
488e3acc
RS
116022013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11603
11604 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11605
a89599d2
DE
116062013-01-05 David Edelsohn <dje.gcc@gmail.com>
11607
11608 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11609 to generate profiling.
11610 * config/rs6000/aix64.h (LIB_SPEC): Same.
11611
70f09188
AP
116122013-01-04 Andrew Pinski <apinski@cavium.com>
11613
11614 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11615 New function.
11616 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11617
918d445f
UB
116182013-01-04 Uros Bizjak <ubizjak@gmail.com>
11619
11620 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11621 unconditionally.
11622 (ix86_expand_move): Ditto.
11623 (ix86_zero_extend_to_Pmode): Ditto.
11624 (ix86_expand_call): Ditto.
11625 (ix86_expand_special_args_builtin): Ditto.
11626 (ix86_expand_builtin): Ditto.
11627
361618ec
RB
116282013-01-04 Richard Biener <rguenther@suse.de>
11629
11630 PR tree-optimization/55862
11631 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11632 translating them through PHI nodes.
11633
87eab554
MJ
116342013-01-04 Martin Jambor <mjambor@suse.cz>
11635
11636 PR tree-optimization/55755
11637 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11638 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11639
33879b9f
MP
116402013-01-04 Marek Polacek <polacek@redhat.com>
11641
11642 PR middle-end/55859
11643 * opts.c (default_options_optimization): Clarify error message.
11644
3068819a
RB
116452013-01-04 Richard Biener <rguenther@suse.de>
11646
11647 PR middle-end/55863
11648 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11649 reassociation.
11650
0e4ae794
JDA
116512013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11652
11653 PR target/53789
11654 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
11655 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11656 references.
0e4ae794 11657
65c88cef
RH
116582013-01-03 Richard Henderson <rth@redhat.com>
11659
11660 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11661 after eliminating TLS symbols.
11662
8ac16127
MG
116632013-01-03 Marc Glisse <marc.glisse@inria.fr>
11664
11665 PR bootstrap/50167
11666 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11667 * graphite-poly.c (debug_gmp_value): Likewise.
11668
bb664f09
UB
116692013-01-03 Uros Bizjak <ubizjak@gmail.com>
11670
11671 PR target/55712
11672 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11673 selected code model, define __code_mode_small__, __code_model_medium__,
11674 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11675 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11676 xchg temporary register with %k. Declare temporary register as
11677 early clobbered.
11678 [__x86_64__]: For medium and large code models, preserve %rbx register.
11679
bcf1ef00
RB
116802013-01-03 Richard Biener <rguenther@suse.de>
11681
0506634a 11682 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
11683 (dump_subscript): Adjust.
11684 (finalize_ddr_dependent): Do not dump redundant info.
11685 (analyze_siv_subscript): Adjust.
11686 (subscript_dependence_tester): Likewise.
11687 (compute_affine_dependence): Likewise.
11688
59fd17e3
RB
116892013-01-03 Richard Biener <rguenther@suse.de>
11690
11691 Revert
11692 2013-01-03 Richard Biener <rguenther@suse.de>
11693
11694 PR tree-optimization/55857
11695 * tree-vect-stmts.c (vectorizable_load): Do not setup
11696 re-alignment for invariant loads.
11697
11698 2013-01-02 Richard Biener <rguenther@suse.de>
11699
11700 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11701 invariant load do not generate a vector load from the scalar location.
59fd17e3 11702
595c2679
RB
117032013-01-03 Richard Biener <rguenther@suse.de>
11704
11705 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11706 for not vectorizing.
11707 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11708 not build INDIRECT_REFs, call get_name once only.
11709 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11710 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11711
90bb7d7a
RB
117122013-01-03 Richard Biener <rguenther@suse.de>
11713
11714 PR tree-optimization/55857
11715 * tree-vect-stmts.c (vectorizable_load): Do not setup
11716 re-alignment for invariant loads.
11717
f09b77ca
RB
117182013-01-03 Richard Biener <rguenther@suse.de>
11719
11720 PR lto/55848
11721 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11722 prefer a built-in decl.
11723
3461a16e
JJ
117242013-01-03 Jakub Jelinek <jakub@redhat.com>
11725
df8e2b4f
JJ
11726 * gcc.c (process_command): Update copyright notice dates.
11727 * gcov.c (print_version): Likewise.
11728 * gcov-dump.c (print_version): Likewise.
11729
3461a16e
JJ
11730 PR rtl-optimization/55838
11731 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11732 iv0.step, iv1.step and step.
11733
8b5546d6
JJ
117342013-01-03 Jakub Jelinek <jakub@redhat.com>
11735 Marc Glisse <marc.glisse@inria.fr>
11736
11737 PR tree-optimization/55832
11738 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11739 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11740 integer_{one,zero}_node.
11741
8ab1d2e9
JJ
117422013-01-03 Jakub Jelinek <jakub@redhat.com>
11743
11744 PR debug/54402
11745 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11746 * var-tracking.c (reverse_op): Don't add reverse ops to
11747 VALUEs that have already
0506634a 11748 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 11749
5b9ad1d4
GP
117502013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11751
11752 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11753
e25a6711
TJ
117542013-01-02 Teresa Johnson <tejohnson@google.com>
11755
11756 * dumpfile.c (dump_loc): Print filename with location.
11757 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11758 new location_t parameter to emit complete unroll message with
11759 new dump framework.
11760 (canonicalize_loop_induction_variables): Compute loops location
11761 and pass to try_unroll_loop_completely.
11762 * loop-unroll.c (report_unroll_peel): New function.
11763 (peel_loops_completely): Use new dump format with location
11764 for main dumpfile message, and invoke report_unroll_peel on success.
11765 (decide_unrolling_and_peeling): Ditto.
11766 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11767 by report_unroll_peel.
11768 (decide_peel_completely): Ditto.
11769 (decide_unroll_constant_iterations): Ditto.
11770 (decide_unroll_runtime_iterations): Ditto.
11771 (decide_peel_simple): Ditto.
11772 (decide_unroll_stupid): Ditto.
11773 * cfgloop.c (get_loop_location): New function.
11774 * cfgloop.h (get_loop_location): Declare.
11775
77878621
ST
117762013-01-02 Sriraman Tallam <tmsriram@google.com>
11777
11778 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11779 NULL.
11780
9e65d03e
JDA
117812013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11782
11783 PR middle-end/55198
11784 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11785 BLKmode objects when EXPAND_MEMORY is specified.
11786
6a7da30f
ST
117872013-01-02 Sriraman Tallam <tmsriram@google.com>
11788
11789 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11790 in loop predicate.
11791 (fold_builtin_cpu): Do not share cpu model decls across statements.
11792
e78167f2
JM
117932013-01-02 Jason Merrill <jason@redhat.com>
11794
11795 PR c++/55804
11796 * tree.c (build_array_type_1): Revert earlier change.
11797
8c075fb4
YZ
117982013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11799
11800 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11801 "cortex-a57".
11802 * config/aarch64/aarch64-tune.md: Re-generate.
11803
0682ed3e
RB
118042013-01-02 Richard Biener <rguenther@suse.de>
11805
11806 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11807 invariant load do not generate a vector load from the scalar location.
0682ed3e 11808
b8f6a302
RB
118092013-01-02 Richard Biener <rguenther@suse.de>
11810
11811 PR bootstrap/55784
11812 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11813 * configure: Regenerate.
11814
04b80dbb
RS
118152013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11816
11817 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11818 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11819 (expand_builtin_int_roundingfn_2): Keep the original target around
11820 for the fallback case.
11821
635b0b0c
RS
118222013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11823
11824 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11825 to be clear for sign changes.
11826
42d57399
JH
118272013-01-01 Jan Hubicka <jh@suse.cz>
11828
11829 * ipa-inline-analysis.c: Fix formatting.
11830
5bb6669d
JJ
118312013-01-01 Jakub Jelinek <jakub@redhat.com>
11832
11833 PR tree-optimization/55831
11834 * tree-vect-loop.c (get_initial_def_for_induction): Use
11835 gsi_after_labels instead of gsi_start_bb.
ad41bd84 11836\f
86a2db33 11837Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
11838
11839Copying and distribution of this file, with or without modification,
11840are permitted in any medium without royalty provided the copyright
11841notice and this notice are preserved.