lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
[gcc.git] / gcc / ChangeLog
1 2013-06-04 Jan Hubicka <jh@suse.cz>
2
3 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
4 (input_node, input_varpool_node): Handle correctly external same
5 body aliases.
6 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
7 nodes at ltrans stage.
8
9 2013-06-04 Jan Hubicka <jh@suse.cz>
10
11 * ipa-inline.c (update_caller_keys): Fix availability test.
12 (update_callee_keys): Likewise.
13 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
14 to follow ELF standard.
15
16 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
17
18 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
19 (mips64r5900el-*-elf*): New configurations.
20 * config/mips/mips-cpus.def (r5900): New processor.
21 * config/mips/mips-tables.opt: Regenerate.
22 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
23 (mips_issue_rate): Handle PROCESSOR_R5900.
24 (mips_reorg_process_insns): Force reorder mode for the R5900.
25 * config/mips/mips.h (TARGET_MIPS5900): Define.
26 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27 TARGET_MIPS5900.
28 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
29 TARGET_MIPS5900.
30 * config/mips/mips.md (processor): Add r5900.
31 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
32
33 2013-06-04 Ian Bolton <ian.bolton@arm.com>
34
35 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
36 into function to generate MOVI instruction.
37 * config/aarch64/aarch64.c (aarch64_simd_container_mode):
38 New function.
39 (aarch64_preferred_simd_mode): Turn into wrapper.
40 (aarch64_output_scalar_simd_mov_immediate): New function.
41 * config/aarch64/aarch64-protos.h: Add prototype for above.
42
43 2013-06-04 Ian Bolton <ian.bolton@arm.com>
44
45 * config/aarch64/aarch64.c (simd_immediate_info): Remove
46 element_char member.
47 (sizetochar): Return signed char.
48 (aarch64_simd_valid_immediate): Remove elchar and other
49 unnecessary variables.
50 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
51 Calculate element_char as required.
52 * config/aarch64/aarch64-protos.h: Update and move prototype
53 for aarch64_output_simd_mov_immediate.
54 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
55 Update arguments.
56
57 2013-06-04 Ian Bolton <ian.bolton@arm.com>
58
59 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
60 information completed by aarch64_simd_valid_immediate.
61 (aarch64_legitimate_constant_p): Update arguments.
62 (aarch64_simd_valid_immediate): Work with struct rather than many
63 pointers.
64 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
65 (aarch64_simd_make_constant): Update arguments.
66 (aarch64_output_simd_mov_immediate): Work with struct rather than
67 many pointers. Output immediate directly rather than as operand.
68 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
69 Update prototype.
70 * config/aarch64/constraints.md (Dn): Update arguments.
71
72 2013-06-04 Ian Bolton <ian.bolton@arm.com>
73
74 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
75 longer static.
76 (aarch64_simd_immediate_valid_for_move): Remove.
77 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
78 (aarch64_simd_make_constant): Update call.
79 (aarch64_output_simd_mov_immediate): Update call.
80 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
81 Add prototype.
82 * config/aarch64/constraints.md (Dn): Update call.
83
84 2013-06-04 Ian Bolton <ian.bolton@arm.com>
85
86 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
87 return type to bool for prototype.
88 (aarch64_legitimate_constant_p): Check for true instead of not -1.
89 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
90 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
91
92 2013-06-04 Catherine Moore <clm@codesourcery.com>
93
94 * config/mips/mips.opt (meva): New.
95 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS):
96 Define __mips_eva.
97 (ASM_SPEC): Handle -meva.
98 * doc/invoke.texi (meva): Document.
99
100 2013-06-04 Alan Modra <amodra@gmail.com>
101
102 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
103 constant output.
104
105 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
106
107 * rtl.def: Add extra fourth optional field to define_cond_exec.
108 * gensupport.c (process_one_cond_exec): Process attributes from
109 define_cond_exec.
110 * doc/md.texi: Document fourth field in define_cond_exec.
111
112 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
113
114 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
115 out the processing order as in store_bit_field_1.
116
117 2013-06-04 Jan Hubicka <jh@suse.cz>
118
119 PR middle-end/57500
120 * cgraphunit.c (cgraph_process_same_body_aliases): Create
121 non-VAR_DECL node if it does not exist yet.
122
123 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
124
125 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
126 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
127 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
128 target_cpu_default setting.
129
130 2013-06-03 Teresa Johnson <tejohnson@google.com>
131
132 * dumpfile.c (opt_info_switch_p): Change -fopt-info
133 default to -fopt-info=optimized instead of all.
134 * doc/invoke.texi: Ditto.
135 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
136 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
137 (execute_vect_slp): Emit BB vectorization success under
138 MSG_OPTIMIZED_LOCATIONS.
139 * tree-vect-slp.c (vect_slp_transform_bb): Change
140 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
141 * tree-vect-loop.c (vect_transform_loop): Ditto.
142
143 2013-06-03 Jason Merrill <jason@redhat.com>
144
145 PR c++/57415
146 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
147 Use TARGET_EXPR for C++.
148
149 2013-06-03 Jakub Jelinek <jakub@redhat.com>
150
151 PR rtl-optimization/57268
152 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
153 if DEBUG_INSN_P (insn).
154
155 Reapply
156 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
157
158 PR rtl-optimization/57268
159 * sched-deps.c (sched_analyze_2): Flush dependence lists if
160 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
161
162 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
163
164 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
165 (ix86_avoid_lea_for_addr): Likewise.
166 (exact_dependency_1): Likewise.
167 (ix86_adjust_cost): Likewise.
168 (swap_top_of_ready_list): Fix formatting and !reload_completed check
169 removed.
170 (do_reorder_for_imul): Fix typo, formatting and
171 !reload_completed check removed.
172 (ix86_sched_reorder): Fix typo and formatting.
173 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
174 list.
175
176 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
177
178 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
179
180 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
181
182 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
183 <STRING_CST>: Likewise.
184 <VECTOR_CST>: Likewise.
185
186 2013-06-01 Janus Weil <janus@gcc.gnu.org>
187 Mikael Morin <mikael@gcc.gnu.org>
188
189 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
190 * config.in: Regenerated.
191 * configure: Regenerated.
192
193 2013-06-01 Jan Hubicka <jh@suse.cz>
194
195 PR middle-end/57366
196 * cgraphunit.c (compile): When weakref is not supported,
197 set up transparent aliases before final output pass.
198 * varasm.c (assemble_alias): Do not try to do it here.
199
200 2013-06-01 Jan Hubicka <jh@suse.cz>
201
202 PR middle-end/57467
203 * passes.c (for_per_function): Skip unanalyzed functions.
204
205 2013-06-01 Jan Hubicka <jh@suse.cz>
206
207 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
208 (lto_symtab_merge_symbols_1): ... this one.
209 (lto_symtab_merge_cgraph_nodes): Rename to ...
210 (lto_symtab_merge_symbols): ... this one; simplify.
211 * cgraph.c (same_body_aliases_done): Rename to ...
212 (cpp_implicit_aliases_done): ... this one.
213 (cgraph_create_function_alias): Update.
214 (cgraph_same_body_alias): Update.
215 (dump_cgraph_node): Remove alias dumping; simplify
216 thunk dumping.
217 (verify_edge_corresponds_to_fndecl): Simplify.
218 * cgraph.h (symtab_node_base): Add cpp_implicit_alias,
219 alias_target.
220 (cgraph_node): Remove same_body_alias.
221 (varpool_node): Remove alias_of and extra_name_alias.
222 (same_body_aliases_done): Rename to ..
223 (cpp_implicit_aliases_done): ... this one.
224 (symtab_alias_ultimate_target): Add default parameter.
225 (symtab_resolve_alias): New function.
226 (fixup_same_cpp_alias_visibility): Declare.
227 (cgraph_function_node): Add default parameter.
228 (cgraph_node_asm_name): Likewise.
229 (cgraph_function_or_thunk_node): Add default parameter; do
230 not ICE when it is NULL.
231 (varpool_variable_node): Likewise.
232 * tree-emutls.c (create_emultls_var): Update.
233 (ipa_lower_emutls): Update.
234 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
235 (cgraph_reset_node): Reset alias info.
236 (cgraph_finalize_function): Update.
237 (fixup_same_cpp_alias_visibility): Move to symtab.c.
238 (analyze_function): Simplify.
239 (cgraph_process_same_body_aliases): Simplify.
240 (analyze_functions): Fixup same body aliases.
241 (handle_alias_pairs): Simplify.
242 (assemble_thunk): Update.
243 (assemble_thunks_and_aliases): Update.
244 (output_weakrefs): Rewrite.
245 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
246 (lto_output_varpool_node): Likewise.
247 (compute_ltrans_boundary): Remve assert.
248 (get_alias_symbol): New functoin.
249 (input_node): Rewrite alias handling.
250 (input_varpool_node): Likewise.
251 * ipa-pure-const.c (propagate_pure_const): Fix formating.
252 * ipa.c (process_references): Handle weakrefs correctly.
253 (symtab_remove_unreachable_nodes): Likewise.
254 * trans-mem.c (get_cg_data): Update.
255 (ipa_tm_create_version_alias): Update.
256 (ipa_tm_execute): Update.
257 * symtab.c (dump_symtab_base): Dump aliases.
258 (verify_symtab_base): Verify aliases.
259 (symtab_node_availability): New function.
260 (symtab_alias_ultimate_target): Simplify.
261 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
262 handle all the fixup cases.
263 (symtab_resolve_alias): New function.
264 * passes.c (ipa_write_summaries): Handle weakrefs.
265 * varpool.c (varpool_analyze_node): Simplify.
266 (assemble_aliases): Update.
267 (varpool_create_variable_alias): Simplify.
268 (varpool_extra_name_alias): Simplify.
269 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
270 (lto_symtab_merge_symbols): ... this one.
271
272 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
273
274 Revert
275 PR rtl-optimization/57268
276 * sched-deps.c (sched_analyze_2): Flush dependence lists if
277 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
278
279 2013-06-01 Tobias Burnus <burnus@net-b.de>
280
281 Partially reverted:
282 2013-05-31 Tobias Burnus <burnus@net-b.de>
283
284 PR middle-end/57073
285 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
286 further up.
287
288 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
289
290 PR rtl-optimization/57268
291 * sched-deps.c (sched_analyze_2): Flush dependence lists if
292 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
293
294 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
295
296 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
297 unordered comparison operators when -fno-trapping-math is in effect
298 on the e500.
299 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
300 and implement unordered comparison operators properly on the e500.
301
302 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
303
304 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
305 for constant scalar integers.
306 (simplify_relational_operation_1): Likewise.
307
308 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
309
310 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
311 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
312 Fix comment.
313
314 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
315 Igor Zamyatin <igor.zamyatin@intel.com>
316
317 Silvermont (SLM) architecture performance tuning.
318 * config/i386/i386.h (enum ix86_tune_indices): Add
319 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
320 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
321
322 * config/i386/i386.c (initial_ix86_tune_features)
323 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
324 (ix86_lea_outperforms): Handle Silvermont tuning.
325 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
326 call.
327 (ix86_use_lea_for_mov): Likewise.
328 (ix86_avoid_lea_for_addr): Likewise.
329 (ix86_lea_for_add_ok): Likewise.
330 (exact_dependency_1): New function.
331 (exact_store_load_dependency): Likewise.
332 (ix86_adjust_cost): Handle Silvermont tuning.
333 (do_reoder_for_imul): Likewise.
334 (swap_top_of_ready_list): New function.
335 (ix86_sched_reorder): Changed to handle Silvermont tuning.
336
337 * config/i386/i386.md (peepholes that split memory operand in fp
338 converts): New.
339
340 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
341
342 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
343 Remove un-necessary braces.
344
345 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
346
347 * config/aarch64/aarch64.c (aarch64_classify_symbol):
348 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
349
350 2013-05-31 Tobias Burnus <burnus@net-b.de>
351
352 PR middle-end/57073
353 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
354 further up.
355
356 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
357
358 PR target/56315
359 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
360 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
361 * config/arm/neon.md (iordi3_neon): Remove.
362 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
363 * config/arm/predicates.md (imm_for_neon_logic_operand):
364 Move to earlier in the file.
365 (neon_logic_op2): Likewise.
366 (arm_iordi_operand_neon): New predicate.
367
368 2013-05-31 Richard Biener <rguenther@suse.de>
369
370 PR tree-optimization/57478
371 PR tree-optimization/57453
372 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
373 are life as well.
374
375 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
376
377 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
378 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
379
380 2013-05-30 Tobias Burnus <burnus@net-b.de>
381 Thomas Koenig <tkoenig@gcc.gnu.org>
382
383 PR middle-end/57073
384 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
385 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
386
387 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
388
389 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
390
391 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
392
393 * target.def (register_usage_leveling_p): New hook.
394 * targhooks.c (default_register_usage_leveling_p): New.
395 * targhooks.h (default_register_usage_leveling_p): New prototype.
396 * lra-assigns.c (register_usage_leveling_p): Use the hook.
397 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
398 * doc/tm.texi: Update.
399 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
400
401 2013-05-30 Ian Bolton <ian.bolton@arm.com>
402
403 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
404 (*insv_reg<mode>): New define_insn.
405
406 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
407
408 PR rtl-optimization/57439
409 * postreload.c (move2add_valid_value_p): Check that we have
410 a zero subreg_regno_offset when accessing the register in
411 the requested mode.
412
413 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
414 Igor Zamyatin <igor.zamyatin@intel.com>
415
416 Silvermont (SLM) architecture pipeline model, tuning and
417 insn selection.
418 * config.gcc: Add slm config options and target.
419
420 * config/i386/slm.md: New.
421
422 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
423
424 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
425 PROCESSOR_SLM.
426 (ix86_target_macros_internal): Likewise.
427
428 * gcc/config/i386/i386.c (slm_cost): New cost.
429 (m_SLM): New macro flag.
430 (initial_ix86_tune_features): Set m_SLM.
431 (x86_accumulate_outgoing_args): Likewise.
432 (x86_arch_always_fancy_math_387): Likewise.
433 (processor_target_table): Add slm cost.
434 (cpu_names): Add slm cpu name.
435 (x86_option_override_internal): Set SLM ISA.
436 (ix86_issue_rate): New case PROCESSOR_SLM.
437 (ia32_multipass_dfa_lookahead): Likewise.
438 (fold_builtin_cpu): Add slm.
439
440 * config/i386/i386.h (TARGET_SLM): New target macro.
441 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
442 (processor_type): Add PROCESSOR_SLM.
443
444 * config/i386/i386.md (cpu): Add new value "slm".
445 (slm.md): Include slm.md.
446
447 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
448 Zhenqiang Chen <zhenqiang.chen@linaro.org>
449
450 * config/arm/arm-protos.h: Add and update function protos.
451 * config/arm/arm.c (use_simple_return_p): New added.
452 (thumb2_expand_return): Check simple_return flag.
453 * config/arm/arm.md: Add simple_return and conditional simple_return.
454 * config/arm/iterators.md: Add iterator for return and simple_return.
455
456 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
457
458 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
459 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
460 (arm_emit_vfp_multi_reg_pop): Likewise.
461 (thumb2_emit_ldrd_pop): Likewise.
462 (arm_expand_epilogue): Add misc REG_CFA notes.
463 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
464
465 2013-05-29 Lawrence Crowl <crowl@google.com>
466
467 * config/arm/t-arm: Update for below.
468
469 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
470 Change type to hash_table. Update dependent calls and types.
471
472 * config/i386/t-cygming: Update for below.
473
474 * config/i386/t-interix: Update for below.
475
476 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
477 Change type to hash_table. Update dependent calls and types.
478 (i386_find_on_wrapper_list::wrappers): Likewise.
479
480 * config/ia64/t-ia64: Update for below.
481
482 * config/ia64/ia64.c (bundle_state_table):
483 Change type to hash_table. Update dependent calls and types.
484
485 * config/mips/mips.c (mips_reorg_process_insns::htab):
486 Change type to hash_table. Update dependent calls and types.
487
488 * config/sol2.c (solaris_comdat_htab):
489 Change type to hash_table. Update dependent calls and types.
490
491 * config/t-sol2: Update for above.
492
493 2013-05-29 Teresa Johnson <tejohnson@google.com>
494
495 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
496 functions are not yet marked as defined.
497
498 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
499 Pat Haugen <pthaugen@us.ibm.com>
500 Peter Bergner <bergner@vnet.ibm.com>
501
502 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
503 instructions.
504 (VEC_A): Likewise.
505 (VEC_C): Likewise.
506 (vrotl<mode>3): Likewise.
507 (vashl<mode>3): Likewise.
508 (vlshr<mode>3): Likewise.
509 (vashr<mode>3): Likewise.
510
511 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
512 support for power8 V2DI builtins.
513
514 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
515 power8 V2DI builtins.
516 (vupkhsw): Likewise.
517 (vupklsw): Likewise.
518 (vaddudm): Likewise.
519 (vminsd): Likewise.
520 (vmaxsd): Likewise.
521 (vminud): Likewise.
522 (vmaxud): Likewise.
523 (vpkudum): Likewise.
524 (vpksdss): Likewise.
525 (vpkudus): Likewise.
526 (vpksdus): Likewise.
527 (vrld): Likewise.
528 (vsld): Likewise.
529 (vsrd): Likewise.
530 (vsrad): Likewise.
531 (vsubudm): Likewise.
532 (vcmpequd): Likewise.
533 (vcmpgtsd): Likewise.
534 (vcmpgtud): Likewise.
535 (vcmpequd_p): Likewise.
536 (vcmpgtsd_p): Likewise.
537 (vcmpgtud_p): Likewise.
538 (vupkhsw): Likewise.
539 (vupklsw): Likewise.
540 (vaddudm): Likewise.
541 (vmaxsd): Likewise.
542 (vmaxud): Likewise.
543 (vminsd): Likewise.
544 (vminud): Likewise.
545 (vpksdss): Likewise.
546 (vpksdus): Likewise.
547 (vpkudum): Likewise.
548 (vpkudus): Likewise.
549 (vrld): Likewise.
550 (vsld): Likewise.
551 (vsrad): Likewise.
552 (vsrd): Likewise.
553 (vsubudm): Likewise.
554
555 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
556 support for power8 V2DI instructions.
557
558 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
559 power8 V2DI instructions. Combine pack and unpack insns to use an
560 iterator for each mode. Check whether a particular mode supports
561 Altivec instructions instead of just checking TARGET_ALTIVEC.
562 (UNSPEC_VPKUWUM): Likewise.
563 (UNSPEC_VPKSHSS): Likewise.
564 (UNSPEC_VPKSWSS): Likewise.
565 (UNSPEC_VPKUHUS): Likewise.
566 (UNSPEC_VPKSHUS): Likewise.
567 (UNSPEC_VPKUWUS): Likewise.
568 (UNSPEC_VPKSWUS): Likewise.
569 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
570 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
571 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
572 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
573 (UNSPEC_VUPKHSB): Likewise.
574 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
575 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
576 (UNSPEC_VUPKHSH): Likewise.
577 (UNSPEC_VUPKLSB): Likewise.
578 (UNSPEC_VUPKLSH): Likewise.
579 (VI2): Likewise.
580 (VI_char): Likewise.
581 (VI_scalar): Likewise.
582 (VI_unit): Likewise.
583 (VP): Likewise.
584 (VP_small): Likewise.
585 (VP_small_lc): Likewise.
586 (VU_char): Likewise.
587 (add<mode>3): Likewise.
588 (altivec_vaddcuw): Likewise.
589 (altivec_vaddu<VI_char>s): Likewise.
590 (altivec_vadds<VI_char>s): Likewise.
591 (sub<mode>3): Likewise.
592 (altivec_vsubcuw): Likewise.
593 (altivec_vsubu<VI_char>s): Likewise.
594 (altivec_vsubs<VI_char>s): Likewise.
595 (altivec_vavgs<VI_char>): Likewise.
596 (altivec_vcmpbfp): Likewise.
597 (altivec_eq<mode>): Likewise.
598 (altivec_gt<mode>): Likewise.
599 (altivec_gtu<mode>): Likewise.
600 (umax<mode>3): Likewise.
601 (smax<mode>3): Likewise.
602 (umin<mode>3): Likewise.
603 (smin<mode>3): Likewise.
604 (altivec_vpkuhum): Likewise.
605 (altivec_vpkuwum): Likewise.
606 (altivec_vpkshss): Likewise.
607 (altivec_vpkswss): Likewise.
608 (altivec_vpkuhus): Likewise.
609 (altivec_vpkshus): Likewise.
610 (altivec_vpkuwus): Likewise.
611 (altivec_vpkswus): Likewise.
612 (altivec_vpks<VI_char>ss): Likewise.
613 (altivec_vpks<VI_char>us): Likewise.
614 (altivec_vpku<VI_char>us): Likewise.
615 (altivec_vpku<VI_char>um): Likewise.
616 (altivec_vrl<VI_char>): Likewise.
617 (altivec_vsl<VI_char>): Likewise.
618 (altivec_vsr<VI_char>): Likewise.
619 (altivec_vsra<VI_char>): Likewise.
620 (altivec_vsldoi_<mode>): Likewise.
621 (altivec_vupkhsb): Likewise.
622 (altivec_vupkhs<VU_char>): Likewise.
623 (altivec_vupkls<VU_char>): Likewise.
624 (altivec_vupkhsh): Likewise.
625 (altivec_vupklsb): Likewise.
626 (altivec_vupklsh): Likewise.
627 (altivec_vcmpequ<VI_char>_p): Likewise.
628 (altivec_vcmpgts<VI_char>_p): Likewise.
629 (altivec_vcmpgtu<VI_char>_p): Likewise.
630 (abs<mode>2): Likewise.
631 (vec_unpacks_hi_v16qi): Likewise.
632 (vec_unpacks_hi_v8hi): Likewise.
633 (vec_unpacks_lo_v16qi): Likewise.
634 (vec_unpacks_hi_<VP_small_lc>): Likewise.
635 (vec_unpacks_lo_v8hi): Likewise.
636 (vec_unpacks_lo_<VP_small_lc>): Likewise.
637 (vec_pack_trunc_v8h): Likewise.
638 (vec_pack_trunc_v4si): Likewise.
639 (vec_pack_trunc_<mode>): Likewise.
640
641 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
642 V2DI builtins.
643 (vec_vmaxsd): Likewise.
644 (vec_vmaxud): Likewise.
645 (vec_vminsd): Likewise.
646 (vec_vminud): Likewise.
647 (vec_vpksdss): Likewise.
648 (vec_vpksdus): Likewise.
649 (vec_vpkudum): Likewise.
650 (vec_vpkudus): Likewise.
651 (vec_vrld): Likewise.
652 (vec_vsld): Likewise.
653 (vec_vsrad): Likewise.
654 (vec_vsrd): Likewise.
655 (vec_vsubudm): Likewise.
656 (vec_vupkhsw): Likewise.
657 (vec_vupklsw): Likewise.
658
659 2013-05-29 Jan Hubicka <jh@suse.cz>
660
661 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
662 flags; reorder rest of fields in more consistent way.
663 (varpool_node): Remove analyzed, finalized and alias.
664 (cgraph_ndoe): Likewise.
665 (symtab_alias_ultimate_target): New function.
666 (cgraph_function_node): Move offline.
667 (cgraph_reset_node): Declare.
668 (cgraph_comdat_can_be_unshared_p): Remove.
669 (varpool_remove_initializer): Declare.
670 (varpool_first_defined_variable, varpool_next_defined_variable
671 cgraph_first_defined_function, cgraph_next_defined_function): Update.
672 (cgraph_function_with_gimple_body_p): Update.
673 (varpool_all_refs_explicit_p): Update.
674 (symtab_alias_target): New function.
675 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
676 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
677 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
678 (varpool_variable_node): Likewise.
679 * cgraph.c (cgraph_create_function_alias): Update.
680 (cgraph_add_thunk): Update.
681 (cgraph_remove_node): Update.
682 (dump_cgraph_node): Do not dump removed flags.
683 (cgraph_function_body_availability): Update.
684 (cgraph_propagate_frequency): Update.
685 (verify_cgraph_node): Check sanity of local flag.
686 (cgraph_function_node): Move here from cgraph.h; revamp for
687 cgraph_function_or_thunk_node.
688 * lto-symtab.c (lto_varpool_replace_node): Update.
689 (lto_symtab_resolve_can_prevail_p): Update.
690 (lto_symtab_merge_cgraph_nodes): Update.
691 * ipa-cp.c (determine_versionability, initialize_node_lattices,
692 propagate_constants_accross_call, devirtualization_time_bonus,
693 ipcp_propagate_stage): Update.
694 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
695 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
696 * ipa-reference.c (propagate): Update.
697 (write_node_summary_p): Update.
698 * toplev.c (wrapup_global_declaration_2): Update.
699 * cgraphunit.c (cgraph_analyze_function): Rename to ...
700 (analyze_function) ... this one.
701 (cgraph_process_new_functions): Update.
702 (cgraph_reset_node): Export.
703 (cgraph_finalize_function): Update.
704 (cgraph_add_new_function): Update.
705 (process_function_and_variable_attributes): Update.
706 (varpool_finalize_decl): Update.
707 (symbol_finalized): Remove.
708 (symbol_finalized_and_needed): Rename to ...
709 (symbol_defined_and_needed): ... update.
710 (cgraph_analyze_functions): Update.
711 (handle_alias_pairs): Update.
712 (mark_functions_to_output): Update.
713 (assemble_thunk): Update.
714 (output_in_order): Update.
715 (output_weakrefs): Update.
716 (finalize_compilation_unit): Update.
717 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
718 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
719 input_node, input_varpool_node): Update.
720 * dbxout.c (dbxout_expand_expr): Update.
721 * cgraphclones.c (cgraph_clone_node): Update.
722 (cgraph_copy_node_for_versioning): Update.
723 (cgraph_materialize_clone): Update.
724 (cgraph_materialize_all_clones): Update.
725 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
726 propagate_pure_const, propagate_nothrow): Update.
727 * lto-streamer-out.c (lto_output, write_symbol): Update.
728 * ipa-utils.c (ipa_reverse_postorder): Update.
729 * ipa-inline.c (can_inline_edge_p): Update.
730 (update_caller_keys, ipa_inline): Update.
731 * dwarf2out.c (reference_to_unused,
732 premark_types_used_by_global_vars_helper): Update.
733 * tree-eh.c (tree_could_trap_p): Update.
734 * ipa-split.c (consider_split, execute_split_functions): Update.
735 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
736 has_addr_references_p): Update;
737 move ahead in file for better readability.
738 (process_references): Simplify.
739 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
740 bodies are removed.
741 (cgraph_comdat_can_be_unshared_p): Make static.
742 (cgraph_externally_visible_p): Update.
743 (varpool_externally_visible_p): Update.
744 (function_and_variable_visibility): Update.
745 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
746 ipa_tm_mark_force_output_node): Update.
747 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
748 estimate_edge_devirt_benefit, inline_generate_summary,
749 inline_write_summary): Update.
750 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
751 * ipa-prop.c (ipa_compute_jump_functions): Update.
752 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
753 read_replacements_section): Update.
754 * varasm.c (mark_decl_referenced): Update.
755 (assemble_alias, dump_tm_clone_pairs): Update.
756 * tree-inline.c (copy_bb): Update.
757 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
758 Update.
759 * symtab.c (dump_symtab_base): Print new flags.
760 (verify_symtab_base): Verify new flags.
761 (symtab_alias_ultimate_target): New function.
762 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
763 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
764 Update.
765 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
766 * i386.c (ix86_get_function_versions_dispatcher,
767 ix86_generate_version_dispatcher_body): Update.
768 (fold_builtin_cpu): Use varpool_add_new_variable.
769 * varpool.c (varpool_remove_initializer): Break out from ...
770 (varpool_remove_node): ... this one.
771 (dump_varpool_node, varpool_node_for_asm,
772 cgraph_variable_initializer_availability, varpool_analyze_node,
773 varpool_assemble_decl, varpool_remove_unreferenced_decls,
774 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
775
776 2013-05-29 Jan Hubicka <jh@suse.cz>
777
778 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
779
780 2013-05-29 Easwaran Raman <eraman@google.com>
781
782 PR tree-optimization/57442
783 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
784 when control exits the main loop.
785
786 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
787
788 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
789 and RX600.
790 * rx/rx.opt: Add macro for rx100 with string rx100 and value
791 RX100.
792 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
793 * rx/t-rx: Add rx100 under multi library matches option for nofpu
794 option.
795
796 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
797
798 PR tree-optimization/57441
799 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
800 Don't limit size of incr_vec to number of candidates.
801
802 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
803
804 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
805 and mips16 directories.
806 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
807 mips16.
808 (MULTILIB_DIRNAMES): Ditto.
809 (MULTILIB_EXCEPTIONS): Add new exceptions.
810 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
811 (MULTILIB_DIRNAMES): Ditto.
812 (MULTILIB_EXCEPTIONS): Add new exceptions.
813
814 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
815 Marcus Shawcroft <marcus.shawcroft@arm.com>
816
817 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
818 SYMBOL_TINY_ABSOLUTE.
819 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
820 SYMBOL_TINY_ABSOLUTE.
821 (aarch64_expand_mov_immediate): Likewise.
822 (aarch64_classify_symbol): Likewise.
823 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
824 Permit SYMBOL_TINY_ABSOLUTE.
825 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
826
827 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
828 Marcus Shawcroft <marcus.shawcroft@arm.com>
829
830 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
831 Refactor if/switch. Replace gcc_assert with if.
832
833 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
834
835 * config/i386/i386.c (initial_ix86_tune_features): Enable
836 FP Reassociation for AMD bdver1 and bdver2.
837
838 2013-05-29 Martin Jambor <mjambor@suse.cz>
839
840 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
841 and IMAGPART_EXPR do not occur within other handled_components.
842
843 2013-05-29 Richard Biener <rguenther@suse.de>
844
845 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
846 access on whether the use is in the BB we currently try to
847 vectorize.
848 (vect_bb_vectorization_profitable_p): Pass the BB we currently
849 vectorize to vect_bb_slp_scalar_cost.
850
851 2013-05-29 Richard Biener <rguenther@suse.de>
852
853 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
854 computing scalar cost offsetted by stmts that are kept live
855 by scalar uses.
856 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
857 for computation of scalar cost.
858
859 2013-05-28 Steve Ellcey <sellcey@mips.com>
860
861 * config/mips/mips-cpus.def (mips32r2): Change processor type.
862
863 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
864
865 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
866 array notation built-in reduction functions.
867 * doc/passes.texi (Passes): Added documentation about changes done
868 for Cilk Plus.
869 * doc/invoke.texi (C Dialect Options): Added documentation about
870 the -fcilkplus flag.
871 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
872 (BUILTINS_DEF): Depend on cilkplus.def.
873 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
874 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
875 * cilkplus.def: New file.
876
877 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
878
879 PR rtl-optimization/57439
880 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
881
882 2013-05-28 Easwaran Raman <eraman@google.com>
883
884 PR tree-optimization/57337
885 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
886 (find_insert_point): Correctly identify the insertion point
887 when two statements with the same UID is compared.
888
889 2013-05-28 Richard Biener <rguenther@suse.de>
890
891 PR tree-optimization/56787
892 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
893 from the list of data references.
894 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
895 clobbers.
896 (vect_analyze_loop_operations): Likewise.
897 (vect_transform_loop): Remove clobbers.
898
899 2013-05-28 Martin Jambor <mjambor@suse.cz>
900
901 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
902 and REALPART_EXPRs have scalar type.
903
904 2013-05-28 Richard Biener <rguenther@suse.de>
905
906 PR tree-optimization/57411
907 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
908 virtual operands.
909 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
910 virtual operand propagation.
911
912 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
913
914 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
915 destination register for bmasksi_vis.
916 (vector_init_bshuffle): Likewise.
917 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
918
919 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
920
921 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
922 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
923 mode if the instruction isn't available in the original mode.
924 * config/sparc/sparc.opt (mfix-ut699): New option.
925 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
926 (divdf3): Turn into expander.
927 (divdf3_nofix): New insn.
928 (divdf3_fix): Likewise.
929 (divsf3): Disable if -mfix-ut699.
930 (sqrtdf2): Turn into expander.
931 (sqrtdf2_nofix): New insn.
932 (sqrtdf2_fix): Likewise.
933 (sqrtsf2): Disable if -mfix-ut699.
934
935 2013-05-27 Richard Biener <rguenther@suse.de>
936
937 PR middle-end/57412
938 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
939 block for the new loop.
940
941 2013-05-27 Richard Biener <rguenther@suse.de>
942
943 PR tree-optimization/57343
944 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
945 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
946 (number_of_iterations_cond): Do not build the folded tree.
947
948 2013-05-27 Richard Biener <rguenther@suse.de>
949
950 Revert
951 PR middle-end/57381
952 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
953 OEP_CONSTANT_ADDRESS_OF retained.
954
955 PR tree-optimization/57417
956 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
957 for unchanged base.
958 (set_ssa_val_to): Compare addresses using
959 get_addr_base_and_unit_offset.
960
961 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
962
963 PR rtl-optimization/56833
964 * postreload.c (move2add_record_mode): New function.
965 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
966 (move2add_use_add2_insn): Use move2add_record_sym_value.
967 (move2add_use_add3_insn): Likewise.
968 (reload_cse_move2add): Use move2add_valid_value_p and
969 move2add_record_mode. Invalidate call-clobbered and REG_INC
970 affected regs by setting reg_mode to VOIDmode.
971 (move2add_note_store): Don't pretend the inside of a SUBREG is
972 the actual destination. Invalidate single/leading registers by
973 setting reg_mode to VOIDmode.
974 Use move2add_record_sym_value, move2add_valid_value_p and
975 move2add_record_mode.
976
977 2013-05-27 Richard Biener <rguenther@suse.de>
978
979 PR tree-optimization/57396
980 * tree-affine.c (double_int_constant_multiple_p): Properly
981 return false for val == 0 and div != 0.
982
983 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
984
985 * config/mips/mips.h: Use #elif in preprocessor conditions.
986
987 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
988
989 PR target/53916
990 * config/mips/constraints.md (kl): New constraint.
991 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
992 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
993 constraint for operand 0. Split after CSE for MIPS16. Emit a move
994 from LO for MIPS16.
995 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
996
997 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
998
999 PR target/55777
1000 * config/mips/mips.c (mips_can_inline_p): New function.
1001 (TARGET_CAN_INLINE_P): Define.
1002
1003 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1004
1005 * sched-int.h (ds_t, dw_t): Make unsigned int.
1006 Fix documentation that describes how all the ds_t bits are used.
1007 Reserve the last bit for delayed-branch scheduling.
1008 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1009 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1010 (gen_dep_weak_1): Remove prototype.
1011 * sched-deps.c (get_dep_weak_1): Make static.
1012 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1013 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1014 * doc/tm.texi: Regenerate.
1015 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1016
1017 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1018
1019 PR debug/56950
1020 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1021
1022 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1023 Sandra Loosemore <sandra@codesourcery.com>
1024
1025 * config.gcc (powerpc-*): Allow native for with-cpu.
1026
1027 2013-05-24 Jeff Law <law@redhat.com>
1028
1029 PR tree-optimization/57124
1030 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1031 conversion feeding a condition if the range has an overflow
1032 if -fstrict-overflow. Add warnings for when we do make the
1033 transformation.
1034
1035 2013-05-24 Dehao Chen <dehao@google.com>
1036
1037 * tree-cfg.c (locus_discrim_map): Fix the typo.
1038 (locus_discrim_hasher): Likewise.
1039 (locus_discrim_hasher::hash): Likewise.
1040 (locus_discrim_hasher::equal): Likewise.
1041
1042 2013-05-24 Martin Jambor <mjambor@suse.cz>
1043
1044 PR tree-optimization/57294
1045 * cgraph.h (ipa_record_stmt_references): Declare.
1046 * cgraphbuild.c (ipa_record_stmt_references): New function.
1047 (build_cgraph_edges): Use ipa_record_stmt_references.
1048 (rebuild_cgraph_edges): Likewise.
1049 (cgraph_rebuild_references): Likewise.
1050 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1051 associated with the old statement and build references from the
1052 newly built statements.
1053 * ipa-ref.c (ipa_remove_stmt_references): New function.
1054 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1055
1056 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1057
1058 * lra-constraints.c (emit_spill_move): Use smaller mode for
1059 mem-mem moves.
1060 (check_and_process_move): Consider mem-reg moves for secondary
1061 too.
1062 (curr_insn_transform): Don't lose insns emitted before for
1063 secondary memory moves.
1064 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1065 reg set up in the current insn.
1066
1067 2013-05-24 Dehao Chen <dehao@google.com>
1068
1069 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1070 hash function.
1071 (locus_descrim_hasher::equal): Likewise.
1072 (build_gimple_cfg): New discriminator assignment algorithm.
1073 (make_edges): Likewise.
1074 (next_discriminator_for_locus): Likewise.
1075 (same_line_p): Likewise.
1076 (assign_discriminators): Likewise.
1077 (make_cond_expr_edges): Likewise.
1078 (make_gimple_switch_edges): Likewise.
1079 (make_goto_expr_edges): Likewise.
1080 (make_gimple_asm_edges): Likewise.
1081
1082 2013-05-24 Ian Bolton <ian.bolton@arm.com>
1083
1084 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1085 X format specifier to only display bottom 16 bits.
1086 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1087 immediate to match for operand 2, since it will be masked.
1088
1089 2013-05-24 Richard Biener <rguenther@suse.de>
1090
1091 PR tree-optimization/57287
1092 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1093 all SSA names that occur in abnormal PHIs.
1094
1095 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1096
1097 PR tree-ssa/57385
1098 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1099 that index is not negative.
1100
1101 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1102
1103 PR rtl-optimization/55177
1104 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1105 (simplify_byte_swapping_operation): New.
1106 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1107 (simplify_relational_operation_1): Deal with BSWAP.
1108
1109 2013-05-23 Richard Henderson <rth@redhat.com>
1110
1111 PR target/56742
1112 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1113 (ix86_reorg): Call it.
1114
1115 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1116
1117 PR target/57379
1118 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1119 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1120 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1121
1122 2013-05-23 Christian Bruel <christian.bruel@st.com>
1123
1124 PR debug/57351
1125 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1126
1127 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1128 Marcus Shawcroft <marcus.shawcroft@arm.com>
1129
1130 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1131 * config/aarch64/constraints.md (Usa): Remove.
1132 * doc/md.texi (AArch64 Usa): Remove.
1133
1134 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1135 Marcus Shawcroft <marcus.shawcroft@arm.com>
1136
1137 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1138 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1139 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1140 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1141
1142 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1143
1144 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1145 instruction (AdvSIMD).
1146 * config/aarch64/aarch64-builtins.c
1147 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1148 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1149
1150 2013-05-23 Martin Jambor <mjambor@suse.cz>
1151
1152 PR middle-end/57347
1153 * tree.h (contains_bitfld_component_ref_p): Declare.
1154 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1155 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1156 caller.
1157 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1158 not access a bit-field. Assert all final offsets are byte-aligned.
1159
1160 2013-05-23 Richard Biener <rguenther@suse.de>
1161
1162 PR tree-optimization/57380
1163 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1164 least one invariant or re-used load.
1165 * passes.c (init_optimization_passes): Move pass_phiprop before
1166 pass_forwprop.
1167
1168 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1169
1170 * config/aarch64/aarch64-simd.md
1171 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1172
1173 2013-05-23 Richard Biener <rguenther@suse.de>
1174
1175 PR middle-end/57381
1176 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1177 OEP_CONSTANT_ADDRESS_OF retained.
1178
1179 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1180
1181 PR middle-end/57344
1182 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1183 don't lower unit. Handle unit not being always BITS_PER_WORD.
1184
1185 2013-05-23 Richard Biener <rguenther@suse.de>
1186
1187 PR rtl-optimization/57341
1188 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1189 instead of true_dependence.
1190
1191 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1192
1193 * bb-reorder.c (branch_threshold): Make const.
1194 (exec_threshold): Ditto.
1195
1196 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1197 Pat Haugen <pthaugen@us.ibm.com>
1198 Peter Bergner <bergner@vnet.ibm.com>
1199
1200 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1201 documentation for the power8 crypto builtins.
1202
1203 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1204
1205 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1206 macros for defining power8 builtin functions.
1207 (BU_P8V_AV_2): Likewise.
1208 (BU_P8V_AV_P): Likewise.
1209 (BU_P8V_VSX_1): Likewise.
1210 (BU_P8V_OVERLOAD_1): Likewise.
1211 (BU_P8V_OVERLOAD_2): Likewise.
1212 (BU_CRYPTO_1): Likewise.
1213 (BU_CRYPTO_2): Likewise.
1214 (BU_CRYPTO_3): Likewise.
1215 (BU_CRYPTO_OVERLOAD_1): Likewise.
1216 (BU_CRYPTO_OVERLOAD_2): Likewise.
1217 (XSCVSPDP): Fix typo, point to the correct instruction.
1218 (VCIPHER): Add power8 crypto builtins.
1219 (VCIPHERLAST): Likewise.
1220 (VNCIPHER): Likewise.
1221 (VNCIPHERLAST): Likewise.
1222 (VPMSUMB): Likewise.
1223 (VPMSUMH): Likewise.
1224 (VPMSUMW): Likewise.
1225 (VPERMXOR_V2DI): Likewise.
1226 (VPERMXOR_V4SI: Likewise.
1227 (VPERMXOR_V8HI: Likewise.
1228 (VPERMXOR_V16QI: Likewise.
1229 (VSHASIGMAW): Likewise.
1230 (VSHASIGMAD): Likewise.
1231 (VPMSUM): Likewise.
1232 (VPERMXOR): Likewise.
1233 (VSHASIGMA): Likewise.
1234
1235 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1236 __CRYPTO__ if the crypto instructions are available.
1237 (altivec_overloaded_builtins): Add support for overloaded power8
1238 builtins.
1239
1240 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1241 support for power8 crypto builtins.
1242 (builtin_function_type): Likewise.
1243 (altivec_init_builtins): Add support for builtins that take vector
1244 long long (V2DI) arguments.
1245
1246 * config/rs6000/crypto.md: New file, define power8 crypto
1247 instructions.
1248
1249 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1250 Pat Haugen <pthaugen@us.ibm.com>
1251 Peter Bergner <bergner@vnet.ibm.com>
1252
1253 * doc/invoke.texi (Option Summary): Add power8 options.
1254 (RS/6000 and PowerPC Options): Likewise.
1255
1256 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1257 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1258 wm, wn, wr documentation.
1259
1260 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1261 registers if direct move instructions are enabled.
1262 (wn): New constraint for no registers.
1263 (wq): New constraint for quad word even GPR registers.
1264 (wr): New constraint if 64-bit instructions are enabled.
1265 (wv): New constraint if power8 vector instructions are enabled.
1266 (wQ): New constraint for quad word memory locations.
1267
1268 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1269 constraint for 0..15 for crypto instructions.
1270 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1271 as GPR and floating point registers.
1272 (int_reg_operand): New predicate to match only GPR registers.
1273 (base_reg_operand): New predicate to match base registers.
1274 (quad_int_reg_operand): New predicate to match even GPR registers
1275 for quad memory operations.
1276 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1277 operations in both GPR and VSX registers.
1278 (quad_memory_operand): New predicate for quad memory operations.
1279 (reg_or_indexed_operand): New predicate for direct move support.
1280
1281 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1282 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1283 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1284 (POWERPC_MASKS): Add power8 options.
1285 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1286 various options.
1287
1288 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1289 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1290
1291 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1292 (-mpower8-fusion): New power8 options.
1293 (-mpower8-fusion-sign): Likewise.
1294 (-mpower8-vector): Likewise.
1295 (-mcrypto): Likewise.
1296 (-mdirect-move): Likewise.
1297 (-mquad-memory): Likewise.
1298
1299 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1300 power8.
1301 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1302 registers.
1303 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1304 (rs6000_debug_vector_unit): Add p8_vector.
1305 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1306 definitions. Also print fusion state.
1307 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1308 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1309 (rs6000_option_override_internal): Add support for power8.
1310 (rs6000_common_init_builtins): Add debugging for skipped builtins
1311 if -mdebug=builtin.
1312 (rs6000_adjust_cost): Add power8 support.
1313 (rs6000_issue_rate): Likewise.
1314 (insn_must_be_first_in_group): Likewise.
1315 (insn_must_be_last_in_group): Likewise.
1316 (force_new_group): Likewise.
1317 (rs6000_register_move_cost): Likewise.
1318 (rs6000_opt_masks): Likewise.
1319
1320 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1321 power8 capable assembler, default to power7 options.
1322 (TARGET_DIRECT_MOVE): Likewise.
1323 (TARGET_CRYPTO): Likewise.
1324 (TARGET_P8_VECTOR): Likewise.
1325 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1326 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1327 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1328 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1329 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1330 (TARGET_XSCVDPSPN): Likewise.
1331 (TARGET_XSCVSPDPN): Likewsie.
1332 (TARGET_SYNC_HI_QI): Likewise.
1333 (TARGET_SYNC_TI): Likewise.
1334 (MASK_CRYPTO): Likewise.
1335 (MASK_DIRECT_MOVE): Likewise.
1336 (MASK_P8_FUSION): Likewise.
1337 (MASK_P8_VECTOR): Likewise.
1338 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1339 temporary used by some of the direct move instructions to get two FP
1340 temporary registers does not force creation of a stack frame.
1341 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1342 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1343 that any VSX registers are tieable, even if they are also an
1344 Altivec vector mode.
1345 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1346 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1347 (RS6000_BTM_CRYPTO): Likewise.
1348 (RS6000_BTM_COMMON): Likewise.
1349
1350 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1351 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1352 (enum rs6000_vector): Add power8 vector support.
1353
1354 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1355
1356 PR target/19599
1357 PR target/57340
1358 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1359 (any_sibcall_could_use_r3): this and handle indirect calls.
1360 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1361
1362 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1363
1364 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1365
1366 2013-05-22 Richard Biener <rguenther@suse.de>
1367
1368 PR middle-end/57349
1369 * profile.c (branch_prob): Do not split blocks that are
1370 abnormally receiving from ECF_RETURNS_TWICE functions.
1371
1372 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1373
1374 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1375 address mode. Move pointer mode initialization to the same place.
1376
1377 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1378
1379 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1380 while it has any effect.
1381
1382 2013-05-21 Easwaran Raman <eraman@google.com>
1383
1384 PR tree-optimization/57322
1385 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1386 UID of the statement added to the BB to be 1.
1387
1388 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1389
1390 PR tree-optimization/57331
1391 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1392 of conversion from pointer type to integral type with integer.
1393
1394 2013-05-21 Martin Jambor <mjambor@suse.cz>
1395
1396 PR lto/57289
1397 * ipa-prop.c (ipa_read_node_info): Process param_used and
1398 controlled_uses in the same order as when writing.
1399
1400 2013-05-21 Magnus Granberg <baldrick@free.fr>
1401
1402 PR plugins/56754
1403 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1404
1405 2013-05-21 Richard Biener <rguenther@suse.de>
1406
1407 PR tree-optimization/57318
1408 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1409 estimate stmts with side-effects as likely eliminated.
1410
1411 2013-05-21 Richard Biener <rguenther@suse.de>
1412
1413 PR tree-optimization/57330
1414 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1415 preserve the call stmts fntype.
1416
1417 2013-05-21 Richard Biener <rguenther@suse.de>
1418
1419 PR tree-optimization/57303
1420 * tree-ssa-sink.c (statement_sink_location): Improve killing
1421 stmt detection and properly handle self-assignments.
1422
1423 2013-05-21 Christian Bruel <christian.bruel@st.com>
1424
1425 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1426 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1427 registers. Set register size out of the PARALLEL loop.
1428
1429 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1430
1431 PR target/56547
1432 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1433 (*fmasf4, *fmasf4_media): New insns.
1434
1435 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1436
1437 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1438 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1439 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1440 (mips_idiv_insns): Update the comments to say that the returned
1441 instruction counts are in units of BASE_INSN_LENGTH.
1442 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1443 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1444 using 2 rather than 4 as the length of indirect MIPS16 and
1445 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1446 length of a NOP. Don't divide MIPS16 lengths by 2.
1447 (mips16_split_long_branches): Assume a branch is long if the
1448 length is greater than 4 rather than 8.
1449 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1450 rather than multiplying them by 2. Multiply instruction counts
1451 by BASE_INSN_LENGTH rather than 4.
1452 (*jump_mips16, tls_get_tp_mips16_<mode>)
1453 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1454
1455 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1456
1457 * config/mips/mips.md (extended_mips16): Remove branch case.
1458 (length): Remove duplicated extended_mips16 test.
1459
1460 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1461
1462 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1463
1464 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1465
1466 * recog.h (Recog_data): Rename to...
1467 (recog_data_d): ...this.
1468 (recog_data): Update accordingly.
1469 * recog.c (recog_data): Likewise.
1470 * reload.c (save_recog_data): Likewise.
1471 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1472 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1473
1474 2013-05-17 Julian Brown <julian@codesourcery.com>
1475
1476 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1477 found in a REG_EQUAL note, invalidate it.
1478
1479 2013-05-17 Easwaran Raman <eraman@google.com>
1480
1481 * tree-ssa-reassoc.c (find_insert_point): New function.
1482 (insert_stmt_after): Likewise.
1483 (get_def_stmt): Likewise.
1484 (ensure_ops_are_available): Likewise.
1485 (not_dominated_by): Likewise.
1486 (rewrite_expr_tree): Do not move statements beyond what is
1487 necessary. Remove call to swap_ops_for_binary_stmt...
1488 (reassociate_bb): ... and move it here.
1489 (build_and_add_sum): Assign UIDs for new statements.
1490 (linearize_expr): Likewise.
1491 (do_reassoc): Renumber gimple statement UIDs.
1492
1493 2013-05-17 Jan Hubicka <jh@suse.cz>
1494
1495 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1496 weakrefs.
1497 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1498 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1499 weakrefs.
1500 (output_weakrefs): Update.
1501
1502 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1503 Martin Jambor <mjambor@suse.cz>
1504
1505 PR middle-end/57276
1506 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1507 value that corresponds to the given aggval is found in values vector.
1508
1509 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1510
1511 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1512 sse, sse2, sse3, ssse3 and sse4a flags to options.
1513
1514 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1515
1516 * gengtype-state.c: (s_expr_writer): New class, to handle
1517 prettifying of output layout of s-expressions.
1518 (state_writer): New class, to write out gtype.state.
1519 (state_written_type_count): Move this variable into member data of
1520 state_writer.
1521 (s_expr_writer::s_expr_writer): New code: constructor for new class
1522 (state_writer::state_writer(): ditto
1523 (s_expr_writer::write_new_line): New function
1524 (s_expr_writer::write_any_indent): ditto
1525 (s_expr_writer::begin_s_expr): ditto
1526 (s_expr_writer::end_s_expr): ditto
1527 (write_state_fileloc): convert to method of state_writer...
1528 (state_writer:: write_state_fileloc): ...and use methods of
1529 s_expr_writer to write indentation into the gtype.state output file
1530 to visually represent the hierarchical structure of the list
1531 structures
1532 (write_state_fields): ditto, renaming to...
1533 (state_writer::write_state_fields)
1534 (write_state_a_string): ditto, renaming to...
1535 (state_writer::write_state_a_string)
1536 (write_state_string_option): ditto, renaming to...
1537 (state_writer::write_state_string_option)
1538 (write_state_type_option): ditto, renaming to...
1539 (state_writer::write_state_type_option)
1540 (write_state_nested_option): ditto, renaming to...
1541 (state_writer::write_state_nested_option)
1542 (write_state_option): ditto, renaming to...
1543 (state_writer::write_state_option)
1544 (write_state_options): ditto, renaming to...
1545 (state_writer::write_state_options)
1546 (write_state_lang_bitmap): ditto, renaming to...
1547 (state_writer::write_state_lang_bitmap)
1548 (write_state_version): ditto, renaming to...
1549 (state_writer::write_state_version)
1550 (write_state_scalar_type): ditto, renaming to...
1551 (state_writer::write_state_scalar_type)
1552 (write_state_string_type): ditto, renaming to...
1553 (state_writer::write_state_string_type)
1554 (write_state_undefined_type): ditto, renaming to...
1555 (state_writer::write_state_undefined_type)
1556 (write_state_struct_union_type): ditto, renaming to...
1557 (state_writer::write_state_struct_union_type)
1558 (write_state_struct_type): ditto, renaming to...
1559 (state_writer::write_state_struct_type)
1560 (write_state_user_struct_type): ditto, renaming to...
1561 (state_writer::write_state_user_struct_type)
1562 (write_state_lang_struct_type): ditto, renaming to...
1563 (state_writer::write_state_lang_struct_type)
1564 (write_state_param_struct_type): ditto, renaming to...
1565 (state_writer::write_state_param_struct_type)
1566 (write_state_pointer_type): ditto, renaming to...
1567 (state_writer::write_state_pointer_type)
1568 (write_state_array_type): ditto, renaming to...
1569 (state_writer::write_state_array_type)
1570 (write_state_gc_used): ditto, renaming to...
1571 (state_writer::write_state_gc_used)
1572 (write_state_common_type_content): ditto, renaming to...
1573 (state_writer::write_state_common_type_content)
1574 (write_state_type): ditto, renaming to...
1575 (state_writer::write_state_type)
1576 (write_state_pair_list): ditto, renaming to...
1577 (state_writer::write_state_pair_list)
1578 (write_state_pair): ditto, renaming to...
1579 (state_writer::write_state_pair)
1580 (write_state_typedefs): ditto, renaming to...
1581 (state_writer::write_state_typedefs)
1582 (write_state_structures): ditto, renaming to...
1583 (state_writer::write_state_structures)
1584 (write_state_param_structs): ditto, renaming to...
1585 (state_writer::write_state_param_structs)
1586 (write_state_variables): ditto, renaming to...
1587 (state_writer::write_state_variables)
1588 (write_state_srcdir): ditto, renaming to...
1589 (state_writer::write_state_srcdir)
1590 (write_state_files_list): ditto, renaming to...
1591 (state_writer::write_state_files_list)
1592 (write_state_languages): ditto, renaming to...
1593 (state_writer::write_state_languages)
1594 (write_state): create a state_writer instance and use it when
1595 writing out the state file
1596
1597 2013-05-17 Mike Stump <mikestump@comcast.net>
1598
1599 PR rtl-optimization/57304
1600 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1601 accessing DF_REF_REAL_LOC.
1602
1603 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1604
1605 PR rtl-optimization/57281
1606 PR rtl-optimization/57300
1607 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1608 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1609 what the other splitter did if the registers are dead.
1610
1611 2013-05-17 Richard Biener <rguenther@suse.de>
1612
1613 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1614 MEM_REF offsets.
1615
1616 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1617
1618 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1619 linking.
1620
1621 2013-05-17 Marek Polacek <polacek@redhat.com>
1622
1623 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1624 length when doing non-zero store of storing '\0' to '\0'.
1625
1626 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1627
1628 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1629 vect_external_def oprnd1 with loop_vinfo, try to emit
1630 optional cast, negation and and stmts on the loop preheader
1631 edge instead of into the pattern def seq.
1632
1633 PR tree-optimization/57051
1634 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1635 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1636
1637 2013-05-16 Nick Clifton <nickc@redhat.com>
1638
1639 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1640 (rl78_is_naked_func): New function.
1641 (rl78_expand_prologue): Skip prologue generation for naked
1642 functions.
1643 (rl78_expand_epilogue): Skip epilogue generation for naked
1644 functions.
1645 * doc/extend.texi (naked): Add RL78 to the list of processors
1646 that supports this attribute.
1647
1648 2013-05-16 Jeff Law <law@redhat.com>
1649
1650 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1651
1652 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1653
1654 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1655 cache parameters using detect_caches_amd also for CYRIX,
1656 NSC and TM2 signatures.
1657
1658 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1659 Dzianis Kahanovich <mahatma@eu.by>
1660
1661 PR target/45359
1662 PR target/46396
1663 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1664 VIA/Centaur processors and determine their cache parameters
1665 using detect_caches_amd.
1666
1667 2013-05-16 Teresa Johnson <tejohnson@google.com>
1668
1669 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1670 (rtl_verify_edges): New function.
1671 (rtl_verify_bb_insns): Ditto.
1672 (rtl_verify_bb_pointers): Ditto.
1673 (rtl_verify_bb_insn_chain): Ditto.
1674 (rtl_verify_fallthru): Ditto.
1675 (rtl_verify_bb_layout): Ditto.
1676 (rtl_verify_flow_info_1): Outline checks into new functions.
1677 (rtl_verify_flow_info): Ditto.
1678
1679 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
1680
1681 * cfghooks.c (copy_bbs): Add update_dominance argument.
1682 * cfghooks.h (copy_bbs): Update prototype.
1683 * tree-cfg.c (gimple_duplicate_sese_region):
1684 Add update_dominance argument.
1685 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1686 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1687 gimple_duplicate_sese_region call.
1688 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1689 Update copy_bbs call.
1690 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1691 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1692
1693 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1694
1695 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1696 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1697 vect_recog_rotate_pattern.
1698 (vect_recog_rotate_pattern): New function.
1699
1700 2013-05-16 Jason Merrill <jason@redhat.com>
1701
1702 * Makefile.in (LLINKER): New variable.
1703 (mostlyclean): Remove link mutex.
1704 * configure.ac: Handle --enable-link-mutex.
1705 * lock-and-run.sh: New script.
1706
1707 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1708
1709 PR target/19599
1710 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1711 for NULL decl.
1712
1713 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1714
1715 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1716
1717 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1718
1719 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1720 * config/arm/arm.c (next_consecutive_mem): New function.
1721 (gen_movmem_ldrd_strd): Likewise.
1722 * config/arm/arm.md (movmemqi): Update condition and code.
1723 (unaligned_loaddi, unaligned_storedi): New patterns.
1724
1725 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1726
1727 * config.gcc: Obsolete *-*-solaris2.9*.
1728 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1729
1730 2013-05-16 Richard Biener <rguenther@suse.de>
1731
1732 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1733 earlier, after GRAPHITE transforms and IV canonicalization.
1734
1735 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1736
1737 * omp-low.c (extract_omp_for_data): For collapsed loops,
1738 if at least one of the loops is known at compile time to
1739 iterate zero times, set count to 0.
1740 (expand_omp_regimplify_p): New function.
1741 (expand_omp_for_generic): For collapsed loops, if at least
1742 one of the loops isn't known to iterate at least once,
1743 add runtime check with setting count to 0.
1744 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1745 For unsigned types if it isn't known at compile time that
1746 the loop will iterate at least once, add runtime check to bypass
1747 the whole loop if initial condition isn't true.
1748
1749 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1750
1751 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1752
1753 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
1754
1755 PR middle-end/57286
1756 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1757 transformations to avoid an infinite loop.
1758
1759 2013-05-16 Marek Polacek <polacek@redhat.com>
1760
1761 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1762
1763 2013-05-15 Leif Ekblad <leif@rdos.net>
1764
1765 * config/i386/i386.c (ix86_decompose_address): Use
1766 DEFAULT_TLS_SEG_REG to access TLS segment register.
1767 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1768 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1769 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1770
1771 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1772
1773 PR target/57260
1774 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1775 sibling calls to functions that would normally be lazily bound,
1776 unless $gp is call-clobbered.
1777
1778 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1779
1780 * config/i386/i386.c (ix86_option_override_internal): Update
1781 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1782 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1783 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1784 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1785 of TARGET_3DNOW.
1786 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1787
1788 2013-05-15 Andreas Schwab <schwab@suse.de>
1789
1790 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1791 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1792 third operand.
1793
1794 2013-05-15 Teresa Johnson <tejohnson@google.com>
1795
1796 * loop-unroll.c (report_unroll_peel): Check decision before
1797 emitting unroll/peel message.
1798
1799 2013-05-15 Teresa Johnson <tejohnson@google.com>
1800
1801 * function.h (has_bb_partition): New rtl_data flag.
1802 (bb_reorder_complete): Ditto.
1803 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1804 instead of flag_reorder_blocks_and_partition.
1805 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1806 with some enhancements.
1807 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1808 * bb-reorder.c (connect_traces): Check for has_bb_partition
1809 instead of flag_reorder_blocks_and_partition.
1810 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1811 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1812 verify_hot_cold_block_grouping.
1813 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1814
1815 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1816
1817 PR target/19599
1818 * config/arm/predicates.md (call_insn_operand): New predicate.
1819 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1820 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1821 if insn is not a tail call.
1822 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1823 registers.
1824 * config/arm/arm.h (enum reg_class): New caller save register class.
1825 (REG_CLASS_NAMES): Likewise.
1826 (REG_CLASS_CONTENTS): Likewise.
1827 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1828 without decls.
1829
1830 2013-05-15 Richard Biener <rguenther@suse.de>
1831
1832 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1833 of MSG_OPTIMIZED_LOCATIONS.
1834 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1835 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1836 message.
1837 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1838 of MSG_OPTIMIZED_LOCATIONS.
1839 (execute_vect_slp): Likewise.
1840 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1841 (vect_create_cond_for_alias_checks): Likewise.
1842 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1843 (vect_recog_widen_mult_pattern): Likewise.
1844 (vect_recog_widen_sum_pattern): Likewise.
1845 (vect_recog_over_widening_pattern): Likewise.
1846 (vect_recog_widen_shift_pattern): Likewise.
1847 (vect_recog_vector_vector_shift_pattern): Likewise.
1848 (vect_recog_divmod_pattern): Likewise.
1849 (vect_recog_mixed_size_cond_pattern): Likewise.
1850 (vect_recog_bool_pattern): Likewise.
1851 (vect_pattern_recog_1): Likewise.
1852
1853 2013-05-15 Martin Jambor <mjambor@suse.cz>
1854
1855 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1856 non-functions to builtin_unreachable.
1857 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1858 correct when new direct edges were discovered.
1859
1860 2013-05-15 Martin Jambor <mjambor@suse.cz>
1861
1862 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1863 header, print symbol order instead of node uid, print more information
1864 about indirect edge targets.
1865 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1866 uids.
1867 (ipa_make_edge_direct_to_target): Likewise.
1868 (remove_described_reference): Likewise.
1869 (propagate_controlled_uses): Likewise.
1870 (ipa_print_node_params): Also print symbol order.
1871 (ipcp_transform_function): Print symbol order instead of node uids.
1872 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1873 (cgraph_get_create_real_symbol_node): Likewise.
1874 * ipa-cp.c (print_lattice): Likewise.
1875 (print_all_lattices): Likewise.
1876 (determine_versionability): Likewise.
1877 (initialize_node_lattices): Likewise.
1878 (estimate_local_effects): Likewise.
1879 (update_profiling_info): Likewise.
1880 (create_specialized_node): Likewise.
1881 (perhaps_add_new_callers): Likewise.
1882 (decide_about_value): Likewise.
1883 (decide_whether_version_node): Likewise.
1884 (identify_dead_nodes): Likewise.
1885 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1886 (dump_inline_summary): Likewise.
1887 (estimate_node_size_and_time): Likewise.
1888 (inline_analyze_function): Likewise.
1889 * ipa-inline.c (report_inline_failed_reason): Likewise.
1890 (want_early_inline_function_p): Likewise.
1891 (edge_badness): Likewise.
1892 (update_edge_key): Likewise.
1893 (inline_small_functions): Likewise. Add dumping of order to two other
1894 dumps.
1895 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1896 instead of node uids.
1897 (propagate_pure_const): Likewise.
1898 (propagate_pure_const): Likewise.
1899 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1900 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1901 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1902 of node uids.
1903 * tree-pretty-print.c (dump_function_header): Likewise.
1904 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1905 Print symbol order instead of node uids.
1906
1907 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1908
1909 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1910 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1911
1912 2013-05-15 Richard Biener <rguenther@suse.de>
1913
1914 PR tree-optimization/57275
1915 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1916 return value for fail to do runtime alias checks for gather loads.
1917
1918 2013-05-15 Jan Hubicka <jh@suse.cz>
1919
1920 PR lto/57038
1921 PR lto/47375
1922 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1923 weakrefs are not external.
1924 (lto_symtab_merge_decls): Fix thinko when dealing with
1925 non-lto_symtab decls.
1926 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1927 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1928 * varpool.c (dump_varpool_node): Dump more flags.
1929
1930 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1931
1932 * config/i386/i386.c (processor_alias_table): Add instruction
1933 FSGSBASE for AMD bdver3 architecture.
1934
1935 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1936
1937 * tree.c (warn_deprecated_use): Print file:line using locus color.
1938 * diagnostic.c (diagnostic_report_current_module): Print file:line
1939 and file:line:column using locus color.
1940
1941 2013-05-14 Mike Stump <mikestump@comcast.net>
1942
1943 * gdbinit.in: Add __null.
1944
1945 2013-05-14 Mike Stump <mikestump@comcast.net>
1946
1947 * recog.h: Rename struct recog_data to Recog_data.
1948 * recog.c: Likewise.
1949 * reload.c (can_reload_into): Likewise.
1950 * config/picochip/picochip.c: Likewise.
1951
1952 2013-05-14 Mike Stump <mikestump@comcast.net>
1953
1954 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1955
1956 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1957
1958 * resource.h (struct resources): Remove unch_memory member.
1959 (CLEAR_RESOURCE): Don't clear unch_memory.
1960 * resource.c (mark_referenced_resources): Don't set it.
1961 (mark_set_resources): Likewise.
1962 (mark_target_live_regs): Don't clear it.
1963 (init_resource_info): Likewise.
1964 * reorg.c (resource_conflicts_p): Don't compare it.
1965 (redundant_insn): Don't set it.
1966
1967 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1968 Remove prototypes.
1969 * emit-rtl.c (next_label): Remove unused function.
1970 (skip_consecutive_labels, link_cc0_insns): Move to ...
1971 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1972 only place where these functions are used, and make them static.
1973
1974 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1975
1976 * fold-const.c (fold_negate_expr): Handle vectors.
1977 (fold_truth_not_expr): Make it static.
1978 (fold_invert_truthvalue): New static function.
1979 (invert_truthvalue_loc): Handle vectors. Do not call
1980 fold_truth_not_expr directly.
1981 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1982 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1983 (fold_comparison): Handle vector constants.
1984 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1985 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1986 * tree.h (fold_truth_not_expr): Remove declaration.
1987
1988 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1989
1990 * config/aarch64/aarch64-simd.md
1991 (aarch64_vcond_internal<mode>): Rename to...
1992 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1993 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1994 float modes. Clarify all iterator modes.
1995 (vcond<mode><mode>): Use new name for vcond expanders.
1996 (vcond<v_cmp_result><mode>): Likewise.
1997 (vcondu<mode><mode>: Likewise.
1998 * config/aarch64/iterators.md (VDQF_COND): New.
1999
2000 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2001
2002 PR bootstrap/57266
2003 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2004 variable for the shift amount. Check that we shift by non-negative
2005 amounts.
2006
2007 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2008
2009 PR target/42017
2010 * config/arm/arm.h (EPILOGUE_USES): Only return true
2011 for LR_REGNUM after epilogue_completed.
2012
2013 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2014
2015 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2016 is error_mark_node.
2017
2018 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2019
2020 PR target/57261
2021 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2022 and Solaris 11+/x86 with gld.
2023 * configure: Regenerate.
2024
2025 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2026
2027 * expmed.c (expand_shift_1): Canonicalize rotates by
2028 constant bitsize / 2 to bitsize - 1.
2029 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2030 case ROTATERT>: Likewise.
2031
2032 Revert:
2033 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2034
2035 * config/i386/i386.md (rotateinv): New code attr.
2036 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2037 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2038 roll $31, %eax, etc.
2039
2040 2013-05-14 Richard Biener <rguenther@suse.de>
2041
2042 PR middle-end/57235
2043 * tree-eh.c (sink_clobbers): Give up for successors with
2044 multiple predecessors and no virtual uses.
2045
2046 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2047
2048 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2049 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2050
2051 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2052
2053 PR middle-end/57251
2054 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2055 the case when both op0 and op1 have VOIDmode.
2056
2057 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2058
2059 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2060 in multiply-accumulate mode.
2061
2062 2013-05-13 Guozhi Wei <carrot@google.com>
2063
2064 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2065
2066 2013-05-13 Kai Tietz <ktietz@redhat.com>
2067
2068 PR target/56975
2069 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2070 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2071 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2072 * config/i386/i386.c (ix86_option_override_internal): Likewise.
2073 (ix86_expand_prologue): Likewise.
2074 (ix86_expand_split_stack_prologue): Likewise.
2075 (legitimate_pic_address_disp_p): Likewise.
2076 (legitimize_pic_address): Likewise.
2077 (legitimize_tls_address): Likewise.
2078 (legitimize_pe_coff_symbol): Likewise.
2079 (output_pic_addr_const): Likewise.
2080 (construct_plt_address): Likewise.
2081 (ix86_expand_call): Likewise.
2082 (x86_output_mi_thunk): Likewise.
2083 (x86_function_profiler): Likewise.
2084
2085 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2086
2087 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2088 similar switch cases.
2089 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2090 (aarch64_simd_mov_to_<mode>low): Delete.
2091 (aarch64_simd_mov_to_<mode>high): Delete.
2092 (move_lo_quad_<mode>): Add w<-r alternative.
2093 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2094 (aarch64_simd_mov_from_*): Update type attribute.
2095 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2096 statement.
2097
2098 2013-05-13 Jan Hubicka <jh@suse.cz>
2099
2100 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2101 * config/i386/i386.c (ix86_compute_frame_layout,
2102 ix86_expand_epilogue, emit_i387_cw_initialization,
2103 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2104 ix86_local_alignment): Fix use of size/speed predicates.
2105
2106 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR tree-optimization/45216
2109 PR tree-optimization/57157
2110 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2111 the (-Y) & (B - 1) variant if OP is |.
2112 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2113 return shifted. Use (-op1) & (prec - 1) as other_amount
2114 instead of prec - op1.
2115
2116 2013-05-13 Martin Jambor <mjambor@suse.cz>
2117
2118 PR middle-end/42371
2119 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2120 (ipa_constant_data): New type.
2121 (ipa_jump_func): Use ipa_constant_data to hold information about
2122 constant jump functions.
2123 (ipa_get_jf_constant): Adjust to jump function type changes.
2124 (ipa_get_jf_constant_rdesc): New function.
2125 (ipa_param_descriptor): New field controlled_uses.
2126 (ipa_get_controlled_uses): New function.
2127 (ipa_set_controlled_uses): Likewise.
2128 * ipa-ref.h (ipa_find_reference): Declare.
2129 * ipa-prop.c (ipa_cst_ref_desc): New type.
2130 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2131 changes.
2132 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2133 New parameter cs. Adjust all callers.
2134 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2135 (remove_described_reference): New function.
2136 (jfunc_rdesc_usable): Likewise.
2137 (try_make_edge_direct_simple_call): Decrement controlled use count,
2138 attempt to remove reference if it hits zero.
2139 (combine_controlled_uses_counters): New function.
2140 (propagate_controlled_uses): Likewise.
2141 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2142 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2143 (ipa_print_node_params): Print described use counter.
2144 (ipa_write_jump_function): Adjust to jump function type changes.
2145 (ipa_read_jump_function): New parameter CS, pass it to
2146 ipa_set_jf_constant. Adjust caller.
2147 (ipa_write_node_info): Stream controlled use count
2148 (ipa_read_node_info): Likewise.
2149 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2150 asserting.
2151 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2152 count. Remove cloning-added reference if it reaches zero.
2153 * ipa-ref.c (ipa_find_reference): New function.
2154
2155 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2156
2157 * config/i386/i386.c (processor_target_table): Modified default
2158 alignment values for AMD BD and BT architectures.
2159
2160 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2161
2162 * tree-vect-generic.c (uniform_vector_p): Move ...
2163 * tree.c (uniform_vector_p): ... here.
2164 * tree.h (uniform_vector_p): Declare it.
2165 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2166 into a scalar.
2167
2168 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2169
2170 PR tree-optimization/57230
2171 * tree-ssa-strlen.c (handle_char_store): Record length for
2172 array store from STRING_CST.
2173
2174 PR tree-optimization/57230
2175 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2176 check.
2177
2178 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2179
2180 * config/epiphany/epiphany.c (epiphany_init): Check size of
2181 NUM_MODES_FOR_MODE_SWITCHING.
2182 (epiphany_expand_prologue):
2183 Remove CONFIG_REGNUM initial value handling code.
2184 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2185 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2186 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2187 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2188 Don't return 1 for FP_MODE_NONE.
2189 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2190 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2191 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2192 * config/epiphany/epiphany.md (save_config): New pattern.
2193
2194 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2195
2196 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2197
2198 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2199
2200 * config/i386/i386.md (memory): Handle sseishft1.
2201 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2202 (*vec_extractv2di_1): Ditto.
2203
2204 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2205
2206 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2207 saved registers.
2208
2209 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2210
2211 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2212 Add mthumb/march=armv7-a multilib.
2213 Add mthumb/march=armv7-r multilib.
2214 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2215
2216 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2217
2218 * config/v850/t-rtems: Add more multilibs.
2219
2220 2013-05-10 Richard Biener <rguenther@suse.de>
2221
2222 PR tree-optimization/57214
2223 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2224 not propagate from SSA names that occur in abnormal PHI nodes.
2225
2226 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2227
2228 * stor-layout.c (element_precision): New function.
2229 * machmode.h (element_precision): Declare it.
2230 * tree.c (build_minus_one_cst): New function.
2231 (element_precision): Likewise.
2232 * tree.h (build_minus_one_cst): Declare new function.
2233 (element_precision): Likewise.
2234 * fold-const.c (operand_equal_p): Use element_precision.
2235 (fold_binary_loc): Handle vector types.
2236 * convert.c (convert_to_integer): Use element_precision.
2237 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2238 separately.
2239
2240 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2241
2242 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2243 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2244 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2245 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2246 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2247 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2248 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2249 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2250 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2251 (Uuw8): New constraints.
2252 (Usb4): Move into alphabetical order.
2253 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2254 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2255 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2256 previously unnamed patterns.
2257 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2258 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2259 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2260 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2261 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2262 of specific lengths.
2263
2264 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2265
2266 * config/i386/i386.md (rotateinv): New code attr.
2267 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2268 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2269 roll $31, %eax, etc.
2270
2271 PR tree-optimization/45216
2272 PR tree-optimization/57157
2273 * tree-ssa-forwprop.c (simplify_rotate): New function.
2274 (ssa_forward_propagate_and_combine): Call it.
2275
2276 2013-05-10 Richard Biener <rguenther@suse.de>
2277
2278 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2279 disable peeling when we version for aliasing.
2280 (vector_alignment_reachable_p): Honor explicit user alignment.
2281 (vect_supportable_dr_alignment): Likewise.
2282 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2283 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2284 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2285 then peeling to arrange for the cost-model check to come first.
2286
2287 2013-05-10 Alan Modra <amodra@gmail.com>
2288
2289 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2290 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2291 * configure: Regenerate.
2292
2293 2013-05-10 Alan Modra <amodra@gmail.com>
2294
2295 PR target/55033
2296 * varasm.c (default_elf_select_section): Move !DECL_P check..
2297 (get_named_section): ..to here before calling get_section_name.
2298 Adjust assertion.
2299 (default_section_type_flags): Add DECL_P check.
2300 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2301 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2302
2303 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2304
2305 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2306 When using gen_stack_adjust_str with a register offset, add a
2307 REG_FRAME_RELATED_EXPR note.
2308
2309 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2310
2311 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2312 (*vec_extractv4si_zext_mem): Ditto.
2313 (*vec_extractv2di): Add 0->x and x->x alternatives.
2314 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2315 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2316
2317 2013-05-09 Jason Merrill <jason@redhat.com>
2318
2319 N3639 C++1y VLA support
2320 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2321 DECL_VALUE_EXPR.
2322
2323 * tree.c (build_constructor_va): New.
2324 * tree.h: Declare it.
2325
2326 2013-05-09 Martin Jambor <mjambor@suse.cz>
2327
2328 PR lto/57084
2329 * gimple-fold.c (canonicalize_constructor_val): Call
2330 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2331
2332 2013-05-09 Jan Hubicka <jh@suse.cz>
2333 Richard Biener <rguenther@suse.de>
2334
2335 PR lto/54095
2336 * symtab.c (symtab_make_decl_local): Do not add private names.
2337
2338 2013-05-09 Jan Hubicka <jh@suse.cz>
2339
2340 PR lto/54095
2341 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2342 (unlink_from_assembler_name_hash): Likewise.
2343 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2344 symtab_unregister_node, symtab_initialize_asm_name_hash,
2345 change_decl_assembler_name): Update.
2346
2347 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2348
2349 * config/aarch64/aarch64.md: New movtf split.
2350 (*movtf_aarch64): Update.
2351 (aarch64_movdi_tilow): Handle TF modes and rename to
2352 aarch64_movdi_<mode>low.
2353 (aarch64_movdi_tihigh): Handle TF modes and rename to
2354 aarch64_movdi_<mode>high
2355 (aarch64_movtihigh_di): Handle TF modes and rename to
2356 aarch64_mov<mode>high_di
2357 (aarch64_movtilow_di): Handle TF modes and rename to
2358 aarch64_mov<mode>low_di
2359 (aarch64_movtilow_tilow): Remove spurious whitespace.
2360 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2361 splits.
2362 (aarch64_print_operand): Update.
2363
2364 2013-05-09 Alan Modra <amodra@gmail.com>
2365
2366 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2367 powerpc64le.
2368 * configure: Regenerate.
2369
2370 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2371
2372 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2373 splitter preparation statements.
2374 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2375 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2376 adjust_address_nv.
2377
2378 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2379
2380 * gimple-ssa-strength-reduction.c (count_candidates): Change
2381 return value to int.
2382 (analyze_candidates_and_replace): Change type of length to int.
2383
2384 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2385
2386 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2387 (*vec_extract<mode>): Use VI12_128 mode iterator.
2388 (*vec_extract<mode>_mem): Ditto.
2389 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2390 attribute.
2391
2392 2013-05-08 Diego Novillo <dnovillo@google.com>
2393
2394 PR bootstrap/54659
2395
2396 Revert:
2397 2012-08-17 Diego Novillo <dnovillo@google.com>
2398
2399 PR bootstrap/54281
2400 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2401 * config.in: Regenerate.
2402 * configure: Regenerate.
2403 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2404
2405 2013-05-08 Jan Hubicka <jh@suse.cz>
2406
2407 PR lto/54095
2408 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2409 * cgraph.h (symtab_node_base): Add unique_name.
2410 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2411 input_overwrite_node, input_varpool_node): Stream unique_name.
2412 * cgraphclones.c (cgraph_create_virtual_clone,
2413 cgraph_function_versioning): Set unique_name.
2414 * ipa.c (function_and_variable_visibility): Set unique_name.
2415
2416 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2417
2418 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2419 (alloc_cand_and_find_basis): Restrict conditional candidate
2420 processing to CAND_MULTs.
2421
2422 2013-05-08 Jan Hubicka <jh@suse.cz>
2423
2424 PR lto/54095
2425 lto-symtab.c (lto_symtab_symbol_p): New function.
2426 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2427 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2428 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2429 Skip static symbols.
2430
2431 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2432
2433 PR tree-optimization/57200
2434 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2435 Only call inform if the preceding warning_at returns true.
2436
2437 2013-05-07 Han Shen <shenhan@google.com>
2438
2439 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2440 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2441 * common.opt (fstack-protector-strong): New option.
2442 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2443 * doc/invoke.texi (Optimization Options): Document
2444 "-fstack-protector-strong".
2445 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2446
2447 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2448
2449 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2450
2451 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2452
2453 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2454 it is not lhs of the insn.
2455 (setup_reg_equiv): Remove insn having equiv memory which it is not
2456 lhs of the insn.
2457 * lra-constraints.c (process_address): Try to improve generation
2458 code for address base + disp.
2459 (lra_constraints): Make correct the code for checking insn setting
2460 up backward equivalence. Remove insn only if it is in the init
2461 insn list.
2462 * lra-eliminations.c (update_reg_eliminate): Change return value.
2463 (lra_eliminate): Use the result.
2464
2465 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2466
2467 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2468 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2469 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2470 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2471 register target operands.
2472 (*vec_extractv8hi_sse2): New pattern.
2473 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2474 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2475 (*vec_extract<mode>_mem): New insn and split pattern.
2476
2477 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2478
2479 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2480 (TARGET_ASAN_SHADOW_OFFSET): Define.
2481 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2482 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2483
2484 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2485
2486 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2487 (incr_vec_index): Return -1 if increment not found.
2488 (create_add_on_incoming_edge): Assert if increment not found.
2489 (record_increment): Limit number of increments recorded.
2490 (all_phi_incrs_profitable): Return false if an increment not found.
2491 (replace_profitable_candidates): Don't process increments that were
2492 not recorded.
2493 (analyze_candidates_and_replace): Limit size of incr_vec.
2494
2495 2013-05-07 Richard Biener <rguenther@suse.de>
2496
2497 * calls.c (special_function_p): setjmp-like functions are leaf.
2498 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2499 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2500
2501 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2502
2503 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2504 (aarch64_simd_mov<mode>): New expander.
2505 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2506 (aarch64_simd_mov_to_<mode>high): Likewise.
2507 (aarch64_simd_mov_from_<mode>low): Likewise.
2508 (aarch64_simd_mov_from_<mode>high): Likewise.
2509 (aarch64_dup_lane<mode>): Update.
2510 (aarch64_dup_lanedi): New instruction pattern.
2511 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2512 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2513
2514 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2515
2516 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2517 (replace_mult_candidate): Remove unnecessary argument; remove
2518 unnecessary parameter from call to introduce_cast_before_cand.
2519 (replace_unconditional_candidate): Remove unnecessary parameter
2520 from call to replace_mult_candidate.
2521 (replace_conditional_candidate): Likewise.
2522 (insert_initializers): Use make_temp_ssa_name.
2523 (introduce_cast_before_cand): Remove unnecessary argument; use
2524 make_temp_ssa_name.
2525 (replace_one_candidate): Remove unnecessary argument; remove
2526 unnecessary parameter from calls to introduce_cast_before_cand.
2527 (replace_profitable_candidates): Remove unnecessary parameters
2528 from calls to replace_one_candidate.
2529
2530 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2531
2532 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2533 phi def as possibly hiding a basis for a CAND_ADD whose operands
2534 have been commuted in the analysis.
2535 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2536
2537 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2538
2539 * config/aarch64/aarch64.md
2540 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2541 shift value between 0-4.
2542
2543 2013-05-07 Richard Biener <rguenther@suse.de>
2544
2545 * double-int.h (rshift): New overload.
2546 * double-int.c (rshift): New function.
2547 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2548 (create_reference_ops_from_ref): Remove.
2549 (vn_reference_insert): Use shared ops for constructing the
2550 reference and copy it.
2551
2552 2013-05-07 Richard Biener <rguenther@suse.de>
2553
2554 PR middle-end/57190
2555 * tree-eh.c (sink_clobbers): Properly propagate
2556 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2557
2558 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2559
2560 PR tree-optimization/57149
2561 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2562 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2563 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2564 uninit_undefined_value_p instead of ssa_undefined_value_p.
2565
2566 PR debug/57184
2567 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2568 for modifier == EXPAND_INITIALIZER.
2569
2570 2013-05-07 Anton Blanchard <anton@samba.org>
2571
2572 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2573 for powerpc64 little endian.
2574 * configure: Regenerate.
2575
2576 2013-05-06 Graham Stott <grahams@btinternet.com>
2577
2578 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2579 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2580 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2581 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2582
2583 2013-05-06 Graham Stott <grahams@btinternet.com>
2584
2585 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2586 codes which allow non-lvalues.
2587
2588 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2589
2590 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2591 components are all 1s.
2592 (integer_minus_onep): New function.
2593 * tree.h (integer_minus_onep): Declare it.
2594 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2595 integer_minus_onep instead of integer_all_onesp.
2596
2597 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2598
2599 PR target/52933
2600 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2601 variations of these patterns.
2602
2603 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2604
2605 * config/i386/i386.md (isa): Add x64_sse4 member.
2606 (enabled): Handle x64_sse4.
2607 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2608 instruction for 64bit SSE4_1 targets. Update insn attributes.
2609 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2610 instruction for SSE4_1 targets. Update insn attributes.
2611 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2612 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2613 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2614 const_1 selector.
2615 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2616 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2617 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2618
2619 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2620
2621 PR target/57108
2622 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2623
2624 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2625
2626 * final.c (do_assembler_dialects): Don't handle curly braces and
2627 vertical bar escaped by % as dialect delimiters.
2628 (output_asm_insn): Print curly braces and vertical bar if escaped
2629 by % and ASSEMBLER_DIALECT defined.
2630 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2631 * doc/tm.texi: Regenerated.
2632
2633 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2634
2635 * config/mips/mips.c: Include tree-pass.h.
2636 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2637 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2638 (pass_mips_machine_reorg2): New machine specific pass.
2639 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2640 (mips_option_override): Register the new pass.
2641 * rtl.h (cleanup_barriers): Remove prototype.
2642 (dbr_schedule): Likewise.
2643 * jump.c (cleanup_barriers): Make static.
2644 * reorg.c (dbr_schedule): Likewise.
2645
2646 2013-05-06 Richard Biener <rguenther@suse.de>
2647
2648 PR tree-optimization/57185
2649 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2650 SSA names properly.
2651
2652 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2653
2654 PR target/57106
2655 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2656 between "first_arg" and "insn", not "last" and "insn".
2657
2658 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2659
2660 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2661 (find_candidates_in_block): Re-enable slsr_process_phi.
2662 (create_phi_basis): Fix double counting of candidate adjustment.
2663
2664 2013-05-06 Richard Biener <rguenther@suse.de>
2665
2666 PR middle-end/57147
2667 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2668 the edge is also fallthru, preserve it and just clear the
2669 abnormal flag.
2670 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2671 also complex, preserve that and just clear the fallthru flag.
2672 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2673 update virtual operands.
2674
2675 2013-05-06 Alan Modra <amodra@gmail.com>
2676
2677 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2678 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2679 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2680 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2681 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2682 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2683
2684 2013-05-06 Alan Modra <amodra@gmail.com>
2685
2686 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2687 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2688 (DEFAULT_ASM_ENDIAN): Define.
2689 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2690 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2691 Update -K PIC clause from sysv4.h.
2692 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2693 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2694
2695 2013-05-06 Alan Modra <amodra@gmail.com>
2696
2697 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2698 twice for little-endian.
2699 (ashrdi3_no_power, ashrdi3): Support little-endian.
2700
2701 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2702
2703 PR target/55303
2704 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2705 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2706 related expanders.
2707 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2708 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2709 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2710 New predicates.
2711
2712 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2713 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2714
2715 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2716 * config/pa/pa.opt: Make mbig-switch a no-op.
2717 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2718 (CASE_VECTOR_MODE): Always return SImode.
2719 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2720 for the !TARGET_BIG_SWITCH case.
2721 * config/pa/pa-linux.h: Likewise.
2722 * config/pa/pa-openbsd.h: Likewise.
2723 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2724 * config/pa/pa.md (short_jump): Remove define_insn.
2725 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2726 (casesi0): Remove define_insn.
2727 (type): Remove btable_branch.
2728 (pa_combine_type): Likewise.
2729 (in_nullified_branch_delay): Likewise.
2730 (in_call_delay): Likewise.
2731 (define_delay): Likewise.
2732 (define_insn_reservation "Z3"): Likewise.
2733 (define_insn_reservation "Z4"): Likewise.
2734 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2735 (pa_adjust_insn_length): Remove adjustment for btable branches.
2736 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2737 and mno-big-switch
2738
2739 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
2740
2741 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2742 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2743 Add m->r,x alternatives.
2744 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2745 splitters using SWI48x mode iterator.
2746 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2747 TARGET_64BIT. Add m->x alternative.
2748 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2749 Add o->x alternative. Enable for TARGET_SSE.
2750 (sse_storeq): Remove expander.
2751 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2752 with memory input operand.
2753 (*vec_extractv2di_1 splitter): New.
2754 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2755 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2756
2757 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2758
2759 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2760 (INT_LOWPART): Delete.
2761 (extract_MB): Adjust.
2762 (extract_ME): Adjust.
2763 (print_operand): Adjust.
2764
2765 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2766
2767 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2768 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2769 (reg_or_logical_cint_operand, easy_fp_constant,
2770 logical_const_operand): Delete "CONST_DOUBLE" case.
2771 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2772 "HOST_BITS_PER_WIDE_INT == 64" test.
2773 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
2774 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2775 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2776 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2777 test.
2778 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2779 CONST_DOUBLE DImode/VOIDmode case.
2780 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2781 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2782 CONST_DOUBLE VOIDmode case.
2783 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2784 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2785 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2786 Delete CONST_DOUBLE case.
2787 (splitters for mov FMOVE64 const_double): Delete
2788 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2789 "HOST_BITS_PER_WIDE_INT >= 64" test.
2790 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2791 case.
2792 (mov DI const_double): Delete.
2793
2794 2013-05-04 Jakub Jelinek <jakub@redhat.com>
2795
2796 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2797 on op shows all bits zero in mode of a lowpart subreg, return zero.
2798
2799 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2800
2801 PR target/57150
2802 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2803 to save TFmode registers and DImode to save TImode registers for
2804 caller save operations.
2805 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2806 mark being partially clobbered since they only use the first
2807 double word.
2808
2809 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2810 and TDmode only use the upper 64-bits of each VSX register.
2811
2812 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2813
2814 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2815 (find_candidates_in_block): Disable slsr_process_phi.
2816
2817 2013-05-03 Guozhi Wei <carrot@google.com>
2818
2819 * coverage.c (coverage_obj_init): Move the construction of gcov
2820 constructor to ...
2821 (build_init_ctor): ... here.
2822
2823 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2824
2825 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2826 (slsr_cand_d): Redefine def_phi.
2827 (stride_status, phi_adjust_status, count_phis_status): New enums.
2828 (find_phi_def): New.
2829 (find_basis_for_base_expr): New.
2830 (find_basis_for_candidate): Handle hidden bases.
2831 (alloc_cand_and_find_basis): Handle phi candidates.
2832 (slsr_process_phi): New.
2833 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2834 (create_mul_imm_cand): Likewise.
2835 (create_add_ssa_cand): Exclude phi base candidates.
2836 (create_add_imm_cand): Likewise.
2837 (slsr_process_cast): Likewise.
2838 (slsr_process_copy): Likewise.
2839 (find_candidates_in_block): Handle phi candidates.
2840 (dump_candidate): Likewise.
2841 (unconditional_cands): Delete.
2842 (unconditional_cands_with_known_stride_p): Delete.
2843 (phi_dependent_cand_p): New.
2844 (cand_increment): Handle phi-dependent candidates.
2845 (replace_dependent): Delete.
2846 (replace_mult_candidate): New.
2847 (replace_unconditional_candidate): New.
2848 (incr_vec_index): Move to avoid forward reference.
2849 (create_add_on_incoming_edge): New.
2850 (create_phi_basis): New.
2851 (replace_dependents): Delete.
2852 (replace_conditional_candidate): New.
2853 (phi_add_costs): New.
2854 (replace_uncond_cands_and_profitable_phis): New.
2855 (record_increment): Handle phi adjustments.
2856 (record_phi_increments): New.
2857 (record_increments): Handle phi adjustments.
2858 (phi_incr_cost): New.
2859 (lowest_cost_path): Handle phis.
2860 (total_savings): Likewise.
2861 (analyze_increments): Likewise.
2862 (ncd_with_phi): New.
2863 (ncd_of_cand_and_phis): New.
2864 (nearest_common_dominator_for_cands): Handle phi increments.
2865 (all_phi_incrs_profitable): New.
2866 (replace_profitable_candidates): Handle phi-dependent candidates.
2867 (analyze_candidates_and_replace): Likewise.
2868
2869 2013-05-03 Teresa Johnson <tejohnson@google.com>
2870
2871 PR bootstrap/57154
2872 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2873 do not exceed REG_BR_PROB_BASE.
2874
2875 2013-05-03 Jeff Law <law@redhat.com>
2876
2877 PR tree-optimization/57144
2878 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2879 operand of the condition will bit into the new type when eliminating
2880 a cast feeding a condition.
2881
2882 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2883
2884 PR rtl-optimization/57130
2885 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2886 of COMPARE as in_code to the recursive call if needed.
2887
2888 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
2889
2890 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2891 (enabled): Handle new members.
2892 * config/i386/sse.md (*vec_concatv2si): Merge from
2893 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2894 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2895
2896 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2897
2898 PR tree-optimization/57027
2899 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2900 for fnms opportunity, check we got the prerequisite kind
2901 of tree / gimple before using accessor functions.
2902
2903 2013-05-03 Richard Biener <rguenther@suse.de>
2904
2905 * double-int.h (lshift): New overload without precision
2906 and arith argument.
2907 (operator *=, operator +=, operator -=): Move ...
2908 * double-int.c (operator *=, operator +=, operator -=): ... here
2909 and implement more efficiently.
2910 (mul_double_with_sign): Remove.
2911 (lshift_double): Adjust to take unsinged shift argument, push
2912 dispatching code to callers.
2913 (mul_double_wide_with_sign): Add early out for callers that
2914 are not interested in high parts or overflow.
2915 (lshift): New function.
2916 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2917 dispatch code here.
2918 (lrotate, rrotate): Use logical shifts.
2919 * expr.c (get_inner_reference): Use lshift.
2920 * fixed-value.c (do_fixed_divide): Likewise.
2921 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2922 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2923 (indirect_refs_may_alias_p): Likewise.
2924 (stmt_kills_ref_p_1): Likewise.
2925
2926 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2927
2928 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2929
2930 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2931
2932 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2933 scalar form of FABD instruction.
2934
2935 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2936
2937 * lra-constraints.c (process_alt_operands): Add checking alt
2938 number to choose the best alternative.
2939
2940 2013-05-02 Richard Biener <rguenther@suse.de>
2941
2942 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2943 bitmap and its handling.
2944 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2945
2946 2013-05-02 Richard Biener <rguenther@suse.de>
2947
2948 PR middle-end/57140
2949 * tree-inline.c (copy_loops): Properly handle removed loops.
2950 (copy_cfg_body): Mark destination loops for fixup if source
2951 loops needed fixup.
2952
2953 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2954
2955 PR target/56732
2956 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2957 generating simple_return for naked functions.
2958
2959 2013-05-02 Martin Jambor <mjambor@suse.cz>
2960
2961 PR middle-end/56988
2962 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2963 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2964 flags match.
2965 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2966 ipa_agg_replacement_value structures.
2967 (known_aggs_to_agg_replacement_list): Likewise.
2968 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2969 (read_agg_replacement_chain): Likewise.
2970 (ipcp_transform_function): Also check that by_ref flags match.
2971
2972 2013-05-02 Richard Biener <rguenther@suse.de>
2973
2974 * graphds.h (struct graph): Add obstack member.
2975 * graphds.c (new_graph): Initialize obstack and allocate
2976 vertices from it.
2977 (add_edge): Allocate edge from the obstack.
2978 (free_graph): Free the obstack instead of all edges and vertices.
2979
2980 2013-05-02 Teresa Johnson <tejohnson@google.com>
2981
2982 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2983 divides.
2984 * cfg.c (update_bb_profile_for_threading): Ditto.
2985 * tree-inline.c (copy_bb): Ditto.
2986 (copy_edges_for_bb): Ditto.
2987 (initialize_cfun): Ditto.
2988 (copy_cfg_body): Ditto.
2989 (expand_call_inline): Ditto.
2990 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2991 (estimate_node_size_and_time): Ditto.
2992 (inline_merge_summary): Ditto.
2993 * cgraphclones.c (cgraph_clone_edge): Ditto.
2994 (cgraph_clone_node): Ditto.
2995 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2996 (compute_trg_info): Ditto.
2997
2998 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2999
3000 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3001 S reg when fp attribute set.
3002 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3003
3004 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3005
3006 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3007 New pattern.
3008 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3009 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3010 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3011
3012 2013-05-02 Richard Biener <rguenther@suse.de>
3013
3014 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3015 (struct instantiate_cache_entry): New type.
3016 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3017 (struct instantiate_cache_type): New type.
3018 (set_instantiated_value, get_instantiated_value): Remove.
3019 (get_instantiated_value_entry): New function.
3020 (instantiate_scev_name): Use the new cache and adjust.
3021 (instantiate_scev_poly): Adjust.
3022 (instantiate_scev_binary): Likewise.
3023 (instantiate_array_ref): Likewise.
3024 (instantiate_scev_convert): Likewise.
3025 (instantiate_scev_not): Likewise.
3026 (instantiate_scev_3): Likewise.
3027 (instantiate_scev_2): Likewise.
3028 (instantiate_scev_r): Likewise.
3029 (instantiate_scev): Likewise.
3030 (resolve_mixers): Likewise.
3031
3032 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3033
3034 PR target/57091
3035 * lra-constraints.c (best_small_class_operands_num): Remove.
3036 (process_alt_operands): Remove small_class_operands_num. Take
3037 small classes operands into losers and only if the operand is not
3038 matched. Modify debugging output.
3039 (curr_insn_transform): Remove best_small_class_operands_num.
3040 Print insn name.
3041
3042 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3043
3044 * config/aarch64/aarch64-builtins.c
3045 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3046 * config/aarch64/aarch64-simd-builtins.def
3047 (reduc_splus_): Add new modes.
3048 (reduc_uplus_): New.
3049 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3050 (reduc_uplus_v4sf): Likewise.
3051 (reduc_splus_v4sf): Likewise.
3052 (aarch64_addv<mode>): Likewise.
3053 (reduc_uplus_<mode>): Likewise.
3054 (reduc_splus_<mode>): Likewise.
3055 (aarch64_addvv2di): Likewise.
3056 (reduc_uplus_v2di): Likewise.
3057 (reduc_splus_v2di): Likewise.
3058 (aarch64_addvv2si): Likewise.
3059 (reduc_uplus_v2si): Likewise.
3060 (reduc_splus_v2si): Likewise.
3061 (reduc_<sur>plus_<mode>): New.
3062 (reduc_<sur>plus_v2di): Likewise.
3063 (reduc_<sur>plus_v2si): Likewise.
3064 (reduc_<sur>plus_v4sf): Likewise.
3065 (aarch64_addpv4sf): Likewise.
3066 * config/aarch64/arm_neon.h
3067 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3068 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3069 add UNSPEC_SADDV, UNSPEC_UADDV.
3070 (SUADDV): New.
3071 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3072
3073 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3074
3075 * config/aarch64/arm_neon.h
3076 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3077
3078 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3079
3080 * config/aarch64/aarch64-builtins
3081 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3082
3083 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3084
3085 * config/aarch64/aarch64-simd-builtins.def
3086 (reduc_smax_): New.
3087 (reduc_smin_): Likewise.
3088 (reduc_umax_): Likewise.
3089 (reduc_umin_): Likewise.
3090 (reduc_smax_nan_): Likewise.
3091 (reduc_smin_nan_): Likewise.
3092 (fmax): Remove.
3093 (fmin): Likewise.
3094 (smax): Update for V2SF, V4SF and V2DF modes.
3095 (smin): Likewise.
3096 (smax_nan): New.
3097 (smin_nan): Likewise.
3098 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3099 (<su><maxmin><mode>3): ...This, refactor.
3100 (s<maxmin><mode>3): New.
3101 (<maxmin_uns><mode>3): Likewise.
3102 (reduc_<maxmin_uns>_<mode>): Refactor.
3103 (reduc_<maxmin_uns>_v4sf): Likewise.
3104 (reduc_<maxmin_uns>_v2si): Likewise.
3105 (aarch64_<fmaxmin><mode>: Remove.
3106 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3107 new builtin names.
3108 (vmin<q>_f<32,64>): Likewise.
3109 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3110 (FMAXMIN): New.
3111 (su): Add mappings for smax, smin, umax, umin.
3112 (maxmin): New.
3113 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3114 (FMAXMIN): Rename as...
3115 (FMAXMIN_UNS): ...This.
3116 (maxminv): Remove.
3117 (fmaxminv): Likewise.
3118 (fmaxmin): Likewise.
3119 (maxmin_uns): New.
3120 (maxmin_uns_op): Likewise.
3121
3122 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3123
3124 * config/aarch64/arm_neon.h
3125 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3126 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3127 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3128
3129 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3130
3131 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3132 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3133
3134 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3135
3136 * config/aarch64/aarch64-simd.md
3137 (vcond<mode>_internal): Handle special cases for constant masks.
3138 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3139 (vcondu<mode><mode>): Likewise.
3140 (vcond<v_cmp_result><mode>): New.
3141
3142 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3143
3144 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3145 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3146 * config/aarch64/aarch64-simd-builtins.def
3147 (cmeq): Update to BUILTIN_VALLDI.
3148 (cmgt): Likewise.
3149 (cmge): Likewise.
3150 (cmle): Likewise.
3151 (cmlt): Likewise.
3152 * config/aarch64/arm_neon.h
3153 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3154 to builtins or C as appropriate.
3155
3156 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3157
3158 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3159 (cmgeu): ...This.
3160 (cmhi): Rename to...
3161 (cmgtu): ...This.
3162 * config/aarch64/aarch64-simd.md
3163 (simd_mode): Add SF.
3164 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3165 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3166 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3167 (cstore<mode>_neg): ...This.
3168 * config/aarch64/iterators.md
3169 (VALLF): new.
3170 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3171 (COMPARISONS): New.
3172 (UCOMPARISONS): Likewise.
3173 (optab): Add missing comparisons.
3174 (n_optab): New.
3175 (cmp_1): Likewise.
3176 (cmp_2): Likewise.
3177 (CMP): Likewise.
3178 (cmp): Remove.
3179 (VCMP_S): Likewise.
3180 (VCMP_U): Likewise.
3181 (V_cmp_result): Add DF, SF modes.
3182 (v_cmp_result): Likewise.
3183 (v): Likewise.
3184 (vmtype): Likewise.
3185 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3186
3187 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3188
3189 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3190 define_insn to define_insn_and_split.
3191 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3192 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3193 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3194 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3195 (thumb2_negscc): Likewise.
3196
3197 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3198
3199 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3200
3201 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3202
3203 * config/arm/thumb2.md: Remove trailing whitespaces.
3204
3205 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3206
3207 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3208 Use gen_int_mode rather than GEN_INT.
3209
3210 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3211
3212 * value-prof.c (stream_in_histogram_value): Remove the strayed
3213 debug_gimple_stmt.
3214
3215 2013-04-30 Richard Biener <rguenther@suse.de>
3216
3217 PR middle-end/57122
3218 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3219
3220 2013-04-30 Richard Biener <rguenther@suse.de>
3221
3222 PR middle-end/57107
3223 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3224
3225 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3226
3227 PR rtl-optimization/56957
3228 PR rtl-optimization/57105
3229 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3230 variable. Use just INSN_UID for determining whether an insn
3231 should be only disconnected from the insn stream.
3232 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3233
3234 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3235
3236 PR tree-optimization/57104
3237 * tsan.c (instrument_expr): Don't instrument accesses to
3238 DECL_HARD_REGISTER VAR_DECLs.
3239
3240 2013-04-30 Richard Biener <rguenther@suse.de>
3241
3242 * function.h (loops_for_fn): New inline function.
3243 (set_loops_for_fn): Likewise.
3244 * cfgloop.h (place_new_loop): Add struct function parameter.
3245 (get_loop): Likewise.
3246 (get_loops): Likewise.
3247 (number_of_loops): Likewise.
3248 (fel_next): Adjust.
3249 (fel_init): Likewise.
3250 * cfg.c (get_loop_copy): Adjust.
3251 * cfgloop.c (flow_loops_dump): Likewise.
3252 (record_loop_exits): Likewise.
3253 (verify_loop_structure): Likewise.
3254 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3255 (estimate_reg_pressure_cost): Likewise.
3256 (mark_loop_exit_edges): Likewise.
3257 * cfgloopmanip.c (place_new_loop): Likewise.
3258 (add_loop): Likewise.
3259 (duplicate_loop): Likewise.
3260 * graph.c (draw_cfg_nodes): Likewise.
3261 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3262 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3263 (extract_affine_chrec): Likewise.
3264 (build_scop_iteration_domain): Likewise.
3265 * graphite.c (graphite_initialize): Likewise.
3266 * ira-build.c (create_loop_tree_nodes): Likewise.
3267 (more_one_region_p): Likewise.
3268 (rebuild_regno_allocno_maps): Likewise.
3269 (mark_loops_for_removal): Likewise.
3270 (mark_all_loops_for_removal): Likewise.
3271 (remove_unnecessary_regions): Likewise.
3272 (ira_build): Likewise.
3273 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3274 * loop-init.c (fix_loop_structure): Likewise.
3275 (gate_rtl_move_loop_invariants): Likewise.
3276 (gate_rtl_unswitch): Likewise.
3277 (gate_rtl_unroll_and_peel_loops): Likewise.
3278 (rtl_doloop): Likewise.
3279 * lto-streamer-in.c (input_cfg): Likewise.
3280 * lto-streamer-out.c (output_cfg): Likewise.
3281 * modulo-sched.c (sms_schedule): Likewise.
3282 * predict.c (tree_estimate_probability): Likewise.
3283 (tree_estimate_probability_driver): Likewise.
3284 (estimate_loops): Likewise.
3285 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3286 (move_sese_region_to_fn): Likewise.
3287 (debug_loop_num): Likewise.
3288 * tree-chrec.c (chrec_evaluate): Likewise.
3289 (hide_evolution_in_other_loops_than_loop): Likewise.
3290 (chrec_component_in_loop_num): Likewise.
3291 (reset_evolution_in_loop): Likewise.
3292 (evolution_function_is_invariant_rec_p): Likewise.
3293 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3294 * tree-inline.c (copy_loops): Likewise.
3295 (copy_cfg_body): Likewise.
3296 (tree_function_versioning): Likewise.
3297 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3298 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3299 Likewise.
3300 (add_to_evolution_1): Likewise.
3301 (scev_const_prop): Likewise.
3302 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3303 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3304 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3305 (tree_ssa_lim_initialize): Likewise.
3306 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3307 (verify_loop_closed_ssa): Likewise.
3308 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3309 (tree_ssa_loop_im): Likewise.
3310 (tree_ssa_loop_unswitch): Likewise.
3311 (tree_vectorize): Likewise.
3312 (check_data_deps): Likewise.
3313 (tree_ssa_loop_ivcanon): Likewise.
3314 (tree_ssa_loop_bounds): Likewise.
3315 (tree_complete_unroll): Likewise.
3316 (tree_complete_unroll_inner): Likewise.
3317 (tree_parallelize_loops): Likewise.
3318 (tree_ssa_loop_prefetch): Likewise.
3319 (tree_ssa_loop_ivopts): Likewise.
3320 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3321 * tree-vectorizer.c (vectorize_loops): Likewise.
3322
3323 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3324
3325 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3326 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3327 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3328 with EABI_LINK_SPEC.
3329
3330 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3331
3332 PR target/44578
3333 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3334 alternative.
3335
3336 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3337
3338 PR target/57097
3339 * lra-constraints.c (process_alt_operands): Discourage a bit more
3340 using memory for pseudos. Print cost dump for alternatives.
3341 Modify cost values for conflicts with early clobbers.
3342 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3343
3344 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3345
3346 PR target/57098
3347 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3348
3349 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3350
3351 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3352 from/to S register.
3353 (movdi_aarch64): Support LDR/STR from/to D register.
3354
3355 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3356
3357 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3358 or higher by default.
3359
3360 2013-04-29 Richard Biener <rguenther@suse.de>
3361
3362 PR middle-end/57075
3363 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3364 even if not adding abnormal edges for calls that can make
3365 abnormal gotos.
3366
3367 2013-04-29 Richard Biener <rguenther@suse.de>
3368
3369 PR middle-end/57103
3370 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3371 TREE_BLOCK.
3372 (move_stmt_r): Remove redundant checking.
3373
3374 2013-04-29 Teresa Johnson <tejohnson@google.com>
3375
3376 PR bootstrap/57077
3377 * basic-block.h (apply_scale): New function.
3378 (apply_probability): Use apply_scale.
3379 * gimple-streamer-in.c (input_bb): Ditto.
3380 * lto-streamer-in.c (input_cfg): Ditto.
3381 * lto-cgraph.c (merge_profile_summaries): Ditto.
3382 * tree-optimize.c (execute_fixup_cfg): Ditto.
3383 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3384 (copy_edges_for_bb): Ditto.
3385 (copy_cfg_body): Ditto.
3386
3387 2013-04-29 Tom de Vries <tom@codesourcery.com>
3388
3389 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3390 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3391 (tail_merge_optimize): Handle current_loops == NULL.
3392
3393 2013-04-26 Jeff Law <law@redhat.com>
3394
3395 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3396 (simplify_cond_using_ranges): Generalize code to simplify
3397 COND_EXPRs where one argument is a constant and the other
3398 is an SSA_NAME created by an integral type conversion.
3399
3400 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3401
3402 * config/arm/arm.md (store_minmaxsi): Use only when
3403 optimize_insn_for_size_p.
3404
3405 2013-04-29 Christian Bruel <christian.bruel@st.com>
3406
3407 PR target/57108
3408 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3409
3410 2013-04-29 Richard Biener <rguenther@suse.de>
3411
3412 PR middle-end/57089
3413 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3414 loop tree make sure to schedule a fixup for the child as well.
3415 (expand_omp_for_generic): Properly add loops.
3416 (expand_omp_for_static_nochunk): Likewise.
3417 (expand_omp_for_static_chunk): Likewise.
3418 (expand_omp_for): For the degenerate case fixup loops.
3419 (expand_omp_sections): Fix default bb placement in loops.
3420 (expand_omp_atomic_pipeline): Properly add loops.
3421
3422 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3423
3424 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3425
3426 2013-04-29 Tom de Vries <tom@codesourcery.com>
3427
3428 * tree-ssa-tail-merge.c: Update header comment.
3429
3430 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3431
3432 * config/aarch64/arm_neon.h
3433 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3434 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3435 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3436 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3437 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3438 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3439 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3440 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3441
3442 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3443
3444 * config/aarch64/aarch64-simd.md
3445 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3446 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3447 fix_trunc, fixuns_trunc.
3448 (ftrunc<VDQF:mode>2): New.
3449 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3450 (fix_trunc_optab): New.
3451
3452 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3453
3454 * config/aarch64/aarch64-builtins.c
3455 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3456 iceilf, lround, iroundf.
3457
3458 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3459
3460 PR target/54349
3461 * config/i386/i386.h (enum ix86_tune_indices)
3462 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3463 New, split from X86_TUNE_INTER_UNIT_MOVES.
3464 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3465 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3466 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3467 (TARGET_INTER_UNIT_MOVES): Remove.
3468 * config/i386/i386.c (initial_ix86_tune_features): Update.
3469 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3470 (ix86_expand_convert_uns_didf_sse): Use
3471 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3472 (ix86_expand_vector_init_one_nonzero): Ditto.
3473 (ix86_expand_vector_init_interleave): Ditto.
3474 (inline_secondary_memory_needed): Return true for moves from SSE class
3475 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3476 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3477 * config/i386/constraints.md (Yi, Ym): Depend on
3478 TARGET_INTER_UNIT_MOVES_TO_VEC.
3479 (Yj, Yn): New constraints.
3480 * config/i386/i386.md (*movdi_internal): Change constraints of
3481 operand 1 from Yi to Yj and from Ym to Yn.
3482 (*movsi_internal): Ditto.
3483 (*movdf_internal): Ditto.
3484 (*movsf_internal): Ditto.
3485 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3486 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3487 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3488 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3489 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3490 * config/i386/sse.md (movdi_to_sse): Ditto.
3491 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3492 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3493 TARGET_INTER_UNIT_MOVES.
3494 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3495 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3496 instead of TARGET_INTER_UNIT_MOVES.
3497 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3498 operand 1 from Yi to Yj and from Ym to Yn.
3499
3500 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3501
3502 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3503 (float_truncate_hi_): Likewise.
3504 (float_extend_lo_): Likewise.
3505 (float_truncate_lo_): Likewise.
3506 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3507 (aarch64_float_extend_lo_v2df): Likewise.
3508 (vec_unpacks_hi_v4sf): Likewise.
3509 (aarch64_float_truncate_lo_v2sf): Likewise.
3510 (aarch64_float_truncate_hi_v4sf): Likewise.
3511 (vec_pack_trunc_v2df): Likewise.
3512 (vec_pack_trunc_df): Likewise.
3513
3514 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3515
3516 * config/aarch64/aarch64-builtins.c
3517 (aarch64_fold_builtin): Fold float conversions.
3518 * config/aarch64/aarch64-simd-builtins.def
3519 (floatv2si, floatv4si, floatv2di): New.
3520 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3521 * config/aarch64/aarch64-simd.md
3522 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3523 * config/aarch64/iterators.md (FLOATUORS): New.
3524 (optab): Add float, floatuns.
3525 (su_optab): Likewise.
3526
3527 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3528
3529 * config/aarch64/aarch64-builtins.c
3530 (aarch64_builtin_vectorized_function): Use new names for
3531 fcvt builtins.
3532 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3533 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3534 (fcvtzu): Split as...
3535 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3536 (fcvtas): Split as...
3537 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3538 (fcvtau): Split as...
3539 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3540 (fcvtps): Split as...
3541 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3542 (fcvtpu): Split as...
3543 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3544 (fcvtms): Split as...
3545 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3546 (fcvtmu): Split as...
3547 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3548 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3549 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3550 (lfrintnusf, lfrintnudf): Likewise.
3551 * config/aarch64/aarch64-simd.md
3552 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3553 define_insn.
3554 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3555 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3556 (fcvt_pattern): Likewise.
3557
3558 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3559
3560 * config/aarch64/aarch64-simd.md
3561 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3562 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3563
3564 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3565
3566 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3567 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3568 (vrnd<a,m,n,p>_f32): Implement using builtins.
3569 (vrnd<i,x><q>_f<32, 64>): New.
3570
3571 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3572
3573 * config/aarch64/aarch64-builtins.c
3574 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3575 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3576 (frintz): Rename to...
3577 (btrunc): ...this.
3578 (frintp): Rename to...
3579 (ceil): ...this.
3580 (frintm): Rename to...
3581 (floor): ...this.
3582 (frinti): Rename to...
3583 (nearbyint): ...this.
3584 (frintx): Rename to...
3585 (rint): ...this.
3586 (frinta): Rename to...
3587 (round): ...this.
3588 * config/aarch64/aarch64-simd.md
3589 (aarch64_frint<frint_suffix><mode>): Delete.
3590 (<frint_pattern><mode>2): Convert to insn.
3591 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3592 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3593 (frint_pattern): Likewise.
3594 (frint_suffix): Likewise.
3595
3596 2013-04-29 Richard Biener <rguenther@suse.de>
3597
3598 PR tree-optimization/57081
3599 * loop-init.c: Include tree-flow.h.
3600 (loop_optimizer_finalize): Free number of iteration estimates.
3601 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3602
3603 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3604
3605 PR tree-optimization/57083
3606 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3607 non-singleton shift count range, zero extend low_bound for uns case.
3608
3609 * config/i386/predicates.md (general_vector_operand): New predicate.
3610 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3611 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3612 if they aren't nonimmediate operands. If their original values
3613 satisfy const_vector_equal_evenodd_p, don't shift them.
3614 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3615 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3616 if not nonimmediate_operand.
3617 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3618 instead of register_operand.
3619 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3620
3621 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3622
3623 * stor-layout.c (finalize_size_functions): Allocate a structure and
3624 reset cfun before dumping the functions.
3625
3626 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3627
3628 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3629
3630 PR target/56866
3631 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3632 use xop_pmacsdqh if uns_p.
3633 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3634 the immediate rotate count.
3635
3636 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3637
3638 * rtl.h (struct rtx_def): Add comment for field jump.
3639 (LRA_SUBREG_P): New macro.
3640 * recog.c (register_operand): Check LRA_SUBREG_P.
3641 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3642 stack frame.
3643 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3644 (lra_final_code_change): Skip subreg change for operators.
3645 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3646 if there are no operand changes.
3647 * lra-constraints.c (curr_insn_set): New.
3648 (match_reload): Set LRA_SUBREG_P.
3649 (emit_spill_move): Ditto.
3650 (check_and_process_move): Use curr_insn_set. Process only single
3651 set insns. Don't initialize sec_mem_p and change_p.
3652 (simplify_operand_subreg): Use LRA_SUBREG_P.
3653 (reg_in_class_p): New function.
3654 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3655 of #ifdef. Add code to remove cycling.
3656 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3657 non-null disp. Reload inner instead of disp when base and index
3658 are null. Try to put lo_sum into register.
3659 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3660 (check_and_process_move): Move code for move cost check to
3661 simple_move_p. Remove equiv_substitution.
3662 (simple_move_p): New function.
3663 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3664 curr_insn_set. Call check_and_process_move only for single set
3665 insns. Use the new function. Move call of check_and_process_move
3666 after operand equiv substitution and address process.
3667
3668 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3669
3670 PR go/57045
3671 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3672 with nonlocal goto receivers or returns twice calls, ignore
3673 unininitialized values from abnormal edges to nl goto receiver
3674 or returns twice call.
3675
3676 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3677
3678 PR tree-optimization/57051
3679 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3680 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3681 bitsize.
3682
3683 2013-04-26 Richard Biener <rguenther@suse.de>
3684
3685 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3686 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3687 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3688 (fixup_loop_arrays_after_move): New function.
3689 (move_sese_region_to_fn): Properly outline the loop tree parts
3690 of the SESE region.
3691
3692 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
3693
3694 * config/i386/i386.md (type, unit): Fix long lines.
3695
3696 2013-04-26 Richard Biener <rguenther@suse.de>
3697
3698 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3699 (lto-streamer-out.o): Likewise.
3700 * cfgloop.c (init_loops_structure): Export, add struct function
3701 argument and adjust.
3702 (flow_loops_find): Adjust.
3703 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3704 (init_loops_structure): Declare.
3705 * lto-streamer-in.c: Include cfgloop.h.
3706 (input_cfg): Input the loop tree.
3707 * lto-streamer-out.c: Include cfgloop.h.
3708 (output_cfg): Output the loop tree.
3709 (output_struct_function_base): Do not drop PROP_loops.
3710
3711 2013-03-26 Richard Biener <rguenther@suse.de>
3712
3713 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3714 (pass_build_cfg): Provide PROP_loops.
3715 (move_sese_region_to_fn): Remove loops that are outlined into fn
3716 for now.
3717 * tree-inline.c: Include cfgloop.h.
3718 (initialize_cfun): Do not drop PROP_loops.
3719 (copy_loops): New function.
3720 (copy_cfg_body): Copy loop structure.
3721 (tree_function_versioning): Initialize destination loop tree.
3722 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3723 (pass_parallelize_loops): Do IL verification.
3724 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3725 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3726 the CFG make sure we fixup loops as well.
3727 * tree-ssa-tail-merge.c: Include cfgloop.h.
3728 (replace_block_by): When merging loop latches mark loops for fixup.
3729 * lto-streamer-out.c (output_struct_function_base): Drop
3730 PROP_loops for now.
3731 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3732 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3733 * ipa-split.c: Include cfgloop.h.
3734 (split_function): Add the new return block to the loop tree root.
3735 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3736 whether we have removed the forwarder block.
3737 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3738 * cfgloop.h (place_new_loop): Declare.
3739 * cfgloopmanip.c (place_new_loop): Export.
3740 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3741 (tree-switch-conversion.o): Likewise.
3742 (tree-complex.o): Likewise.
3743 (tree-inline.o): Likewise.
3744 (tree-ssa-tailmerge.o): Likewise.
3745 (ipa-split.o): Likewise.
3746 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3747 (tree-ssa-copy.o): Likewise.
3748 * tree-switch-conversion.c: Include cfgloop.h
3749 (process_switch): If we emit a bit-test cascade, schedule loops
3750 for fixup.
3751 * tree-complex.c: Include cfgloop.h.
3752 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3753 * asan.c: Include cfgloop.h.
3754 (create_cond_insert_point): Properly add new basic-blocks to
3755 loops, schedule loop fixup.
3756 * cfgloop.c (verify_loop_structure): Check that looks are not
3757 marked for fixup.
3758 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3759 to loops.
3760 (expand_omp_for_generic): Likewise.
3761 (expand_omp_sections): Likewise.
3762 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3763 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3764 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3765 is initialized, not when loops are present.
3766 * tree-parloops.c (parallelize_loops): Remove checking here.
3767 * passes.c (init_optimization_passes): Schedule a copy-propagation
3768 pass before complete unrolling of inner loops.
3769
3770 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3771
3772 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3773 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3774 (colorize_init): Add argument to _WIN32 version.
3775 * toplev.c: Include diagnostic-color.h.
3776 (process_options): Default to -fdiagnostics-color=auto if
3777 GCC_COLORS env var is in the environment.
3778 * common.opt (fdiagnostics-color=): Add Var and Init.
3779 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3780 env var is in the environment, the default is auto rather than never.
3781
3782 * diagnostic.h (file_name_as_prefix): Add context argument.
3783 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3784 the string as locus.
3785 * langhooks.c (lhd_print_error_function): Adjust caller.
3786
3787 2013-04-25 Lawrence Crowl <crowl@google.com>
3788
3789 * var-tracking.c (shared_hash_def::htab):
3790 Change type to hash_table. Update dependent calls and types.
3791
3792 2013-04-25 Lawrence Crowl <crowl@google.com>
3793
3794 * Makefile.in: Update as needed below.
3795
3796 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3797 Move declaration to after the type's method definitons.
3798
3799 * attribs.c (htab_t scoped_attributes::attribute_hash):
3800 Change type to hash_table. Update dependent calls and types.
3801
3802 * bitmap.c (htab_t bitmap_desc_hash):
3803 Change type to hash_table. Update dependent calls and types.
3804
3805 * cselib.c (htab_t cselib_hash_table):
3806 Change type to hash_table. Update dependent calls and types.
3807
3808 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3809 (hash_string_slot_node): Move implementation into lto-streamer.h
3810 struct string_slot_hasher.
3811 (eq_string_slot_node): Likewise.
3812
3813 * data-streamer-out.c: Update output_block::string_hash_table
3814 dependent calls and types.
3815
3816 * dwarf2cfi.c (htab_t trace_index):
3817 Change type to hash_table. Update dependent calls and types.
3818
3819 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3820 Change type to hash_table. Update dependent calls and types.
3821 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3822 (htab_t optimize_external_refs::map): Likewise.
3823 (htab_t output_comp_unit::extern_map): Likewise.
3824 (htab_t output_comdat_type_unit::extern_map): Likewise.
3825 (htab_t output_macinfo::macinfo_htab): Likewise.
3826 (htab_t optimize_location_lists::htab): Likewise.
3827 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3828
3829 * except.c (htab_t ehspec_hash_type):
3830 Change type to hash_table. Update dependent calls and types.
3831 (assign_filter_values::ttypes): Likewise.
3832 (assign_filter_values::ehspec): Likewise.
3833 (sjlj_assign_call_site_values::ar_hash): Likewise.
3834 (convert_to_eh_region_ranges::ar_hash): Likewise.
3835
3836 * gcse.c (htab_t pre_ldst_table):
3837 Change type to hash_table. Update dependent calls and types.
3838
3839 * ggc-common.c (htab_t saving_htab):
3840 Change type to hash_table. Update dependent calls and types.
3841 (htab_t loc_hash): Likewise.
3842 (htab_t ptr_hash): Likewise.
3843 (call_count): Rename ggc_call_count.
3844 (call_alloc): Rename ggc_call_alloc.
3845 (loc_descriptor): Rename make_loc_descriptor.
3846 (add_statistics): Rename ggc_add_statistics.
3847
3848 * ggc-common.c (saving_htab):
3849 Change type to hash_table. Update dependent calls and types.
3850
3851 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3852 (push_gimplify_context): Likewise.
3853 (pop_gimplify_context): Likewise.
3854 (struct gimple_temp_hash_elt): Added.
3855 (struct gimplify_hasher): Likewise.
3856 (struct gimplify_ctx.temp_htab):
3857 Change type to hash_table. Update dependent calls and types.
3858
3859 * gimple-fold.c: Include gimplify-ctx.h.
3860
3861 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3862 Change type to hash_table. Update dependent calls and types.
3863 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3864 avoid potential global name collision.
3865
3866 * gimplify.c: Include gimplify-ctx.h.
3867 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3868 (htab_t gimplify_ctx::temp_htab):
3869 Update dependent calls and types for new type hash_table.
3870 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3871 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3872
3873 * gimplify-ctx.h: New.
3874 (struct gimple_temp_hash_elt): Move from gimplify.c.
3875 (class gimplify_hasher): New.
3876 (struct gimplify_ctx): Move from gimple.h.
3877 (htab_t gimplify_ctx::temp_htab):
3878 Change type to hash_table. Update dependent calls and types.
3879
3880 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3881 (htab_t ivs_params::newivs_index):
3882 Change type to hash_table. Update dependent calls and types.
3883 (htab_t ivs_params::params_index): Likewise.
3884 (htab_t print_generated_program::params_index): Likewise.
3885 (htab_t gloog::newivs_index): Likewise.
3886 (htab_t gloog::params_index): Likewise.
3887
3888 * graphite.c: Include graphite-htab.h.
3889 4htab_t graphite_transform_loops::bb_pbb_mapping):
3890 Change type to hash_table. Update dependent calls and types.
3891
3892 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3893 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3894 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3895
3896 * graphite-dependences.c: Include graphite-htab.h.
3897 (loop_is_parallel_p): Change hash table type of parameter.
3898
3899 * graphite-htab.h: New.
3900 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3901 (extern find_pbb_via_hash): Move from graphite-poly.h.
3902 (extern loop_is_parallel_p): Move from graphite-poly.h.
3903 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3904
3905 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3906 (extern loop_is_parallel_p): Move to graphite-htab.h.
3907 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3908
3909 * haifa-sched.c (htab_t delay_htab):
3910 Change type to hash_table. Update dependent calls and types.
3911 (htab_t delay_htab_i2): Likewise.
3912
3913 * ira-color.c (htab_t allocno_hard_regs_htab):
3914 Change type to hash_table. Update dependent calls and types.
3915
3916 * ira-costs.c (htab_t cost_classes_htab):
3917 Change type to hash_table. Update dependent calls and types.
3918
3919 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3920 Change type to hash_table. Update dependent calls and types.
3921
3922 * loop-iv.c (htab_t bivs):
3923 Change type to hash_table. Update dependent calls and types.
3924
3925 * loop-unroll.c (htab_t opt_info::insns_to_split):
3926 Change type to hash_table. Update dependent calls and types.
3927 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3928
3929 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3930 (struct string_slot_hasher): New.
3931 (htab_t output_block::string_hash_table):
3932 Change type to hash_table. Update dependent calls and types.
3933
3934 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3935 (htab_t file_name_hash_table):
3936 Change type to hash_table. Update dependent calls and types.
3937
3938 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3939 calls and types.
3940
3941 * lto-streamer.c (htab_t tree_htab):
3942 Change type to hash_table. Update dependent calls and types.
3943
3944 * omp-low.c: Include gimplify-ctx.h.
3945
3946 * passes.c (htab_t name_to_pass_map):
3947 Change type to hash_table. Update dependent calls and types.
3948 (pass_traverse): Rename to passes_pass_traverse.
3949
3950 * plugin.c (htab_t event_tab):
3951 Change type to hash_table. Update dependent calls and types.
3952
3953 * postreload-gcse.c (htab_t expr_table):
3954 Change type to hash_table. Update dependent calls and types.
3955 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3956
3957 * sese.c (debug_rename_map_1): Make extern.
3958 (htab_t copy_bb_and_scalar_dependences::rename_map):
3959 Change type to hash_table. Update dependent calls and types.
3960
3961 * sese.h (extern debug_rename_map): Move to .c file.
3962
3963 * store-motion.c (htab_t store_motion_mems_table):
3964 Change type to hash_table. Update dependent calls and types.
3965
3966 * trans-mem.c (htab_t tm_new_mem_hash):
3967 Change type to hash_table. Update dependent calls and types.
3968
3969 * tree-browser.c (htab_t TB_up_ht):
3970 Change type to hash_table. Update dependent calls and types.
3971
3972 * tree-cfg.c (htab_t discriminator_per_locus):
3973 Change type to hash_table. Update dependent calls and types.
3974
3975 * tree-complex.c: Include tree-hasher.h
3976 (htab_t complex_variable_components):
3977 Change type to hash_table. Update dependent calls and types.
3978
3979 * tree-eh.c (htab_t finally_tree):
3980 Change type to hash_table. Update dependent calls and types.
3981
3982 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3983 struct int_tree_hasher.
3984 (extern int_tree_map_eq): Likewise.
3985 (uid_decl_map_hash): Removed.
3986 (extern decl_tree_map_eq): Likewise.
3987
3988 * tree-hasher.h: New.
3989 (struct int_tree_hasher): New.
3990 (typedef int_tree_htab_type): New.
3991
3992 * tree-inline.c: Include gimplify-ctx.h.
3993
3994 * tree-mudflap.c: Include gimplify-ctx.h.
3995
3996 * tree-parloops.c: Include tree-hasher.h.
3997 (htab_t eliminate_local_variables_stmt::decl_address):
3998 Change type to hash_table. Update dependent calls and types.
3999 (htab_t separate_decls_in_region::decl_copies): Likewise.
4000
4001 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4002 Change type to hash_table. Update dependent calls and types.
4003
4004 * tree-sra.c (candidates):
4005 Change type to hash_table. Update dependent calls and types.
4006
4007 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4008 in tree-flow.h.
4009 (int_tree_map_hash): Likewise.
4010
4011 * tree-ssa-dom.c (htab_t avail_exprs):
4012 Change type to hash_table. Update dependent calls and types.
4013
4014 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4015 Change type to hash_table. Update dependent calls and types.
4016
4017 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4018 Change type to hash_table. Update dependent calls and types.
4019
4020 * tree-ssa-phiopt.c (seen_ssa_names):
4021 Change type to hash_table. Update dependent calls and types.
4022
4023 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4024 Change type to hash_table. Update dependent calls and types.
4025
4026 * tree-ssa-uncprop.c (equiv):
4027 Change type to hash_table. Update dependent calls and types.
4028
4029 2013-04-25 Jakub Jelinek <jakub@redhat.com>
4030
4031 PR rtl-optimization/57003
4032 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4033 call note_stores with kill_clobbered_value callback again after
4034 killing regs_invalidated_by_call.
4035
4036 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4037
4038 * config/aarch64/aarch64-simd.md
4039 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4040 (aarch64_simd_bsl<mode>): Likewise.
4041 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4042
4043 2013-04-25 Marek Polacek <polacek@redhat.com>
4044
4045 PR tree-optimization/57066
4046 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4047
4048 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4049
4050 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4051
4052 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4053
4054 * config/aarch64/aarch64-builtins.c
4055 (aarch64_fold_builtin): New.
4056 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4057 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4058 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4059 * config/aarch64/arm_neon.h
4060 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4061
4062 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4063 Tejas Belagod <tejas.belagod@arm.com>
4064
4065 * config/aarch64/aarch64-builtins.c
4066 (aarch64_gimple_fold_builtin): New.
4067 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4068 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4069 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4070 (addvv4sf): Update.
4071 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4072
4073 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4074
4075 * config/aarch64/aarch64.md
4076 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4077
4078 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4079
4080 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4081 (*ngcsi_uxtw): New pattern.
4082
4083 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4084 Julian Brown <julian@codesourcery.com>
4085
4086 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4087 (TB_DREG): Add T_V4HF.
4088 (v4hf_UP): New macro.
4089 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4090 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4091 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4092 built-ins.
4093 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4094 (arm_vector_mode_supported_p): Handle V4HF.
4095 (arm_mangle_map): Handle V4HFmode.
4096 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4097 * config/arm/arm_neon_builtins.def: Add entries for
4098 vcvtv4hfv4sf, vcvtv4sfv4hf.
4099 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4100 (neon_vcvtv4hfv4sf): Likewise.
4101 * config/arm/neon-gen.ml: Handle half-precision floating point
4102 features.
4103 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4104 * config/arm/arm_neon.h: Regenerate.
4105 * config/arm/neon.ml (type elts): Add F16.
4106 (type vectype): Add T_float16x4, T_floatHF.
4107 (type vecmode): Add V4HF.
4108 (type features): Add Requires_FP_bit feature.
4109 (elt_width): Handle F16.
4110 (elt_class): Likewise.
4111 (elt_of_class_width): Likewise.
4112 (mode_of_elt): Refactor.
4113 (type_for_elt): Handle F16, fix error messages.
4114 (vectype_size): Handle T_float16x4.
4115 (vcvt_sh): New function.
4116 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4117 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4118 (string_of_mode): Handle V4HF.
4119 * doc/arm-neon-intrinsics.texi: Regenerate.
4120
4121 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4122
4123 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4124 format specifier in 'X' case.
4125
4126 2013-04-25 Alan Modra <amodra@gmail.com>
4127
4128 PR target/57052
4129 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4130 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4131 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4132 Repeat for many other rotate/shift and mask patterns using subregs.
4133 Name lshiftrt insns.
4134 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4135 on WORDS_BIG_ENDIAN.
4136
4137 2013-04-25 Alan Modra <amodra@gmail.com>
4138
4139 * config.gcc: Support little-endian powerpc-linux targets.
4140 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4141 (LINK_OS_LINUX_SPEC): Define.
4142 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4143 Preserve MASK_LITTLE_ENDIAN.
4144 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4145 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4146 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4147 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4148 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4149 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4150 Correct fp word order for little-endian. Don't shift toc entries
4151 smaller than a word for little-endian.
4152 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4153 (bswapdi2 splits): Correct low-part subreg for little-endian.
4154 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4155 low/high where such is correct only for be.
4156 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4157 little-endian for -mcall-aixdesc.
4158
4159 2013-04-25 Alan Modra <amodra@gmail.com>
4160
4161 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4162 replace_equiv_address_nv.
4163
4164 2013-04-25 Alan Modra <amodra@gmail.com>
4165
4166 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4167
4168 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4169
4170 Revert:
4171 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4172 * rtl.h (struct rtx_def): ...
4173
4174 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4175
4176 PR rtl-optimizations/57046
4177 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4178 for multi-reg splits.
4179
4180 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4181
4182 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4183
4184 2013-04-24 Sterling Augustine <saugustine@google.com>
4185
4186 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4187 (comp_dir_string, debug_str_dwo_section): New.
4188 (DEBUG_STR_DWO_SECTION): Rename to ...
4189 (DEBUG_DWO_STR_SECTION): ... this.
4190 (DEBUG_NORM_STR_SECTION): Delete.
4191 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4192 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4193 (find_AT_string): Move most logic to ...
4194 (find_AT_string_in_table): ... here. New.
4195 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4196 add_skeleton_AT_string. Delete logic.
4197 (output_skeleton_debug_sections): Remove call to
4198 add_top_level_skeleton_die_attrs.
4199 (add_comp_dir_attribute): Move logic to comp_dir_string.
4200 (dwarf2out_init): Initialize debug_str_dwo_section.
4201 (output_indirect_string): Call find_string_form.
4202 (output_indirect_strings): Rewrite.
4203 (prune_unused_types): Empty skeleton_debug_str_hash.
4204 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4205 (dwarf2out_finish): Call output_indirect_strings.
4206
4207 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4208
4209 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4210
4211 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4212
4213 * rtl.h (struct rtx_def): Add comment for field jump.
4214 (LRA_SUBREG_P): New macro.
4215 * recog.c (register_operand): Check LRA_SUBREG_P.
4216 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4217 stack frame.
4218 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4219 (lra_final_code_change): Skip subreg change for operators.
4220 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4221 if there are no operand changes.
4222 * lra-constraints.c (curr_insn_set): New.
4223 (match_reload): Set LRA_SUBREG_P.
4224 (emit_spill_move): Ditto.
4225 (check_and_process_move): Use curr_insn_set. Process only single
4226 set insns. Don't initialize sec_mem_p and change_p.
4227 (simplify_operand_subreg): Use LRA_SUBREG_P.
4228 (reg_in_class_p): New function.
4229 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4230 of #ifdef. Add code to remove cycling.
4231 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4232 non-null disp. Reload inner instead of disp when base and index
4233 are null. Try to put lo_sum into register.
4234 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4235 (check_and_process_move): Move code for move cost check to
4236 simple_move_p. Remove equiv_substitution.
4237 (simple_move_p): New function.
4238 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4239 curr_insn_set. Call check_and_process_move only for single set
4240 insns. Use the new function. Move call of check_and_process_move
4241 after operand equiv substitution and address process.
4242
4243 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4244
4245 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4246 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4247 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4248
4249 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4250
4251 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4252
4253 2013-04-24 Marek Polacek <polacek@redhat.com>
4254
4255 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4256 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4257 (select_loops_exit_conditions): Likewise.
4258 (number_of_iterations_for_all_loops): Likewise.
4259 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4260 (scev_analysis): Likewise.
4261
4262 2013-04-02 Catherine Moore <clm@codesourcery.com>
4263 Chao-ying Fu <fu@mips.com>
4264
4265 * config/mips/micromips.md (jraddiusp): New pattern.
4266 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4267 instruction if possible.
4268
4269 2013-04-24 Alan Modra <amodra@gmail.com>
4270
4271 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4272
4273 2013-04-24 Julian Brown <julian@codesourcery.com>
4274 Chung-Lin Tang <cltang@codesourcery.com>
4275
4276 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4277 dependency behavior in enumeration type DIE generation. Add TODO note
4278 to comments about future DW_FORM_sdata/udata re-work of related code.
4279
4280 2013-04-23 Lawrence Crowl <crowl@google.com>
4281
4282 * Makefile.in: Update as needed below.
4283
4284 * hash-table.h (class hash_table):
4285 Correct many methods with parameter types compare_type to the correct
4286 value_type. (Correct code was unlikely to notice the change.)
4287 (hash_table::elements_with_deleted) New.
4288 (class hashtable::iterator): New.
4289 (hashtable::begin()): New.
4290 (hashtable::end()): New.
4291 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4292
4293 * statistics.c (statistics_hashes):
4294 Change type to hash_table. Update dependent calls and types.
4295
4296 * tree-into-ssa.c (var_infos):
4297 Change type to hash_table. Update dependent calls and types.
4298
4299 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4300 Change type to hash_table. Update dependent calls and types.
4301
4302 * tree-ssa-loop-im.c (struct mem_ref.refs):
4303 Change type to hash_table. Update dependent calls and types.
4304
4305 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4306 Change type to hash_table. Update dependent calls and types.
4307
4308 * tree-ssa-sccvn.c (vn_tables_s::nary):
4309 Change type to hash_table. Update dependent calls and types.
4310 (vn_tables_s::phis): Likewise.
4311 (vn_tables_s::references): Likewise.
4312
4313 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4314 (vn_reference_eq): Update parameter and return types.
4315
4316 * tree-ssa-structalias.c (pointer_equiv_class_table):
4317 Change type to hash_table. Update dependent calls and types.
4318 (location_equiv_class_table): Likewise.
4319
4320 * tree-vect-data-refs.c: Consequential changes for making
4321 peeling a hash_table.
4322
4323 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4324 (destroy_loop_vec_info): Dependent hash_table update.
4325
4326 * tree-vectorizer.h (peeling_htab):
4327 Change type to hash_table. Update dependent calls and types.
4328
4329 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4330
4331 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4332 to check the register content is equal or not.
4333 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4334 to assign register content record.
4335 * lra-eliminations.c (update_reg_eliminate): Use
4336 lra_update_reg_val_offset to update register content offset.
4337 * lra-int.h (struct lra_reg): Add offset member.
4338 (lra_reg_val_equal_p): New static inline function.
4339 (lra_update_reg_val_offset): New static inline function.
4340 (lra_assign_reg_val): New static inline function.
4341 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4342 to assign register content record.
4343 (initialize_lra_reg_info_element): Initial offset to zero.
4344
4345 2013-04-23 Catherine Moore <clm@codesourcery.com>
4346
4347 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4348 operands. Record compression.
4349
4350 2013-04-23 Xinliang David Li <davidxl@google.com>
4351
4352 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4353
4354 2013-04-23 Richard Biener <rguenther@suse.de>
4355
4356 PR middle-end/57036
4357 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4358 parameter, only add abnormal goto edges from the copied body
4359 if the call could perform abnormal gotos.
4360 (copy_cfg_body): Adjust.
4361
4362 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4363
4364 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4365
4366 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4367
4368 * coretypes.h (gimple_stmt_iterator): Add struct to make
4369 compatible with C.
4370
4371 2013-04-23 Richard Biener <rguenther@suse.de>
4372
4373 PR tree-optimization/57026
4374 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4375 from SSA names occuring in abnormal PHI nodes.
4376
4377 2013-04-22 Andi Kleen <ak@linux.intel.com>
4378
4379 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4380
4381 2013-04-22 Andi Kleen <ak@linux.intel.com>
4382
4383 * lto/lto.c (print_lto_report_1): Declare early.
4384 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4385
4386 2013-04-22 Andi Kleen <ak@linux.intel.com>
4387
4388 * common.opt (-flto-report-wpa): Add.
4389 * doc/invoke.texi (-flto-report-wpa): Add.
4390 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4391 (lto_main): dito.
4392
4393 2013-04-22 Xinliang David Li <davidxl@google.com>
4394
4395 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4396 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4397 * Makefile.in: New dependency
4398
4399 David Daney <ddaney.cavm@gmail.com>
4400
4401 * configure.ac (gcc_cv_as_micromips_support): Use the
4402 --fatal-warnings option.
4403 * configure: Regenerate.
4404
4405 2013-04-22 Marek Polacek <polacek@redhat.com>
4406
4407 PR sanitizer/56990
4408 * tsan.c (instrument_expr): Don't instrument expression
4409 in case its size is zero.
4410
4411 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4412
4413 PR target/57032
4414 Revert:
4415 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4416
4417 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4418
4419 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4420
4421 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4422 (gimple_stmt_iterator): New typedef.
4423 * gimple.h (gimple_stmt_iterator): Rename to...
4424 (gimple_stmt_iterator_d): ... This.
4425 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4426 trees be valid for GIMPLE and GENERIC.
4427 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4428 * gimple-fold.c (gimple_fold_call): Call target hook
4429 gimple_fold_builtin.
4430 * hooks.c (hook_bool_gsiptr_false): New.
4431 * hooks.h (hook_bool_gsiptr_false): New.
4432 * target.def (fold_stmt): New.
4433 * doc/tm.texi: Regenerate.
4434
4435 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4436
4437 PR target/57018
4438 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4439 a set sp if no stack realignment.
4440
4441 2013-04-22 Nick Clifton <nickc@redhat.com>
4442
4443 * config.gcc (tilegx-linux): Extend extra_objs rather than
4444 overwriting it.
4445 (tilepro-linux): Likewise.
4446
4447 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4448
4449 * config/aarch64/aarch64-builtins.c
4450 (CF): Remove.
4451 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4452 (VAR<1-12>): Add MAP parameter.
4453 (BUILTIN_*): Likewise.
4454 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4455 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4456 (aarch64_ushl_n<mode>): Likewise.
4457 (aarch64_sshr_n<mode>): Likewise.
4458 (aarch64_ushr_n<mode>): Likewise.
4459 (aarch64_<maxmin><mode>): Likewise.
4460 (aarch64_sqrt<mode>): Likewise.
4461 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4462 (vshr<q>_n_*): Likewise.
4463
4464 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4465
4466 * config/aarch64/aarch64-builtins.c
4467 (aarch64_simd_builtin_type_mode): Handle SF types.
4468 (sf_UP): Define.
4469 (BUILTIN_GPF): Define.
4470 (aarch64_init_simd_builtins): Handle SF types.
4471 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4472 (frecps): Likewise.
4473 (frecpx): Likewise.
4474 * config/aarch64/aarch64-simd.md
4475 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4476 (aarch64_frecpe<mode>): New.
4477 (aarch64_frecps<mode>): Likewise.
4478 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4479 (v8type): Add frecp<esx>.
4480 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4481 (aarch64_frecps<mode>): Likewise.
4482 * config/aarch64/iterators.md (FRECP): New.
4483 (frecp_suffix): Likewise.
4484 * config/aarch64/arm_neon.h
4485 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4486
4487 2013-04-22 Christian Bruel <christian.bruel@st.com>
4488
4489 PR target/56995
4490 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4491 (REG_CLASS_NAMES): Idem.
4492 (REG_CLASS_CONTENTS): Idem.
4493 (REGCLASS_HAS_FP_REG): Idem.
4494 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4495 (sh_conditional_register_usage): Idem.
4496
4497 2013-04-21 Jeff Law <law@redhat.com>
4498
4499 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4500 (ssa_forward_propagate_and_combine): Use it.
4501
4502 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4503
4504 * lra.c: Update the flow chart diagram.
4505
4506 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4507
4508 PR rtl-optimization/56847
4509 * lra-constraints.c (process_alt_operands): Discourage alternative
4510 with non-matche doffsettable memory constraint fro memory with
4511 known offset.
4512
4513 2013-04-19 Richard Biener <rguenther@suse.de>
4514
4515 PR tree-optimization/56982
4516 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4517 function.
4518 * gimplify.c (gimplify_call_expr): Notice special calls.
4519 (gimplify_modify_expr): Likewise.
4520 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4521 abnormal control flow receivers.
4522 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4523 in the same way as cfun->has_nonlocal_labels.
4524 (gimple_purge_dead_abnormal_call_edges): Likewise.
4525 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4526 receivers start a basic-block.
4527
4528 2013-04-19 Richard Biener <rguenther@suse.de>
4529
4530 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4531 member ...
4532 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4533 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4534 (SLP_TREE_LOAD_PERMUTATION): Add.
4535 (vect_transform_slp_perm_load): Adjust prototype.
4536 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4537 (vect_free_slp_instance): Likewise.
4538 (vect_create_new_slp_node): Likewise.
4539 (vect_supported_slp_permutation_p): Remove.
4540 (vect_slp_rearrange_stmts): Adjust.
4541 (vect_supported_load_permutation_p): Likewise. Inline
4542 vect_supported_slp_permutation_p here.
4543 (vect_analyze_slp_instance): Compute load permutations per
4544 slp node instead of per instance.
4545 (vect_get_slp_defs): Adjust.
4546 (vect_transform_slp_perm_load): Likewise.
4547 (vect_schedule_slp_instance): Remove redundant code.
4548 (vect_schedule_slp): Remove hack for PR56270, add it ...
4549 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4550 CSE loads for SLP. Adjust.
4551
4552 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4553
4554 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4555 spelling in two comments.
4556
4557 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4558
4559 PR target/56797
4560 * config/arm/arm.c (load_multiple_sequence): Require SP
4561 as base register for loads if SP is in the register list.
4562
4563 2013-04-19 Martin Jambor <mjambor@suse.cz>
4564
4565 PR tree-optimization/56718
4566 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4567 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4568 and made public. Adjusted all callers.
4569 (ipa_intraprocedural_devirtualization): New function.
4570 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4571 (ipa_intraprocedural_devirtualization): Likewise.
4572 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4573
4574 2013-04-19 Richard Biener <rguenther@suse.de>
4575
4576 PR tree-optimization/57000
4577 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4578
4579 2013-04-19 Terry Guo <terry.guo@arm.com>
4580
4581 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4582 Replace with ...
4583 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4584 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4585 (cortex_m4_fmacs): Use new reservations.
4586 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4587
4588 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4589
4590 PR rtl-optimization/56999
4591 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4592 related code.
4593 (lra_coalesce): Remove split_origin_bitmap and related code.
4594 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4595 ranges if necessary.
4596
4597 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4598
4599 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4600 New array.
4601 (ix86_expand_call): Remove clobbered_registers array and use
4602 x86_64_ms_sysv_extra_clobbered_registers instead.
4603 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4604 Declare here.
4605 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4606 predicate.
4607 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4608 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4609 (*call_value_rex64_ms_sysv): Ditto.
4610
4611 2013-04-18 Cary Coutant <ccoutant@google.com>
4612
4613 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4614 parent instead of die_mark.
4615
4616 2013-04-18 Diego Novillo <dnovillo@google.com>
4617
4618 * gimple.c (create_gimple_tmp): New.
4619 (get_expr_type): New.
4620 (build_assign): New.
4621 (build_type_cast): New.
4622 * gimple.h (enum ssa_mode): Define.
4623 (gimple_seq_set_location): New.
4624 * asan.c (build_check_stmt): Change some gimple_build_* calls
4625 to use build_assign and build_type_cast.
4626
4627 2013-04-18 Richard Biener <rguenther@suse.de>
4628
4629 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4630 handle negative step. Remove redundant checks.
4631 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4632 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4633 for negative step and grouped loads fail to vectorize.
4634
4635 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4636
4637 * emit-rtl.c (reset_insn_used_flags): New function.
4638 (reset_all_used_flags): Use it.
4639 (verify_insn_sharing): New function.
4640 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4641
4642 2013-04-18 Jakub Jelinek <jakub@redhat.com>
4643
4644 PR tree-optimization/56984
4645 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4646 and (x >> M) >= N don't register any assertion if N << M is the
4647 minimum value.
4648
4649 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4650
4651 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4652 do not delete_insn insns that have not yet been emitted, only
4653 unlink them with remove_insn.
4654 * df-scan.c (df_insn_delete): Revert r197492.
4655
4656 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4657
4658 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4659 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4660
4661 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4662
4663 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4664 define_insn_and_split.
4665 (and_scc,ior_scc,negscc): Likewise.
4666 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4667
4668 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4669
4670 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4671 can benefit from using a sequence of LDRD instructions in epilogue
4672 instead of a single LDM instruction.
4673
4674 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4675
4676 PR 45688
4677 * doc/extend.texi: Fix typo.
4678
4679 2013-04-17 Richard Biener <rguenther@suse.de>
4680
4681 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4682 (vect_build_slp_tree): ... here.
4683 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4684 match. Remove special-casing of mismatched complex loads.
4685 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4686 re-try the match with swapped commutative operands.
4687 (vect_supported_load_permutation_p): Remove special-casing of
4688 mismatched complex loads.
4689 (vect_analyze_slp_instance): Adjust.
4690
4691 2013-04-17 Richard Biener <rguenther@suse.de>
4692
4693 PR rtl-optimization/56921
4694 * cfgloop.h (struct loop): Add simple_loop_desc member.
4695 (struct niter_desc): Mark with GTY(()).
4696 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4697 * loop-iv.c (get_simple_loop_desc): Likewise.
4698 (free_simple_loop_desc): Likewise.
4699
4700 Revert
4701 2013-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
4710 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4711
4712 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4713 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4714 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4715 references.
4716 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4717 * tree-streamer.c (record_common_node): Adjust reference in comment.
4718
4719 2013-04-17 Terry Guo <terry.guo@arm.com>
4720
4721 * config/arm/cortex-m4.md: Add a new bypass.
4722
4723 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4724
4725 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4726 New pattern.
4727 (*subs_<optab><mode>_multp2): New pattern.
4728 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4729 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4730
4731 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4732
4733 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4734 (*subs_mul_imm_<mode>): New pattern.
4735
4736 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
4737
4738 PR target/56948
4739 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4740 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4741 (vsx_movti_32bit): Change j->wa to O->wa.
4742
4743 2013-04-16 Richard Biener <rguenther@suse.de>
4744
4745 PR rtl-optimization/56921
4746 * loop-init.c (pass_rtl_move_loop_invariants): Add
4747 TODO_do_not_ggc_collect to todo_flags_finish.
4748 (pass_rtl_unswitch): Same.
4749 (pass_rtl_unroll_and_peel_loops): Same.
4750 (pass_rtl_doloop): Same.
4751
4752 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
4753
4754 * config/arm/arm.c (emit_multi_reg_push): New declaration
4755 for an existing function.
4756 (arm_emit_strd_push): New function.
4757 (arm_expand_prologue): Used here.
4758 (arm_emit_ldrd_pop): New function.
4759 (arm_expand_epilogue): Used here.
4760 (arm_get_frame_offsets): Update condition.
4761 (arm_emit_multi_reg_pop): Add a special case for load of a single
4762 register with writeback.
4763
4764 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
4765
4766 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4767 description.
4768
4769 2013-04-16 Richard Biener <rguenther@suse.de>
4770
4771 PR tree-optimization/56756
4772 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4773 (first_mem_ref_loc): New.
4774 (execute_sm): Place the load temporarily before a previous
4775 access instead of in the latch edge to ensure its SSA dependencies
4776 are defined at points dominating the load.
4777
4778 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4779
4780 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4781 correct fix by moving header and footer insn to the footer of
4782 the merged basic block. Clear BB_END of the merged-away block.
4783
4784 PR middle-end/43631
4785 * emit-rtl.c (make_note_raw): New function.
4786 (link_insn_into_chain): New static inline function.
4787 (add_insn): Use it.
4788 (add_insn_before, add_insn_after): Factor insn chain linking code...
4789 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4790 using link_insn_into_chain.
4791 (note_outside_basic_block_p): New helper function for emit_note_after
4792 and emit_note_before.
4793 (emit_note_after): Use nobb variant of add_insn_after if the note
4794 should not be contained in a basic block.
4795 (emit_note_before): Use nobb variant of add_insn_before if the note
4796 should not be contained in a basic block.
4797 (emit_note_copy): Use make_note_raw.
4798 (emit_note): Likewise.
4799 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4800 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4801 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4802 the moved barrier the tail of the basic block it follows.
4803 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4804
4805 2013-04-15 Jakub Jelinek <jakub@redhat.com>
4806
4807 PR tree-optimization/56962
4808 * gimple-ssa-strength-reduction.c (record_increment): Only set
4809 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4810 either rhs1 or rhs2 is equal to c->base_expr.
4811
4812 2013-04-15 Richard Biener <rguenther@suse.de>
4813
4814 PR tree-optimization/56933
4815 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4816 member.
4817 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4818 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4819 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4820 dependence check ...
4821 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4822 ... here.
4823 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4824 GROUP_READ_WRITE_DEPENDENCE.
4825
4826 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4827
4828 * emit-rtl.c (reset_all_used_flags): New function.
4829 (verify_rtl_sharing): Call reset_all_used_flags before and after
4830 performing the checks.
4831
4832 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4833
4834 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4835 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4836 * config/arm/constraints.md (De): New constraint.
4837 * config/arm/neon.md (anddi3_neon): Delete.
4838 (neon_vand<mode>): Expand to standard anddi3 pattern.
4839 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4840 Move earlier in the file.
4841 (neon_inv_logic_op2): Likewise.
4842 (arm_anddi_operand_neon): New predicate.
4843
4844 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4845
4846 * configure.ac (gcc_cv_ld_as_needed): Set
4847 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4848 Use -z ignore, -z record on *-*-solaris2*.
4849 (HAVE_LD_AS_NEEDED): Update comment.
4850 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4851 * configure: Regenerate.
4852 * config.in: Regenerate.
4853 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4854 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4855 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4856 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4857 equivalents. Fix markup.
4858 * doc/tm.texi: Regenerate.
4859
4860 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4861
4862 * config/i386/i386.opt: New option mstack-protector-guard=.
4863 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4864 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4865 TARGET_SSP_TLS_GUARD.
4866 * config/i386/i386.c (ix86_option_override_internal): Set
4867 ix86_stack_protector_guard.
4868 * config/i386/i386.md (stack_protect_set): Enable for
4869 TARGET_SSP_TLS_GUARD only.
4870 (stack_protect_set_<mode>): Ditto.
4871 (stack_protect_test): Ditto.
4872 (stack_protect_test_<mode>): Ditto.
4873 * doc/invoke.texi (i386 Option): Document.
4874
4875 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4876
4877 PR target/56890
4878 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4879 (S_MODES): Set H_MODE bit.
4880 (SF_MODES): Set only S_MODE and SF_MODE bits.
4881 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4882 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4883 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4884 <MODE_FLOAT>: Likewise.
4885
4886 2013-04-15 Joey Ye <joey.ye@arm.com>
4887
4888 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4889
4890 2013-04-15 Joey Ye <joey.ye@arm.com>
4891
4892 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4893 for real far jump.
4894 (thumb_far_jump_used_p): Count instruction size and set
4895 far_jump_used.
4896
4897 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4898
4899 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4900 * resource.c (mark_target_live_regs): Reformat conditional block.
4901
4902 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4903
4904 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4905 notes, they are emitted only just before final.
4906 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4907
4908 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4909
4910 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4911 * cfgrtl.c (delete_insn): Call it here instead.
4912 * lra-spills.c (lra_final_code_change): Use delete_insn.
4913 * haifa-sched.c (sched_remove_insn): Likewise.
4914 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4915 returning to the nop pool.
4916 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4917 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4918
4919 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4920
4921 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4922 * doc/tm.texi: Regenerated.
4923
4924 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
4925
4926 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4927 QImode checks.
4928
4929 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4930
4931 * df-core.c (df_find_def): Compare register numbers.
4932 (df_find_use): Likewise.
4933
4934 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4935
4936 PR target/56903
4937 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4938 lra_in_progress for return.
4939
4940 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4941
4942 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4943 define_insn into define_insn_and_split and emit movsicc patterns.
4944
4945 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4946
4947 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4948
4949 2013-04-12 Richard Biener <rguenther@suse.de>
4950
4951 * tree-pass.h (TODO_do_not_ggc_collect): New.
4952 * passes.c (execute_one_ipa_transform_pass): Honor
4953 TODO_do_not_ggc_collect.
4954 (execute_one_pass): Likewise.
4955
4956 Revert
4957 2013-04-10 Richard Biener <rguenther@suse.de>
4958
4959 * passes.c (init_optimization_passes): Remove reload pass.
4960 * ira.c (do_reload): Merge into ...
4961 (ira): ... this.
4962 (rest_of_handle_reload): Remove.
4963 (pass_reload): Likewise.
4964 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4965 of reload for vzeroupper pass placement.
4966
4967 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4968
4969 PR tree-optimization/56918
4970 PR tree-optimization/56920
4971 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4972 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4973 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4974 use wide_mul_with_sign method.
4975
4976 2013-04-12 Richard Biener <rguenther@suse.de>
4977
4978 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4979 not be considered a gimple constant.
4980
4981 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
4982
4983 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4984 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4985 operations.
4986
4987 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4988 Jakub Jelinek <jakub@redhat.com>
4989
4990 * opts.c: Include diagnostic-color.h.
4991 (common_handle_option): Handle OPT_fdiagnostics_color_.
4992 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4993 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4994 (diagnostic-color.o): New.
4995 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4996 (diagnostic_color_rule): New enum.
4997 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4998 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4999 the location string.
5000 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5001 either NULL, or color kind.
5002 * diagnostic-color.c: New file.
5003 * diagnostic-color.h: New file.
5004 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5005 arguments.
5006 * doc/invoke.texi (-fdiagnostics-color): Document.
5007 * pretty-print.h (pp_show_color): Define.
5008 (struct pretty_print_info): Add show_color field.
5009 * diagnostic.c: Include diagnostic-color.h.
5010 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5011 macros. Colorize error:, warning: etc. strings and also the location
5012 string.
5013 (diagnostic_show_locus): Colorize the caret line.
5014 * pretty-print.c: Include diagnostic-color.h.
5015 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5016 inside of %< %> quotes or quoted through q format modifier.
5017
5018 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5019
5020 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5021
5022 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5023
5024 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5025 code in CC_NZ mode.
5026 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5027 pattern.
5028
5029 2013-04-11 Marek Polacek <polacek@redhat.com>
5030
5031 PR tree-optimization/48184
5032 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5033
5034 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5035
5036 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5037 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5038 (skip_simple_arithmetic): Tidy up.
5039 * tree.h (skip_simple_constant_arithmetic): Declare.
5040
5041 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5042
5043 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5044
5045 2013-04-11 Richard Biener <rguenther@suse.de>
5046
5047 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5048 generate vector constants.
5049
5050 2013-04-11 Richard Biener <rguenther@suse.de>
5051
5052 PR tree-optimization/56878
5053 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5054 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5055 New function.
5056 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5057 Prefer to align the DR with the most invariant base address.
5058
5059 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5060
5061 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5062 comment.
5063
5064 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5065
5066 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5067 floating-point vector comparisons against 0.
5068
5069 2013-04-11 Jakub Jelinek <jakub@redhat.com>
5070
5071 PR tree-optimization/56899
5072 * fold-const.c (extract_muldiv_1): Apply distributive law
5073 only if TYPE_OVERFLOW_WRAPS (ctype).
5074
5075 2013-04-11 Bin Cheng <bin.cheng@arm.com>
5076
5077 PR target/56124
5078 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5079 loading has side effect.
5080
5081 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5082
5083 * config/sparc/sparc.c: Include tree-pass.h.
5084 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5085 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5086 head of file. Change return type. Split off gate function.
5087 (sparc_gate_work_around_errata): New function.
5088 (pass_work_around_errata): New pass definition.
5089 (insert_pass_work_around_errata) New pass insert definition to
5090 insert pass_work_around_errata just after delayed-branch scheduling.
5091 (sparc_option_override): Insert the pass.
5092 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5093
5094 2013-04-10 David S. Miller <davem@davemloft.net>
5095
5096 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5097 or -mcpu=hypersparc.
5098
5099 * target.def (cstore_mode): New hook.
5100 * target.h: Include insn-codes.h
5101 * targhooks.c: Likewise.
5102 (default_cstore_mode): New function.
5103 * targhooks.h: Declare it.
5104 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5105 * doc/tm.texi: Rebuild.
5106 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5107 target hook, rather than inspecting the insn_data.
5108 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5109 (TARGET_CSTORE_MODE): Redefine.
5110 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5111 result patterns.
5112 * config/sparc/predicates.md (cstore_result_operand): New special
5113 predicate.
5114 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5115 Use it for operand 0.
5116 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5117 (*snesi_special): Likewise.
5118 (*snesi_zero): Likewise.
5119 (*seqsi_zero): Likewise.
5120 (*sltu_insn): Likewise.
5121 (*sgeu_insn): Likewise.
5122 (*seqdi_special): Make operand 0 and comparison operation be of
5123 DImode.
5124 (*snedi_special): Likewise.
5125 (*snedi_special_vis3): Likewise.
5126 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5127 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5128 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5129 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5130 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5131 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5132 (*sltu_extend_sp64): Likewise.
5133 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5134 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5135 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5136 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5137 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5138
5139 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5140
5141 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5142 (aarch64_start_file): Use the new function.
5143
5144 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5145 Jason Merrill <jason@redhat.com>
5146
5147 * common.opt: Add -gdwarf.
5148 * opts.c (common_handle_option): Handle it.
5149 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5150
5151 2013-04-10 Richard Biener <rguenther@suse.de>
5152
5153 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5154 (execute_one_ipa_transform_pass): But unconditionally here.
5155 (execute_one_pass): And here.
5156 (init_optimization_passes): Remove reload pass.
5157 * tree-pass.h (TODO_ggc_collect): Remove.
5158 (pass_reload): Likewise.
5159 * ira.c (do_reload): Merge into ...
5160 (ira): ... this.
5161 (rest_of_handle_reload): Remove.
5162 (pass_reload): Likewise.
5163 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5164 of reload for vzeroupper pass placement.
5165 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5166 and todo_flags_finish of all passes.
5167
5168 2013-04-10 Richard Biener <rguenther@suse.de>
5169
5170 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5171 first_const_oprnd field, rename first_def_type to first_op_type.
5172 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5173 (vect_get_and_check_slp_defs): Always use the type of the
5174 operand. Allow mixed vect_external_def, vect_constant_def types.
5175 (vect_get_constant_vectors): Handle mixed vect_external_def,
5176 vect_constant_def types.
5177
5178 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5179
5180 PR tree-optimization/55524
5181 * tree-ssa-math-opts.c
5182 (convert_mult_to_fma): Don't use an fms construct
5183 when we don't have an fms operation, but fnma, and it looks
5184 likely that we'll be able to use the latter.
5185
5186 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5187
5188 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5189 function.
5190 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5191 inline fail caused by overwritable functions.
5192
5193 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5194
5195 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5196 unnecessary bits in the constant power of two case.
5197
5198 2013-04-10 Richard Biener <rguenther@suse.de>
5199
5200 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5201 broken code swapping operands.
5202 (vect_build_slp_tree): Do not compute load permutations here.
5203 (vect_analyze_slp_instance): Compute load permutations here,
5204 after building the SLP tree.
5205
5206 2013-04-09 Christian Bruel <christian.bruel@st.com>
5207
5208 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5209 of next/prev_real_insn.
5210
5211 2013-04-09 Jan Hubicka <jh@suse.cz>
5212
5213 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5214 Drop aliased parameter.
5215 (function_and_variable_visibility): Do not handle alias pairs.
5216 * cgraph.c (varpool_externally_visible_p): Update prototype.
5217 * varpool.c (varpool_add_new_variable): Update.
5218
5219 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5220
5221 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5222
5223 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5224
5225 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5226
5227 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5228
5229 2013-04-09 Marek Polacek <polacek@redhat.com>
5230
5231 PR tree-optimization/48762
5232 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5233
5234 2013-04-09 Richard Biener <rguenther@suse.de>
5235
5236 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5237 dealing with cost.
5238 (vect_build_slp_tree): Likewise.
5239 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5240 calculating the cost of a SLP instance.
5241 (vect_analyze_slp_instance): Use it from here, after building
5242 the SLP tree.
5243
5244 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5245
5246 PR middle-end/56883
5247 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5248 expand_omp_for_static_chunk): Use simple_p = true in
5249 force_gimple_operand_gsi calls when assigning to addressable decls.
5250
5251 2013-04-09 Jeff Law <law@redhat.com>
5252
5253 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5254 when the boolean was created by converting a wider object which
5255 had a boolean range.
5256
5257 2013-04-09 Richard Biener <rguenther@suse.de>
5258
5259 * tree-vectorizer.h (slp_void_p): Remove.
5260 (slp_tree): Typedef before _slp_tree declaration.
5261 (struct _slp_tree): Use a vector of slp_tree as children.
5262 (vect_get_place_in_interleaving_chain): Remove.
5263 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5264 Move ...
5265 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5266 and make static.
5267 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5268 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5269 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5270 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5271 Use slp_node instead of slp_void_p and adjust.
5272
5273 2013-04-09 Richard Biener <rguenther@suse.de>
5274
5275 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5276 work that is not necessary.
5277
5278 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5279
5280 PR tree-optimization/56854
5281 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5282 forward into clobber stmts if it would change MEM_REF lhs into
5283 non-MEM_REF.
5284
5285 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5286
5287 * tree.c (type_hash_lookup, type_hash_add): Make static.
5288 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5289
5290 2013-04-09 Richard Biener <rguenther@suse.de>
5291
5292 * tree.h (unsave_expr_now): Remove.
5293 * tree-inline.c (mark_local_for_remap_r): Remove.
5294 (unsave_expr_1): Likewise.
5295 (unsave_r): Likewise.
5296 (unsave_expr_now): Likewise.
5297 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5298 (propagate_tree_value): Likewise.
5299
5300 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5301
5302 * doc/rtl.texi (sequence): Rewrite documentation to match the
5303 current use of SEQUENCE rtl objects.
5304 * rtl.def (SEQUENCE): Likewise.
5305
5306 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5307 Update documentation.
5308 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5309 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5310
5311 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5312
5313 2013-04-08 Teresa Johnson <tejohnson@google.com>
5314
5315 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5316 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5317 methods.
5318 (estimate_edge_size_and_time): Add comment to suggest using rounding
5319 methods.
5320 (estimate_node_size_and_time): Ditto.
5321 (remap_edge_change_prob): Use helper rounding divide methods.
5322 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5323 (gimple_mod_pow2_value_transform): Ditto.
5324 (gimple_mod_subtract_transform): Ditto.
5325 (gimple_ic_transform): Ditto.
5326 (gimple_stringops_transform): Ditto.
5327 * stmt.c (conditional_probability): Ditto.
5328 (emit_case_dispatch_table): Ditto.
5329 * lto-cgraph.c (merge_profile_summaries): Ditto.
5330 * tree-optimize.c (execute_fixup_cfg): Ditto.
5331 * cfgcleanup.c (try_forward_edges): Ditto.
5332 * cfgloopmanip.c (scale_loop_profile): Ditto.
5333 (loopify): Ditto.
5334 (duplicate_loop_to_header_edge): Ditto.
5335 (lv_adjust_loop_entry_edge): Ditto.
5336 * tree-vect-loop.c (vect_transform_loop): Ditto.
5337 * profile.c (compute_branch_probabilities): Ditto.
5338 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5339 * lto-streamer-in.c (input_cfg): Ditto.
5340 * gimple-streamer-in.c (input_bb): Ditto.
5341 * ipa-cp.c (update_profiling_info): Ditto.
5342 (update_specialized_profile): Ditto.
5343 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5344 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5345 rounding methods.
5346 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5347 (compute_trg_info): Ditto.
5348 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5349 (purge_dead_edges): Ditto.
5350 * loop-unswitch.c (unswitch_loop): Ditto.
5351 * cgraphclones.c (cgraph_clone_edge): Ditto.
5352 (cgraph_clone_node): Ditto.
5353 * tree-inline.c (copy_bb): Ditto.
5354 (copy_edges_for_bb): Ditto.
5355 (initialize_cfun): Ditto.
5356 (copy_cfg_body): Ditto.
5357 (expand_call_inline): Ditto.
5358
5359 2013-04-08 Kai Tietz <ktietz@redhat.com>
5360
5361 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5362 TARGET_CYGWIN64 by TARGET_64BIT.
5363
5364 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5365
5366 * config/epiphany/epiphany.md (GPR_1): New constant.
5367 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5368 * config/epiphany/epiphany.c (gen_compare_reg):
5369 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5370 is already in place.
5371 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5372 Don't require being called during rtl expansion; If y operlaps r0,
5373 return 0.
5374 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5375 (epiphany_expand_epilogue): Likewise.
5376
5377 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5378 Don't use CC_FPmode for ORDERED / UNORDERED.
5379 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5380
5381 * config/epiphany/constraints.md (CnL): New constraint.
5382 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5383 * config/epiphany/predicates.md (add_operand): Allow 1024.
5384
5385 * config/epiphany/epiphany.md (logical_op): New code iterator.
5386 (op_mnc): New code attribute.
5387 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5388 (mov_f+1, mov_f+2): New peephole2 patterns.
5389
5390 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5391 (cstoresi4): Also allow re-use of zero result when doing a NE
5392 comparison to a non-zero operand.
5393 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5394
5395 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5396 Use gen_addsi3_i / gen_subsi3_i.
5397
5398 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5399
5400 PR c++/34949
5401 PR c++/50243
5402 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5403 contain anything but clobbers, at most one __builtin_stack_restore,
5404 optionally debug stmts and final resx, and if it has at least one
5405 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5406 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5407 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5408 which isn't defaut definition, remove them.
5409 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5410 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5411 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5412 with MEM_REF LHS with SSA_NAME address.
5413
5414 2013-04-08 Jeff Law <law@redhat.com>
5415
5416 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5417
5418 2013-04-08 Richard Biener <rguenther@suse.de>
5419
5420 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5421 extra newline.
5422 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5423 determined vector type.
5424 (vect_analyze_data_refs): Likewise.
5425 (vect_get_new_vect_var): Adjust.
5426 (vect_create_destination_var): Preserve SSA name versions.
5427 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5428 not dump anything here.
5429
5430 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5431
5432 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5433 Add member lr_slot_known.
5434 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5435 if necessary.
5436 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5437 Remove code that sets lr_slot_offset according to what a previous
5438 version of epiphany_emit_save_restore used to do.
5439 (epiphany_emit_save_restore): When doing an lr save or restore,
5440 set/verify lr_slot_known and lr_slot_offset.
5441
5442 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5443
5444 PR target/54338
5445 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5446 in ALL_REGS.
5447
5448 2013-04-08 Richard Biener <rguenther@suse.de>
5449
5450 * alias.c (find_base_term): Fix thinko in previous change.
5451
5452 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5453
5454 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5455 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5456 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5457 if possible to compute val.
5458 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5459 For QImode integers don't require anything about precision. Use
5460 const_with_all_bytes_same to find out if the constant doesn't have
5461 repeated bytes in it.
5462
5463 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5464
5465 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5466 within mode size.
5467
5468 2013-04-08 Marek Polacek <polacek@redhat.com>
5469
5470 PR rtl-optimization/48182
5471 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5472 value to 1.
5473
5474 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5475
5476 PR target/55487
5477 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5478 nuses, make sure we have a label.
5479
5480 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5481
5482 PR target/56843
5483 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5484 (rs6000_emit_swdiv_low_precision): Remove.
5485 (rs6000_emit_swdiv): Rewrite to handle between one and four
5486 iterations of Newton-Raphson generally; modify required number of
5487 iterations for some cases.
5488 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5489
5490 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5491
5492 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5493 set-but-unused variable.
5494
5495 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5496 basic blocks of released function bodies garbage-collectable.
5497
5498 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5499 (struct rtl_opt_pass): Add TODO_df_finish.
5500
5501 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5502
5503 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5504
5505 * config/arm/constraints.md (q): New constraint.
5506 * config/arm/ldrdstrd.md: New file.
5507 * config/arm/arm.md (ldrdstrd.md) New include.
5508 (arm_movdi): Use "q" instead of "r" constraint
5509 for double-word memory access.
5510 (movdf_soft_insn): Likewise.
5511 * config/arm/vfp.md (movdi_vfp): Likewise.
5512 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5513 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5514 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5515 (mem_ok_for_ldrd_strd): Likewise.
5516 (output_move_double): Update assertion.
5517
5518 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5519
5520 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5521
5522 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5523
5524 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5525 define_insn_and_split.
5526 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5527
5528 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5529
5530 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5531 define_insn_and_split.
5532 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5533 (shiftsi3_compare): New pattern.
5534 (rrx): New pattern.
5535 * config/arm/unspecs.md (UNSPEC_RRX): New.
5536
5537 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5538
5539 * config/arm/arm.md (negdi_extendsidi): New pattern.
5540 (negdi_zero_extendsidi): Likewise.
5541
5542 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5543
5544 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5545 define_insn_and_split.
5546 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5547 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5548
5549 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5550
5551 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5552 define_insn_and_split.
5553 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5554 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5555
5556 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5557
5558 * config/arm/arm.md (subsi3_carryin): New pattern.
5559 (subsi3_carryin_const): Likewise.
5560 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5561 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5562
5563 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5564
5565 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5566
5567 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5568
5569 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5570 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5571
5572 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5573
5574 * config/arm/arm.c (arm_expand_builtin): Change fcode
5575 type to unsigned int.
5576
5577 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5578
5579 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5580
5581 2013-04-04 Ian Lance Taylor <iant@google.com>
5582
5583 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5584 language standard.
5585
5586 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5587
5588 PR middle-end/56729
5589 * df-scan.c (df_insn_delete): Disable failing assert.
5590
5591 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5592
5593 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5594 New function prototype.
5595 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5596 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5597 (arm_builtin_vectorized_function): New function.
5598
5599 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5600
5601 * config/arm/arm_neon_builtins.def: New file.
5602 * config/arm/arm.c (neon_builtin_data): Move contents to
5603 arm_neon_builtins.def.
5604 (enum arm_builtins): Include neon builtin definitions.
5605 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5606 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5607
5608 2013-04-04 Marek Polacek <polacek@redhat.com>
5609
5610 PR tree-optimization/48186
5611 * predict.c (maybe_hot_frequency_p): Return false if
5612 HOT_BB_FREQUENCY_FRACTION is 0.
5613 (cgraph_maybe_hot_edge_p): Likewise.
5614
5615 2013-04-04 Richard Biener <rguenther@suse.de>
5616
5617 PR tree-optimization/56826
5618 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5619 more accurately.
5620
5621 2013-04-04 Richard Biener <rguenther@suse.de>
5622
5623 PR tree-optimization/56213
5624 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5625 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5626
5627 2013-04-04 Richard Biener <rguenther@suse.de>
5628
5629 PR tree-optimization/56837
5630 * tree-loop-distribution.c (classify_partition): For non-zero
5631 values require that the value has the same precision as its
5632 mode to be useful as memset value.
5633
5634 2013-04-03 Nick Clifton <nickc@redhat.com>
5635
5636 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
5637 (fmssf4): Use fmsf.s on E3V5 architectures.
5638 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5639 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5640
5641 2013-04-03 Jeff Law <law@redhat.com>
5642
5643 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5644 (lra-eliminations.o): Likewise.
5645
5646 2013-04-03 Teresa Johnson <tejohnson@google.com>
5647
5648 * gcov-io.c (compute_working_sets): Moved most of body of old
5649 compute_working_sets here from profile.c.
5650 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
5651 (gcov_working_set_t): Moved typedef here from basic-block.h
5652 (compute_working_set): Declare.
5653 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5654 (get_working_sets): Renamed from compute_working_set,
5655 replace most of body with call to new compute_working_sets.
5656 (get_exec_counts): Replace call to compute_working_sets
5657 to get_working_sets.
5658 * profile.h (get_working_sets): Renamed from compute_working_set.
5659 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
5660 to get_working_sets.
5661 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5662 * gcov-dump.c (dump_working_sets): New function.
5663
5664 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5665
5666 * hwint.c (sext_hwi, zext_hwi): New functions.
5667 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5668 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5669 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5670 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5671 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5672 (sext_hwi, zext_hwi): New functions.
5673
5674 2013-04-03 Jeff Law <law@redhat.com>
5675
5676 PR tree-optimization/56799
5677 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5678 back test for widening conversion erroneously dropped in prior change.
5679
5680 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5681
5682 PR target/56809
5683 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5684 instead of next_real_insn.
5685
5686 2013-04-03 Marek Polacek <polacek@redhat.com>
5687
5688 PR sanitizer/55702
5689 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
5690
5691 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5692
5693 PR target/56809
5694 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5695 next_real_insn.
5696 (thumb1_output_casesi): Likewise.
5697 (thumb2_output_casesi): Likewise.
5698
5699 2013-04-03 Richard Biener <rguenther@suse.de>
5700
5701 PR tree-optimization/56817
5702 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5703 Split out ...
5704 (tree_unroll_loops_completely_1): ... new function to manually
5705 walk the loop tree, properly defering outer loops of unrolled
5706 loops to later iterations.
5707
5708 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5709
5710 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5711 (vectorizable_load): Likewise.
5712 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5713 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5714
5715 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5716
5717 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5718 BIT_FIELD_REF.
5719
5720 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5721
5722 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5723
5724 2013-04-03 Bin Cheng <bin.cheng@arm.com>
5725
5726 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5727
5728 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5729
5730 PR tree-optimization/56790
5731 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5732 folding.
5733
5734 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5735
5736 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5737 Handle VEC_MERGE.
5738 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5739 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5740 equal arguments.
5741
5742 2013-04-03 Jakub Jelinek <jakub@redhat.com>
5743
5744 PR c/19449
5745 * tree.h (force_folding_builtin_constant_p): New decl.
5746 * builtins.c (force_folding_builtin_constant_p): New variable.
5747 (fold_builtin_constant_p): Fold immediately also if
5748 force_folding_builtin_constant_p.
5749
5750 2013-04-03 Richard Biener <rguenther@suse.de>
5751
5752 PR tree-optimization/56812
5753 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5754 DRs of the same interleaving chain are independent.
5755
5756 2013-04-02 Jason Merrill <jason@redhat.com>
5757
5758 * gdbinit.in (pbb): Use debug fn.
5759
5760 2013-04-02 Lawrence Crowl <crowl@google.com>
5761
5762 * sese.h (struct ivtype_map_elt_s): Remove unused.
5763 (extern debug_ivtype_map): Remove unused.
5764 (extern eq_ivtype_map_elts): Remove unused.
5765 * sese.c (debug_ivtype_map): Removed unused.
5766 (debug_ivtype_map_1): Removed unused.
5767 (debug_ivtype_elt): Remove unused.
5768 (eq_ivtype_map_elts): Remove unused.
5769
5770
5771 2013-04-02 Kai Tietz <ktietz@redhat.com>
5772
5773 PR target/52790
5774 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5775 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
5776 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5777 function.
5778 (legitimize_pe_coff_symbol): Likewise.
5779 (is_imported_p): New helper-function.
5780 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5781 for Windows x64 targets.
5782 (ix86_expand_prologue): Optimize for pe-coff targets.
5783 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5784 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5785 medium/large code-model.
5786 (legitimize_pic_address): Likewise.
5787 (legitimize_tls_address): Likewise.
5788 (ix86_expand_call): Likewise.
5789 (x86_output_mi_thunk): Likewise.
5790 (get_dllimport_decl): Add new beimport argument.
5791 (construct_plt_address): Don't assert for x64 pe-coff targets.
5792 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5793 targets.
5794 (SYMBOL_FLAG_STUBVAR): New macro.
5795 (SYMBOL_REF_STUBVAR_P): Likewise.
5796 * config/i386/winnt.c (stub_list): New structure.
5797 (stub_head): New local variable.
5798 (i386_pe_record_stub): New function.
5799 (i386_pe_file_end): Emit refptr-stubs.
5800
5801 2013-04-02 Jakub Jelinek <jakub@redhat.com>
5802
5803 PR rtl-optimization/56745
5804 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5805 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5806
5807 PR c++/34949
5808 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5809 and both of them are MEM_REFs, just compare first argument for
5810 equality and attempt to deal even with differing offsets.
5811
5812 PR c++/34949
5813 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5814 of gimple_clobber_p to be MEM_REF.
5815 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5816 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5817 after gimplification.
5818 * asan.c (get_mem_ref_of_assignment): Don't instrument
5819 gimple_clobber_p stmts.
5820 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5821 gimple_clobber_p stmt if they have MEM_REF lhs and
5822 are dead because of another gimple_clobber_p stmt.
5823 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5824 gimple_clobber_p stmts like debug stmts.
5825 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5826 that refer to unused VAR_DECLs or uninitialized values.
5827 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5828 gimple_clobber_p stmts if they refer to removed parameters.
5829 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5830 formatting.
5831
5832 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
5833
5834 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5835 using SWI48 mode attribute.
5836
5837 2013-04-02 Wei Mi <wmi@google.com>
5838
5839 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5840 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5841 *<rotate_insn><mode>3_mask in i386.md.
5842
5843 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5844
5845 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5846
5847 2013-04-02 Richard Biener <rguenther@suse.de>
5848
5849 PR tree-optimization/56778
5850 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5851 Runtime alias tests are not supported for gather loads.
5852 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5853 stmts referenced from SSA operands before updating SSA form.
5854
5855 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5856 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5857
5858 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
5859 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5860 * config/arm/cortex-a53.md: New file.
5861 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5862 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5863 * config/arm/arm.c (arm_issue_rate): Likewise.
5864 * config/arm/arm-tune.md: Regenerate
5865 * config/arm/arm-tables.opt: Regenerate.
5866 * config/arm/arm-cores.def: Add cortex-a53.
5867
5868 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5869
5870 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5871 non-static link.
5872
5873 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5874
5875 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5876 scalar load/store operations using B/H registers.
5877 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5878
5879 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5880
5881 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5882 scalar move.
5883 * config/aarch64/aarch64.c
5884 (aarch64_simd_scalar_immediate_valid_for_move): New.
5885 * config/aarch64/aarch64-protos.h
5886 (aarch64_simd_scalar_immediate_valid_for_move): New.
5887 * config/aarch64/constraints.md (Dh, Dq): New.
5888 * config/aarch64/iterators.md (hq): New.
5889
5890 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5891
5892 * reorg.c (get_branch_condition): Deal with conditional returns.
5893 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5894
5895 2013-04-01 Wei Mi <wmi@google.com>
5896
5897 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5898 Truncate operand 2 using %b asm operand modifier.
5899 (*<shift_insn><mode>3_mask): Ditto.
5900 (*<rotate_insn><mode>3_mask): Ditto.
5901
5902 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5903
5904 PR middle-end/56798
5905 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5906
5907 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5908
5909 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5910 of next_real_insn.
5911 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5912
5913 2013-03-30 Lawrence Crowl <crowl@google.com>
5914
5915 * dse.c (clear_alias_sets): Remove never set.
5916 (disqualified_clear_alias_sets): Remove never set.
5917 (clear_alias_mode_pool): Remove never set.
5918 (dse_step0): Remove condition that is never true.
5919 (canon_address): Remove condition that is never true.
5920 (dse_step7): Remove condition that is never true.
5921 (rest_of_handle_dse): Remove condition that is never true.
5922 (rest_of_handle_dse::did_global): Remove never read from above.
5923 (dse_step2_spill): Remove never called from above.
5924 (dse_step5_spill): Remove never called from above.
5925
5926 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5927
5928 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5929 JUMP_TABLE_DATA changes.
5930 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5931 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5932 (Insns) <jump_table_data>: New entry.
5933 * doc/tm.texi: Regenerate.
5934
5935 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5936
5937 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5938 for table jump at the end of a basic block using tablejump_p.
5939 * targhooks.c (default_invalid_within_doloop): Likewise.
5940 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5941 target hook implementation that is identical to the default hook.
5942 (rs6000_invalid_within_doloop): Remove.
5943
5944 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5945 unused variable from tablejump_p call.
5946
5947 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5948 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5949 (INSN_DELETED_P): Likewise.
5950 (emit_jump_table_data): New prototype.
5951 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5952 after 4th as unused.
5953 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5954 * sched-vis.c (print_insn): Likewise.
5955 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5956 insn for compatibility with back ends that use next_active_insn to
5957 identify jump table data.
5958 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5959 (remove_insn): Likewise.
5960 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5961 to be emitted.
5962 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5963 (emit_jump_table_data): New function.
5964
5965 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5966 basic block, a JUMP_TABLE_DATA never is.
5967 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5968 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5969 off from code handling real insns.
5970 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5971 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5972 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5973 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5974 is not a NONDEBUG_INSN_P.
5975 * ira-costs.c (scan_one_insn): Likewise.
5976 * jump.c (mark_all_labels): Likewise.
5977 (mark_jump_label_1): Likewise.
5978 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5979 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5980 a basic block.
5981 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5982 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5983 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5984 JUMP_TABLE_DATA_P insns.
5985 (calculate_elim_costs_all_insns): Likewise.
5986 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5987 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5988 (delete_output_reload): Code style fixups.
5989 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5990 insn flags on this non-insn.
5991 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5992 as scheduling barriers, for pre-change compatibility.
5993 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5994 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5995
5996 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5997 redundant JUMP_TABLE_DATA_P test.
5998 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5999 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6000 (frv_for_each_packet): Likewise.
6001 * config/i386/i386.c (min_insn_size): Likewise.
6002 (ix86_avoid_jump_mispredicts): Likewise.
6003 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6004 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6005 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6006 (mips16_insn_length): Robustify.
6007 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6008 (mips16_split_long_branches): Likewise.
6009 * config/pa/pa.c (pa_combine_instructions): Likewise.
6010 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6011 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6012 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6013 as contributing to pool range lengths.
6014 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6015 Remove redundant JUMP_TABLE_DATA_P test.
6016 (sh_loop_align): Likewise.
6017 (split_branches): Likewise.
6018 (sh_insn_length_adjustment): Likewise.
6019 * config/spu/spu.c (get_branch_target): Likewise.
6020
6021 2013-03-29 Jan Hubicka <jh@suse.cz>
6022
6023 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6024 gcov streaming; stream hot bb threshold to ltrans.
6025 * predict.c (get_hot_bb_threshold): Break out from ....
6026 (maybe_hot_count_p): ... here.
6027 (set_hot_bb_threshold): New function.
6028 * lto-section-in.c (lto_section_name): Add profile.
6029 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6030 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6031 and data-streamer.h
6032 (histogram_entry): New structure.
6033 (histogram, histogram_pool): New global vars.
6034 (histogram_hash): New structure.
6035 (histogram_hash::hash): New method.
6036 (histogram_hash::equal): Likewise.
6037 (account_time_size): New function.
6038 (cmp_counts): New function.
6039 (dump_histogram): New function.
6040 (ipa_profile_generate_summary): New function.
6041 (ipa_profile_write_summary): New function.
6042 (ipa_profile_read_summary): New function.
6043 (ipa_profile): Decide on threshold.
6044 (pass_ipa_profile): Add ipa_profile_write_summary and
6045 ipa_profile_read_summary.
6046 * Makefile.in (ipa.o): Update dependencies.
6047 * lto-streamer.h (LTO_section_ipa_profile): New section.
6048
6049 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6050
6051 * tree.h (VAR_P): New.
6052
6053 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6054
6055 PR lto/56777
6056 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6057
6058 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6059
6060 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6061 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6062 (control_flow_insn_p): Likewise.
6063 * cfgrtl.c (duplicate_insn_chain): Likewise.
6064 * final.c (get_attr_length_1): Likewise.
6065 (shorten_branches): Likewise.
6066 (final_scan_insn): Likewise.
6067 * function.c (instantiate_virtual_regs): Likewise.
6068 * gcse.c (insert_insn_end_basic_block): Likewise.
6069 * ira-costs.c (scan_one_insn): Likewise.
6070 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6071 * lra.c (check_rtl): Likewise.
6072 * reload1.c (elimination_costs_in_insn): Likewise.
6073 * reorg.c (follow_jumps): Likewise.
6074
6075 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6076 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6077 (thumb_far_jump_used_p): Likewise.
6078 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6079 (workaround_speculation): Likewise.
6080 (add_sched_insns_for_speculation): Likewise.
6081 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6082 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6083 (frv_for_each_packet): Likewise.
6084 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6085 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6086 (final_emit_insn_group_barriers): Likewise.
6087 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6088 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6089 (mips16_insn_length): Likewise.
6090 * config/pa/pa.c (pa_reorg): Likewise.
6091 (pa_combine_instructions): Likewise.
6092 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6093 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6094 (sh_reorg): Likewise.
6095 (split_branches): Likewise.
6096 * config/spu/spu.c (get_branch_target): Likewise.
6097
6098 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6099 JUMP_TABLE_DATA_P.
6100
6101 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6102
6103 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6104 Fix declaration name.
6105
6106 2013-03-28 Lawrence Crowl <crowl@google.com>
6107
6108 * graphds.h (struct graph.indicies): Remove unused.
6109 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6110 (SCOP_ORIGINAL_PDDRS): Remove unused.
6111 * sese.h (extern insert_loop_close_phis): Removed unused.
6112 (extern insert_guard_phis): Removed unused.
6113 (extern ivtype_map_elt_info): Removed unused.
6114 (new_ivtype_map_elt): Removed unused.
6115 * sese.c (ivtype_map_elt_info): Removed unused.
6116
6117 2013-03-28 Lawrence Crowl <crowl@google.com>
6118
6119 * Makefile.in: Add several missing include dependences.
6120 (DUMPFILE_H): New.
6121 (test-dump.o): New. This object is not added to any executable,
6122 but is present for ad-hoc testing.
6123 * bitmap.c
6124 (debug (const bitmap_head_def &)): New.
6125 (debug (const bitmap_head_def *)): New.
6126 * bitmap.h
6127 (extern debug (const bitmap_head_def &)): New.
6128 (extern debug (const bitmap_head_def *)): New.
6129 * cfg.c
6130 (debug (edge_def &)): New.
6131 (debug (edge_def *)): New.
6132 * cfghooks.c
6133 (debug (basic_block_def &)): New.
6134 (debug (basic_block_def *)): New.
6135 * dumpfile.h
6136 (dump_node (const_tree, int, FILE *)): Correct source file.
6137 * dwarf2out.c
6138 (debug (die_struct &)): New.
6139 (debug (die_struct *)): New.
6140 * dwarf2out.h
6141 (extern debug (die_struct &)): New.
6142 (extern debug (die_struct *)): New.
6143 * gimple-pretty-print.c
6144 (debug (gimple_statement_d &)): New.
6145 (debug (gimple_statement_d *)): New.
6146 * gimple-pretty-print.h
6147 (extern debug (gimple_statement_d &)): New.
6148 (extern debug (gimple_statement_d *)): New.
6149 * ira-build.c
6150 (debug (ira_allocno_copy &)): New.
6151 (debug (ira_allocno_copy *)): New.
6152 (debug (ira_allocno &)): New.
6153 (debug (ira_allocno *)): New.
6154 * ira-int.h
6155 (extern debug (ira_allocno_copy &)): New.
6156 (extern debug (ira_allocno_copy *)): New.
6157 (extern debug (ira_allocno &)): New.
6158 (extern debug (ira_allocno *)): New.
6159 * ira-lives.c
6160 (debug (live_range &)): New.
6161 (debug (live_range *)): New.
6162 * lra-int.h
6163 (debug (lra_live_range &)): New.
6164 (debug (lra_live_range *)): New.
6165 * lra-lives.c
6166 (debug (lra_live_range &)): New.
6167 (debug (lra_live_range *)): New.
6168 * omega.c
6169 (debug (omega_pb_d &)): New.
6170 (debug (omega_pb_d *)): New.
6171 * omega.h
6172 (extern debug (omega_pb_d &)): New.
6173 (extern debug (omega_pb_d *)): New.
6174 * print-rtl.c
6175 (debug (const rtx_def &)): New.
6176 (debug (const rtx_def *)): New.
6177 * print-tree.c
6178 (debug_tree (tree): Move within file.
6179 (debug_raw (const tree_node &)): New.
6180 (debug_raw (const tree_node *)): New.
6181 (dump_tree_via_hooks (const tree_node *, int)): New.
6182 (debug (const tree_node &)): New.
6183 (debug (const tree_node *)): New.
6184 (debug_verbose (const tree_node &)): New.
6185 (debug_verbose (const tree_node *)): New.
6186 (debug_head (const tree_node &)): New.
6187 (debug_head (const tree_node *)): New.
6188 (debug_body (const tree_node &)): New.
6189 (debug_body (const tree_node *)): New.
6190 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6191 (debug (vec<tree, va_gc> &)): New.
6192 (debug (vec<tree, va_gc> *)): New.
6193 * rtl.h
6194 (extern debug (const rtx_def &)): New.
6195 (extern debug (const rtx_def *)): New.
6196 * sbitmap.c
6197 (debug_raw (simple_bitmap_def &)): New.
6198 (debug_raw (simple_bitmap_def *)): New.
6199 (debug (simple_bitmap_def &)): New.
6200 (debug (simple_bitmap_def *)): New.
6201 * sbitmap.h
6202 (extern debug (simple_bitmap_def &)): New.
6203 (extern debug (simple_bitmap_def *)): New.
6204 (extern debug_raw (simple_bitmap_def &)): New.
6205 (extern debug_raw (simple_bitmap_def *)): New.
6206 * sel-sched-dump.c
6207 (debug (vinsn_def &)): New.
6208 (debug (vinsn_def *)): New.
6209 (debug_verbose (vinsn_def &)): New.
6210 (debug_verbose (vinsn_def *)): New.
6211 (debug (expr_def &)): New.
6212 (debug (expr_def *)): New.
6213 (debug_verbose (expr_def &)): New.
6214 (debug_verbose (expr_def *)): New.
6215 (debug (vec<rtx> &)): New.
6216 (debug (vec<rtx> *)): New.
6217 * sel-sched-dump.h
6218 (extern debug (vinsn_def &)): New.
6219 (extern debug (vinsn_def *)): New.
6220 (extern debug_verbose (vinsn_def &)): New.
6221 (extern debug_verbose (vinsn_def *)): New.
6222 (extern debug (expr_def &)): New.
6223 (extern debug (expr_def *)): New.
6224 (extern debug_verbose (expr_def &)): New.
6225 (extern debug_verbose (expr_def *)): New.
6226 (extern debug (vec<rtx> &)): New.
6227 (extern debug (vec<rtx> *)): New.
6228 * sel-sched-ir.h
6229 (_list_iter_cond_expr): Make inline instead of static.
6230 * sreal.c
6231 (debug (sreal &)): New.
6232 (debug (sreal *)): New.
6233 * sreal.h
6234 (extern debug (sreal &)): New.
6235 (extern debug (sreal *)): New.
6236 * tree.h
6237 (extern debug_raw (const tree_node &)): New.
6238 (extern debug_raw (const tree_node *)): New.
6239 (extern debug (const tree_node &)): New.
6240 (extern debug (const tree_node *)): New.
6241 (extern debug_verbose (const tree_node &)): New.
6242 (extern debug_verbose (const tree_node *)): New.
6243 (extern debug_head (const tree_node &)): New.
6244 (extern debug_head (const tree_node *)): New.
6245 (extern debug_body (const tree_node &)): New.
6246 (extern debug_body (const tree_node *)): New.
6247 (extern debug (vec<tree, va_gc> &)): New.
6248 (extern debug (vec<tree, va_gc> *)): New.
6249 * tree-cfg.c
6250 (debug (struct loop &)): New.
6251 (debug (struct loop *)): New.
6252 (debug_verbose (struct loop &)): New.
6253 (debug_verbose (struct loop *)): New.
6254 * tree-dump.c: Add header dependence.
6255 * tree-flow.h
6256 (extern debug (struct loop &)): New.
6257 (extern debug (struct loop *)): New.
6258 (extern debug_verbose (struct loop &)): New.
6259 (extern debug_verbose (struct loop *)): New.
6260 * tree-data-ref.c
6261 (debug (data_reference &)): New.
6262 (debug (data_reference *)): New.
6263 (debug (vec<data_reference_p> &)): New.
6264 (debug (vec<data_reference_p> *)): New.
6265 (debug (vec<ddr_p> &)): New.
6266 (debug (vec<ddr_p> *)): New.
6267 * tree-data-ref.h
6268 (extern debug (data_reference &)): New.
6269 (extern debug (data_reference *)): New.
6270 (extern debug (vec<data_reference_p> &)): New.
6271 (extern debug (vec<data_reference_p> *)): New.
6272 (extern debug (vec<ddr_p> &)): New.
6273 (extern debug (vec<ddr_p> *)): New.
6274 * tree-ssa-alias.c
6275 (debug (pt_solution &)): New.
6276 (debug (pt_solution *)): New.
6277 * tree-ssa-alias.h
6278 (extern debug (pt_solution &)): New.
6279 (extern debug (pt_solution *)): New.
6280 * tree-ssa-alias.c
6281 (debug (_var_map &)): New.
6282 (debug (_var_map *)): New.
6283 (debug (tree_live_info_d &)): New.
6284 (debug (tree_live_info_d *)): New.
6285 * tree-ssa-alias.h
6286 (extern debug (_var_map &)): New.
6287 (extern debug (_var_map *)): New.
6288 (extern debug (tree_live_info_d &)): New.
6289 (extern debug (tree_live_info_d *)): New.
6290
6291 2013-03-28 Jan Hubicka <jh@suse.cz>
6292
6293 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6294
6295 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6296
6297 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6298 record only when desired or required.
6299
6300 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6301
6302 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6303 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6304
6305 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6306
6307 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6308 (*andsi3_compare0_uxtw): New pattern.
6309 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6310 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6311
6312 2013-03-28 Jan Hubicka <jh@suse.cz>
6313
6314 * data-streamer-in.c (streamer_read_gcov_count): New function.
6315 * gimple-streamer-out.c: Include value-prof.h.
6316 (output_gimple_stmt): Output histogram.
6317 (output_bb): Use streamer_write_gcov_count.
6318 * value-prof.c: Include data-streamer.h
6319 (dump_histogram_value): Add HIST_TYPE_MAX.
6320 (stream_out_histogram_value): New function.
6321 (stream_in_histogram_value): New function.
6322 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6323 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6324 * data-streamer-out.c (streamer_write_gcov_count): New function.
6325 (streamer_write_gcov_count_stream): New function.
6326 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6327 (lto_output_node): Likewise.
6328 (input_node, input_edge): Likewise.
6329 * lto-streamer-out.c (output_cfg): Update streaming.
6330 * lto-streamer-in.c (input_cfg): Likewise.
6331 * data-streamer.h (streamer_write_gcov_count,
6332 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6333 * gimple-streamer-in.c: Include value-prof.h
6334 (input_gimple_stmt): Input histograms.
6335 (input_bb): Update profile streaming.
6336
6337 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6338
6339 * genmodes.c (emit_max_int): New function.
6340 (emit_insn_modes_h): Added call to emit_max_function.
6341 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6342 Added doc.
6343 * machmode.def: Fixed comment.
6344
6345 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6346
6347 * combine.c (try_combine): Removed useless assert.
6348 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6349
6350 2013-03-28 Marek Polacek <polacek@redhat.com>
6351 Richard Biener <rguenther@suse.de>
6352
6353 PR tree-optimization/56695
6354 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6355 build signed result of a vector comparison.
6356 * tree-cfg.c (verify_gimple_comparison): Check that a result
6357 of a vector comparison has signed type.
6358
6359 2013-03-28 Richard Biener <rguenther@suse.de>
6360
6361 PR tree-optimization/37021
6362 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6363 do not restrict gaps between groups.
6364 * tree-vect-stmts.c (vectorizable_load): Properly account for
6365 a gap between groups.
6366
6367 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6368
6369 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6370 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6371 is not enabled.
6372
6373 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6374
6375 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6376 * doc/extend.texi (Named Address Spaces): Ditto.
6377 (Variable Attributes): Ditto.
6378
6379 2013-03-27 Kai Tietz <ktietz@redhat.com>
6380
6381 * config.build: Add support for cygwin x64 target.
6382 * config.gcc: Likewise.
6383 * config.host: Likewise.
6384 * configure.ac: Likewise
6385 * configure: Regenerated.
6386
6387 2013-03-27 Kai Tietz <ktietz@redhat.com>
6388
6389 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6390 * config/i386/t-cygwin-w64: New file.
6391 * config/i386/cygwin-w64.h: New file.
6392 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6393 and add support for x64-cygwin target.
6394 (CPP_SPEC): Likewise.
6395 (CXX_WRAP_SPEC_LIST): Undefine before define.
6396 (LIBGCJ_SONAME): Use 15 as version.
6397
6398 2013-03-27 Richard Biener <rguenther@suse.de>
6399
6400 PR tree-optimization/56716
6401 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6402 dumping for ref nodes.
6403
6404 2013-03-27 Martin Jambor <mjambor@suse.cz>
6405
6406 PR tree-optimization/55334
6407 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6408 restricted pointers to arrays.
6409
6410 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6411
6412 * Makefile.in (.SUFFIXES): Add .cc.
6413 (.c.o): Apply same recipe for implicit rule .cc.o.
6414
6415 2013-03-27 Richard Biener <rguenther@suse.de>
6416
6417 PR tree-optimization/37021
6418 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6419 REALPART/IMAGPART_EXPRs around the supported refs.
6420 * tree-ssa-structalias.c (find_func_aliases): Assume that
6421 floating-point values are not used to transfer pointers.
6422
6423 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6424
6425 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6426 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6427 * doc/tm.texi: Regenerate.
6428 * targhooks.h (default_has_ifunc_p): New.
6429 * targhooks.c (default_has_ifunc_p): Ditto.
6430 * config/linux-protos.h: New file.
6431 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6432 this hook for linux which disables support of indirect functions in
6433 android.
6434 * config/linux-android.c: New file.
6435 * config/t-linux-android.c: Ditto.
6436 * config.gcc: Added new object file linux-android.o.
6437 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6438 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6439 * varasm.c (do_assemble_alias): Likewise.
6440 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6441 doesn't support indirect functions.
6442 * configure: Regenerate.
6443
6444 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6445
6446 PR target/56102
6447 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6448 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6449 mult-word mode.
6450
6451 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6452
6453 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6454
6455 2013-03-27 Terry Guo <terry.guo@arm.com>
6456
6457 * config/arm/arm-cores.def: Added core cortex-r7.
6458 * config/arm/arm-tune.md: Regenerated.
6459 * config/arm/arm-tables.opt: Regenerated.
6460 * doc/invoke.texi: Added entry for core cortex-r7.
6461
6462 2013-03-27 Walter Lee <walt@tilera.com>
6463
6464 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6465 double-decrement of next_scratch_regno.
6466
6467 2013-03-27 Walter Lee <walt@tilera.com>
6468
6469 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6470 input operands.
6471 (insn_v1mulus): Ditto.
6472 (insn_v2muls): Ditto.
6473
6474 2013-03-27 Walter Lee <walt@tilera.com>
6475
6476 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6477 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6478
6479 2013-03-27 Walter Lee <walt@tilera.com>
6480
6481 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6482 (*sibcall_value): Ditto.
6483
6484 2013-03-27 Walter Lee <walt@tilera.com>
6485
6486 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6487 (insn_mnz_v8qi): ... this ...
6488 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6489 vector equivalent.
6490 (insn_v<n>mnz): Replaced by ...
6491 (insn_v1mnz): ... this ...
6492 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6493 equivalent.
6494 (insn_mz_<mode>): Replaced by ...
6495 (insn_mz_v8qi): ... this ...
6496 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6497 vector equivalent.
6498 (insn_v<n>mz): Replaced by ...
6499 (insn_v1mz): ... this ...
6500 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6501 equivalent.
6502
6503 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6504
6505 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6506
6507 2013-03-26 Roland McGrath <mcgrathr@google.com>
6508
6509 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6510 than fprintf with a non-constant, non-format string.
6511
6512 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6513
6514 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6515 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6516 operand 0 predicate.
6517 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6518 attribute. Use general_x64nomem_operand as operand 1 predicate.
6519 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6520 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6521 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6522 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6523 (mov<mode>_insv_1): Remove expander. Merge insn with
6524 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6525 Use general_x64nomem_operand as operand 1 predicate.
6526 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6527 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6528 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6529 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6530 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6531 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6532 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6533 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6534 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6535 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6536 (general_x64nomem_operand): Ditto.
6537
6538 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6539
6540 * config/rtems.opt: Add -pthread option.
6541
6542 2013-03-26 Richard Biener <rguenther@suse.de>
6543
6544 * alias.c (find_base_term): Avoid redundant and not used recursion.
6545 (base_alias_check): Get the initial base term from the caller.
6546 (true_dependence_1): Compute and pass base terms to base_alias_check.
6547 (write_dependence_p): Likewise.
6548 (may_alias_p): Likewise.
6549
6550 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6551
6552 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6553 PC-relative load in SI modes and above only.
6554
6555 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6556
6557 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6558 * config/arm/iwmmxt.md (WCGR0): Update.
6559 (WCGR1, WCGR2, WCGR3): Likewise.
6560
6561 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6562
6563 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6564 Use x64 and nox64 isa attributes.
6565
6566 2013-03-26 Richard Biener <rguenther@suse.de>
6567
6568 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6569 alignment computations and rely on get_object_alignment_1
6570 for the !TYPE_P case.
6571 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6572
6573 2013-03-26 Walter Lee <walt@tilera.com>
6574
6575 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6576 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6577
6578 2013-03-25 Jeff Law <law@redhat.com>
6579
6580 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6581 check for INTEGRAL_TYPE_P that was missing due to checking in
6582 wrong version of prior patch.
6583
6584 2013-03-25 Walter Lee <walt@tilera.com>
6585
6586 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6587 TILEGX_INSN_SHUFFLEBYTES1.
6588 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6589 shufflebytes1.
6590 (tilegx_builtins): Ditto.
6591 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6592
6593 2013-03-25 Walter Lee <walt@tilera.com>
6594
6595 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6596 (floatunssisf2): New pattern.
6597 (floatsidf2): New pattern.
6598 (floatunssidf2): New pattern.
6599
6600 2013-03-25 Walter Lee <walt@tilera.com>
6601
6602 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6603 tests for constraint J, K, N, P.
6604
6605 2013-03-25 Walter Lee <walt@tilera.com>
6606
6607 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6608 Use indirect/pcrel encoding.
6609 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6610 Ditto.
6611
6612 2013-03-25 Steve Ellcey <sellcey@mips.com>
6613
6614 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6615 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6616 * config/mips/mips.c (mips_option_override): Set IMADD default.
6617 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6618 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6619 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6620 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6621 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6622
6623 2013-03-25 Jeff Law <law@redhat.com>
6624
6625 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6626 slightly to avoid creating and folding useless trees. Simplify
6627 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6628
6629 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
6630
6631 * config/i386/i386.md (*zero_extendsidi2): Merge with
6632 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6633 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6634 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6635 targets. Clarify comment.
6636
6637 2013-03-25 Martin Jambor <mjambor@suse.cz>
6638
6639 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6640 pass-through jump functions differently.
6641 (ipa_read_jump_function): Likewise. Also use setter functions to set
6642 up jump functions.
6643
6644 2013-03-25 Martin Jambor <mjambor@suse.cz>
6645
6646 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6647 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6648 process it.
6649 (ipa_get_indirect_edge_target): New function.
6650 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6651 ipa_get_indirect_edge_target. Update all callers.
6652 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6653 ipa_get_indirect_edge_target_1 instead of calling
6654 ipa_get_indirect_edge_target.
6655 (create_specialized_node): Pass aggvlas to
6656 ipcp_discover_new_direct_edges.
6657
6658 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6659
6660 * config/arm/arm.md (f_sels, f_seld): New types.
6661 (*cmov<mode>): New pattern.
6662 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6663 predicate.
6664
6665 2013-03-25 Kai Tietz <ktietz@redhat.com>
6666
6667 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6668 POSIX-printf for mingw-hosted builds.
6669
6670 2013-03-25 Richard Biener <rguenther@suse.de>
6671
6672 PR middle-end/56694
6673 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6674 must-not-throw stmt location.
6675
6676 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6677
6678 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6679 Emit load-acquire versions when acq is true.
6680 (arm_emit_store_exclusive): Add rel parameter.
6681 Emit store-release versions when rel is true.
6682 (arm_split_compare_and_swap): Use acquire-release instructions
6683 instead.
6684 of barriers when appropriate.
6685 (arm_split_atomic_op): Likewise.
6686 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6687 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6688 (VUNSPEC_SLX): Likewise.
6689 (VUNSPEC_LDA): Likewise.
6690 (VUNSPEC_STL): Likewise.
6691 * config/arm/sync.md (atomic_load<mode>): New pattern.
6692 (atomic_store<mode>): Likewise.
6693 (arm_load_acquire_exclusive<mode>): Likewise.
6694 (arm_load_acquire_exclusivesi): Likewise.
6695 (arm_load_acquire_exclusivedi): Likewise.
6696 (arm_store_release_exclusive<mode>): Likewise.
6697
6698 2013-03-25 Catherine Moore <clm@codesourcery.com>
6699
6700 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6701 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6702 * config/mip/predicates.md (lwsp_swsp_operand,
6703 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6704 sb16_operand, db4_operand, db7_operand, ib3_operand,
6705 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6706 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6707 andi16_operand): New predicates.
6708 * config/mips/mips.md (compression): New attribute.
6709 (enabled): New attribute.
6710 (length): Consider compression in computing length.
6711 (shift_compression): New code attribute.
6712 (*add<mode>3): New operands. Record compression.
6713 (sub<mode>3): Likewise.
6714 (one_cmpl<mode>2): Likewise.
6715 (*and<mode>3): Likewise.
6716 (*ior<mode>3): Likewise.
6717 (unnamed pattern for xor): Likewise.
6718 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6719 (*<optab><mode>3): Likewise.
6720 (*mov<mode>_internal: Likewise.
6721 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6722 (mips_unsigned_immediate_p): New.
6723 (umips_lwsp_swsp_address_p): New.
6724 (m16_based_address_p): New.
6725 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6726 (mips_unsigned_immediate_p): New prototype.
6727 (lwsp_swsp_address_p): New prototype.
6728 (m16_based_address_p): New prototype.
6729 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6730 (mips_signed_immediate_p): New function.
6731 (m16_based_address_p): New function.
6732 (lwsp_swsp_address_p): New function.
6733 (mips_print_operand_punctuation): Recognize short delay slot insns
6734 for microMIPS.add<mode>3"
6735
6736 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6737
6738 PR target/56720
6739 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6740 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6741
6742 2013-03-25 Richard Biener <rguenther@suse.de>
6743
6744 PR tree-optimization/56689
6745 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6746 any edge.
6747
6748 2013-03-25 Richard Biener <rguenther@suse.de>
6749
6750 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6751 of bitmap.
6752 (memory_references): Likewise.
6753 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6754 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6755 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6756 (gather_mem_refs_in_loops): Fold into ...
6757 (analyze_memory_references): ... this. Move initialization
6758 to tree_ssa_lim_initialize.
6759 (fill_always_executed_in): Rename to ...
6760 (fill_always_executed_in_1): ... this.
6761 (fill_always_executed_in): Move contains_call computation to
6762 this new function from ...
6763 (tree_ssa_lim_initialize): ... here.
6764 (tree_ssa_lim): Call fill_always_executed_in.
6765
6766 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6767
6768 * postreload.c (reload_combine): Fix code detecting returns.
6769
6770 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6771
6772 * function.c (emit_use_return_register_into_block): On cc0 targets,
6773 do not emit the sequence between cc0 setter and user.
6774
6775 2013-03-25 Kai Tietz <ktietz@redhat.com>
6776
6777 * config/i386/predicates.md (local_symbolic_operand): Interpret
6778 dll-imported symbols as none-local.
6779
6780 2013-03-25 Richard Biener <rguenther@suse.de>
6781
6782 * tree-ssa-loop-im.c (struct depend): Remove.
6783 (struct lim_aux_data): Make depends a vec of gimples.
6784 (free_lim_aux_data): Adjust.
6785 (add_dependency): Likewise.
6786 (set_level): Likewise.
6787
6788 2013-03-25 Richard Biener <rguenther@suse.de>
6789
6790 PR middle-end/56434
6791 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6792 the pointer returned by calls with ECF_MALLOC set.
6793
6794 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6795
6796 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6797
6798 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6799
6800 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
6801 using MMXMODE mode iterator.
6802 (*move<mode>_internal): Merge with *movv2sf_internal and
6803 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6804
6805 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6806
6807 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6808 (record_last_mem_set_info): Likewise.
6809
6810 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6811 of XNEWVEC followed by memset.
6812 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6813
6814 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6815
6816 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6817 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6818 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6819 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6820 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6821 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6822 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6823 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6824 BARRIER_P instead of GET_CODE.
6825
6826 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6827
6828 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6829 inaccuracy in the probing code.
6830
6831 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6832 (ctrapdi4): Likewise.
6833
6834 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6835
6836 * calls.c (expand_call): Add missing guard to code handling return
6837 of non-BLKmode structures in MSB.
6838 * function.c (expand_function_end): Likewise.
6839
6840 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6841
6842 * combine.c (try_combine): Adjust comment. Do not add the set of
6843 insn #0 if the destination indirectly is set or dies in insn #2.
6844 Tidy up code to distribute a new note.
6845
6846 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6847
6848 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6849 also for alternatives 16 and 17.
6850
6851 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6852
6853 * config/i386/sse.md (*mov<mode>_internal): Merge with
6854 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6855 Emit insn template depending on type attribute. Use
6856 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6857 movd instead of movq mnemonic for interunit moves. Rewrite mode
6858 attribute calculation. Remove unit attribute calculation.
6859 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6860 Set prefix_data16 attribute for DImode ssemov types.
6861 Use Ym instead of y for SSE-MMX conversion alternatives.
6862 Reorder operand constraints.
6863
6864 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6865
6866 * df.h (df_insn_delete): Adjust prototype.
6867 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6868 and let it decide whether mark the basic block dirty.
6869 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6870 * df-scan.c (df_insn_info_delete): New helper function, split
6871 off from df_insn_delete.
6872 (df_scan_free_bb_info): Use it.
6873 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6874 Likewise.
6875 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6876 that the insn is actually an insn and it has a non-NULL basic block.
6877 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6878
6879 2013-03-22 Richard Biener <rguenther@suse.de>
6880
6881 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6882 dep_ref members.
6883 (mem_ref_alloc): Do not allocate them.
6884 (refs_independent_p): Do not query or maintain a cache.
6885
6886 2013-03-22 Richard Biener <rguenther@suse.de>
6887
6888 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6889 (gather_mem_refs_in_loops): Do not compute it.
6890 (analyze_memory_references): Do not allocate it.
6891 (tree_ssa_lim_finalize): Do not free it.
6892 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6893
6894 2013-03-22 Richard Biener <rguenther@suse.de>
6895
6896 * is-a.h (as_a): Use gcc_checking_assert.
6897
6898 2013-03-22 Ian Bolton <ian.bolton@arm.com>
6899
6900 * config/aarch64/aarch64.c (aarch64_print_operand): New
6901 format specifier for printing a constant in hex.
6902 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6903 format specifier for printing second operand.
6904
6905 2013-03-22 Richard Biener <rguenther@suse.de>
6906
6907 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6908 bitmaps.
6909 (gather_mem_refs_in_loops): Perform store accumulation here.
6910 (create_vop_ref_mapping_loop): Remove.
6911 (create_vop_ref_mapping): Likewise.
6912 (analyze_memory_references): Initialize refs_stored_in_loop.
6913 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
6914 (record_indep_loop): Remove.
6915 (record_dep_loop): New function.
6916 (ref_indep_loop_p_1): Adjust to only walk over references
6917 in the loop, not its subloops.
6918 (ref_indep_loop_p): Rename to ...
6919 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6920 maintaining a more fine-grained cache.
6921 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6922 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6923
6924 2013-03-22 Richard Biener <rguenther@suse.de>
6925
6926 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6927 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6928 aggregate mem_ref_loc.
6929 (free_mem_ref_locs): Inline into ...
6930 (memref_free): ... this and adjust.
6931 (mem_ref_alloc): Adjust.
6932 (mem_ref_locs_alloc): Remove.
6933 (record_mem_ref_loc): Adjust.
6934 (get_all_locs_in_loop): Rewrite into ...
6935 (for_all_locs_in_loop): ... this iterator.
6936 (rewrite_mem_ref_loc): New functor.
6937 (rewrite_mem_refs): Use for_all_locs_in_loop.
6938 (sm_set_flag_if_changed): New functor.
6939 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6940 (ref_always_accessed): New functor.
6941 (ref_always_accessed_p): Use for_all_locs_in_loop.
6942
6943 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6944
6945 * tree-pass.h (PROP_gimple_lvec): New.
6946 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6947 (init_optimization_passes): Move pass_lower_vector.
6948 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6949 PROP_gimple_lvec.
6950 (pass_lower_vector): Provide PROP_gimple_lvec.
6951 (pass_lower_vector_ssa): Likewise.
6952 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6953
6954 2013-03-21 Mark Wielaard <mjw@redhat.com>
6955
6956 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6957
6958 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6959
6960 * config/i386/i386.md (*movdi_internal): Disparage slightly
6961 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6962 conversion alternatives.
6963
6964 2013-03-21 Jakub Jelinek <jakub@redhat.com>
6965
6966 PR middle-end/48087
6967 * diagnostic.def (DK_WERROR): New kind.
6968 * diagnostic.h (werrorcount): Define.
6969 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6970 promoted to DK_ERROR, increment DK_WERROR counter instead of
6971 DK_ERROR counter.
6972 * toplev.c (toplev_main): Call print_ignored_options even if
6973 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6974 even if just werrorcount is non-zero.
6975
6976 PR debug/55608
6977 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6978 on failure.
6979 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6980 (string_cst_pool_decl): New function.
6981 (optimize_one_addr_into_implicit_ptr): New function.
6982 (resolve_addr_in_expr): Optimize DWARF location expression
6983 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6984 which doesn't live in memory, but has DW_AT_location or
6985 DW_AT_const_value, or refers to a string literal, into
6986 DW_OP_GNU_implicit_pointer.
6987 (optimize_location_into_implicit_ptr): New function.
6988 (resolve_addr): If removing DW_AT_location of a variable because
6989 it was DW_OP_addr of address of the variable, but the variable doesn't
6990 live in memory, try to emit const value attribute for the initializer.
6991
6992 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6993
6994 * tree.h (VECTOR_TYPE_P): New macro.
6995 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6996 TYPE_MODE): Use it.
6997 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6998 VEC_COND_EXPR cannot be lvalues.
6999 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7000
7001 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7002
7003 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7004 Restrict the transformation to equal modes.
7005
7006 2013-03-21 Richard Biener <rguenther@suse.de>
7007
7008 PR tree-optimization/39326
7009 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7010 (MEM_ANALYZABLE): Adjust.
7011 (record_mem_ref_loc): Move bitmap ops ...
7012 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7013 unanalyzable refs, do not record locations for it.
7014 (analyze_memory_references): Allocate ref zero as shared
7015 unanalyzable ref.
7016 (refs_independent_p): Do not test for unanalyzed mems here.
7017 (ref_indep_loop_p_1): Special-case disambiguation against
7018 the unanalyzed ref.
7019 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7020
7021 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7022
7023 * config/arm/arm-protos.h (tune_params): Add
7024 prefer_neon_for_64bits field.
7025 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7026 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7027 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7028 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7029 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7030 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7031 (arm_option_override): Handle -mneon-for-64bits new option.
7032 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7033 (prefer_neon_for_64bits): Declare new variable.
7034 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7035 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7036 (arch_enabled): Handle new arch types. Remove support for onlya8
7037 and nota8.
7038 (one_cmpldi2): Use new arch names.
7039 (zero_extend<mode>di2, extend<mode>di2): Ditto.
7040 * config/arm/arm.opt (mneon-for-64bits): Add option.
7041 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7042 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7043 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7044 of onlya8.
7045 * doc/invoke.texi (-mneon-for-64bits): Document.
7046
7047 2013-03-21 Richard Biener <rguenther@suse.de>
7048
7049 PR tree-optimization/39326
7050 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7051 (sort_bbs_in_loop_postorder_cmp): New function.
7052 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7053
7054 2013-03-21 Richard Biener <rguenther@suse.de>
7055
7056 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7057 (vect_insert_into_interleaving_chain): Likewise.
7058 (vect_drs_dependent_in_basic_block): Inline ...
7059 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7060 split out from ...
7061 (vect_analyze_data_ref_dependence): ... here. Simplify.
7062 (vect_check_interleaving): Simplify.
7063 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7064 (vect_slp_analyze_data_ref_dependences): ... this new function.
7065 (dr_group_sort_cmp): New function.
7066 (vect_analyze_data_ref_accesses): Compute data-reference groups
7067 here instead of in vect_analyze_data_ref_dependence. Use
7068 a more efficient algorithm.
7069 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7070 vect_slp_analyze_data_ref_dependences. Call
7071 vect_analyze_data_ref_accesses earlier.
7072 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7073 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7074 (vect_slp_analyze_data_ref_dependences): New prototype.
7075
7076 2013-03-21 Richard Biener <rguenther@suse.de>
7077
7078 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7079 ref is stored in the loop.
7080 (find_refs_for_sm): Walk only over all stores.
7081 (store_motion_loop): Allocate from lim_bitmap_obstack.
7082 (store_motion): Likewise.
7083
7084 2013-03-21 Richard Biener <rguenther@suse.de>
7085
7086 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7087 Update virtual SSA form.
7088
7089 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7090
7091 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7092 * configure: Regenerate.
7093 * config.in: Regenerate.
7094 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7095 if !HAVE_LD_EH_FRAME_CIEV3.
7096
7097 2013-03-21 Richard Biener <rguenther@suse.de>
7098
7099 * tree-cfg.c (verify_expr_no_block): New function.
7100 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7101 nor DECL_VALUE_EXPR have locations with associated blocks.
7102 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7103 (clear_unused_block_pointer): Remove code dealing with
7104 blocks in DECL_DEBUG_EXPR locations.
7105
7106 2013-03-21 Richard Biener <rguenther@suse.de>
7107
7108 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7109 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7110 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7111 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7112 instead of DECL_DEBUG_EXPR_IS_FROM.
7113 * gimplify.c (gimplify_modify_expr): Likewise.
7114 * tree-cfg.c (verify_expr_location_1): Likewise.
7115 * tree-complex.c (create_one_component_var): Likewise.
7116 * tree-sra.c (create_access_replacement): Likewise.
7117 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7118 (clear_unused_block_pointer): Likewise.
7119 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7120 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7121 * var-tracking.c (var_debug_decl): Likewise.
7122 (track_expr_p): Likewise.
7123 * tree-inline.c (add_local_variables): Likewise. Set
7124 DECL_HAS_DEBUG_EXPR_P after copying it.
7125 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7126 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7127
7128 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7129
7130 PR bootstrap/56656
7131 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7132 * configure: Regenerate.
7133 * config.in: Regenerate.
7134 * config/i386/i386.md (*movdf_internal): Use
7135 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7136 movd instead of movq mnemonic for interunit moves.
7137 (*movdi_internal): Ditto.
7138
7139 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7140
7141 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7142 (abd<mode>_3): New pattern.
7143 (aba<mode>_3): New pattern.
7144 (fabd<mode>_3): New pattern.
7145
7146 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7147
7148 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7149 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7150 occurrence of REGISTER_PREFIX as its empty string.
7151
7152 2013-03-20 Jeff Law <law@redhat.com>
7153
7154 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7155 addititional equivalences for equality comparisons between an SSA_NAME
7156 and a constant where the SSA_NAME was set from a widening conversion.
7157
7158 2013-03-20 Walter Lee <walt@tilera.com>
7159
7160 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7161
7162 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7163
7164 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7165 depending on type attribute.
7166 (*movti_internal): Ditto.
7167 (*movtf_internal): Ditto.
7168 (*movxf_internal): Ditto.
7169 (*movdf_internal): Ditto.
7170 (*movsf_internal): Ditto.
7171
7172 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7173
7174 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7175 maybe_vex for sselog1 and ssemov types.
7176 (*movdi_internal): Reorder operand constraints.
7177 (*movsi_internal): Ditto. Set prefix attribute to
7178 maybe_vex for sselog1 and ssemov types.
7179 (*movtf_internal): Set prefix attribute to maybe_vex
7180 for sselog1 and ssemov types.
7181 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7182 DImode ssemov types. Reorder operand constraints.
7183 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7184 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7185 attribute for SImode ssemov types. Reorder operand constraints.
7186
7187 2013-03-20 Martin Jambor <mjambor@suse.cz>
7188
7189 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7190 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7191
7192 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7193
7194 * config/rs6000/predicates.md (indexed_address, update_address_mem
7195 update_indexed_address_mem): New predicates.
7196 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7197 attribute for load/store instructions.
7198 * config/rs6000/dfp.md (movsd_store): Likewise.
7199 (movsd_load): Likewise.
7200 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7201 (unnamed HI->DI extend define_insn): Likewise.
7202 (unnamed SI->DI extend define_insn): Likewise.
7203 (unnamed QI->SI extend define_insn): Likewise.
7204 (unnamed QI->HI extend define_insn): Likewise.
7205 (unnamed HI->SI extend define_insn): Likewise.
7206 (unnamed HI->SI extend define_insn): Likewise.
7207 (extendsfdf2_fpr): Likewise.
7208 (movsi_internal1): Likewise.
7209 (movsi_internal1_single): Likewise.
7210 (movhi_internal): Likewise.
7211 (movqi_internal): Likewise.
7212 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7213 attribute for load/store instructions.
7214 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7215 instructions.
7216 (mov<mode>_softfloat): Likewise.
7217 (mov<mode>_hardfloat32): Likewise.
7218 (mov<mode>_hardfloat64): Likewise.
7219 (mov<mode>_softfloat64): Likewise.
7220 (movdi_internal32): Likewise.
7221 (movdi_internal64): Likewise.
7222 (probe_stack_<mode>): Likewise.
7223
7224 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7225
7226 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7227 floating point, and decimal floating point to reload iterator.
7228
7229 * config/rs6000/constraints.md (wl constraint): New constraints to
7230 return FLOAT_REGS if certain options are used to reduce the number
7231 of separate patterns that exist in the file.
7232 (wx constraint): Likewise.
7233 (wz constraint): Likewise.
7234
7235 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7236 -mdebug=reg, print wg, wl, wx, and wz constraints.
7237 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7238 Initialize the reload functions for 64-bit binary/decimal floating
7239 point types.
7240 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7241 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7242 create the buffer on the stack to overcome not having a 32-bit
7243 load and store.
7244 (rs6000_emit_move): Likewise.
7245 (rs6000_secondary_memory_needed_rtx): Likewise.
7246 (rs6000_alloc_sdmode_stack_slot): Likewise.
7247 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7248 via xxlxor, just like DFmode 0.0.
7249
7250 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7251 define as 1 if we are running on a power7 or newer.
7252 (enum r6000_reg_class_enum): Add new constraints.
7253
7254 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7255 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7256 with other moves by using conditional constraits (wg). Use LFIWZX
7257 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7258 (movsd splitter): Likewise.
7259 (movsd_hardfloat): Likewise.
7260 (movsd_softfloat): Likewise.
7261
7262 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7263 binary and decimal floating point moves.
7264 (fmove_ok): New attributes to combine binary and decimal floating
7265 point moves, and to combine power6x (mfpgpr) moves along normal
7266 floating moves.
7267 (real_value_to_target): Likewise.
7268 (f32_lr): Likewise.
7269 (f32_lm): Likewise.
7270 (f32_li): Likewise.
7271 (f32_sr): Likewise.
7272 (f32_sm): Likewise.
7273 (f32_si): Likewise.
7274 (movsf): Combine binary and decimal floating point moves. Combine
7275 power6x (mfpgpr) moves with other moves by using conditional
7276 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7277 (mov<mode> for SFmode/SDmode); Likewise.
7278 (SFmode/SDmode splitters): Likewise.
7279 (movsf_hardfloat): Likewise.
7280 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7281 (movsf_softfloat): Likewise.
7282 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7283
7284 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7285 wx and wz constraints.
7286
7287 * config/rs6000/constraints.md (wg constraint): New constraint to
7288 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7289
7290 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7291 constraint.
7292
7293 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7294 -mdebug=reg, print wg, wl, wx, and wz constraints.
7295 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7296 Initialize the reload functions for 64-bit binary/decimal floating
7297 point types.
7298 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7299 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7300 create the buffer on the stack to overcome not having a 32-bit
7301 load and store.
7302 (rs6000_emit_move): Likewise.
7303 (rs6000_secondary_memory_needed_rtx): Likewise.
7304 (rs6000_alloc_sdmode_stack_slot): Likewise.
7305 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7306 via xxlxor, just like DFmode 0.0.
7307
7308 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7309 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7310 with other moves by using conditional constraits (wg). Use LFIWZX
7311 and STFIWX for loading SDmode on power7.
7312 (movdd splitters): Likewise.
7313 (movdd_hardfloat32): Likewise.
7314 (movdd_softfloat32): Likewise.
7315 (movdd_hardfloat64_mfpgpr): Likewise.
7316 (movdd_hardfloat64): Likewise.
7317 (movdd_softfloat64): Likewise.
7318
7319 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7320 64-bit binary and decimal floating point moves.
7321 (FMOVE64X): Likewise.
7322 (movdf): Combine 64-bit binary and decimal floating point moves.
7323 Combine power6x (mfpgpr) moves with other moves by using
7324 conditional constraits (wg).
7325 (mov<mode> for DFmode/DDmode): Likewise.
7326 (DFmode/DDmode splitters): Likewise.
7327 (movdf_hardfloat32): Likewise.
7328 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7329 (movdf_softfloat32): Likewise.
7330 (movdf_hardfloat64_mfpgpr): Likewise.
7331 (movdf_hardfloat64): Likewise.
7332 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7333 (movdf_softfloat64): Likewise.
7334 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7335 (reload_<mode>_load): Move to later in the file so they aren't in
7336 the middle of the floating point move insns.
7337 (reload_<mode>_store): Likewise.
7338
7339 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7340 constraint.
7341
7342 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7343 constraint if -mdebug=reg.
7344 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7345 Enable using dd reload support if needed.
7346
7347 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7348 binary and decimal floating point moves in rs6000.md.
7349 (movtd_internal): Likewise.
7350
7351 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7352 decimal floating point moves.
7353 (movtf): Likewise.
7354 (movtf_internal): Likewise.
7355 (mov<mode>_internal, TDmode/TFmode): Likewise.
7356 (movtf_softfloat): Likewise.
7357 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7358
7359 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7360 movdi_internal64, using wg constraint for move direct operations.
7361 (movdi_internal64): Likewise.
7362
7363 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7364 MODES_TIEABLE_P for selected modes. Print the numerical value of
7365 the various virtual registers. Use GPR/FPR first/last values,
7366 instead of hard coding the register numbers. Print which modes
7367 have reload functions registered.
7368 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7369 settings before/after setting cpu, target and subtarget settings.
7370 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7371 and for secondary reload failures in rs6000_secondary_reload_inner.
7372 (rs6000_secondary_reload_fail): Likewise.
7373 (rs6000_secondary_reload_inner): Likewise.
7374
7375 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7376 macros for first/last GPR and FPR registers.
7377 (LAST_GPR_REGNO): Likewise.
7378 (FIRST_FPR_REGNO): Likewise.
7379 (LAST_FPR_REGNO): Likewise.
7380
7381 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7382 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7383 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7384 (vcond<mode><mode>): Likewise.
7385 (vcondu<mode><mode>): Likewise.
7386 (vector_gtu<mode>): Likewise.
7387 (vector_gte<mode>): Likewise.
7388 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7389 to prevent the compiler from converting DImode operations to TImode.
7390 (ior<mode>3): Likewise.
7391 (and<mode>3): Likewise.
7392 (one_cmpl<mode>2): Likewise.
7393 (nor<mode>3): Likewise.
7394 (andc<mode>3): Likewise.
7395
7396 * config/rs6000/constraints.md (wt constraint): New constraint
7397 that returns VSX_REGS if TImode is allowed in VSX registers.
7398
7399 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7400 constant under VSX.
7401
7402 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7403 similar to TImode, but it is restricted to being in the GPRs.
7404
7405 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7406 TImode to occupy a single VSX register.
7407
7408 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7409 -mvsx-timode for power7/power8.
7410 (power7 cpu): Likewise.
7411 (power8 cpu): Likewise.
7412
7413 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7414 sure that TFmode/TDmode take up two registers if they are ever
7415 allowed in the upper VSX registers.
7416 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7417 registers.
7418 (rs6000_init_hard_regno_mode_ok): Likewise.
7419 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7420 constraint. Print if LRA is turned on.
7421 (rs6000_option_override_internal): Give an error if -mvsx-timode
7422 and VSX is not enabled.
7423 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7424 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7425 to reg+offset addressing. Use PTImode when checking offset
7426 addresses for validity.
7427 (reg_offset_addressing_ok_p): Likewise.
7428 (rs6000_legitimate_offset_address_p): Likewise.
7429 (rs6000_legitimize_address): Likewise.
7430 (rs6000_legitimize_reload_address): Likewise.
7431 (rs6000_legitimate_address_p): Likewise.
7432 (rs6000_eliminate_indexed_memrefs): Likewise.
7433 (rs6000_emit_move): Likewise.
7434 (rs6000_secondary_reload): Likewise.
7435 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7436 reloads to fpr registers to continue to use reg+offset addressing,
7437 but 64-bit reloads to altivec registers need reg+reg addressing.
7438 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7439 it. Treat LO_SUM like a PLUS operation.
7440 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7441 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7442 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7443 registers to share a register with a smaller sized type, since VSX
7444 puts scalars in the upper 64-bits.
7445 (print_operand): Add support for PTImode.
7446 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7447 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7448 registers, but don't have arithmetic support.
7449 (rs6000_memory_move_cost): Add test for VSX.
7450 (rs6000_opt_masks): Add -mvsx-timode.
7451
7452 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7453 for TImode.
7454 (VSs): Likewise.
7455 (VSr): Use wt constraint for TImode.
7456 (VSv): Drop TImode support.
7457 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7458 (vsx_movti_64bit): Likewise.
7459 (vsx_movti_32bit): Likewise.
7460 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7461 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7462 one '?' on the appropriate output constraint. Do not allow TImode
7463 logical operations on 32-bit systems.
7464 (vsx_ior<mode>3): Likewise.
7465 (vsx_xor<mode>3): Likewise.
7466 (vsx_one_cmpl<mode>2): Likewise.
7467 (vsx_nor<mode>3): Likewise.
7468 (vsx_andc<mode>3): Likewise.
7469 (vsx_concat_<mode>): Likewise.
7470 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7471
7472 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7473 OPTION_MASK_VSX_TIMODE.
7474 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7475 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7476
7477 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7478 (TI2 iterator): New iterator for TImode, PTImode.
7479 (wd mode attribute): Add values for vector types.
7480 (movti_string): Replace TI move operations with operations for TImode
7481 and PTImode. Add support for TImode being allowed in VSX registers.
7482 (mov<mode>_string, TImode/PTImode): Likewise.
7483 (movti_ppc64): Likewise.
7484 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7485 (TI mode splitters): Likewise.
7486
7487 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7488 constraint.
7489
7490 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7491
7492 PR tree-optimization/56355
7493 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7494 Also handle integers with undefined overflow.
7495
7496 2013-03-20 Catherine Moore <clm@codesourcery.com>
7497 Maciej W. Rozycki <macro@codesourcery.com>
7498 Tom de Vries <tom@codesourcery.com>
7499 Nathan Sidwell <nathan@codesourcery.com>
7500 Iain Sandoe <iain@codesourcery.com>
7501 Nathan Froyd <froydnj@codesourcery.com>
7502 Chao-ying Fu <fu@mips.com>
7503
7504 * doc/extend.texi: (micromips, nomicromips, nocompression):
7505 Document new function attributes.
7506 * doc/invoke.texi (minterlink-compressed, mmicromips,
7507 m14k, m14ke, m14kec): Document new options.
7508 (minterlink-mips16): Update documentation.
7509 * doc/md.texi (ZC, ZD): Document new constraints.
7510 * configure.ac (gcc_cv_as_micromips): Check if linker
7511 supports the .set micromips directive.
7512 * configure: Regenerate.
7513 * config.in: Regenerate.
7514 * config/mips/mips-tables.opt: Regenerate.
7515 * config/mips/micromips.md: New file.
7516 * constraints.md (ZC, ZD): New constraints.
7517 * config/mips/predicates.md (movep_src_register): New predicate.
7518 (movep_src_operand): New predicate.
7519 (non_volatile_mem_operand): New predicate.
7520 * config/mips/mips.md (multimem): New type.
7521 (length): Differentiate between 17-bit and 18-bit branch offsets.
7522 (MOVEP1, MOVEP2): New mode iterator.
7523 (mov_<load>l): Use ZC constraint.
7524 (mov_<load>r): Likewise.
7525 (mov_<store>l): Likewise.
7526 (mov_<store>r): Likewise.
7527 (*branch_equality<mode>_inverted): Add microMIPS support.
7528 (*branch_equality<mode>): Likewise.
7529 (*jump_absolute): Likewise.
7530 (indirect_jump_<mode>): Likewise.
7531 (tablejump_<mode>): Likewise.
7532 (<optab>_internal): Likewise.
7533 (sibcall_internal): Likewise.
7534 (sibcall_value_internal): Likewise.
7535 (prefetch): Use constraint ZD.
7536 * config/mips/mips.opt (minterlink-compressed): New option.
7537 (minterlink-mips16): Now an alias for minterlink-compressed.
7538 (mmicromips): New option.
7539 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7540 (compare_and_swap_12): Likewise.
7541 (sync_add<mode>): Likewise.
7542 (sync_<optab>_12): Likewise.
7543 (sync_old_<optab>_12): Likewise.
7544 (sync_new_<optab>_12): Likewise.
7545 (sync_nand_12): Likewise.
7546 (sync_old_nand_12): Likewise.
7547 (sync_new_nand_12): Likewise.
7548 (sync_sub<mode>): Likewise.
7549 (sync_old_add<mode>): Likewise.
7550 (sync_old_sub<mode>): Likewise.
7551 (sync_new_add<mode>): Likewise.
7552 (sync_new_sub<mode>): Likewise.
7553 (sync_<optab><mode>): Likewise.
7554 (sync_old_<optab><mode>): Likewise.
7555 (sync_new_<optab><mode>): Likewise.
7556 (sync_nand<mode>): Likewise.
7557 (sync_old_nand<mode>): Likewise.
7558 (sync_new_nand<mode>): Likewise.
7559 (sync_lock_test_and_set<mode>): Likewise.
7560 (test_and_set_12): Likewise.
7561 (atomic_compare_and_swap<mode>): Likewise.
7562 (atomic_exchange<mode>_llsc): Likewise.
7563 (atomic_fetch_add<mode>_llsc): Likewise.
7564 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7565 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7566 (umips_save_restore_pattern_p): Likewise.
7567 (umips_load_store_pair_p): Likewise.
7568 (umips_output_load_store_pair): Likewise.
7569 (umips_movep_target_p): Likewise.
7570 (umips_12bit_offset_address_p): Likewise.
7571 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7572 (mips_base_mips16): Rename this...
7573 (mips_base_compression_flags): ...to this. Update all uses.
7574 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7575 (mips_mips16_decl_p): Delete.
7576 (mips_nomips16_decl_p): Delete.
7577 (mips_get_compress_on_flags): New function.
7578 (mips_get_compress_off_flags): New function.
7579 (mips_get_compress_mode): New function.
7580 (mips_get_compress_on_name): New function.
7581 (mips_get_compress_off_name): New function.
7582 (mips_insert_attributes): Support multiple compression types.
7583 (mips_merge_decl_attributes): Likewise.
7584 (umips_12bit_offset_address_p): New function.
7585 (mips_start_function_definition): Emit .set micromips directive.
7586 (mips_call_may_need_jalx_p): New function.
7587 (mips_function_ok_for_sibcall): Add microMIPS support.
7588 (mips_print_operand_punctuation): Support short delay slots and
7589 compact jumps.
7590 (umips_swm_mask, umips_swm_encoding): New.
7591 (umips_build_save_restore): New function.
7592 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7593 (was_mips16_p): Remove.
7594 (old_compression_mode): New.
7595 (mips_set_compression_mode): New function.
7596 (mips_set_current_function): Add microMIPS support.
7597 (mips_option_override): Likewise.
7598 (umips_save_restore_pattern_p): New function.
7599 (umips_output_save_restore): New function.
7600 (umips_load_store_pair_p_1): New function.
7601 (umips_load_store_pair_p): New function.
7602 (umips_output_load_store_pair_1): New function.
7603 (umips_output_load_store_pair): New function.
7604 (umips_movep_target_p) New function.
7605 (mips_prepare_pch_save): Add microMIPS support.
7606 * config/mips/mips.h (TARGET_COMPRESSION): New.
7607 (TARGET_CPU_CPP_BUILTINS): Update macro
7608 to use new compression flags and to support microMIPS.
7609 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7610 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7611 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7612 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7613 (ASM_SPEC): Support mmicromips and mno-micromips.
7614 (M16STORE_REG_P): New macro.
7615 (MIPS_CALL): Support TARGET_MICROMIPS.
7616 (MICROMIPS_J): New macro.
7617 (mips_base_mips16): Rename this...
7618 (mips_base_compression_flags): ...to this.
7619 (UMIPS_12BIT_OFFSET_P): New macro.
7620 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7621 (MULTILIB_DIRNAMES): Likewise.
7622 2013-03-20 Richard Biener <rguenther@suse.de>
7623
7624 PR tree-optimization/56661
7625 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7626 the result does not have to be distinct.
7627
7628 2013-03-20 Richard Biener <rguenther@suse.de>
7629
7630 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7631 remap_gimple_op_r.
7632
7633 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7634 Steven Bosscher <steven@gcc.gnu.org>
7635
7636 PR rtl-optimization/56605
7637 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7638
7639 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7640
7641 PR bootstrap/56656
7642 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7643 that require movd instead of movq.
7644
7645 2013-03-20 Richard Biener <rguenther@suse.de>
7646
7647 * tree-ssa-structalias.c (struct variable_info): Add pointer
7648 to the first field of an aggregate with sub-vars. Make
7649 this and the pointer to the next subfield its ID.
7650 (vi_next): New function.
7651 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7652 storedanything_id, integer_id): Increment by one.
7653 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7654 get_call_clobber_vi): Adjust.
7655 (solution_set_expand): Simplify and speedup.
7656 (solution_set_add): Inline into ...
7657 (set_union_with_increment): ... this. Adjust accordingly.
7658 (do_sd_constraint): Likewise.
7659 (do_ds_constraint): Likewise.
7660 (do_complex_constraint): Simplify.
7661 (build_pred_graph): Adjust.
7662 (solve_graph): Likewise. Simplify and speedup.
7663 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7664 get_constraint_for_component_ref, get_constraint_for_1,
7665 first_vi_for_offset, first_or_preceding_vi_for_offset,
7666 create_function_info_for, create_variable_info_for_1,
7667 create_variable_info_for, intra_create_variable_infos): Adjust.
7668 (init_base_vars): Push NULL for ID zero.
7669 (compute_points_to_sets): Adjust.
7670
7671 2013-03-20 Richard Biener <rguenther@suse.de>
7672
7673 * cfgloop.c (verify_loop_structure): Streamline and avoid
7674 ICEing on corrupt loop tree.
7675 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7676 loop tree.
7677
7678 2013-03-20 Richard Biener <rguenther@suse.de>
7679
7680 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7681 check whether an SSA update is needed.
7682
7683 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7684
7685 * config/mips/constraints.md (T): Rename to...
7686 (Yf): ...this.
7687 (U): Rename to...
7688 (Yd): ...this.
7689 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7690 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7691
7692 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7693
7694 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7695 (*subsi3_carryin_uxtw): Likewise.
7696
7697 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7698
7699 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7700 (*rorsi3_insn_uxtw): Likewise.
7701
7702 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7703
7704 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7705 (*extrsi5_insn_uxtw): Likewise.
7706
7707 2013-03-19 Richard Biener <rguenther@suse.de>
7708
7709 PR tree-optimization/56273
7710 * passes.c (init_optimization_passes): Move second VRP after DOM.
7711
7712 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
7713
7714 * config/i386/i386.md (*movti_internal): Merge from
7715 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7716 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7717 nox64 isa attributes.
7718
7719 2013-03-18 Richard Biener <rguenther@suse.de>
7720
7721 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7722 (unite): Likewise.
7723 (merge_node_constraints): Likewise.
7724 (build_succ_graph): Likewise.
7725 (valid_graph_edge): Inline into single caller.
7726 (unify_nodes): Likewise. Use bitmap_set_bit return value
7727 and cache varinfo.
7728 (scc_visit): Fix formatting and variable use.
7729 (do_sd_constraint): Use gcc_checking_assert.
7730 (do_ds_constraint): Likewise.
7731 (do_complex_constraint): Likewise.
7732 (condense_visit): Likewise. Cleanup.
7733 (dump_pred_graph): New function.
7734 (perform_var_substitution): Dump the pred-graph before
7735 variable substitution.
7736 (find_equivalent_node): Use gcc_checking_assert.
7737 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7738
7739 2013-03-18 Richard Biener <rguenther@suse.de>
7740
7741 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7742 Remove cond_expr_stmt_list argument and do not gimplify the
7743 built expression.
7744 (vect_loop_versioning): Adjust.
7745 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7746 Cleanup to use less temporaries.
7747 (vect_create_data_ref_ptr): Cleanup.
7748
7749 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7750
7751 PR tree-optimization/56635
7752 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7753 require types_compatible_p types.
7754
7755 2013-03-18 Nick Clifton <nickc@redhat.com>
7756
7757 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7758 spurious backslash.
7759
7760 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7761 Add missing line to comment describing function.
7762
7763 2013-03-18 Richard Biener <rguenther@suse.de>
7764
7765 PR tree-optimization/56210
7766 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7767 Handle string / character search functions.
7768 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7769
7770 2013-03-18 Richard Biener <rguenther@suse.de>
7771
7772 PR middle-end/56483
7773 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7774 and implement properly.
7775 * gimple.h (gimple_cond_single_var_p): Remove.
7776
7777 2013-03-18 Richard Biener <rguenther@suse.de>
7778
7779 * tree-data-ref.h (find_data_references_in_loop): Declare.
7780 * tree-data-ref.c (get_references_in_stmt): Use a stack
7781 vector pre-allocated in the callers.
7782 (find_data_references_in_stmt): Adjust.
7783 (graphite_find_data_references_in_stmt): Likewise.
7784 (create_rdg_vertices): Likewise.
7785 (find_data_references_in_loop): Export.
7786 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7787 Compute dependences here...
7788 (vect_analyze_data_refs): ...not here. When we encounter
7789 a non-vectorizable data reference in basic-block vectorization
7790 truncate the data reference vector. Do not bother to
7791 fixup data-dependence information for gather loads.
7792 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7793 of data references, as reported.
7794
7795 2013-03-18 Richard Biener <rguenther@suse.de>
7796
7797 PR tree-optimization/3713
7798 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7799 has_constants and expr.
7800 (stmt_has_constants): Properly valueize SSA names when deciding
7801 whether the stmt has constants.
7802
7803 2013-03-18 Richard Biener <rguenther@suse.de>
7804
7805 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7806 whole function when there is nothing to do.
7807 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7808 * tree-vectorizer.c (vectorize_loops): Update virtual and
7809 loop-closed SSA once.
7810 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7811
7812 2013-03-18 Richard Biener <rguenther@suse.de>
7813
7814 PR middle-end/56113
7815 * domwalk.c (bb_postorder): New global static.
7816 (cmp_bb_postorder): New function.
7817 (walk_dominator_tree): Replace scheme imposing an order for
7818 visiting dominator sons by one sorting them at the time they
7819 are pushed on the stack.
7820
7821 2013-03-18 Richard Biener <rguenther@suse.de>
7822
7823 PR tree-optimization/39326
7824 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7825 (struct mem_ref): Replace mem member with ao_ref typed member.
7826 (MEM_ANALYZABLE): Adjust.
7827 (memref_eq): Likewise.
7828 (mem_ref_alloc): Likewise.
7829 (gather_mem_refs_stmt): Likewise.
7830 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7831 (execute_sm_if_changed_flag_set): Adjust.
7832 (execute_sm): Likewise.
7833 (ref_always_accessed_p): Likewise.
7834 (refs_independent_p): Likewise.
7835 (can_sm_ref_p): Likewise.
7836
7837 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7838
7839 PR c/56566
7840 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7841 return 1 even for !unsignedp.
7842
7843 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7844
7845 * config/i386/i386.md (isa): Add x64 and nox64.
7846 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7847 (*pushtf): Enable *roF alternative for x64 isa only.
7848 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7849 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7850 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7851 (*movtf_internal): Merge from *movtf_internal_rex64 and
7852 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7853 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7854 nox64 isa attributes.
7855 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7856 nox64 isa attributes.
7857 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7858
7859 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7860
7861 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7862
7863 2013-03-17 Jakub Jelinek <jakub@redhat.com>
7864
7865 PR target/56640
7866 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7867 class names. Remove trailing comma after "ALL_REGS".
7868
7869 2013-03-16 Jan Hubicka <jh@suse.cz>
7870
7871 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7872 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7873 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7874 of cgraph_get_create_node.
7875 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7876
7877 2013-03-16 Jason Merrill <jason@redhat.com>
7878
7879 PR debug/49090
7880 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7881 with DW_AT_default_value.
7882
7883 2013-03-16 Jakub Jelinek <jakub@redhat.com>
7884
7885 * BASE-VER: Set to 4.9.0.
7886
7887 2013-03-14 Andi Kleen <ak@linux.intel.com>
7888
7889 PR target/56619
7890 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7891 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7892 Document _x* TSX intrinsics.
7893
7894 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7895 David Holsgrove <david.holsgrove@xilinx.com>
7896
7897 * configure.ac: Add MicroBlaze TLS support detection.
7898 * configure: Regenerate.
7899 * config/microblaze/microblaze-protos.h
7900 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7901 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7902 * config/microblaze/microblaze.c (microblaze_address_type): Add
7903 ADDRESS_TLS and tls_reloc address types.
7904 (microblaze_address_info): Add tls_reloc.
7905 (TARGET_HAVE_TLS): Define.
7906 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7907 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
7908 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7909 load_tls_operand, microblaze_call_tls_get_addr,
7910 microblaze_legitimize_tls_address): New functions.
7911 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7912 (get_base_reg): Use microblaze_tls_symbol_p.
7913 (microblaze_classify_address): Handle TLS.
7914 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7915 label_mentioned_p and microblaze_tls_referenced_p.
7916 (microblaze_legitimize_address): Handle TLS.
7917 (microblaze_address_insns): Handle ADDRESS_TLS.
7918 (pic_address_needs_scratch): Handle TLS.
7919 (print_operand_address): Handle TLS.
7920 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7921 (microblaze_expand_move): Handle TLS.
7922 (microblaze_legitimate_constant_p): Check
7923 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
7924 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7925 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7926 (PIC_OFFSET_TABLE_REGNUM): Set.
7927 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7928 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7929 (addsi3, movsi_internal2, movdf_internal): Update constraints
7930 * config/microblaze/predicates.md (arith_plus_operand): Define
7931 (move_operand): Redefine as move_src_operand,
7932 check microblaze_tls_referenced_p.
7933
7934 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7935
7936 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7937 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7938
7939 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7940
7941 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7942 CC mode for AND.
7943
7944 2013-03-14 Jakub Jelinek <jakub@redhat.com>
7945
7946 PR tree-optimization/53265
7947 * common.opt (Waggressive-loop-optimizations): New option.
7948 * tree-ssa-loop-niter.c: Include tree-pass.h.
7949 (do_warn_aggressive_loop_optimizations): New function.
7950 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7951 if number_of_latch_executions returned constant.
7952 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7953 early. If number_of_latch_executions returned constant, set
7954 nb_iterations_upper_bound back to it.
7955 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7956 field.
7957 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7958 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7959
7960 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7961 (MULTILIB_OSDIRNAMES): Set.
7962 * genmultilib: If defaultosdirname doesn't start with :: , set
7963 defaultosdirname2 instead, clear it and emit two . multilib_raw
7964 entries instead of just one.
7965
7966 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7967
7968 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7969 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7970 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7971 (SUBTARGET_OVERRIDE_OPTIONS): New.
7972
7973 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7974
7975 PR target/49880
7976 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7977 (musermode): Convert to Var(TARGET_USERMODE).
7978 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7979 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7980 * config/sh/sh.c (sh_option_override): Use
7981 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7982 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7983 condition.
7984 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7985 TARGET_SH4.
7986 (udivsi3_i4_single, divsi3_i4_single): Use
7987 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7988
7989 2013-03-13 Dave Korn <dave.korn.cygwin@....>
7990
7991 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7992 default setting.
7993
7994 2013-03-13 Richard Biener <rguenther@suse.de>
7995
7996 PR tree-optimization/56608
7997 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7998 calls when vectorizing basic-blocks.
7999
8000 2013-03-13 Jakub Jelinek <jakub@redhat.com>
8001
8002 PR plugins/45078
8003 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8004 tm_file.
8005
8006 2013-03-12 Jakub Jelinek <jakub@redhat.com>
8007
8008 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8009
8010 2013-03-11 Jan Hubicka <jh@suse.cz>
8011
8012 PR lto/56557
8013 * lto-streamer-out.c (output_symbol_p): Skip references from
8014 constructors of external variables.
8015
8016 2013-03-11 Jan Hubicka <jh@suse.cz>
8017
8018 PR middle-end/56571
8019 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8020 from pseudos.
8021 * emit-rtl.c (verify_rtx_sharing): Likewise.
8022 (copy_insn_1): Likewise.
8023 * rtl.c (copy_rtx): Likewise.
8024
8025 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
8026
8027 PR target/56591
8028 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8029 output_operand_lossage message.
8030
8031 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
8032
8033 PR target/56470
8034 * arm.c (shift_op): Validate RTL pattern on the fly.
8035 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8036 the RTL.
8037
8038 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8039
8040 PR target/56347
8041 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8042 new call patterns that clobber %fr12.
8043 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8044 split and postreload patterns.
8045 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8046 registers %fr12 and %fr12R as call used.
8047
8048 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8049
8050 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8051 (canon_address, record_store, replace_read, check_mem_read_rtx,
8052 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8053 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8054 rest_of_handle_dse): Likewise.
8055
8056 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8057
8058 PR middle-end/56524
8059 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8060 Add base_optabs.
8061 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8062 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8063 (save_optabs_if_changed): Replace with...
8064 (init_tree_optimization_optabs): ...this.
8065 * optabs.c (save_optabs_if_changed): Rename to...
8066 (init_tree_optimization_optabs): ...this. Take the optimization node
8067 as argument. Do nothing if the base optabs are already correct.
8068 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8069 to recompute optabs.
8070 * function.h (function): Remove optabs field.
8071 * function.c (invoke_set_current_function_hook): Call
8072 init_tree_optimization_optabs. Use the result to initialize
8073 this_fn_optabs.
8074
8075 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
8076
8077 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8078 if GTMA_HAS_NO_INSTRUMENTATION.
8079 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8080 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8081 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8082 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8083 GTMA_HAS_NO_INSTRUMENTATION.
8084
8085 2013-03-08 Jakub Jelinek <jakub@redhat.com>
8086
8087 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8088 libasan_preinit.o.
8089
8090 2013-03-08 Marek Polacek <polacek@redhat.com>
8091 Jakub Jelinek <jakub@redhat.com>
8092
8093 PR tree-optimization/56478
8094 * predict.c (is_comparison_with_loop_invariant_p): Change the
8095 type of loop_step to tree.
8096 (predict_loops): Adjust.
8097 (predict_iv_comparison): Perform the computations on double_ints.
8098
8099 2013-03-08 Richard Biener <rguenther@suse.de>
8100
8101 PR tree-optimization/56570
8102 * tree-cfg.c (verify_expr_location_1): Verify locations for
8103 DECL_DEBUG_EXPR.
8104 * tree-sra.c (create_access_replacement): Strip locations
8105 from DECL_DEBUG_EXPRs.
8106
8107 2013-03-08 Richard Biener <rguenther@suse.de>
8108
8109 * tree-inline.c (expand_call_inline): Do not associate
8110 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8111 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8112
8113 2013-03-08 Richard Biener <rguenther@suse.de>
8114
8115 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8116 or block changes with -Og. Fix for location / block encoding
8117 changes and PHI arguments with locations.
8118
8119 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8120
8121 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8122 for all counters.
8123 (struct output_info): Likewise.
8124 (register_overhead): Remove bad gcc_assert.
8125 (bitmap_find_bit): If there is only a single bitmap element, do not
8126 count a miss as a search.
8127 (print_statistics): Update for counter type changes.
8128 (dump_bitmap_statistics): Likewise. Print headers such that they
8129 are properly lined up with the printed counters.
8130
8131 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8132
8133 PR tree-optimization/56559
8134 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8135 check that it has only a single use.
8136
8137 2013-03-07 Richard Biener <rguenther@suse.de>
8138
8139 * doc/invoke.texi (fwhole-program): Discourage use in combination
8140 with -flto.
8141
8142 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8143
8144 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8145
8146 PR tree-optimization/56539
8147 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8148 instead of GSI_CONTINUE_LINKING as last argument to
8149 force_gimple_operand_gsi. Adjust function comment.
8150
8151 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8152 aarch64-cores.def.
8153
8154 PR middle-end/56548
8155 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8156 promoted mode, convert the result back to the original mode.
8157
8158 2013-03-06 Richard Biener <rguenther@suse.de>
8159
8160 PR middle-end/56294
8161 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8162 (insert_updated_phi_nodes_compare_uids): New function.
8163 (update_ssa): Sort symbols_to_rename after UID before
8164 traversing it to insert PHI nodes.
8165
8166 2013-03-06 Richard Biener <rguenther@suse.de>
8167
8168 PR middle-end/50494
8169 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8170 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8171
8172 Revert
8173 2013-02-13 Richard Biener <rguenther@suse.de>
8174
8175 PR lto/50494
8176 * varasm.c (output_constant_def_1): Get the decl representing
8177 the constant as argument.
8178 (output_constant_def): Wrap output_constant_def_1.
8179 (make_decl_rtl): Use output_constant_def_1 with the decl
8180 representing the constant.
8181 (build_constant_desc): Optionally re-use a decl already
8182 representing the constant.
8183 (tree_output_constant_def): Adjust.
8184
8185 2013-03-06 Joey Ye <joey.ye@arm.com>
8186
8187 PR lto/50293
8188 * gcc.c (convert_white_space): New function.
8189 (main): Handles white space in function name.
8190
8191 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8192
8193 PR target/56529
8194 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8195 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8196 to SH_DIV_CALL_TABLE for TARGET_SH2.
8197 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8198 list.
8199 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8200 call-table options.
8201
8202 2013-03-05 Sterling Augustine <saugustine@google.com>
8203 Cary Coutant <ccoutant@google.com>
8204
8205 PR debug/55364
8206 * dwarf2out.c (resolve_addr): Don't call
8207 remove_loc_list_addr_table_entries a second time for the same
8208 expression.
8209
8210 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8211
8212 PR debug/56510
8213 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8214 (avoid_complex_debug_insns): New function.
8215 (expand_debug_locations): Call it.
8216
8217 PR rtl-optimization/56484
8218 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8219 lifetimes of hard registers on small register class machines.
8220
8221 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8222
8223 * config/microblaze/microblaze-protos.h: Rename
8224 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8225 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8226 fast_interrupt.
8227 (microblaze_fast_interrupt_function_p): New function.
8228 (microblaze_is_interrupt_handler): Rename to
8229 microblaze_is_interrupt_variant and add fast_interrupt check.
8230 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8231 (save_restore_insns): Likewise.
8232 (compute_frame_size): Likewise.
8233 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8234 (microblaze_globalize_label): Likewise.
8235 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8236 * config/microblaze/microblaze.md: Use wrapper
8237 microblaze_is_interrupt_variant.
8238
8239 2013-03-05 Kai Tietz <ktietz@redhat.com>
8240
8241 * sdbout.c (sdbout_one_type): Switch to current function's section
8242 supporting cold/hot.
8243
8244 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8245
8246 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8247 -mxl-reorder.
8248
8249 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8250
8251 PR middle-end/56461
8252 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8253 if VALGRIND_GET_VBITS is defined, temporarily make object
8254 memory all defined, and restore previous valgrind addressability
8255 and definability afterwards. Free this_object at the end.
8256
8257 PR middle-end/56461
8258 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8259 right before calling lra_create_live_ranges, also call it
8260 when clearing live_p. Only call lra_clear_live_ranges
8261 at the end if live_p.
8262
8263 PR middle-end/56461
8264 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8265
8266 2013-03-05 Richard Biener <rguenther@suse.de>
8267
8268 PR tree-optimization/56521
8269 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8270 value-id.
8271
8272 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8273
8274 PR c++/55135
8275 * except.h (remove_unreachable_eh_regions): New prototype.
8276 * except.c (remove_eh_handler_splicer): New function, split out
8277 of remove_eh_handler.
8278 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8279 warning about running it on many EH regions one at a time.
8280 (remove_unreachable_eh_regions_worker): New function, walk the
8281 EH tree in depth-first order and remove non-marked regions.
8282 (remove_unreachable_eh_regions): New function.
8283 * tree-eh.c (mark_reachable_handlers): New function, split out
8284 from remove_unreachable_handlers.
8285 (remove_unreachable_handlers): Use mark_reachable_handlers and
8286 remove_unreachable_eh_regions.
8287 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8288 and remove_unreachable_eh_regions.
8289
8290 2013-03-05 Richard Biener <rguenther@suse.de>
8291
8292 PR middle-end/56525
8293 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8294 not freeing them until the end.
8295
8296 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8297
8298 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8299
8300 2013-03-05 Richard Biener <rguenther@suse.de>
8301
8302 PR tree-optimization/56270
8303 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8304 of loads after scheduling an SLP instance.
8305
8306 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8307
8308 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8309 tic6x.exp.
8310 (check_gcc_parallelize): Run guality.exp as a separate job from
8311 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8312 struct-layout-1.exp with stackalign.exp.
8313
8314 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8315
8316 PR middle-end/56461
8317 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8318 load_index sbitmap even if some bit in it isn't set.
8319
8320 PR middle-end/56461
8321 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8322 (discover_iteration_bound_by_body_walk): Change queues to
8323 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8324 spelling in comment. Call safe_push on queues[bound_index] directly.
8325 Release queues[queue_index] in every iteration unconditionally.
8326 Release bounds vector.
8327
8328 PR middle-end/56461
8329 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8330 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8331 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8332 inner_phis vector.
8333
8334 2013-03-05 Richard Biener <rguenther@suse.de>
8335
8336 PR lto/56515
8337 * tree-inline.c (remap_blocks_to_null): New function.
8338 (expand_call_inline): When expanding a call stmt without
8339 an associated block inline remap all callee blocks to NULL.
8340
8341 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8342
8343 PR rtl-optimization/56494
8344 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8345 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8346 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8347
8348 PR middle-end/56461
8349 * sel-sched-ir.c (free_sched_pools): Release
8350 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8351 if succs_info_pool.max_top isn't -1.
8352
8353 PR bootstrap/56509
8354 * opts.c (opts_obstack, opts_concat): Moved to...
8355 * opts-common.c (opts_obstack, opts_concat): ... here.
8356
8357 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8358
8359 PR middle-end/56461
8360 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8361
8362 2013-03-04 Martin Jambor <mjambor@suse.cz>
8363
8364 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8365 all appropriate places.
8366
8367 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8368
8369 PR tree-optimization/56424
8370 * ipa-split.c (split_function): Do not set the RSO flag if result is
8371 not by reference and its type is a register type.
8372
8373 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8374
8375 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8376 (microblaze_legitimate_pic_operand): Likewise
8377 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8378 new function microblaze_legitimate_pic_operand
8379 * config/microblaze/microblaze-protos.h
8380 (microblaze_legitimate_pic_operand): Declare.
8381
8382 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8383
8384 * config/microblaze/predicates.md (call_insn_simple_operand):
8385 New predicate for supported rtx code types.
8386 * config/microblaze/microblaze.md (call_internal1): Use
8387 call_insn_simple_operand predicate.
8388
8389 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8390
8391 PR middle-end/56461
8392 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8393 partitions.ordered_remove.
8394
8395 PR middle-end/56461
8396 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8397 vec_oprnds0.create (1) for modifier == NONE.
8398
8399 PR middle-end/56461
8400 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8401 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8402 vec_oprnds1 right before pushing anything to it for
8403 scalar_shift_arg.
8404
8405 PR middle-end/56461
8406 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8407 set nbbs to 0 instead of having separate code path.
8408 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8409 instead of false as last argument if returning NULL.
8410
8411 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8412
8413 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8414 the attribute is now called "target" instead of "option".
8415 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8416 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8417 attribute/pragma name for TARGET_OPTION_VALID_P and
8418 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8419 * doc/tm.texi: Regenerated.
8420
8421 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8422
8423 * config/microblaze/microblaze.c:
8424 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8425 * config/microblaze/microblaze.h: Add -mxl-reorder to
8426 DRIVER_SELF_SPECS.
8427 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8428 instructions emitted if TARGET_REORDER.
8429 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8430 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8431 separately.
8432
8433 2013-03-01 Xinliang David Li <davidxl@google.com>
8434
8435 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8436 walk length.
8437
8438 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8439
8440 PR middle-end/56461
8441 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8442 vector even when returning true. Fix up function comment formatting.
8443
8444 PR middle-end/56461
8445 * ira-build.c (ira_loop_nodes_count): New variable.
8446 (create_loop_tree_nodes): Initialize it.
8447 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8448
8449 PR middle-end/56461
8450 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8451 method on dr_chain and result_chain.
8452 * tree-vect-stmts.c (vectorizable_store): Only call
8453 result_chain.create if j == 0.
8454
8455 PR middle-end/56461
8456 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8457 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8458 before overwriting it.
8459
8460 2013-03-01 Tobias Burnus <burnus@net-b.de>
8461
8462 * doc/extended.texi (C Extensions): Change order in @menu
8463 to match @node.
8464 (Other MIPS Built-in Functions): Move last MIPS entry before
8465 "picoChip Built-in Functions".
8466 (SH Built-in Functions): Move after RX Built-in Functions.
8467 * doc/gcc.texi (Introduction): Change order in @menu
8468 to match @node.
8469 * doc/md.texi (Constraints): Ditto.
8470 * gty.texi (Type Information): Ditto.
8471 (User-provided marking routines for template types): Make
8472 subsection.
8473 * doc/invoke.texi (AArch64 Options): Move before
8474 "Adapteva Epiphany Options".
8475
8476 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8477 Jakub Jelinek <jakub@redhat.com>
8478
8479 PR sanitizer/56454
8480 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8481 no_address_safety_analysis attribute.
8482 * doc/extend.texi (no_address_safety_attribute): Rename to
8483 no_sanitize_address attribute, mention no_address_safety_analysis
8484 attribute as deprecated alias.
8485
8486 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8487
8488 PR middle-end/56461
8489 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8490 type to vec<vec<tree> > *.
8491 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8492 to be vec<tree> instead of vec<tree> *, set vec_defs
8493 to vNULL and call vec_defs.create (number_of_vects), adjust other
8494 uses of vec_defs.
8495 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8496 vectorizable_condition): Adjust vect_get_slp_defs callers.
8497
8498 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8499
8500 * config/aarch64/aarch64.c
8501 (aarch64_float_const_representable): Remove unused variable.
8502
8503 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8504
8505 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8506
8507 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8508
8509 * config/aarch64/aarch64-builtins.c
8510 (aarch64_init_simd_builtins): Make static.
8511
8512 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8513
8514 * config/aarch64/aarch64.c
8515 (aarch64_simd_make_constant): Make static.
8516
8517 2013-02-28 Martin Jambor <mjambor@suse.cz>
8518
8519 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8520 with no initialization to the RHS of debug statements.
8521
8522 2013-02-28 Martin Jambor <mjambor@suse.cz>
8523
8524 PR tree-optimization/56294
8525 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8526 Adjust dumping.
8527 (get_access_replacement): Do not call create_access_replacement.
8528 Assert a replacement exists.
8529 (get_repl_default_def_ssa_name): Create the replacement declaration
8530 itself.
8531
8532 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8533
8534 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8535 final_end_function.
8536
8537 2013-02-28 Marek Polacek <polacek@redhat.com>
8538
8539 PR rtl-optimization/56466
8540 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8541 if we're changing a loop.
8542 (peel_loops_completely): Likewise.
8543
8544 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8545
8546 PR c++/55813
8547 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8548
8549 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8550
8551 PR target/56445
8552 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8553 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8554 INTX_FTYPE_FX, FX_FTYPE_INTX.
8555 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8556
8557 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8558
8559 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8560 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8561 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8562 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8563 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8564 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8565 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8566 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8567 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8568 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8569 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8570 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8571 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8572 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8573 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8574 (avrxmega6): Increase max flash segments from 5 to 6.
8575 * config/avr/t-multilib: Regenerate.
8576 * config/avr/avr-tables.opt: Regenerate.
8577 * doc/avr-mmcu.texi: Regenerate.
8578
8579 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8580
8581 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8582 (avr_device_to_arch): Rename to avr_device_to_ld.
8583 (avr_device_to_as): New prototype.
8584 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8585 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8586 * config/avr/driver-avr.c (avr_device_to_as): New.
8587 (avr_device_to_arch): Rename to avr_device_to_ld.
8588
8589 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8590
8591 PR middle-end/56461
8592 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8593 method on dr_chain and result_chain.
8594
8595 PR middle-end/56461
8596 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8597 pointer_set_destroy on not_executed_last_iteration.
8598
8599 PR middle-end/56461
8600 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8601
8602 PR middle-end/56461
8603 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8604 FOR_EACH_DEFINED_FUNCTION when freeing state.
8605
8606 PR middle-end/56461
8607 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8608 pool_free.
8609 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8610 overwriting it.
8611
8612 PR middle-end/56461
8613 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8614 known_aggs[i].items and release known_aggs vector.
8615
8616 PR middle-end/56461
8617 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8618
8619 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8620
8621 * config/microblaze/microblaze.c (microblaze_emit_compare):
8622 Use xor for EQ/NE comparisions.
8623 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8624 (cbranchsf4): Adjust operator to comparison_operator.
8625
8626 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8627
8628 PR middle-end/56461
8629 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8630 vector.
8631 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8632 vec_safe_push, always update *slot.
8633 (redirect_edge_var_map_clear): Use vec_free.
8634 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8635 (free_var_map_entry): Use vec_free.
8636 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8637 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8638
8639 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
8640
8641 PR middle-end/45472
8642 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8643 when the may_trap_p bit of the exprs being merged differs.
8644 Reorder tests for speculativeness in the logical and operator.
8645
8646 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8647
8648 * incpath.c (add_standard_paths): Use reconcat instead of concat
8649 where appropriate and avoid leaking memory.
8650
8651 * opts.h: Include obstack.h.
8652 (opts_concat): New prototype.
8653 (opts_obstack): New declaration.
8654 * opts.c (opts_concat): New function.
8655 (opts_obstack): New variable.
8656 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8657 (finish_options): Use opts_concat instead of concat
8658 and XOBNEWVEC instead of XNEWVEC.
8659 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8660 generate_option): Likewise.
8661 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8662 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8663
8664 PR target/56455
8665 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8666 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8667
8668 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8669
8670 PR middle-end/56461
8671 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8672
8673 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8674
8675 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8676 (arm_block_move_unaligned_straight): Likewise.
8677 (arm_adjust_block_mem): Likewise.
8678
8679 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8680
8681 PR target/48901
8682 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8683 temp, cond and label.
8684 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8685
8686 PR target/52500
8687 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8688 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8689
8690 PR target/52501
8691 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8692 of prologue/epilogue functions.
8693
8694 PR target/52550
8695 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8696 Remove unused variable cfa_offset.
8697 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8698
8699 PR target/54639
8700 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8701 type promotion to unsigned.
8702
8703 PR target/54640
8704 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8705 for HOST_WIDE_INT of 32 bit / same size as int.
8706 (arm_block_move_unaligned_straight): Likewise.
8707 (arm_adjust_block_mem): Likewise.
8708
8709 PR target/54662
8710 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8711 ALL_CFLAGS.
8712
8713 2013-02-26 Marek Polacek <polacek@redhat.com>
8714
8715 PR tree-optimization/56426
8716 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
8717
8718 2013-02-26 Richard Biener <rguenther@suse.de>
8719
8720 PR target/56444
8721 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8722 unused variable loops.
8723
8724 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8725
8726 PR tree-optimization/56448
8727 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8728 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8729 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8730 later operands of the references, or even first operand for
8731 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8732
8733 PR tree-optimization/56443
8734 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8735 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8736 to type_for_mode langhook.
8737
8738 2013-02-25 Matt Turner <mattst88@gmail.com>
8739
8740 * doc/invoke.texi: Document r4700.
8741
8742 2013-02-25 Richard Biener <rguenther@suse.de>
8743
8744 PR tree-optimization/56175
8745 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8746 split out from ...
8747 (simplify_bitwise_binary): ... here. Also guard the conversion
8748 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8749
8750 2013-02-25 Catherine Moore <clm@codesourcery.com>
8751
8752 Revert:
8753 2013-02-24 Catherine Moore <clm@codesourcery.com>
8754 Maciej W. Rozycki <macro@codesourcery.com>
8755 Tom de Vries <tom@codesourcery.com>
8756 Nathan Sidwell <nathan@codesourcery.com>
8757 Iain Sandoe <iain@codesourcery.com>
8758 Nathan Froyd <froydnj@codesourcery.com>
8759 Chao-ying Fu <fu@mips.com>
8760
8761 * doc/extend.texi: (micromips, nomicromips, nocompression):
8762 Document new function attributes.
8763 * doc/invoke.texi (minterlink-compressed, mmicromips,
8764 m14k, m14ke, m14kec): Document new options.
8765 (minterlink-mips16): Update documentation.
8766 * doc/md.texi (ZC, ZD): Document new constraints.
8767 * configure.ac (gcc_cv_as_micromips): Check if linker
8768 supports the .set micromips directive.
8769 * configure: Regenerate.
8770 * config.in: Regenerate.
8771 * config/mips/mips-tables.opt: Regenerate.
8772 * config/mips/micromips.md: New file.
8773 * constraints.md (ZC, AD): New constraints.
8774 * config/mips/predicates.md (movep_src_register): New predicate.
8775 (movep_src_operand): New predicate.
8776 (non_volatile_mem_operand): New predicate.
8777 * config/mips/mips.md (multimem): New type.
8778 (length): Differentiate between 17-bit and 18-bit branch offsets.
8779 (MOVEP1, MOVEP2): New mode iterator.
8780 (mov_<load>l): Use ZC constraint.
8781 (mov_<load>r): Likewise.
8782 (mov_<store>l): Likewise.
8783 (mov_<store>r): Likewise.
8784 (*branch_equality<mode>_inverted): Add microMIPS support.
8785 (*branch_equality<mode>): Likewise.
8786 (*jump_absolute): Likewise.
8787 (indirect_jump_<mode>): Likewise.
8788 (tablejump_<mode>): Likewise.
8789 (<optab>_internal): Likewise.
8790 (sibcall_internal): Likewise.
8791 (sibcall_value_internal): Likewise.
8792 (prefetch): Use constraint ZD.
8793 * config/mips/mips.opt (minterlink-compressed): New option.
8794 (minterlink-mips16): Now an alias for minterlink-compressed.
8795 (mmicromips): New option.
8796 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8797 (compare_and_swap_12): Likewise.
8798 (sync_add<mode>): Likewise.
8799 (sync_<optab>_12): Likewise.
8800 (sync_old_<optab>_12): Likewise.
8801 (sync_new_<optab>_12): Likewise.
8802 (sync_nand_12): Likewise.
8803 (sync_old_nand_12): Likewise.
8804 (sync_new_nand_12): Likewise.
8805 (sync_sub<mode>): Likewise.
8806 (sync_old_add<mode>): Likewise.
8807 (sync_old_sub<mode>): Likewise.
8808 (sync_new_add<mode>): Likewise.
8809 (sync_new_sub<mode>): Likewise.
8810 (sync_<optab><mode>): Likewise.
8811 (sync_old_<optab><mode>): Likewise.
8812 (sync_new_<optab><mode>): Likewise.
8813 (sync_nand<mode>): Likewise.
8814 (sync_old_nand<mode>): Likewise.
8815 (sync_new_nand<mode>): Likewise.
8816 (sync_lock_test_and_set<mode>): Likewise.
8817 (test_and_set_12): Likewise.
8818 (atomic_compare_and_swap<mode>): Likewise.
8819 (atomic_exchange<mode>_llsc): Likewise.
8820 (atomic_fetch_add<mode>_llsc): Likewise.
8821 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8822 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8823 (umips_save_restore_pattern_p): Likewise.
8824 (umips_load_store_pair_p): Likewise.
8825 (umips_output_load_store_pair): Likewise.
8826 (umips_movep_target_p): Likewise.
8827 (umips_12bit_offset_address_p): Likewise.
8828 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8829 (mips_base_mips16): Rename this...
8830 (mips_base_compression_flags): ...to this. Update all uses.
8831 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8832 (mips_mips16_decl_p): Delete.
8833 (mips_nomips16_decl_p): Delete.
8834 (mips_get_compress_on_flags): New function.
8835 (mips_get_compress_off_flags): New function.
8836 (mips_get_compress_mode): New function.
8837 (mips_get_compress_on_name): New function.
8838 (mips_get_compress_off_name): New function.
8839 (mips_insert_attributes): Support multiple compression types.
8840 (mips_merge_decl_attributes): Likewise.
8841 (umips_12bit_offset_address_p): New function.
8842 (mips_start_function_definition): Emit .set micromips directive.
8843 (mips_call_may_need_jalx_p): New function.
8844 (mips_function_ok_for_sibcall): Add microMIPS support.
8845 (mips_print_operand_punctuation): Support short delay slots and
8846 compact jumps.
8847 (umips_swm_mask, umips_swm_encoding): New.
8848 (umips_build_save_restore): New function.
8849 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8850 (was_mips16_p): Remove.
8851 (old_compression_mode): New.
8852 (mips_set_compression_mode): New function.
8853 (mips_set_current_function): Add microMIPS support.
8854 (mips_option_override): Likewise.
8855 (umips_save_restore_pattern_p): New function.
8856 (umips_output_save_restore): New function.
8857 (umips_load_store_pair_p_1): New function.
8858 (umips_load_store_pair_p): New function.
8859 (umips_output_load_store_pair_1): New function.
8860 (umips_output_load_store_pair): New function.
8861 (umips_movep_target_p) New function.
8862 (mips_prepare_pch_save): Add microMIPS support.
8863 * config/mips/mips.h (TARGET_COMPRESSION): New.
8864 (TARGET_CPU_CPP_BUILTINS): Update macro
8865 to use new compression flags and to support microMIPS.
8866 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8867 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8868 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8869 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8870 (ASM_SPEC): Support mmicromips and mno-micromips.
8871 (M16STORE_REG_P): New macro.
8872 (MIPS_CALL): Support TARGET_MICROMIPS.
8873 (MICROMIPS_J): New macro.
8874 (mips_base_mips16): Rename this...
8875 (mips_base_compression_flags): ...to this.
8876 (UMIPS_12BIT_OFFSET_P): New macro.
8877 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8878 (MULTILIB_DIRNAMES): Likewise.
8879
8880 2013-02-25 Tom de Vries <tom@codesourcery.com>
8881
8882 PR rtl-optimization/56131
8883 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8884 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8885 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8886
8887 2013-02-25 Tobias Burnus <burnus@net-b.de>
8888
8889 * doc/invoke.texi (-fsanitize=): Move from optimization
8890 to debugging options.
8891
8892 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8893
8894 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8895
8896 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8897 Alexander Monakov <amonakov@ispras.ru>
8898
8899 PR middle-end/56077
8900 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8901 flush pending lists also on non-jumps. Adjust comment.
8902
8903 2013-02-24 Catherine Moore <clm@codesourcery.com>
8904 Maciej W. Rozycki <macro@codesourcery.com>
8905 Tom de Vries <tom@codesourcery.com>
8906 Nathan Sidwell <nathan@codesourcery.com>
8907 Iain Sandoe <iain@codesourcery.com>
8908 Nathan Froyd <froydnj@codesourcery.com>
8909 Chao-ying Fu <fu@mips.com>
8910
8911 * doc/extend.texi: (micromips, nomicromips, nocompression):
8912 Document new function attributes.
8913 * doc/invoke.texi (minterlink-compressed, mmicromips,
8914 m14k, m14ke, m14kec): Document new options.
8915 (minterlink-mips16): Update documentation.
8916 * doc/md.texi (ZC, ZD): Document new constraints.
8917 * configure.ac (gcc_cv_as_micromips): Check if linker
8918 supports the .set micromips directive.
8919 * configure: Regenerate.
8920 * config.in: Regenerate.
8921 * config/mips/mips-tables.opt: Regenerate.
8922 * config/mips/micromips.md: New file.
8923 * constraints.md (ZC, AD): New constraints.
8924 * config/mips/predicates.md (movep_src_register): New predicate.
8925 (movep_src_operand): New predicate.
8926 (non_volatile_mem_operand): New predicate.
8927 * config/mips/mips.md (multimem): New type.
8928 (length): Differentiate between 17-bit and 18-bit branch offsets.
8929 (MOVEP1, MOVEP2): New mode iterator.
8930 (mov_<load>l): Use ZC constraint.
8931 (mov_<load>r): Likewise.
8932 (mov_<store>l): Likewise.
8933 (mov_<store>r): Likewise.
8934 (*branch_equality<mode>_inverted): Add microMIPS support.
8935 (*branch_equality<mode>): Likewise.
8936 (*jump_absolute): Likewise.
8937 (indirect_jump_<mode>): Likewise.
8938 (tablejump_<mode>): Likewise.
8939 (<optab>_internal): Likewise.
8940 (sibcall_internal): Likewise.
8941 (sibcall_value_internal): Likewise.
8942 (prefetch): Use constraint ZD.
8943 * config/mips/mips.opt (minterlink-compressed): New option.
8944 (minterlink-mips16): Now an alias for minterlink-compressed.
8945 (mmicromips): New option.
8946 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8947 (compare_and_swap_12): Likewise.
8948 (sync_add<mode>): Likewise.
8949 (sync_<optab>_12): Likewise.
8950 (sync_old_<optab>_12): Likewise.
8951 (sync_new_<optab>_12): Likewise.
8952 (sync_nand_12): Likewise.
8953 (sync_old_nand_12): Likewise.
8954 (sync_new_nand_12): Likewise.
8955 (sync_sub<mode>): Likewise.
8956 (sync_old_add<mode>): Likewise.
8957 (sync_old_sub<mode>): Likewise.
8958 (sync_new_add<mode>): Likewise.
8959 (sync_new_sub<mode>): Likewise.
8960 (sync_<optab><mode>): Likewise.
8961 (sync_old_<optab><mode>): Likewise.
8962 (sync_new_<optab><mode>): Likewise.
8963 (sync_nand<mode>): Likewise.
8964 (sync_old_nand<mode>): Likewise.
8965 (sync_new_nand<mode>): Likewise.
8966 (sync_lock_test_and_set<mode>): Likewise.
8967 (test_and_set_12): Likewise.
8968 (atomic_compare_and_swap<mode>): Likewise.
8969 (atomic_exchange<mode>_llsc): Likewise.
8970 (atomic_fetch_add<mode>_llsc): Likewise.
8971 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8972 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8973 (umips_save_restore_pattern_p): Likewise.
8974 (umips_load_store_pair_p): Likewise.
8975 (umips_output_load_store_pair): Likewise.
8976 (umips_movep_target_p): Likewise.
8977 (umips_12bit_offset_address_p): Likewise.
8978 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8979 (mips_base_mips16): Rename this...
8980 (mips_base_compression_flags): ...to this. Update all uses.
8981 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8982 (mips_mips16_decl_p): Delete.
8983 (mips_nomips16_decl_p): Delete.
8984 (mips_get_compress_on_flags): New function.
8985 (mips_get_compress_off_flags): New function.
8986 (mips_get_compress_mode): New function.
8987 (mips_get_compress_on_name): New function.
8988 (mips_get_compress_off_name): New function.
8989 (mips_insert_attributes): Support multiple compression types.
8990 (mips_merge_decl_attributes): Likewise.
8991 (umips_12bit_offset_address_p): New function.
8992 (mips_start_function_definition): Emit .set micromips directive.
8993 (mips_call_may_need_jalx_p): New function.
8994 (mips_function_ok_for_sibcall): Add microMIPS support.
8995 (mips_print_operand_punctuation): Support short delay slots and
8996 compact jumps.
8997 (umips_swm_mask, umips_swm_encoding): New.
8998 (umips_build_save_restore): New function.
8999 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9000 (was_mips16_p): Remove.
9001 (old_compression_mode): New.
9002 (mips_set_compression_mode): New function.
9003 (mips_set_current_function): Add microMIPS support.
9004 (mips_option_override): Likewise.
9005 (umips_save_restore_pattern_p): New function.
9006 (umips_output_save_restore): New function.
9007 (umips_load_store_pair_p_1): New function.
9008 (umips_load_store_pair_p): New function.
9009 (umips_output_load_store_pair_1): New function.
9010 (umips_output_load_store_pair): New function.
9011 (umips_movep_target_p) New function.
9012 (mips_prepare_pch_save): Add microMIPS support.
9013 * config/mips/mips.h (TARGET_COMPRESSION): New.
9014 (TARGET_CPU_CPP_BUILTINS): Update macro
9015 to use new compression flags and to support microMIPS.
9016 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9017 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9018 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9019 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9020 (ASM_SPEC): Support mmicromips and mno-micromips.
9021 (M16STORE_REG_P): New macro.
9022 (MIPS_CALL): Support TARGET_MICROMIPS.
9023 (MICROMIPS_J): New macro.
9024 (mips_base_mips16): Rename this...
9025 (mips_base_compression_flags): ...to this.
9026 (UMIPS_12BIT_OFFSET_P): New macro.
9027 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9028 (MULTILIB_DIRNAMES): Likewise.
9029
9030 2013-02-24 Jakub Jelinek <jakub@redhat.com>
9031
9032 PR target/52555
9033 * target-globals.c (save_target_globals): For init_reg_sets and
9034 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9035
9036 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9037
9038 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9039 * config/aarch64/t-aarch64
9040 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9041
9042 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9043
9044 PR inline-asm/56148
9045 * lra-constraints.c (process_alt_operands): Reload operand
9046 conflicting with earlier clobber only if no more other conflicting
9047 operands.
9048
9049 2013-02-22 Jakub Jelinek <jakub@redhat.com>
9050
9051 PR sanitizer/56393
9052 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9053 if not linking a shared library.
9054
9055 2013-02-22 Seth LaForge <sethml@google.com>
9056
9057 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9058
9059 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9060
9061 * config/arm/arm.md (split for extendsidi): Update condition.
9062 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9063 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9064 (qhs_zextenddi_cstr): Likewise.
9065
9066 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9067
9068 PR middle-end/56420
9069 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9070 avoid signed wrapping.
9071 (expand_mult): Handle properly multiplication by
9072 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9073 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9074 in the compiler if coeff is HOST_WIDE_INT_MIN.
9075 (expand_divmod): Don't make ext_op1 static, change it's type to
9076 uhwi. Avoid undefined behavior in -INTVAL (op1).
9077
9078 PR rtl-optimization/50339
9079 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9080 field.
9081 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9082 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9083 into splitting_ashiftrt field.
9084 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9085 ASHIFTRT.
9086 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9087 choices.
9088
9089 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
9090
9091 PR middle-end/56108
9092 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9093 are sure to go irrevocable.
9094
9095 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
9096
9097 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9098 scalars are valid operands.
9099
9100 2013-02-21 Martin Jambor <mjambor@suse.cz>
9101
9102 PR tree-optimization/56310
9103 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9104 only matching indices and non-negative final offsets.
9105 (intersect_aggregates_with_edge): Pass src_idx to
9106 agg_replacements_to_vector. Pass src_idx insstead of index to
9107 intersect_with_agg_replacements.
9108
9109 2013-02-21 Martin Jambor <mjambor@suse.cz>
9110
9111 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9112 instead of hard-wired defaults.
9113
9114 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9115
9116 * doc/invoke.texi (MIPS Options): Update documentation of the
9117 floating-point multiply-accumulate instruction restrictions.
9118
9119 2013-02-21 Kostya Serebryany <kcc@google.com>
9120
9121 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9122 asan_shadow_offset on x86_64 linux.
9123
9124 2013-02-21 Richard Biener <rguenther@suse.de>
9125
9126 PR tree-optimization/56415
9127 Revert
9128 2013-02-11 Richard Biener <rguenther@suse.de>
9129
9130 PR tree-optimization/56273
9131 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9132 first VRP run.
9133
9134 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9135
9136 PR bootstrap/56258
9137 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9138 instead of @itemx.
9139
9140 PR inline-asm/56405
9141 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9142 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9143
9144 2013-02-20 Jan Hubicka <jh@suse.cz>
9145
9146 PR tree-optimization/56265
9147 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9148 when target is referenced for first time.
9149
9150 2013-02-20 Richard Biener <rguenther@suse.de>
9151
9152 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9153 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9154 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9155 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9156 not return anything.
9157 (rename_ssa_copies): Do not remove unused locals.
9158 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9159 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9160 * passes.c (execute_function_todo): Do not schedule unused locals
9161 removal if cleanup_tree_cfg did something.
9162 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9163 about the number of removed locals.
9164
9165 2013-02-20 Richard Biener <rguenther@suse.de>
9166
9167 PR tree-optimization/56398
9168 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9169
9170 2013-02-20 Martin Jambor <mjambor@suse.cz>
9171
9172 PR tree-optimization/55334
9173 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9174 restricted pointers to arrays.
9175
9176 2013-02-20 Richard Biener <rguenther@suse.de>
9177 Jakub Jelinek <jakub@redhat.com>
9178
9179 PR tree-optimization/56396
9180 * tree-ssa-ccp.c (n_const_val): New static variable.
9181 (get_value): Return NULL for SSA names we don't have a lattice
9182 entry for.
9183 (ccp_initialize): Initialize n_const_val.
9184 * tree-ssa-copy.c (n_copy_of): New static variable.
9185 (init_copy_prop): Initialize n_copy_of.
9186 (get_value): Return NULL_TREE for SSA names we don't have a
9187 lattice entry for.
9188
9189 2013-02-20 Martin Jambor <mjambor@suse.cz>
9190
9191 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9192
9193 2013-02-20 Richard Biener <rguenther@suse.de>
9194
9195 * genpreds.c (write_lookup_constraint): Do not compare first
9196 letter of the constraint again.
9197
9198 2013-02-20 Richard Biener <rguenther@suse.de>
9199
9200 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9201 and ceil_log2.
9202 (get_use_iv_cost): Terminate hashtable walk when coming across
9203 an empty entry.
9204
9205 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9206
9207 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9208 reassociation for avx2 targets.
9209
9210 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9211
9212 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9213 Add version check for v8.10.a to enable microblaze_has_clz
9214 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9215 version and TARGET_PATTERN_COMPARE check
9216 * config/microblaze/microblaze.md: New clzsi2 instruction
9217
9218 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9219
9220 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9221 function before branching.
9222
9223 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9224
9225 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9226 DUMP_INSN_RTX_UID.
9227 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9228
9229 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9230
9231 PR middle-end/55889
9232 * sel-sched.c: Include ira.h.
9233 (implicit_clobber_conflict_p): New function.
9234 (moveup_expr): Use it.
9235 * Makefile.in (sel-sched.o): Depend on ira.h.
9236
9237 2013-02-19 Richard Biener <rguenther@suse.de>
9238
9239 PR tree-optimization/56384
9240 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9241 (vn_hash_type): Split out from ...
9242 (vn_hash_constant_with_type): ... here.
9243 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9244 (vn_phi_eq): Compare types from vn_phi_s structure.
9245 (vn_phi_lookup): Populate vn_phi_s type.
9246 (vn_phi_insert): Likewise.
9247
9248 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9249
9250 PR tree-optimization/56350
9251 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9252 if haven't found reduction or nested cycle operand, rather than
9253 asserting we must find it.
9254
9255 PR tree-optimization/56381
9256 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9257 to fold_build3.
9258
9259 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9260 Jakub Jelinek <jakub@redhat.com>
9261
9262 PR target/52555
9263 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9264 (swap_optab_enable): Same.
9265 (init_all_optabs): Use argument instead of global.
9266 * tree.h (struct tree_optimization_option): New field target_optabs.
9267 * expr.h (init_all_optabs): Add argument to prototype.
9268 (TREE_OPTIMIZATION_OPTABS): New.
9269 (save_optabs_if_changed): Protoize.
9270 * optabs.h: Declare this_fn_optabs.
9271 * optabs.c (save_optabs_if_changed): New.
9272 Declare this_fn_optabs.
9273 (init_optabs): Add argument to init_all_optabs() call.
9274 * function.c (invoke_set_current_function_hook): Handle per
9275 function optabs.
9276 * function.h (struct function): New field optabs.
9277 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9278 optimization_current_node has changed.
9279 * target-globals.h (save_target_globals_default_opts): Protoize.
9280 * target-globals.c (save_target_globals_default_opts): New.
9281
9282 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9283
9284 PR target/56347
9285 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9286 registers %fr12 and %fr12R as call used.
9287
9288 PR target/56214
9289 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9290 and HImode, require all displacements to be an integer multiple of
9291 their mode size.
9292 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9293 only allow QImode and HImode when reload is in progress and strict is
9294 true. Likewise for symbolic addresses. Use base14_operand to check
9295 displacements in REG+BASE addresses.
9296
9297 2013-02-18 Richard Biener <rguenther@suse.de>
9298
9299 PR tree-optimization/56366
9300 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9301 handle sign-conversion of outer-loop initial induction value.
9302
9303 2013-02-18 Richard Biener <rguenther@suse.de>
9304
9305 PR middle-end/56349
9306 * cfghooks.c (merge_blocks): If we merge a latch into another
9307 block adjust references to it.
9308 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9309 (verify_loop_structure): Verify that a recorded latch is in fact
9310 a latch.
9311
9312 2013-02-18 Richard Biener <rguenther@suse.de>
9313
9314 PR tree-optimization/56321
9315 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9316 order SSA name release and virtual operand unlinking.
9317
9318 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9319
9320 * config/microblaze/microblaze.md (save_stack_block): Define.
9321 (restore_stack_block): Likewise.
9322
9323 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9324
9325 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9326 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9327 * config/microblaze/microblaze.c (microblaze_option_override):
9328 Bail out early for PIC modes when target does not support PIC.
9329
9330 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9331
9332 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9333 Replace with a microblaze version.
9334 (microblaze_trampoline_init): Adapt for microblaze.
9335 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9336 microblaze.
9337
9338 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9339 Dodji Seketeli <dodji@redhat.com>
9340
9341 PR asan/56330
9342 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9343 (instrument_mem_region_access): Do not forget to always put
9344 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9345 0) statement, even for cases where either 'base' or 'base + len'
9346 are not instrumented -- because they have been previously
9347 instrumented. Simplify the logic by putting all the statements
9348 instrument 'base + len' inside a sequence, and then insert that
9349 sequence right before the current insertion point. Then, to
9350 instrument 'base + len', just get an iterator on that statement.
9351 And do not forget to update the pointer to iterator the function
9352 received as argument.
9353
9354 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9355
9356 PR rtl-optimization/56348
9357 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9358
9359 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9360
9361 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9362 (clean_graph_dump_file): Pass base to start_graph_dump.
9363
9364 2013-02-14 Richard Henderson <rth@redhat.com>
9365
9366 PR target/55941
9367 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9368
9369 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9370
9371 * collect2-aix.h: Define F_LOADONLY.
9372
9373 2013-02-14 Richard Biener <rguenther@suse.de>
9374
9375 PR lto/50494
9376 * varasm.c (output_constant_def_1): Get the decl representing
9377 the constant as argument.
9378 (output_constant_def): Wrap output_constant_def_1.
9379 (make_decl_rtl): Use output_constant_def_1 with the decl
9380 representing the constant.
9381 (build_constant_desc): Optionally re-use a decl already
9382 representing the constant.
9383 (tree_output_constant_def): Adjust.
9384
9385 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9386
9387 Fix an asan crash
9388 * asan.c (instrument_builtin_call): Really put the length of the
9389 second source argument into src1_len.
9390
9391 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9392
9393 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9394 argument. If it is false, don't create edge from then_bb to
9395 fallthru_bb.
9396 (insert_if_then_before_iter): Pass true to it.
9397 (build_check_stmt): Pass false to it.
9398 (transform_statements): Flush hash table only on extended basic
9399 block boundaries, rather than at the beginning of every bb.
9400 Don't flush hash table on nonfreeing_call_p calls.
9401 * tree-flow.h (nonfreeing_call_p): New prototype.
9402 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9403
9404 2013-02-13 David S. Miller <davem@davemloft.net>
9405
9406 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9407
9408 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9409
9410 PR target/56184
9411 * ira.c (max_regno_before_ira): Move from ...
9412 (ira): ... here.
9413 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9414 vec_safe_length.
9415
9416 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9417
9418 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9419
9420 2013-02-13 Richard Biener <rguenther@suse.de>
9421
9422 PR lto/56295
9423 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9424 globals in MEM_REFs.
9425
9426 2013-02-13 Richard Biener <rguenther@suse.de>
9427
9428 * loop-init.c (loop_optimizer_init): Clear loop state when
9429 re-initializing preserved loops.
9430 * loop-unswitch.c (unswitch_single_loop): Return whether
9431 we unswitched the loop. Do not verify loop state here.
9432 (unswitch_loops): When we unswitched a loop discover new loops.
9433
9434 2013-02-13 Kostya Serebryany <kcc@google.com>
9435
9436 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9437 on x86_64 linux.
9438 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9439
9440 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9441
9442 Avoid instrumenting duplicated memory access in the same basic block
9443 * Makefile.in (asan.o): Add new dependency on hash-table.h
9444 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9445 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9446 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9447 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9448 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9449 (get_mem_ref_of_assignment): New functions.
9450 (get_mem_refs_of_builtin_call): Extract from
9451 instrument_builtin_call and tweak a little bit to make it fit with
9452 the new signature.
9453 (instrument_builtin_call): Use the new
9454 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9455 of is_gimple_builtin_call.
9456 (instrument_derefs, instrument_mem_region_access): Insert the
9457 instrumented memory reference into the hash table.
9458 (maybe_instrument_assignment): Renamed instrument_assignment into
9459 this, and change it to advance the iterator when instrumentation
9460 actually happened and return true in that case. This makes it
9461 homogeneous with maybe_instrument_assignment, and thus give a
9462 chance to callers to be more 'regular'.
9463 (transform_statements): Clear the memory reference hash table
9464 whenever we enter a new BB, when we cross a function call, or when
9465 we are done transforming statements. Use
9466 maybe_instrument_assignment instead of instrumentation. No more
9467 need to special case maybe_instrument_assignment and advance the
9468 iterator after calling it; it's now handled just like
9469 maybe_instrument_call. Update comment.
9470
9471 2013-02-13 Richard Biener <rguenther@suse.de>
9472
9473 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9474 Fix loop discovery code.
9475
9476 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9477
9478 PR inline-asm/56148
9479 * lra-constraints.c (process_alt_operands): Match early clobber
9480 operand with itself. Check conflicts with earlyclobber only if
9481 the operand is not reloaded. Prefer to reload conflicting operand
9482 if earlyclobber and matching operands are the same.
9483
9484 2013-02-12 Richard Biener <rguenther@suse.de>
9485
9486 PR lto/56297
9487 * lto-streamer-out.c (write_symbol): Do not output symbols
9488 for hard register variables.
9489
9490 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9491
9492 PR target/54222
9493 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9494 (umulsidi3_insn, mulsidi3_insn): New insns.
9495
9496 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9497
9498 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9499 (struct tune_params): Add vec_costs field.
9500 * config/arm/arm.c (arm_builtin_vectorization_cost)
9501 (arm_add_stmt_cost): New functions.
9502 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9503 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9504 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9505 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9506 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9507 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9508 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9509
9510 2013-02-12 Richard Biener <rguenther@suse.de>
9511
9512 PR lto/56295
9513 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9514 decls again if possible.
9515
9516 2013-02-12 Richard Biener <rguenther@suse.de>
9517
9518 PR middle-end/56288
9519 * tree-ssa.c (verify_ssa_name): Fix check, move
9520 SSA_NAME_IN_FREE_LIST check up.
9521
9522 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9523 Steven Bosscher <steven@gcc.gnu.org>
9524
9525 PR rtl-optimization/56151
9526 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9527 equal to op0 or op1, and last_insn pattern is CODE operation
9528 with MEM dest and one of the operands matches that MEM.
9529
9530 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9531
9532 * doc/extend.texi: Document Function Multiversioning and "default"
9533 parameter string to target attribute.
9534 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9535 target attribute parameter is "default".
9536 (ix86_compare_version_priority): Remove checks for target attribute.
9537 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9538 Remove check for target attribute equal to NULL. Add assert.
9539 (ix86_generate_version_dispatcher_body): Change error to sorry.
9540
9541 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9542 Jack Howarth <howarth@bromo.med.uc.edu>
9543 Patrick Marlier <patrick.marlier@gmail.com>
9544
9545 PR libitm/55693
9546 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9547 define ENDFILE_SPEC as TM_DESTRUCTOR.
9548 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9549
9550 2013-02-11 Alexander Potapenko <glider@google.com>
9551 Jack Howarth <howarth@bromo.med.uc.edu>
9552 Jakub Jelinek <jakub@redhat.com>
9553
9554 PR sanitizer/55617
9555 * config/darwin.c (cdtor_record): Rename ctor_record.
9556 (sort_cdtor_records): Rename sort_ctor_records.
9557 (finalize_dtors): New routine to sort destructors by
9558 priority before use in assemble_integer.
9559 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9560
9561 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9562
9563 PR rtl-optimization/56275
9564 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9565 offset is non-negative and less than cmode size before
9566 calling simplify_subreg.
9567
9568 2013-02-11 Richard Biener <rguenther@suse.de>
9569
9570 PR tree-optimization/56264
9571 * cfgloop.h (fix_loop_structure): Adjust prototype.
9572 * loop-init.c (fix_loop_structure): Return the number of
9573 newly discovered loops.
9574 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9575 are discovered, do a full loop-closed SSA rewrite.
9576
9577 2013-02-11 Richard Biener <rguenther@suse.de>
9578
9579 PR tree-optimization/56273
9580 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9581 first VRP run.
9582 (check_array_ref): Fix missing newline in dumps.
9583 (search_for_addr_array): Likewise.
9584
9585 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9586
9587 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9588
9589 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9590
9591 PR target/56256
9592 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9593
9594 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9595
9596 PR rtl-optimization/56246
9597 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9598 reload pseudo.
9599 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9600 constraints are satisfied.
9601
9602 2013-02-08 Jeff Law <law@redhat.com>
9603
9604 PR debug/53948
9605 * emit-rtl.c (reg_is_parm_p): New function.
9606 * regs.h (reg_is_parm_p): New prototype.
9607 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9608 callee-clobbered registers.
9609
9610 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9611
9612 PR target/56043
9613 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9614 If there is no implicit builtin declaration, just return NULL.
9615
9616 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9617
9618 * config/i386/sse.md (FMAMODEM): New mode iterator.
9619 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9620 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9621
9622 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9623
9624 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9625 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9626 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9627
9628 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9629
9630 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9631 (microblaze*-*-elf): Likewise.
9632 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9633 LINK_SPEC.
9634 * config/microblaze/microblaze-c.c: Add builtin defines for
9635 _LITTLE_ENDIAN and _BIG_ENDIAN.
9636 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9637 add to TARGET_DEFAULT flags.
9638 Expand ASM_SPEC and LINK_SPEC.
9639 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9640 * config/microblaze/microblaze.md: Update extendsidi2 and
9641 movdi_internal instructions to use low-order / high-order reg
9642 print_operands.
9643 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9644 options and inversemask / mask of LITTLE_ENDIAN.
9645 * config/microblaze/t-microblaze: Expand multilib options to
9646 include mlittle-endian (le) and update exceptions patterns.
9647
9648 2013-02-08 Jakub Jelinek <jakub@redhat.com>
9649
9650 PR rtl-optimization/56195
9651 * lra-constraints.c (get_reload_reg): Don't reuse regs
9652 if they have smaller mode than requested, if they have
9653 wider mode than requested, try to return a SUBREG.
9654
9655 PR tree-optimization/56250
9656 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9657 if type is unsigned and code isn't MULT_EXPR.
9658
9659 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9660
9661 PR tree-optimization/56064
9662 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9663 bits according to mode.
9664 * fixed-value.h (fixed_from_double_int)
9665 (const_fixed_from_double_int): Adjust comments.
9666
9667 2013-02-08 Richard Biener <rguenther@suse.de>
9668
9669 PR lto/56231
9670 * lto-streamer.h (struct data_in): Remove current_file, current_line
9671 and current_col members.
9672 * lto-streamer-out.c (lto_output_location): Stream changed bits
9673 en-block for efficiency.
9674 * lto-streamer-in.c (clear_line_info): Remove.
9675 (lto_input_location): Cache current file, line and column
9676 globally via local statics. Read changed bits en-block.
9677 (input_function): Do not call clear_line_info.
9678 (lto_read_body): Likewise.
9679 (lto_input_toplevel_asms): Likewise.
9680
9681 2013-02-08 Michael Matz <matz@suse.de>
9682
9683 PR tree-optimization/52448
9684 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9685 (nt_call_phase): New static.
9686 (add_or_mark_expr): Only mark accesses with newer phase than any
9687 call seen.
9688 (nonfreeing_call_p): New.
9689 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9690 (nt_fini_block): Keep blocks marked as visited.
9691 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9692
9693 2013-02-08 Richard Biener <rguenther@suse.de>
9694
9695 * ira.c (ira): Free broken dominator information.
9696
9697 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9698
9699 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9700
9701 2013-02-08 Marek Polacek <polacek@redhat.com>
9702
9703 * cfgloop.c (verify_loop_structure): Add more checking of headers.
9704
9705 2013-02-08 Richard Biener <rguenther@suse.de>
9706
9707 PR middle-end/56181
9708 * cfgloop.h (flow_loops_find): Adjust.
9709 (bb_loop_header_p): Declare.
9710 * cfgloop.c (bb_loop_header_p): New function split out from ...
9711 (flow_loops_find): ... here. Adjust function signature,
9712 support incremental loop structure update.
9713 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9714 * cfgloopmanip.c (fix_loop_structure): Move ...
9715 * loop-init.c (fix_loop_structure): ... here.
9716 (apply_loop_flags): Split out from ...
9717 (loop_optimizer_init): ... here.
9718 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9719 in incremental mode, only remove dead loops here.
9720
9721 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9722
9723 PR target/54222
9724 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9725 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9726 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9727 (*round<mode>3.libgcc): New insns for fixed-modes.
9728 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9729 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9730 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9731 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9732 implementations. Define to __builtin_avr_absFX,
9733 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9734 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9735 __builtin_avr_countlsFX, respectively.
9736 * config/avr/avr-c.c (target.h): Include it.
9737 (enum avr_builtin_id): New enum.
9738 (avr_resolve_overloaded_builtin): New static function.
9739 (avr_register_target_pragmas): Use it to set
9740 targetm.resolve_overloaded_builtin.
9741 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9742 tree nodes used by DEF_BUILTIN.
9743 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9744 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9745 <AVR_BUILTIN_xxBITS>: Same.
9746
9747 2013-02-08 Richard Biener <rguenther@suse.de>
9748
9749 * cfgloop.c (verify_loop_structure): Properly handle
9750 a loop exiting to another loop header.
9751 * ira-int.h (ira_loops): Remove.
9752 * ira.c (ira_loops): Remove.
9753 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9754 (do_reload): Use loop_optimizer_finalize.
9755 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9756 number_of_loops to access the loop tree.
9757 (more_one_region_p): Likewise.
9758 (finish_loop_tree_nodes): Likewise.
9759 (rebuild_regno_allocno_maps): Likewise.
9760 (mark_loops_for_removal): Likewise.
9761 (mark_all_loops_for_removal): Likewise.
9762 (remove_unnecessary_regions): Likewise.
9763 (ira_build): Likewise.
9764 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9765
9766 2013-02-08 Richard Biener <rguenther@suse.de>
9767
9768 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9769 * ipa-pure-const.c (analyze_function): Avoid calling
9770 mark_irreducible_loops twice.
9771 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
9772
9773 2013-02-07 David S. Miller <davem@davemloft.net>
9774
9775 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9776 on 'reg'.
9777 * var-tracking.c (vt_add_function_parameter): Test the presence of
9778 HAVE_window_save properly and do not remap argument registers when
9779 we have a leaf function.
9780
9781 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
9782
9783 PR bootstrap/56227
9784 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9785 instead of "ll".
9786 * config/i386/i386.c (ix86_print_operand): Ditto.
9787
9788 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9789
9790 * lra-constraints.c (process_alt_operands): Fix recently added comment.
9791
9792 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9793
9794 PR rtl-optimization/56225
9795 * lra-constraints.c (process_alt_operands): Check that reload hard
9796 reg can hold value for strict_low_part.
9797
9798 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9799
9800 PR debug/56154
9801 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9802 dwarf2out_end_function.
9803 (in_first_function_p, maybe_at_text_label_p,
9804 first_loclabel_num_not_at_text_label): New variables.
9805 (dwarf2out_var_location): In the first function find out
9806 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
9807 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9808 functions.
9809
9810 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9811
9812 PR rtl-optimization/56178
9813 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9814 SUBREG of a register. Tidy up related block of code.
9815 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9816 note if the source is a register or a SUBREG of a register.
9817
9818 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9819
9820 PR target/56228
9821 * config/rs6000/rs6000.md (ptrm): New mode attr.
9822 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9823 call_value_indirect_aix<pttrsize>,
9824 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9825 m in constraints.
9826
9827 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9828
9829 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9830 if -bnortl. Convert to strcmp and strncmp.
9831
9832 2013-02-07 Alan Modra <amodra@gmail.com>
9833
9834 PR target/54009
9835 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9836 addresses won't wrap when offsetting.
9837 (rs6000_secondary_reload): Provide secondary reloads needed for
9838 wrapping LO_SUM addresses.
9839
9840 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9841
9842 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9843 MACH, just __MACH__.
9844
9845 2013-02-06 Richard Biener <rguenther@suse.de>
9846
9847 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9848 instead of calling fix_loop_structure.
9849
9850 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9851
9852 PR middle-end/56217
9853 * omp-low.c (use_pointer_for_field): Return false if
9854 lower_send_shared_vars doesn't generate any copy-out code.
9855
9856 2013-02-06 Tom de Vries <tom@codesourcery.com>
9857
9858 PR rtl-optimization/56131
9859 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9860 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9861 of the label is NULL. Add comment.
9862
9863 2013-02-05 Jakub Jelinek <jakub@redhat.com>
9864
9865 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9866
9867 PR sanitizer/55374
9868 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9869 (STATIC_LIBTSAN_LIBS): Likewise.
9870 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9871 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9872 is defined, don't add anything else beyond that.
9873 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9874 (LINK_COMMAND_SPEC): Use them.
9875
9876 PR tree-optimization/56205
9877 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9878 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9879 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9880
9881 2013-02-05 Richard Biener <rguenther@suse.de>
9882
9883 PR tree-optimization/53342
9884 PR tree-optimization/53185
9885 * tree-vectorizer.h (vect_check_strided_load): Remove.
9886 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9887 not disallow peeling for vectorized strided loads.
9888 (vect_check_strided_load): Make static and simplify.
9889 (vect_analyze_data_refs): Adjust.
9890 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9891 correctly when vectorizing strided loads.
9892
9893 2013-02-05 Richard Biener <rguenther@suse.de>
9894
9895 * doc/install.texi: Refer to ISL, not PPL.
9896
9897 2013-02-05 Jan Hubicka <jh@suse.cz>
9898
9899 PR tree-optimization/55789
9900 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9901
9902 2013-02-05 Jan Hubicka <jh@suse.cz>
9903
9904 PR tree-optimization/55789
9905 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9906 the dead call anyway.
9907
9908 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9909
9910 PR sanitizer/55374
9911 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9912
9913 2013-02-04 Alexander Potapenko <glider@google.com>
9914 Jack Howarth <howarth@bromo.med.uc.edu>
9915 Jakub Jelinek <jakub@redhat.com>
9916
9917 PR sanitizer/55617
9918 * config/darwin.c (sort_ctor_records): Stabilized qsort
9919 on constructor priority by using original position.
9920 (finalize_ctors): New routine to sort constructors by
9921 priority before use in assemble_integer.
9922 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9923
9924 2013-02-04 Jakub Jelinek <jakub@redhat.com>
9925
9926 PR libstdc++/54314
9927 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9928 about visibility on artificial decls.
9929 * config/sol2.c (solaris_assemble_visibility): Likewise.
9930
9931 2013-02-04 Kai Tietz <ktietz@redhat.com>
9932
9933 PR target/56186
9934 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9935 argument and improve checking of return-argument types for 16-byte
9936 modes.
9937 (ix86_function_value_1): Add additional valtype argument on call
9938 of function_value_64.
9939 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9940 handling infunction_value_64 function.
9941
9942 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9943
9944 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
9945
9946 2013-02-04 Richard Biener <rguenther@suse.de>
9947
9948 PR tree-optimization/56188
9949 * tree-ssa-structalias.c (label_visit): Consider case with
9950 initially non-empty points-to set.
9951 (perform_var_substitution): Dump node mapping and clean up.
9952
9953 2013-02-04 Richard Guenther <rguenther@suse.de>
9954
9955 PR lto/56168
9956 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9957 node prevail as last resort.
9958 (lto_symtab_merge_decls): Remove guard on LTRANS here.
9959 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
9960
9961 2013-02-04 Richard Biener <rguenther@suse.de>
9962
9963 PR tree-optimization/56113
9964 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9965 Merge into ...
9966 (equiv_class_lookup_or_add): ... this.
9967 (label_visit): Adjust and fix error in previous patch.
9968 (perform_var_substitution): Adjust.
9969
9970 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9971
9972 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9973 * config/sh/sh4-300.md: Likewise.
9974 * config/sh/sh4a.md: Likewise.
9975 * config/sh/constraints.md: Likewise.
9976 * config/sh/sh.md: Likewise.
9977 * config/sh/netbsd-elf.h: Likewise.
9978 * config/sh/predicates.md: Likewise.
9979 * config/sh/sh-protos.h: Likewise.
9980 * config/sh/ushmedia.h: Likewise.
9981 * config/sh/linux.h: Likewise.
9982 * config/sh/sh.c: Likewise.
9983 * config/sh/superh.h: Likewise.
9984 * config/sh/elf.h: Likewise.
9985 * config/sh/sh4.md: Likewise.
9986 * config/sh/sh.h: Likewise.
9987
9988 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9989
9990 * config/pa/constraints.md: Adjust unused letters. Change "T"
9991 constraint to match_test floating_point_store_memory_operand().
9992 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9993 (base14_operand): New.
9994 (floating_point_store_memory_operand): New.
9995 (integer_store_memory_operand): Revise to use base14_operand and
9996 reg_plus_base_memory_operand.
9997 (move_dest_operand): Allow symbolic_memory_operands.
9998 (symbolic_memory_operand): Check for LO_SOM.
9999 (symbolic_operand): Change default case to break.
10000 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10001 CONST_DOUBLE values to be reloaded by putting them into memory when
10002 the destination is a floating point register.
10003 (movdf): Remove code to handle CONST_DOUBLE.
10004 (movsf): Likewise.
10005 (reload_indf_r1): New.
10006 (reload_insf_r1): New.
10007 Consistently use "Q" and "T" constraints with integer and floating
10008 point move instructions, respectively.
10009 (movdi): Remove FAIL.
10010 Change predicate for source operand unamed DImode move from
10011 general_operand to move_src_operand.
10012 (umulsidi3): Change predicate for destination operand to
10013 register_operand.
10014 Likewise for similar unamed patterns.
10015 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10016 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10017 (hppa_legitimize_address): Simplify mask calculation.
10018 (pa_emit_move_sequence): Revised handling of secondary reloads from
10019 REG+D addresses for floating point loads and stores. Directly handle
10020 loading CONST0_RTX (mode) to a floating point register.
10021 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10022 to floating point registers. Don't restrict secondary reloads to
10023 floating point registers to integer modes. Revise some comments and
10024 cleanup some code.
10025 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10026 (pa_legitimate_address_p): New.
10027 (pa_legitimize_reload_address): New.
10028 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10029 (STRICT_REG_OK_FOR_BASE_P): New.
10030 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10031 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10032
10033 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
10034 Andrew Dixie <andrewd@gentrack.com>
10035
10036 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10037 flag set.
10038
10039 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10040
10041 * expmed.c (extract_bit_field_1): Pass the full width of the
10042 structure to get_best_reg_extraction_insn.
10043
10044 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10045
10046 PR target/54601
10047 * configure.ac (use_cxa_atexit): Add AIX.
10048 * configure: Regenerate.
10049
10050 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10051
10052 2013-02-01 Jakub Jelinek <jakub@redhat.com>
10053
10054 PR debug/54793
10055 * final.c (need_profile_function): New variable.
10056 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10057 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10058 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10059 notes, targetm.asm_out.function_prologue doesn't emit anything,
10060 HAVE_prologue and profiler should be emitted before prologue,
10061 set need_profile_function instead of emitting it.
10062 (final_scan_insn): If need_profile_function, emit
10063 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10064 NOTE_INSN_FUNCTION_BEG note.
10065
10066 2013-02-01 Richard Henderson <rth@redhat.com>
10067
10068 * config/rs6000/rs6000.md (smulditi3): New.
10069 (umulditi3): New.
10070
10071 * config/alpha/alpha.md (umulditi3): New.
10072
10073 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10074
10075 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10076 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10077
10078 2013-02-01 Richard Biener <rguenther@suse.de>
10079
10080 PR tree-optimization/56113
10081 * tree-ssa-structalias.c (label_visit): Reduce work for
10082 single-predecessor nodes.
10083
10084 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10085
10086 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10087 range isn't testing for zero.
10088
10089 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10090
10091 PR middle-end/56113
10092 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10093
10094 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10095 Nick Clifton <nickc@redhat.com>
10096
10097 * config/v850/constraints.md (Q): Define as a memory constraint.
10098 * config/v850/predicates.md (label_ref_operand): New predicate.
10099 (e3v5_shift_operand): New predicate.
10100 (ior_operator): New predicate.
10101 * config/v850/t-v850: Add e3v5 multilib.
10102 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10103 (v850_gen_movdi): Prototype.
10104 * config/v850/v850.c: Add support for e3v5 architecture.
10105 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10106 TARGET_V850E_UP.
10107 (construct_save_jarl): Add e3v5 long JARL support.
10108 (v850_adjust_insn_length): New function. Adjust length of call
10109 insns when using e3v5 instructions.
10110 (v850_gen_movdi): New function: Generate instructions to move a
10111 DImode value.
10112 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10113 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10114 (TARGET_USE_FPU): Enable for e3v5.
10115 (CONST_OK_FOR_W): New macro.
10116 (ADJUST_INSN_LENGTH): Define.
10117 * config/v850/v850.md (UNSPEC_LOOP): Define.
10118 (attr cpu): Add v850e3v5.
10119 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10120 (movdi): New pattern.
10121 (movdi_internal): New pattern.
10122 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10123 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10124 (cstoresf4): Likewise.
10125 (cstoredf4): Likewise.
10126 (insv): New pattern.
10127 (rotlso3_a): New pattern.
10128 (rotlsi3_b): New pattern
10129 (rotlsi3_v850e3v5): New pattern.
10130 (doloop_begin): New pattern.
10131 (fix_loop_counter): New pattern.
10132 (doloop_end): New pattern.
10133 (branch_normal): Add e3v5 long branch support.
10134 (branch_invert): Likewise.
10135 (branch_z_normal): Likewise.
10136 (branch_z_invert): Likewise.
10137 (branch_nz_normal): Likewise.
10138 (branch_nz_invert): Likewise.
10139 (call_internal_short): Add e3v5 register-indirect JARL support.
10140 (call_internal_long): Likewise.
10141 (call_value_internal_short): Likewise.
10142 (call_value_internal_long): Likewise.
10143 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10144 (mloop): New option.
10145 * config.gcc: Add support for configuring v840e3v5 target.
10146 * doc/invoke.texi: Document new v850 specific command line options.
10147
10148 2013-01-31 Paul Koning <ni1d@arrl.net>
10149
10150 PR debug/55059
10151 PR debug/54508
10152 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10153 children if parent is a class.
10154 (prune_unused_types_prune): Don't add DW_AT_declaration.
10155
10156 2013-01-31 Richard Biener <rguenther@suse.de>
10157
10158 PR tree-optimization/56157
10159 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10160 match up operand with SLP child.
10161
10162 2013-01-31 Jason Merrill <jason@redhat.com>
10163
10164 PR debug/54410
10165 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10166 parameters the first time.
10167 (gen_scheduled_generic_parms_dies): Check completeness here.
10168
10169 2013-01-31 Richard Biener <rguenther@suse.de>
10170
10171 PR middle-end/53073
10172 * common.opt (faggressive-loop-optimizations): New flag,
10173 enabled by default.
10174 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10175 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10176 infer_loop_bounds_from_undefined by it.
10177
10178 2013-01-31 Richard Biener <rguenther@suse.de>
10179
10180 PR tree-optimization/56150
10181 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10182 visit virtual operands.
10183 (find_uses_to_rename_bb): Likewise.
10184
10185 2013-01-31 Richard Biener <rguenther@suse.de>
10186
10187 PR tree-optimization/56150
10188 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10189 mixed store non-store stmts.
10190
10191 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10192
10193 PR sanitizer/55374
10194 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10195 LIBASAN_EARLY_SPEC is defined.
10196 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10197 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10198 before %o.
10199 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10200
10201 PR c++/55742
10202 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10203 invalid args instead of ICEing on it.
10204 (ix86_valid_target_attribute_tree): Return error_mark_node if
10205 ix86_valid_target_attribute_inner_p failed.
10206 (ix86_valid_target_attribute_p): Return false only if
10207 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10208 target("default") attribute.
10209 (sorted_attr_string): Change argument from const char * to tree,
10210 merge in all target attribute arguments rather than just one.
10211 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10212 instead of free. Avoid using strcat.
10213 (ix86_mangle_function_version_assembler_name): Mangle
10214 target("default") as if no target attribute is present. Adjust
10215 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10216 instead of xmalloc and XDELETEVEC instead of free.
10217 (ix86_function_versions): Don't return true if one of the decls
10218 doesn't have target attribute. If they don't and one of the decls
10219 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10220 sorted_attr_string caller. Use XDELETEVEC instead of free.
10221 (ix86_supports_function_versions): Remove.
10222 (make_name): Fix up formatting.
10223 (make_dispatcher_decl): Remove resolver_name and its initialization.
10224 Avoid leaking memory.
10225 (is_function_default_version): Return true if there is
10226 target("default") attribute rather than no target attribute at all.
10227 (make_resolver_func): Avoid leaking memory.
10228 (ix86_generate_version_dispatcher_body): Likewise.
10229 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10230 * target.def (supports_function_versions): Remove.
10231 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10232 * doc/tm.texi: Regenerated.
10233
10234 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10235
10236 PR rtl-optimization/56144
10237 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10238 for values with side effects.
10239
10240 2013-01-30 Richard Biener <rguenther@suse.de>
10241
10242 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10243 (sparseset_pop): Likewise.
10244 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10245 to be able to use quick_push in the worker loop.
10246
10247 2013-01-30 Marek Polacek <polacek@redhat.com>
10248
10249 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10250
10251 2013-01-30 Richard Biener <rguenther@suse.de>
10252
10253 PR lto/56147
10254 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10255
10256 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10257
10258 PR tree-optimization/56064
10259 * fixed-value.c (fixed_from_double_int): New function.
10260 * fixed-value.h (fixed_from_double_int): New prototype.
10261 (const_fixed_from_double_int): New static inline function.
10262 * fold-const.c (native_interpret_fixed): New static function.
10263 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10264 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10265 (native_encode_fixed): New static function.
10266 (native_encode_expr) <FIXED_CST>: Use it.
10267 (native_interpret_int): Move double_int worker code to...
10268 * double-int.c (double_int::from_buffer): ...this new static method.
10269 * double-int.h (double_int::from_buffer): Prototype it.
10270
10271 2013-01-30 Richard Biener <rguenther@suse.de>
10272
10273 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10274 New pointer-map and obstack.
10275 (init_alias_vars): Allocate pointer-map and obstack.
10276 (delete_points_to_sets): Free them.
10277 (find_what_var_points_to): Cache result.
10278 (find_what_p_points_to): Adjust for changed interface of
10279 find_what_var_points_to.
10280 (compute_points_to_sets): Likewise.
10281 (ipa_pta_execute): Likewise.
10282
10283 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10284
10285 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10286 * configure: Regenerate.
10287 * config.in: Regenerate.
10288 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10289 #nobits/#progbits if supported.
10290
10291 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10292
10293 PR target/56121
10294 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10295 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10296 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10297
10298 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10299
10300 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10301 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10302
10303 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10304
10305 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10306 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10307
10308 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10309
10310 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10311 declaration.
10312 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10313 * config/arm/cortex-a7.md: New bypasses using
10314 arm_mac_accumulator_is_result.
10315
10316 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10317
10318 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10319 (cortex_a7_neon_mla): Likewise.
10320 (cortex_a7_fpfmad): New reservation.
10321 (cortex_a7_fpmacs): Use ffmas and update required units.
10322 (cortex_a7_fpmuld): Update required units and latency.
10323 (cortex_a7_fpmacd): Likewise.
10324 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10325 (cortex_a7_neon). Likewise.
10326 (bypass) Update participating units.
10327
10328 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10329
10330 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10331 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10332 from fmac to ffma.
10333 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10334 (vfp_fmul): Use ffmad.
10335 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10336 (cortex_r4_fmacd): Use ffmad.
10337 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10338 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10339 (cortex_a9_fmacd): Use ffmad.
10340 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10341 (cortex_a8_vfp_macd): Use ffmad.
10342 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10343 (cortex_a5_fpmacd): Use ffmad.
10344 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10345 (cortex_a15_vfp_macd): Use ffmad.
10346 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10347
10348 2013-01-29 Jason Merrill <jason@redhat.com>
10349
10350 PR libstdc++/54314
10351 * varasm.c (default_assemble_visibility): Don't warn about
10352 visibility on artificial decls.
10353
10354 2013-01-29 Richard Biener <rguenther@suse.de>
10355
10356 PR tree-optimization/56113
10357 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10358 the bitmap leader.
10359 (label_visit): Free duplicate bitmaps and record the leader instead.
10360 (perform_var_substitution): Adjust.
10361
10362 2013-01-29 Richard Biener <rguenther@suse.de>
10363
10364 PR tree-optimization/55270
10365 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10366 the CFG, schedule loops for fixup.
10367
10368 2013-01-29 Nick Clifton <nickc@redhat.com>
10369
10370 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10371 SP_REG.
10372
10373 2013-01-28 Leif Ekblad <leif@rdos.net>
10374
10375 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10376 * config/i386/i386.h (TARGET_RDOS): New macro.
10377 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10378 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10379 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10380 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10381 DEFAULT_LARGE_SECTION_THRESHOLD.
10382 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10383 * config/i386/rdos.h: New file.
10384 * config/i386/rdos64.h: New file.
10385
10386 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10387
10388 PR other/54814
10389 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10390 TEST_HARD_REG_BIT.
10391
10392 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10393
10394 PR rtl-optimization/56117
10395 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10396 call cselib_lookup_from_insn on the MEM before calling
10397 add_insn_mem_dependence.
10398
10399 2013-01-28 Richard Biener <rguenther@suse.de>
10400
10401 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10402 to a stmt that didn't have one.
10403 (copy_phis_for_bb): Likewise for PHI arguments.
10404 (copy_debug_stmt): Likewise for debug stmts.
10405
10406 2013-01-28 Richard Biener <rguenther@suse.de>
10407
10408 PR tree-optimization/56034
10409 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10410 (partition_builtin_p): Adjust.
10411 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10412 it is the last partition.
10413 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10414 up the vertex for the definition.
10415 (classify_partition): Classify whether a partition is a
10416 PKIND_REDUCTION, thus has uses outside of the loop.
10417 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10418 Merge all PKIND_REDUCTION partitions into the last partition.
10419 (tree_loop_distribution): Seed partitions from reductions as well.
10420
10421 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10422
10423 PR tree-optimization/56125
10424 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10425 pow(x,c) into sqrt(x) * powi(x, n/2) or
10426 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10427 optimizing for size.
10428 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10429 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10430 integer.
10431
10432 PR tree-optimization/56094
10433 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10434 to UNKNOWN_LOCATION while gimplifying expr.
10435
10436 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10437
10438 PR target/56114
10439 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10440 operand 0 in movabs insn template for -masm=intel asm alternative.
10441 (*movabs<mode>_2): Ditto for operand 1.
10442
10443 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10444
10445 PR target/54663
10446 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10447 of microblaze-c.o
10448
10449 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10450
10451 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10452 tm_file.
10453
10454 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10455
10456 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10457 Undef to avoid warning.
10458
10459 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10460
10461 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10462 * configure: Regenerate.
10463
10464 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10465
10466 PR tree-optimization/56098
10467 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10468 for stmts with volatile ops.
10469 (cond_store_replacement): Don't optimize if assign has volatile ops.
10470 (cond_if_else_store_replacement_1): Don't optimize if either
10471 then_assign or else_assign have volatile ops.
10472 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10473 volatile ops.
10474
10475 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10476
10477 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10478
10479 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10480
10481 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10482 missing ':' in asm example.
10483
10484 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10485
10486 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10487 entries into lane and laneq entries.
10488 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10489 Remove AdvSIMD scalar modes.
10490 (aarch64_sq<r>dmulh_laneq<mode>): New.
10491 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10492 modes.
10493 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10494 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10495 * config/aarch64/iterators.md (VCOND): New.
10496 (VCONQ): New.
10497
10498 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10499
10500 PR target/54222
10501 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10502 Add NULL LIBNAME argument to existing definitions.
10503 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10504 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10505 * config/avr/avr.c (DEF_BUILTIN): Same.
10506 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10507 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10508 implementation is available (DECL_ASSEMBLER_NAME is set).
10509 (avr_fold_absfx): New static function.
10510 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10511 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10512 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10513 AVR_BUILTIN_ABSLLK.
10514 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10515 (abshk, absk, abslk, absllk): Provide as static inline functions.
10516
10517 2013-01-25 Marek Polacek <polacek@redhat.com>
10518
10519 PR tree-optimization/56035
10520 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10521
10522 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10523
10524 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10525 (*movtf_internal_rex64): Add (!o,C) alternative
10526 (*movxf_internal_rex64): Ditto.
10527 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10528
10529 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10530
10531 * doc/invoke.texi: fix typo.
10532 * doc/objc.texi: fix typo.
10533
10534 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10535
10536 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10537 for the first two alternatives.
10538
10539 2013-01-24 Diego Novillo <dnovillo@google.com>
10540
10541 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10542 (ggc-zone.o): Remove.
10543 * configure.ac: Remove option --with-gc.
10544 * configure: Re-generate.
10545 * doc/install.texi: Remove documentation for --with-gc.
10546 * gengtype.c (write_enum_defn): Remove. Update all users.
10547 (write_Types_process_field): Remove generation of gt_e_* argument.
10548 (output_type_enum): Remove. Update all users.
10549 (write_enum_defn): Remove. Update all users.
10550 (enum alloc_zone): Remove. Update all users.
10551 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10552 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10553 Update all callers.
10554 (struct ptr_data): Remove field TYPE. Update all users.
10555 (gt_pch_note_object): Remove argument TYPE. Update all users.
10556 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10557 Update all users.
10558 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10559 (struct alloc_zone): Remove.
10560 (ggc_internal_alloc_zone_stat): Remove.
10561 (ggc_internal_cleared_alloc_zone_stat): Remove.
10562 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10563 (ggc_pch_count_object): Remove last argument. Update all users.
10564 (ggc_pch_alloc_object): Remove last argument. Update all users.
10565 (struct alloc_zone): Remove.
10566 * ggc-zone.c: Remove.
10567 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10568 (struct alloc_zone): Remove.
10569 (ggc_alloc_typed_stat): Remove.
10570 (ggc_alloc_typed): Remove.
10571 (ggc_splay_alloc): Remove first argument.
10572 (rtl_zone): Remove. Update all users.
10573 (tree_zone): Remove. Update all users.
10574 (tree_id_zone): Remove. Update all users.
10575 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10576 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10577 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10578 * tree-ssanames.c: Remove references to zone allocator in comments.
10579
10580 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10581
10582 * config/avr/avr.c (avr_out_fract): Make register numbers that
10583 might be outside of source operand signed.
10584
10585 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10586
10587 * config/i386/constraints.md (Yf): New constraint.
10588 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10589 of f constraint to conditionaly disable x87 register preferences.
10590 (*movdf_internal): Ditto.
10591 (*movsf_internal): Ditto.
10592
10593 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10594
10595 PR inline-asm/55934
10596 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10597 that have operands with impossible constraints.
10598 Add a FIXME for a speed-up opportunity.
10599 * lra-constraints.c (process_alt_operands): Verify that a class
10600 selected from constraints on asms is valid for the operand mode.
10601 (curr_insn_transform): Remove incorrect comment.
10602
10603 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10604
10605 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10606 TOC operand is a valid symbol ref in the constant pool.
10607
10608 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10609
10610 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10611
10612 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10613
10614 PR target/54222
10615 * config/avr/stdfix.h: New file.
10616 * t-avr (stdfix-gcc.h): New rule to build it.
10617 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10618
10619 2013-01-23 Kostya Serebryany <kcc@google.com>
10620
10621 * config/darwin.h: remove dependency on
10622 CoreFoundation (asan on Mac OS).
10623
10624 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10625
10626 PR target/49069
10627 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10628 instead of cmpdi_operand for first comparison operand.
10629 Don't assert that comparison operands aren't both constants.
10630
10631 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10632
10633 * doc/install.texi (Downloading the Source): Update references to
10634 downloading separate components.
10635
10636 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10637
10638 * doc/extend.texi (__int128): Improve grammar.
10639
10640 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
10641
10642 PR target/56028
10643 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10644 alternative to (o,r).
10645 (*movdi_internal_rex64): Remove (!o,n) alternative.
10646 (DImode immediate->memory splitter): Remove.
10647 (DImode immediate->memory peephole2): Remove.
10648 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10649 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10650 alternative to (!o,*r).
10651 (*movtf_internal_sse): New pattern.
10652 (*movxf_internal_rex64): New pattern.
10653 (*movxf_internal): Disable for TARGET_64BIT.
10654 (*movdf_internal_rex64): Remove (!o,F) alternative.
10655
10656 2013-01-22 Jakub Jelinek <jakub@redhat.com>
10657
10658 PR middle-end/56074
10659 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10660 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10661 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10662 stmt locations where LOCATION_LOCUS of the stmt location is
10663 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10664
10665 PR target/55686
10666 * config/i386/i386.md (UNSPEC_STOS): New.
10667 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10668 *strsetqi_1): Add UNSPEC_STOS.
10669
10670 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10671
10672 PR c++/56067
10673 * doc/invoke.texi: Remove left over -Wsynth example.
10674
10675 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10676
10677 PR tree-optimization/56051
10678 * fold-const.c (fold_binary_loc): Don't fold
10679 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10680 a narrowing conversion, or widening conversion from signed
10681 to unsigned.
10682
10683 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10684
10685 PR rtl-optimization/56023
10686 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10687 dependent on debug instruction.
10688
10689 2013-01-21 Martin Jambor <mjambor@suse.cz>
10690
10691 PR middle-end/56022
10692 * function.c (allocate_struct_function): Call
10693 invoke_set_current_function_hook earlier.
10694
10695 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10696
10697 * reload1.c (init_reload): Only initialize reload_obstack
10698 during the first call.
10699
10700 2013-01-21 Marek Polacek <polacek@redhat.com>
10701
10702 * cfgloop.c (verify_loop_structure): Fix up grammar.
10703
10704 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10705
10706 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10707 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10708
10709 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10710
10711 PR target/56058
10712 * config/arm/marvell-pj4.md: Update copyright year.
10713 Fix up use of alu to alu_reg and simple_alu_imm.
10714
10715 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10716
10717 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10718
10719 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10720
10721 PR target/55433
10722 * lra-constraints.c (curr_insn_transform): Don't reuse original
10723 insn for secondary memory move when memory mode should be different.
10724
10725 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10726
10727 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10728 atomic_storedi_1): New patterns.
10729
10730 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10731
10732 btver2 pipeline descriptions.
10733 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10734 descriptions.
10735 * config/i386/i386.md (btver2_decode): New type attributes.
10736 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
10737 type attributes.
10738 * config/i386/btver2.md: New file describing btver2 pipelines.
10739
10740 2013-01-19 Andrew Pinski <apinski@cavium.com>
10741
10742 PR tree-optimization/52631
10743 * tree-ssa-sccvn (visit_use): Before looking up the original
10744 statement, try looking up the simplified expression.
10745
10746 2013-01-19 Anthony Green <green@moxielogic.com>
10747
10748 * config/moxie/moxie.c (moxie_expand_prologue): Set
10749 current_function_static_stack_size.
10750
10751 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10752
10753 PR tree-optimization/56029
10754 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10755 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10756
10757 2013-01-18 Sharad Singhai <singhai@google.com>
10758
10759 PR tree-optimization/55995
10760 * dumpfile.c (dump_loc): Print location only if available.
10761 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10762
10763 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10764
10765 PR target/55433
10766 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10767 secondary memory move.
10768 (inherit_reload_reg): Use rclass instead of cl for
10769 check_secondary_memory_needed_p.
10770
10771 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10772
10773 PR middle-end/56015
10774 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
10775 the case where writing real complex part of target modifies op1.
10776
10777 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10778
10779 * config/aarch64/aarch64-simd.md
10780 (aarch64_vcond_internal<mode>): Handle unordered cases.
10781 * config/aarch64/iterators.md (v_cmp_result): New.
10782
10783 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10784 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10785
10786 * config/arm/marvell-pj4.md: New file.
10787 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10788 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10789 (generic_vfp): Likewise.
10790 * config/arm/arm-cores.def: Add marvell-pj4.
10791 * config/arm/arm-tune.md: Regenerate.
10792 * config/arm/arm-tables.opt: Regenerate.
10793 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10794 * doc/invoke.texi: Document marvell-pj4.
10795
10796 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10797
10798 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10799
10800 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10801
10802 PR debug/54114
10803 PR debug/54402
10804 PR debug/49888
10805 * var-tracking.c (negative_power_of_two_p): New.
10806 (global_get_addr_cache, local_get_addr_cache): New.
10807 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10808 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10809 heading comment.
10810 (vt_stack_offset_p): Remove.
10811 (vt_canon_true_dep): Always canonicalize loc's address.
10812 (clobber_overlapping_mems): Make sure we have a MEM.
10813 (local_get_addr_clear_given_value): New.
10814 (val_reset): Clear local cached entries.
10815 (compute_bb_dataflow): Create and release the local cache.
10816 Disable duplicate MEMs clobbering.
10817 (emit_notes_in_bb): Clobber MEMs likewise.
10818 (vt_emit_notes): Create and release the local cache.
10819 (vt_initialize, vt_finalize): Create and release the global
10820 cache, respectively.
10821 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
10822
10823 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10824
10825 PR libmudflap/53359
10826 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10827 not found in the symtab.
10828
10829 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10830
10831 PR debug/56006
10832 PR rtl-optimization/55547
10833 PR rtl-optimization/53827
10834 PR debug/53671
10835 PR debug/49888
10836 * alias.c (offset_overlap_p): New, factored out of...
10837 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10838 the conservative special case for symbolic constants. Don't
10839 adjust zero sizes on alignment.
10840
10841 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10842
10843 PR rtl-optimization/52573
10844 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10845 REG_UNUSED for the same register.
10846
10847 2013-01-17 Richard Biener <rguenther@suse.de>
10848 Marek Polacek <polacek@redhat.com>
10849
10850 PR rtl-optimization/55833
10851 * loop-unswitch.c (unswitch_loops): Move loop verification...
10852 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10853 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10854 Set it to true when we're removing a loop from hierarchy tree in
10855 an irreducible region.
10856 (fix_bb_placements): Adjust caller.
10857 (fix_loop_placements): Likewise.
10858
10859 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
10860
10861 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10862 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10863 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10864 Remove ID. Adjust comments.
10865 * config/avr/avr-c.c (avr_builtin_name): Remove.
10866 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10867 * config/avr/avr.c (avr_tolower): New static function.
10868 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10869 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10870 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10871 default expansion.
10872
10873 2013-01-17 Jan Hubicka <jh@suse.cz>
10874
10875 PR tree-optimization/55273
10876 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10877
10878 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
10879
10880 PR target/55981
10881 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10882 store through atomic_store<mode>_1.
10883 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10884
10885 2013-01-17 Martin Jambor <mjambor@suse.cz>
10886
10887 PR tree-optimizations/55264
10888 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10889 for virtual methods.
10890 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10891 virtual methods before inlining is over.
10892 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10893 virtual functions.
10894 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10895 non-virtual.
10896
10897 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10898
10899 PR rtl-optimization/56005
10900 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10901 pending reads for prefetch.
10902
10903 2013-01-16 Ian Bolton <ian.bolton@arm.com>
10904
10905 * config/aarch64/aarch64.md
10906 (*cstoresi_neg_uxtw): New pattern.
10907 (*cmovsi_insn_uxtw): New pattern.
10908 (*<optab>si3_uxtw): New pattern.
10909 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10910 (*<optab>si3_insn_uxtw): New pattern.
10911 (*bswapsi2_uxtw): New pattern.
10912
10913 2013-01-16 Richard Biener <rguenther@suse.de>
10914
10915 * tree-inline.c (tree_function_versioning): Remove set but
10916 never used variable.
10917
10918 2013-01-16 Richard Biener <rguenther@suse.de>
10919
10920 PR tree-optimization/55964
10921 * tree-flow.h (rename_variables_in_loop): Remove.
10922 (rename_variables_in_bb): Likewise.
10923 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10924 (copy_loop_before): Adjust and delete update-ssa status.
10925 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
10926 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
10927 (rename_variables_in_loop): Remove.
10928 (slpeel_update_phis_for_duplicate_loop): Likewise.
10929 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10930 use available cfg machinery instead of duplicating it.
10931 Update PHI nodes and perform poor-mans SSA update here.
10932 (slpeel_tree_peel_loop_to_edge): Adjust.
10933
10934 2013-01-16 Richard Biener <rguenther@suse.de>
10935
10936 PR tree-optimization/54767
10937 PR tree-optimization/53465
10938 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10939 (vrp_visit_phi_node): For PHI arguments coming via backedges
10940 drop all symbolical range information.
10941 (execute_vrp): Compute backedges.
10942
10943 2013-01-16 Richard Biener <rguenther@suse.de>
10944
10945 * doc/install.texi: Update CLooG and ISL requirements to
10946 0.18.0 and 0.11.1.
10947
10948 2013-01-16 Christian Bruel <christian.bruel@st.com>
10949
10950 PR target/55301
10951 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10952 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10953 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10954
10955 2013-01-16 DJ Delorie <dj@redhat.com>
10956
10957 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10958 (UNSPECV_SP_SWITCH_E): New.
10959 (sp_switch_1): Change to an unspec.
10960 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10961 replace $r15.
10962
10963 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
10964
10965 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10966 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10967 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10968 (expand_mem_thread_fence): Ditto.
10969 (expand_mem_signal_fence): Ditto.
10970 (expand_atomic_load): Ditto.
10971 (expand_atomic_store): Ditto.
10972
10973 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
10974
10975 PR rtl-optimization/55547
10976 PR rtl-optimization/53827
10977 PR debug/53671
10978 PR debug/49888
10979 * alias.c (memrefs_conflict_p): Set sizes to negative after
10980 AND adjustments.
10981
10982 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10983
10984 PR target/55940
10985 * function.c (thread_prologue_and_epilogue_insns): Always
10986 add crtl->drap_reg to set_up_by_prologue.set, even if
10987 stack_realign_drap is false.
10988
10989 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10990
10991 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10992 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10993 *call): Fix indention.
10994
10995 2013-01-15 Tom de Vries <tom@codesourcery.com>
10996
10997 PR target/55876
10998 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10999 Update comment.
11000
11001 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11002
11003 PR rtl-optimization/55153
11004 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11005
11006 2013-01-15 Martin Jambor <mjambor@suse.cz>
11007
11008 PR tree-optimization/55920
11009 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11010 accesses as grp_to_be_debug_replaced.
11011
11012 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11013
11014 PR tree-optimization/55920
11015 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11016 there is non-useless type conversion needed from debug rhs to lhs,
11017 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11018
11019 2013-01-15 Joseph Myers <joseph@codesourcery.com>
11020 Mikael Pettersson <mikpe@it.uu.se>
11021
11022 PR target/43961
11023 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11024 Thumb.
11025 (ASM_OUTPUT_CASE_LABEL): Remove.
11026 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11027 * final.c (shorten_branches): Update alignment of labels before
11028 jump tables if CASE_VECTOR_SHORTEN_MODE.
11029
11030 2013-01-15 Richard Biener <rguenther@suse.de>
11031
11032 PR bootstrap/55961
11033 * system.h: Do not include gmp.h for building host tools.
11034
11035 2013-01-15 Richard Biener <rguenther@suse.de>
11036
11037 PR middle-end/55882
11038 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11039 account for bitpos when computing alignment.
11040
11041 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11042
11043 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11044 (ix86_target_macros_internal): Likewise.
11045
11046 * config/i386/i386.c (m_CORE2I7): Removed.
11047 (m_CORE_HASWELL): New macro.
11048 (m_CORE_ALL): Likewise.
11049 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11050 (initial_ix86_arch_features): Likewise.
11051 (processor_target_table): Initializations for Core avx2.
11052 (cpu_names): New names "core-avx2".
11053 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11054 PROCESSOR_CORE_HASWELL.
11055 (ix86_issue_rate): New case.
11056 (ia32_multipass_dfa_lookahead): Likewise.
11057 (ix86_sched_init_global): Likewise.
11058
11059 * config/i386/i386.h (TARGET_HASWELL): New macro.
11060 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11061 (processor_type): New PROCESSOR_HASWELL.
11062
11063 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11064
11065 PR tree-optimization/55955
11066 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11067 *SHIFT_EXPR and *ROTATE_EXPR codes.
11068
11069 PR tree-optimization/48766
11070 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11071 -ftrapv disable -fwrapv.
11072
11073 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11074
11075 PR target/55974
11076 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11077 etc. to 1 and not to __flash.
11078 Use LL suffix for __INT24_MAX__ with -mint8.
11079 Use ULL suffix for __UINT24_MAX__ with -mint8.
11080
11081 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11082
11083 * config/avr/avr-arch.h
11084 (struct base_arch_s): Use typedef avr_arch_t instead.
11085 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11086 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11087 * config/avr/avr.c: Same.
11088 * config/avr/avr-devices.c: Same.
11089 * config/avr/driver-avr.c: Same.
11090 * config/avr/gen-avr-mmcu-texi.c: Same.
11091 * config/avr/avr-mcus.def: Adjust comment.
11092
11093 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11094
11095 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11096 * config/aarch64/iterators.md (VALLDI): New.
11097
11098 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
11099 Andi Kleen <ak@linux.intel.com>
11100
11101 PR target/55948
11102 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11103 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11104 memmodel flag.
11105
11106 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11107
11108 * config/avr/avr-stdint.h: Remove trailing blanks.
11109 * config/avr/avr-log.h: Same.
11110 * config/avr/avr-arch.h: Same.
11111 * config/avr/avr-devices.c: Same.
11112 * config/avr/avr-dimode.md: Same.
11113 * config/avr/predicates.md: Same.
11114 * config/avr/avr-c.c: Same. And fix typo.
11115
11116 * config/avr/avr-protos.h: Same. And:
11117 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11118 (init_cumulative_args): Rename to avr_init_cumulative_args.
11119 (expand_prologue): Rename to avr_expand_prologue.
11120 (expand_epilogue): Rename to avr_expand_epilogue.
11121 (adjust_insn_length): Rename to avr_adjust_insn_length.
11122 (notice_update_cc): Rename to avr_notice_update_cc.
11123 (final_prescan_insn): Rename to avr_final_prescan_insn.
11124 * config/avr/avr.c: Same.
11125 * config/avr/avr.h: Same.
11126 * config/avr/avr.md: Remove trailing blanks.
11127 (prologue): Use avr_expand_prologue.
11128 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11129
11130 2013-01-14 Richard Biener <rguenther@suse.de>
11131
11132 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11133 verify_location, collect_subblocks): New functions.
11134 (verify_gimple_in_cfg): Verify that locations only reference
11135 BLOCKs in the functions BLOCK tree.
11136
11137 2013-01-14 Richard Biener <rguenther@suse.de>
11138
11139 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11140 PHI argument.
11141 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11142 unshare reference.
11143 (insert_out_of_ssa_copy_on_edge): Likewise.
11144 (rewrite_close_phi_out_of_ssa): Likewise.
11145 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11146 debug expressions.
11147 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11148 propagated constants.
11149 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11150 can not be shared.
11151
11152 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11153
11154 * config/avr/avr-modes.def: Add GPL copyright notice.
11155
11156 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11157
11158 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11159 MEMMODEL_MASK to determine memory model.
11160 (atomic_store<mode>): Ditto from operands[2].
11161 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11162
11163 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11164
11165 PR fortran/55935
11166 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11167 (fold_gimple_assign): Don't call unshare_expr here.
11168 (fold_ctor_reference): Call unshare_expr.
11169
11170 2013-01-13 Terry Guo <terry.guo@arm.com>
11171
11172 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11173 * doc/fragments.texi: Document MULTILIB_REUSE.
11174 * gcc.c (multilib_reuse): New internal spec.
11175 (set_multilib_dir): Also search multilib from multilib_reuse.
11176 * genmultilib (tmpmultilib3): Refactor code.
11177 (tmpmultilib4): Ditto.
11178 (multilib_reuse): New multilib argument.
11179
11180 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11181
11182 * Makefile.in: Update copyright.
11183
11184 2013-01-12 Tom de Vries <tom@codesourcery.com>
11185
11186 PR middle-end/55890
11187 * calls.c (expand_call): Check if arg_nr is valid.
11188
11189 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11190
11191 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11192 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11193 documentation. Add missing '__' in front of
11194 __builtin_ia32_packssdw256.
11195
11196 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11197
11198 PR target/55719
11199 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11200 NO_REGS for larl operands.
11201 (s390_reload_larl_operand): Use s390_load_address instead of
11202 emit_move_insn.
11203
11204 2013-01-11 Richard Biener <rguenther@suse.de>
11205
11206 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11207 (verify_node_sharing): ... here.
11208 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11209
11210 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11211
11212 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11213 Substitute TREECHECKING.
11214 * configure: Regenerate.
11215 * Makefile.in (TREECHECKING): New.
11216
11217 2013-01-11 Richard Guenther <rguenther@suse.de>
11218
11219 PR tree-optimization/44061
11220 * tree-vrp.c (extract_range_basic): Compute zero as
11221 value-range for __builtin_constant_p of function parameters.
11222
11223 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11224
11225 Update copyright years.
11226
11227 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11228
11229 PR rtl-optimization/55672
11230 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11231 const to be eliminable.
11232
11233 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11234
11235 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11236 * configure: Regenerate.
11237
11238 2013-01-10 Richard Biener <rguenther@suse.de>
11239
11240 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11241
11242 2013-01-10 Richard Biener <rguenther@suse.de>
11243
11244 PR bootstrap/55792
11245 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11246 locations for virtual PHI arguments.
11247 (rewrite_update_phi_arguments): Likewise.
11248
11249 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11250
11251 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11252 on to assembler.
11253
11254 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11255
11256 PR tree-optimization/55921
11257 * tree-complex.c (expand_complex_asm): New function.
11258 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11259
11260 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11261
11262 PR target/55718
11263 * config/s390/s390.c (s390_symref_operand_p)
11264 (s390_loadrelative_operand_p): Merge the two functions.
11265 (s390_check_qrst_address, print_operand_address): Add parameters
11266 to s390_loadrelative_operand_p invokation.
11267 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11268 (s390_reload_larl_operand, s390_secondary_reload): Use
11269 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11270 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11271
11272 2013-01-09 Mike Stump <mikestump@comcast.net>
11273
11274 * dse.c (record_store): Remove unnecessary assert.
11275
11276 2013-01-09 Jan Hubicka <jh@suse.cz>
11277
11278 PR tree-optimization/55569
11279 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11280 * cfgloop.h (scale_loop_profile): Likewise.
11281
11282 2013-01-09 Jan Hubicka <jh@suse.cz>
11283
11284 PR lto/45375
11285 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11286 functions.
11287 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11288
11289 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11290
11291 PR middle-end/55114
11292 * expr.h (maybe_emit_group_store): Declare.
11293 * expr.c (maybe_emit_group_store): New function.
11294 * builtins.c (expand_builtin_int_roundingfn): Call it.
11295 (expand_builtin_int_roundingfn_2): Likewise.
11296
11297 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11298
11299 PR rtl-optimization/55829
11300 * lra-constraints.c (match_reload): Add code for absent output.
11301 (curr_insn_transform): Add code for reloads of matched inputs
11302 without output.
11303
11304 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11305
11306 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11307 attribute of movddup insn to DF.
11308 (*vec_interleave_lowv2df): Ditto.
11309 (vec_dupv2df): Ditto.
11310
11311 2013-01-09 Jan Hubicka <jh@suse.cz>
11312
11313 PR tree-optimiation/55875
11314 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11315 EVERY_ITERATION parameter.
11316 (number_of_iterations_exit): Check if exit is executed every iteration.
11317 (idx_infer_loop_bounds): Similarly here.
11318 (n_of_executions_at_most): Simplify
11319 to only test for cases where statement is dominated by the
11320 particular bound; handle correctly the "postdominance" test.
11321 (scev_probably_wraps_p): Use max loop iterations info
11322 as a global bound first.
11323
11324 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11325 Nick Clifton <nickc@redhat.com>
11326
11327 * config/v850/v850.md (cbranchsf4): New pattern.
11328 (cstoresf4): New pattern.
11329 (cbranchdf4): New pattern.
11330 (cstoredf4): New pattern.
11331 (movsicc): Disallow floating point comparisons.
11332 (cmpsf_le_insn): Fix order of operators.
11333 (cmpsf_lt_insn): Likewise.
11334 (cmpsf_eq_insn): Likewise.
11335 (cmpdf_le_insn): Likewise.
11336 (cmpdf_lt_insn): Likewise.
11337 (cmpdf_eq_insn): Likewise.
11338 (cmpsf_ge_insn): Use LE comparison.
11339 (cmpdf_ge_insn): Likewise.
11340 (cmpsf_gt_insn): Use LT comparison.
11341 (cmpdf_gt_insn): Likewise.
11342 (cmpsf_ne_insn): Delete pattern.
11343 (cmpdf_ne_insn): Delete pattern.
11344 * config/v850/v850.c (v850_gen_float_compare): Use
11345 gen_cmpdf_eq_insn for NE comparison.
11346 (v850_float_z_comparison_operator)
11347 (v850_float_nz_comparison_operator): Move from here ...
11348 * config/v850/predicates.md: ... to here. Move GT and GE
11349 comparisons into v850_float_z_comparison_operator.
11350 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11351 Delete prototype.
11352 (v850_float_nz_comparison_operator): Likewise.
11353
11354 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11355
11356 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11357 with calls to gen_insvsi/gen_insvdi.
11358
11359 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11360
11361 * config/i386/i386.c (initial_ix86_tune_features): Set up
11362 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11363
11364 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11365 Jakub Jelinek <jakub@redhat.com>
11366
11367 PR tree-optimization/48189
11368 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11369 If nitercst is 0, don't predict the exit edge.
11370
11371 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11372
11373 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11374 in asm_fprintf with reg_names.
11375 (aarch64_print_operand_address): Likewise.
11376 (aarch64_return_addr): Likewise.
11377 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11378
11379 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11380
11381 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11382 (INT_U6_BITS): Likewise.
11383 * config/pa/predicates.md (uint6_operand): New predicate.
11384 (shift5_operand, shift6_operand): Likewise.
11385 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11386 arith32_operand.
11387 (lshrdi3): Use shift6_operand.
11388 (shrpsi4, shrpdi4): New insn patterns.
11389 (extzv): Delete expander.
11390 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11391 predicates in unamed zero extract patterns. Tighten common constraint.
11392 (extv): Delete expander.
11393 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11394 predicates in unamed sign extract patterns. Tighten common constraint.
11395 (insv): Delete expander.
11396 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11397 predicates in unamed insert patterns. Tighten common constraint.
11398 Change uint32_operand predicate to uint6_operand predicate in unamed
11399 DImode pattern to insert constant values of type 1...1xxxx.
11400
11401 2013-01-04 Jan Hubicka <jh@suse.cz>
11402
11403 PR tree-optimization/55823
11404 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11405 issue.
11406
11407 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11408 Uros Bizjak <ubizjak@gmail.com>
11409
11410 PR rtl-optimization/55845
11411 * df-problems.c (can_move_insns_across): Stop scanning at
11412 volatile_insn_p source instruction or give up if
11413 across_from .. across_to range contains any volatile_insn_p
11414 instructions.
11415
11416 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11417
11418 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11419 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11420 Declare.
11421 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11422 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11423
11424 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11425
11426 PR fortran/55341
11427 * asan.c (asan_clear_shadow): New function.
11428 (asan_emit_stack_protection): Use it.
11429
11430 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11431
11432 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11433 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11434 with tab instead of space.
11435
11436 2013-01-08 Nick Clifton <nickc@redhat.com>
11437
11438 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11439 register bank 0 at the start of an interrupt handler.
11440 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11441 MDBH registers.
11442
11443 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11444
11445 * config/aarch64/aarch64-simd.md
11446 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11447 (aarch64_simd_bsl): Likewise.
11448 (aarch64_vcond_internal<mode>): Likewise.
11449 (vcond<mode><mode>): Likewise.
11450 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11451 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11452
11453 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11454
11455 * config/aarch64/aarch64-builtins.c
11456 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11457
11458 2013-01-08 Martin Jambor <mjambor@suse.cz>
11459
11460 PR debug/55579
11461 * tree-sra.c (analyze_access_subtree): Return true also after
11462 potentially creating a debug-only replacement.
11463
11464 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11465
11466 PR middle-end/55890
11467 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11468
11469 PR tree-optimization/54120
11470 * tree-vrp.c (range_fits_type_p): Don't allow
11471 src_precision < precision from signed vr to unsigned_p
11472 if vr->min or vr->max is negative.
11473 (simplify_float_conversion_using_ranges): Test can_float_p
11474 against CODE_FOR_nothing.
11475
11476 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11477 Richard Biener <rguenther@suse.de>
11478
11479 PR middle-end/55851
11480 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11481 types instead of just INTEGER_TYPE types.
11482
11483 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11484
11485 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11486 TF_SIZE): Define.
11487
11488 2013-01-07 Steve Ellcey <sellcey@mips.com>
11489
11490 PR target/42661
11491 * config/mips/mips.opt: Change mad to mmad to match documentation.
11492
11493 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11494
11495 PR target/55897
11496 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11497 .progmemx.data now.
11498
11499 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11500
11501 PR target/55897
11502 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11503 (avr_addrspace_t): Add .section_name field.
11504 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11505 array size.
11506 (avr_addrspace): Same. Initialize .section_name. Remove last
11507 NULL entry. Put __memx into .progmemx.data.
11508 (progmem_section_prefix): Remove.
11509 (avr_asm_init_sections): No need to initialize progmem_section.
11510 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11511 section name prefix.
11512 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11513 retrieve the progmem section.
11514 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11515 boundary to run over avr_addrspace[].
11516 (avr_register_target_pragmas): Ditto.
11517
11518 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11519
11520 * varasm.c (output_constant_def_contents): For asan_protect_global
11521 protected strings, adjust DECL_ALIGN if needed, before testing for
11522 anchored symbols.
11523 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11524 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11525 normal decls.
11526 (output_object_block): For asan protected decls, emit asan padding
11527 after their contents.
11528 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11529 (asan_finish_file): Test it here instead.
11530
11531 2013-01-07 Nick Clifton <nickc@redhat.com>
11532 Matthias Klose <doko@debian.org>
11533 Doug Kwan <dougkwan@google.com>
11534 H.J. Lu <hongjiu.lu@intel.com>
11535
11536 PR driver/55470
11537 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11538
11539 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11540
11541 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11542
11543 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11544
11545 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11546
11547 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11548
11549 PR target/54461
11550 * doc/install.texi (Cross-Compiler-Specific Options): Document
11551 --with-avrlibc.
11552
11553 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11554
11555 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11556 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11557 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11558 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11559 vqmovun_high_s64): Fix source operand number and update copyright.
11560
11561 2013-01-07 Richard Biener <rguenther@suse.de>
11562
11563 PR middle-end/55890
11564 * gimple.h (gimple_call_builtin_p): New overload.
11565 * gimple.c (validate_call): New function.
11566 (gimple_call_builtin_p): Likewise.
11567 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11568 Use gimple_call_builtin_p.
11569 (find_func_clobbers): Likewise.
11570 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11571 (strlen_optimize_stmt): Likewise.
11572
11573 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11574
11575 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11576 (vld1q_dup_*): Likewise.
11577 (vld1_*): Likewise.
11578 (vld1q_*): Likewise.
11579 (vld1_lane_*): Likewise.
11580 (vld1q_lane_*): Likewise.
11581
11582 2013-01-07 Richard Biener <rguenther@suse.de>
11583
11584 * lto-streamer.h (LTO_minor_version): Bump to 2.
11585
11586 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11587
11588 * config/aarch64/aarch64-protos.h
11589 (aarch64_const_double_zero_rtx_p): Rename to...
11590 (aarch64_float_const_zero_rtx_p): ...this.
11591 (aarch64_float_const_representable_p): New.
11592 (aarch64_output_simd_mov_immediate): Likewise.
11593 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11594 move immediate case.
11595 * config/aarch64/aarch64.c
11596 (aarch64_const_double_zero_rtx_p): Rename to...
11597 (aarch64_float_const_zero_rtx_p): ...this.
11598 (aarch64_print_operand): Allow printing of new constants.
11599 (aarch64_valid_floating_const): New.
11600 (aarch64_legitimate_constant_p): Check for valid floating-point
11601 constants.
11602 (aarch64_simd_valid_immediate): Likewise.
11603 (aarch64_vect_float_const_representable_p): New.
11604 (aarch64_float_const_representable_p): Likewise.
11605 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11606 (aarch64_output_simd_mov_immediate): New.
11607 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11608 (*movdf_aarch64): Likewise.
11609 * config/aarch64/constraints.md (Ufc): New.
11610 (Y): call aarch64_float_const_zero_rtx.
11611 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11612
11613 2013-01-07 Richard Biener <rguenther@suse.de>
11614
11615 PR tree-optimization/55888
11616 PR tree-optimization/55862
11617 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11618 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11619 not if it is contained therein.
11620
11621 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11622
11623 * config/avr/t-avr: Typo.
11624
11625 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11626
11627 PR55243
11628 * config/avr/t-avr: Don't automatically rebuild
11629 $(srcdir)/config/avr/t-multilib
11630 $(srcdir)/config/avr/avr-tables.opt
11631 $(srcdir)/doc/avr-mmcu.texi
11632 (avr-mcus): New phony target to build them on request.
11633 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11634 * avr/avr-mcus.def: Adjust comments.
11635
11636 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
11637
11638 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11639
11640 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11641
11642 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11643
11644 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11645
11646 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11647
11648 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
11649
11650 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11651 to generate profiling.
11652 * config/rs6000/aix64.h (LIB_SPEC): Same.
11653
11654 2013-01-04 Andrew Pinski <apinski@cavium.com>
11655
11656 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11657 New function.
11658 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11659
11660 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
11661
11662 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11663 unconditionally.
11664 (ix86_expand_move): Ditto.
11665 (ix86_zero_extend_to_Pmode): Ditto.
11666 (ix86_expand_call): Ditto.
11667 (ix86_expand_special_args_builtin): Ditto.
11668 (ix86_expand_builtin): Ditto.
11669
11670 2013-01-04 Richard Biener <rguenther@suse.de>
11671
11672 PR tree-optimization/55862
11673 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11674 translating them through PHI nodes.
11675
11676 2013-01-04 Martin Jambor <mjambor@suse.cz>
11677
11678 PR tree-optimization/55755
11679 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11680 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11681
11682 2013-01-04 Marek Polacek <polacek@redhat.com>
11683
11684 PR middle-end/55859
11685 * opts.c (default_options_optimization): Clarify error message.
11686
11687 2013-01-04 Richard Biener <rguenther@suse.de>
11688
11689 PR middle-end/55863
11690 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11691 reassociation.
11692
11693 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11694
11695 PR target/53789
11696 * config/pa/pa.md (movsi): Revert previous change.
11697 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11698 references.
11699
11700 2013-01-03 Richard Henderson <rth@redhat.com>
11701
11702 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11703 after eliminating TLS symbols.
11704
11705 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
11706
11707 PR bootstrap/50167
11708 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11709 * graphite-poly.c (debug_gmp_value): Likewise.
11710
11711 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
11712
11713 PR target/55712
11714 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11715 selected code model, define __code_mode_small__, __code_model_medium__,
11716 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11717 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11718 xchg temporary register with %k. Declare temporary register as
11719 early clobbered.
11720 [__x86_64__]: For medium and large code models, preserve %rbx register.
11721
11722 2013-01-03 Richard Biener <rguenther@suse.de>
11723
11724 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
11725 (dump_subscript): Adjust.
11726 (finalize_ddr_dependent): Do not dump redundant info.
11727 (analyze_siv_subscript): Adjust.
11728 (subscript_dependence_tester): Likewise.
11729 (compute_affine_dependence): Likewise.
11730
11731 2013-01-03 Richard Biener <rguenther@suse.de>
11732
11733 Revert
11734 2013-01-03 Richard Biener <rguenther@suse.de>
11735
11736 PR tree-optimization/55857
11737 * tree-vect-stmts.c (vectorizable_load): Do not setup
11738 re-alignment for invariant loads.
11739
11740 2013-01-02 Richard Biener <rguenther@suse.de>
11741
11742 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11743 invariant load do not generate a vector load from the scalar location.
11744
11745 2013-01-03 Richard Biener <rguenther@suse.de>
11746
11747 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11748 for not vectorizing.
11749 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11750 not build INDIRECT_REFs, call get_name once only.
11751 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11752 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11753
11754 2013-01-03 Richard Biener <rguenther@suse.de>
11755
11756 PR tree-optimization/55857
11757 * tree-vect-stmts.c (vectorizable_load): Do not setup
11758 re-alignment for invariant loads.
11759
11760 2013-01-03 Richard Biener <rguenther@suse.de>
11761
11762 PR lto/55848
11763 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11764 prefer a built-in decl.
11765
11766 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11767
11768 * gcc.c (process_command): Update copyright notice dates.
11769 * gcov.c (print_version): Likewise.
11770 * gcov-dump.c (print_version): Likewise.
11771
11772 PR rtl-optimization/55838
11773 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11774 iv0.step, iv1.step and step.
11775
11776 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11777 Marc Glisse <marc.glisse@inria.fr>
11778
11779 PR tree-optimization/55832
11780 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11781 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11782 integer_{one,zero}_node.
11783
11784 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11785
11786 PR debug/54402
11787 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11788 * var-tracking.c (reverse_op): Don't add reverse ops to
11789 VALUEs that have already
11790 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
11791
11792 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11793
11794 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11795
11796 2013-01-02 Teresa Johnson <tejohnson@google.com>
11797
11798 * dumpfile.c (dump_loc): Print filename with location.
11799 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11800 new location_t parameter to emit complete unroll message with
11801 new dump framework.
11802 (canonicalize_loop_induction_variables): Compute loops location
11803 and pass to try_unroll_loop_completely.
11804 * loop-unroll.c (report_unroll_peel): New function.
11805 (peel_loops_completely): Use new dump format with location
11806 for main dumpfile message, and invoke report_unroll_peel on success.
11807 (decide_unrolling_and_peeling): Ditto.
11808 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11809 by report_unroll_peel.
11810 (decide_peel_completely): Ditto.
11811 (decide_unroll_constant_iterations): Ditto.
11812 (decide_unroll_runtime_iterations): Ditto.
11813 (decide_peel_simple): Ditto.
11814 (decide_unroll_stupid): Ditto.
11815 * cfgloop.c (get_loop_location): New function.
11816 * cfgloop.h (get_loop_location): Declare.
11817
11818 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11819
11820 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11821 NULL.
11822
11823 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11824
11825 PR middle-end/55198
11826 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11827 BLKmode objects when EXPAND_MEMORY is specified.
11828
11829 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11830
11831 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11832 in loop predicate.
11833 (fold_builtin_cpu): Do not share cpu model decls across statements.
11834
11835 2013-01-02 Jason Merrill <jason@redhat.com>
11836
11837 PR c++/55804
11838 * tree.c (build_array_type_1): Revert earlier change.
11839
11840 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11841
11842 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11843 "cortex-a57".
11844 * config/aarch64/aarch64-tune.md: Re-generate.
11845
11846 2013-01-02 Richard Biener <rguenther@suse.de>
11847
11848 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11849 invariant load do not generate a vector load from the scalar location.
11850
11851 2013-01-02 Richard Biener <rguenther@suse.de>
11852
11853 PR bootstrap/55784
11854 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11855 * configure: Regenerate.
11856
11857 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11858
11859 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11860 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11861 (expand_builtin_int_roundingfn_2): Keep the original target around
11862 for the fallback case.
11863
11864 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11865
11866 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11867 to be clear for sign changes.
11868
11869 2013-01-01 Jan Hubicka <jh@suse.cz>
11870
11871 * ipa-inline-analysis.c: Fix formatting.
11872
11873 2013-01-01 Jakub Jelinek <jakub@redhat.com>
11874
11875 PR tree-optimization/55831
11876 * tree-vect-loop.c (get_initial_def_for_induction): Use
11877 gsi_after_labels instead of gsi_start_bb.
11878 \f
11879 Copyright (C) 2013 Free Software Foundation, Inc.
11880
11881 Copying and distribution of this file, with or without modification,
11882 are permitted in any medium without royalty provided the copyright
11883 notice and this notice are preserved.