1 2013-07-30 David Malcolm <dmalcolm@redhat.com>
3 * Makefile.in (PASS_MANAGER_H): New.
4 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
6 (statistics.o): Likewise.
7 (cgraphunit.o): Likewise.
8 (context.o): Depend on PASS_MANAGER_H.
10 * pass_manager.h: New.
12 * cgraphunit.c (cgraph_add_new_function): Update for moves
13 of globals to fields of pass_manager.
14 (analyze_function): Likewise.
15 (expand_function): Likewise.
16 (ipa_passes): Likewise.
19 * context.c (context::context): New.
20 * context.h (context::context): New.
21 (context::get_passes): New.
22 (context::passes_): New.
24 * lto-cgraph.c (input_node): Update for moves of globals to
25 fields of pass_manager.
27 * passes.c (all_passes): Remove, in favor of a field of the
28 same name within the new class pass_manager.
29 (all_small_ipa_passes): Likewise.
30 (all_lowering_passes): Likewise.
31 (all_regular_ipa_passes): Likewise.
32 (all_late_ipa_passes): Likewise.
33 (all_lto_gen_passes): Likewise.
34 (passes_by_id): Likewise.
35 (passes_by_id_size): Likewise.
36 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
37 the new class pass_manager.
38 (set_pass_for_id): Convert to...
39 (pass_manager::set_pass_for_id): ...method.
40 (get_pass_for_id): Convert to...
41 (pass_manager::get_pass_for_id): ...method.
42 (register_one_dump_file): Move body of implementation into...
43 (pass_manager::register_one_dump_file): ...here.
44 (register_dump_files_1): Convert to...
45 (pass_manager::register_dump_files_1): ...method.
46 (register_dump_files): Convert to...
47 (pass_manager::register_dump_files): ...method.
48 (create_pass_tab): Update for moves of globals to fields of
50 (dump_passes): Move body of implementation into...
51 (pass_manager::dump_passes): ...here.
52 (register_pass): Move body of implementation into...
53 (pass_manager::register_pass): ...here.
54 (init_optimization_passes): Convert into...
55 (pass_manager::pass_manager): ...constructor for new
56 pass_manager class, and initialize the pass_lists array.
57 (check_profile_consistency): Update for moves of globals to
58 fields of pass_manager.
59 (dump_profile_report): Move body of implementation into...
60 (pass_manager::dump_profile_report): ...here.
61 (ipa_write_summaries_1): Update for moves of pass lists from
62 being globals to fields of pass_manager.
63 (ipa_write_optimization_summaries): Likewise.
64 (ipa_read_summaries): Likewise.
65 (ipa_read_optimization_summaries): Likewise.
66 (execute_all_ipa_stmt_fixups): Likewise.
68 * statistics.c (statistics_fini): Update for moves of globals to
69 fields of pass_manager.
71 * toplev.c (general_init): Replace call to
72 init_optimization_passes with construction of the pass_manager
75 * tree-pass.h (all_passes): Remove, in favor of a field of the
76 same name within the new class pass_manager.
77 (all_small_ipa_passes): Likewise.
78 (all_lowering_passes): Likewise.
79 (all_regular_ipa_passes): Likewise.
80 (all_lto_gen_passes): Likewise.
81 (all_late_ipa_passes): Likewise.
82 (passes_by_id): Likewise.
83 (passes_by_id_size): Likewise.
84 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
85 the new class pass_manager.
86 (get_pass_for_id): Remove.
88 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
90 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
93 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
95 * arm.md (mulhi3): New expand pattern.
97 2013-07-30 Jan Hubicka <jh@suse.cz>
98 Martin Liska <marxin.liska@gmail.com>
100 * profile.c (compute_value_histograms): Do not ICE when
101 there is mismatch only on some counters.
103 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
105 PR rtl-optimization/57637
106 * function.c (move_insn_for_shrink_wrap): Also check the
107 GEN set of the LIVE problem for the liveness analysis
108 if it exists, otherwise give up.
110 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
112 PR tree-optimization/57993
113 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
114 replaced statement in the candidate table.
115 (phi_add_costs): Return infinite cost when the hidden basis does
116 not dominate all phis on which the candidate is dependent.
117 (replace_one_candidate): Record replaced statement in the
120 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
122 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
123 (ashlv2si3): New expander.
124 (*ashlv2si3_i): New define_insn_and_split.
125 * predicates.md (float_operation): Allow patterns with three
128 PR rtl-optimization/58021
129 * mode-switching.c (create_pre_exit): Always split off preceding
130 insns if we are not at the basic block head.
132 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
134 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
135 (UCLIBC_DYNAMIC_LINKER): New macro.
136 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
138 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
139 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
141 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
142 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
143 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
144 for SF and DF modes. Use ieee_quad_format for TF mode.
145 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
146 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
147 (mips_option_override): Handle `-mnan=legacy'.
148 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
149 `-mabs=2008' and `-mnan=2008'.
150 (OPTION_DEFAULT_SPECS): Add "nan" default.
151 (ASM_SPEC): Handle `-mnan='.
152 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
153 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
155 (neg<mode>2): Likewise.
156 * config/mips/mips.opt (mabs, mnan): New options.
157 * doc/install.texi (Configuration): Document `--with-nan=' option.
158 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
160 (MIPS Options): Document them.
161 * config.gcc <mips*-*-*>: Handle `--with-nan='.
162 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
163 * configure: Regenerate.
164 * config.in: Regenerate.
166 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
168 * config/i386/i386.md (float post-reload splitters): Do not check
169 for subregs of SSE registers.
171 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
172 H.J. Lu <hongjiu.lu@intel.com>
176 * config/i386/i386.md (post-reload splitter
177 to avoid partial SSE reg dependency stalls): New pattern.
179 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
181 * config/s390/s390.md ("movcc"): Swap load and store instructions.
183 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
185 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
186 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
188 2013-07-26 Cary Coutant <ccoutant@google.com>
190 * dwarf2out.c (die_checksum_ordered): Don't include template
191 instantiations in signature.
192 (is_template_parameter): New function.
193 (is_template_instantiation): New function.
194 (generate_skeleton_bottom_up): Don't include template instantiations
196 (generate_skeleton): Likewise.
197 (break_out_comdat_types): Move recursive call to break out nested
199 (prune_unused_types_mark_generic_parms_dies): Call
200 is_template_parameter.
202 2013-07-26 Ian Bolton <ian.bolton@arm.com>
204 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
205 uses vector registers.
206 * config/aarch64/iterators.md: Add attributes rtn and vas.
208 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
209 Richard Earnshaw <richard.earnshaw@arm.com>
211 * combine.c (simplify_comparison): Re-canonicalize operands
213 * config/arm/arm.md (movcond_addsi): New splitter.
215 2013-07-25 Sterling Augustine <saugustine@google.com>
217 * dwarf2out.c (size_of_pubnames): Move code to...
218 (include_pubname_in_output): ...here. New.
219 (want_pubnames): Rearrange.
220 (output_pubnames): Call include_pubname_in_output. Move assertion.
222 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
224 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
226 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
229 * doc/extend.texi: Remove obsolete builtins. Fix
230 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
232 2013-07-25 Jan Hubicka <jh@suse.cz>
234 * cgraph.c (release_function_body): Break out from ...
235 (cgraph_release_function_body): ... this one; also release DECL_RESULT
237 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
239 (create_specialized_node): Update.
240 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
242 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
243 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
244 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
245 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
248 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
250 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
251 addsi3_carryin_alt2_<optab>): Correct output template.
253 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
255 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
256 Adjust for arm_restrict_it.
257 Remove trailing whitespace.
259 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
261 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
262 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
264 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
266 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
268 PR rtl-optimization/57960
269 * lra-constraints.c (process_alt_operands): Use the right mode
270 when checking strict_low.
272 2013-07-25 Jan Hubicka <jh@suse.cz>
274 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
275 * cgraph.c (cgraph_remove_node): Do not release function body
276 when in cgraph streaming.
277 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
278 in other partitions are not considered reachable; fix handling of
281 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
283 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
285 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
290 * config/arm/arm.md ("*sibcall_insn): Replace use of
291 Ss with US. Adjust output for v5 and v4t.
292 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
294 * config/arm/constraints.md ("Ss"): Rename to US.
296 2013-07-25 Terry Guo <terry.guo@arm.com>
298 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
299 shift_add/shift_sub0/shift_sub1 RTXs.
301 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
302 Anton Blanchard <anton@au1.ibm.com>
304 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
305 (altivec_vpks<VI_char>ss): Likewise.
306 (altivec_vpks<VI_char>us): Likewise.
307 (altivec_vpku<VI_char>us): Likewise.
308 (altivec_vpku<VI_char>um): Likewise.
310 2013-07-24 David Malcolm <dmalcolm@redhat.com>
312 Introduce context class.
314 * Makefile.in (CONTEXT_H): New.
315 (OBJS): Add context.o.
316 (toplev.o): Add CONTEXT_H to dependencies.
319 * toplev.c (general_init): Create the singleton gcc::context instance.
325 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
327 PR rtl-optimization/57968
328 * mode-switching.c (create_pre_exit): Allow instructions that
329 don't set a return register to need a non-exit mode.
331 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
332 Anton Blanchard <anton@au1.ibm.com>
334 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
335 operands to vperm for little endian.
336 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
337 of lvsl to create the control mask for a vperm for little endian.
339 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
340 Anton Blanchard <anton@au1.ibm.com>
342 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
343 two operands for little-endian.
345 2013-07-23 Steve Ellcey <sellcey@mips.com>
347 * config/mips/mips.c (mips_case_values_threshold): New.
348 (TARGET_CASE_VALUES_THRESHOLD): Define.
350 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
351 Anton Blanchard <anton@au1.ibm.com>
353 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
354 selection of field for vector splat in little endian mode.
356 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
358 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
359 expanders to rs6000.md.
360 (ior<mode>3): Likewise.
361 (and<mode>3): Likewise.
362 (one_cmpl<mode>2): Likewise.
363 (nor<mode>3): Likewise.
364 (andc<mode>3): Likewise.
365 (eqv<mode>3): Likewise.
366 (nand<mode>3): Likewise.
367 (orc<mode>3): Likewise.
369 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
372 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
373 to split multi-word logical operations.
374 (rs6000_split_logical_di): Likewise.
375 (rs6000_split_logical): Likewise.
377 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
378 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
379 and allow TImode operations in 32-bit.
380 (vsx_and<mode>3_64bit): Likewise.
381 (vsx_ior<mode>3_32bit): Likewise.
382 (vsx_ior<mode>3_64bit): Likewise.
383 (vsx_xor<mode>3_32bit): Likewise.
384 (vsx_xor<mode>3_64bit): Likewise.
385 (vsx_one_cmpl<mode>2_32bit): Likewise.
386 (vsx_one_cmpl<mode>2_64bit): Likewise.
387 (vsx_nor<mode>3_32bit): Likewise.
388 (vsx_nor<mode>3_64bit): Likewise.
389 (vsx_andc<mode>3_32bit): Likewise.
390 (vsx_andc<mode>3_64bit): Likewise.
391 (vsx_eqv<mode>3_32bit): Likewise.
392 (vsx_eqv<mode>3_64bit): Likewise.
393 (vsx_nand<mode>3_32bit): Likewise.
394 (vsx_nand<mode>3_64bit): Likewise.
395 (vsx_orc<mode>3_32bit): Likewise.
396 (vsx_orc<mode>3_64bit): Likewise.
398 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
399 logical types in GPRs.
401 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
402 logical insns to rs6000.md, and allow TImode operations in
404 (altivec_ior<mode>3): Likewise.
405 (altivec_xor<mode>3): Likewise.
406 (altivec_one_cmpl<mode>2): Likewise.
407 (altivec_nor<mode>3): Likewise.
408 (altivec_andc<mode>3): Likewise.
410 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
411 attributes for moving the 128-bit logical operations into
413 (BOOL_REGS_OUTPUT): Likewise.
414 (BOOL_REGS_OP1): Likewise.
415 (BOOL_REGS_OP2): Likewise.
416 (BOOL_REGS_UNARY): Likewise.
417 (BOOL_REGS_AND_CR0): Likewise.
418 (one_cmpl<mode>2): Add support for DI logical operations on
419 32-bit, splitting the operations to 32-bit.
423 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
424 changes to combine the 32/64-bit code, allow logical operations on
425 TI mode in 32-bit, and to use similar match_operator patterns like
426 scalar mode uses. Combine the Altivec and VSX code for logical
427 operations, and move it here.
428 (ior<mode>3, 128-bit types): Likewise.
429 (xor<mode>3, 128-bit types): Likewise.
430 (one_cmpl<mode>3, 128-bit types): Likewise.
431 (nor<mode>3, 128-bit types): Likewise.
432 (andc<mode>3, 128-bit types): Likewise.
433 (eqv<mode>3, 128-bit types): Likewise.
434 (nand<mode>3, 128-bit types): Likewise.
435 (orc<mode>3, 128-bit types): Likewise.
436 (and<mode>3_internal): Likewise.
437 (bool<mode>3_internal): Likewise.
438 (boolc<mode>3_internal1): Likewise.
439 (boolc<mode>3_internal2): Likewise.
440 (boolcc<mode>3_internal1): Likewise.
441 (boolcc<mode>3_internal2): Likewise.
442 (eqv<mode>3_internal1): Likewise.
443 (eqv<mode>3_internal2): Likewise.
444 (one_cmpl1<mode>3_internal): Likewise.
446 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
448 * config/microblaze/microblaze.c (microblaze_expand_prologue):
449 Rename flag_stack_usage to flag_stack_usage_info.
451 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
453 * config/microblaze/sync.md: New file.
454 * config/microblaze/microblaze.md: Include sync.md
455 * config/microblaze/microblaze.c: Add print_operand 'y'.
456 * config/microblaze/constraints.md: Add memory_contraint
457 'Q' which is a single register.
459 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
461 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
463 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
465 * reload.c (find_reloads): Exit loop once we find this operand
466 cannot be reloaded somehow for this alternative.
468 * reload.c (find_reloads): Exit loop once we find a hard register.
470 * rtlanal.c (computed_jump_p): Exit loop once we find label
473 * i386.c (ix86_pad_returns): Exit loop after setting replace.
475 * cfgloopmanip.c (remove_path): Exit loop after setting
478 * gensupport.c (subst_dup): Avoid loop if code is not
479 MATCH_DUP nor MATCH_OP_DUP.
481 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
483 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
485 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
487 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
488 true for SP_REGNUM if mode == ptr_mode.
489 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
490 with value R0_REGNUM + 31.
492 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
494 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
495 pad pointer-typed argument downward.
497 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
499 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
500 and __ILP32__ when the ILP32 model is in use.
502 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
504 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
505 (aarch64_load_symref_appropriately): In the case of
506 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
507 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
508 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
509 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
510 if 'mode' doesn't equal to 'ptr_mode'.
511 (aarch64_output_mi_thunk): Add an assertion on the alignment of
512 'vcall_offset'; change to call aarch64_emit_move differently depending
513 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
514 to calculate the upper bound of 'vcall_offset'.
515 (aarch64_cannot_force_const_mem): Change to also return true if
517 (aarch64_legitimize_reload_address): In the case of large
518 displacements, add new local variable 'xmode' and an assertion
519 based on it; change to use 'xmode' to generate the new rtx and
521 (aarch64_asm_trampoline_template): Change to generate the template
522 differently depending on TARGET_ILP32 or not; change to use
523 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
524 (aarch64_trampoline_size): Removed.
525 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
526 and replace immediate literals with it. Change to use 'ptr_mode'
527 instead of 'DImode' and call convert_memory_address if the mode
528 of 'fnaddr' doesn't equal to 'ptr_mode'.
529 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
531 (aarch64_elf_asm_destructor): Likewise.
532 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
533 on TARGET_ILP32 instead of aarch64_trampoline_size.
534 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
535 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
536 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
537 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
538 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
539 (storewb_pair<GPI:mode>_<P:mode>): ... this.
540 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
541 depending on the value of 'mode'.
542 (add_losym_<mode>): New.
543 (ldr_got_small_<mode>): New, based on ldr_got_small.
544 (ldr_got_small): Remove.
545 (ldr_got_small_sidi): New.
546 * config/aarch64/iterators.md (P): New.
547 (PTR): Change to 'ptr_mode' in the condition.
549 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
551 * config.gcc (aarch64*-*-*): Support --with-abi.
552 (aarch64*-*-elf): Support --with-multilib-list.
553 (aarch64*-*-linux*): Likewise.
554 (supported_defaults): Add abi to aarch64*-*-*.
555 * configure.ac: Mention AArch64 for --with-multilib-list.
556 * configure: Re-generated.
557 * config/aarch64/biarchilp32.h: New file.
558 * config/aarch64/biarchlp64.h: New file.
559 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
561 (MULTILIB_DEFAULTS): Ditto.
562 (DRIVER_SELF_SPECS): Ditto.
563 (ASM_SPEC): Update to also substitute -mabi.
564 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
565 file whose name depends on -mabi= and -mbig-endian.
566 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
568 (POINTER_SIZE): New define.
569 (POINTERS_EXTEND_UNSIGNED): Ditto.
570 (enum aarch64_abi_type): New enumeration tag.
571 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
572 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
573 (TARGET_ILP32): New define.
574 * config/aarch64/aarch64.opt (mabi): New.
576 (ilp32, lp64): New values for -mabi.
577 * config/aarch64/t-aarch64 (comma): New define.
578 (MULTILIB_OPTIONS): Ditto.
579 (MULTILIB_DIRNAMES): Ditto.
580 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
581 * doc/invoke.texi: Document -mabi for AArch64.
583 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
585 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
587 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
588 Anton Blanchard <anton@au1.ibm.com>
590 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
591 endianness when selecting field to splat.
593 2013-07-22 Eric Christopher <echristo@gmail.com>
595 * dwarf2out.c (die_odr_checksum): New function to use
596 CHECKSUM_ macros and ULEB128 for DIE tag.
597 (generate_type_signature): Use.
599 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
601 * config.gcc (sparc*-*-*): Accept leon3 processor.
602 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
603 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
604 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
605 * config/sparc/sparc.opt (enum processor_type): Add leon3.
606 (mfix-ut699): Adjust comment.
607 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
608 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
609 (CPP_CPU_SPEC): Likewise.
610 (ASM_CPU_SPEC): Likewise.
611 * config/sparc/sparc.c (leon3_cost): New constant.
612 (sparc_option_override): Add leon3 support.
613 (mem_ref): New function.
614 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
615 (sparc_do_work_around_errata): Look into the instruction in the delay
616 slot and adjust accordingly. Add fix for the data cache nullify issues
617 of the UT699. Change insertion position for the NOP.
618 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
619 (leon3_load): New reservation.
620 (leon_store): Bump latency to 2.
621 (grfpu): New automaton.
622 (grfpu_alu): New unit.
623 (grfpu_ds): Likewise.
624 (leon_fp_alu): Adjust.
625 (leon_fp_mult): Delete.
626 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
627 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
628 * config/sparc/sparc.md (cpu): Add leon3.
629 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
631 (atomic_test_and_set): Likewise.
634 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
636 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
637 default for R5900 targets.
638 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
639 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
640 * config/mips/mips.c (mips_option_override): Report an error for
641 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
642 for -march=r5900 -mhard-float.
644 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
646 * df-problems.c (can_move_insns_across): Exit loop once we
647 find a non-fixed, non-global register.
649 * ipa-pure-const.c (propagate_nothrow): Exit loop after
652 * omega.c (omega_eliminate_red): Break after setting red_found.
653 (omega_problem_has_red_equations): Similarly after setting found.
654 (omega_query_variable): Similarly after setting coupled.
656 2013-07-22 Marek Polacek <polacek@redhat.com>
658 * gimplify.c: Don't include gimple.h twice.
660 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
662 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
663 instead of TARGET_THUMB1.
664 (Pz): New constraint.
665 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
667 (compare_negsi_si): Likewise.
668 (compare_addsi2_op0): Likewise.
669 (compare_addsi2_op1): Likewise.
670 (addsi3_carryin_<optab>): Likewise.
671 (addsi3_carryin_alt2_<optab>): Likewise.
672 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
674 (subsi3_carryin): Likewise.
675 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
676 (minmax_arithsi): Disable for arm_restrict_it.
677 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
678 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
679 (satsi_<SAT:code>_shift): Likewise.
680 (arm_shiftsi3): Add alternative for 16-bit encoding.
681 (arm32_movhf): Disable for arm_restrict_it.
682 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
683 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
685 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
687 * config/arm/arm.md (attribute "insn"): Delete.
688 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
689 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
690 (not_shiftsi): Update for attribute change.
691 (not_shiftsi_compare0): Likewise.
692 (not_shiftsi_compare0_scratch): Likewise.
693 (arm_one_cmplsi2): Likewise.
694 (thumb1_one_cmplsi2): Likewise.
695 (notsi_compare0): Likewise.
696 (notsi_compare0_scratch): Likewise.
697 (thumb1_movdi_insn): Likewise.
698 (arm_movsi_insn): Likewise.
699 (movhi_insn_arch4): Likewise.
700 (movhi_bytes): Likewise.
701 (arm_movqi_insn): Likewise.
702 (thumb1_movqi_insn): Likewise.
703 (arm32_movhf): Likewise.
704 (thumb1_movhf): Likewise.
705 (arm_movsf_soft_insn): Likewise.
706 (thumb1_movsf_insn): Likewise.
707 (thumb_movdf_insn): Likewise.
708 (movsicc_insn): Likewise.
709 (movsfcc_soft_insn): Likewise.
711 (cond_move): Likewise.
712 (if_move_not): Likewise.
713 (if_not_move): Likewise.
714 (if_shift_move): Likewise.
715 (if_move_shift): Likewise.
716 (if_shift_shift): Likewise.
717 (if_not_arith): Likewise.
718 (if_arith_not): Likewise.
719 (cond_move_not): Likewise.
720 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
721 (neon_mov<mode>): Likewise.
722 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
723 (thumb2_movsi_vfp): Likewise.
724 (movsf_vfp): Likewise.
725 (thumb2_movsf_vfp): Likewise.
726 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
728 (cortexa7_older_only): Likewise.
729 (cortexa7_younger): Likewise.
730 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
731 (1020alu_shift_op): Likewise.
732 (1020alu_shift_reg_op): Likewise.
733 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
734 (alu_shift_op): Likewise.
735 (alu_shift_reg_op): Likewise.
736 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
737 (11_alu_shift_op): Likewise.
738 (11_alu_shift_reg_op): Likewise.
739 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
740 (9_alu_shift_reg_op): Likewise.
741 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
743 (cortex_a15_alu_shift): Likewise.
744 (cortex_a15_alu_shift_reg): Likewise.
745 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
746 (cortex_a5_alu_shift): Likewise.
747 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
749 (cortex_a53_alu_shift): Likewise.
750 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
752 (cortex_a7_alu_reg): Likewise.
753 (cortex_a7_alu_shift): Likewise.
754 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
755 (cortex_a8_alu_shift): Likewise.
756 (cortex_a8_alu_shift_reg): Likewise.
757 (cortex_a8_mov): Likewise.
758 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
759 (cortex_a9_dp_shift): Likewise.
760 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
761 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
762 (cortex_r4_mov): Likewise.
763 (cortex_r4_alu_shift): Likewise.
764 (cortex_r4_alu_shift_reg): Likewise.
765 * config/arm/fa526.md (526_alu_op): Update for attribute change.
766 (526_alu_shift_op): Likewise.
767 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
768 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
769 (626te_alu_shift_op): Likewise.
770 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
771 (726te_alu_op): Likewise.
772 (726te_alu_shift_op): Likewise.
773 (726te_alu_shift_reg_op): Likewise.
774 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
775 (mp626_alu_shift_op): Likewise.
776 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
777 (pj4_alu_e1_conds): Likewise.
779 (pj4_alu_conds): Likewise.
780 (pj4_shift): Likewise.
781 (pj4_shift_conds): Likewise.
782 (pj4_alu_shift): Likewise.
783 (pj4_alu_shift_conds): Likewise.
785 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
787 * config/arm/predicates.md (shiftable_operator_strict_it):
789 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
790 Disable cond_exec version for arm_restrict_it.
791 (thumb2_smaxsi3): Convert to generate cond_exec.
792 (thumb2_sminsi3): Likewise.
793 (thumb32_umaxsi3): Likewise.
794 (thumb2_uminsi3): Likewise.
795 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
796 (thumb2_neg_abssi2): Likewise.
797 (thumb2_mov_scc): Add alternative for 16-bit encoding.
798 (thumb2_movsicc_insn): Adjust alternatives.
799 (thumb2_mov_negscc): Disable for arm_restrict_it.
800 (thumb2_mov_negscc_strict_it): New pattern.
801 (thumb2_mov_notscc_strict_it): New pattern.
802 (thumb2_mov_notscc): Disable for arm_restrict_it.
803 (thumb2_ior_scc): Likewise.
804 (thumb2_ior_scc_strict_it): New pattern.
805 (thumb2_cond_move): Adjust for arm_restrict_it.
806 (thumb2_cond_arith): Disable for arm_restrict_it.
807 (thumb2_cond_arith_strict_it): New pattern.
808 (thumb2_cond_sub): Adjust for arm_restrict_it.
809 (thumb2_movcond): Likewise.
810 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
811 (thumb2_zero_extendhisi2_v6): Likewise.
812 (thumb2_zero_extendqisi2_v6): Likewise.
813 (orsi_notsi_si): Likewise.
814 (orsi_not_shiftsi_si): Likewise.
816 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
818 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
819 instruction sequence is 1 byte shorter.
821 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
823 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
824 it is not needed after split.
826 2013-07-20 Iain Sandoe <iain@codesourcery.com>
829 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
830 second label for nonlocal goto receivers. Don't output pic base labels
831 unless we're producing PIC; mark that action unreachable().
832 (ix86_save_reg): If the function contains a nonlocal label, save the
834 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
835 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
836 (update_pic_label_number_if_needed): New.
837 (machopic_output_function_base_name): Adjust for nonlocal receiver
839 (machopic_should_output_picbase_label): New.
840 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
841 (nonlocal_goto_receiver): New insn and split.
843 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
845 * config/aarch64/aarch64-builtins.c
846 (aarch64_fold_builtin): Fold abs in all modes.
847 * config/aarch64/aarch64-simd-builtins.def
848 (abs): Enable for all modes.
849 * config/aarch64/arm_neon.h
850 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
851 (vabs_f64): Add missing intrinsic.
853 2013-07-19 Ian Bolton <ian.bolton@arm.com>
855 * config/aarch64/arm_neon.h (vabs_s64): New function
857 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
860 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
861 * config/avr/avr.md (adjust_len): Add `round'.
862 * config/avr/avr-protos.h (avr_out_round): New prototype.
863 (avr_out_plus): Add `out_label' argument.
864 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
865 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
866 Handle the case where `insn' is just a pattern.
867 (avr_out_bitop): Handle the case where `insn' is just a pattern.
868 (avr_out_round): New function.
869 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
871 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
873 * config/microblaze/microblaze.c (microblaze_expand_prologue):
874 Add check for flag_stack_usage to handle -fstack-usage support
876 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
878 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
879 interaction for new Power8 flags and VSX.
881 2013-07-18 Sriraman Tallam <tmsriram@google.com>
884 * tree-inline.c (expand_call_inline): Emit errors during
885 early_inlining only if optimization is not turned on.
887 2013-07-18 David Malcolm <dmalcolm@redhat.com>
891 * passes.c (init_optimization_passes): Move the construction of
892 the pass hierarchy into a new passes.def file.
894 * Makefile.in (passes.o): Add dependency on passes.def.
896 2013-07-18 David Malcolm <dmalcolm@redhat.com>
898 * passes.c (init_optimization_passes): Introduce macros for
899 constructing the tree of passes (INSERT_PASSES_AFTER,
900 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
901 TERMINATE_PASS_LIST).
903 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
904 Wei Mi <wmi@google.com>
906 PR rtl-optimization/57878
907 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
909 (reload_pseudo_compare_func): Check nregs first for reload
912 2013-07-18 David Malcolm <dmalcolm@redhat.com>
914 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
916 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
918 * read-rtl.c (validate_const_int): Once an invalid character is
921 * gengtype.c (write_roots): Similarly once we find the "deletable"
922 or "if_marked" option.
924 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
926 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
927 "xtab" and "sat". Move value "clz" from here to ...
928 (attriubte "type"): ... here.
929 (satsi_<SAT:code>): Delete "insn" attribute.
930 (satsi_<SAT:code>_shift): Likewise.
931 (arm_zero_extendqisi2addsi): Likewise.
932 (arm_extendqisi2addsi): Likewise.
933 (clzsi2): Update for attribute changes.
935 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
937 (arm_usatsihi): Likewise.
938 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
940 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
942 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
943 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
944 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
945 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
946 in alphabetical order.
947 (attribute "core_cycles"): Update for attribute changes.
948 (arm_addsi3): Likewise.
949 (addsi3_compare0): Likewise.
950 (addsi3_compare0_scratch): Likewise.
951 (addsi3_compare_op1): Likewise.
952 (addsi3_compare_op2): Likewise.
953 (compare_addsi2_op0): Likewise.
954 (compare_addsi2_op1): Likewise.
955 (addsi3_carryin_shift_<optab>): Likewise.
956 (subsi3_carryin_shift): Likewise.
957 (rsbsi3_carryin_shift): Likewise.
958 (arm_subsi3_insn): Likewise.
959 (subsi3_compare0): Likewise.
960 (subsi3_compare): Likewise.
961 (arm_andsi3_insn): Likewise.
962 (thumb1_andsi3_insn): Likewise.
963 (andsi3_compare0): Likewise.
964 (andsi3_compare0_scratch): Likewise.
965 (zeroextractsi_compare0_scratch
966 (andsi_not_shiftsi_si): Likewise.
967 (iorsi3_insn): Likewise.
968 (iorsi3_compare0): Likewise.
969 (iorsi3_compare0_scratch): Likewise.
970 (arm_xorsi3): Likewise.
971 (thumb1_xorsi3_insn): Likewise.
972 (xorsi3_compare0): Likewise.
973 (xorsi3_compare0_scratch): Likewise.
974 (satsi_<SAT:code>_shift): Likewise.
976 (arm_shiftsi3): Likewise.
977 (shiftsi3_compare0): Likewise.
978 (not_shiftsi): Likewise.
979 (not_shiftsi_compare0): Likewise.
980 (not_shiftsi_compare0_scratch): Likewise.
981 (arm_one_cmplsi2): Likewise.
982 (thumb_one_complsi2): Likewise.
983 (notsi_compare0): Likewise.
984 (notsi_compare0_scratch): Likewise.
985 (thumb1_zero_extendhisi2): Likewise.
986 (arm_zero_extendhisi2): Likewise.
987 (arm_zero_extendhisi2_v6): Likewise.
988 (arm_zero_extendhisi2addsi): Likewise.
989 (thumb1_zero_extendqisi2): Likewise.
990 (thumb1_zero_extendqisi2_v6): Likewise.
991 (arm_zero_extendqisi2): Likewise.
992 (arm_zero_extendqisi2_v6): Likewise.
993 (arm_zero_extendqisi2addsi): Likewise.
994 (thumb1_extendhisi2): Likewise.
995 (arm_extendhisi2): Likewise.
996 (arm_extendhisi2_v6): Likewise.
997 (arm_extendqisi): Likewise.
998 (arm_extendqisi_v6): Likewise.
999 (arm_extendqisi2addsi): Likewise.
1000 (thumb1_extendqisi2): Likewise.
1001 (thumb1_movdi_insn): Likewise.
1002 (arm_movsi_insn): Likewise.
1003 (movsi_compare0): Likewise.
1004 (movhi_insn_arch4): Likewise.
1005 (movhi_bytes): Likewise.
1006 (arm_movqi_insn): Likewise.
1007 (thumb1_movqi_insn): Likewise.
1008 (arm32_movhf): Likewise.
1009 (thumb1_movhf): Likewise.
1010 (arm_movsf_soft_insn): Likewise.
1011 (thumb1_movsf_insn): Likewise.
1012 (movdf_soft_insn): Likewise.
1013 (thumb_movdf_insn): Likewise.
1014 (arm_cmpsi_insn): Likewise.
1015 (cmpsi_shiftsi): Likewise.
1016 (cmpsi_shiftsi_swp): Likewise.
1017 (arm_cmpsi_negshiftsi_si): Likewise.
1018 (movsicc_insn): Likewise.
1019 (movsfcc_soft_insn): Likewise.
1020 (arith_shiftsi): Likewise.
1021 (arith_shiftsi_compare0
1022 (arith_shiftsi_compare0_scratch
1023 (sub_shiftsi): Likewise.
1024 (sub_shiftsi_compare0
1025 (sub_shiftsi_compare0_scratch
1026 (and_scc): Likewise.
1027 (cond_move): Likewise.
1028 (if_plus_move): Likewise.
1029 (if_move_plus): Likewise.
1030 (if_move_not): Likewise.
1031 (if_not_move): Likewise.
1032 (if_shift_move): Likewise.
1033 (if_move_shift): Likewise.
1034 (if_shift_shift): Likewise.
1035 (if_not_arith): Likewise.
1036 (if_arith_not): Likewise.
1037 (cond_move_not): Likewise.
1038 (thumb1_ashlsi3): Set type attribute.
1039 (thumb1_ashrsi3): Likewise.
1040 (thumb1_lshrsi3): Likewise.
1041 (thumb1_rotrsi3): Likewise.
1042 (shiftsi3_compare0_scratch): Likewise.
1043 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
1044 (neon_mov<mode>): Likewise.
1045 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
1047 (thumb2_movsi_insn): Likewise.
1048 (thumb2_cmpsi_neg_shiftsi): Likewise.
1049 (thumb2_extendqisi_v6): Likewise.
1050 (thumb2_zero_extendhisi2_v6): Likewise.
1051 (thumb2_zero_extendqisi2_v6): Likewise.
1052 (thumb2_shiftsi3_short): Likewise.
1053 (thumb2_addsi3_compare0_scratch): Likewise.
1054 (orsi_not_shiftsi_si): Likewise.
1055 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
1056 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
1058 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
1059 (1020alu_shift_op): Likewise.
1060 (1020alu_shift_reg_op): Likewise.
1061 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
1062 (alu_shift_op): Likewise.
1063 (alu_shift_reg_op): Likewise.
1064 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
1065 (11_alu_shift_op): Likewise.
1066 (11_alu_shift_reg_op): Likewise.
1067 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
1068 (9_alu_shift_reg_op): Likewise.
1069 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
1071 (cortex_a15_alu_shift): Likewise.
1072 (cortex_a15_alu_shift_reg): Likewise.
1073 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
1075 (cortex_a5_alu_shift): Likewise.
1076 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
1078 (cortex_a53_alu_shift): Likewise.
1079 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
1081 (cortex_a7_alu_reg): Likewise.
1082 (cortex_a7_alu_shift): Likewise.
1083 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
1085 (cortex_a8_alu_shift): Likewise.
1086 (cortex_a8_alu_shift_reg): Likewise.
1087 (cortex_a8_mov): Likewise.
1088 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
1089 (cortex_a9_dp_shift): Likewise.
1090 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
1092 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
1094 (cortex_r4_mov): Likewise.
1095 (cortex_r4_alu_shift): Likewise.
1096 (cortex_r4_alu_shift_reg): Likewise.
1097 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
1098 (526_alu_shift_op): Likewise.
1099 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
1100 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
1101 (626te_alu_shift_op): Likewise.
1102 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
1103 (726te_alu_op): Likewise.
1104 (726te_alu_shift_op): Likewise.
1105 (726te_alu_shift_reg_op): Likewise.
1106 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
1107 (mp626_alu_shift_op): Likewise.
1108 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
1109 (pj4_alu_e1_conds): Likewise.
1110 (pj4_alu): Likewise.
1111 (pj4_alu_conds): Likewise.
1112 (pj4_shift): Likewise.
1113 (pj4_shift_conds): Likewise.
1114 (pj4_alu_shift): Likewise.
1115 (pj4_alu_shift_conds): Likewise.
1116 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
1118 (cortexa7_older_only): Likewise.
1119 (cortexa7_younger): Likewise.
1121 2013-07-18 David Malcolm <dmalcolm@redhat.com>
1123 * ipa-pure-const.c (generate_summary): Rename to...
1124 (pure_const_generate_summary): ... this.
1126 2013-07-17 Iain Sandoe <iain@codesourcery.com>
1128 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
1130 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
1133 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
1136 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1138 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
1139 enabled without -march=zEC12.
1140 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
1143 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1145 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
1146 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
1147 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
1148 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
1149 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
1150 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
1151 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
1153 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
1154 and ISA_HAS_NMADD3_NMSUB3.
1155 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
1156 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
1157 (nmsub4<mode>, nmsub3<mode>): Likewise.
1158 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
1160 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1162 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
1163 TARGET_MIPS5400 checking.
1165 2013-07-16 Jakub Jelinek <jakub@redhat.com>
1166 Peter Bergner <bergner@vnet.ibm.com>
1168 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
1169 registers in the comment.
1170 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
1171 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
1172 rather than FIRST_PSEUDO_REGISTERS.
1174 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
1176 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1177 enable extra ISA flags with TARGET_HTM.
1179 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1181 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
1184 2013-07-15 Cong Hou <congh@google.com>
1186 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
1187 in compare function for sorting.
1189 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
1191 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
1192 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
1193 * config/rs6000/rs6000.opt: Add -mhtm option.
1194 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
1195 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
1196 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1197 __HTM__ if the HTM instructions are available.
1198 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
1199 htm_spr_reg_operand): New define_predicates.
1200 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
1201 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
1203 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
1204 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
1205 HTM builtin functions.
1206 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
1207 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
1208 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
1209 (rs6000_builtin_mask_calculate): Likewise.
1210 (rs6000_option_override_internal): Likewise.
1211 (bdesc_htm): Add new HTM builtin support.
1212 (htm_spr_num): New function.
1213 (htm_spr_regno): Likewise.
1214 (rs6000_htm_spr_icode): Likewise.
1215 (htm_expand_builtin): Likewise.
1216 (htm_init_builtins): Likewise.
1217 (rs6000_expand_builtin): Add support for HTM builtin functions.
1218 (rs6000_init_builtins): Likewise.
1219 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
1221 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
1222 (TARGET_HTM, MASK_HTM): Define macros.
1223 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
1224 (FIXED_REGISTERS): Likewise.
1225 (CALL_USED_REGISTERS): Likewise.
1226 (CALL_REALLY_USED_REGISTERS): Likewise.
1227 (REG_ALLOC_ORDER): Likewise.
1228 (enum reg_class): Likewise.
1229 (REG_CLASS_NAMES): Likewise.
1230 (REG_CLASS_CONTENTS): Likewise.
1231 (REGISTER_NAMES): Likewise.
1232 (ADDITIONAL_REGISTER_NAMES): Likewise.
1233 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
1234 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
1235 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
1236 * config/rs6000/htm.md: New file.
1237 * config/rs6000/htmintrin.h: New file.
1238 * config/rs6000/htmxlintrin.h: New file.
1240 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
1242 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1243 Define SYMBOL_TINY_GOT, update comment.
1244 * config/aarch64/aarch64.c
1245 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
1246 (aarch64_expand_mov_immediate): Likewise.
1247 (aarch64_print_operand): Likewise.
1248 (aarch64_classify_symbol): Likewise.
1249 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
1250 (ldr_got_tiny): Define.
1252 2013-07-13 Tobias Grosser <tobias@grosser.es>
1254 PR tree-optimization/54094
1255 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
1256 scheduling dimension for the parallelism check from the polyhedral
1257 information in the AST.
1258 * graphite-dependences.c (carries_deps): Do not assume the schedule is
1261 2013-07-13 Jason Merrill <jason@redhat.com>
1263 * print-tree.c (debug_vec_tree): Use debug_raw.
1264 (debug_raw (vec<tree, va_gc> &)): New.
1265 (debug_raw (vec<tree, va_gc> *)): New.
1266 * tree.h: Declare them.
1268 2013-07-13 Bin Cheng <bin.cheng@arm.com>
1270 * ifcvt.c (ifcvt_after_combine): New static variable.
1271 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
1273 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
1274 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
1275 rest_of_handle_if_after_reload): Pass new argument for if_convert.
1277 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
1279 * config/mips/mips.c (mips_expand_call): Remove empty statement.
1281 2013-07-12 Michael Matz <matz@suse.de>
1284 * convert.c (convert_to_real): Reject non-float inner types.
1286 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
1288 * config/aarch64/aarch64-protos.h
1289 (aarch64_simd_immediate_valid_for_move): Remove.
1290 * config/aarch64/aarch64.c (simd_immediate_info): New member.
1291 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
1293 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
1295 2013-07-11 Steve Ellcey <sellcey@mips.com>
1297 * config/mips/mips.c (mips_conditional_register_usage): Do not
1298 use t[0-7] registers in MIPS16 mode when optimizing for size.
1300 2013-07-11 Sriraman Tallam <tmsriram@google.com>
1302 * config/i386/i386.c (dispatch_function_versions): Fix array
1303 indexing of function_version_info to match actual_versions.
1305 2013-07-11 Teresa Johnson <tejohnson@google.com>
1307 * vec.h (struct va_gc): Move release out-of-line.
1308 (va_gc::release): Call ggc_free on released vec.
1310 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1312 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
1313 Require GOT register as additional operand in UNSPEC.
1314 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
1315 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1316 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1317 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
1318 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
1319 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
1320 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
1322 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
1325 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1326 name seen by assembler/linker rather if available.
1328 2013-07-11 Andreas Schwab <schwab@suse.de>
1330 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1332 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
1334 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
1336 2013-07-10 Joseph Myers <joseph@codesourcery.com>
1338 * doc/tm.texi.in: Move hook documentation to ....
1339 * target.def: ... here.
1341 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1343 * doc/tm.texi: Regenerate.
1345 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1348 * doc/invoke.texi: Document -Wconditionally-supported.
1350 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1353 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1356 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1359 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1360 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1361 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1362 Remove duplicate devices.
1363 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1364 * config/avr/t-multilib: Regenerate.
1365 * config/avr/avr-tables.opt: Regenerate.
1366 * doc/avr-mmcu.texi: Regenerate.
1368 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1371 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1373 2013-07-10 Graham Stott <graham.stott@btinternet.com>
1375 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1376 the cost of MULT when optimizing for size.
1378 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1380 * config/cr16/cr16-protos.h: Don't include target.h.
1382 2013-07-09 Joseph Myers <joseph@codesourcery.com>
1384 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1385 adjust register size for TDmode and TFmode for VSX registers.
1387 2013-07-08 Kai Tietz <ktietz@redhat.com>
1390 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1391 hook_bool_const_tree_true.
1393 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1395 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1396 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1397 * config/s390/s390.md: Define FPR*_REGNUM constants.
1398 Fix FPR2_REGNUM constant (18 -> 17).
1399 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1400 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1401 ("trunc<BFP:mode><DFP_ALL:mode>2")
1402 ("trunc<DFP_ALL:mode><BFP:mode>2")
1403 ("*extend<BFP:mode><DFP_ALL:mode>2")
1404 ("*extend<DFP_ALL:mode><BFP:mode>2")
1405 ("extend<BFP:mode><DFP_ALL:mode>2")
1406 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1409 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1411 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
1413 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1415 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1416 and cfun_fpr_bit_p to cfun_fpr_save_p.
1417 (s390_frame_area, s390_register_info, s390_frame_info)
1418 (s390_emit_prologue, s390_emit_epilogue)
1419 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1421 * config/s390/s390.h: Define *_REGNUM macros for floating point
1424 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1426 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1428 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1430 PR rtl-optimization/57786
1431 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1432 and break out of the loop when it is set to false.
1434 2013-07-08 Jakub Jelinek <jakub@redhat.com>
1437 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1438 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1439 (const_int 63)) 0)).
1440 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1441 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1442 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1444 PR rtl-optimization/57829
1445 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1446 mask bits outside of mode are just sign-extension from mode to HWI.
1448 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1450 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1451 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1452 adjust_address instead of change_address to keep info about alignment.
1453 (emit_strmov): Remove.
1454 (emit_memmov): New function.
1455 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1456 (expand_movmem_epilogue): Likewise and return updated rtx for
1458 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1459 destination and source.
1460 (decide_alignment): Refactor, handle vector_loop.
1461 (ix86_expand_movmem): Likewise.
1462 (ix86_expand_setmem): Likewise.
1463 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1465 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
1467 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1468 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1470 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1472 * config/i386/sse.md (sse_movlhps): Change alternative 3
1473 of operand 2 to "m".
1475 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1478 * config/i386/sse.md (iptr): New mode attribute.
1479 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1480 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1481 (<sse>_vmmul<mode>3): Ditto.
1482 (<sse>_vmdiv<mode>3): Ditto.
1483 (sse_vmrcpv4sf2): Ditto.
1484 (<sse>_vmsqrt<mode>2): Ditto.
1485 (sse_vmrsqrtv4sf2): Ditto.
1486 (<sse>_vm<code><mode>3): Ditto.
1487 (avx_vmcmp<mode>3): Ditto.
1488 (<sse>_vmmaskcmp<mode>3): Ditto.
1489 (<sse>_comi): Ditto.
1490 (<sse>_ucomi): Ditto.
1491 (*xop_vmfrcz_<mode>): Ditto.
1492 (*fmai_fmadd_<mode>): Ditto.
1493 (*fmai_fmsub_<mode>): Ditto.
1494 (*fmai_fnmadd_<mode>): Ditto.
1495 (*fmai_fnmsub_<mode>): Ditto.
1496 (*fma4i_vmfmadd_<mode>): Ditto.
1497 (*fma4i_vmfmsub_<mode>): Ditto.
1498 (*fma4i_vmfnmadd_<mode>): Ditto.
1499 (*fma4i_vmfnmsub_<mode>): Ditto.
1500 (*xop_vmfrcz_<mode>): Ditto.
1501 (sse_cvtps2pi): Ditto.
1502 (sse_cvttps2pi): Ditto.
1503 (sse_cvtss2si): Ditto.
1504 (sse_cvtss2si_2): Ditto.
1505 (sse_cvtss2siq_2): Ditto.
1506 (sse_cvttss2si): Ditto.
1507 (sse_cvttss2siq): Ditto.
1508 (sse_cvtsd2si): Ditto.
1509 (sse_cvtsd2si_2): Ditto.
1510 (sse_cvtsd2siq_2): Ditto.
1511 (sse_cvttsd2si): Ditto.
1512 (sse_cvttsd2siq): Ditto.
1513 (sse_cvtsd2ss): Ditto.
1514 (sse_cvtss2sd): Ditto.
1515 (avx2_pbroadcast<mode>): Ditto.
1516 (avx2_pbroadcast<mode>_1): Ditto.
1517 (*avx_vperm_broadcast_v4sf): Ditto.
1519 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1520 (sse_movlhps): Ditto.
1521 (sse_storehps): Ditto.
1522 (sse_loadhps): Ditto.
1523 (sse_storelps): Ditto.
1524 (sse_loadlps): Ditto.
1525 (*vec_concatv4sf): Ditto.
1526 (*vec_interleave_highv2df): Ditto.
1527 (*vec_interleave_lowv2df): Ditto.
1528 (*vec_extractv2df_1_sse): Ditto.
1529 (*vec_extractv2df_0_sse): Ditto.
1530 (sse2_storelpd): Ditto.
1531 (sse2_loadlpd): Ditto.
1532 (sse2_movsd): Ditto.
1533 (*vec_concatv4si): Ditto.
1534 (vec_concatv2di): Ditto.
1536 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1537 for Intel asm dialect.
1538 (mmx_punpcklwd): Ditto.
1539 (mmx_punpckldq): Ditto.
1541 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1542 for intel assembler dialect.
1544 2013-07-06 Jakub Jelinek <jakub@redhat.com>
1547 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1548 for BUILT_IN_C{LZ,LRSB}*.
1549 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1550 * tree-vrp.c (extract_range_basic): Handle
1551 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1552 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1553 fall thru to code calling set_value*.
1554 * builtins.c (expand_builtin): Remove *IMAX cases.
1555 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1556 if width is bigger than 2*HWI.
1558 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1560 PR rtl-optimization/55342
1561 * lra-int.h (lra_subreg_reload_pseudos): New.
1562 * lra.c: Add undoing optional reloads to the block diagram.
1563 (lra_subreg_reload_pseudos): New.
1564 (lra_optional_reload_pseudos): Change comments.
1565 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1566 lra_optional_reload_pseudos after undo transformations.
1567 * lra-assigns.c (pseudo_prefix_title): New.
1568 (lra_setup_reg_renumber): Use it.
1569 (spill_for): Ditto. Check subreg reload pseudos too.
1570 (assign_by_spills): Consider subreg reload pseudos too.
1571 * lra-constraints.c (simplify_operand_subreg): Use
1572 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1573 (curr_insn_transform): Recognize and do optional reloads.
1574 (undo_optional_reloads): New.
1575 (lra_undo_inheritance): Call undo_optional_reloads.
1577 2013-07-05 Thomas Quinot <quinot@adacore.com>
1579 * tree-complex.c (expand_complex_operations_1): Fix typo.
1581 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1583 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1584 (tune_params): New member 'const vec_costs'.
1585 * config/aarch64/aarch64.c (generic_vector_cost): New.
1586 (generic_tunings): New member 'generic_vector_cost'.
1587 (aarch64_builtin_vectorization_cost): New.
1588 (aarch64_add_stmt_cost): New.
1589 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1590 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1592 2013-07-03 Jakub Jelinek <jakub@redhat.com>
1595 * config/i386/predicates.md (vsib_address_operand): Disallow
1596 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1598 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1601 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1602 expand_builtin_setjmp_receiver.
1603 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1604 with NULL for the label parameter.
1605 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1606 the frame-pointer. Adjust comments.
1607 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1608 only if LABEL is non-NULL.
1610 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1612 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1613 (ARM_ABI_AAPCS64): Ditto.
1615 (ARM_DEFAULT_ABI): Ditto.
1617 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1619 * config/aarch64/aarch64-builtins.c
1620 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1621 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1623 * config/aarch64/aarch64-simd.md
1624 (aarch64_ld1<VALL:mode>): New.
1625 (aarch64_st1<VALL:mode>): Likewise.
1626 * config/aarch64/arm_neon.h
1627 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1629 2013-07-02 Sriraman Tallam <tmsriram@google.com>
1631 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1633 (ix86_option_override_internal):Turn on all -mavx target flags by
1634 default as they are dependent on AVX anyway.
1636 2013-07-02 Cary Coutant <ccoutant@google.com>
1638 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1640 (loc_checksum_ordered): Likewise.
1641 (hash_loc_operands): Remove inline keyword.
1643 2013-07-02 Jakub Jelinek <jakub@redhat.com>
1645 PR tree-optimization/57741
1646 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1647 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1648 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1649 Allow REAL_CST step_exprs if flag_associative_math.
1650 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1652 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1654 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1656 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1658 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1660 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1662 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1664 (iorsi3_insn): Likewise.
1665 (arm_xorsi3): Likewise.
1667 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1669 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1671 (attribute "type"): ... here, and prefix with "wmmx_".
1672 (attribute "core_cycles"): Update for attribute changes.
1673 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1674 (tbcstv4hi): Likewise.
1675 (tbcstv2si): Likewise.
1676 (iwmmxt_iordi3): Likewise.
1677 (iwmmxt_xordi3): Likewise.
1678 (iwmmxt_anddi3): Likewise.
1679 (iwmmxt_nanddi3): Likewise.
1680 (iwmmxt_arm_movdi): Likewise.
1681 (iwmmxt_movsi_insn): Likewise.
1682 (mov<mode>_internal): Likewise.
1683 (and<mode>3_iwmmxt): Likewise.
1684 (ior<mode>3_iwmmxt): Likewise.
1685 (xor<mode>3_iwmmxt): Likewise.
1686 (add<mode>3_iwmmxt): Likewise.
1687 (ssaddv8qi3): Likewise.
1688 (ssaddv4hi3): Likewise.
1689 (ssaddv2si3): Likewise.
1690 (usaddv8qi3): Likewise.
1691 (usaddv4hi3): Likewise.
1692 (usaddv2si3): Likewise.
1693 (sub<mode>3_iwmmxt): Likewise.
1694 (sssubv8qi3): Likewise.
1695 (sssubv4hi3): Likewise.
1696 (sssubv2si3): Likewise.
1697 (ussubv8qi3): Likewise.
1698 (ussubv4hi3): Likewise.
1699 (ussubv2si3): Likewise.
1700 (mulv4hi3_iwmmxt): Likewise.
1701 (smulv4hi3_highpart): Likewise.
1702 (umulv4hi3_highpart): Likewise.
1703 (iwmmxt_wmacs): Likewise.
1704 (iwmmxt_wmacsz): Likewise.
1705 (iwmmxt_wmacu): Likewise.
1706 (iwmmxt_wmacuz): Likewise.
1707 (iwmmxt_clrdi): Likewise.
1708 (iwmmxt_clrv8qi): Likewise.
1709 (iwmmxt_clr4hi): Likewise.
1710 (iwmmxt_clr2si): Likewise.
1711 (iwmmxt_uavgrndv8qi3): Likewise.
1712 (iwmmxt_uavgrndv4hi3): Likewise.
1713 (iwmmxt_uavgv8qi3): Likewise.
1714 (iwmmxt_uavgv4hi3): Likewise.
1715 (iwmmxt_tinsrb): Likewise.
1716 (iwmmxt_tinsrh): Likewise.
1717 (iwmmxt_tinsrw): Likewise.
1718 (iwmmxt_textrmub): Likewise.
1719 (iwmmxt_textrmsb): Likewise.
1720 (iwmmxt_textrmuh): Likewise.
1721 (iwmmxt_textrmsh): Likewise.
1722 (iwmmxt_textrmw): Likewise.
1723 (iwmxxt_wshufh): Likewise.
1724 (eqv8qi3): Likewise.
1725 (eqv4hi3): Likewise.
1726 (eqv2si3): Likewise.
1727 (gtuv8qi3): Likewise.
1728 (gtuv4hi3): Likewise.
1729 (gtuv2si3): Likewise.
1730 (gtv8qi3): Likewise.
1731 (gtv4hi3): Likewise.
1732 (gtv2si3): Likewise.
1733 (smax<mode>3_iwmmxt): Likewise.
1734 (umax<mode>3_iwmmxt): Likewise.
1735 (smin<mode>3_iwmmxt): Likewise.
1736 (umin<mode>3_iwmmxt): Likewise.
1737 (iwmmxt_wpackhss): Likewise.
1738 (iwmmxt_wpackwss): Likewise.
1739 (iwmmxt_wpackdss): Likewise.
1740 (iwmmxt_wpackhus): Likewise.
1741 (iwmmxt_wpackwus): Likewise.
1742 (iwmmxt_wpackdus): Likewise.
1743 (iwmmxt_wunpckihb): Likewise.
1744 (iwmmxt_wunpckihh): Likewise.
1745 (iwmmxt_wunpckihw): Likewise.
1746 (iwmmxt_wunpckilb): Likewise.
1747 (iwmmxt_wunpckilh): Likewise.
1748 (iwmmxt_wunpckilw): Likewise.
1749 (iwmmxt_wunpckehub): Likewise.
1750 (iwmmxt_wunpckehuh): Likewise.
1751 (iwmmxt_wunpckehuw): Likewise.
1752 (iwmmxt_wunpckehsb): Likewise.
1753 (iwmmxt_wunpckehsh): Likewise.
1754 (iwmmxt_wunpckehsw): Likewise.
1755 (iwmmxt_wunpckelub): Likewise.
1756 (iwmmxt_wunpckeluh): Likewise.
1757 (iwmmxt_wunpckeluw): Likewise.
1758 (iwmmxt_wunpckelsb): Likewise.
1759 (iwmmxt_wunpckelsh): Likewise.
1760 (iwmmxt_wunpckelsw): Likewise.
1761 (ror<mode>3): Likewise.
1762 (ashr<mode>3_iwmmxt): Likewise.
1763 (lshr<mode>3_iwmmxt): Likewise.
1764 (ashl<mode>3_iwmmxt): Likewise.
1765 (ror<mode>3_di): Likewise.
1766 (ashr<mode>3_di): Likewise.
1767 (lshr<mode>3_di): Likewise.
1768 (ashl<mode>3_di): Likewise.
1769 (iwmmxt_wmadds): Likewise.
1770 (iwmmxt_wmaddu): Likewise.
1771 (iwmmxt_tmia): Likewise.
1772 (iwmmxt_tmiaph): Likewise.
1773 (iwmmxt_tmiabb): Likewise.
1774 (iwmmxt_tmiatb): Likewise.
1775 (iwmmxt_tmiabt): Likewise.
1776 (iwmmxt_tmiatt): Likewise.
1777 (iwmmxt_tmovmskb): Likewise.
1778 (iwmmxt_tmovmskh): Likewise.
1779 (iwmmxt_tmovmskw): Likewise.
1780 (iwmmxt_waccb): Likewise.
1781 (iwmmxt_wacch): Likewise.
1782 (iwmmxt_waccw): Likewise.
1783 (iwmmxt_waligni): Likewise.
1784 (iwmmxt_walignr): Likewise.
1785 (iwmmxt_walignr0): Likewise.
1786 (iwmmxt_walignr1): Likewise.
1787 (iwmmxt_walignr2): Likewise.
1788 (iwmmxt_walignr3): Likewise.
1789 (iwmmxt_wsadb): Likewise.
1790 (iwmmxt_wsadh): Likewise.
1791 (iwmmxt_wsadbz): Likewise.
1792 (iwmmxt_wsadhz): Likewise.
1793 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1794 (iwmmxt_wabsdiffb): Likewise.
1795 (iwmmxt_wabsdiffh): Likewise.
1796 (iwmmxt_wabsdiffw): Likewise.
1797 (iwmmxt_waddsubhx): Likewise
1798 (iwmmxt_wsubaddhx): Likewise.
1799 (addc<mode>3): Likewise.
1800 (iwmmxt_avg4): Likewise.
1801 (iwmmxt_avg4r): Likewise.
1802 (iwmmxt_wmaddsx): Likewise.
1803 (iwmmxt_wmaddux): Likewise.
1804 (iwmmxt_wmaddsn): Likewise.
1805 (iwmmxt_wmaddun): Likewise.
1806 (iwmmxt_wmulwsm): Likewise.
1807 (iwmmxt_wmulwum): Likewise.
1808 (iwmmxt_wmulsmr): Likewise.
1809 (iwmmxt_wmulumr): Likewise.
1810 (iwmmxt_wmulwsmr): Likewise.
1811 (iwmmxt_wmulwumr): Likewise.
1812 (iwmmxt_wmulwl): Likewise.
1813 (iwmmxt_wqmulm): Likewise.
1814 (iwmmxt_wqmulwm): Likewise.
1815 (iwmmxt_wqmulmr): Likewise.
1816 (iwmmxt_wqmulwmr): Likewise.
1817 (iwmmxt_waddbhusm): Likewise.
1818 (iwmmxt_waddbhusl): Likewise.
1819 (iwmmxt_wqmiabb): Likewise.
1820 (iwmmxt_wqmiabt): Likewise.
1821 (iwmmxt_wqmiatb): Likewise.
1822 (iwmmxt_wqmiatt): Likewise.
1823 (iwmmxt_wqmiabbn): Likewise.
1824 (iwmmxt_wqmiabtn): Likewise.
1825 (iwmmxt_wqmiatbn): Likewise.
1826 (iwmmxt_wqmiattn): Likewise.
1827 (iwmmxt_wmiabb): Likewise.
1828 (iwmmxt_wmiabt): Likewise.
1829 (iwmmxt_wmiatb): Likewise.
1830 (iwmmxt_wmiatt): Likewise.
1831 (iwmmxt_wmiabbn): Likewise.
1832 (iwmmxt_wmiabtn): Likewise.
1833 (iwmmxt_wmiatbn): Likewise.
1834 (iwmmxt_wmiattn): Likewise.
1835 (iwmmxt_wmiawbb): Likewise.
1836 (iwmmxt_wmiawbt): Likewise.
1837 (iwmmxt_wmiawtb): Likewise.
1838 (iwmmxt_wmiawtt): Likewise.
1839 (iwmmxt_wmiawbbn): Likewise.
1840 (iwmmxt_wmiawbtn): Likewise.
1841 (iwmmxt_wmiawtbn): Likewise.
1842 (iwmmxt_wmiawttn): Likewise.
1843 (iwmmxt_wmerge): Likewise.
1844 (iwmmxt_tandc<mode>3): Likewise.
1845 (iwmmxt_torc<mode>3): Likewise.
1846 (iwmmxt_torvsc<mode>3): Likewise.
1847 (iwmmxt_textrc<mode>3): Likewise.
1848 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1849 (wmmxt_pack): Likewise.
1850 (wmmxt_mult_c1): Likewise.
1851 (wmmxt_mult_c2): Likewise.
1852 (wmmxt_alu_c1): Likewise.
1853 (wmmxt_alu_c2): Likewise.
1854 (wmmxt_alu_c3): Likewise.
1855 (wmmxt_transfer_c1): Likewise.
1856 (wmmxt_transfer_c2): Likewise.
1857 (wmmxt_transfer_c3): Likewise.
1858 (marvell_f_iwmmxt_wstr): Likewise.
1859 (marvell_f_iwmmxt_wldr): Likewise.
1861 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1863 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1865 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1868 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1869 * lra-constraints.c (need_for_split_p): Check call used hard regs
1870 living through calls.
1872 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1873 call used regs for call insn.
1875 2013-06-28 Jakub Jelinek <jakub@redhat.com>
1878 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1879 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1881 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1883 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1885 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1887 * lra-constraints.c (need_for_split_p): Check call used hard regs
1888 living through calls.
1890 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1893 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1894 to tie with any other modes. Eliminate Altivec vector mode tests,
1895 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1896 code, to return 0 if testing MODE2 for a condition, if we've
1897 already tested MODE1 for the same condition.
1899 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1901 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1904 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1906 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1907 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1909 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1911 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1913 (aarch64_symbolic_constant_p): Remove.
1914 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1915 static. Fix line length and white space.
1916 (aarch64_symbolic_constant_p): Remove.
1917 * config/aarch64/predicates.md (aarch64_valid_symref):
1918 Use aarch64_classify_symbol_expression.
1920 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1922 * config/arm/constraints.md (Ts): New constraint.
1923 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1925 (compare_scc): Use "Ts" constraint for operand 0.
1926 (ior_scc_scc): Likewise.
1927 (and_scc_scc): Likewise.
1928 (and_scc_scc_nodom): Likewise.
1929 (ior_scc_scc_cmp): Likewise for operand 7.
1930 (and_scc_scc_cmp): Likewise.
1931 * config/arm/thumb2.md (thumb2_movsi_insn):
1932 Add alternatives for 16-bit encodings.
1933 (thumb2_movhi_insn): Likewise.
1934 (thumb2_movsicc_insn): Likewise.
1935 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1936 (thumb2_negscc): Use "Ts" constraint.
1937 Move mvn instruction outside cond_exec block.
1938 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1939 for 16-bit encodings.
1941 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1943 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1945 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1946 (mulsi3subsi): Likewise.
1947 (mulsidi3adddi): Likewise.
1948 (mulsidi3_v6): Likewise.
1949 (umulsidi3_v6): Likewise.
1950 (umulsidi3adddi_v6): Likewise.
1951 (smulsi3_highpart_v6): Likewise.
1952 (umulsi3_highpart_v6): Likewise.
1953 (mulhisi3tb): Likewise.
1954 (mulhisi3bt): Likewise.
1955 (mulhisi3tt): Likewise.
1956 (maddhisi4): Likewise.
1957 (maddhisi4tb): Likewise.
1958 (maddhisi4tt): Likewise.
1959 (maddhidi4): Likewise.
1960 (maddhidi4tb): Likewise.
1961 (maddhidi4tt): Likewise.
1962 (zeroextractsi_compare0_scratch): Likewise.
1963 (insv_zero): Likewise.
1964 (insv_t2): Likewise.
1965 (anddi_notzesidi_di): Likewise.
1966 (anddi_notsesidi_di): Likewise.
1967 (andsi_notsi_si): Likewise.
1968 (iordi_zesidi_di): Likewise.
1969 (xordi_zesidi_di): Likewise.
1970 (andsi_iorsi3_notsi): Likewise.
1972 (smax_m1): Likewise.
1974 (not_shiftsi): Likewise.
1975 (unaligned_loadsi): Likewise.
1976 (unaligned_loadhis): Likewise.
1977 (unaligned_loadhiu): Likewise.
1978 (unaligned_storesi): Likewise.
1979 (unaligned_storehi): Likewise.
1980 (extv_reg): Likewise.
1981 (extzv_t2): Likewise.
1983 (udivsi3): Likewise.
1984 (arm_zero_extendhisi2addsi): Likewise.
1985 (arm_zero_extendqisi2addsi): Likewise.
1986 (compareqi_eq0): Likewise.
1987 (arm_extendhisi2_v6): Likewise.
1988 (arm_extendqisi2addsi): Likewise.
1989 (arm_movt): Likewise.
1990 (thumb2_ldrd): Likewise.
1991 (thumb2_ldrd_base): Likewise.
1992 (thumb2_ldrd_base_neg): Likewise.
1993 (thumb2_strd): Likewise.
1994 (thumb2_strd_base): Likewise.
1995 (thumb2_strd_base_neg): Likewise.
1996 (arm_negsi2): Add alternative for 16-bit encoding.
1997 (arm_one_cmplsi2): Likewise.
1999 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2001 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
2002 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
2003 (movdfcc): Likewise.
2004 * config/arm/vfp.md (*thumb2_movsf_vfp):
2005 Disable predication for arm_restrict_it.
2006 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
2007 (*thumb2_movdfcc_vfp): Likewise.
2008 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
2009 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
2010 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
2011 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
2012 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
2013 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
2014 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
2015 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
2016 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
2017 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
2018 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
2019 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
2020 Disable predication for arm_restrict_it.
2022 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
2024 * config/i386/bmiintrin.h (_bextr_u32): New.
2025 (_bextr_u64): Ditto.
2027 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2029 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
2030 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
2031 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
2032 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
2033 * config/mips/n32-elf.h: ...this new file.
2035 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
2038 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
2039 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
2041 2013-06-27 Catherine Moore <clm@codesourcery.com>
2043 * config/mips/mips-tables.opt: Regenerate.
2044 * config/mips/mips-cpus.def: Add m14ke and m14kec.
2045 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
2046 * doc/invoke.texi: Add -m14kc.
2048 2013-06-27 Jakub Jelinek <jakub@redhat.com>
2051 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
2052 constraints of operand 1 and 2.
2055 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
2056 to match RTL canonicalization. Swap predicates and
2057 constraints of operand 1 and 2.
2059 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
2061 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
2062 Process OP_INOUT regs for splitting too.
2064 2013-06-27 Jakub Jelinek <jakub@redhat.com>
2066 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
2067 decl before the loop, initialize to NULL.
2068 (vectorizable_load): Initialize ptr_incr to NULL.
2070 2013-06-27 Martin Jambor <mjambor@suse.cz>
2073 * ipa-ref.h (ipa_maybe_record_reference): Declare.
2074 * ipa-ref.c (ipa_maybe_record_reference): New function.
2075 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
2076 * ipa-cp.c (create_specialized_node): Record potential references from
2078 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
2080 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
2082 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
2083 parameter 'mode' of type 'enum machine_mode mode'; change to pass
2084 'mode' to force_reg.
2085 (aarch64_add_offset): Update calls to aarch64_force_temporary.
2086 (aarch64_expand_mov_immediate): Likewise.
2088 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
2090 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
2091 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
2093 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2095 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
2096 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
2097 (struct machine_function): Add tbegin_p.
2098 (s390_canonicalize_comparison): Fold CC mode compares to
2099 conditional jump if possible.
2100 (s390_emit_jump): Return the emitted jump.
2101 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
2102 Handle CCRAWmode compares.
2103 (s390_option_override): Default to -mhtm if available.
2104 (s390_reg_clobbered_rtx): Handle floating point regs as well.
2105 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
2106 FPRs instead of df_regs_ever_live_p.
2107 (s390_optimize_nonescaping_tx): New function.
2108 (s390_init_frame_layout): Extend clobbered_regs array to cover
2110 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
2111 (s390_expand_tbegin): New function.
2112 (enum s390_builtin): New enum definition.
2113 (code_for_builtin): New array definition.
2114 (s390_init_builtins): New function.
2115 (s390_expand_builtin): New function.
2116 (TARGET_INIT_BUILTINS): Define.
2117 (TARGET_EXPAND_BUILTIN): Define.
2118 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
2119 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
2120 (s390_alc_comparison): Likewise.
2121 * config/s390/s390-modes.def: Add CCRAWmode.
2122 * config/s390/s390.h (processor_flags): Add PF_TX.
2123 (TARGET_CPU_HTM): Define macro.
2124 (TARGET_HTM): Define macro.
2125 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
2126 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
2127 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
2128 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
2129 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
2130 (TBEGIN_MASK, TBEGINC_MASK): New constants.
2131 ("*cc_to_int"): Move up.
2132 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
2133 constants other than 0.
2134 ("*ccraw_to_int"): New insn and splitter definition.
2135 ("tbegin", "tbegin_nofloat", "tbegin_retry")
2136 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
2137 ("tx_assist"): New expander.
2138 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
2139 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
2140 * config/s390/s390.opt: Add -mhtm option.
2141 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
2142 * config/s390/htmxlintrin.h: New file.
2143 * config/s390/htmintrin.h: New file.
2144 * config/s390/s390intrin.h: New file.
2145 * doc/extend.texi: Document htm builtins.
2146 * config.gcc: Add the new header files to extra_headers.
2148 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
2150 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
2151 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
2153 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2154 Pat Haugen <pthaugen@us.ibm.com>
2155 Peter Bergner <bergner@vnet.ibm.com>
2157 * config/rs6000/power8.md: New.
2158 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
2159 setting for power8 entry.
2160 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
2161 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
2162 test for Power4/Power5 only.
2163 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
2165 (force_new_group): Adjust comment.
2166 * config/rs6000/rs6000.md: Include power8.md.
2168 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
2170 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
2171 * config/arm/arm-protos.h (arm_max_conditional_execute): New
2173 (tune_params): Update comment.
2174 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
2175 (arm_max_conditional_execute): New function.
2176 (thumb2_final_prescan_insn): Use max_insn_skipped and
2177 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
2179 2013-06-25 Jakub Jelinek <jakub@redhat.com>
2181 PR tree-optimization/57705
2182 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
2183 SSA_NAME step, provided that it is not defined inside the loop.
2184 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
2185 (get_initial_def_for_induction): Handle SSA_NAME IV step.
2187 2013-06-25 Martin Jambor <mjambor@suse.cz>
2190 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
2191 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
2193 (ipa_note_param_call): Initialize member_ptr flag.
2194 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
2195 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
2196 (ipa_write_indirect_edge_info): Stream member_ptr flag.
2197 (ipa_read_indirect_edge_info): Likewise.
2199 2013-06-25 Richard Biener <rguenther@suse.de>
2202 * passes.c (init_optimization_passes): Move pass_fold_builtins
2203 and pass_dce earlier with -Og.
2205 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
2207 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
2208 <BIT_FIELD_REF>: Remove trailing TAB.
2209 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
2212 2013-06-24 Martin Jambor <mjambor@suse.cz>
2214 PR tree-optimization/57358
2215 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
2216 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
2217 (ipa_analyze_params_uses): Generate pessimistic info when true.
2219 2013-06-24 Martin Jambor <mjambor@suse.cz>
2221 PR tree-optimization/57539
2222 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
2223 global.inlined_to of the new node to it. All callers changed.
2224 * ipa-inline-transform.c (clone_inlined_nodes): New variable
2225 inlining_into, pass it to cgraph_clone_node.
2226 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
2227 ipa_free_edge_args_substructures.
2228 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
2229 rdesc linked list. Do not assert rdesc edges have inlined caller.
2230 Assert we have found an rdesc in the rdesc list.
2232 2013-06-24 Richard Biener <rguenther@suse.de>
2234 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
2235 (pointer_set_lookup): Declare.
2236 (class pointer_map): New template class implementing a
2237 generic pointer to T map.
2238 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
2239 pointer_map<T>::contains, pointer_map<T>::insert,
2240 pointer_map<T>::traverse): New functions.
2241 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
2242 (pointer_set_lookup): New function.
2243 (pointer_set_contains): Use pointer_set_lookup.
2244 (pointer_set_insert): Likewise.
2245 (insert_aux): Remove.
2246 (struct pointer_map_t): Embed a pointer_set_t.
2247 (pointer_map_create): Adjust.
2248 (pointer_map_destroy): Likewise.
2249 (pointer_map_contains): Likewise.
2250 (pointer_map_insert): Likewise.
2251 (pointer_map_traverse): Likewise.
2252 * tree-streamer.h (struct streamer_tree_cache_d): Use a
2253 pointer_map<unsigned> instead of a pointer_map_t.
2254 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
2255 (streamer_tree_cache_lookup): Likewise.
2256 (streamer_tree_cache_create): Likewise.
2257 (streamer_tree_cache_delete): Likewise.
2258 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
2259 pointer_map<unsigned> instead of a pointer_map_t.
2260 (lto_init_tree_ref_encoder): Adjust.
2261 (lto_destroy_tree_ref_encoder): Likewise.
2262 * lto-section-out.c (lto_output_decl_index): Likewise.
2263 (lto_record_function_out_decl_state): Likewise.
2264 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
2266 2013-06-24 Richard Biener <rguenther@suse.de>
2268 PR tree-optimization/57488
2269 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
2271 2013-06-24 Alan Modra <amodra@gmail.com>
2273 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2274 (gen_easy_altivec_constant): Likewise.
2275 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2276 easy_vector_constant_msb): Likewise.
2278 2013-06-23 Jakub Jelinek <jakub@redhat.com>
2281 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
2282 add missing return true.
2284 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
2287 * config/sh/predicates.md (general_extend_operand): Invoke
2288 general_movsrc_operand for memory operands.
2289 (general_movsrc_operand): Allow reg+reg addressing, do not use
2290 general_operand for memory operands.
2292 2013-06-23 Sriraman Tallam <tmsriram@google.com>
2294 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
2295 when current target options does not apply.
2296 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
2297 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
2298 * config/i386/bmiintrin.h: Pass appropriate target
2299 attributes to header.
2300 * config/i386/mmintrin.h: Ditto.
2301 * config/i386/nmmintrin.h: Ditto.
2302 * config/i386/avx2intrin.h: Ditto.
2303 * config/i386/fxsrintrin.h: Ditto.
2304 * config/i386/tbmintrin.h: Ditto.
2305 * config/i386/xsaveintrin.h: Ditto.
2306 * config/i386/f16cintrin.h: Ditto.
2307 * config/i386/xtestintrin.h: Ditto.
2308 * config/i386/xsaveoptintrin.h: Ditto.
2309 * config/i386/bmi2intrin.h: Ditto.
2310 * config/i386/lzcntintrin.h: Ditto.
2311 * config/i386/smmintrin.h: Ditto.
2312 * config/i386/wmmintrin.h: Ditto.
2313 * config/i386/x86intrin.h: Remove all header include guards.
2314 * config/i386/prfchwintrin.h: Ditto.
2315 * config/i386/pmmintrin.h: Ditto.
2316 * config/i386/tmmintrin.h: Ditto.
2317 * config/i386/xmmintrin.h: Ditto.
2318 * config/i386/popcntintrin.h: Ditto.
2319 * config/i386/rdseedintrin.h: Ditto.
2320 * config/i386/ammintrin.h: Ditto.
2321 * config/i386/emmintrin.h: Ditto.
2322 * config/i386/immintrin.h: Remove all header include guards.
2323 * config/i386/fma4intrin.h: Ditto.
2324 * config/i386/lwpintrin.h: Ditto.
2325 * config/i386/xopintrin.h: Ditto.
2326 * config/i386/ia32intrin.h: Ditto.
2327 * config/i386/avxintrin.h: Ditto.
2328 * config/i386/rtmintrin.h: Ditto.
2329 * config/i386/fmaintrin.h: Ditto.
2330 * config/i386/mm3dnow.h: Ditto.
2332 2013-06-22 Sriraman Tallam <tmsriram@google.com>
2334 * common/config/i386/i386-common.c: Handle LZCNT.
2336 2013-06-22 Andi Kleen <ak@linux.intel.com>
2338 * doc/extend.texi: Use __atomic_store_n instead of
2339 __atomic_store in HLE example.
2341 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2343 * config/sh/sh.c: Remove <cstdlib> workaround.
2345 2013-06-21 Andi Kleen <ak@linux.intel.com>
2347 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
2349 2013-06-21 Andi Kleen <ak@linux.intel.com>
2351 * doc/extend.texi: Document that __atomic_clear and
2352 __atomic_test_and_set should only be used with bool.
2354 2013-06-20 Jan Hubicka <jh@suse.cz>
2356 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2358 * tree.c (decls_same_for_odr): New function.
2359 (same_for_edr): New function.
2360 (types_same_for_odr): New function.
2361 (get_binfo_at_offset): Use it.
2362 * tree.h (types_same_for_odr): Declare.
2364 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
2365 Jason Merrill <jason@redhat.com>
2367 * system.h: Include <cstdlib> as well as <stdlib.h>.
2369 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
2372 * config/i386/i386.c (construct_container): Report error if
2373 long double is used with disabled x87 float returns.
2375 2013-06-20 Jan Hubicka <jh@suse.cz>
2377 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2379 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2381 PR rtl-optimization/57425
2382 PR rtl-optimization/57569
2383 * alias.c (write_dependence_p): Remove parameters mem_mode and
2384 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2385 Changed all callers.
2386 (canon_anti_dependence): Get comments and semantics in sync.
2387 Add parameter mem_canonicalized. Changed all callers.
2388 * rtl.h (canon_anti_dependence): Update prototype.
2390 2013-06-20 Richard Biener <rguenther@suse.de>
2392 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2393 byte case, inline streamer_read_uchar and defer section
2396 2013-06-20 Richard Biener <rguenther@suse.de>
2398 PR tree-optimization/57584
2399 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2400 SSA names into the expanded expression that take part in
2401 abnormal coalescing.
2403 2013-06-19 Sharad Singhai <singhai@google.com>
2405 * gcov.c (print_usage): Handle new option.
2406 (process_args): Ditto.
2407 (get_gcov_intermediate_filename): New function.
2408 (output_intermediate_file): New function.
2409 (output_gcov_file): New function
2410 (generate_results): Handle new option.
2411 (release_function): Relase demangled name.
2412 (read_graph_file): Handle demangled name.
2413 (output_lines): Ditto.
2414 * doc/gcov.texi: Document gcov intermediate format.
2416 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2419 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2420 (lra_emit_add): Use the functions. Add comment about Y as an
2423 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
2426 * collect2.c (collect_atexit): New.
2427 (collect_exit): Delete.
2428 (main): Register collect_atexit with atexit.
2429 (collect_wait): Change collect_exit to exit.
2431 * collect2.h (collect_exit): Delete.
2432 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2434 2013-06-19 Wei Mi <wmi@google.com>
2436 PR rtl-optimization/57518
2437 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2438 if regno is used in paradoxical subreg.
2439 (update_equiv_regs): Check pdx_subregs[regno] before
2440 set a reg to be equivalent with a mem.
2442 2013-06-19 Matthias Klose <doko@ubuntu.com>
2445 * file-find.h (find_a_file): Add a mode parameter.
2446 * file-find.c (find_a_file): Likewise.
2447 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2448 with X_OK for the executables.
2449 * collect2.c (main): Call find_a_file with X_OK.
2451 2013-06-19 Steve Ellcey <sellcey@mips.com>
2454 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2455 Use NEXT_INSN instead of next_real_insn.
2457 2013-06-19 Jan Hubicka <jh@suse.cz>
2459 * cgraph.h (const_value_known_p): Replace by ...
2460 (ctor_for_folding): .. this one.
2461 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2462 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2463 * expr.c (expand_expr_real_1): Likewise.
2464 (string_constant): Likewise.
2465 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2466 * ipa.c (process_references): Likewise.
2467 (symtab_remove_unreachable_nodes): Likewise.
2468 * ipa-inline-analysis.c (param_change_prob): Likewise.
2469 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2470 (get_base_constructor): Likwise.
2471 * varpool.c (varpool_remove_node): Likewise.
2472 (varpool_remove_initializer): LIkewise.
2473 (dump_varpool_node): LIkwise.
2474 (const_value_known_p): Rewrite to ...
2475 (ctor_for_folding): ... this one.
2477 2013-06-19 Jakub Jelinek <jakub@redhat.com>
2480 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2481 PERSONALITY in $PATH derived prefixes.
2483 2013-06-19 Jeff Law <law@redhat.com>
2485 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2488 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2489 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2492 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2494 * config/arm/vfp.md: Move VFP instruction classification documentation
2496 * config/arm/arm.md: ... here. Update instruction classification
2499 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
2501 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2502 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2503 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2505 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2508 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2509 with NEXT_INSN. Use tablejump_p to check for jump table data
2512 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2515 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2516 that now in C++ the value is correct per the C++ standards.
2518 2013-06-19 Richard Biener <rguenther@suse.de>
2520 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2523 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2526 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2529 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2530 with next_active_insn.
2532 2013-06-18 Sriraman Tallam <tmsriram@google.com>
2534 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2535 functions are inlined during failures to flag an error.
2536 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2537 in early inline pass.
2539 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2541 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2544 2013-06-18 Julian Brown <julian@codesourcery.com>
2546 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2547 Permit virtual register pre-reload if !strict.
2548 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2550 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2552 * config/arm/neon.md (movmisalign<mode>): Use
2553 neon_perm_struct_or_reg_operand instead of
2554 neon_struct_or_register_operand.
2555 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2556 neon_permissive_struct_operand instead of neon_struct_operand.
2557 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2558 neon_vector_mem_operand.
2559 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2560 neon_vector_mem_operand.
2561 (neon_permissive_struct_operand): New.
2562 (neon_struct_or_register_operand): Rename to...
2563 (neon_perm_struct_or_reg_operand): This. Adjust call to
2564 neon_vector_mem_operand.
2566 2013-06-18 Richard Biener <rguenther@suse.de>
2568 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2569 * lto-streamer.h: Include pointer-set.h.
2570 (struct lto_decl_slot): Remove.
2571 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2572 Remove next_index entry.
2573 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2574 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2575 (lto_init_tree_ref_encoder): Adjust.
2576 (lto_destroy_tree_ref_encoder): Likewise.
2577 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2578 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2579 (lto_output_decl_index): Adjust.
2580 (lto_new_out_decl_state): Likewise.
2581 (lto_record_function_out_decl_state): Likewise.
2582 * lto-streamer-out.c (copy_function): Likewise.
2584 2013-06-18 Richard Biener <rguenther@suse.de>
2586 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2587 * cgraphunit.c: Include cfgloop.h.
2588 (init_lowered_empty_function): Initialize the loop tree.
2589 (assemble_thunk): Insert new BBs into loops.
2591 2013-06-18 Richard Biener <rguenther@suse.de>
2593 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2594 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2595 the map from cache entry to cache index optional.
2596 (streamer_tree_cache_replace_tree): Adjust accordingly.
2597 (streamer_tree_cache_append): Likewise.
2598 (streamer_tree_cache_delete): Likewise.
2599 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2600 streamer cache map from cache entry to cache index.
2601 * lto-streamer-out.c (create_output_block): Adjust.
2603 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2605 * config/arm/arm.md (attribute "insn"): Move multiplication and
2606 division attributes to...
2607 (attribute "type"): ... here. Remove mult.
2608 (attribute "mul32"): New attribute.
2609 (attribute "mul64"): Add umaal.
2610 (*arm_mulsi3): Update attributes.
2611 (*arm_mulsi3_v6): Likewise.
2612 (*thumb_mulsi3): Likewise.
2613 (*thumb_mulsi3_v6): Likewise.
2614 (*mulsi3_compare0): Likewise.
2615 (*mulsi3_compare0_v6): Likewise.
2616 (*mulsi_compare0_scratch): Likewise.
2617 (*mulsi_compare0_scratch_v6): Likewise.
2618 (*mulsi3addsi): Likewise.
2619 (*mulsi3addsi_v6): Likewise.
2620 (*mulsi3addsi_compare0): Likewise.
2621 (*mulsi3addsi_compare0_v6): Likewise.
2622 (*mulsi3addsi_compare0_scratch): Likewise.
2623 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2624 (*mulsi3subsi): Likewise.
2625 (*mulsidi3adddi): Likewise.
2626 (*mulsi3addsi_v6): Likewise.
2627 (*mulsidi3adddi_v6): Likewise.
2628 (*mulsidi3_nov6): Likewise.
2629 (*mulsidi3_v6): Likewise.
2630 (*umulsidi3_nov6): Likewise.
2631 (*umulsidi3_v6): Likewise.
2632 (*umulsidi3adddi): Likewise.
2633 (*umulsidi3adddi_v6): Likewise.
2634 (*smulsi3_highpart_nov6): Likewise.
2635 (*smulsi3_highpart_v6): Likewise.
2636 (*umulsi3_highpart_nov6): Likewise.
2637 (*umulsi3_highpart_v6): Likewise.
2638 (mulhisi3): Likewise.
2639 (*mulhisi3tb): Likewise.
2640 (*mulhisi3bt): Likewise.
2641 (*mulhisi3tt): Likewise.
2642 (maddhisi4): Likewise.
2643 (*maddhisi4tb): Likewise.
2644 (*maddhisi4tt): Likewise.
2645 (maddhidi4): Likewise.
2646 (*maddhidi4tb): Likewise.
2647 (*maddhidi4tt): Likewise.
2649 (udivsi3): Likewise.
2650 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2651 (thumb2_mulsi_short_compare0): Likewise.
2652 (thumb2_mulsi_short_compare0_scratch): Likewise.
2653 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2654 (1020mult2): Likewise.
2655 (1020mult3): Likewise.
2656 (1020mult4): Likewise.
2657 (1020mult5): Likewise.
2658 (1020mult6): Likewise.
2659 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2661 (cortex_a15_mult64): Likewise.
2662 (cortex_a15_sdiv): Likewise.
2663 (cortex_a15_udiv): Likewise.
2664 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2670 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2671 (pj4_ir_div): Likewise.
2672 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2673 (11_mult2): Likewise.
2674 (11_mult3): Likewise.
2675 (11_mult4): Likewise.
2676 (11_mult5): Likewise.
2677 (11_mult6): Likewise.
2678 (11_mult7): Likewise.
2679 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2680 (cortex_a8_mla): Likewise.
2681 (cortex_a8_mull): Likewise.
2682 (cortex_a8_smulwy): Likewise.
2683 (cortex_a8_smlald): Likewise.
2684 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2685 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2686 (cortex_r4_mul_3): Likewise.
2687 (cortex_r4_mla_4): Likewise.
2688 (cortex_r4_mla_3): Likewise.
2689 (cortex_r4_smlald): Likewise.
2690 (cortex_r4_mull): Likewise.
2691 (cortex_r4_sdiv): Likewise.
2692 (cortex_r4_udiv): Likewise.
2693 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2694 (cortex_a7_idiv): Likewise.
2695 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2696 (9_mult2): Likewise.
2697 (9_mult3): Likewise.
2698 (9_mult4): Likewise.
2699 (9_mult5): Likewise.
2700 (9_mult6): Likewise.
2701 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2702 (cortex_a53_sdiv): Likewise.
2703 (cortex_a53_udiv): Likewise.
2704 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2705 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2706 (mp626_mult2): Likewise.
2707 (mp626_mult3): Likewise.
2708 (mp626_mult4): Likewise.
2709 * config/arm/fa526.md (526_mult1): Update attribute change.
2710 (526_mult2): Likewise.
2711 * config/arm/arm-generic.md (mult): Update attribute change.
2712 (mult_ldsched_strongarm): Likewise.
2713 (mult_ldsched): Likewise.
2714 (multi_cycle): Likewise.
2715 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2716 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2717 (606te_mult2): Likewise.
2718 (606te_mult3): Likewise.
2719 (606te_mult4): Likewise.
2720 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2721 (cortex_a9_mac16): Likewise.
2722 (cortex_a9_multiply): Likewise.
2723 (cortex_a9_mac): Likewise.
2724 (cortex_a9_multiply_long): Likewise.
2725 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2726 (626te_mult2): Likewise.
2727 (626te_mult3): Likewise.
2728 (626te_mult4): Likewise.
2730 2013-06-18 Richard Biener <rguenther@suse.de>
2733 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2735 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2738 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2739 with next_active_insn.
2741 2013-06-18 Alan Modra <amodra@gmail.com>
2743 * config/rs6000/rs6000.h (enum data_align): New.
2744 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2745 (DATA_ABI_ALIGNMENT): Define.
2746 (CONSTANT_ALIGNMENT): Correct comment.
2747 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2748 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2750 2013-06-17 David Malcolm <dmalcolm@redhat.com>
2752 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2753 ATTRIBUTE_UNUSED marking.
2755 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2757 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2758 alternative and update.
2759 (aarch64_dup_lanedi): Delete.
2760 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2761 * config/aarch64/aarch64-simd-builtins.def: Update.
2763 2013-06-17 Richard Biener <rguenther@suse.de>
2765 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2766 (lto_input_scc): Declare.
2767 (lto_input_tree_1): Likewise.
2768 (struct lto_stats_d): Add num_tree_bodies_output and
2769 num_pickle_refs_output.
2770 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2771 (lto_read_tree_1): Split out from ...
2772 (lto_read_tree): ... this.
2773 (lto_input_scc): New function.
2774 (lto_input_tree_1): Split out from ...
2775 (lto_input_tree): ... this. Handle LTO_tree_scc.
2776 (lto_data_in_create): Create the streamer cache without hashes.
2777 * lto-streamer-out.c (create_output_block): Create the streamer
2778 cache with hashes when not doing WPA.
2779 (lto_write_tree_1): Split out from ...
2780 (lto_write_tree): ... this.
2781 (get_symbol_initial_value): New function.
2782 (lto_output_tree_1): Split out from ...
2783 (lto_output_tree): ... this. Write trees as series of SCCs
2784 using a DFS walk via DFS_write_tree.
2785 (struct sccs, struct scc_entry): New types.
2786 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2787 (DFS_write_tree_body): New function.
2788 (DFS_write_tree): Likewise.
2789 (hash_tree): Likewise.
2790 (scc_entry_compare): Likewise.
2791 (hash_scc): Likewise.
2792 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2793 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2794 TREE_CHAIN as regular reference.
2795 (streamer_read_integer_cst): Remove.
2796 (streamer_get_pickled_tree): Adjust.
2797 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2798 of DECL_EXTERNALs in BLOCK_VARS for now.
2799 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2801 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2802 Add hash value argument and record that if hashes are recorded
2804 (streamer_tree_cache_insert_1): Adjust.
2805 (streamer_tree_cache_insert): Likewise.
2806 (streamer_tree_cache_insert_at): Rename to ...
2807 (streamer_tree_cache_replace_tree): ... this and adjust.
2808 (streamer_tree_cache_append): Adjust.
2809 (record_common_node): Likewise.
2810 (streamer_tree_cache_create): Add argument whether to
2811 record hash values together with trees.
2812 (streamer_tree_cache_delete): Adjust.
2813 * tree-streamer.h (struct streamer_tree_cache_d): Add
2815 (streamer_read_integer_cst): Remove.
2816 (streamer_tree_cache_insert): Adjust.
2817 (streamer_tree_cache_append): Likewise.
2818 (streamer_tree_cache_insert_at): Rename to ...
2819 (streamer_tree_cache_replace_tree): ... this and adjust.
2820 (streamer_tree_cache_create): Add argument whether to record hashes.
2821 (streamer_tree_cache_get): Rename to ...
2822 (streamer_tree_cache_get_tree): ... this.
2823 (streamer_tree_cache_get_hash): New function.
2824 * tree.c (cache_integer_cst): New function.
2825 * tree.h (cache_integer_cst): Declare.
2826 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2827 * lto-symtab.c (lto_varpool_replace_node): Only release
2828 DECL_INITIAL of non-prevailing decls.
2829 * varpool.c (varpool_remove_initializer): Do not release
2830 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2832 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2834 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2835 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2836 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2837 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2838 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2839 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2840 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2841 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2842 instead of TARGET_64BIT.
2843 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2844 Require ISA_HAS_<D>DIV.
2846 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2848 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2849 (mips*-*-linux*): Move default with_llsc setting to where other
2851 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2853 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2854 Likewise. Remove default with_tune setting. Move default float
2855 setting to its own block. Handle with_llsc in the same block as above.
2857 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2859 PR rtl-optimization/57425
2860 PR rtl-optimization/57569
2861 * alias.c (write_dependence_p): Add new parameters mem_mode,
2862 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2863 Changed all callers.
2864 (canon_anti_dependence): New function.
2865 * cse.c (check_dependence): Use canon_anti_dependence.
2866 * cselib.c (cselib_invalidate_mem): Likewise.
2867 * rtl.h (canon_anti_dependence): Declare.
2869 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2871 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2872 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2873 ".set mips3" for 64-bit targets.
2875 2013-06-15 Dehao Chen <dehao@google.com>
2877 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2878 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2879 (gimple_check_call_args): Likewise.
2880 * value-prof.c (check_ic_target): Likewise.
2881 * ipa-inline.c (early_inliner): Likewise.
2882 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2883 * cgraph.c (cgraph_create_edge_1): Likewise.
2884 (cgraph_make_edge_direct): Likewise.
2886 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2889 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2890 rs6000_output_move_128bit to handle emitting quad memory
2891 operations. Set attribute length to 8 bytes.
2893 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2895 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2897 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2898 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2899 (aarch64_<su>mlsl<mode>): Likewise.
2901 2013-06-14 Mike Stump <mikestump@comcast.net>
2903 * Makefile.in (TARGET_H): Add insn-codes.h.
2905 2013-06-14 Alan Modra <amodra@gmail.com>
2909 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2910 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2911 bitfield expansion when EXPAND_MEMORY.
2912 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2914 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2916 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2917 test for clearing quad memory on 32-bit later.
2919 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2921 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2922 (fold_negate_expr): Likewise.
2923 (fold_real_zero_addition_p): Handle vectors.
2924 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2926 2013-06-14 Alan Modra <amodra@gmail.com>
2928 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2930 2013-06-13 Jan Hubicka <jh@suse.cz>
2932 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2933 Local comdats are not externally visible.
2934 * symtab.c (dump_symtab_base): Dump externally visible.
2935 (verify_symtab_base): Verify back links in the symtab hash.
2937 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2939 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2940 CONVERT_EXPR as equal nodes.
2942 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2944 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2946 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2948 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2949 Generalize to complex and vector.
2950 * tree.c (build_all_ones_cst): New function.
2951 * tree.h (build_all_ones_cst): Declare it.
2953 2013-06-13 Alan Modra <amodra@gmail.com>
2955 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2956 * config/rs6000/rs6000.md (signbittf2): New insn.
2957 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2958 (abstf2_internal, cmptf_internal2): Likewise.
2959 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2961 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2962 Pat Haugen <pthaugen@us.ibm.com>
2963 Peter Bergner <bergner@vnet.ibm.com>
2965 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2966 power8 byte, half-word, and quad-word atomic instructions.
2967 (emit_store_conditional): Likewise.
2968 (rs6000_expand_atomic_compare_and_swap): Likewise.
2969 (rs6000_expand_atomic_op): Likewise.
2971 * config/rs6000/sync.md (larx): Add new modes for power8.
2973 (AINT): New mode iterator to include TImode as well as normal
2974 integer modes on power8.
2975 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2976 that VSX registers are not considered. Use AINT mode iterator
2977 instead of INT1 to allow inclusion of quad word atomic operations
2979 (load_locked<mode>): Likewise.
2980 (store_conditional<mode>): Likewise.
2981 (atomic_compare_and_swap<mode>): Likewise.
2982 (atomic_exchange<mode>): Likewise.
2983 (atomic_nand<mode>): Likewise.
2984 (atomic_fetch_<fetchop_name><mode>): Likewise.
2985 (atomic_nand_fetch<mode>): Likewise.
2986 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2988 (ATOMIC): On power8, add QImode, HImode modes.
2989 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2990 modes that promote to SImode.
2991 (load_lockedti): Convert TImode arguments to PTImode, so that we
2992 get a guaranteed even/odd register pair.
2993 (load_lockedpti): Likewise.
2994 (store_conditionalti): Likewise.
2995 (store_conditionalpti): Likewise.
2997 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2998 atomic load/store instructions.
3001 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
3003 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
3005 (insn_count): New attribute, with most cases extracted from...
3006 (length): ...here. Redefine most cases in terms of insn_count.
3007 (single_insn): Delete.
3008 (can_delay): Use insn_count to check for single instructions.
3009 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
3010 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
3011 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
3012 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
3013 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
3014 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
3015 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
3016 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
3017 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
3018 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
3019 rather than "length".
3020 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
3021 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
3022 Use "insn_count" rather than "length".
3023 * config/mips/mips-dsp.md
3024 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
3025 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
3028 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
3030 PR tree-optimization/57361
3031 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
3033 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
3035 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
3037 (aarch64_simd_combine<mode>): New instruction expansion.
3038 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
3040 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
3041 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
3043 2013-06-12 Jan Hubicka <jh@suse.cz>
3045 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
3046 decl has when in streaming stage.
3047 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
3048 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
3050 2013-06-12 Roland Stigge <stigge@antcom.de>
3053 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
3055 2013-06-12 Jakub Jelinek <jakub@redhat.com>
3057 PR tree-optimization/57537
3058 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
3059 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
3061 2013-06-12 Richard Biener <rguenther@suse.de>
3063 * data-streamer.h (streamer_write_char_stream): CSE
3064 obs->current_pointer.
3065 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
3066 streamer_write_char_stream manually and optimize the resulting loop.
3067 (streamer_write_hwi_stream): Likewise.
3069 2013-06-12 Jan Hubicka <jh@suse.cz>
3071 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
3072 * cgraph.h (varpool_create_empty_node): Declare.
3073 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
3075 * symtab.c (symtab_unregister_node): Be lax about missin entries
3077 (symtab_get_node): Update comment.
3078 * varpool.c (varpool_create_empty_node): Break out from ...
3079 (varpool_node_for_decl): ... here.
3080 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
3082 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
3084 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
3085 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
3086 part. Use straight-line flow at the end.
3087 <COMPONENT_REF>: Remove superfluous else.
3088 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
3090 2013-06-12 Jakub Jelinek <jakub@redhat.com>
3093 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
3094 target hook even for !TREE_PUBLIC decls. If no resolution info
3095 is available, return false for common and external decls.
3097 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3099 * config/rl78/constraints.md (U): New constraint.
3100 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
3103 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3106 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
3107 to allow returning address to AT_PLATFORM name.
3109 2013-06-11 Jan Hubicka <jh@suse.cz>
3111 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
3112 * cgraph.h (symtab_node_base): Add weakref flag.
3113 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
3114 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
3115 (output_weakrefs): Use weakref flag.
3116 * fold-const.c (simple_operand_p): Handle WEAK.
3117 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
3118 * ipa.c (varpool_externally_visible_p): Drop weakref.
3119 (function_and_variable_visibility): Update comment; fix weakref
3120 sanity checks; do not clear DECL_WEAK on them.
3121 * lto-cgraph.c (lto_output_node): update.
3122 (lto_output_varpool_node): Update.
3123 (input_overwrite_node): Update.
3124 (input_node): Update.
3125 (input_varpool_node): Update.
3126 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
3127 (lto_symtab_merge_symbols): Add sanity check.
3128 (lto_symtab_prevailing_decl): Do not special case weakrefs.
3129 * passes.c (rest_of_decl_compilation): Set static flag, too.
3130 * symtab.c (dump_symtab_base): Dump weakref.
3131 (verify_symtab_base): Sanity check weakrefs.
3132 (symtab_make_decl_local): Remove duplicated code.
3133 (symtab_alias_ultimate_target): Simplify.
3134 * varpool.c (varpool_create_variable_alias): Set weakref flag.
3136 2013-06-11 DJ Delorie <dj@redhat.com>
3138 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
3139 (rl78_unwind_word_mode): New.
3141 2013-06-11 David Malcolm <dmalcolm@redhat.com>
3143 * final.c (debug_prefix_maps): Make static.
3145 2013-06-11 David Malcolm <dmalcolm@redhat.com>
3147 * function.c (initial_trampoline): Remove stray copy.
3149 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
3151 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
3153 2013-06-11 Martin Jambor <mjambor@suse.cz>
3155 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
3156 within bounds at the beginning of the function.
3158 2013-06-11 Alan Modra <amodra@gmail.com>
3160 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
3162 (get_named_section): Don't NULL !DECL_P decl.
3164 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
3166 * doc/invoke.texi (core-avx2): Document.
3168 (atom): Updated with MOVBE.
3170 2013-06-11 Richard Biener <rguenther@suse.de>
3172 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
3174 2013-06-11 Anton Blanchard <anton@samba.org>
3176 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
3177 correct shift value in little-endian mode.
3179 2013-06-11 Jakub Jelinek <jakub@redhat.com>
3182 * varasm.c (get_variable_align): Move #endif to the right place.
3184 2013-06-10 Cary Coutant <ccoutant@google.com>
3186 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
3187 for hash so that hash table traversal order is deterministic.
3189 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3190 Pat Haugen <pthaugen@us.ibm.com>
3191 Peter Bergner <bergner@vnet.ibm.com>
3193 * config/rs6000/vector.md (GPR move splitter): Do not split moves
3194 of vectors in GPRS if they are direct moves or quad word load or
3197 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
3199 (direct_move_p): Likewise.
3200 (quad_load_store_p): Likewise.
3202 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
3203 classes into bins based on the physical register type.
3204 (reg_class_to_reg_type): Likewise.
3205 (IS_STD_REG_TYPE): Likewise.
3206 (IS_FP_VECT_REG_TYPE): Likewise.
3207 (reload_fpr_gpr): Arrays to determine what insn to use if we can
3208 use direct move instructions.
3209 (reload_gpr_vsx): Likewise.
3210 (reload_vsx_gpr): Likewise.
3211 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
3212 information that is a simplification of register classes. Also
3213 precalculate direct move reload helpers.
3214 (direct_move_p): New function to return true if the operation can
3215 be done as a direct move instruciton.
3216 (quad_load_store_p): New function to return true if the operation
3217 is a quad memory operation.
3218 (rs6000_legitimize_address): If quad memory, only allow register
3219 indirect for TImode addresses.
3220 (rs6000_legitimate_address_p): Likewise.
3221 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
3222 (rs6000_reload_register_type): Likewise.
3223 (register_to_reg_type): Return register type.
3224 (rs6000_secondary_reload_simple_move): New helper function for
3225 secondary reload and secondary memory needed to identify anything
3226 that is a simple move, and does not need reloading.
3227 (rs6000_secondary_reload_direct_move): New helper function for
3228 secondary reload to identify cases that can be done with several
3229 instructions via the direct move instructions.
3230 (rs6000_secondary_reload_move): New helper function for secondary
3231 reload to identify moves between register types that can be done.
3232 (rs6000_secondary_reload): Add support for quad memory operations
3233 and for direct move.
3234 (rs6000_secondary_memory_needed): Likewise.
3235 (rs6000_debug_secondary_memory_needed): Change argument names.
3236 (rs6000_output_move_128bit): New function to return the move to
3237 use for 128-bit moves, including knowing about the various
3238 limitations of quad memory operations.
3240 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
3241 memory operations. call rs6000_output_move_128bit for the actual
3242 instruciton(s) to generate.
3243 (vsx_movti_64bit): Likewise.
3245 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
3246 (UNSPEC_P8V_MTVSRWZ): Likewise.
3247 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
3248 (UNSPEC_P8V_MTVSRD): Likewise.
3249 (UNSPEC_P8V_XXPERMDI): Likewise.
3250 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
3251 (UNSPEC_FUSION_GPR): Likewise.
3252 (FMOVE128_GPR): New iterator for direct move.
3253 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
3256 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
3257 loads and direct move instructions.
3258 (zero_extendsidi2_lfiwzx): Likewise.
3259 (extendsidi2_lfiwax): Likewise.
3260 (extendsidi2_nocell): Likewise.
3261 (floatsi<mode>2_lfiwax): Likewise.
3263 (floatunssi<mode>2_lfiwzx): Likewise.
3265 (fix_trunc<mode>_stfiwx): Likewise.
3266 (fixuns_trunc<mode>_stfiwx): Likewise.
3267 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
3268 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
3269 (parity<mode>2_cmpb): Set length/type attr.
3270 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
3271 for 'mr.' to fast_compare.
3272 (bpermd_<mode>): Change type attr to popcnt.
3273 (p8_fmrgow_<mode>): New insns for power8 direct move support.
3274 (p8_mtvsrwz_1): Likewise.
3275 (p8_mtvsrwz_2): Likewise.
3276 (reload_fpr_from_gpr<mode>): Likewise.
3277 (p8_mtvsrd_1): Likewise.
3278 (p8_mtvsrd_2): Likewise.
3279 (p8_xxpermdi_<mode>): Likewise.
3280 (reload_vsx_from_gpr<mode>): Likewise.
3281 (reload_vsx_from_gprsf): Likewise.
3282 (p8_mfvsrd_3_<mode>): LIkewise.
3283 (reload_gpr_from_vsx<mode>): Likewise.
3284 (reload_gpr_from_vsxsf): Likewise.
3285 (p8_mfvsrd_4_disf): Likewise.
3286 (multi-word GPR splits): Do not split direct moves or quad memory
3289 2013-06-10 David Malcolm <dmalcolm@redhat.com>
3291 * tree-into-ssa.c (interesting_blocks): Make static.
3293 2013-06-10 Jakub Jelinek <jakub@redhat.com>
3296 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
3297 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
3298 Use DATA_ABI_ALIGNMENT for that case instead if defined.
3299 (get_variable_align): New function.
3300 (get_variable_section, emit_bss, emit_common,
3301 assemble_variable_contents, place_block_symbol): Use
3302 get_variable_align instead of DECL_ALIGN.
3303 (assemble_noswitch_variable): Add align argument, use it
3304 instead of DECL_ALIGN.
3305 (assemble_variable): Adjust caller. Use get_variable_align
3306 instead of DECL_ALIGN.
3307 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
3309 (DATA_ABI_ALIGNMENT): Define.
3310 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
3311 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
3312 opt is false, only return the psABI mandated alignment increase.
3313 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
3314 (DATA_ABI_ALIGNMENT): ... this.
3315 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
3316 (DATA_ABI_ALIGNMENT): ... this.
3317 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
3318 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
3319 (DATA_ABI_ALIGNMENT): ... this.
3320 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
3321 * doc/tm.texi: Regenerated.
3323 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
3325 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3326 cmp_code to construct REG_EQUAL note.
3328 2013-06-09 Jakub Jelinek <jakub@redhat.com>
3331 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3332 that operands[2] doesn't overlap with operands[0].
3334 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
3335 Jan Hubicka <jh@suse.cz>
3337 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3338 hack to mark symbols as used.
3340 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3342 PR rtl-optimization/57559
3343 * lra-constraints.c (process_alt_operands): Don't discourage
3344 memory with known offset for offsetable memory constraint.
3345 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3347 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3349 * varasm.c (struct oc_local_state): Reorder fields.
3350 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3351 and adjust accordingly.
3352 (output_constructor): Reorder initialization code and adjust call to
3353 output_constructor_bitfield.
3355 2013-06-07 Jan Hubicka <jh@suse.cz>
3357 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3359 2013-06-07 David Malcolm <dmalcolm@redhat.com>
3361 * tree-object-size.c (unknown): Make const.
3363 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3365 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3366 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3367 for last alternative in the cpu_facility attribute.
3369 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3372 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3373 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3374 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3375 * config/arm/constraints.md (Dg): New constraint.
3376 * config/arm/neon.md (xordi3_neon): Remove.
3377 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3378 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3380 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3382 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3383 Clean up alternatives.
3385 2013-06-07 Alan Modra <amodra@gmail.com>
3387 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3390 2013-06-07 Alan Modra <amodra@gmail.com>
3392 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3394 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3396 * config/arm/constraints.md (Df): New constraint.
3397 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3398 Correct length attribute for last two alternatives.
3400 2013-06-07 Alan Modra <amodra@gmail.com>
3402 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3403 override user -mfp-in-toc.
3404 (offsettable_ok_by_alignment): Consider just the current access
3405 rather than the whole object, unless BLKmode. Handle
3406 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3407 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3408 for -mcmodel=medium.
3409 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3410 override user -mfp-in-toc or -msum-in-toc. Default to
3411 -mno-fp-in-toc for -mcmodel=medium.
3413 2013-06-06 DJ Delorie <dj@redhat.com>
3415 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3416 TARGET_VALID_POINTER_MODE.
3418 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3419 Pat Haugen <pthaugen@us.ibm.com>
3420 Peter Bergner <bergner@vnet.ibm.com>
3422 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3423 Document new power8 builtins.
3425 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3426 condition code register, to allow 128-bit logical operations to be
3427 done in the VSX or GPR registers.
3428 (nor<mode>3): Use the canonical form for nor.
3429 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3430 vclz*, and vpopcnt* vector instructions.
3431 (nand<mode>3): Likewise.
3432 (orc<mode>3): Likewise.
3433 (clz<mode>2): LIkewise.
3434 (popcount<mode>2): Likewise.
3436 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3437 that only the GPRs are recognized.
3439 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3440 support for new power8 builtins.
3442 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3444 (xscvdpspn): Likewise.
3450 (vpopcnt): Likewise.
3451 (vpopcntb): Likewise.
3452 (vpopcnth): Likewise.
3453 (vpopcntw): Likewise.
3454 (vpopcntd): Likewise.
3459 (eqv_v16qi3): Likewise.
3460 (eqv_v8hi3): Likewise.
3461 (eqv_v4si3): Likewise.
3462 (eqv_v2di3): Likewise.
3463 (eqv_v4sf3): Likewise.
3464 (eqv_v2df3): Likewise.
3466 (nand_v16qi3): Likewise.
3467 (nand_v8hi3): Likewise.
3468 (nand_v4si3): Likewise.
3469 (nand_v2di3): Likewise.
3470 (nand_v4sf3): Likewise.
3471 (nand_v2df3): Likewise.
3473 (orc_v16qi3): Likewise.
3474 (orc_v8hi3): Likewise.
3475 (orc_v4si3): Likewise.
3476 (orc_v2di3): Likewise.
3477 (orc_v4sf3): Likewise.
3478 (orc_v2df3): Likewise.
3480 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3481 allow power8 quad mode in 64-bit.
3482 (rs6000_builtin_vectorized_function): Add support to vectorize
3483 ISA 2.07 count leading zeros, population count builtins.
3484 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3485 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3486 (builtin_function_type): Add vgbbd builtin function which takes an
3488 (altivec_expand_vec_perm_const): Add support for new power8 merge
3491 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3492 that does not include TImdoe for use with 32-bit.
3493 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3495 (UNSPEC_VSX_CVDPSPN): Likewise.
3496 (vsx_xscvdpspn): Likewise.
3497 (vsx_xscvspdpn): Likewise.
3498 (vsx_xscvdpspn_scalar): Likewise.
3499 (vsx_xscvspdpn_directmove): Likewise.
3500 (vsx_and<mode>3): Split logical operations into 32-bit and
3501 64-bit. Add support to do logical operations on TImode as well as
3502 VSX vector types. Allow logical operations to be done in either
3503 VSX registers or in general purpose registers in 64-bit mode. Add
3504 splitters if GPRs were used. For AND, add clobber of CCmode to
3505 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3507 (vsx_and<mode>3_32bit): Likewise.
3508 (vsx_and<mode>3_64bit): Likewise.
3509 (vsx_ior<mode>3): Likewise.
3510 (vsx_ior<mode>3_32bit): Likewise.
3511 (vsx_ior<mode>3_64bit): Likewise.
3512 (vsx_xor<mode>3): Likewise.
3513 (vsx_xor<mode>3_32bit): Likewise.
3514 (vsx_xor<mode>3_64bit): Likewise.
3515 (vsx_one_cmpl<mode>2): Likewise.
3516 (vsx_one_cmpl<mode>2_32bit): Likewise.
3517 (vsx_one_cmpl<mode>2_64bit): Likewise.
3518 (vsx_nor<mode>3): Likewise.
3519 (vsx_nor<mode>3_32bit): Likewise.
3520 (vsx_nor<mode>3_64bit): Likewise.
3521 (vsx_andc<mode>3): Likewise.
3522 (vsx_andc<mode>3_32bit): Likewise.
3523 (vsx_andc<mode>3_64bit): Likewise.
3524 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3525 and xxlorc instructions.
3526 (vsx_eqv<mode>3_64bit): Likewise.
3527 (vsx_nand<mode>3_32bit): Likewise.
3528 (vsx_nand<mode>3_64bit): Likewise.
3529 (vsx_orc<mode>3_32bit): Likewise.
3530 (vsx_orc<mode>3_64bit): Likewise.
3532 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3534 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3536 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3537 (p8_vmrgow): Likewise.
3538 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3539 GPRs to be split under VSX.
3540 (p8v_clz<mode>2): Add power8 count leading zero support.
3541 (p8v_popcount<mode>2): Add power8 population count support.
3542 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3545 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3548 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3550 (vec_nand): Likewise.
3551 (vec_vclz): Likewise.
3552 (vec_vclzb): Likewise.
3553 (vec_vclzd): Likewise.
3554 (vec_vclzh): Likewise.
3555 (vec_vclzw): Likewise.
3556 (vec_vgbbd): Likewise.
3557 (vec_vmrgew): Likewise.
3558 (vec_vmrgow): Likewise.
3559 (vec_vpopcnt): Likewise.
3560 (vec_vpopcntb): Likewise.
3561 (vec_vpopcntd): Likewise.
3562 (vec_vpopcnth): Likewise.
3563 (vec_vpopcntw): Likewise.
3565 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3567 PR rtl-optimization/57468
3568 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3571 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3573 PR rtl-optimization/57459
3574 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3575 type when setting live regs.
3577 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3579 * config/s390/s390.opt (mlra): New option.
3580 * config/s390/s390.c (s390_decompose_address): Check displacement
3581 for all registers for LRA.
3582 (s390_secondary_reload): Don't used secondary reloads for LRA.
3583 (s390_lra_p): New function.
3584 (TARGET_LRA_P): Define.
3585 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3586 of attribute cpu_facility to zarch for the last alternative.
3587 (*cmpmem_short): Ditto.
3589 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3591 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3592 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3593 (arm_expand_prologue): Likewise.
3595 2013-06-06 Teresa Johnson <tejohnson@google.com>
3598 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3599 as this is now done by redirect_edge_and_branch_force.
3600 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3601 barriers, and fix interaction with splitting.
3602 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3603 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3604 reflect changes made in the routine.
3605 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3606 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3607 since this is called in cfglayout mode, and replace partition fixup
3608 with assert as that is now done by force_nonfallthru_and_redirect.
3609 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3610 already be marked with region crossing note.
3611 (insert_section_boundary_note): Make non-static, gate on flag
3612 has_bb_partition, rewrite to also check for multiple partitions.
3613 (rest_of_handle_reorder_blocks): Remove call to
3614 insert_section_boundary_note, now done later during free_cfg.
3615 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3616 * bb-reorder.h (insert_section_boundary_note): Declare.
3617 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3618 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3619 invoke insert_section_boundary_note.
3620 (try_redirect_by_replacing_jump): Remove unnecessary
3621 check for region crossing note.
3622 (fixup_partition_crossing): New function.
3623 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3624 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3625 in non-cfglayout mode.
3626 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3627 remove old code that tried to do this. Emit barrier correctly
3628 when we are in cfglayout mode.
3629 (last_bb_in_partition): New function.
3630 (rtl_split_edge): Correctly fixup partition boundaries.
3631 (commit_one_edge_insertion): Remove old code that tried to
3632 fixup region crossing edge since this is now handled in
3633 split_block, and set up insertion point correctly since
3634 block may now end in a jump.
3635 (verify_hot_cold_block_grouping): Guard against checking when not in
3636 linearized RTL mode.
3637 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3639 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3640 rtl_verify_flow_info, so not called in cfglayout mode.
3641 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3642 (fixup_reorder_chain): Remove old code that attempted to fixup region
3643 crossing note as this is now handled in force_nonfallthru_and_redirect.
3644 (duplicate_insn_chain): Don't duplicate switch section notes.
3645 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3647 * basic-block.h (emit_barrier_after_bb): Declare.
3649 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3651 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3652 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3653 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3655 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3657 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3659 * config/arm/ldmstm.md: Regenerate.
3661 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3663 * config/arm/sync.md (atomic_loaddi_1):
3664 Disable predication for arm_restrict_it.
3665 (arm_load_exclusive<mode>): Likewise.
3666 (arm_load_exclusivesi): Likewise.
3667 (arm_load_exclusivedi): Likewise.
3668 (arm_load_acquire_exclusive<mode>): Likewise.
3669 (arm_load_acquire_exclusivesi): Likewise.
3670 (arm_load_acquire_exclusivedi): Likewise.
3671 (arm_store_exclusive<mode>): Likewise.
3672 (arm_store_exclusive<mode>): Likewise.
3673 (arm_store_release_exclusivedi): Likewise.
3674 (arm_store_release_exclusive<mode>): Likewise.
3676 2013-06-06 Richard Biener <rguenther@suse.de>
3678 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3680 (lto_tag_is_tree_code_p): Adjust.
3681 (lto_tag_is_gimple_code_p): Likewise.
3682 (lto_gimple_code_to_tag): Likewise.
3683 (lto_tag_to_gimple_code): Likewise.
3684 (lto_tree_code_to_tag): Likewise.
3685 (lto_tag_to_tree_code): Likewise.
3686 * data-streamer.h (streamer_write_hwi_in_range): Use
3687 uhwi streaming to stream the normalized range.
3688 (streamer_read_hwi_in_range): Likewise.
3690 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3692 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3693 (predicable_short_it): Likewise.
3694 (predicated): Likewise.
3695 (enabled): Handle above.
3696 (define_cond_exec): Set predicated attribute to yes.
3698 2013-06-05 Mike Stump <mikestump@comcast.net>
3700 * gdbinit.in (__FUNCTION__): Add.
3702 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
3704 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3705 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3707 2013-06-05 Jan Hubicka <jh@suse.cz>
3709 * varasm.c (mark_decl_referenced): Revert the removal until targets
3712 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
3714 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3715 instead of mark_decl_referenced.
3717 2013-06-05 Jan Hubicka <jh@suse.cz>
3719 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3720 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3721 and symtab_used_from_object_file_p.
3722 (cgraph_make_node_local_1): Clear forced_by_abi.
3723 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3724 * cgraph.h (symtab_node_base): Add forced_by_abi.
3725 (decide_is_variable_needed): Remove.
3726 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3727 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3728 (decide_is_symbol_needed): ... this one; handle symbols in general;
3729 always analyze virtuals; honnor forced_by_abi.
3730 (cgraph_finalize_function): Update.
3731 (varpool_finalize_decl): Update.
3732 (symbol_defined_and_needed): Remove.
3733 (analyze_functions): Update.
3734 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3735 output_refs, input_overwrite_node): Handle forced_by_abi.
3736 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3737 (address_taken_from_non_vtable_p): ... this one.
3738 (comdat_can_be_unshared_p_1): New function.
3739 (cgraph_comdat_can_be_unshared_p): Rename to ...
3740 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3741 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3742 (function_and_variable_visibility): Clear forced_by_abi as needed.
3743 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3744 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3745 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3746 * varpool.c (decide_is_variable_needed): Remove.
3748 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3750 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3751 (arm_option_override): Override arm_restrict_it where appropriate.
3752 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3753 * config/arm/arm.opt (mrestrict-it): New command-line option.
3754 * doc/invoke.texi: Document -mrestrict-it.
3756 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3758 * tsan.c (tsan_atomic_table): Make const.
3760 2013-06-05 Richard Biener <rguenther@suse.de>
3762 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3763 index associated with the tree we are supposed to replace.
3764 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3765 TREE_ASM_WRITTEN as zero for everything but SSA names.
3767 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3769 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3771 2013-06-04 Jan Hubicka <jh@suse.cz>
3773 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3774 (input_node, input_varpool_node): Handle correctly external same
3776 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3777 nodes at ltrans stage.
3779 2013-06-04 Jan Hubicka <jh@suse.cz>
3781 * ipa-inline.c (update_caller_keys): Fix availability test.
3782 (update_callee_keys): Likewise.
3783 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3784 to follow ELF standard.
3786 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3788 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3789 (mips64r5900el-*-elf*): New configurations.
3790 * config/mips/mips-cpus.def (r5900): New processor.
3791 * config/mips/mips-tables.opt: Regenerate.
3792 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3793 (mips_issue_rate): Handle PROCESSOR_R5900.
3794 (mips_reorg_process_insns): Force reorder mode for the R5900.
3795 * config/mips/mips.h (TARGET_MIPS5900): Define.
3796 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3798 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3800 * config/mips/mips.md (processor): Add r5900.
3801 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3803 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3805 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3806 into function to generate MOVI instruction.
3807 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3808 (aarch64_preferred_simd_mode): Turn into wrapper.
3809 (aarch64_output_scalar_simd_mov_immediate): New function.
3810 * config/aarch64/aarch64-protos.h: Add prototype for above.
3812 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3814 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3815 element_char member.
3816 (sizetochar): Return signed char.
3817 (aarch64_simd_valid_immediate): Remove elchar and other
3818 unnecessary variables.
3819 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3820 Calculate element_char as required.
3821 * config/aarch64/aarch64-protos.h: Update and move prototype
3822 for aarch64_output_simd_mov_immediate.
3823 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3826 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3828 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3829 information completed by aarch64_simd_valid_immediate.
3830 (aarch64_legitimate_constant_p): Update arguments.
3831 (aarch64_simd_valid_immediate): Work with struct rather than many
3833 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3834 (aarch64_simd_make_constant): Update arguments.
3835 (aarch64_output_simd_mov_immediate): Work with struct rather than
3836 many pointers. Output immediate directly rather than as operand.
3837 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3839 * config/aarch64/constraints.md (Dn): Update arguments.
3841 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3843 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3845 (aarch64_simd_immediate_valid_for_move): Remove.
3846 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3847 (aarch64_simd_make_constant): Update call.
3848 (aarch64_output_simd_mov_immediate): Update call.
3849 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3851 * config/aarch64/constraints.md (Dn): Update call.
3853 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3855 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3856 return type to bool for prototype.
3857 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3858 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3859 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3861 2013-06-04 Catherine Moore <clm@codesourcery.com>
3863 * config/mips/mips.opt (meva): New.
3864 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3865 (ASM_SPEC): Handle -meva.
3866 * doc/invoke.texi (meva): Document.
3868 2013-06-04 Alan Modra <amodra@gmail.com>
3870 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3873 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3875 * rtl.def: Add extra fourth optional field to define_cond_exec.
3876 * gensupport.c (process_one_cond_exec): Process attributes from
3878 * doc/md.texi: Document fourth field in define_cond_exec.
3880 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3882 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3883 out the processing order as in store_bit_field_1.
3885 2013-06-04 Jan Hubicka <jh@suse.cz>
3888 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3889 non-VAR_DECL node if it does not exist yet.
3891 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3893 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3894 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3895 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3896 target_cpu_default setting.
3898 2013-06-03 Teresa Johnson <tejohnson@google.com>
3900 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3901 default to -fopt-info=optimized instead of all.
3902 * doc/invoke.texi: Ditto.
3903 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3904 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3905 (execute_vect_slp): Emit BB vectorization success under
3906 MSG_OPTIMIZED_LOCATIONS.
3907 * tree-vect-slp.c (vect_slp_transform_bb): Change
3908 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3909 * tree-vect-loop.c (vect_transform_loop): Ditto.
3911 2013-06-03 Jason Merrill <jason@redhat.com>
3914 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3915 Use TARGET_EXPR for C++.
3917 2013-06-03 Jakub Jelinek <jakub@redhat.com>
3919 PR rtl-optimization/57268
3920 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3921 if DEBUG_INSN_P (insn).
3924 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3926 PR rtl-optimization/57268
3927 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3928 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3930 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3932 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3933 (ix86_avoid_lea_for_addr): Likewise.
3934 (exact_dependency_1): Likewise.
3935 (ix86_adjust_cost): Likewise.
3936 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3938 (do_reorder_for_imul): Fix typo, formatting and
3939 !reload_completed check removed.
3940 (ix86_sched_reorder): Fix typo and formatting.
3941 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3944 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3946 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3948 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3950 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3951 <STRING_CST>: Likewise.
3952 <VECTOR_CST>: Likewise.
3954 2013-06-01 Janus Weil <janus@gcc.gnu.org>
3955 Mikael Morin <mikael@gcc.gnu.org>
3957 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3958 * config.in: Regenerated.
3959 * configure: Regenerated.
3961 2013-06-01 Jan Hubicka <jh@suse.cz>
3964 * cgraphunit.c (compile): When weakref is not supported,
3965 set up transparent aliases before final output pass.
3966 * varasm.c (assemble_alias): Do not try to do it here.
3968 2013-06-01 Jan Hubicka <jh@suse.cz>
3971 * passes.c (for_per_function): Skip unanalyzed functions.
3973 2013-06-01 Jan Hubicka <jh@suse.cz>
3975 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3976 (lto_symtab_merge_symbols_1): ... this one.
3977 (lto_symtab_merge_cgraph_nodes): Rename to ...
3978 (lto_symtab_merge_symbols): ... this one; simplify.
3979 * cgraph.c (same_body_aliases_done): Rename to ...
3980 (cpp_implicit_aliases_done): ... this one.
3981 (cgraph_create_function_alias): Update.
3982 (cgraph_same_body_alias): Update.
3983 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3984 (verify_edge_corresponds_to_fndecl): Simplify.
3985 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3986 (cgraph_node): Remove same_body_alias.
3987 (varpool_node): Remove alias_of and extra_name_alias.
3988 (same_body_aliases_done): Rename to ..
3989 (cpp_implicit_aliases_done): ... this one.
3990 (symtab_alias_ultimate_target): Add default parameter.
3991 (symtab_resolve_alias): New function.
3992 (fixup_same_cpp_alias_visibility): Declare.
3993 (cgraph_function_node): Add default parameter.
3994 (cgraph_node_asm_name): Likewise.
3995 (cgraph_function_or_thunk_node): Add default parameter; do
3996 not ICE when it is NULL.
3997 (varpool_variable_node): Likewise.
3998 * tree-emutls.c (create_emultls_var): Update.
3999 (ipa_lower_emutls): Update.
4000 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
4001 (cgraph_reset_node): Reset alias info.
4002 (cgraph_finalize_function): Update.
4003 (fixup_same_cpp_alias_visibility): Move to symtab.c.
4004 (analyze_function): Simplify.
4005 (cgraph_process_same_body_aliases): Simplify.
4006 (analyze_functions): Fixup same body aliases.
4007 (handle_alias_pairs): Simplify.
4008 (assemble_thunk): Update.
4009 (assemble_thunks_and_aliases): Update.
4010 (output_weakrefs): Rewrite.
4011 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
4012 (lto_output_varpool_node): Likewise.
4013 (compute_ltrans_boundary): Remve assert.
4014 (get_alias_symbol): New functoin.
4015 (input_node): Rewrite alias handling.
4016 (input_varpool_node): Likewise.
4017 * ipa-pure-const.c (propagate_pure_const): Fix formating.
4018 * ipa.c (process_references): Handle weakrefs correctly.
4019 (symtab_remove_unreachable_nodes): Likewise.
4020 * trans-mem.c (get_cg_data): Update.
4021 (ipa_tm_create_version_alias): Update.
4022 (ipa_tm_execute): Update.
4023 * symtab.c (dump_symtab_base): Dump aliases.
4024 (verify_symtab_base): Verify aliases.
4025 (symtab_node_availability): New function.
4026 (symtab_alias_ultimate_target): Simplify.
4027 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
4028 handle all the fixup cases.
4029 (symtab_resolve_alias): New function.
4030 * passes.c (ipa_write_summaries): Handle weakrefs.
4031 * varpool.c (varpool_analyze_node): Simplify.
4032 (assemble_aliases): Update.
4033 (varpool_create_variable_alias): Simplify.
4034 (varpool_extra_name_alias): Simplify.
4035 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
4036 (lto_symtab_merge_symbols): ... this one.
4038 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
4041 PR rtl-optimization/57268
4042 * sched-deps.c (sched_analyze_2): Flush dependence lists if
4043 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
4045 2013-06-01 Tobias Burnus <burnus@net-b.de>
4048 2013-05-31 Tobias Burnus <burnus@net-b.de>
4051 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
4054 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
4056 PR rtl-optimization/57268
4057 * sched-deps.c (sched_analyze_2): Flush dependence lists if
4058 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
4060 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
4062 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
4063 unordered comparison operators when -fno-trapping-math is in effect
4065 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
4066 and implement unordered comparison operators properly on the e500.
4068 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
4070 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
4071 for constant scalar integers.
4072 (simplify_relational_operation_1): Likewise.
4074 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
4076 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
4077 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
4080 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4081 Igor Zamyatin <igor.zamyatin@intel.com>
4083 Silvermont (SLM) architecture performance tuning.
4084 * config/i386/i386.h (enum ix86_tune_indices): Add
4085 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
4086 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
4088 * config/i386/i386.c (initial_ix86_tune_features)
4089 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
4090 (ix86_lea_outperforms): Handle Silvermont tuning.
4091 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
4093 (ix86_use_lea_for_mov): Likewise.
4094 (ix86_avoid_lea_for_addr): Likewise.
4095 (ix86_lea_for_add_ok): Likewise.
4096 (exact_dependency_1): New function.
4097 (exact_store_load_dependency): Likewise.
4098 (ix86_adjust_cost): Handle Silvermont tuning.
4099 (do_reoder_for_imul): Likewise.
4100 (swap_top_of_ready_list): New function.
4101 (ix86_sched_reorder): Changed to handle Silvermont tuning.
4103 * config/i386/i386.md (peepholes that split memory operand in fp
4106 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
4108 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4109 Remove un-necessary braces.
4111 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
4113 * config/aarch64/aarch64.c (aarch64_classify_symbol):
4114 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
4116 2013-05-31 Tobias Burnus <burnus@net-b.de>
4119 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
4121 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4124 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
4125 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
4126 * config/arm/neon.md (iordi3_neon): Remove.
4127 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
4128 * config/arm/predicates.md (imm_for_neon_logic_operand):
4129 Move to earlier in the file.
4130 (neon_logic_op2): Likewise.
4131 (arm_iordi_operand_neon): New predicate.
4133 2013-05-31 Richard Biener <rguenther@suse.de>
4135 PR tree-optimization/57478
4136 PR tree-optimization/57453
4137 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
4140 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4142 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
4143 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
4145 2013-05-30 Tobias Burnus <burnus@net-b.de>
4146 Thomas Koenig <tkoenig@gcc.gnu.org>
4149 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
4150 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
4152 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
4154 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4156 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
4158 * target.def (register_usage_leveling_p): New hook.
4159 * targhooks.c (default_register_usage_leveling_p): New.
4160 * targhooks.h (default_register_usage_leveling_p): New prototype.
4161 * lra-assigns.c (register_usage_leveling_p): Use the hook.
4162 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
4163 * doc/tm.texi: Update.
4164 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
4166 2013-05-30 Ian Bolton <ian.bolton@arm.com>
4168 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
4169 (*insv_reg<mode>): New define_insn.
4171 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
4173 PR rtl-optimization/57439
4174 * postreload.c (move2add_valid_value_p): Check that we have
4175 a zero subreg_regno_offset when accessing the register in
4178 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4179 Igor Zamyatin <igor.zamyatin@intel.com>
4181 Silvermont (SLM) architecture pipeline model, tuning and
4183 * config.gcc: Add slm config options and target.
4185 * config/i386/slm.md: New.
4187 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
4189 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
4191 (ix86_target_macros_internal): Likewise.
4193 * gcc/config/i386/i386.c (slm_cost): New cost.
4194 (m_SLM): New macro flag.
4195 (initial_ix86_tune_features): Set m_SLM.
4196 (x86_accumulate_outgoing_args): Likewise.
4197 (x86_arch_always_fancy_math_387): Likewise.
4198 (processor_target_table): Add slm cost.
4199 (cpu_names): Add slm cpu name.
4200 (x86_option_override_internal): Set SLM ISA.
4201 (ix86_issue_rate): New case PROCESSOR_SLM.
4202 (ia32_multipass_dfa_lookahead): Likewise.
4203 (fold_builtin_cpu): Add slm.
4205 * config/i386/i386.h (TARGET_SLM): New target macro.
4206 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
4207 (processor_type): Add PROCESSOR_SLM.
4209 * config/i386/i386.md (cpu): Add new value "slm".
4210 (slm.md): Include slm.md.
4212 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
4213 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4215 * config/arm/arm-protos.h: Add and update function protos.
4216 * config/arm/arm.c (use_simple_return_p): New added.
4217 (thumb2_expand_return): Check simple_return flag.
4218 * config/arm/arm.md: Add simple_return and conditional simple_return.
4219 * config/arm/iterators.md: Add iterator for return and simple_return.
4221 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4223 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
4224 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
4225 (arm_emit_vfp_multi_reg_pop): Likewise.
4226 (thumb2_emit_ldrd_pop): Likewise.
4227 (arm_expand_epilogue): Add misc REG_CFA notes.
4228 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
4230 2013-05-29 Lawrence Crowl <crowl@google.com>
4232 * config/arm/t-arm: Update for below.
4234 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
4235 Change type to hash_table. Update dependent calls and types.
4237 * config/i386/t-cygming: Update for below.
4239 * config/i386/t-interix: Update for below.
4241 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
4242 Change type to hash_table. Update dependent calls and types.
4243 (i386_find_on_wrapper_list::wrappers): Likewise.
4245 * config/ia64/t-ia64: Update for below.
4247 * config/ia64/ia64.c (bundle_state_table):
4248 Change type to hash_table. Update dependent calls and types.
4250 * config/mips/mips.c (mips_reorg_process_insns::htab):
4251 Change type to hash_table. Update dependent calls and types.
4253 * config/sol2.c (solaris_comdat_htab):
4254 Change type to hash_table. Update dependent calls and types.
4256 * config/t-sol2: Update for above.
4258 2013-05-29 Teresa Johnson <tejohnson@google.com>
4260 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
4261 functions are not yet marked as defined.
4263 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4264 Pat Haugen <pthaugen@us.ibm.com>
4265 Peter Bergner <bergner@vnet.ibm.com>
4267 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
4271 (vrotl<mode>3): Likewise.
4272 (vashl<mode>3): Likewise.
4273 (vlshr<mode>3): Likewise.
4274 (vashr<mode>3): Likewise.
4276 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4277 support for power8 V2DI builtins.
4279 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
4280 power8 V2DI builtins.
4281 (vupkhsw): Likewise.
4282 (vupklsw): Likewise.
4283 (vaddudm): Likewise.
4288 (vpkudum): Likewise.
4289 (vpksdss): Likewise.
4290 (vpkudus): Likewise.
4291 (vpksdus): Likewise.
4296 (vsubudm): Likewise.
4297 (vcmpequd): Likewise.
4298 (vcmpgtsd): Likewise.
4299 (vcmpgtud): Likewise.
4300 (vcmpequd_p): Likewise.
4301 (vcmpgtsd_p): Likewise.
4302 (vcmpgtud_p): Likewise.
4303 (vupkhsw): Likewise.
4304 (vupklsw): Likewise.
4305 (vaddudm): Likewise.
4310 (vpksdss): Likewise.
4311 (vpksdus): Likewise.
4312 (vpkudum): Likewise.
4313 (vpkudus): Likewise.
4318 (vsubudm): Likewise.
4320 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4321 support for power8 V2DI instructions.
4323 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4324 power8 V2DI instructions. Combine pack and unpack insns to use an
4325 iterator for each mode. Check whether a particular mode supports
4326 Altivec instructions instead of just checking TARGET_ALTIVEC.
4327 (UNSPEC_VPKUWUM): Likewise.
4328 (UNSPEC_VPKSHSS): Likewise.
4329 (UNSPEC_VPKSWSS): Likewise.
4330 (UNSPEC_VPKUHUS): Likewise.
4331 (UNSPEC_VPKSHUS): Likewise.
4332 (UNSPEC_VPKUWUS): Likewise.
4333 (UNSPEC_VPKSWUS): Likewise.
4334 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4335 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4336 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4337 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4338 (UNSPEC_VUPKHSB): Likewise.
4339 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4340 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4341 (UNSPEC_VUPKHSH): Likewise.
4342 (UNSPEC_VUPKLSB): Likewise.
4343 (UNSPEC_VUPKLSH): Likewise.
4345 (VI_char): Likewise.
4346 (VI_scalar): Likewise.
4347 (VI_unit): Likewise.
4349 (VP_small): Likewise.
4350 (VP_small_lc): Likewise.
4351 (VU_char): Likewise.
4352 (add<mode>3): Likewise.
4353 (altivec_vaddcuw): Likewise.
4354 (altivec_vaddu<VI_char>s): Likewise.
4355 (altivec_vadds<VI_char>s): Likewise.
4356 (sub<mode>3): Likewise.
4357 (altivec_vsubcuw): Likewise.
4358 (altivec_vsubu<VI_char>s): Likewise.
4359 (altivec_vsubs<VI_char>s): Likewise.
4360 (altivec_vavgs<VI_char>): Likewise.
4361 (altivec_vcmpbfp): Likewise.
4362 (altivec_eq<mode>): Likewise.
4363 (altivec_gt<mode>): Likewise.
4364 (altivec_gtu<mode>): Likewise.
4365 (umax<mode>3): Likewise.
4366 (smax<mode>3): Likewise.
4367 (umin<mode>3): Likewise.
4368 (smin<mode>3): Likewise.
4369 (altivec_vpkuhum): Likewise.
4370 (altivec_vpkuwum): Likewise.
4371 (altivec_vpkshss): Likewise.
4372 (altivec_vpkswss): Likewise.
4373 (altivec_vpkuhus): Likewise.
4374 (altivec_vpkshus): Likewise.
4375 (altivec_vpkuwus): Likewise.
4376 (altivec_vpkswus): Likewise.
4377 (altivec_vpks<VI_char>ss): Likewise.
4378 (altivec_vpks<VI_char>us): Likewise.
4379 (altivec_vpku<VI_char>us): Likewise.
4380 (altivec_vpku<VI_char>um): Likewise.
4381 (altivec_vrl<VI_char>): Likewise.
4382 (altivec_vsl<VI_char>): Likewise.
4383 (altivec_vsr<VI_char>): Likewise.
4384 (altivec_vsra<VI_char>): Likewise.
4385 (altivec_vsldoi_<mode>): Likewise.
4386 (altivec_vupkhsb): Likewise.
4387 (altivec_vupkhs<VU_char>): Likewise.
4388 (altivec_vupkls<VU_char>): Likewise.
4389 (altivec_vupkhsh): Likewise.
4390 (altivec_vupklsb): Likewise.
4391 (altivec_vupklsh): Likewise.
4392 (altivec_vcmpequ<VI_char>_p): Likewise.
4393 (altivec_vcmpgts<VI_char>_p): Likewise.
4394 (altivec_vcmpgtu<VI_char>_p): Likewise.
4395 (abs<mode>2): Likewise.
4396 (vec_unpacks_hi_v16qi): Likewise.
4397 (vec_unpacks_hi_v8hi): Likewise.
4398 (vec_unpacks_lo_v16qi): Likewise.
4399 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4400 (vec_unpacks_lo_v8hi): Likewise.
4401 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4402 (vec_pack_trunc_v8h): Likewise.
4403 (vec_pack_trunc_v4si): Likewise.
4404 (vec_pack_trunc_<mode>): Likewise.
4406 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4408 (vec_vmaxsd): Likewise.
4409 (vec_vmaxud): Likewise.
4410 (vec_vminsd): Likewise.
4411 (vec_vminud): Likewise.
4412 (vec_vpksdss): Likewise.
4413 (vec_vpksdus): Likewise.
4414 (vec_vpkudum): Likewise.
4415 (vec_vpkudus): Likewise.
4416 (vec_vrld): Likewise.
4417 (vec_vsld): Likewise.
4418 (vec_vsrad): Likewise.
4419 (vec_vsrd): Likewise.
4420 (vec_vsubudm): Likewise.
4421 (vec_vupkhsw): Likewise.
4422 (vec_vupklsw): Likewise.
4424 2013-05-29 Jan Hubicka <jh@suse.cz>
4426 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4427 flags; reorder rest of fields in more consistent way.
4428 (varpool_node): Remove analyzed, finalized and alias.
4429 (cgraph_ndoe): Likewise.
4430 (symtab_alias_ultimate_target): New function.
4431 (cgraph_function_node): Move offline.
4432 (cgraph_reset_node): Declare.
4433 (cgraph_comdat_can_be_unshared_p): Remove.
4434 (varpool_remove_initializer): Declare.
4435 (varpool_first_defined_variable, varpool_next_defined_variable
4436 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4437 (cgraph_function_with_gimple_body_p): Update.
4438 (varpool_all_refs_explicit_p): Update.
4439 (symtab_alias_target): New function.
4440 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4441 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
4442 (cgraph_function_or_thunk_node): Simplify using
4443 symtab_alias_ultimate_target.
4444 (varpool_variable_node): Likewise.
4445 * cgraph.c (cgraph_create_function_alias): Update.
4446 (cgraph_add_thunk): Update.
4447 (cgraph_remove_node): Update.
4448 (dump_cgraph_node): Do not dump removed flags.
4449 (cgraph_function_body_availability): Update.
4450 (cgraph_propagate_frequency): Update.
4451 (verify_cgraph_node): Check sanity of local flag.
4452 (cgraph_function_node): Move here from cgraph.h; revamp for
4453 cgraph_function_or_thunk_node.
4454 * lto-symtab.c (lto_varpool_replace_node): Update.
4455 (lto_symtab_resolve_can_prevail_p): Update.
4456 (lto_symtab_merge_cgraph_nodes): Update.
4457 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4458 propagate_constants_accross_call, devirtualization_time_bonus,
4459 ipcp_propagate_stage): Update.
4460 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
4461 * ipa-inline-transform.c (clone_inlined_nodes,
4462 preserve_function_body_p): Update.
4463 * ipa-reference.c (propagate): Update.
4464 (write_node_summary_p): Update.
4465 * toplev.c (wrapup_global_declaration_2): Update.
4466 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4467 (analyze_function) ... this one.
4468 (cgraph_process_new_functions): Update.
4469 (cgraph_reset_node): Export.
4470 (cgraph_finalize_function): Update.
4471 (cgraph_add_new_function): Update.
4472 (process_function_and_variable_attributes): Update.
4473 (varpool_finalize_decl): Update.
4474 (symbol_finalized): Remove.
4475 (symbol_finalized_and_needed): Rename to ...
4476 (symbol_defined_and_needed): ... update.
4477 (cgraph_analyze_functions): Update.
4478 (handle_alias_pairs): Update.
4479 (mark_functions_to_output): Update.
4480 (assemble_thunk): Update.
4481 (output_in_order): Update.
4482 (output_weakrefs): Update.
4483 (finalize_compilation_unit): Update.
4484 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4485 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4486 input_node, input_varpool_node): Update.
4487 * dbxout.c (dbxout_expand_expr): Update.
4488 * cgraphclones.c (cgraph_clone_node): Update.
4489 (cgraph_copy_node_for_versioning): Update.
4490 (cgraph_materialize_clone): Update.
4491 (cgraph_materialize_all_clones): Update.
4492 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4493 propagate_pure_const, propagate_nothrow): Update.
4494 * lto-streamer-out.c (lto_output, write_symbol): Update.
4495 * ipa-utils.c (ipa_reverse_postorder): Update.
4496 * ipa-inline.c (can_inline_edge_p): Update.
4497 (update_caller_keys, ipa_inline): Update.
4498 * dwarf2out.c (reference_to_unused,
4499 premark_types_used_by_global_vars_helper): Update.
4500 * tree-eh.c (tree_could_trap_p): Update.
4501 * ipa-split.c (consider_split, execute_split_functions): Update.
4502 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4503 has_addr_references_p): Update; move ahead in file for better
4505 (process_references): Simplify.
4506 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4508 (cgraph_comdat_can_be_unshared_p): Make static.
4509 (cgraph_externally_visible_p): Update.
4510 (varpool_externally_visible_p): Update.
4511 (function_and_variable_visibility): Update.
4512 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4513 ipa_tm_mark_force_output_node): Update.
4514 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4515 estimate_edge_devirt_benefit, inline_generate_summary,
4516 inline_write_summary): Update.
4517 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4518 * ipa-prop.c (ipa_compute_jump_functions): Update.
4519 (ipa_print_node_params, ipa_prop_read_section,
4520 ipa_update_after_lto_read, read_replacements_section): Update.
4521 * varasm.c (mark_decl_referenced): Update.
4522 (assemble_alias, dump_tm_clone_pairs): Update.
4523 * tree-inline.c (copy_bb): Update.
4524 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4526 * symtab.c (dump_symtab_base): Print new flags.
4527 (verify_symtab_base): Verify new flags.
4528 (symtab_alias_ultimate_target): New function.
4529 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4530 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4532 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4534 * i386.c (ix86_get_function_versions_dispatcher,
4535 ix86_generate_version_dispatcher_body): Update.
4536 (fold_builtin_cpu): Use varpool_add_new_variable.
4537 * varpool.c (varpool_remove_initializer): Break out from ...
4538 (varpool_remove_node): ... this one.
4539 (dump_varpool_node, varpool_node_for_asm,
4540 cgraph_variable_initializer_availability, varpool_analyze_node,
4541 varpool_assemble_decl, varpool_remove_unreferenced_decls,
4542 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4545 2013-05-29 Jan Hubicka <jh@suse.cz>
4547 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4549 2013-05-29 Easwaran Raman <eraman@google.com>
4551 PR tree-optimization/57442
4552 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4553 when control exits the main loop.
4555 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4557 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4559 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
4560 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4561 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4564 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4566 PR tree-optimization/57441
4567 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4568 Don't limit size of incr_vec to number of candidates.
4570 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
4572 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4573 and mips16 directories.
4574 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4575 (MULTILIB_DIRNAMES): Ditto.
4576 (MULTILIB_EXCEPTIONS): Add new exceptions.
4577 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4578 (MULTILIB_DIRNAMES): Ditto.
4579 (MULTILIB_EXCEPTIONS): Add new exceptions.
4581 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4582 Marcus Shawcroft <marcus.shawcroft@arm.com>
4584 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4585 SYMBOL_TINY_ABSOLUTE.
4586 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4587 SYMBOL_TINY_ABSOLUTE.
4588 (aarch64_expand_mov_immediate): Likewise.
4589 (aarch64_classify_symbol): Likewise.
4590 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4591 Permit SYMBOL_TINY_ABSOLUTE.
4592 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4594 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4595 Marcus Shawcroft <marcus.shawcroft@arm.com>
4597 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4598 Refactor if/switch. Replace gcc_assert with if.
4600 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4602 * config/i386/i386.c (initial_ix86_tune_features): Enable
4603 FP Reassociation for AMD bdver1 and bdver2.
4605 2013-05-29 Martin Jambor <mjambor@suse.cz>
4607 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4608 and IMAGPART_EXPR do not occur within other handled_components.
4610 2013-05-29 Richard Biener <rguenther@suse.de>
4612 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4613 access on whether the use is in the BB we currently try to
4615 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4616 vectorize to vect_bb_slp_scalar_cost.
4618 2013-05-29 Richard Biener <rguenther@suse.de>
4620 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4621 computing scalar cost offsetted by stmts that are kept live
4623 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4624 for computation of scalar cost.
4626 2013-05-28 Steve Ellcey <sellcey@mips.com>
4628 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4630 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4632 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4633 array notation built-in reduction functions.
4634 * doc/passes.texi (Passes): Added documentation about changes done
4636 * doc/invoke.texi (C Dialect Options): Added documentation about
4637 the -fcilkplus flag.
4638 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4639 (BUILTINS_DEF): Depend on cilkplus.def.
4640 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4641 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4642 * cilkplus.def: New file.
4644 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4646 PR rtl-optimization/57439
4647 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4649 2013-05-28 Easwaran Raman <eraman@google.com>
4651 PR tree-optimization/57337
4652 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4653 (find_insert_point): Correctly identify the insertion point
4654 when two statements with the same UID is compared.
4656 2013-05-28 Richard Biener <rguenther@suse.de>
4658 PR tree-optimization/56787
4659 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4660 from the list of data references.
4661 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4663 (vect_analyze_loop_operations): Likewise.
4664 (vect_transform_loop): Remove clobbers.
4666 2013-05-28 Martin Jambor <mjambor@suse.cz>
4668 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4669 and REALPART_EXPRs have scalar type.
4671 2013-05-28 Richard Biener <rguenther@suse.de>
4673 PR tree-optimization/57411
4674 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4676 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4677 virtual operand propagation.
4679 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4681 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4682 destination register for bmasksi_vis.
4683 (vector_init_bshuffle): Likewise.
4684 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4686 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4688 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4689 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4690 mode if the instruction isn't available in the original mode.
4691 * config/sparc/sparc.opt (mfix-ut699): New option.
4692 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4693 (divdf3): Turn into expander.
4694 (divdf3_nofix): New insn.
4695 (divdf3_fix): Likewise.
4696 (divsf3): Disable if -mfix-ut699.
4697 (sqrtdf2): Turn into expander.
4698 (sqrtdf2_nofix): New insn.
4699 (sqrtdf2_fix): Likewise.
4700 (sqrtsf2): Disable if -mfix-ut699.
4702 2013-05-27 Richard Biener <rguenther@suse.de>
4705 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4706 block for the new loop.
4708 2013-05-27 Richard Biener <rguenther@suse.de>
4710 PR tree-optimization/57343
4711 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4712 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4713 (number_of_iterations_cond): Do not build the folded tree.
4715 2013-05-27 Richard Biener <rguenther@suse.de>
4719 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4720 OEP_CONSTANT_ADDRESS_OF retained.
4722 PR tree-optimization/57417
4723 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4725 (set_ssa_val_to): Compare addresses using
4726 get_addr_base_and_unit_offset.
4728 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4730 PR rtl-optimization/56833
4731 * postreload.c (move2add_record_mode): New function.
4732 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4733 (move2add_use_add2_insn): Use move2add_record_sym_value.
4734 (move2add_use_add3_insn): Likewise.
4735 (reload_cse_move2add): Use move2add_valid_value_p and
4736 move2add_record_mode. Invalidate call-clobbered and REG_INC
4737 affected regs by setting reg_mode to VOIDmode.
4738 (move2add_note_store): Don't pretend the inside of a SUBREG is
4739 the actual destination. Invalidate single/leading registers by
4740 setting reg_mode to VOIDmode.
4741 Use move2add_record_sym_value, move2add_valid_value_p and
4742 move2add_record_mode.
4744 2013-05-27 Richard Biener <rguenther@suse.de>
4746 PR tree-optimization/57396
4747 * tree-affine.c (double_int_constant_multiple_p): Properly
4748 return false for val == 0 and div != 0.
4750 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4752 * config/mips/mips.h: Use #elif in preprocessor conditions.
4754 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4757 * config/mips/constraints.md (kl): New constraint.
4758 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4759 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4760 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4762 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4764 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4767 * config/mips/mips.c (mips_can_inline_p): New function.
4768 (TARGET_CAN_INLINE_P): Define.
4770 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4772 * sched-int.h (ds_t, dw_t): Make unsigned int.
4773 Fix documentation that describes how all the ds_t bits are used.
4774 Reserve the last bit for delayed-branch scheduling.
4775 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4776 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4777 (gen_dep_weak_1): Remove prototype.
4778 * sched-deps.c (get_dep_weak_1): Make static.
4779 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4780 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4781 * doc/tm.texi: Regenerate.
4782 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4784 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4787 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4789 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4790 Sandra Loosemore <sandra@codesourcery.com>
4792 * config.gcc (powerpc-*): Allow native for with-cpu.
4794 2013-05-24 Jeff Law <law@redhat.com>
4796 PR tree-optimization/57124
4797 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4798 conversion feeding a condition if the range has an overflow
4799 if -fstrict-overflow. Add warnings for when we do make the
4802 2013-05-24 Dehao Chen <dehao@google.com>
4804 * tree-cfg.c (locus_discrim_map): Fix the typo.
4805 (locus_discrim_hasher): Likewise.
4806 (locus_discrim_hasher::hash): Likewise.
4807 (locus_discrim_hasher::equal): Likewise.
4809 2013-05-24 Martin Jambor <mjambor@suse.cz>
4811 PR tree-optimization/57294
4812 * cgraph.h (ipa_record_stmt_references): Declare.
4813 * cgraphbuild.c (ipa_record_stmt_references): New function.
4814 (build_cgraph_edges): Use ipa_record_stmt_references.
4815 (rebuild_cgraph_edges): Likewise.
4816 (cgraph_rebuild_references): Likewise.
4817 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4818 associated with the old statement and build references from the
4819 newly built statements.
4820 * ipa-ref.c (ipa_remove_stmt_references): New function.
4821 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4823 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4825 * lra-constraints.c (emit_spill_move): Use smaller mode for
4827 (check_and_process_move): Consider mem-reg moves for secondary
4829 (curr_insn_transform): Don't lose insns emitted before for
4830 secondary memory moves.
4831 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4832 reg set up in the current insn.
4834 2013-05-24 Dehao Chen <dehao@google.com>
4836 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4838 (locus_descrim_hasher::equal): Likewise.
4839 (build_gimple_cfg): New discriminator assignment algorithm.
4840 (make_edges): Likewise.
4841 (next_discriminator_for_locus): Likewise.
4842 (same_line_p): Likewise.
4843 (assign_discriminators): Likewise.
4844 (make_cond_expr_edges): Likewise.
4845 (make_gimple_switch_edges): Likewise.
4846 (make_goto_expr_edges): Likewise.
4847 (make_gimple_asm_edges): Likewise.
4849 2013-05-24 Ian Bolton <ian.bolton@arm.com>
4851 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4852 X format specifier to only display bottom 16 bits.
4853 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4854 immediate to match for operand 2, since it will be masked.
4856 2013-05-24 Richard Biener <rguenther@suse.de>
4858 PR tree-optimization/57287
4859 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4860 all SSA names that occur in abnormal PHIs.
4862 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4865 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4866 that index is not negative.
4868 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4870 PR rtl-optimization/55177
4871 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4872 (simplify_byte_swapping_operation): New.
4873 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4874 (simplify_relational_operation_1): Deal with BSWAP.
4876 2013-05-23 Richard Henderson <rth@redhat.com>
4879 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4880 (ix86_reorg): Call it.
4882 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
4885 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4886 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4887 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4889 2013-05-23 Christian Bruel <christian.bruel@st.com>
4892 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4894 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4895 Marcus Shawcroft <marcus.shawcroft@arm.com>
4897 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4898 * config/aarch64/constraints.md (Usa): Remove.
4899 * doc/md.texi (AArch64 Usa): Remove.
4901 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4902 Marcus Shawcroft <marcus.shawcroft@arm.com>
4904 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4905 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4906 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4907 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4909 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4911 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4912 instruction (AdvSIMD).
4913 * config/aarch64/aarch64-builtins.c
4914 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4915 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4917 2013-05-23 Martin Jambor <mjambor@suse.cz>
4920 * tree.h (contains_bitfld_component_ref_p): Declare.
4921 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4922 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4924 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4925 not access a bit-field. Assert all final offsets are byte-aligned.
4927 2013-05-23 Richard Biener <rguenther@suse.de>
4929 PR tree-optimization/57380
4930 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4931 least one invariant or re-used load.
4932 * passes.c (init_optimization_passes): Move pass_phiprop before
4935 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4937 * config/aarch64/aarch64-simd.md
4938 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4940 2013-05-23 Richard Biener <rguenther@suse.de>
4943 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4944 OEP_CONSTANT_ADDRESS_OF retained.
4946 2013-05-23 Jakub Jelinek <jakub@redhat.com>
4949 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4950 don't lower unit. Handle unit not being always BITS_PER_WORD.
4952 2013-05-23 Richard Biener <rguenther@suse.de>
4954 PR rtl-optimization/57341
4955 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4956 instead of true_dependence.
4958 2013-05-22 David Malcolm <dmalcolm@redhat.com>
4960 * bb-reorder.c (branch_threshold): Make const.
4961 (exec_threshold): Ditto.
4963 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4964 Pat Haugen <pthaugen@us.ibm.com>
4965 Peter Bergner <bergner@vnet.ibm.com>
4967 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4968 documentation for the power8 crypto builtins.
4970 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4972 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4973 macros for defining power8 builtin functions.
4974 (BU_P8V_AV_2): Likewise.
4975 (BU_P8V_AV_P): Likewise.
4976 (BU_P8V_VSX_1): Likewise.
4977 (BU_P8V_OVERLOAD_1): Likewise.
4978 (BU_P8V_OVERLOAD_2): Likewise.
4979 (BU_CRYPTO_1): Likewise.
4980 (BU_CRYPTO_2): Likewise.
4981 (BU_CRYPTO_3): Likewise.
4982 (BU_CRYPTO_OVERLOAD_1): Likewise.
4983 (BU_CRYPTO_OVERLOAD_2): Likewise.
4984 (XSCVSPDP): Fix typo, point to the correct instruction.
4985 (VCIPHER): Add power8 crypto builtins.
4986 (VCIPHERLAST): Likewise.
4987 (VNCIPHER): Likewise.
4988 (VNCIPHERLAST): Likewise.
4989 (VPMSUMB): Likewise.
4990 (VPMSUMH): Likewise.
4991 (VPMSUMW): Likewise.
4992 (VPERMXOR_V2DI): Likewise.
4993 (VPERMXOR_V4SI: Likewise.
4994 (VPERMXOR_V8HI: Likewise.
4995 (VPERMXOR_V16QI: Likewise.
4996 (VSHASIGMAW): Likewise.
4997 (VSHASIGMAD): Likewise.
4999 (VPERMXOR): Likewise.
5000 (VSHASIGMA): Likewise.
5002 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5003 __CRYPTO__ if the crypto instructions are available.
5004 (altivec_overloaded_builtins): Add support for overloaded power8
5007 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
5008 support for power8 crypto builtins.
5009 (builtin_function_type): Likewise.
5010 (altivec_init_builtins): Add support for builtins that take vector
5011 long long (V2DI) arguments.
5013 * config/rs6000/crypto.md: New file, define power8 crypto
5016 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5017 Pat Haugen <pthaugen@us.ibm.com>
5018 Peter Bergner <bergner@vnet.ibm.com>
5020 * doc/invoke.texi (Option Summary): Add power8 options.
5021 (RS/6000 and PowerPC Options): Likewise.
5023 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
5024 constraints.md instead of rs6000.h. Reorder w* constraints. Add
5025 wm, wn, wr documentation.
5027 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
5028 registers if direct move instructions are enabled.
5029 (wn): New constraint for no registers.
5030 (wq): New constraint for quad word even GPR registers.
5031 (wr): New constraint if 64-bit instructions are enabled.
5032 (wv): New constraint if power8 vector instructions are enabled.
5033 (wQ): New constraint for quad word memory locations.
5035 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
5036 constraint for 0..15 for crypto instructions.
5037 (gpc_reg_operand): If VSX allow registers in VSX registers as well
5038 as GPR and floating point registers.
5039 (int_reg_operand): New predicate to match only GPR registers.
5040 (base_reg_operand): New predicate to match base registers.
5041 (quad_int_reg_operand): New predicate to match even GPR registers
5042 for quad memory operations.
5043 (vsx_reg_or_cint_operand): New predicate to allow vector logical
5044 operations in both GPR and VSX registers.
5045 (quad_memory_operand): New predicate for quad memory operations.
5046 (reg_or_indexed_operand): New predicate for direct move support.
5048 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
5049 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
5050 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
5051 (POWERPC_MASKS): Add power8 options.
5052 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
5055 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
5056 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
5058 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
5059 (-mpower8-fusion): New power8 options.
5060 (-mpower8-fusion-sign): Likewise.
5061 (-mpower8-vector): Likewise.
5062 (-mcrypto): Likewise.
5063 (-mdirect-move): Likewise.
5064 (-mquad-memory): Likewise.
5066 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
5068 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
5070 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
5071 (rs6000_debug_vector_unit): Add p8_vector.
5072 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
5073 definitions. Also print fusion state.
5074 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
5075 (rs6000_builtin_mask_calculate): Add power8 builtin support.
5076 (rs6000_option_override_internal): Add support for power8.
5077 (rs6000_common_init_builtins): Add debugging for skipped builtins
5079 (rs6000_adjust_cost): Add power8 support.
5080 (rs6000_issue_rate): Likewise.
5081 (insn_must_be_first_in_group): Likewise.
5082 (insn_must_be_last_in_group): Likewise.
5083 (force_new_group): Likewise.
5084 (rs6000_register_move_cost): Likewise.
5085 (rs6000_opt_masks): Likewise.
5087 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
5088 power8 capable assembler, default to power7 options.
5089 (TARGET_DIRECT_MOVE): Likewise.
5090 (TARGET_CRYPTO): Likewise.
5091 (TARGET_P8_VECTOR): Likewise.
5092 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
5093 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
5094 (VECTOR_MEM_P8_VECTOR_P): Likewise.
5095 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
5096 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
5097 (TARGET_XSCVDPSPN): Likewise.
5098 (TARGET_XSCVSPDPN): Likewsie.
5099 (TARGET_SYNC_HI_QI): Likewise.
5100 (TARGET_SYNC_TI): Likewise.
5101 (MASK_CRYPTO): Likewise.
5102 (MASK_DIRECT_MOVE): Likewise.
5103 (MASK_P8_FUSION): Likewise.
5104 (MASK_P8_VECTOR): Likewise.
5105 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
5106 temporary used by some of the direct move instructions to get two FP
5107 temporary registers does not force creation of a stack frame.
5108 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
5109 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
5110 that any VSX registers are tieable, even if they are also an
5111 Altivec vector mode.
5112 (r6000_reg_class_enum): Add wm, wr, wv constraints.
5113 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
5114 (RS6000_BTM_CRYPTO): Likewise.
5115 (RS6000_BTM_COMMON): Likewise.
5117 * config/rs6000/rs6000.md (cpu attribute): Add power8.
5118 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
5119 (enum rs6000_vector): Add power8 vector support.
5121 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5125 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
5126 (any_sibcall_could_use_r3): this and handle indirect calls.
5127 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
5129 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5131 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
5133 2013-05-22 Richard Biener <rguenther@suse.de>
5136 * profile.c (branch_prob): Do not split blocks that are
5137 abnormally receiving from ECF_RETURNS_TWICE functions.
5139 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5141 * recog.c (offsettable_address_addr_space_p): Fix calculation of
5142 address mode. Move pointer mode initialization to the same place.
5144 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5146 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
5147 while it has any effect.
5149 2013-05-21 Easwaran Raman <eraman@google.com>
5151 PR tree-optimization/57322
5152 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
5153 UID of the statement added to the BB to be 1.
5155 2013-05-21 Jakub Jelinek <jakub@redhat.com>
5157 PR tree-optimization/57331
5158 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
5159 of conversion from pointer type to integral type with integer.
5161 2013-05-21 Martin Jambor <mjambor@suse.cz>
5164 * ipa-prop.c (ipa_read_node_info): Process param_used and
5165 controlled_uses in the same order as when writing.
5167 2013-05-21 Magnus Granberg <baldrick@free.fr>
5170 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
5172 2013-05-21 Richard Biener <rguenther@suse.de>
5174 PR tree-optimization/57318
5175 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
5176 estimate stmts with side-effects as likely eliminated.
5178 2013-05-21 Richard Biener <rguenther@suse.de>
5180 PR tree-optimization/57330
5181 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
5182 preserve the call stmts fntype.
5184 2013-05-21 Richard Biener <rguenther@suse.de>
5186 PR tree-optimization/57303
5187 * tree-ssa-sink.c (statement_sink_location): Improve killing
5188 stmt detection and properly handle self-assignments.
5190 2013-05-21 Christian Bruel <christian.bruel@st.com>
5192 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
5193 spanning registers. LEAF_REG_REMAP is supported only for contiguous
5194 registers. Set register size out of the PARALLEL loop.
5196 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
5199 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
5200 (*fmasf4, *fmasf4_media): New insns.
5202 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5204 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
5205 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
5206 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
5207 (mips_idiv_insns): Update the comments to say that the returned
5208 instruction counts are in units of BASE_INSN_LENGTH.
5209 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
5210 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
5211 using 2 rather than 4 as the length of indirect MIPS16 and
5212 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
5213 length of a NOP. Don't divide MIPS16 lengths by 2.
5214 (mips16_split_long_branches): Assume a branch is long if the
5215 length is greater than 4 rather than 8.
5216 * config/mips/mips.md (length): Give MIPS16 lengths directly,
5217 rather than multiplying them by 2. Multiply instruction counts
5218 by BASE_INSN_LENGTH rather than 4.
5219 (*jump_mips16, tls_get_tp_mips16_<mode>)
5220 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
5222 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5224 * config/mips/mips.md (extended_mips16): Remove branch case.
5225 (length): Remove duplicated extended_mips16 test.
5227 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5229 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
5231 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
5233 * recog.h (Recog_data): Rename to...
5234 (recog_data_d): ...this.
5235 (recog_data): Update accordingly.
5236 * recog.c (recog_data): Likewise.
5237 * reload.c (save_recog_data): Likewise.
5238 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
5239 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
5241 2013-05-17 Julian Brown <julian@codesourcery.com>
5243 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
5244 found in a REG_EQUAL note, invalidate it.
5246 2013-05-17 Easwaran Raman <eraman@google.com>
5248 * tree-ssa-reassoc.c (find_insert_point): New function.
5249 (insert_stmt_after): Likewise.
5250 (get_def_stmt): Likewise.
5251 (ensure_ops_are_available): Likewise.
5252 (not_dominated_by): Likewise.
5253 (rewrite_expr_tree): Do not move statements beyond what is
5254 necessary. Remove call to swap_ops_for_binary_stmt...
5255 (reassociate_bb): ... and move it here.
5256 (build_and_add_sum): Assign UIDs for new statements.
5257 (linearize_expr): Likewise.
5258 (do_reassoc): Renumber gimple statement UIDs.
5260 2013-05-17 Jan Hubicka <jh@suse.cz>
5262 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
5264 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
5265 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
5267 (output_weakrefs): Update.
5269 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
5270 Martin Jambor <mjambor@suse.cz>
5273 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
5274 value that corresponds to the given aggval is found in values vector.
5276 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
5278 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
5279 sse, sse2, sse3, ssse3 and sse4a flags to options.
5281 2013-05-17 David Malcolm <dmalcolm@redhat.com>
5283 * gengtype-state.c: (s_expr_writer): New class, to handle
5284 prettifying of output layout of s-expressions.
5285 (state_writer): New class, to write out gtype.state.
5286 (state_written_type_count): Move this variable into member data of
5288 (s_expr_writer::s_expr_writer): New code: constructor for new class
5289 (state_writer::state_writer(): ditto
5290 (s_expr_writer::write_new_line): New function
5291 (s_expr_writer::write_any_indent): ditto
5292 (s_expr_writer::begin_s_expr): ditto
5293 (s_expr_writer::end_s_expr): ditto
5294 (write_state_fileloc): convert to method of state_writer...
5295 (state_writer:: write_state_fileloc): ...and use methods of
5296 s_expr_writer to write indentation into the gtype.state output file
5297 to visually represent the hierarchical structure of the list
5299 (write_state_fields): ditto, renaming to...
5300 (state_writer::write_state_fields)
5301 (write_state_a_string): ditto, renaming to...
5302 (state_writer::write_state_a_string)
5303 (write_state_string_option): ditto, renaming to...
5304 (state_writer::write_state_string_option)
5305 (write_state_type_option): ditto, renaming to...
5306 (state_writer::write_state_type_option)
5307 (write_state_nested_option): ditto, renaming to...
5308 (state_writer::write_state_nested_option)
5309 (write_state_option): ditto, renaming to...
5310 (state_writer::write_state_option)
5311 (write_state_options): ditto, renaming to...
5312 (state_writer::write_state_options)
5313 (write_state_lang_bitmap): ditto, renaming to...
5314 (state_writer::write_state_lang_bitmap)
5315 (write_state_version): ditto, renaming to...
5316 (state_writer::write_state_version)
5317 (write_state_scalar_type): ditto, renaming to...
5318 (state_writer::write_state_scalar_type)
5319 (write_state_string_type): ditto, renaming to...
5320 (state_writer::write_state_string_type)
5321 (write_state_undefined_type): ditto, renaming to...
5322 (state_writer::write_state_undefined_type)
5323 (write_state_struct_union_type): ditto, renaming to...
5324 (state_writer::write_state_struct_union_type)
5325 (write_state_struct_type): ditto, renaming to...
5326 (state_writer::write_state_struct_type)
5327 (write_state_user_struct_type): ditto, renaming to...
5328 (state_writer::write_state_user_struct_type)
5329 (write_state_lang_struct_type): ditto, renaming to...
5330 (state_writer::write_state_lang_struct_type)
5331 (write_state_param_struct_type): ditto, renaming to...
5332 (state_writer::write_state_param_struct_type)
5333 (write_state_pointer_type): ditto, renaming to...
5334 (state_writer::write_state_pointer_type)
5335 (write_state_array_type): ditto, renaming to...
5336 (state_writer::write_state_array_type)
5337 (write_state_gc_used): ditto, renaming to...
5338 (state_writer::write_state_gc_used)
5339 (write_state_common_type_content): ditto, renaming to...
5340 (state_writer::write_state_common_type_content)
5341 (write_state_type): ditto, renaming to...
5342 (state_writer::write_state_type)
5343 (write_state_pair_list): ditto, renaming to...
5344 (state_writer::write_state_pair_list)
5345 (write_state_pair): ditto, renaming to...
5346 (state_writer::write_state_pair)
5347 (write_state_typedefs): ditto, renaming to...
5348 (state_writer::write_state_typedefs)
5349 (write_state_structures): ditto, renaming to...
5350 (state_writer::write_state_structures)
5351 (write_state_param_structs): ditto, renaming to...
5352 (state_writer::write_state_param_structs)
5353 (write_state_variables): ditto, renaming to...
5354 (state_writer::write_state_variables)
5355 (write_state_srcdir): ditto, renaming to...
5356 (state_writer::write_state_srcdir)
5357 (write_state_files_list): ditto, renaming to...
5358 (state_writer::write_state_files_list)
5359 (write_state_languages): ditto, renaming to...
5360 (state_writer::write_state_languages)
5361 (write_state): create a state_writer instance and use it when
5362 writing out the state file
5364 2013-05-17 Mike Stump <mikestump@comcast.net>
5366 PR rtl-optimization/57304
5367 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5368 accessing DF_REF_REAL_LOC.
5370 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5372 PR rtl-optimization/57281
5373 PR rtl-optimization/57300
5374 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5375 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5376 what the other splitter did if the registers are dead.
5378 2013-05-17 Richard Biener <rguenther@suse.de>
5380 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5383 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5385 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5388 2013-05-17 Marek Polacek <polacek@redhat.com>
5390 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5391 length when doing non-zero store of storing '\0' to '\0'.
5393 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5395 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5396 vect_external_def oprnd1 with loop_vinfo, try to emit
5397 optional cast, negation and and stmts on the loop preheader
5398 edge instead of into the pattern def seq.
5400 PR tree-optimization/57051
5401 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5402 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5404 2013-05-16 Nick Clifton <nickc@redhat.com>
5406 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5407 (rl78_is_naked_func): New function.
5408 (rl78_expand_prologue): Skip prologue generation for naked functions.
5409 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
5410 * doc/extend.texi (naked): Add RL78 to the list of processors
5411 that supports this attribute.
5413 2013-05-16 Jeff Law <law@redhat.com>
5415 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5417 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5419 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5420 cache parameters using detect_caches_amd also for CYRIX,
5421 NSC and TM2 signatures.
5423 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5424 Dzianis Kahanovich <mahatma@eu.by>
5428 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5429 VIA/Centaur processors and determine their cache parameters
5430 using detect_caches_amd.
5432 2013-05-16 Teresa Johnson <tejohnson@google.com>
5434 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5435 (rtl_verify_edges): New function.
5436 (rtl_verify_bb_insns): Ditto.
5437 (rtl_verify_bb_pointers): Ditto.
5438 (rtl_verify_bb_insn_chain): Ditto.
5439 (rtl_verify_fallthru): Ditto.
5440 (rtl_verify_bb_layout): Ditto.
5441 (rtl_verify_flow_info_1): Outline checks into new functions.
5442 (rtl_verify_flow_info): Ditto.
5444 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
5446 * cfghooks.c (copy_bbs): Add update_dominance argument.
5447 * cfghooks.h (copy_bbs): Update prototype.
5448 * tree-cfg.c (gimple_duplicate_sese_region):
5449 Add update_dominance argument.
5450 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5451 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5452 gimple_duplicate_sese_region call.
5453 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5454 Update copy_bbs call.
5455 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5456 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5458 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5460 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5461 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5462 vect_recog_rotate_pattern.
5463 (vect_recog_rotate_pattern): New function.
5465 2013-05-16 Jason Merrill <jason@redhat.com>
5467 * Makefile.in (LLINKER): New variable.
5468 (mostlyclean): Remove link mutex.
5469 * configure.ac: Handle --enable-link-mutex.
5470 * lock-and-run.sh: New script.
5472 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5475 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5478 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5480 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5482 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5484 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5485 * config/arm/arm.c (next_consecutive_mem): New function.
5486 (gen_movmem_ldrd_strd): Likewise.
5487 * config/arm/arm.md (movmemqi): Update condition and code.
5488 (unaligned_loaddi, unaligned_storedi): New patterns.
5490 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5492 * config.gcc: Obsolete *-*-solaris2.9*.
5493 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5495 2013-05-16 Richard Biener <rguenther@suse.de>
5497 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5498 earlier, after GRAPHITE transforms and IV canonicalization.
5500 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5502 * omp-low.c (extract_omp_for_data): For collapsed loops,
5503 if at least one of the loops is known at compile time to
5504 iterate zero times, set count to 0.
5505 (expand_omp_regimplify_p): New function.
5506 (expand_omp_for_generic): For collapsed loops, if at least
5507 one of the loops isn't known to iterate at least once,
5508 add runtime check with setting count to 0.
5509 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5510 For unsigned types if it isn't known at compile time that
5511 the loop will iterate at least once, add runtime check to bypass
5512 the whole loop if initial condition isn't true.
5514 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5516 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5518 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
5521 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5522 transformations to avoid an infinite loop.
5524 2013-05-16 Marek Polacek <polacek@redhat.com>
5526 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5528 2013-05-15 Leif Ekblad <leif@rdos.net>
5530 * config/i386/i386.c (ix86_decompose_address): Use
5531 DEFAULT_TLS_SEG_REG to access TLS segment register.
5532 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5533 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5534 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5536 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5539 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5540 sibling calls to functions that would normally be lazily bound,
5541 unless $gp is call-clobbered.
5543 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
5545 * config/i386/i386.c (ix86_option_override_internal): Update
5546 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5547 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5548 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
5549 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5551 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5553 2013-05-15 Andreas Schwab <schwab@suse.de>
5555 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5556 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5559 2013-05-15 Teresa Johnson <tejohnson@google.com>
5561 * loop-unroll.c (report_unroll_peel): Check decision before
5562 emitting unroll/peel message.
5564 2013-05-15 Teresa Johnson <tejohnson@google.com>
5566 * function.h (has_bb_partition): New rtl_data flag.
5567 (bb_reorder_complete): Ditto.
5568 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5569 instead of flag_reorder_blocks_and_partition.
5570 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5571 with some enhancements.
5572 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5573 * bb-reorder.c (connect_traces): Check for has_bb_partition
5574 instead of flag_reorder_blocks_and_partition.
5575 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5576 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5577 verify_hot_cold_block_grouping.
5578 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5580 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5583 * config/arm/predicates.md (call_insn_operand): New predicate.
5584 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5585 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5586 if insn is not a tail call.
5587 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5589 * config/arm/arm.h (enum reg_class): New caller save register class.
5590 (REG_CLASS_NAMES): Likewise.
5591 (REG_CLASS_CONTENTS): Likewise.
5592 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5595 2013-05-15 Richard Biener <rguenther@suse.de>
5597 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5598 of MSG_OPTIMIZED_LOCATIONS.
5599 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5600 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5602 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5603 of MSG_OPTIMIZED_LOCATIONS.
5604 (execute_vect_slp): Likewise.
5605 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5606 (vect_create_cond_for_alias_checks): Likewise.
5607 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5608 (vect_recog_widen_mult_pattern): Likewise.
5609 (vect_recog_widen_sum_pattern): Likewise.
5610 (vect_recog_over_widening_pattern): Likewise.
5611 (vect_recog_widen_shift_pattern): Likewise.
5612 (vect_recog_vector_vector_shift_pattern): Likewise.
5613 (vect_recog_divmod_pattern): Likewise.
5614 (vect_recog_mixed_size_cond_pattern): Likewise.
5615 (vect_recog_bool_pattern): Likewise.
5616 (vect_pattern_recog_1): Likewise.
5618 2013-05-15 Martin Jambor <mjambor@suse.cz>
5620 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5621 non-functions to builtin_unreachable.
5622 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5623 correct when new direct edges were discovered.
5625 2013-05-15 Martin Jambor <mjambor@suse.cz>
5627 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5628 header, print symbol order instead of node uid, print more information
5629 about indirect edge targets.
5630 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5632 (ipa_make_edge_direct_to_target): Likewise.
5633 (remove_described_reference): Likewise.
5634 (propagate_controlled_uses): Likewise.
5635 (ipa_print_node_params): Also print symbol order.
5636 (ipcp_transform_function): Print symbol order instead of node uids.
5637 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5638 (cgraph_get_create_real_symbol_node): Likewise.
5639 * ipa-cp.c (print_lattice): Likewise.
5640 (print_all_lattices): Likewise.
5641 (determine_versionability): Likewise.
5642 (initialize_node_lattices): Likewise.
5643 (estimate_local_effects): Likewise.
5644 (update_profiling_info): Likewise.
5645 (create_specialized_node): Likewise.
5646 (perhaps_add_new_callers): Likewise.
5647 (decide_about_value): Likewise.
5648 (decide_whether_version_node): Likewise.
5649 (identify_dead_nodes): Likewise.
5650 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5651 (dump_inline_summary): Likewise.
5652 (estimate_node_size_and_time): Likewise.
5653 (inline_analyze_function): Likewise.
5654 * ipa-inline.c (report_inline_failed_reason): Likewise.
5655 (want_early_inline_function_p): Likewise.
5656 (edge_badness): Likewise.
5657 (update_edge_key): Likewise.
5658 (inline_small_functions): Likewise. Add dumping of order to two other
5660 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5661 instead of node uids.
5662 (propagate_pure_const): Likewise.
5663 (propagate_pure_const): Likewise.
5664 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5665 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5666 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5668 * tree-pretty-print.c (dump_function_header): Likewise.
5669 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5670 Print symbol order instead of node uids.
5672 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5674 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5675 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5677 2013-05-15 Richard Biener <rguenther@suse.de>
5679 PR tree-optimization/57275
5680 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5681 return value for fail to do runtime alias checks for gather loads.
5683 2013-05-15 Jan Hubicka <jh@suse.cz>
5687 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5688 weakrefs are not external.
5689 (lto_symtab_merge_decls): Fix thinko when dealing with
5690 non-lto_symtab decls.
5691 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5692 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5693 * varpool.c (dump_varpool_node): Dump more flags.
5695 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5697 * config/i386/i386.c (processor_alias_table): Add instruction
5698 FSGSBASE for AMD bdver3 architecture.
5700 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5702 * tree.c (warn_deprecated_use): Print file:line using locus color.
5703 * diagnostic.c (diagnostic_report_current_module): Print file:line
5704 and file:line:column using locus color.
5706 2013-05-14 Mike Stump <mikestump@comcast.net>
5708 * gdbinit.in: Add __null.
5710 2013-05-14 Mike Stump <mikestump@comcast.net>
5712 * recog.h: Rename struct recog_data to Recog_data.
5713 * recog.c: Likewise.
5714 * reload.c (can_reload_into): Likewise.
5715 * config/picochip/picochip.c: Likewise.
5717 2013-05-14 Mike Stump <mikestump@comcast.net>
5719 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5721 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5723 * resource.h (struct resources): Remove unch_memory member.
5724 (CLEAR_RESOURCE): Don't clear unch_memory.
5725 * resource.c (mark_referenced_resources): Don't set it.
5726 (mark_set_resources): Likewise.
5727 (mark_target_live_regs): Don't clear it.
5728 (init_resource_info): Likewise.
5729 * reorg.c (resource_conflicts_p): Don't compare it.
5730 (redundant_insn): Don't set it.
5732 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5734 * emit-rtl.c (next_label): Remove unused function.
5735 (skip_consecutive_labels, link_cc0_insns): Move to ...
5736 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5737 only place where these functions are used, and make them static.
5739 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5741 * fold-const.c (fold_negate_expr): Handle vectors.
5742 (fold_truth_not_expr): Make it static.
5743 (fold_invert_truthvalue): New static function.
5744 (invert_truthvalue_loc): Handle vectors. Do not call
5745 fold_truth_not_expr directly.
5746 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5747 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5748 (fold_comparison): Handle vector constants.
5749 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5750 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5751 * tree.h (fold_truth_not_expr): Remove declaration.
5753 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5755 * config/aarch64/aarch64-simd.md
5756 (aarch64_vcond_internal<mode>): Rename to...
5757 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5758 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5759 float modes. Clarify all iterator modes.
5760 (vcond<mode><mode>): Use new name for vcond expanders.
5761 (vcond<v_cmp_result><mode>): Likewise.
5762 (vcondu<mode><mode>: Likewise.
5763 * config/aarch64/iterators.md (VDQF_COND): New.
5765 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5768 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5769 variable for the shift amount. Check that we shift by non-negative
5772 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5775 * config/arm/arm.h (EPILOGUE_USES): Only return true
5776 for LR_REGNUM after epilogue_completed.
5778 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5780 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5783 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5786 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5787 and Solaris 11+/x86 with gld.
5788 * configure: Regenerate.
5790 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5792 * expmed.c (expand_shift_1): Canonicalize rotates by
5793 constant bitsize / 2 to bitsize - 1.
5794 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5795 case ROTATERT>: Likewise.
5798 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5800 * config/i386/i386.md (rotateinv): New code attr.
5801 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5802 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5803 roll $31, %eax, etc.
5805 2013-05-14 Richard Biener <rguenther@suse.de>
5808 * tree-eh.c (sink_clobbers): Give up for successors with
5809 multiple predecessors and no virtual uses.
5811 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5813 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5814 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5816 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5819 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5820 the case when both op0 and op1 have VOIDmode.
5822 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5824 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5825 in multiply-accumulate mode.
5827 2013-05-13 Guozhi Wei <carrot@google.com>
5829 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5831 2013-05-13 Kai Tietz <ktietz@redhat.com>
5834 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5835 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5836 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5837 * config/i386/i386.c (ix86_option_override_internal): Likewise.
5838 (ix86_expand_prologue): Likewise.
5839 (ix86_expand_split_stack_prologue): Likewise.
5840 (legitimate_pic_address_disp_p): Likewise.
5841 (legitimize_pic_address): Likewise.
5842 (legitimize_tls_address): Likewise.
5843 (legitimize_pe_coff_symbol): Likewise.
5844 (output_pic_addr_const): Likewise.
5845 (construct_plt_address): Likewise.
5846 (ix86_expand_call): Likewise.
5847 (x86_output_mi_thunk): Likewise.
5848 (x86_function_profiler): Likewise.
5850 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5852 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5853 similar switch cases.
5854 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5855 (aarch64_simd_mov_to_<mode>low): Delete.
5856 (aarch64_simd_mov_to_<mode>high): Delete.
5857 (move_lo_quad_<mode>): Add w<-r alternative.
5858 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5859 (aarch64_simd_mov_from_*): Update type attribute.
5860 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5863 2013-05-13 Jan Hubicka <jh@suse.cz>
5865 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5866 * config/i386/i386.c (ix86_compute_frame_layout,
5867 ix86_expand_epilogue, emit_i387_cw_initialization,
5868 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5869 ix86_local_alignment): Fix use of size/speed predicates.
5871 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5873 PR tree-optimization/45216
5874 PR tree-optimization/57157
5875 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5876 the (-Y) & (B - 1) variant if OP is |.
5877 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5878 return shifted. Use (-op1) & (prec - 1) as other_amount
5879 instead of prec - op1.
5881 2013-05-13 Martin Jambor <mjambor@suse.cz>
5884 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5885 (ipa_constant_data): New type.
5886 (ipa_jump_func): Use ipa_constant_data to hold information about
5887 constant jump functions.
5888 (ipa_get_jf_constant): Adjust to jump function type changes.
5889 (ipa_get_jf_constant_rdesc): New function.
5890 (ipa_param_descriptor): New field controlled_uses.
5891 (ipa_get_controlled_uses): New function.
5892 (ipa_set_controlled_uses): Likewise.
5893 * ipa-ref.h (ipa_find_reference): Declare.
5894 * ipa-prop.c (ipa_cst_ref_desc): New type.
5895 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5897 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5898 New parameter cs. Adjust all callers.
5899 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5900 (remove_described_reference): New function.
5901 (jfunc_rdesc_usable): Likewise.
5902 (try_make_edge_direct_simple_call): Decrement controlled use count,
5903 attempt to remove reference if it hits zero.
5904 (combine_controlled_uses_counters): New function.
5905 (propagate_controlled_uses): Likewise.
5906 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5907 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5908 (ipa_print_node_params): Print described use counter.
5909 (ipa_write_jump_function): Adjust to jump function type changes.
5910 (ipa_read_jump_function): New parameter CS, pass it to
5911 ipa_set_jf_constant. Adjust caller.
5912 (ipa_write_node_info): Stream controlled use count
5913 (ipa_read_node_info): Likewise.
5914 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5916 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5917 count. Remove cloning-added reference if it reaches zero.
5918 * ipa-ref.c (ipa_find_reference): New function.
5920 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5922 * config/i386/i386.c (processor_target_table): Modified default
5923 alignment values for AMD BD and BT architectures.
5925 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
5927 * tree-vect-generic.c (uniform_vector_p): Move ...
5928 * tree.c (uniform_vector_p): ... here.
5929 * tree.h (uniform_vector_p): Declare it.
5930 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5933 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5935 PR tree-optimization/57230
5936 * tree-ssa-strlen.c (handle_char_store): Record length for
5937 array store from STRING_CST.
5939 PR tree-optimization/57230
5940 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5943 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5945 * config/epiphany/epiphany.c (epiphany_init): Check size of
5946 NUM_MODES_FOR_MODE_SWITCHING.
5947 (epiphany_expand_prologue):
5948 Remove CONFIG_REGNUM initial value handling code.
5949 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5950 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5951 (emit_set_fp_mode, epiphany_mode_after): Likewise.
5952 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5953 Don't return 1 for FP_MODE_NONE.
5954 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5955 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5956 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5957 * config/epiphany/epiphany.md (save_config): New pattern.
5959 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
5961 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5963 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
5965 * config/i386/i386.md (memory): Handle sseishft1.
5966 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5967 (*vec_extractv2di_1): Ditto.
5969 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5971 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5974 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
5976 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5977 Add mthumb/march=armv7-a multilib.
5978 Add mthumb/march=armv7-r multilib.
5979 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5981 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5983 * config/v850/t-rtems: Add more multilibs.
5985 2013-05-10 Richard Biener <rguenther@suse.de>
5987 PR tree-optimization/57214
5988 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5989 not propagate from SSA names that occur in abnormal PHI nodes.
5991 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
5993 * stor-layout.c (element_precision): New function.
5994 * machmode.h (element_precision): Declare it.
5995 * tree.c (build_minus_one_cst): New function.
5996 (element_precision): Likewise.
5997 * tree.h (build_minus_one_cst): Declare new function.
5998 (element_precision): Likewise.
5999 * fold-const.c (operand_equal_p): Use element_precision.
6000 (fold_binary_loc): Handle vector types.
6001 * convert.c (convert_to_integer): Use element_precision.
6002 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
6005 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
6007 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
6008 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
6009 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
6010 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
6011 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
6012 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
6013 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
6014 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
6015 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
6016 (Uuw8): New constraints.
6017 (Usb4): Move into alphabetical order.
6018 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
6019 (sd8_operand, ub8_operand, uw8_operand): New predicates.
6020 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
6021 previously unnamed patterns.
6022 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
6023 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
6024 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
6025 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
6026 of set_attr_alternative/if_then_else. Use extended_mips16 instead
6027 of specific lengths.
6029 2013-05-10 Jakub Jelinek <jakub@redhat.com>
6031 * config/i386/i386.md (rotateinv): New code attr.
6032 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
6033 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
6034 roll $31, %eax, etc.
6036 PR tree-optimization/45216
6037 PR tree-optimization/57157
6038 * tree-ssa-forwprop.c (simplify_rotate): New function.
6039 (ssa_forward_propagate_and_combine): Call it.
6041 2013-05-10 Richard Biener <rguenther@suse.de>
6043 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6044 disable peeling when we version for aliasing.
6045 (vector_alignment_reachable_p): Honor explicit user alignment.
6046 (vect_supportable_dr_alignment): Likewise.
6047 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
6048 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
6049 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
6050 then peeling to arrange for the cost-model check to come first.
6052 2013-05-10 Alan Modra <amodra@gmail.com>
6054 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
6055 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
6056 * configure: Regenerate.
6058 2013-05-10 Alan Modra <amodra@gmail.com>
6061 * varasm.c (default_elf_select_section): Move !DECL_P check..
6062 (get_named_section): ..to here before calling get_section_name.
6064 (default_section_type_flags): Add DECL_P check.
6065 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
6066 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
6068 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
6070 * config/epiphany/epiphany.c (epiphany_expand_prologue):
6071 When using gen_stack_adjust_str with a register offset, add a
6072 REG_FRAME_RELATED_EXPR note.
6074 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
6076 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
6077 (*vec_extractv4si_zext_mem): Ditto.
6078 (*vec_extractv2di): Add 0->x and x->x alternatives.
6079 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
6080 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
6082 2013-05-09 Jason Merrill <jason@redhat.com>
6084 N3639 C++1y VLA support
6085 * gimplify.c (gimplify_vla_decl): Don't touch an existing
6088 * tree.c (build_constructor_va): New.
6089 * tree.h: Declare it.
6091 2013-05-09 Martin Jambor <mjambor@suse.cz>
6094 * gimple-fold.c (canonicalize_constructor_val): Call
6095 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
6097 2013-05-09 Jan Hubicka <jh@suse.cz>
6098 Richard Biener <rguenther@suse.de>
6101 * symtab.c (symtab_make_decl_local): Do not add private names.
6103 2013-05-09 Jan Hubicka <jh@suse.cz>
6106 * symtab.c (insert_to_assembler_name_hash): Handle clones.
6107 (unlink_from_assembler_name_hash): Likewise.
6108 (symtab_prevail_in_asm_name_hash, symtab_register_node,
6109 symtab_unregister_node, symtab_initialize_asm_name_hash,
6110 change_decl_assembler_name): Update.
6112 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
6114 * config/aarch64/aarch64.md: New movtf split.
6115 (*movtf_aarch64): Update.
6116 (aarch64_movdi_tilow): Handle TF modes and rename to
6117 aarch64_movdi_<mode>low.
6118 (aarch64_movdi_tihigh): Handle TF modes and rename to
6119 aarch64_movdi_<mode>high
6120 (aarch64_movtihigh_di): Handle TF modes and rename to
6121 aarch64_mov<mode>high_di
6122 (aarch64_movtilow_di): Handle TF modes and rename to
6123 aarch64_mov<mode>low_di
6124 (aarch64_movtilow_tilow): Remove spurious whitespace.
6125 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
6127 (aarch64_print_operand): Update.
6129 2013-05-09 Alan Modra <amodra@gmail.com>
6131 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
6133 * configure: Regenerate.
6135 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
6137 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
6138 splitter preparation statements.
6139 * config/i386/sse.md (*vec_extract* splitters): Ditto.
6140 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
6143 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6145 * gimple-ssa-strength-reduction.c (count_candidates): Change
6146 return value to int.
6147 (analyze_candidates_and_replace): Change type of length to int.
6149 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
6151 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
6152 (*vec_extract<mode>): Use VI12_128 mode iterator.
6153 (*vec_extract<mode>_mem): Ditto.
6154 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
6157 2013-05-08 Diego Novillo <dnovillo@google.com>
6162 2012-08-17 Diego Novillo <dnovillo@google.com>
6165 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
6166 * config.in: Regenerate.
6167 * configure: Regenerate.
6168 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
6170 2013-05-08 Jan Hubicka <jh@suse.cz>
6173 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
6174 * cgraph.h (symtab_node_base): Add unique_name.
6175 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6176 input_overwrite_node, input_varpool_node): Stream unique_name.
6177 * cgraphclones.c (cgraph_create_virtual_clone,
6178 cgraph_function_versioning): Set unique_name.
6179 * ipa.c (function_and_variable_visibility): Set unique_name.
6181 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6183 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
6184 (alloc_cand_and_find_basis): Restrict conditional candidate
6185 processing to CAND_MULTs.
6187 2013-05-08 Jan Hubicka <jh@suse.cz>
6190 lto-symtab.c (lto_symtab_symbol_p): New function.
6191 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
6192 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
6193 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
6194 Skip static symbols.
6196 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
6198 PR tree-optimization/57200
6199 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6200 Only call inform if the preceding warning_at returns true.
6202 2013-05-07 Han Shen <shenhan@google.com>
6204 * cfgexpand.c (record_or_union_type_has_array_p): New function.
6205 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
6206 * common.opt (fstack-protector-strong): New option.
6207 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
6208 * doc/invoke.texi (Optimization Options): Document
6209 "-fstack-protector-strong".
6210 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
6212 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6214 * config/mips/mips.c (mips_machine_reorg2): Return 0.
6216 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
6218 * ira.c (update_equiv_regs): Add insn having equiv memory even if
6219 it is not lhs of the insn.
6220 (setup_reg_equiv): Remove insn having equiv memory which it is not
6222 * lra-constraints.c (process_address): Try to improve generation
6223 code for address base + disp.
6224 (lra_constraints): Make correct the code for checking insn setting
6225 up backward equivalence. Remove insn only if it is in the init
6227 * lra-eliminations.c (update_reg_eliminate): Change return value.
6228 (lra_eliminate): Use the result.
6230 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
6232 * config/i386/sse.md (ssescalarnummask): New mode attribute.
6233 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
6234 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
6235 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
6236 register target operands.
6237 (*vec_extractv8hi_sse2): New pattern.
6238 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
6239 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
6240 (*vec_extract<mode>_mem): New insn and split pattern.
6242 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
6244 * config/arm/arm.c (arm_asan_shadow_offset): New function.
6245 (TARGET_ASAN_SHADOW_OFFSET): Define.
6246 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
6247 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
6249 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6251 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
6252 (incr_vec_index): Return -1 if increment not found.
6253 (create_add_on_incoming_edge): Assert if increment not found.
6254 (record_increment): Limit number of increments recorded.
6255 (all_phi_incrs_profitable): Return false if an increment not found.
6256 (replace_profitable_candidates): Don't process increments that were
6258 (analyze_candidates_and_replace): Limit size of incr_vec.
6260 2013-05-07 Richard Biener <rguenther@suse.de>
6262 * calls.c (special_function_p): setjmp-like functions are leaf.
6263 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
6264 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
6266 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
6268 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
6269 (aarch64_simd_mov<mode>): New expander.
6270 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
6271 (aarch64_simd_mov_to_<mode>high): Likewise.
6272 (aarch64_simd_mov_from_<mode>low): Likewise.
6273 (aarch64_simd_mov_from_<mode>high): Likewise.
6274 (aarch64_dup_lane<mode>): Update.
6275 (aarch64_dup_lanedi): New instruction pattern.
6276 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
6277 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
6279 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6281 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
6282 (replace_mult_candidate): Remove unnecessary argument; remove
6283 unnecessary parameter from call to introduce_cast_before_cand.
6284 (replace_unconditional_candidate): Remove unnecessary parameter
6285 from call to replace_mult_candidate.
6286 (replace_conditional_candidate): Likewise.
6287 (insert_initializers): Use make_temp_ssa_name.
6288 (introduce_cast_before_cand): Remove unnecessary argument; use
6290 (replace_one_candidate): Remove unnecessary argument; remove
6291 unnecessary parameter from calls to introduce_cast_before_cand.
6292 (replace_profitable_candidates): Remove unnecessary parameters
6293 from calls to replace_one_candidate.
6295 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6297 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
6298 phi def as possibly hiding a basis for a CAND_ADD whose operands
6299 have been commuted in the analysis.
6300 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
6302 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6304 * config/aarch64/aarch64.md
6305 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
6306 shift value between 0-4.
6308 2013-05-07 Richard Biener <rguenther@suse.de>
6310 * double-int.h (rshift): New overload.
6311 * double-int.c (rshift): New function.
6312 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
6313 (create_reference_ops_from_ref): Remove.
6314 (vn_reference_insert): Use shared ops for constructing the
6315 reference and copy it.
6317 2013-05-07 Richard Biener <rguenther@suse.de>
6320 * tree-eh.c (sink_clobbers): Properly propagate
6321 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6323 2013-05-07 Jakub Jelinek <jakub@redhat.com>
6325 PR tree-optimization/57149
6326 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6327 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6328 collect_phi_def_edges, execute_late_warn_uninitialized): Use
6329 uninit_undefined_value_p instead of ssa_undefined_value_p.
6332 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6333 for modifier == EXPAND_INITIALIZER.
6335 2013-05-07 Anton Blanchard <anton@samba.org>
6337 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6338 for powerpc64 little endian.
6339 * configure: Regenerate.
6341 2013-05-06 Graham Stott <grahams@btinternet.com>
6343 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6344 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6345 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6346 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6348 2013-05-06 Graham Stott <grahams@btinternet.com>
6350 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6351 codes which allow non-lvalues.
6353 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
6355 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6356 components are all 1s.
6357 (integer_minus_onep): New function.
6358 * tree.h (integer_minus_onep): Declare it.
6359 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6360 integer_minus_onep instead of integer_all_onesp.
6362 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6365 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6366 variations of these patterns.
6368 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6370 * config/i386/i386.md (isa): Add x64_sse4 member.
6371 (enabled): Handle x64_sse4.
6372 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6373 instruction for 64bit SSE4_1 targets. Update insn attributes.
6374 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6375 instruction for SSE4_1 targets. Update insn attributes.
6376 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6377 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6378 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6380 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6381 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6382 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6384 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6387 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6389 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6391 * final.c (do_assembler_dialects): Don't handle curly braces and
6392 vertical bar escaped by % as dialect delimiters.
6393 (output_asm_insn): Print curly braces and vertical bar if escaped
6394 by % and ASSEMBLER_DIALECT defined.
6395 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6396 * doc/tm.texi: Regenerated.
6398 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6400 * config/mips/mips.c: Include tree-pass.h.
6401 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6402 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6403 (pass_mips_machine_reorg2): New machine specific pass.
6404 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6405 (mips_option_override): Register the new pass.
6406 * rtl.h (cleanup_barriers): Remove prototype.
6407 (dbr_schedule): Likewise.
6408 * jump.c (cleanup_barriers): Make static.
6409 * reorg.c (dbr_schedule): Likewise.
6411 2013-05-06 Richard Biener <rguenther@suse.de>
6413 PR tree-optimization/57185
6414 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6417 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6420 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6421 between "first_arg" and "insn", not "last" and "insn".
6423 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6425 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6426 (find_candidates_in_block): Re-enable slsr_process_phi.
6427 (create_phi_basis): Fix double counting of candidate adjustment.
6429 2013-05-06 Richard Biener <rguenther@suse.de>
6432 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6433 the edge is also fallthru, preserve it and just clear the
6435 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6436 also complex, preserve that and just clear the fallthru flag.
6437 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6438 update virtual operands.
6440 2013-05-06 Alan Modra <amodra@gmail.com>
6442 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6443 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6444 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6445 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6446 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6447 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6449 2013-05-06 Alan Modra <amodra@gmail.com>
6451 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6452 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6453 (DEFAULT_ASM_ENDIAN): Define.
6454 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6455 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6456 Update -K PIC clause from sysv4.h.
6457 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6458 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6460 2013-05-06 Alan Modra <amodra@gmail.com>
6462 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6463 twice for little-endian.
6464 (ashrdi3_no_power, ashrdi3): Support little-endian.
6466 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6469 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6470 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6472 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6473 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6474 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6477 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6478 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6480 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6481 * config/pa/pa.opt: Make mbig-switch a no-op.
6482 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6483 (CASE_VECTOR_MODE): Always return SImode.
6484 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6485 for the !TARGET_BIG_SWITCH case.
6486 * config/pa/pa-linux.h: Likewise.
6487 * config/pa/pa-openbsd.h: Likewise.
6488 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6489 * config/pa/pa.md (short_jump): Remove define_insn.
6490 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6491 (casesi0): Remove define_insn.
6492 (type): Remove btable_branch.
6493 (pa_combine_type): Likewise.
6494 (in_nullified_branch_delay): Likewise.
6495 (in_call_delay): Likewise.
6496 (define_delay): Likewise.
6497 (define_insn_reservation "Z3"): Likewise.
6498 (define_insn_reservation "Z4"): Likewise.
6499 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6500 (pa_adjust_insn_length): Remove adjustment for btable branches.
6501 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6504 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
6506 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6507 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6508 Add m->r,x alternatives.
6509 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6510 splitters using SWI48x mode iterator.
6511 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6512 TARGET_64BIT. Add m->x alternative.
6513 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6514 Add o->x alternative. Enable for TARGET_SSE.
6515 (sse_storeq): Remove expander.
6516 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6517 with memory input operand.
6518 (*vec_extractv2di_1 splitter): New.
6519 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6520 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6522 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6524 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6525 (INT_LOWPART): Delete.
6526 (extract_MB): Adjust.
6527 (extract_ME): Adjust.
6528 (print_operand): Adjust.
6530 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6532 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6533 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6534 (reg_or_logical_cint_operand, easy_fp_constant,
6535 logical_const_operand): Delete "CONST_DOUBLE" case.
6536 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6537 "HOST_BITS_PER_WIDE_INT == 64" test.
6538 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
6539 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6540 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6541 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6543 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6544 CONST_DOUBLE DImode/VOIDmode case.
6545 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6546 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6547 CONST_DOUBLE VOIDmode case.
6548 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6549 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6550 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6551 Delete CONST_DOUBLE case.
6552 (splitters for mov FMOVE64 const_double): Delete
6553 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6554 "HOST_BITS_PER_WIDE_INT >= 64" test.
6555 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6557 (mov DI const_double): Delete.
6559 2013-05-04 Jakub Jelinek <jakub@redhat.com>
6561 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6562 on op shows all bits zero in mode of a lowpart subreg, return zero.
6564 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6567 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6568 to save TFmode registers and DImode to save TImode registers for
6569 caller save operations.
6570 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6571 mark being partially clobbered since they only use the first
6574 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6575 and TDmode only use the upper 64-bits of each VSX register.
6577 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6579 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6580 (find_candidates_in_block): Disable slsr_process_phi.
6582 2013-05-03 Guozhi Wei <carrot@google.com>
6584 * coverage.c (coverage_obj_init): Move the construction of gcov
6586 (build_init_ctor): ... here.
6588 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6590 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6591 (slsr_cand_d): Redefine def_phi.
6592 (stride_status, phi_adjust_status, count_phis_status): New enums.
6593 (find_phi_def): New.
6594 (find_basis_for_base_expr): New.
6595 (find_basis_for_candidate): Handle hidden bases.
6596 (alloc_cand_and_find_basis): Handle phi candidates.
6597 (slsr_process_phi): New.
6598 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6599 (create_mul_imm_cand): Likewise.
6600 (create_add_ssa_cand): Exclude phi base candidates.
6601 (create_add_imm_cand): Likewise.
6602 (slsr_process_cast): Likewise.
6603 (slsr_process_copy): Likewise.
6604 (find_candidates_in_block): Handle phi candidates.
6605 (dump_candidate): Likewise.
6606 (unconditional_cands): Delete.
6607 (unconditional_cands_with_known_stride_p): Delete.
6608 (phi_dependent_cand_p): New.
6609 (cand_increment): Handle phi-dependent candidates.
6610 (replace_dependent): Delete.
6611 (replace_mult_candidate): New.
6612 (replace_unconditional_candidate): New.
6613 (incr_vec_index): Move to avoid forward reference.
6614 (create_add_on_incoming_edge): New.
6615 (create_phi_basis): New.
6616 (replace_dependents): Delete.
6617 (replace_conditional_candidate): New.
6618 (phi_add_costs): New.
6619 (replace_uncond_cands_and_profitable_phis): New.
6620 (record_increment): Handle phi adjustments.
6621 (record_phi_increments): New.
6622 (record_increments): Handle phi adjustments.
6623 (phi_incr_cost): New.
6624 (lowest_cost_path): Handle phis.
6625 (total_savings): Likewise.
6626 (analyze_increments): Likewise.
6627 (ncd_with_phi): New.
6628 (ncd_of_cand_and_phis): New.
6629 (nearest_common_dominator_for_cands): Handle phi increments.
6630 (all_phi_incrs_profitable): New.
6631 (replace_profitable_candidates): Handle phi-dependent candidates.
6632 (analyze_candidates_and_replace): Likewise.
6634 2013-05-03 Teresa Johnson <tejohnson@google.com>
6637 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6638 do not exceed REG_BR_PROB_BASE.
6640 2013-05-03 Jeff Law <law@redhat.com>
6642 PR tree-optimization/57144
6643 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6644 operand of the condition will bit into the new type when eliminating
6645 a cast feeding a condition.
6647 2013-05-03 Jakub Jelinek <jakub@redhat.com>
6649 PR rtl-optimization/57130
6650 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6651 of COMPARE as in_code to the recursive call if needed.
6653 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
6655 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6656 (enabled): Handle new members.
6657 * config/i386/sse.md (*vec_concatv2si): Merge from
6658 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6659 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6661 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6663 PR tree-optimization/57027
6664 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6665 for fnms opportunity, check we got the prerequisite kind
6666 of tree / gimple before using accessor functions.
6668 2013-05-03 Richard Biener <rguenther@suse.de>
6670 * double-int.h (lshift): New overload without precision
6672 (operator *=, operator +=, operator -=): Move ...
6673 * double-int.c (operator *=, operator +=, operator -=): ... here
6674 and implement more efficiently.
6675 (mul_double_with_sign): Remove.
6676 (lshift_double): Adjust to take unsinged shift argument, push
6677 dispatching code to callers.
6678 (mul_double_wide_with_sign): Add early out for callers that
6679 are not interested in high parts or overflow.
6680 (lshift): New function.
6681 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6683 (lrotate, rrotate): Use logical shifts.
6684 * expr.c (get_inner_reference): Use lshift.
6685 * fixed-value.c (do_fixed_divide): Likewise.
6686 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6687 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6688 (indirect_refs_may_alias_p): Likewise.
6689 (stmt_kills_ref_p_1): Likewise.
6691 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6693 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6695 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6697 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6698 scalar form of FABD instruction.
6700 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6702 * lra-constraints.c (process_alt_operands): Add checking alt
6703 number to choose the best alternative.
6705 2013-05-02 Richard Biener <rguenther@suse.de>
6707 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6708 bitmap and its handling.
6709 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6711 2013-05-02 Richard Biener <rguenther@suse.de>
6714 * tree-inline.c (copy_loops): Properly handle removed loops.
6715 (copy_cfg_body): Mark destination loops for fixup if source
6718 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6721 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6722 generating simple_return for naked functions.
6724 2013-05-02 Martin Jambor <mjambor@suse.cz>
6727 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6728 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6730 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6731 ipa_agg_replacement_value structures.
6732 (known_aggs_to_agg_replacement_list): Likewise.
6733 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6734 (read_agg_replacement_chain): Likewise.
6735 (ipcp_transform_function): Also check that by_ref flags match.
6737 2013-05-02 Richard Biener <rguenther@suse.de>
6739 * graphds.h (struct graph): Add obstack member.
6740 * graphds.c (new_graph): Initialize obstack and allocate
6742 (add_edge): Allocate edge from the obstack.
6743 (free_graph): Free the obstack instead of all edges and vertices.
6745 2013-05-02 Teresa Johnson <tejohnson@google.com>
6747 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6749 * cfg.c (update_bb_profile_for_threading): Ditto.
6750 * tree-inline.c (copy_bb): Ditto.
6751 (copy_edges_for_bb): Ditto.
6752 (initialize_cfun): Ditto.
6753 (copy_cfg_body): Ditto.
6754 (expand_call_inline): Ditto.
6755 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6756 (estimate_node_size_and_time): Ditto.
6757 (inline_merge_summary): Ditto.
6758 * cgraphclones.c (cgraph_clone_edge): Ditto.
6759 (cgraph_clone_node): Ditto.
6760 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6761 (compute_trg_info): Ditto.
6763 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6765 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6766 S reg when fp attribute set.
6767 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6769 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6771 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6773 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6774 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6775 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6777 2013-05-02 Richard Biener <rguenther@suse.de>
6779 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6780 (struct instantiate_cache_entry): New type.
6781 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6782 (struct instantiate_cache_type): New type.
6783 (set_instantiated_value, get_instantiated_value): Remove.
6784 (get_instantiated_value_entry): New function.
6785 (instantiate_scev_name): Use the new cache and adjust.
6786 (instantiate_scev_poly): Adjust.
6787 (instantiate_scev_binary): Likewise.
6788 (instantiate_array_ref): Likewise.
6789 (instantiate_scev_convert): Likewise.
6790 (instantiate_scev_not): Likewise.
6791 (instantiate_scev_3): Likewise.
6792 (instantiate_scev_2): Likewise.
6793 (instantiate_scev_r): Likewise.
6794 (instantiate_scev): Likewise.
6795 (resolve_mixers): Likewise.
6797 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6800 * lra-constraints.c (best_small_class_operands_num): Remove.
6801 (process_alt_operands): Remove small_class_operands_num. Take
6802 small classes operands into losers and only if the operand is not
6803 matched. Modify debugging output.
6804 (curr_insn_transform): Remove best_small_class_operands_num.
6807 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6809 * config/aarch64/aarch64-builtins.c
6810 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6811 * config/aarch64/aarch64-simd-builtins.def
6812 (reduc_splus_): Add new modes.
6813 (reduc_uplus_): New.
6814 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6815 (reduc_uplus_v4sf): Likewise.
6816 (reduc_splus_v4sf): Likewise.
6817 (aarch64_addv<mode>): Likewise.
6818 (reduc_uplus_<mode>): Likewise.
6819 (reduc_splus_<mode>): Likewise.
6820 (aarch64_addvv2di): Likewise.
6821 (reduc_uplus_v2di): Likewise.
6822 (reduc_splus_v2di): Likewise.
6823 (aarch64_addvv2si): Likewise.
6824 (reduc_uplus_v2si): Likewise.
6825 (reduc_splus_v2si): Likewise.
6826 (reduc_<sur>plus_<mode>): New.
6827 (reduc_<sur>plus_v2di): Likewise.
6828 (reduc_<sur>plus_v2si): Likewise.
6829 (reduc_<sur>plus_v4sf): Likewise.
6830 (aarch64_addpv4sf): Likewise.
6831 * config/aarch64/arm_neon.h
6832 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6833 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6834 add UNSPEC_SADDV, UNSPEC_UADDV.
6836 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6838 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6840 * config/aarch64/arm_neon.h
6841 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6843 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6845 * config/aarch64/aarch64-builtins
6846 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6848 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6850 * config/aarch64/aarch64-simd-builtins.def
6852 (reduc_smin_): Likewise.
6853 (reduc_umax_): Likewise.
6854 (reduc_umin_): Likewise.
6855 (reduc_smax_nan_): Likewise.
6856 (reduc_smin_nan_): Likewise.
6859 (smax): Update for V2SF, V4SF and V2DF modes.
6862 (smin_nan): Likewise.
6863 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6864 (<su><maxmin><mode>3): ...This, refactor.
6865 (s<maxmin><mode>3): New.
6866 (<maxmin_uns><mode>3): Likewise.
6867 (reduc_<maxmin_uns>_<mode>): Refactor.
6868 (reduc_<maxmin_uns>_v4sf): Likewise.
6869 (reduc_<maxmin_uns>_v2si): Likewise.
6870 (aarch64_<fmaxmin><mode>: Remove.
6871 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6873 (vmin<q>_f<32,64>): Likewise.
6874 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6876 (su): Add mappings for smax, smin, umax, umin.
6878 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6879 (FMAXMIN): Rename as...
6880 (FMAXMIN_UNS): ...This.
6882 (fmaxminv): Likewise.
6883 (fmaxmin): Likewise.
6885 (maxmin_uns_op): Likewise.
6887 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6889 * config/aarch64/arm_neon.h
6890 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6891 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6892 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6894 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6896 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6897 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6899 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6901 * config/aarch64/aarch64-simd.md
6902 (vcond<mode>_internal): Handle special cases for constant masks.
6903 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6904 (vcondu<mode><mode>): Likewise.
6905 (vcond<v_cmp_result><mode>): New.
6907 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6909 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6910 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6911 * config/aarch64/aarch64-simd-builtins.def
6912 (cmeq): Update to BUILTIN_VALLDI.
6917 * config/aarch64/arm_neon.h
6918 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6919 to builtins or C as appropriate.
6921 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6923 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6925 (cmhi): Rename to...
6927 * config/aarch64/aarch64-simd.md
6928 (simd_mode): Add SF.
6929 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6930 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6931 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6932 (cstore<mode>_neg): ...This.
6933 * config/aarch64/iterators.md
6935 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6937 (UCOMPARISONS): Likewise.
6938 (optab): Add missing comparisons.
6946 (V_cmp_result): Add DF, SF modes.
6947 (v_cmp_result): Likewise.
6950 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6952 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6954 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6955 define_insn to define_insn_and_split.
6956 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6957 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6958 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6959 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6960 (thumb2_negscc): Likewise.
6962 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6964 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6966 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6968 * config/arm/thumb2.md: Remove trailing whitespaces.
6970 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6972 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6973 Use gen_int_mode rather than GEN_INT.
6975 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6977 * value-prof.c (stream_in_histogram_value): Remove the strayed
6980 2013-04-30 Richard Biener <rguenther@suse.de>
6983 * cfghooks.c (split_edge): Properly check for the loop latch edge.
6985 2013-04-30 Richard Biener <rguenther@suse.de>
6988 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6990 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
6992 PR rtl-optimization/56957
6993 PR rtl-optimization/57105
6994 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6995 variable. Use just INSN_UID for determining whether an insn
6996 should be only disconnected from the insn stream.
6997 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6999 2013-04-30 Jakub Jelinek <jakub@redhat.com>
7001 PR tree-optimization/57104
7002 * tsan.c (instrument_expr): Don't instrument accesses to
7003 DECL_HARD_REGISTER VAR_DECLs.
7005 2013-04-30 Richard Biener <rguenther@suse.de>
7007 * function.h (loops_for_fn): New inline function.
7008 (set_loops_for_fn): Likewise.
7009 * cfgloop.h (place_new_loop): Add struct function parameter.
7010 (get_loop): Likewise.
7011 (get_loops): Likewise.
7012 (number_of_loops): Likewise.
7014 (fel_init): Likewise.
7015 * cfg.c (get_loop_copy): Adjust.
7016 * cfgloop.c (flow_loops_dump): Likewise.
7017 (record_loop_exits): Likewise.
7018 (verify_loop_structure): Likewise.
7019 * cfgloopanal.c (mark_irreducible_loops): Likewise.
7020 (estimate_reg_pressure_cost): Likewise.
7021 (mark_loop_exit_edges): Likewise.
7022 * cfgloopmanip.c (place_new_loop): Likewise.
7023 (add_loop): Likewise.
7024 (duplicate_loop): Likewise.
7025 * graph.c (draw_cfg_nodes): Likewise.
7026 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
7027 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
7028 (extract_affine_chrec): Likewise.
7029 (build_scop_iteration_domain): Likewise.
7030 * graphite.c (graphite_initialize): Likewise.
7031 * ira-build.c (create_loop_tree_nodes): Likewise.
7032 (more_one_region_p): Likewise.
7033 (rebuild_regno_allocno_maps): Likewise.
7034 (mark_loops_for_removal): Likewise.
7035 (mark_all_loops_for_removal): Likewise.
7036 (remove_unnecessary_regions): Likewise.
7037 (ira_build): Likewise.
7038 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7039 * loop-init.c (fix_loop_structure): Likewise.
7040 (gate_rtl_move_loop_invariants): Likewise.
7041 (gate_rtl_unswitch): Likewise.
7042 (gate_rtl_unroll_and_peel_loops): Likewise.
7043 (rtl_doloop): Likewise.
7044 * lto-streamer-in.c (input_cfg): Likewise.
7045 * lto-streamer-out.c (output_cfg): Likewise.
7046 * modulo-sched.c (sms_schedule): Likewise.
7047 * predict.c (tree_estimate_probability): Likewise.
7048 (tree_estimate_probability_driver): Likewise.
7049 (estimate_loops): Likewise.
7050 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
7051 (move_sese_region_to_fn): Likewise.
7052 (debug_loop_num): Likewise.
7053 * tree-chrec.c (chrec_evaluate): Likewise.
7054 (hide_evolution_in_other_loops_than_loop): Likewise.
7055 (chrec_component_in_loop_num): Likewise.
7056 (reset_evolution_in_loop): Likewise.
7057 (evolution_function_is_invariant_rec_p): Likewise.
7058 * tree-if-conv.c (main_tree_if_conversion): Likewise.
7059 * tree-inline.c (copy_loops): Likewise.
7060 (copy_cfg_body): Likewise.
7061 (tree_function_versioning): Likewise.
7062 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
7063 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7065 (add_to_evolution_1): Likewise.
7066 (scev_const_prop): Likewise.
7067 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
7068 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
7069 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
7070 (tree_ssa_lim_initialize): Likewise.
7071 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
7072 (verify_loop_closed_ssa): Likewise.
7073 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
7074 (tree_ssa_loop_im): Likewise.
7075 (tree_ssa_loop_unswitch): Likewise.
7076 (tree_vectorize): Likewise.
7077 (check_data_deps): Likewise.
7078 (tree_ssa_loop_ivcanon): Likewise.
7079 (tree_ssa_loop_bounds): Likewise.
7080 (tree_complete_unroll): Likewise.
7081 (tree_complete_unroll_inner): Likewise.
7082 (tree_parallelize_loops): Likewise.
7083 (tree_ssa_loop_prefetch): Likewise.
7084 (tree_ssa_loop_ivopts): Likewise.
7085 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
7086 * tree-vectorizer.c (vectorize_loops): Likewise.
7088 2013-04-29 Mike Frysinger <vapier@gentoo.org>
7090 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
7091 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
7092 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
7093 with EABI_LINK_SPEC.
7095 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
7098 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
7101 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
7104 * lra-constraints.c (process_alt_operands): Discourage a bit more
7105 using memory for pseudos. Print cost dump for alternatives.
7106 Modify cost values for conflicts with early clobbers.
7107 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
7109 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
7112 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
7114 2013-04-29 Ian Bolton <ian.bolton@arm.com>
7116 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
7118 (movdi_aarch64): Support LDR/STR from/to D register.
7120 2013-04-29 Ian Bolton <ian.bolton@arm.com>
7122 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
7123 or higher by default.
7125 2013-04-29 Richard Biener <rguenther@suse.de>
7128 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
7129 even if not adding abnormal edges for calls that can make
7132 2013-04-29 Richard Biener <rguenther@suse.de>
7135 * tree-cfg.c (move_stmt_op): Fix condition under which to update
7137 (move_stmt_r): Remove redundant checking.
7139 2013-04-29 Teresa Johnson <tejohnson@google.com>
7142 * basic-block.h (apply_scale): New function.
7143 (apply_probability): Use apply_scale.
7144 * gimple-streamer-in.c (input_bb): Ditto.
7145 * lto-streamer-in.c (input_cfg): Ditto.
7146 * lto-cgraph.c (merge_profile_summaries): Ditto.
7147 * tree-optimize.c (execute_fixup_cfg): Ditto.
7148 * tree-inline.c (copy_bb): Update comment to use apply_scale.
7149 (copy_edges_for_bb): Ditto.
7150 (copy_cfg_body): Ditto.
7152 2013-04-29 Tom de Vries <tom@codesourcery.com>
7154 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
7155 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
7156 (tail_merge_optimize): Handle current_loops == NULL.
7158 2013-04-26 Jeff Law <law@redhat.com>
7160 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
7161 (simplify_cond_using_ranges): Generalize code to simplify
7162 COND_EXPRs where one argument is a constant and the other
7163 is an SSA_NAME created by an integral type conversion.
7165 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7167 * config/arm/arm.md (store_minmaxsi): Use only when
7168 optimize_insn_for_size_p.
7170 2013-04-29 Christian Bruel <christian.bruel@st.com>
7173 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
7175 2013-04-29 Richard Biener <rguenther@suse.de>
7178 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
7179 loop tree make sure to schedule a fixup for the child as well.
7180 (expand_omp_for_generic): Properly add loops.
7181 (expand_omp_for_static_nochunk): Likewise.
7182 (expand_omp_for_static_chunk): Likewise.
7183 (expand_omp_for): For the degenerate case fixup loops.
7184 (expand_omp_sections): Fix default bb placement in loops.
7185 (expand_omp_atomic_pipeline): Properly add loops.
7187 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7189 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
7191 2013-04-29 Tom de Vries <tom@codesourcery.com>
7193 * tree-ssa-tail-merge.c: Update header comment.
7195 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7197 * config/aarch64/arm_neon.h
7198 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
7199 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
7200 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
7201 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
7202 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
7203 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
7204 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
7205 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
7207 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7209 * config/aarch64/aarch64-simd.md
7210 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
7211 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
7212 fix_trunc, fixuns_trunc.
7213 (ftrunc<VDQF:mode>2): New.
7214 * config/aarch64/iterators.md (optab): Add fix, fixuns.
7215 (fix_trunc_optab): New.
7217 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7219 * config/aarch64/aarch64-builtins.c
7220 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
7221 iceilf, lround, iroundf.
7223 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
7226 * config/i386/i386.h (enum ix86_tune_indices)
7227 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
7228 New, split from X86_TUNE_INTER_UNIT_MOVES.
7229 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
7230 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
7231 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
7232 (TARGET_INTER_UNIT_MOVES): Remove.
7233 * config/i386/i386.c (initial_ix86_tune_features): Update.
7234 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
7235 (ix86_expand_convert_uns_didf_sse): Use
7236 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7237 (ix86_expand_vector_init_one_nonzero): Ditto.
7238 (ix86_expand_vector_init_interleave): Ditto.
7239 (inline_secondary_memory_needed): Return true for moves from SSE class
7240 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
7241 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
7242 * config/i386/constraints.md (Yi, Ym): Depend on
7243 TARGET_INTER_UNIT_MOVES_TO_VEC.
7244 (Yj, Yn): New constraints.
7245 * config/i386/i386.md (*movdi_internal): Change constraints of
7246 operand 1 from Yi to Yj and from Ym to Yn.
7247 (*movsi_internal): Ditto.
7248 (*movdf_internal): Ditto.
7249 (*movsf_internal): Ditto.
7250 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
7251 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7252 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
7253 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
7254 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
7255 * config/i386/sse.md (movdi_to_sse): Ditto.
7256 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
7257 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
7258 TARGET_INTER_UNIT_MOVES.
7259 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
7260 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
7261 instead of TARGET_INTER_UNIT_MOVES.
7262 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
7263 operand 1 from Yi to Yj and from Ym to Yn.
7265 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7267 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
7268 (float_truncate_hi_): Likewise.
7269 (float_extend_lo_): Likewise.
7270 (float_truncate_lo_): Likewise.
7271 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
7272 (aarch64_float_extend_lo_v2df): Likewise.
7273 (vec_unpacks_hi_v4sf): Likewise.
7274 (aarch64_float_truncate_lo_v2sf): Likewise.
7275 (aarch64_float_truncate_hi_v4sf): Likewise.
7276 (vec_pack_trunc_v2df): Likewise.
7277 (vec_pack_trunc_df): Likewise.
7279 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7281 * config/aarch64/aarch64-builtins.c
7282 (aarch64_fold_builtin): Fold float conversions.
7283 * config/aarch64/aarch64-simd-builtins.def
7284 (floatv2si, floatv4si, floatv2di): New.
7285 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
7286 * config/aarch64/aarch64-simd.md
7287 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
7288 * config/aarch64/iterators.md (FLOATUORS): New.
7289 (optab): Add float, floatuns.
7290 (su_optab): Likewise.
7292 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7294 * config/aarch64/aarch64-builtins.c
7295 (aarch64_builtin_vectorized_function): Use new names for
7297 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
7298 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
7299 (fcvtzu): Split as...
7300 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
7301 (fcvtas): Split as...
7302 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
7303 (fcvtau): Split as...
7304 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
7305 (fcvtps): Split as...
7306 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
7307 (fcvtpu): Split as...
7308 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
7309 (fcvtms): Split as...
7310 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
7311 (fcvtmu): Split as...
7312 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
7313 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
7314 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
7315 (lfrintnusf, lfrintnudf): Likewise.
7316 * config/aarch64/aarch64-simd.md
7317 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
7319 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
7320 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
7321 (fcvt_pattern): Likewise.
7323 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7325 * config/aarch64/aarch64-simd.md
7326 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7327 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7329 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7331 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7332 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7333 (vrnd<a,m,n,p>_f32): Implement using builtins.
7334 (vrnd<i,x><q>_f<32, 64>): New.
7336 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7338 * config/aarch64/aarch64-builtins.c
7339 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7340 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7341 (frintz): Rename to...
7343 (frintp): Rename to...
7345 (frintm): Rename to...
7347 (frinti): Rename to...
7348 (nearbyint): ...this.
7349 (frintx): Rename to...
7351 (frinta): Rename to...
7353 * config/aarch64/aarch64-simd.md
7354 (aarch64_frint<frint_suffix><mode>): Delete.
7355 (<frint_pattern><mode>2): Convert to insn.
7356 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7357 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7358 (frint_pattern): Likewise.
7359 (frint_suffix): Likewise.
7361 2013-04-29 Richard Biener <rguenther@suse.de>
7363 PR tree-optimization/57081
7364 * loop-init.c: Include tree-flow.h.
7365 (loop_optimizer_finalize): Free number of iteration estimates.
7366 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7368 2013-04-29 Jakub Jelinek <jakub@redhat.com>
7370 PR tree-optimization/57083
7371 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7372 non-singleton shift count range, zero extend low_bound for uns case.
7374 * config/i386/predicates.md (general_vector_operand): New predicate.
7375 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7376 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7377 if they aren't nonimmediate operands. If their original values
7378 satisfy const_vector_equal_evenodd_p, don't shift them.
7379 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7380 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7381 if not nonimmediate_operand.
7382 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7383 instead of register_operand.
7384 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7386 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
7388 * stor-layout.c (finalize_size_functions): Allocate a structure and
7389 reset cfun before dumping the functions.
7391 2013-04-27 Jakub Jelinek <jakub@redhat.com>
7393 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7396 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7397 use xop_pmacsdqh if uns_p.
7398 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7399 the immediate rotate count.
7401 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7403 * rtl.h (struct rtx_def): Add comment for field jump.
7404 (LRA_SUBREG_P): New macro.
7405 * recog.c (register_operand): Check LRA_SUBREG_P.
7406 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7408 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7409 (lra_final_code_change): Skip subreg change for operators.
7410 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7411 if there are no operand changes.
7412 * lra-constraints.c (curr_insn_set): New.
7413 (match_reload): Set LRA_SUBREG_P.
7414 (emit_spill_move): Ditto.
7415 (check_and_process_move): Use curr_insn_set. Process only single
7416 set insns. Don't initialize sec_mem_p and change_p.
7417 (simplify_operand_subreg): Use LRA_SUBREG_P.
7418 (reg_in_class_p): New function.
7419 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7420 of #ifdef. Add code to remove cycling.
7421 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7422 non-null disp. Reload inner instead of disp when base and index
7423 are null. Try to put lo_sum into register.
7424 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7425 (check_and_process_move): Move code for move cost check to
7426 simple_move_p. Remove equiv_substitution.
7427 (simple_move_p): New function.
7428 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7429 curr_insn_set. Call check_and_process_move only for single set
7430 insns. Use the new function. Move call of check_and_process_move
7431 after operand equiv substitution and address process.
7433 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7436 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7437 with nonlocal goto receivers or returns twice calls, ignore
7438 unininitialized values from abnormal edges to nl goto receiver
7439 or returns twice call.
7441 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7443 PR tree-optimization/57051
7444 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7445 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7448 2013-04-26 Richard Biener <rguenther@suse.de>
7450 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7451 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7452 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7453 (fixup_loop_arrays_after_move): New function.
7454 (move_sese_region_to_fn): Properly outline the loop tree parts
7457 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
7459 * config/i386/i386.md (type, unit): Fix long lines.
7461 2013-04-26 Richard Biener <rguenther@suse.de>
7463 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7464 (lto-streamer-out.o): Likewise.
7465 * cfgloop.c (init_loops_structure): Export, add struct function
7466 argument and adjust.
7467 (flow_loops_find): Adjust.
7468 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7469 (init_loops_structure): Declare.
7470 * lto-streamer-in.c: Include cfgloop.h.
7471 (input_cfg): Input the loop tree.
7472 * lto-streamer-out.c: Include cfgloop.h.
7473 (output_cfg): Output the loop tree.
7474 (output_struct_function_base): Do not drop PROP_loops.
7476 2013-03-26 Richard Biener <rguenther@suse.de>
7478 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7479 (pass_build_cfg): Provide PROP_loops.
7480 (move_sese_region_to_fn): Remove loops that are outlined into fn
7482 * tree-inline.c: Include cfgloop.h.
7483 (initialize_cfun): Do not drop PROP_loops.
7484 (copy_loops): New function.
7485 (copy_cfg_body): Copy loop structure.
7486 (tree_function_versioning): Initialize destination loop tree.
7487 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7488 (pass_parallelize_loops): Do IL verification.
7489 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7490 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7491 the CFG make sure we fixup loops as well.
7492 * tree-ssa-tail-merge.c: Include cfgloop.h.
7493 (replace_block_by): When merging loop latches mark loops for fixup.
7494 * lto-streamer-out.c (output_struct_function_base): Drop
7496 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7497 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7498 * ipa-split.c: Include cfgloop.h.
7499 (split_function): Add the new return block to the loop tree root.
7500 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7501 whether we have removed the forwarder block.
7502 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7503 * cfgloop.h (place_new_loop): Declare.
7504 * cfgloopmanip.c (place_new_loop): Export.
7505 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7506 (tree-switch-conversion.o): Likewise.
7507 (tree-complex.o): Likewise.
7508 (tree-inline.o): Likewise.
7509 (tree-ssa-tailmerge.o): Likewise.
7510 (ipa-split.o): Likewise.
7511 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7512 (tree-ssa-copy.o): Likewise.
7513 * tree-switch-conversion.c: Include cfgloop.h
7514 (process_switch): If we emit a bit-test cascade, schedule loops
7516 * tree-complex.c: Include cfgloop.h.
7517 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7518 * asan.c: Include cfgloop.h.
7519 (create_cond_insert_point): Properly add new basic-blocks to
7520 loops, schedule loop fixup.
7521 * cfgloop.c (verify_loop_structure): Check that looks are not
7523 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7525 (expand_omp_for_generic): Likewise.
7526 (expand_omp_sections): Likewise.
7527 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7528 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7529 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7530 is initialized, not when loops are present.
7531 * tree-parloops.c (parallelize_loops): Remove checking here.
7532 * passes.c (init_optimization_passes): Schedule a copy-propagation
7533 pass before complete unrolling of inner loops.
7535 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7537 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7538 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7539 (colorize_init): Add argument to _WIN32 version.
7540 * toplev.c: Include diagnostic-color.h.
7541 (process_options): Default to -fdiagnostics-color=auto if
7542 GCC_COLORS env var is in the environment.
7543 * common.opt (fdiagnostics-color=): Add Var and Init.
7544 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7545 env var is in the environment, the default is auto rather than never.
7547 * diagnostic.h (file_name_as_prefix): Add context argument.
7548 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7549 the string as locus.
7550 * langhooks.c (lhd_print_error_function): Adjust caller.
7552 2013-04-25 Lawrence Crowl <crowl@google.com>
7554 * var-tracking.c (shared_hash_def::htab):
7555 Change type to hash_table. Update dependent calls and types.
7557 2013-04-25 Lawrence Crowl <crowl@google.com>
7559 * Makefile.in: Update as needed below.
7561 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7562 Move declaration to after the type's method definitons.
7564 * attribs.c (htab_t scoped_attributes::attribute_hash):
7565 Change type to hash_table. Update dependent calls and types.
7567 * bitmap.c (htab_t bitmap_desc_hash):
7568 Change type to hash_table. Update dependent calls and types.
7570 * cselib.c (htab_t cselib_hash_table):
7571 Change type to hash_table. Update dependent calls and types.
7573 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7574 (hash_string_slot_node): Move implementation into lto-streamer.h
7575 struct string_slot_hasher.
7576 (eq_string_slot_node): Likewise.
7578 * data-streamer-out.c: Update output_block::string_hash_table
7579 dependent calls and types.
7581 * dwarf2cfi.c (htab_t trace_index):
7582 Change type to hash_table. Update dependent calls and types.
7584 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7585 Change type to hash_table. Update dependent calls and types.
7586 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7587 (htab_t optimize_external_refs::map): Likewise.
7588 (htab_t output_comp_unit::extern_map): Likewise.
7589 (htab_t output_comdat_type_unit::extern_map): Likewise.
7590 (htab_t output_macinfo::macinfo_htab): Likewise.
7591 (htab_t optimize_location_lists::htab): Likewise.
7592 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7594 * except.c (htab_t ehspec_hash_type):
7595 Change type to hash_table. Update dependent calls and types.
7596 (assign_filter_values::ttypes): Likewise.
7597 (assign_filter_values::ehspec): Likewise.
7598 (sjlj_assign_call_site_values::ar_hash): Likewise.
7599 (convert_to_eh_region_ranges::ar_hash): Likewise.
7601 * gcse.c (htab_t pre_ldst_table):
7602 Change type to hash_table. Update dependent calls and types.
7604 * ggc-common.c (htab_t saving_htab):
7605 Change type to hash_table. Update dependent calls and types.
7606 (htab_t loc_hash): Likewise.
7607 (htab_t ptr_hash): Likewise.
7608 (call_count): Rename ggc_call_count.
7609 (call_alloc): Rename ggc_call_alloc.
7610 (loc_descriptor): Rename make_loc_descriptor.
7611 (add_statistics): Rename ggc_add_statistics.
7613 * ggc-common.c (saving_htab):
7614 Change type to hash_table. Update dependent calls and types.
7616 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7617 (push_gimplify_context): Likewise.
7618 (pop_gimplify_context): Likewise.
7619 (struct gimple_temp_hash_elt): Added.
7620 (struct gimplify_hasher): Likewise.
7621 (struct gimplify_ctx.temp_htab):
7622 Change type to hash_table. Update dependent calls and types.
7624 * gimple-fold.c: Include gimplify-ctx.h.
7626 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7627 Change type to hash_table. Update dependent calls and types.
7628 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7629 avoid potential global name collision.
7631 * gimplify.c: Include gimplify-ctx.h.
7632 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7633 (htab_t gimplify_ctx::temp_htab):
7634 Update dependent calls and types for new type hash_table.
7635 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7636 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7638 * gimplify-ctx.h: New.
7639 (struct gimple_temp_hash_elt): Move from gimplify.c.
7640 (class gimplify_hasher): New.
7641 (struct gimplify_ctx): Move from gimple.h.
7642 (htab_t gimplify_ctx::temp_htab):
7643 Change type to hash_table. Update dependent calls and types.
7645 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7646 (htab_t ivs_params::newivs_index):
7647 Change type to hash_table. Update dependent calls and types.
7648 (htab_t ivs_params::params_index): Likewise.
7649 (htab_t print_generated_program::params_index): Likewise.
7650 (htab_t gloog::newivs_index): Likewise.
7651 (htab_t gloog::params_index): Likewise.
7653 * graphite.c: Include graphite-htab.h.
7654 4htab_t graphite_transform_loops::bb_pbb_mapping):
7655 Change type to hash_table. Update dependent calls and types.
7657 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7658 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7659 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7661 * graphite-dependences.c: Include graphite-htab.h.
7662 (loop_is_parallel_p): Change hash table type of parameter.
7664 * graphite-htab.h: New.
7665 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7666 (extern find_pbb_via_hash): Move from graphite-poly.h.
7667 (extern loop_is_parallel_p): Move from graphite-poly.h.
7668 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7670 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7671 (extern loop_is_parallel_p): Move to graphite-htab.h.
7672 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7674 * haifa-sched.c (htab_t delay_htab):
7675 Change type to hash_table. Update dependent calls and types.
7676 (htab_t delay_htab_i2): Likewise.
7678 * ira-color.c (htab_t allocno_hard_regs_htab):
7679 Change type to hash_table. Update dependent calls and types.
7681 * ira-costs.c (htab_t cost_classes_htab):
7682 Change type to hash_table. Update dependent calls and types.
7684 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7685 Change type to hash_table. Update dependent calls and types.
7687 * loop-iv.c (htab_t bivs):
7688 Change type to hash_table. Update dependent calls and types.
7690 * loop-unroll.c (htab_t opt_info::insns_to_split):
7691 Change type to hash_table. Update dependent calls and types.
7692 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7694 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7695 (struct string_slot_hasher): New.
7696 (htab_t output_block::string_hash_table):
7697 Change type to hash_table. Update dependent calls and types.
7699 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7700 (htab_t file_name_hash_table):
7701 Change type to hash_table. Update dependent calls and types.
7703 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7706 * lto-streamer.c (htab_t tree_htab):
7707 Change type to hash_table. Update dependent calls and types.
7709 * omp-low.c: Include gimplify-ctx.h.
7711 * passes.c (htab_t name_to_pass_map):
7712 Change type to hash_table. Update dependent calls and types.
7713 (pass_traverse): Rename to passes_pass_traverse.
7715 * plugin.c (htab_t event_tab):
7716 Change type to hash_table. Update dependent calls and types.
7718 * postreload-gcse.c (htab_t expr_table):
7719 Change type to hash_table. Update dependent calls and types.
7720 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7722 * sese.c (debug_rename_map_1): Make extern.
7723 (htab_t copy_bb_and_scalar_dependences::rename_map):
7724 Change type to hash_table. Update dependent calls and types.
7726 * sese.h (extern debug_rename_map): Move to .c file.
7728 * store-motion.c (htab_t store_motion_mems_table):
7729 Change type to hash_table. Update dependent calls and types.
7731 * trans-mem.c (htab_t tm_new_mem_hash):
7732 Change type to hash_table. Update dependent calls and types.
7734 * tree-browser.c (htab_t TB_up_ht):
7735 Change type to hash_table. Update dependent calls and types.
7737 * tree-cfg.c (htab_t discriminator_per_locus):
7738 Change type to hash_table. Update dependent calls and types.
7740 * tree-complex.c: Include tree-hasher.h
7741 (htab_t complex_variable_components):
7742 Change type to hash_table. Update dependent calls and types.
7744 * tree-eh.c (htab_t finally_tree):
7745 Change type to hash_table. Update dependent calls and types.
7747 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7748 struct int_tree_hasher.
7749 (extern int_tree_map_eq): Likewise.
7750 (uid_decl_map_hash): Removed.
7751 (extern decl_tree_map_eq): Likewise.
7753 * tree-hasher.h: New.
7754 (struct int_tree_hasher): New.
7755 (typedef int_tree_htab_type): New.
7757 * tree-inline.c: Include gimplify-ctx.h.
7759 * tree-mudflap.c: Include gimplify-ctx.h.
7761 * tree-parloops.c: Include tree-hasher.h.
7762 (htab_t eliminate_local_variables_stmt::decl_address):
7763 Change type to hash_table. Update dependent calls and types.
7764 (htab_t separate_decls_in_region::decl_copies): Likewise.
7766 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7767 Change type to hash_table. Update dependent calls and types.
7769 * tree-sra.c (candidates):
7770 Change type to hash_table. Update dependent calls and types.
7772 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7774 (int_tree_map_hash): Likewise.
7776 * tree-ssa-dom.c (htab_t avail_exprs):
7777 Change type to hash_table. Update dependent calls and types.
7779 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7780 Change type to hash_table. Update dependent calls and types.
7782 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7783 Change type to hash_table. Update dependent calls and types.
7785 * tree-ssa-phiopt.c (seen_ssa_names):
7786 Change type to hash_table. Update dependent calls and types.
7788 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7789 Change type to hash_table. Update dependent calls and types.
7791 * tree-ssa-uncprop.c (equiv):
7792 Change type to hash_table. Update dependent calls and types.
7794 2013-04-25 Jakub Jelinek <jakub@redhat.com>
7796 PR rtl-optimization/57003
7797 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7798 call note_stores with kill_clobbered_value callback again after
7799 killing regs_invalidated_by_call.
7801 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7803 * config/aarch64/aarch64-simd.md
7804 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7805 (aarch64_simd_bsl<mode>): Likewise.
7806 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7808 2013-04-25 Marek Polacek <polacek@redhat.com>
7810 PR tree-optimization/57066
7811 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7813 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7815 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7817 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7819 * config/aarch64/aarch64-builtins.c
7820 (aarch64_fold_builtin): New.
7821 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7822 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7823 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7824 * config/aarch64/arm_neon.h
7825 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7827 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7828 Tejas Belagod <tejas.belagod@arm.com>
7830 * config/aarch64/aarch64-builtins.c
7831 (aarch64_gimple_fold_builtin): New.
7832 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7833 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7834 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7836 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7838 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7840 * config/aarch64/aarch64.md
7841 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7843 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7845 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7846 (*ngcsi_uxtw): New pattern.
7848 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7849 Julian Brown <julian@codesourcery.com>
7851 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7852 (TB_DREG): Add T_V4HF.
7853 (v4hf_UP): New macro.
7854 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7855 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7856 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7858 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7859 (arm_vector_mode_supported_p): Handle V4HF.
7860 (arm_mangle_map): Handle V4HFmode.
7861 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7862 * config/arm/arm_neon_builtins.def: Add entries for
7863 vcvtv4hfv4sf, vcvtv4sfv4hf.
7864 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7865 (neon_vcvtv4hfv4sf): Likewise.
7866 * config/arm/neon-gen.ml: Handle half-precision floating point
7868 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7869 * config/arm/arm_neon.h: Regenerate.
7870 * config/arm/neon.ml (type elts): Add F16.
7871 (type vectype): Add T_float16x4, T_floatHF.
7872 (type vecmode): Add V4HF.
7873 (type features): Add Requires_FP_bit feature.
7874 (elt_width): Handle F16.
7875 (elt_class): Likewise.
7876 (elt_of_class_width): Likewise.
7877 (mode_of_elt): Refactor.
7878 (type_for_elt): Handle F16, fix error messages.
7879 (vectype_size): Handle T_float16x4.
7880 (vcvt_sh): New function.
7881 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7882 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7883 (string_of_mode): Handle V4HF.
7884 * doc/arm-neon-intrinsics.texi: Regenerate.
7886 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7888 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7889 format specifier in 'X' case.
7891 2013-04-25 Alan Modra <amodra@gmail.com>
7894 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7895 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7896 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7897 Repeat for many other rotate/shift and mask patterns using subregs.
7898 Name lshiftrt insns.
7899 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7900 on WORDS_BIG_ENDIAN.
7902 2013-04-25 Alan Modra <amodra@gmail.com>
7904 * config.gcc: Support little-endian powerpc-linux targets.
7905 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7906 (LINK_OS_LINUX_SPEC): Define.
7907 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7908 Preserve MASK_LITTLE_ENDIAN.
7909 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7910 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7911 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7912 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7913 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7914 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7915 Correct fp word order for little-endian. Don't shift toc entries
7916 smaller than a word for little-endian.
7917 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7918 (bswapdi2 splits): Correct low-part subreg for little-endian.
7919 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7920 low/high where such is correct only for be.
7921 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7922 little-endian for -mcall-aixdesc.
7924 2013-04-25 Alan Modra <amodra@gmail.com>
7926 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7927 replace_equiv_address_nv.
7929 2013-04-25 Alan Modra <amodra@gmail.com>
7931 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7933 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7936 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7937 * rtl.h (struct rtx_def): ...
7939 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7941 PR rtl-optimizations/57046
7942 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7943 for multi-reg splits.
7945 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7947 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7949 2013-04-24 Sterling Augustine <saugustine@google.com>
7951 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7952 (comp_dir_string, debug_str_dwo_section): New.
7953 (DEBUG_STR_DWO_SECTION): Rename to ...
7954 (DEBUG_DWO_STR_SECTION): ... this.
7955 (DEBUG_NORM_STR_SECTION): Delete.
7956 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7957 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7958 (find_AT_string): Move most logic to ...
7959 (find_AT_string_in_table): ... here. New.
7960 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7961 add_skeleton_AT_string. Delete logic.
7962 (output_skeleton_debug_sections): Remove call to
7963 add_top_level_skeleton_die_attrs.
7964 (add_comp_dir_attribute): Move logic to comp_dir_string.
7965 (dwarf2out_init): Initialize debug_str_dwo_section.
7966 (output_indirect_string): Call find_string_form.
7967 (output_indirect_strings): Rewrite.
7968 (prune_unused_types): Empty skeleton_debug_str_hash.
7969 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7970 (dwarf2out_finish): Call output_indirect_strings.
7972 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7974 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7976 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7978 * rtl.h (struct rtx_def): Add comment for field jump.
7979 (LRA_SUBREG_P): New macro.
7980 * recog.c (register_operand): Check LRA_SUBREG_P.
7981 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7983 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7984 (lra_final_code_change): Skip subreg change for operators.
7985 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7986 if there are no operand changes.
7987 * lra-constraints.c (curr_insn_set): New.
7988 (match_reload): Set LRA_SUBREG_P.
7989 (emit_spill_move): Ditto.
7990 (check_and_process_move): Use curr_insn_set. Process only single
7991 set insns. Don't initialize sec_mem_p and change_p.
7992 (simplify_operand_subreg): Use LRA_SUBREG_P.
7993 (reg_in_class_p): New function.
7994 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7995 of #ifdef. Add code to remove cycling.
7996 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7997 non-null disp. Reload inner instead of disp when base and index
7998 are null. Try to put lo_sum into register.
7999 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
8000 (check_and_process_move): Move code for move cost check to
8001 simple_move_p. Remove equiv_substitution.
8002 (simple_move_p): New function.
8003 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
8004 curr_insn_set. Call check_and_process_move only for single set
8005 insns. Use the new function. Move call of check_and_process_move
8006 after operand equiv substitution and address process.
8008 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
8010 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
8011 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
8012 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
8014 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8016 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
8018 2013-04-24 Marek Polacek <polacek@redhat.com>
8020 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
8021 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
8022 (select_loops_exit_conditions): Likewise.
8023 (number_of_iterations_for_all_loops): Likewise.
8024 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
8025 (scev_analysis): Likewise.
8027 2013-04-02 Catherine Moore <clm@codesourcery.com>
8028 Chao-ying Fu <fu@mips.com>
8030 * config/mips/micromips.md (jraddiusp): New pattern.
8031 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
8032 instruction if possible.
8034 2013-04-24 Alan Modra <amodra@gmail.com>
8036 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
8038 2013-04-24 Julian Brown <julian@codesourcery.com>
8039 Chung-Lin Tang <cltang@codesourcery.com>
8041 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
8042 dependency behavior in enumeration type DIE generation. Add TODO note
8043 to comments about future DW_FORM_sdata/udata re-work of related code.
8045 2013-04-23 Lawrence Crowl <crowl@google.com>
8047 * Makefile.in: Update as needed below.
8049 * hash-table.h (class hash_table):
8050 Correct many methods with parameter types compare_type to the correct
8051 value_type. (Correct code was unlikely to notice the change.)
8052 (hash_table::elements_with_deleted) New.
8053 (class hashtable::iterator): New.
8054 (hashtable::begin()): New.
8055 (hashtable::end()): New.
8056 (FOR_EACH_HASH_TABLE_ELEMENT): New.
8058 * statistics.c (statistics_hashes):
8059 Change type to hash_table. Update dependent calls and types.
8061 * tree-into-ssa.c (var_infos):
8062 Change type to hash_table. Update dependent calls and types.
8064 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
8065 Change type to hash_table. Update dependent calls and types.
8067 * tree-ssa-loop-im.c (struct mem_ref.refs):
8068 Change type to hash_table. Update dependent calls and types.
8070 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
8071 Change type to hash_table. Update dependent calls and types.
8073 * tree-ssa-sccvn.c (vn_tables_s::nary):
8074 Change type to hash_table. Update dependent calls and types.
8075 (vn_tables_s::phis): Likewise.
8076 (vn_tables_s::references): Likewise.
8078 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
8079 (vn_reference_eq): Update parameter and return types.
8081 * tree-ssa-structalias.c (pointer_equiv_class_table):
8082 Change type to hash_table. Update dependent calls and types.
8083 (location_equiv_class_table): Likewise.
8085 * tree-vect-data-refs.c: Consequential changes for making
8086 peeling a hash_table.
8088 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
8089 (destroy_loop_vec_info): Dependent hash_table update.
8091 * tree-vectorizer.h (peeling_htab):
8092 Change type to hash_table. Update dependent calls and types.
8094 2013-04-23 Shiva Chen <shiva0217@gmail.com>
8096 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
8097 to check the register content is equal or not.
8098 * lra-constraints.c (match_reload): Use lra_assign_reg_val
8099 to assign register content record.
8100 * lra-eliminations.c (update_reg_eliminate): Use
8101 lra_update_reg_val_offset to update register content offset.
8102 * lra-int.h (struct lra_reg): Add offset member.
8103 (lra_reg_val_equal_p): New static inline function.
8104 (lra_update_reg_val_offset): New static inline function.
8105 (lra_assign_reg_val): New static inline function.
8106 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
8107 to assign register content record.
8108 (initialize_lra_reg_info_element): Initial offset to zero.
8110 2013-04-23 Catherine Moore <clm@codesourcery.com>
8112 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
8113 operands. Record compression.
8115 2013-04-23 Xinliang David Li <davidxl@google.com>
8117 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
8119 2013-04-23 Richard Biener <rguenther@suse.de>
8122 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
8123 parameter, only add abnormal goto edges from the copied body
8124 if the call could perform abnormal gotos.
8125 (copy_cfg_body): Adjust.
8127 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
8129 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
8131 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
8133 * coretypes.h (gimple_stmt_iterator): Add struct to make
8136 2013-04-23 Richard Biener <rguenther@suse.de>
8138 PR tree-optimization/57026
8139 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
8140 from SSA names occuring in abnormal PHI nodes.
8142 2013-04-22 Andi Kleen <ak@linux.intel.com>
8144 * lto/lto.c (print_lto_report_1): Fix LTO report names.
8146 2013-04-22 Andi Kleen <ak@linux.intel.com>
8148 * lto/lto.c (print_lto_report_1): Declare early.
8149 (read_cgraph_and_symbols): Call print_lto_report_1 early.
8151 2013-04-22 Andi Kleen <ak@linux.intel.com>
8153 * common.opt (-flto-report-wpa): Add.
8154 * doc/invoke.texi (-flto-report-wpa): Add.
8155 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
8158 2013-04-22 Xinliang David Li <davidxl@google.com>
8160 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
8161 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
8162 * Makefile.in: New dependency
8164 David Daney <ddaney.cavm@gmail.com>
8166 * configure.ac (gcc_cv_as_micromips_support): Use the
8167 --fatal-warnings option.
8168 * configure: Regenerate.
8170 2013-04-22 Marek Polacek <polacek@redhat.com>
8173 * tsan.c (instrument_expr): Don't instrument expression
8174 in case its size is zero.
8176 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
8180 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8182 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8184 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8186 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
8187 (gimple_stmt_iterator): New typedef.
8188 * gimple.h (gimple_stmt_iterator): Rename to...
8189 (gimple_stmt_iterator_d): ... This.
8190 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
8191 trees be valid for GIMPLE and GENERIC.
8192 (TARGET_GIMPLE_FOLD_BUILTIN): New.
8193 * gimple-fold.c (gimple_fold_call): Call target hook
8194 gimple_fold_builtin.
8195 * hooks.c (hook_bool_gsiptr_false): New.
8196 * hooks.h (hook_bool_gsiptr_false): New.
8197 * target.def (fold_stmt): New.
8198 * doc/tm.texi: Regenerate.
8200 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
8203 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
8204 a set sp if no stack realignment.
8206 2013-04-22 Nick Clifton <nickc@redhat.com>
8208 * config.gcc (tilegx-linux): Extend extra_objs rather than
8210 (tilepro-linux): Likewise.
8212 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8214 * config/aarch64/aarch64-builtins.c
8216 (CF0, CF1, CF2, CF3, CF4, CF10): New.
8217 (VAR<1-12>): Add MAP parameter.
8218 (BUILTIN_*): Likewise.
8219 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
8220 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
8221 (aarch64_ushl_n<mode>): Likewise.
8222 (aarch64_sshr_n<mode>): Likewise.
8223 (aarch64_ushr_n<mode>): Likewise.
8224 (aarch64_<maxmin><mode>): Likewise.
8225 (aarch64_sqrt<mode>): Likewise.
8226 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
8227 (vshr<q>_n_*): Likewise.
8229 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8231 * config/aarch64/aarch64-builtins.c
8232 (aarch64_simd_builtin_type_mode): Handle SF types.
8234 (BUILTIN_GPF): Define.
8235 (aarch64_init_simd_builtins): Handle SF types.
8236 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
8239 * config/aarch64/aarch64-simd.md
8240 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
8241 (aarch64_frecpe<mode>): New.
8242 (aarch64_frecps<mode>): Likewise.
8243 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
8244 (v8type): Add frecp<esx>.
8245 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
8246 (aarch64_frecps<mode>): Likewise.
8247 * config/aarch64/iterators.md (FRECP): New.
8248 (frecp_suffix): Likewise.
8249 * config/aarch64/arm_neon.h
8250 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
8252 2013-04-22 Christian Bruel <christian.bruel@st.com>
8255 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
8256 (REG_CLASS_NAMES): Idem.
8257 (REG_CLASS_CONTENTS): Idem.
8258 (REGCLASS_HAS_FP_REG): Idem.
8259 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
8260 (sh_conditional_register_usage): Idem.
8262 2013-04-21 Jeff Law <law@redhat.com>
8264 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
8265 (ssa_forward_propagate_and_combine): Use it.
8267 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8269 * lra.c: Update the flow chart diagram.
8271 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8273 PR rtl-optimization/56847
8274 * lra-constraints.c (process_alt_operands): Discourage alternative
8275 with non-matche doffsettable memory constraint fro memory with
8278 2013-04-19 Richard Biener <rguenther@suse.de>
8280 PR tree-optimization/56982
8281 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
8283 * gimplify.c (gimplify_call_expr): Notice special calls.
8284 (gimplify_modify_expr): Likewise.
8285 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
8286 abnormal control flow receivers.
8287 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
8288 in the same way as cfun->has_nonlocal_labels.
8289 (gimple_purge_dead_abnormal_call_edges): Likewise.
8290 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
8291 receivers start a basic-block.
8293 2013-04-19 Richard Biener <rguenther@suse.de>
8295 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
8297 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
8298 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
8299 (SLP_TREE_LOAD_PERMUTATION): Add.
8300 (vect_transform_slp_perm_load): Adjust prototype.
8301 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
8302 (vect_free_slp_instance): Likewise.
8303 (vect_create_new_slp_node): Likewise.
8304 (vect_supported_slp_permutation_p): Remove.
8305 (vect_slp_rearrange_stmts): Adjust.
8306 (vect_supported_load_permutation_p): Likewise. Inline
8307 vect_supported_slp_permutation_p here.
8308 (vect_analyze_slp_instance): Compute load permutations per
8309 slp node instead of per instance.
8310 (vect_get_slp_defs): Adjust.
8311 (vect_transform_slp_perm_load): Likewise.
8312 (vect_schedule_slp_instance): Remove redundant code.
8313 (vect_schedule_slp): Remove hack for PR56270, add it ...
8314 * tree-vect-stmts.c (vectorizable_load): ... here, do not
8315 CSE loads for SLP. Adjust.
8317 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8319 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
8320 spelling in two comments.
8322 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8325 * config/arm/arm.c (load_multiple_sequence): Require SP
8326 as base register for loads if SP is in the register list.
8328 2013-04-19 Martin Jambor <mjambor@suse.cz>
8330 PR tree-optimization/56718
8331 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8332 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8333 and made public. Adjusted all callers.
8334 (ipa_intraprocedural_devirtualization): New function.
8335 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8336 (ipa_intraprocedural_devirtualization): Likewise.
8337 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8339 2013-04-19 Richard Biener <rguenther@suse.de>
8341 PR tree-optimization/57000
8342 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8344 2013-04-19 Terry Guo <terry.guo@arm.com>
8346 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8348 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8349 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8350 (cortex_m4_fmacs): Use new reservations.
8351 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8353 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8355 PR rtl-optimization/56999
8356 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8358 (lra_coalesce): Remove split_origin_bitmap and related code.
8359 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8360 ranges if necessary.
8362 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
8364 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8366 (ix86_expand_call): Remove clobbered_registers array and use
8367 x86_64_ms_sysv_extra_clobbered_registers instead.
8368 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8370 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8372 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8373 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8374 (*call_value_rex64_ms_sysv): Ditto.
8376 2013-04-18 Cary Coutant <ccoutant@google.com>
8378 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8379 parent instead of die_mark.
8381 2013-04-18 Diego Novillo <dnovillo@google.com>
8383 * gimple.c (create_gimple_tmp): New.
8384 (get_expr_type): New.
8385 (build_assign): New.
8386 (build_type_cast): New.
8387 * gimple.h (enum ssa_mode): Define.
8388 (gimple_seq_set_location): New.
8389 * asan.c (build_check_stmt): Change some gimple_build_* calls
8390 to use build_assign and build_type_cast.
8392 2013-04-18 Richard Biener <rguenther@suse.de>
8394 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8395 handle negative step. Remove redundant checks.
8396 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8397 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8398 for negative step and grouped loads fail to vectorize.
8400 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8402 * emit-rtl.c (reset_insn_used_flags): New function.
8403 (reset_all_used_flags): Use it.
8404 (verify_insn_sharing): New function.
8405 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8407 2013-04-18 Jakub Jelinek <jakub@redhat.com>
8409 PR tree-optimization/56984
8410 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8411 and (x >> M) >= N don't register any assertion if N << M is the
8414 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8416 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8417 do not delete_insn insns that have not yet been emitted, only
8418 unlink them with remove_insn.
8419 * df-scan.c (df_insn_delete): Revert r197492.
8421 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8423 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8424 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8426 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8428 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8429 define_insn_and_split.
8430 (and_scc,ior_scc,negscc): Likewise.
8431 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8433 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8435 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8436 can benefit from using a sequence of LDRD instructions in epilogue
8437 instead of a single LDM instruction.
8439 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8442 * doc/extend.texi: Fix typo.
8444 2013-04-17 Richard Biener <rguenther@suse.de>
8446 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8447 (vect_build_slp_tree): ... here.
8448 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8449 match. Remove special-casing of mismatched complex loads.
8450 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8451 re-try the match with swapped commutative operands.
8452 (vect_supported_load_permutation_p): Remove special-casing of
8453 mismatched complex loads.
8454 (vect_analyze_slp_instance): Adjust.
8456 2013-04-17 Richard Biener <rguenther@suse.de>
8458 PR rtl-optimization/56921
8459 * cfgloop.h (struct loop): Add simple_loop_desc member.
8460 (struct niter_desc): Mark with GTY(()).
8461 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8462 * loop-iv.c (get_simple_loop_desc): Likewise.
8463 (free_simple_loop_desc): Likewise.
8466 2013-04-16 Richard Biener <rguenther@suse.de>
8468 PR rtl-optimization/56921
8469 * loop-init.c (pass_rtl_move_loop_invariants): Add
8470 TODO_do_not_ggc_collect to todo_flags_finish.
8471 (pass_rtl_unswitch): Same.
8472 (pass_rtl_unroll_and_peel_loops): Same.
8473 (pass_rtl_doloop): Same.
8475 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8477 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8478 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8479 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8481 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8482 * tree-streamer.c (record_common_node): Adjust reference in comment.
8484 2013-04-17 Terry Guo <terry.guo@arm.com>
8486 * config/arm/cortex-m4.md: Add a new bypass.
8488 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8490 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8492 (*subs_<optab><mode>_multp2): New pattern.
8493 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8494 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8496 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8498 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8499 (*subs_mul_imm_<mode>): New pattern.
8501 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
8504 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8505 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8506 (vsx_movti_32bit): Change j->wa to O->wa.
8508 2013-04-16 Richard Biener <rguenther@suse.de>
8510 PR rtl-optimization/56921
8511 * loop-init.c (pass_rtl_move_loop_invariants): Add
8512 TODO_do_not_ggc_collect to todo_flags_finish.
8513 (pass_rtl_unswitch): Same.
8514 (pass_rtl_unroll_and_peel_loops): Same.
8515 (pass_rtl_doloop): Same.
8517 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
8519 * config/arm/arm.c (emit_multi_reg_push): New declaration
8520 for an existing function.
8521 (arm_emit_strd_push): New function.
8522 (arm_expand_prologue): Used here.
8523 (arm_emit_ldrd_pop): New function.
8524 (arm_expand_epilogue): Used here.
8525 (arm_get_frame_offsets): Update condition.
8526 (arm_emit_multi_reg_pop): Add a special case for load of a single
8527 register with writeback.
8529 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
8531 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8534 2013-04-16 Richard Biener <rguenther@suse.de>
8536 PR tree-optimization/56756
8537 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8538 (first_mem_ref_loc): New.
8539 (execute_sm): Place the load temporarily before a previous
8540 access instead of in the latch edge to ensure its SSA dependencies
8541 are defined at points dominating the load.
8543 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8545 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8546 correct fix by moving header and footer insn to the footer of
8547 the merged basic block. Clear BB_END of the merged-away block.
8550 * emit-rtl.c (make_note_raw): New function.
8551 (link_insn_into_chain): New static inline function.
8553 (add_insn_before, add_insn_after): Factor insn chain linking code...
8554 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8555 using link_insn_into_chain.
8556 (note_outside_basic_block_p): New helper function for emit_note_after
8557 and emit_note_before.
8558 (emit_note_after): Use nobb variant of add_insn_after if the note
8559 should not be contained in a basic block.
8560 (emit_note_before): Use nobb variant of add_insn_before if the note
8561 should not be contained in a basic block.
8562 (emit_note_copy): Use make_note_raw.
8563 (emit_note): Likewise.
8564 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8565 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8566 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8567 the moved barrier the tail of the basic block it follows.
8568 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8570 2013-04-15 Jakub Jelinek <jakub@redhat.com>
8572 PR tree-optimization/56962
8573 * gimple-ssa-strength-reduction.c (record_increment): Only set
8574 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8575 either rhs1 or rhs2 is equal to c->base_expr.
8577 2013-04-15 Richard Biener <rguenther@suse.de>
8579 PR tree-optimization/56933
8580 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8582 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8583 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8584 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8585 dependence check ...
8586 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8588 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8589 GROUP_READ_WRITE_DEPENDENCE.
8591 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8593 * emit-rtl.c (reset_all_used_flags): New function.
8594 (verify_rtl_sharing): Call reset_all_used_flags before and after
8595 performing the checks.
8597 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8599 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8600 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8601 * config/arm/constraints.md (De): New constraint.
8602 * config/arm/neon.md (anddi3_neon): Delete.
8603 (neon_vand<mode>): Expand to standard anddi3 pattern.
8604 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8605 Move earlier in the file.
8606 (neon_inv_logic_op2): Likewise.
8607 (arm_anddi_operand_neon): New predicate.
8609 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8611 * configure.ac (gcc_cv_ld_as_needed): Set
8612 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8613 Use -z ignore, -z record on *-*-solaris2*.
8614 (HAVE_LD_AS_NEEDED): Update comment.
8615 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8616 * configure: Regenerate.
8617 * config.in: Regenerate.
8618 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8619 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8620 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8621 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8622 equivalents. Fix markup.
8623 * doc/tm.texi: Regenerate.
8625 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8627 * config/i386/i386.opt: New option mstack-protector-guard=.
8628 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8629 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8630 TARGET_SSP_TLS_GUARD.
8631 * config/i386/i386.c (ix86_option_override_internal): Set
8632 ix86_stack_protector_guard.
8633 * config/i386/i386.md (stack_protect_set): Enable for
8634 TARGET_SSP_TLS_GUARD only.
8635 (stack_protect_set_<mode>): Ditto.
8636 (stack_protect_test): Ditto.
8637 (stack_protect_test_<mode>): Ditto.
8638 * doc/invoke.texi (i386 Option): Document.
8640 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8643 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8644 (S_MODES): Set H_MODE bit.
8645 (SF_MODES): Set only S_MODE and SF_MODE bits.
8646 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8647 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8648 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8649 <MODE_FLOAT>: Likewise.
8651 2013-04-15 Joey Ye <joey.ye@arm.com>
8653 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8655 2013-04-15 Joey Ye <joey.ye@arm.com>
8657 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8659 (thumb_far_jump_used_p): Count instruction size and set
8662 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8664 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8665 * resource.c (mark_target_live_regs): Reformat conditional block.
8667 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8669 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8670 notes, they are emitted only just before final.
8671 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8673 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8675 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8676 * cfgrtl.c (delete_insn): Call it here instead.
8677 * lra-spills.c (lra_final_code_change): Use delete_insn.
8678 * haifa-sched.c (sched_remove_insn): Likewise.
8679 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8680 returning to the nop pool.
8681 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8682 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8684 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8686 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8687 * doc/tm.texi: Regenerated.
8689 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
8691 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8694 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8696 * df-core.c (df_find_def): Compare register numbers.
8697 (df_find_use): Likewise.
8699 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8702 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8703 lra_in_progress for return.
8705 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8707 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8708 define_insn into define_insn_and_split and emit movsicc patterns.
8710 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8712 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8714 2013-04-12 Richard Biener <rguenther@suse.de>
8716 * tree-pass.h (TODO_do_not_ggc_collect): New.
8717 * passes.c (execute_one_ipa_transform_pass): Honor
8718 TODO_do_not_ggc_collect.
8719 (execute_one_pass): Likewise.
8722 2013-04-10 Richard Biener <rguenther@suse.de>
8724 * passes.c (init_optimization_passes): Remove reload pass.
8725 * ira.c (do_reload): Merge into ...
8727 (rest_of_handle_reload): Remove.
8728 (pass_reload): Likewise.
8729 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8730 of reload for vzeroupper pass placement.
8732 2013-04-12 Jakub Jelinek <jakub@redhat.com>
8734 PR tree-optimization/56918
8735 PR tree-optimization/56920
8736 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8737 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8738 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8739 use wide_mul_with_sign method.
8741 2013-04-12 Richard Biener <rguenther@suse.de>
8743 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8744 not be considered a gimple constant.
8746 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
8748 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8749 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8752 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8753 Jakub Jelinek <jakub@redhat.com>
8755 * opts.c: Include diagnostic-color.h.
8756 (common_handle_option): Handle OPT_fdiagnostics_color_.
8757 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8758 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8759 (diagnostic-color.o): New.
8760 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8761 (diagnostic_color_rule): New enum.
8762 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8763 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8764 the location string.
8765 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8766 either NULL, or color kind.
8767 * diagnostic-color.c: New file.
8768 * diagnostic-color.h: New file.
8769 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8771 * doc/invoke.texi (-fdiagnostics-color): Document.
8772 * pretty-print.h (pp_show_color): Define.
8773 (struct pretty_print_info): Add show_color field.
8774 * diagnostic.c: Include diagnostic-color.h.
8775 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8776 macros. Colorize error:, warning: etc. strings and also the location
8778 (diagnostic_show_locus): Colorize the caret line.
8779 * pretty-print.c: Include diagnostic-color.h.
8780 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8781 inside of %< %> quotes or quoted through q format modifier.
8783 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8785 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8787 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8789 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8791 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8794 2013-04-11 Marek Polacek <polacek@redhat.com>
8796 PR tree-optimization/48184
8797 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8799 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8801 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8802 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8803 (skip_simple_arithmetic): Tidy up.
8804 * tree.h (skip_simple_constant_arithmetic): Declare.
8806 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8808 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8810 2013-04-11 Richard Biener <rguenther@suse.de>
8812 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8813 generate vector constants.
8815 2013-04-11 Richard Biener <rguenther@suse.de>
8817 PR tree-optimization/56878
8818 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8819 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8821 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8822 Prefer to align the DR with the most invariant base address.
8824 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8826 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8829 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8831 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8832 floating-point vector comparisons against 0.
8834 2013-04-11 Jakub Jelinek <jakub@redhat.com>
8836 PR tree-optimization/56899
8837 * fold-const.c (extract_muldiv_1): Apply distributive law
8838 only if TYPE_OVERFLOW_WRAPS (ctype).
8840 2013-04-11 Bin Cheng <bin.cheng@arm.com>
8843 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8844 loading has side effect.
8846 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8848 * config/sparc/sparc.c: Include tree-pass.h.
8849 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8850 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8851 head of file. Change return type. Split off gate function.
8852 (sparc_gate_work_around_errata): New function.
8853 (pass_work_around_errata): New pass definition.
8854 (insert_pass_work_around_errata) New pass insert definition to
8855 insert pass_work_around_errata just after delayed-branch scheduling.
8856 (sparc_option_override): Insert the pass.
8857 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8859 2013-04-10 David S. Miller <davem@davemloft.net>
8861 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8862 or -mcpu=hypersparc.
8864 * target.def (cstore_mode): New hook.
8865 * target.h: Include insn-codes.h
8866 * targhooks.c: Likewise.
8867 (default_cstore_mode): New function.
8868 * targhooks.h: Declare it.
8869 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8870 * doc/tm.texi: Rebuild.
8871 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8872 target hook, rather than inspecting the insn_data.
8873 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8874 (TARGET_CSTORE_MODE): Redefine.
8875 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8877 * config/sparc/predicates.md (cstore_result_operand): New special
8879 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8880 Use it for operand 0.
8881 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8882 (*snesi_special): Likewise.
8883 (*snesi_zero): Likewise.
8884 (*seqsi_zero): Likewise.
8885 (*sltu_insn): Likewise.
8886 (*sgeu_insn): Likewise.
8887 (*seqdi_special): Make operand 0 and comparison operation be of
8889 (*snedi_special): Likewise.
8890 (*snedi_special_vis3): Likewise.
8891 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8892 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8893 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8894 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8895 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8896 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8897 (*sltu_extend_sp64): Likewise.
8898 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8899 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8900 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8901 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8902 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8904 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8906 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8907 (aarch64_start_file): Use the new function.
8909 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8910 Jason Merrill <jason@redhat.com>
8912 * common.opt: Add -gdwarf.
8913 * opts.c (common_handle_option): Handle it.
8914 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8916 2013-04-10 Richard Biener <rguenther@suse.de>
8918 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8919 (execute_one_ipa_transform_pass): But unconditionally here.
8920 (execute_one_pass): And here.
8921 (init_optimization_passes): Remove reload pass.
8922 * tree-pass.h (TODO_ggc_collect): Remove.
8923 (pass_reload): Likewise.
8924 * ira.c (do_reload): Merge into ...
8926 (rest_of_handle_reload): Remove.
8927 (pass_reload): Likewise.
8928 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8929 of reload for vzeroupper pass placement.
8930 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8931 and todo_flags_finish of all passes.
8933 2013-04-10 Richard Biener <rguenther@suse.de>
8935 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8936 first_const_oprnd field, rename first_def_type to first_op_type.
8937 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8938 (vect_get_and_check_slp_defs): Always use the type of the
8939 operand. Allow mixed vect_external_def, vect_constant_def types.
8940 (vect_get_constant_vectors): Handle mixed vect_external_def,
8941 vect_constant_def types.
8943 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8945 PR tree-optimization/55524
8946 * tree-ssa-math-opts.c
8947 (convert_mult_to_fma): Don't use an fms construct
8948 when we don't have an fms operation, but fnma, and it looks
8949 likely that we'll be able to use the latter.
8951 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8953 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8955 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8956 inline fail caused by overwritable functions.
8958 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8960 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8961 unnecessary bits in the constant power of two case.
8963 2013-04-10 Richard Biener <rguenther@suse.de>
8965 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8966 broken code swapping operands.
8967 (vect_build_slp_tree): Do not compute load permutations here.
8968 (vect_analyze_slp_instance): Compute load permutations here,
8969 after building the SLP tree.
8971 2013-04-09 Christian Bruel <christian.bruel@st.com>
8973 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8974 of next/prev_real_insn.
8976 2013-04-09 Jan Hubicka <jh@suse.cz>
8978 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8979 Drop aliased parameter.
8980 (function_and_variable_visibility): Do not handle alias pairs.
8981 * cgraph.c (varpool_externally_visible_p): Update prototype.
8982 * varpool.c (varpool_add_new_variable): Update.
8984 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8986 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8988 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8990 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8992 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8994 2013-04-09 Marek Polacek <polacek@redhat.com>
8996 PR tree-optimization/48762
8997 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8999 2013-04-09 Richard Biener <rguenther@suse.de>
9001 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
9003 (vect_build_slp_tree): Likewise.
9004 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
9005 calculating the cost of a SLP instance.
9006 (vect_analyze_slp_instance): Use it from here, after building
9009 2013-04-09 Jakub Jelinek <jakub@redhat.com>
9012 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
9013 expand_omp_for_static_chunk): Use simple_p = true in
9014 force_gimple_operand_gsi calls when assigning to addressable decls.
9016 2013-04-09 Jeff Law <law@redhat.com>
9018 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
9019 when the boolean was created by converting a wider object which
9020 had a boolean range.
9022 2013-04-09 Richard Biener <rguenther@suse.de>
9024 * tree-vectorizer.h (slp_void_p): Remove.
9025 (slp_tree): Typedef before _slp_tree declaration.
9026 (struct _slp_tree): Use a vector of slp_tree as children.
9027 (vect_get_place_in_interleaving_chain): Remove.
9028 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
9030 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
9032 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
9033 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
9034 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
9035 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
9036 Use slp_node instead of slp_void_p and adjust.
9038 2013-04-09 Richard Biener <rguenther@suse.de>
9040 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
9041 work that is not necessary.
9043 2013-04-09 Jakub Jelinek <jakub@redhat.com>
9045 PR tree-optimization/56854
9046 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
9047 forward into clobber stmts if it would change MEM_REF lhs into
9050 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
9052 * tree.c (type_hash_lookup, type_hash_add): Make static.
9053 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
9055 2013-04-09 Richard Biener <rguenther@suse.de>
9057 * tree.h (unsave_expr_now): Remove.
9058 * tree-inline.c (mark_local_for_remap_r): Remove.
9059 (unsave_expr_1): Likewise.
9060 (unsave_r): Likewise.
9061 (unsave_expr_now): Likewise.
9062 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
9063 (propagate_tree_value): Likewise.
9065 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
9067 * doc/rtl.texi (sequence): Rewrite documentation to match the
9068 current use of SEQUENCE rtl objects.
9069 * rtl.def (SEQUENCE): Likewise.
9071 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
9072 Update documentation.
9073 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
9074 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
9076 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
9078 2013-04-08 Teresa Johnson <tejohnson@google.com>
9080 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
9081 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
9083 (estimate_edge_size_and_time): Add comment to suggest using rounding
9085 (estimate_node_size_and_time): Ditto.
9086 (remap_edge_change_prob): Use helper rounding divide methods.
9087 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
9088 (gimple_mod_pow2_value_transform): Ditto.
9089 (gimple_mod_subtract_transform): Ditto.
9090 (gimple_ic_transform): Ditto.
9091 (gimple_stringops_transform): Ditto.
9092 * stmt.c (conditional_probability): Ditto.
9093 (emit_case_dispatch_table): Ditto.
9094 * lto-cgraph.c (merge_profile_summaries): Ditto.
9095 * tree-optimize.c (execute_fixup_cfg): Ditto.
9096 * cfgcleanup.c (try_forward_edges): Ditto.
9097 * cfgloopmanip.c (scale_loop_profile): Ditto.
9099 (duplicate_loop_to_header_edge): Ditto.
9100 (lv_adjust_loop_entry_edge): Ditto.
9101 * tree-vect-loop.c (vect_transform_loop): Ditto.
9102 * profile.c (compute_branch_probabilities): Ditto.
9103 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
9104 * lto-streamer-in.c (input_cfg): Ditto.
9105 * gimple-streamer-in.c (input_bb): Ditto.
9106 * ipa-cp.c (update_profiling_info): Ditto.
9107 (update_specialized_profile): Ditto.
9108 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
9109 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
9111 * sched-rgn.c (compute_dom_prob_ps): Ditto.
9112 (compute_trg_info): Ditto.
9113 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
9114 (purge_dead_edges): Ditto.
9115 * loop-unswitch.c (unswitch_loop): Ditto.
9116 * cgraphclones.c (cgraph_clone_edge): Ditto.
9117 (cgraph_clone_node): Ditto.
9118 * tree-inline.c (copy_bb): Ditto.
9119 (copy_edges_for_bb): Ditto.
9120 (initialize_cfun): Ditto.
9121 (copy_cfg_body): Ditto.
9122 (expand_call_inline): Ditto.
9124 2013-04-08 Kai Tietz <ktietz@redhat.com>
9126 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
9127 TARGET_CYGWIN64 by TARGET_64BIT.
9129 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
9131 * config/epiphany/epiphany.md (GPR_1): New constant.
9132 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
9133 * config/epiphany/epiphany.c (gen_compare_reg):
9134 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
9135 is already in place.
9136 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
9137 Don't require being called during rtl expansion; If y operlaps r0,
9139 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
9140 (epiphany_expand_epilogue): Likewise.
9142 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
9143 Don't use CC_FPmode for ORDERED / UNORDERED.
9144 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
9146 * config/epiphany/constraints.md (CnL): New constraint.
9147 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
9148 * config/epiphany/predicates.md (add_operand): Allow 1024.
9150 * config/epiphany/epiphany.md (logical_op): New code iterator.
9151 (op_mnc): New code attribute.
9152 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
9153 (mov_f+1, mov_f+2): New peephole2 patterns.
9155 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
9156 (cstoresi4): Also allow re-use of zero result when doing a NE
9157 comparison to a non-zero operand.
9158 Use (clobber (scratch)) for first insn if the gpr output is not needed.
9160 * config/epiphany/epiphany.md (<insn_opname>v2si3):
9161 Use gen_addsi3_i / gen_subsi3_i.
9163 2013-04-08 Jakub Jelinek <jakub@redhat.com>
9167 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
9168 contain anything but clobbers, at most one __builtin_stack_restore,
9169 optionally debug stmts and final resx, and if it has at least one
9170 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
9171 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
9172 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
9173 which isn't defaut definition, remove them.
9174 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
9175 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
9176 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
9177 with MEM_REF LHS with SSA_NAME address.
9179 2013-04-08 Jeff Law <law@redhat.com>
9181 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
9183 2013-04-08 Richard Biener <rguenther@suse.de>
9185 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
9187 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
9188 determined vector type.
9189 (vect_analyze_data_refs): Likewise.
9190 (vect_get_new_vect_var): Adjust.
9191 (vect_create_destination_var): Preserve SSA name versions.
9192 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
9193 not dump anything here.
9195 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
9197 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
9198 Add member lr_slot_known.
9199 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
9201 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
9202 Remove code that sets lr_slot_offset according to what a previous
9203 version of epiphany_emit_save_restore used to do.
9204 (epiphany_emit_save_restore): When doing an lr save or restore,
9205 set/verify lr_slot_known and lr_slot_offset.
9207 2013-04-08 Xinyu Qi <xyqi@marvell.com>
9210 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
9213 2013-04-08 Richard Biener <rguenther@suse.de>
9215 * alias.c (find_base_term): Fix thinko in previous change.
9217 2013-04-08 Jakub Jelinek <jakub@redhat.com>
9219 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
9220 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
9221 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
9222 if possible to compute val.
9223 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
9224 For QImode integers don't require anything about precision. Use
9225 const_with_all_bytes_same to find out if the constant doesn't have
9226 repeated bytes in it.
9228 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9230 * config/s390/s390.c (s390_expand_insv): Only accept insertions
9233 2013-04-08 Marek Polacek <polacek@redhat.com>
9235 PR rtl-optimization/48182
9236 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
9239 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9242 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
9243 nuses, make sure we have a label.
9245 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9248 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
9249 (rs6000_emit_swdiv_low_precision): Remove.
9250 (rs6000_emit_swdiv): Rewrite to handle between one and four
9251 iterations of Newton-Raphson generally; modify required number of
9252 iterations for some cases.
9253 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
9255 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
9257 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
9258 set-but-unused variable.
9260 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
9261 basic blocks of released function bodies garbage-collectable.
9263 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
9264 (struct rtl_opt_pass): Add TODO_df_finish.
9266 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
9268 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9270 * config/arm/constraints.md (q): New constraint.
9271 * config/arm/ldrdstrd.md: New file.
9272 * config/arm/arm.md (ldrdstrd.md) New include.
9273 (arm_movdi): Use "q" instead of "r" constraint
9274 for double-word memory access.
9275 (movdf_soft_insn): Likewise.
9276 * config/arm/vfp.md (movdi_vfp): Likewise.
9277 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
9278 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
9279 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
9280 (mem_ok_for_ldrd_strd): Likewise.
9281 (output_move_double): Update assertion.
9283 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9285 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
9287 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9289 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
9290 define_insn_and_split.
9291 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
9293 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9295 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
9296 define_insn_and_split.
9297 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
9298 (shiftsi3_compare): New pattern.
9300 * config/arm/unspecs.md (UNSPEC_RRX): New.
9302 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9304 * config/arm/arm.md (negdi_extendsidi): New pattern.
9305 (negdi_zero_extendsidi): Likewise.
9307 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9309 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
9310 define_insn_and_split.
9311 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
9312 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
9314 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9316 * config/arm/arm.md (arm_subdi3): Convert define_insn into
9317 define_insn_and_split.
9318 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
9319 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
9321 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9323 * config/arm/arm.md (subsi3_carryin): New pattern.
9324 (subsi3_carryin_const): Likewise.
9325 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9326 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9328 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9330 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9332 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9334 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
9335 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
9337 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9339 * config/arm/arm.c (arm_expand_builtin): Change fcode
9340 type to unsigned int.
9342 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9344 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9346 2013-04-04 Ian Lance Taylor <iant@google.com>
9348 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9351 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9354 * df-scan.c (df_insn_delete): Disable failing assert.
9356 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9358 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9359 New function prototype.
9360 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9361 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9362 (arm_builtin_vectorized_function): New function.
9364 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9366 * config/arm/arm_neon_builtins.def: New file.
9367 * config/arm/arm.c (neon_builtin_data): Move contents to
9368 arm_neon_builtins.def.
9369 (enum arm_builtins): Include neon builtin definitions.
9370 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
9371 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
9373 2013-04-04 Marek Polacek <polacek@redhat.com>
9375 PR tree-optimization/48186
9376 * predict.c (maybe_hot_frequency_p): Return false if
9377 HOT_BB_FREQUENCY_FRACTION is 0.
9378 (cgraph_maybe_hot_edge_p): Likewise.
9380 2013-04-04 Richard Biener <rguenther@suse.de>
9382 PR tree-optimization/56826
9383 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9386 2013-04-04 Richard Biener <rguenther@suse.de>
9388 PR tree-optimization/56213
9389 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
9390 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
9392 2013-04-04 Richard Biener <rguenther@suse.de>
9394 PR tree-optimization/56837
9395 * tree-loop-distribution.c (classify_partition): For non-zero
9396 values require that the value has the same precision as its
9397 mode to be useful as memset value.
9399 2013-04-03 Nick Clifton <nickc@redhat.com>
9401 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
9402 (fmssf4): Use fmsf.s on E3V5 architectures.
9403 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9404 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9406 2013-04-03 Jeff Law <law@redhat.com>
9408 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9409 (lra-eliminations.o): Likewise.
9411 2013-04-03 Teresa Johnson <tejohnson@google.com>
9413 * gcov-io.c (compute_working_sets): Moved most of body of old
9414 compute_working_sets here from profile.c.
9415 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
9416 (gcov_working_set_t): Moved typedef here from basic-block.h
9417 (compute_working_set): Declare.
9418 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9419 (get_working_sets): Renamed from compute_working_set,
9420 replace most of body with call to new compute_working_sets.
9421 (get_exec_counts): Replace call to compute_working_sets
9422 to get_working_sets.
9423 * profile.h (get_working_sets): Renamed from compute_working_set.
9424 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
9425 to get_working_sets.
9426 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9427 * gcov-dump.c (dump_working_sets): New function.
9429 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9431 * hwint.c (sext_hwi, zext_hwi): New functions.
9432 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9433 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9434 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9435 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9436 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9437 (sext_hwi, zext_hwi): New functions.
9439 2013-04-03 Jeff Law <law@redhat.com>
9441 PR tree-optimization/56799
9442 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9443 back test for widening conversion erroneously dropped in prior change.
9445 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9448 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9449 instead of next_real_insn.
9451 2013-04-03 Marek Polacek <polacek@redhat.com>
9454 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
9456 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9459 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9461 (thumb1_output_casesi): Likewise.
9462 (thumb2_output_casesi): Likewise.
9464 2013-04-03 Richard Biener <rguenther@suse.de>
9466 PR tree-optimization/56817
9467 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9469 (tree_unroll_loops_completely_1): ... new function to manually
9470 walk the loop tree, properly defering outer loops of unrolled
9471 loops to later iterations.
9473 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9475 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9476 (vectorizable_load): Likewise.
9477 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9478 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9480 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9482 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9485 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9487 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9489 2013-04-03 Bin Cheng <bin.cheng@arm.com>
9491 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9493 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9495 PR tree-optimization/56790
9496 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9499 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9501 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9503 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9504 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9507 2013-04-03 Jakub Jelinek <jakub@redhat.com>
9510 * tree.h (force_folding_builtin_constant_p): New decl.
9511 * builtins.c (force_folding_builtin_constant_p): New variable.
9512 (fold_builtin_constant_p): Fold immediately also if
9513 force_folding_builtin_constant_p.
9515 2013-04-03 Richard Biener <rguenther@suse.de>
9517 PR tree-optimization/56812
9518 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9519 DRs of the same interleaving chain are independent.
9521 2013-04-02 Jason Merrill <jason@redhat.com>
9523 * gdbinit.in (pbb): Use debug fn.
9525 2013-04-02 Lawrence Crowl <crowl@google.com>
9527 * sese.h (struct ivtype_map_elt_s): Remove unused.
9528 (extern debug_ivtype_map): Remove unused.
9529 (extern eq_ivtype_map_elts): Remove unused.
9530 * sese.c (debug_ivtype_map): Removed unused.
9531 (debug_ivtype_map_1): Removed unused.
9532 (debug_ivtype_elt): Remove unused.
9533 (eq_ivtype_map_elts): Remove unused.
9536 2013-04-02 Kai Tietz <ktietz@redhat.com>
9539 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9540 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
9541 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9543 (legitimize_pe_coff_symbol): Likewise.
9544 (is_imported_p): New helper-function.
9545 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9546 for Windows x64 targets.
9547 (ix86_expand_prologue): Optimize for pe-coff targets.
9548 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9549 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9550 medium/large code-model.
9551 (legitimize_pic_address): Likewise.
9552 (legitimize_tls_address): Likewise.
9553 (ix86_expand_call): Likewise.
9554 (x86_output_mi_thunk): Likewise.
9555 (get_dllimport_decl): Add new beimport argument.
9556 (construct_plt_address): Don't assert for x64 pe-coff targets.
9557 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9559 (SYMBOL_FLAG_STUBVAR): New macro.
9560 (SYMBOL_REF_STUBVAR_P): Likewise.
9561 * config/i386/winnt.c (stub_list): New structure.
9562 (stub_head): New local variable.
9563 (i386_pe_record_stub): New function.
9564 (i386_pe_file_end): Emit refptr-stubs.
9566 2013-04-02 Jakub Jelinek <jakub@redhat.com>
9568 PR rtl-optimization/56745
9569 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9570 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9573 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9574 and both of them are MEM_REFs, just compare first argument for
9575 equality and attempt to deal even with differing offsets.
9578 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9579 of gimple_clobber_p to be MEM_REF.
9580 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9581 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9582 after gimplification.
9583 * asan.c (get_mem_ref_of_assignment): Don't instrument
9584 gimple_clobber_p stmts.
9585 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9586 gimple_clobber_p stmt if they have MEM_REF lhs and
9587 are dead because of another gimple_clobber_p stmt.
9588 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9589 gimple_clobber_p stmts like debug stmts.
9590 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9591 that refer to unused VAR_DECLs or uninitialized values.
9592 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9593 gimple_clobber_p stmts if they refer to removed parameters.
9594 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9597 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
9599 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9600 using SWI48 mode attribute.
9602 2013-04-02 Wei Mi <wmi@google.com>
9604 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9605 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9606 *<rotate_insn><mode>3_mask in i386.md.
9608 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9610 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9612 2013-04-02 Richard Biener <rguenther@suse.de>
9614 PR tree-optimization/56778
9615 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9616 Runtime alias tests are not supported for gather loads.
9617 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9618 stmts referenced from SSA operands before updating SSA form.
9620 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9621 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9623 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9624 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9625 * config/arm/cortex-a53.md: New file.
9626 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9627 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9628 * config/arm/arm.c (arm_issue_rate): Likewise.
9629 * config/arm/arm-tune.md: Regenerate
9630 * config/arm/arm-tables.opt: Regenerate.
9631 * config/arm/arm-cores.def: Add cortex-a53.
9633 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9635 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9638 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9640 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9641 scalar load/store operations using B/H registers.
9642 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9644 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9646 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9648 * config/aarch64/aarch64.c
9649 (aarch64_simd_scalar_immediate_valid_for_move): New.
9650 * config/aarch64/aarch64-protos.h
9651 (aarch64_simd_scalar_immediate_valid_for_move): New.
9652 * config/aarch64/constraints.md (Dh, Dq): New.
9653 * config/aarch64/iterators.md (hq): New.
9655 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9657 * reorg.c (get_branch_condition): Deal with conditional returns.
9658 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9660 2013-04-01 Wei Mi <wmi@google.com>
9662 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9663 Truncate operand 2 using %b asm operand modifier.
9664 (*<shift_insn><mode>3_mask): Ditto.
9665 (*<rotate_insn><mode>3_mask): Ditto.
9667 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9670 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9672 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9674 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9676 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9678 2013-03-30 Lawrence Crowl <crowl@google.com>
9680 * dse.c (clear_alias_sets): Remove never set.
9681 (disqualified_clear_alias_sets): Remove never set.
9682 (clear_alias_mode_pool): Remove never set.
9683 (dse_step0): Remove condition that is never true.
9684 (canon_address): Remove condition that is never true.
9685 (dse_step7): Remove condition that is never true.
9686 (rest_of_handle_dse): Remove condition that is never true.
9687 (rest_of_handle_dse::did_global): Remove never read from above.
9688 (dse_step2_spill): Remove never called from above.
9689 (dse_step5_spill): Remove never called from above.
9691 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9693 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9694 JUMP_TABLE_DATA changes.
9695 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9696 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9697 (Insns) <jump_table_data>: New entry.
9698 * doc/tm.texi: Regenerate.
9700 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9702 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9703 for table jump at the end of a basic block using tablejump_p.
9704 * targhooks.c (default_invalid_within_doloop): Likewise.
9705 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9706 target hook implementation that is identical to the default hook.
9707 (rs6000_invalid_within_doloop): Remove.
9709 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9710 unused variable from tablejump_p call.
9712 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9713 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9714 (INSN_DELETED_P): Likewise.
9715 (emit_jump_table_data): New prototype.
9716 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9717 after 4th as unused.
9718 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9719 * sched-vis.c (print_insn): Likewise.
9720 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9721 insn for compatibility with back ends that use next_active_insn to
9722 identify jump table data.
9723 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9724 (remove_insn): Likewise.
9725 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9727 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9728 (emit_jump_table_data): New function.
9730 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9731 basic block, a JUMP_TABLE_DATA never is.
9732 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9733 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9734 off from code handling real insns.
9735 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9736 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9737 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9738 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9739 is not a NONDEBUG_INSN_P.
9740 * ira-costs.c (scan_one_insn): Likewise.
9741 * jump.c (mark_all_labels): Likewise.
9742 (mark_jump_label_1): Likewise.
9743 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9744 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9746 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9747 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9748 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9749 JUMP_TABLE_DATA_P insns.
9750 (calculate_elim_costs_all_insns): Likewise.
9751 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9752 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9753 (delete_output_reload): Code style fixups.
9754 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9755 insn flags on this non-insn.
9756 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9757 as scheduling barriers, for pre-change compatibility.
9758 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9759 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9761 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9762 redundant JUMP_TABLE_DATA_P test.
9763 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9764 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9765 (frv_for_each_packet): Likewise.
9766 * config/i386/i386.c (min_insn_size): Likewise.
9767 (ix86_avoid_jump_mispredicts): Likewise.
9768 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9769 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9770 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9771 (mips16_insn_length): Robustify.
9772 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9773 (mips16_split_long_branches): Likewise.
9774 * config/pa/pa.c (pa_combine_instructions): Likewise.
9775 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9776 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9777 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9778 as contributing to pool range lengths.
9779 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9780 Remove redundant JUMP_TABLE_DATA_P test.
9781 (sh_loop_align): Likewise.
9782 (split_branches): Likewise.
9783 (sh_insn_length_adjustment): Likewise.
9784 * config/spu/spu.c (get_branch_target): Likewise.
9786 2013-03-29 Jan Hubicka <jh@suse.cz>
9788 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9789 gcov streaming; stream hot bb threshold to ltrans.
9790 * predict.c (get_hot_bb_threshold): Break out from ....
9791 (maybe_hot_count_p): ... here.
9792 (set_hot_bb_threshold): New function.
9793 * lto-section-in.c (lto_section_name): Add profile.
9794 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9795 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9797 (histogram_entry): New structure.
9798 (histogram, histogram_pool): New global vars.
9799 (histogram_hash): New structure.
9800 (histogram_hash::hash): New method.
9801 (histogram_hash::equal): Likewise.
9802 (account_time_size): New function.
9803 (cmp_counts): New function.
9804 (dump_histogram): New function.
9805 (ipa_profile_generate_summary): New function.
9806 (ipa_profile_write_summary): New function.
9807 (ipa_profile_read_summary): New function.
9808 (ipa_profile): Decide on threshold.
9809 (pass_ipa_profile): Add ipa_profile_write_summary and
9810 ipa_profile_read_summary.
9811 * Makefile.in (ipa.o): Update dependencies.
9812 * lto-streamer.h (LTO_section_ipa_profile): New section.
9814 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9816 * tree.h (VAR_P): New.
9818 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9821 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9823 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9825 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9826 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9827 (control_flow_insn_p): Likewise.
9828 * cfgrtl.c (duplicate_insn_chain): Likewise.
9829 * final.c (get_attr_length_1): Likewise.
9830 (shorten_branches): Likewise.
9831 (final_scan_insn): Likewise.
9832 * function.c (instantiate_virtual_regs): Likewise.
9833 * gcse.c (insert_insn_end_basic_block): Likewise.
9834 * ira-costs.c (scan_one_insn): Likewise.
9835 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9836 * lra.c (check_rtl): Likewise.
9837 * reload1.c (elimination_costs_in_insn): Likewise.
9838 * reorg.c (follow_jumps): Likewise.
9840 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9841 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9842 (thumb_far_jump_used_p): Likewise.
9843 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9844 (workaround_speculation): Likewise.
9845 (add_sched_insns_for_speculation): Likewise.
9846 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9847 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9848 (frv_for_each_packet): Likewise.
9849 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9850 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9851 (final_emit_insn_group_barriers): Likewise.
9852 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9853 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9854 (mips16_insn_length): Likewise.
9855 * config/pa/pa.c (pa_reorg): Likewise.
9856 (pa_combine_instructions): Likewise.
9857 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9858 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9859 (sh_reorg): Likewise.
9860 (split_branches): Likewise.
9861 * config/spu/spu.c (get_branch_target): Likewise.
9863 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9866 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9868 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9869 Fix declaration name.
9871 2013-03-28 Lawrence Crowl <crowl@google.com>
9873 * graphds.h (struct graph.indicies): Remove unused.
9874 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9875 (SCOP_ORIGINAL_PDDRS): Remove unused.
9876 * sese.h (extern insert_loop_close_phis): Removed unused.
9877 (extern insert_guard_phis): Removed unused.
9878 (extern ivtype_map_elt_info): Removed unused.
9879 (new_ivtype_map_elt): Removed unused.
9880 * sese.c (ivtype_map_elt_info): Removed unused.
9882 2013-03-28 Lawrence Crowl <crowl@google.com>
9884 * Makefile.in: Add several missing include dependences.
9886 (test-dump.o): New. This object is not added to any executable,
9887 but is present for ad-hoc testing.
9889 (debug (const bitmap_head_def &)): New.
9890 (debug (const bitmap_head_def *)): New.
9892 (extern debug (const bitmap_head_def &)): New.
9893 (extern debug (const bitmap_head_def *)): New.
9895 (debug (edge_def &)): New.
9896 (debug (edge_def *)): New.
9898 (debug (basic_block_def &)): New.
9899 (debug (basic_block_def *)): New.
9901 (dump_node (const_tree, int, FILE *)): Correct source file.
9903 (debug (die_struct &)): New.
9904 (debug (die_struct *)): New.
9906 (extern debug (die_struct &)): New.
9907 (extern debug (die_struct *)): New.
9908 * gimple-pretty-print.c
9909 (debug (gimple_statement_d &)): New.
9910 (debug (gimple_statement_d *)): New.
9911 * gimple-pretty-print.h
9912 (extern debug (gimple_statement_d &)): New.
9913 (extern debug (gimple_statement_d *)): New.
9915 (debug (ira_allocno_copy &)): New.
9916 (debug (ira_allocno_copy *)): New.
9917 (debug (ira_allocno &)): New.
9918 (debug (ira_allocno *)): New.
9920 (extern debug (ira_allocno_copy &)): New.
9921 (extern debug (ira_allocno_copy *)): New.
9922 (extern debug (ira_allocno &)): New.
9923 (extern debug (ira_allocno *)): New.
9925 (debug (live_range &)): New.
9926 (debug (live_range *)): New.
9928 (debug (lra_live_range &)): New.
9929 (debug (lra_live_range *)): New.
9931 (debug (lra_live_range &)): New.
9932 (debug (lra_live_range *)): New.
9934 (debug (omega_pb_d &)): New.
9935 (debug (omega_pb_d *)): New.
9937 (extern debug (omega_pb_d &)): New.
9938 (extern debug (omega_pb_d *)): New.
9940 (debug (const rtx_def &)): New.
9941 (debug (const rtx_def *)): New.
9943 (debug_tree (tree): Move within file.
9944 (debug_raw (const tree_node &)): New.
9945 (debug_raw (const tree_node *)): New.
9946 (dump_tree_via_hooks (const tree_node *, int)): New.
9947 (debug (const tree_node &)): New.
9948 (debug (const tree_node *)): New.
9949 (debug_verbose (const tree_node &)): New.
9950 (debug_verbose (const tree_node *)): New.
9951 (debug_head (const tree_node &)): New.
9952 (debug_head (const tree_node *)): New.
9953 (debug_body (const tree_node &)): New.
9954 (debug_body (const tree_node *)): New.
9955 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9956 (debug (vec<tree, va_gc> &)): New.
9957 (debug (vec<tree, va_gc> *)): New.
9959 (extern debug (const rtx_def &)): New.
9960 (extern debug (const rtx_def *)): New.
9962 (debug_raw (simple_bitmap_def &)): New.
9963 (debug_raw (simple_bitmap_def *)): New.
9964 (debug (simple_bitmap_def &)): New.
9965 (debug (simple_bitmap_def *)): New.
9967 (extern debug (simple_bitmap_def &)): New.
9968 (extern debug (simple_bitmap_def *)): New.
9969 (extern debug_raw (simple_bitmap_def &)): New.
9970 (extern debug_raw (simple_bitmap_def *)): New.
9972 (debug (vinsn_def &)): New.
9973 (debug (vinsn_def *)): New.
9974 (debug_verbose (vinsn_def &)): New.
9975 (debug_verbose (vinsn_def *)): New.
9976 (debug (expr_def &)): New.
9977 (debug (expr_def *)): New.
9978 (debug_verbose (expr_def &)): New.
9979 (debug_verbose (expr_def *)): New.
9980 (debug (vec<rtx> &)): New.
9981 (debug (vec<rtx> *)): New.
9983 (extern debug (vinsn_def &)): New.
9984 (extern debug (vinsn_def *)): New.
9985 (extern debug_verbose (vinsn_def &)): New.
9986 (extern debug_verbose (vinsn_def *)): New.
9987 (extern debug (expr_def &)): New.
9988 (extern debug (expr_def *)): New.
9989 (extern debug_verbose (expr_def &)): New.
9990 (extern debug_verbose (expr_def *)): New.
9991 (extern debug (vec<rtx> &)): New.
9992 (extern debug (vec<rtx> *)): New.
9994 (_list_iter_cond_expr): Make inline instead of static.
9996 (debug (sreal &)): New.
9997 (debug (sreal *)): New.
9999 (extern debug (sreal &)): New.
10000 (extern debug (sreal *)): New.
10002 (extern debug_raw (const tree_node &)): New.
10003 (extern debug_raw (const tree_node *)): New.
10004 (extern debug (const tree_node &)): New.
10005 (extern debug (const tree_node *)): New.
10006 (extern debug_verbose (const tree_node &)): New.
10007 (extern debug_verbose (const tree_node *)): New.
10008 (extern debug_head (const tree_node &)): New.
10009 (extern debug_head (const tree_node *)): New.
10010 (extern debug_body (const tree_node &)): New.
10011 (extern debug_body (const tree_node *)): New.
10012 (extern debug (vec<tree, va_gc> &)): New.
10013 (extern debug (vec<tree, va_gc> *)): New.
10015 (debug (struct loop &)): New.
10016 (debug (struct loop *)): New.
10017 (debug_verbose (struct loop &)): New.
10018 (debug_verbose (struct loop *)): New.
10019 * tree-dump.c: Add header dependence.
10021 (extern debug (struct loop &)): New.
10022 (extern debug (struct loop *)): New.
10023 (extern debug_verbose (struct loop &)): New.
10024 (extern debug_verbose (struct loop *)): New.
10026 (debug (data_reference &)): New.
10027 (debug (data_reference *)): New.
10028 (debug (vec<data_reference_p> &)): New.
10029 (debug (vec<data_reference_p> *)): New.
10030 (debug (vec<ddr_p> &)): New.
10031 (debug (vec<ddr_p> *)): New.
10033 (extern debug (data_reference &)): New.
10034 (extern debug (data_reference *)): New.
10035 (extern debug (vec<data_reference_p> &)): New.
10036 (extern debug (vec<data_reference_p> *)): New.
10037 (extern debug (vec<ddr_p> &)): New.
10038 (extern debug (vec<ddr_p> *)): New.
10040 (debug (pt_solution &)): New.
10041 (debug (pt_solution *)): New.
10043 (extern debug (pt_solution &)): New.
10044 (extern debug (pt_solution *)): New.
10046 (debug (_var_map &)): New.
10047 (debug (_var_map *)): New.
10048 (debug (tree_live_info_d &)): New.
10049 (debug (tree_live_info_d *)): New.
10051 (extern debug (_var_map &)): New.
10052 (extern debug (_var_map *)): New.
10053 (extern debug (tree_live_info_d &)): New.
10054 (extern debug (tree_live_info_d *)): New.
10056 2013-03-28 Jan Hubicka <jh@suse.cz>
10058 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
10060 2013-03-28 Ian Bolton <ian.bolton@arm.com>
10062 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
10063 record only when desired or required.
10065 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
10067 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
10068 *vec_extractv2di_1_rex64. Use x64 isa attribute.
10070 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10072 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
10073 (*andsi3_compare0_uxtw): New pattern.
10074 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
10075 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
10077 2013-03-28 Jan Hubicka <jh@suse.cz>
10079 * data-streamer-in.c (streamer_read_gcov_count): New function.
10080 * gimple-streamer-out.c: Include value-prof.h.
10081 (output_gimple_stmt): Output histogram.
10082 (output_bb): Use streamer_write_gcov_count.
10083 * value-prof.c: Include data-streamer.h
10084 (dump_histogram_value): Add HIST_TYPE_MAX.
10085 (stream_out_histogram_value): New function.
10086 (stream_in_histogram_value): New function.
10087 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
10088 (stream_out_histogram_value, stream_in_histogram_value): Declare.
10089 * data-streamer-out.c (streamer_write_gcov_count): New function.
10090 (streamer_write_gcov_count_stream): New function.
10091 * lto-cgraph.c (lto_output_edge): Update counter streaming.
10092 (lto_output_node): Likewise.
10093 (input_node, input_edge): Likewise.
10094 * lto-streamer-out.c (output_cfg): Update streaming.
10095 * lto-streamer-in.c (input_cfg): Likewise.
10096 * data-streamer.h (streamer_write_gcov_count,
10097 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
10098 * gimple-streamer-in.c: Include value-prof.h
10099 (input_gimple_stmt): Input histograms.
10100 (input_bb): Update profile streaming.
10102 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
10104 * genmodes.c (emit_max_int): New function.
10105 (emit_insn_modes_h): Added call to emit_max_function.
10106 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
10108 * machmode.def: Fixed comment.
10110 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
10112 * combine.c (try_combine): Removed useless assert.
10113 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
10115 2013-03-28 Marek Polacek <polacek@redhat.com>
10116 Richard Biener <rguenther@suse.de>
10118 PR tree-optimization/56695
10119 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
10120 build signed result of a vector comparison.
10121 * tree-cfg.c (verify_gimple_comparison): Check that a result
10122 of a vector comparison has signed type.
10124 2013-03-28 Richard Biener <rguenther@suse.de>
10126 PR tree-optimization/37021
10127 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
10128 do not restrict gaps between groups.
10129 * tree-vect-stmts.c (vectorizable_load): Properly account for
10130 a gap between groups.
10132 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
10134 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
10135 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
10138 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
10140 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
10141 * doc/extend.texi (Named Address Spaces): Ditto.
10142 (Variable Attributes): Ditto.
10144 2013-03-27 Kai Tietz <ktietz@redhat.com>
10146 * config.build: Add support for cygwin x64 target.
10147 * config.gcc: Likewise.
10148 * config.host: Likewise.
10149 * configure.ac: Likewise
10150 * configure: Regenerated.
10152 2013-03-27 Kai Tietz <ktietz@redhat.com>
10154 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
10155 * config/i386/t-cygwin-w64: New file.
10156 * config/i386/cygwin-w64.h: New file.
10157 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
10158 and add support for x64-cygwin target.
10159 (CPP_SPEC): Likewise.
10160 (CXX_WRAP_SPEC_LIST): Undefine before define.
10161 (LIBGCJ_SONAME): Use 15 as version.
10163 2013-03-27 Richard Biener <rguenther@suse.de>
10165 PR tree-optimization/56716
10166 * tree-ssa-structalias.c (perform_var_substitution): Adjust
10167 dumping for ref nodes.
10169 2013-03-27 Martin Jambor <mjambor@suse.cz>
10171 PR tree-optimization/55334
10172 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
10173 restricted pointers to arrays.
10175 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10177 * Makefile.in (.SUFFIXES): Add .cc.
10178 (.c.o): Apply same recipe for implicit rule .cc.o.
10180 2013-03-27 Richard Biener <rguenther@suse.de>
10182 PR tree-optimization/37021
10183 * tree-vect-data-refs.c (vect_check_strided_load): Allow
10184 REALPART/IMAGPART_EXPRs around the supported refs.
10185 * tree-ssa-structalias.c (find_func_aliases): Assume that
10186 floating-point values are not used to transfer pointers.
10188 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10190 * target.def (TARGET_HAS_IFUNC_P): New target hook.
10191 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
10192 * doc/tm.texi: Regenerate.
10193 * targhooks.h (default_has_ifunc_p): New.
10194 * targhooks.c (default_has_ifunc_p): Ditto.
10195 * config/linux-protos.h: New file.
10196 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
10197 this hook for linux which disables support of indirect functions in
10199 * config/linux-android.c: New file.
10200 * config/t-linux-android.c: Ditto.
10201 * config.gcc: Added new object file linux-android.o.
10202 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
10203 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
10204 * varasm.c (do_assemble_alias): Likewise.
10205 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
10206 doesn't support indirect functions.
10207 * configure: Regenerate.
10209 2013-03-27 Bin Cheng <bin.cheng@arm.com>
10212 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
10213 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
10216 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10218 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
10220 2013-03-27 Terry Guo <terry.guo@arm.com>
10222 * config/arm/arm-cores.def: Added core cortex-r7.
10223 * config/arm/arm-tune.md: Regenerated.
10224 * config/arm/arm-tables.opt: Regenerated.
10225 * doc/invoke.texi: Added entry for core cortex-r7.
10227 2013-03-27 Walter Lee <walt@tilera.com>
10229 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
10230 double-decrement of next_scratch_regno.
10232 2013-03-27 Walter Lee <walt@tilera.com>
10234 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
10236 (insn_v1mulus): Ditto.
10237 (insn_v2muls): Ditto.
10239 2013-03-27 Walter Lee <walt@tilera.com>
10241 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
10242 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
10244 2013-03-27 Walter Lee <walt@tilera.com>
10246 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
10247 (*sibcall_value): Ditto.
10249 2013-03-27 Walter Lee <walt@tilera.com>
10251 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
10252 (insn_mnz_v8qi): ... this ...
10253 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
10255 (insn_v<n>mnz): Replaced by ...
10256 (insn_v1mnz): ... this ...
10257 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
10259 (insn_mz_<mode>): Replaced by ...
10260 (insn_mz_v8qi): ... this ...
10261 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
10263 (insn_v<n>mz): Replaced by ...
10264 (insn_v1mz): ... this ...
10265 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
10268 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
10270 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
10272 2013-03-26 Roland McGrath <mcgrathr@google.com>
10274 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
10275 than fprintf with a non-constant, non-format string.
10277 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10279 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
10280 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
10281 operand 0 predicate.
10282 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
10283 attribute. Use general_x64nomem_operand as operand 1 predicate.
10284 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
10285 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10286 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
10287 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10288 (mov<mode>_insv_1): Remove expander. Merge insn with
10289 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
10290 Use general_x64nomem_operand as operand 1 predicate.
10291 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
10292 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
10293 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10294 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
10295 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
10296 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
10297 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10298 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
10299 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
10300 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
10301 (general_x64nomem_operand): Ditto.
10303 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
10305 * config/rtems.opt: Add -pthread option.
10307 2013-03-26 Richard Biener <rguenther@suse.de>
10309 * alias.c (find_base_term): Avoid redundant and not used recursion.
10310 (base_alias_check): Get the initial base term from the caller.
10311 (true_dependence_1): Compute and pass base terms to base_alias_check.
10312 (write_dependence_p): Likewise.
10313 (may_alias_p): Likewise.
10315 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
10317 * config/aarch64/aarch64.c (aarch64_classify_address): Support
10318 PC-relative load in SI modes and above only.
10320 2013-03-26 Xinyu Qi <xyqi@marvell.com>
10322 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
10323 * config/arm/iwmmxt.md (WCGR0): Update.
10324 (WCGR1, WCGR2, WCGR3): Likewise.
10326 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10328 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10329 Use x64 and nox64 isa attributes.
10331 2013-03-26 Richard Biener <rguenther@suse.de>
10333 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10334 alignment computations and rely on get_object_alignment_1
10335 for the !TYPE_P case.
10336 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10338 2013-03-26 Walter Lee <walt@tilera.com>
10340 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10341 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10343 2013-03-25 Jeff Law <law@redhat.com>
10345 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10346 check for INTEGRAL_TYPE_P that was missing due to checking in
10347 wrong version of prior patch.
10349 2013-03-25 Walter Lee <walt@tilera.com>
10351 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10352 TILEGX_INSN_SHUFFLEBYTES1.
10353 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10355 (tilegx_builtins): Ditto.
10356 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10358 2013-03-25 Walter Lee <walt@tilera.com>
10360 * config/tilegx/tilegx.md (floatsisf2): New pattern.
10361 (floatunssisf2): New pattern.
10362 (floatsidf2): New pattern.
10363 (floatunssidf2): New pattern.
10365 2013-03-25 Walter Lee <walt@tilera.com>
10367 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10368 tests for constraint J, K, N, P.
10370 2013-03-25 Walter Lee <walt@tilera.com>
10372 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10373 Use indirect/pcrel encoding.
10374 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10377 2013-03-25 Steve Ellcey <sellcey@mips.com>
10379 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10380 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10381 * config/mips/mips.c (mips_option_override): Set IMADD default.
10382 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10383 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10384 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10385 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10386 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10388 2013-03-25 Jeff Law <law@redhat.com>
10390 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10391 slightly to avoid creating and folding useless trees. Simplify
10392 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10394 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
10396 * config/i386/i386.md (*zero_extendsidi2): Merge with
10397 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10398 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10399 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10400 targets. Clarify comment.
10402 2013-03-25 Martin Jambor <mjambor@suse.cz>
10404 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10405 pass-through jump functions differently.
10406 (ipa_read_jump_function): Likewise. Also use setter functions to set
10409 2013-03-25 Martin Jambor <mjambor@suse.cz>
10411 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10412 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10414 (ipa_get_indirect_edge_target): New function.
10415 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10416 ipa_get_indirect_edge_target. Update all callers.
10417 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10418 ipa_get_indirect_edge_target_1 instead of calling
10419 ipa_get_indirect_edge_target.
10420 (create_specialized_node): Pass aggvlas to
10421 ipcp_discover_new_direct_edges.
10423 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10425 * config/arm/arm.md (f_sels, f_seld): New types.
10426 (*cmov<mode>): New pattern.
10427 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10430 2013-03-25 Kai Tietz <ktietz@redhat.com>
10432 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10433 POSIX-printf for mingw-hosted builds.
10435 2013-03-25 Richard Biener <rguenther@suse.de>
10437 PR middle-end/56694
10438 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10439 must-not-throw stmt location.
10441 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10443 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10444 Emit load-acquire versions when acq is true.
10445 (arm_emit_store_exclusive): Add rel parameter.
10446 Emit store-release versions when rel is true.
10447 (arm_split_compare_and_swap): Use acquire-release instructions
10449 of barriers when appropriate.
10450 (arm_split_atomic_op): Likewise.
10451 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10452 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10453 (VUNSPEC_SLX): Likewise.
10454 (VUNSPEC_LDA): Likewise.
10455 (VUNSPEC_STL): Likewise.
10456 * config/arm/sync.md (atomic_load<mode>): New pattern.
10457 (atomic_store<mode>): Likewise.
10458 (arm_load_acquire_exclusive<mode>): Likewise.
10459 (arm_load_acquire_exclusivesi): Likewise.
10460 (arm_load_acquire_exclusivedi): Likewise.
10461 (arm_store_release_exclusive<mode>): Likewise.
10463 2013-03-25 Catherine Moore <clm@codesourcery.com>
10465 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10466 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10467 * config/mip/predicates.md (lwsp_swsp_operand,
10468 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10469 sb16_operand, db4_operand, db7_operand, ib3_operand,
10470 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10471 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10472 andi16_operand): New predicates.
10473 * config/mips/mips.md (compression): New attribute.
10474 (enabled): New attribute.
10475 (length): Consider compression in computing length.
10476 (shift_compression): New code attribute.
10477 (*add<mode>3): New operands. Record compression.
10478 (sub<mode>3): Likewise.
10479 (one_cmpl<mode>2): Likewise.
10480 (*and<mode>3): Likewise.
10481 (*ior<mode>3): Likewise.
10482 (unnamed pattern for xor): Likewise.
10483 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10484 (*<optab><mode>3): Likewise.
10485 (*mov<mode>_internal: Likewise.
10486 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10487 (mips_unsigned_immediate_p): New.
10488 (umips_lwsp_swsp_address_p): New.
10489 (m16_based_address_p): New.
10490 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10491 (mips_unsigned_immediate_p): New prototype.
10492 (lwsp_swsp_address_p): New prototype.
10493 (m16_based_address_p): New prototype.
10494 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10495 (mips_signed_immediate_p): New function.
10496 (m16_based_address_p): New function.
10497 (lwsp_swsp_address_p): New function.
10498 (mips_print_operand_punctuation): Recognize short delay slot insns
10499 for microMIPS.add<mode>3"
10501 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10504 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10505 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10507 2013-03-25 Richard Biener <rguenther@suse.de>
10509 PR tree-optimization/56689
10510 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10513 2013-03-25 Richard Biener <rguenther@suse.de>
10515 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10517 (memory_references): Likewise.
10518 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10519 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10520 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10521 (gather_mem_refs_in_loops): Fold into ...
10522 (analyze_memory_references): ... this. Move initialization
10523 to tree_ssa_lim_initialize.
10524 (fill_always_executed_in): Rename to ...
10525 (fill_always_executed_in_1): ... this.
10526 (fill_always_executed_in): Move contains_call computation to
10527 this new function from ...
10528 (tree_ssa_lim_initialize): ... here.
10529 (tree_ssa_lim): Call fill_always_executed_in.
10531 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10533 * postreload.c (reload_combine): Fix code detecting returns.
10535 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10537 * function.c (emit_use_return_register_into_block): On cc0 targets,
10538 do not emit the sequence between cc0 setter and user.
10540 2013-03-25 Kai Tietz <ktietz@redhat.com>
10542 * config/i386/predicates.md (local_symbolic_operand): Interpret
10543 dll-imported symbols as none-local.
10545 2013-03-25 Richard Biener <rguenther@suse.de>
10547 * tree-ssa-loop-im.c (struct depend): Remove.
10548 (struct lim_aux_data): Make depends a vec of gimples.
10549 (free_lim_aux_data): Adjust.
10550 (add_dependency): Likewise.
10551 (set_level): Likewise.
10553 2013-03-25 Richard Biener <rguenther@suse.de>
10555 PR middle-end/56434
10556 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10557 the pointer returned by calls with ECF_MALLOC set.
10559 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10561 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10563 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10565 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
10566 using MMXMODE mode iterator.
10567 (*move<mode>_internal): Merge with *movv2sf_internal and
10568 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10570 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10572 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10573 (record_last_mem_set_info): Likewise.
10575 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10576 of XNEWVEC followed by memset.
10577 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10579 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10581 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10582 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10583 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10584 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10585 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10586 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10587 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10588 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10589 BARRIER_P instead of GET_CODE.
10591 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10593 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10594 inaccuracy in the probing code.
10596 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10597 (ctrapdi4): Likewise.
10599 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10601 * calls.c (expand_call): Add missing guard to code handling return
10602 of non-BLKmode structures in MSB.
10603 * function.c (expand_function_end): Likewise.
10605 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10607 * combine.c (try_combine): Adjust comment. Do not add the set of
10608 insn #0 if the destination indirectly is set or dies in insn #2.
10609 Tidy up code to distribute a new note.
10611 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10613 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10614 also for alternatives 16 and 17.
10616 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10618 * config/i386/sse.md (*mov<mode>_internal): Merge with
10619 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10620 Emit insn template depending on type attribute. Use
10621 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10622 movd instead of movq mnemonic for interunit moves. Rewrite mode
10623 attribute calculation. Remove unit attribute calculation.
10624 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10625 Set prefix_data16 attribute for DImode ssemov types.
10626 Use Ym instead of y for SSE-MMX conversion alternatives.
10627 Reorder operand constraints.
10629 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10631 * df.h (df_insn_delete): Adjust prototype.
10632 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10633 and let it decide whether mark the basic block dirty.
10634 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10635 * df-scan.c (df_insn_info_delete): New helper function, split
10636 off from df_insn_delete.
10637 (df_scan_free_bb_info): Use it.
10638 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10640 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10641 that the insn is actually an insn and it has a non-NULL basic block.
10642 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10644 2013-03-22 Richard Biener <rguenther@suse.de>
10646 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10648 (mem_ref_alloc): Do not allocate them.
10649 (refs_independent_p): Do not query or maintain a cache.
10651 2013-03-22 Richard Biener <rguenther@suse.de>
10653 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10654 (gather_mem_refs_in_loops): Do not compute it.
10655 (analyze_memory_references): Do not allocate it.
10656 (tree_ssa_lim_finalize): Do not free it.
10657 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10659 2013-03-22 Richard Biener <rguenther@suse.de>
10661 * is-a.h (as_a): Use gcc_checking_assert.
10663 2013-03-22 Ian Bolton <ian.bolton@arm.com>
10665 * config/aarch64/aarch64.c (aarch64_print_operand): New
10666 format specifier for printing a constant in hex.
10667 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10668 format specifier for printing second operand.
10670 2013-03-22 Richard Biener <rguenther@suse.de>
10672 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10674 (gather_mem_refs_in_loops): Perform store accumulation here.
10675 (create_vop_ref_mapping_loop): Remove.
10676 (create_vop_ref_mapping): Likewise.
10677 (analyze_memory_references): Initialize refs_stored_in_loop.
10678 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10679 (record_indep_loop): Remove.
10680 (record_dep_loop): New function.
10681 (ref_indep_loop_p_1): Adjust to only walk over references
10682 in the loop, not its subloops.
10683 (ref_indep_loop_p): Rename to ...
10684 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10685 maintaining a more fine-grained cache.
10686 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10687 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10689 2013-03-22 Richard Biener <rguenther@suse.de>
10691 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10692 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10693 aggregate mem_ref_loc.
10694 (free_mem_ref_locs): Inline into ...
10695 (memref_free): ... this and adjust.
10696 (mem_ref_alloc): Adjust.
10697 (mem_ref_locs_alloc): Remove.
10698 (record_mem_ref_loc): Adjust.
10699 (get_all_locs_in_loop): Rewrite into ...
10700 (for_all_locs_in_loop): ... this iterator.
10701 (rewrite_mem_ref_loc): New functor.
10702 (rewrite_mem_refs): Use for_all_locs_in_loop.
10703 (sm_set_flag_if_changed): New functor.
10704 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10705 (ref_always_accessed): New functor.
10706 (ref_always_accessed_p): Use for_all_locs_in_loop.
10708 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10710 * tree-pass.h (PROP_gimple_lvec): New.
10711 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10712 (init_optimization_passes): Move pass_lower_vector.
10713 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10715 (pass_lower_vector): Provide PROP_gimple_lvec.
10716 (pass_lower_vector_ssa): Likewise.
10717 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10719 2013-03-21 Mark Wielaard <mjw@redhat.com>
10721 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10723 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10725 * config/i386/i386.md (*movdi_internal): Disparage slightly
10726 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10727 conversion alternatives.
10729 2013-03-21 Jakub Jelinek <jakub@redhat.com>
10731 PR middle-end/48087
10732 * diagnostic.def (DK_WERROR): New kind.
10733 * diagnostic.h (werrorcount): Define.
10734 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10735 promoted to DK_ERROR, increment DK_WERROR counter instead of
10737 * toplev.c (toplev_main): Call print_ignored_options even if
10738 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10739 even if just werrorcount is non-zero.
10742 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10744 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10745 (string_cst_pool_decl): New function.
10746 (optimize_one_addr_into_implicit_ptr): New function.
10747 (resolve_addr_in_expr): Optimize DWARF location expression
10748 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10749 which doesn't live in memory, but has DW_AT_location or
10750 DW_AT_const_value, or refers to a string literal, into
10751 DW_OP_GNU_implicit_pointer.
10752 (optimize_location_into_implicit_ptr): New function.
10753 (resolve_addr): If removing DW_AT_location of a variable because
10754 it was DW_OP_addr of address of the variable, but the variable doesn't
10755 live in memory, try to emit const value attribute for the initializer.
10757 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10759 * tree.h (VECTOR_TYPE_P): New macro.
10760 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10761 TYPE_MODE): Use it.
10762 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10763 VEC_COND_EXPR cannot be lvalues.
10764 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10766 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10768 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10769 Restrict the transformation to equal modes.
10771 2013-03-21 Richard Biener <rguenther@suse.de>
10773 PR tree-optimization/39326
10774 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10775 (MEM_ANALYZABLE): Adjust.
10776 (record_mem_ref_loc): Move bitmap ops ...
10777 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10778 unanalyzable refs, do not record locations for it.
10779 (analyze_memory_references): Allocate ref zero as shared
10781 (refs_independent_p): Do not test for unanalyzed mems here.
10782 (ref_indep_loop_p_1): Special-case disambiguation against
10783 the unanalyzed ref.
10784 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10786 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10788 * config/arm/arm-protos.h (tune_params): Add
10789 prefer_neon_for_64bits field.
10790 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10791 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10792 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10793 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10794 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10795 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10796 (arm_option_override): Handle -mneon-for-64bits new option.
10797 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10798 (prefer_neon_for_64bits): Declare new variable.
10799 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10800 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10801 (arch_enabled): Handle new arch types. Remove support for onlya8
10803 (one_cmpldi2): Use new arch names.
10804 (zero_extend<mode>di2, extend<mode>di2): Ditto.
10805 * config/arm/arm.opt (mneon-for-64bits): Add option.
10806 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10807 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10808 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10810 * doc/invoke.texi (-mneon-for-64bits): Document.
10812 2013-03-21 Richard Biener <rguenther@suse.de>
10814 PR tree-optimization/39326
10815 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10816 (sort_bbs_in_loop_postorder_cmp): New function.
10817 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10819 2013-03-21 Richard Biener <rguenther@suse.de>
10821 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10822 (vect_insert_into_interleaving_chain): Likewise.
10823 (vect_drs_dependent_in_basic_block): Inline ...
10824 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10826 (vect_analyze_data_ref_dependence): ... here. Simplify.
10827 (vect_check_interleaving): Simplify.
10828 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10829 (vect_slp_analyze_data_ref_dependences): ... this new function.
10830 (dr_group_sort_cmp): New function.
10831 (vect_analyze_data_ref_accesses): Compute data-reference groups
10832 here instead of in vect_analyze_data_ref_dependence. Use
10833 a more efficient algorithm.
10834 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10835 vect_slp_analyze_data_ref_dependences. Call
10836 vect_analyze_data_ref_accesses earlier.
10837 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10838 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10839 (vect_slp_analyze_data_ref_dependences): New prototype.
10841 2013-03-21 Richard Biener <rguenther@suse.de>
10843 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10844 ref is stored in the loop.
10845 (find_refs_for_sm): Walk only over all stores.
10846 (store_motion_loop): Allocate from lim_bitmap_obstack.
10847 (store_motion): Likewise.
10849 2013-03-21 Richard Biener <rguenther@suse.de>
10851 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10852 Update virtual SSA form.
10854 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10856 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10857 * configure: Regenerate.
10858 * config.in: Regenerate.
10859 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10860 if !HAVE_LD_EH_FRAME_CIEV3.
10862 2013-03-21 Richard Biener <rguenther@suse.de>
10864 * tree-cfg.c (verify_expr_no_block): New function.
10865 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10866 nor DECL_VALUE_EXPR have locations with associated blocks.
10867 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10868 (clear_unused_block_pointer): Remove code dealing with
10869 blocks in DECL_DEBUG_EXPR locations.
10871 2013-03-21 Richard Biener <rguenther@suse.de>
10873 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10874 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10875 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10876 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10877 instead of DECL_DEBUG_EXPR_IS_FROM.
10878 * gimplify.c (gimplify_modify_expr): Likewise.
10879 * tree-cfg.c (verify_expr_location_1): Likewise.
10880 * tree-complex.c (create_one_component_var): Likewise.
10881 * tree-sra.c (create_access_replacement): Likewise.
10882 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10883 (clear_unused_block_pointer): Likewise.
10884 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10885 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10886 * var-tracking.c (var_debug_decl): Likewise.
10887 (track_expr_p): Likewise.
10888 * tree-inline.c (add_local_variables): Likewise. Set
10889 DECL_HAS_DEBUG_EXPR_P after copying it.
10890 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10891 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10893 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10896 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10897 * configure: Regenerate.
10898 * config.in: Regenerate.
10899 * config/i386/i386.md (*movdf_internal): Use
10900 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10901 movd instead of movq mnemonic for interunit moves.
10902 (*movdi_internal): Ditto.
10904 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10906 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10907 (abd<mode>_3): New pattern.
10908 (aba<mode>_3): New pattern.
10909 (fabd<mode>_3): New pattern.
10911 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10913 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10914 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10915 occurrence of REGISTER_PREFIX as its empty string.
10917 2013-03-20 Jeff Law <law@redhat.com>
10919 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10920 addititional equivalences for equality comparisons between an SSA_NAME
10921 and a constant where the SSA_NAME was set from a widening conversion.
10923 2013-03-20 Walter Lee <walt@tilera.com>
10925 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10927 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10929 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10930 depending on type attribute.
10931 (*movti_internal): Ditto.
10932 (*movtf_internal): Ditto.
10933 (*movxf_internal): Ditto.
10934 (*movdf_internal): Ditto.
10935 (*movsf_internal): Ditto.
10937 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10939 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10940 maybe_vex for sselog1 and ssemov types.
10941 (*movdi_internal): Reorder operand constraints.
10942 (*movsi_internal): Ditto. Set prefix attribute to
10943 maybe_vex for sselog1 and ssemov types.
10944 (*movtf_internal): Set prefix attribute to maybe_vex
10945 for sselog1 and ssemov types.
10946 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10947 DImode ssemov types. Reorder operand constraints.
10948 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10949 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10950 attribute for SImode ssemov types. Reorder operand constraints.
10952 2013-03-20 Martin Jambor <mjambor@suse.cz>
10954 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10955 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10957 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10959 * config/rs6000/predicates.md (indexed_address, update_address_mem
10960 update_indexed_address_mem): New predicates.
10961 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10962 attribute for load/store instructions.
10963 * config/rs6000/dfp.md (movsd_store): Likewise.
10964 (movsd_load): Likewise.
10965 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10966 (unnamed HI->DI extend define_insn): Likewise.
10967 (unnamed SI->DI extend define_insn): Likewise.
10968 (unnamed QI->SI extend define_insn): Likewise.
10969 (unnamed QI->HI extend define_insn): Likewise.
10970 (unnamed HI->SI extend define_insn): Likewise.
10971 (unnamed HI->SI extend define_insn): Likewise.
10972 (extendsfdf2_fpr): Likewise.
10973 (movsi_internal1): Likewise.
10974 (movsi_internal1_single): Likewise.
10975 (movhi_internal): Likewise.
10976 (movqi_internal): Likewise.
10977 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10978 attribute for load/store instructions.
10979 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10981 (mov<mode>_softfloat): Likewise.
10982 (mov<mode>_hardfloat32): Likewise.
10983 (mov<mode>_hardfloat64): Likewise.
10984 (mov<mode>_softfloat64): Likewise.
10985 (movdi_internal32): Likewise.
10986 (movdi_internal64): Likewise.
10987 (probe_stack_<mode>): Likewise.
10989 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10991 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10992 floating point, and decimal floating point to reload iterator.
10994 * config/rs6000/constraints.md (wl constraint): New constraints to
10995 return FLOAT_REGS if certain options are used to reduce the number
10996 of separate patterns that exist in the file.
10997 (wx constraint): Likewise.
10998 (wz constraint): Likewise.
11000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
11001 -mdebug=reg, print wg, wl, wx, and wz constraints.
11002 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
11003 Initialize the reload functions for 64-bit binary/decimal floating
11005 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
11006 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
11007 create the buffer on the stack to overcome not having a 32-bit
11009 (rs6000_emit_move): Likewise.
11010 (rs6000_secondary_memory_needed_rtx): Likewise.
11011 (rs6000_alloc_sdmode_stack_slot): Likewise.
11012 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
11013 via xxlxor, just like DFmode 0.0.
11015 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
11016 define as 1 if we are running on a power7 or newer.
11017 (enum r6000_reg_class_enum): Add new constraints.
11019 * config/rs6000/dfp.md (movsd): Delete, combine with binary
11020 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
11021 with other moves by using conditional constraits (wg). Use LFIWZX
11022 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
11023 (movsd splitter): Likewise.
11024 (movsd_hardfloat): Likewise.
11025 (movsd_softfloat): Likewise.
11027 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
11028 binary and decimal floating point moves.
11029 (fmove_ok): New attributes to combine binary and decimal floating
11030 point moves, and to combine power6x (mfpgpr) moves along normal
11032 (real_value_to_target): Likewise.
11033 (f32_lr): Likewise.
11034 (f32_lm): Likewise.
11035 (f32_li): Likewise.
11036 (f32_sr): Likewise.
11037 (f32_sm): Likewise.
11038 (f32_si): Likewise.
11039 (movsf): Combine binary and decimal floating point moves. Combine
11040 power6x (mfpgpr) moves with other moves by using conditional
11041 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
11042 (mov<mode> for SFmode/SDmode); Likewise.
11043 (SFmode/SDmode splitters): Likewise.
11044 (movsf_hardfloat): Likewise.
11045 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
11046 (movsf_softfloat): Likewise.
11047 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
11049 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
11050 wx and wz constraints.
11052 * config/rs6000/constraints.md (wg constraint): New constraint to
11053 return FLOAT_REGS if -mmfpgpr (power6x) was used.
11055 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
11058 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
11059 -mdebug=reg, print wg, wl, wx, and wz constraints.
11060 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
11061 Initialize the reload functions for 64-bit binary/decimal floating
11063 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
11064 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
11065 create the buffer on the stack to overcome not having a 32-bit
11067 (rs6000_emit_move): Likewise.
11068 (rs6000_secondary_memory_needed_rtx): Likewise.
11069 (rs6000_alloc_sdmode_stack_slot): Likewise.
11070 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
11071 via xxlxor, just like DFmode 0.0.
11073 * config/rs6000/dfp.md (movdd): Delete, combine with binary
11074 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
11075 with other moves by using conditional constraits (wg). Use LFIWZX
11076 and STFIWX for loading SDmode on power7.
11077 (movdd splitters): Likewise.
11078 (movdd_hardfloat32): Likewise.
11079 (movdd_softfloat32): Likewise.
11080 (movdd_hardfloat64_mfpgpr): Likewise.
11081 (movdd_hardfloat64): Likewise.
11082 (movdd_softfloat64): Likewise.
11084 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
11085 64-bit binary and decimal floating point moves.
11086 (FMOVE64X): Likewise.
11087 (movdf): Combine 64-bit binary and decimal floating point moves.
11088 Combine power6x (mfpgpr) moves with other moves by using
11089 conditional constraits (wg).
11090 (mov<mode> for DFmode/DDmode): Likewise.
11091 (DFmode/DDmode splitters): Likewise.
11092 (movdf_hardfloat32): Likewise.
11093 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
11094 (movdf_softfloat32): Likewise.
11095 (movdf_hardfloat64_mfpgpr): Likewise.
11096 (movdf_hardfloat64): Likewise.
11097 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
11098 (movdf_softfloat64): Likewise.
11099 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
11100 (reload_<mode>_load): Move to later in the file so they aren't in
11101 the middle of the floating point move insns.
11102 (reload_<mode>_store): Likewise.
11104 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
11107 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
11108 constraint if -mdebug=reg.
11109 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
11110 Enable using dd reload support if needed.
11112 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
11113 binary and decimal floating point moves in rs6000.md.
11114 (movtd_internal): Likewise.
11116 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
11117 decimal floating point moves.
11119 (movtf_internal): Likewise.
11120 (mov<mode>_internal, TDmode/TFmode): Likewise.
11121 (movtf_softfloat): Likewise.
11122 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
11124 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
11125 movdi_internal64, using wg constraint for move direct operations.
11126 (movdi_internal64): Likewise.
11128 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
11129 MODES_TIEABLE_P for selected modes. Print the numerical value of
11130 the various virtual registers. Use GPR/FPR first/last values,
11131 instead of hard coding the register numbers. Print which modes
11132 have reload functions registered.
11133 (rs6000_option_override_internal): If -mdebug=reg, trace the options
11134 settings before/after setting cpu, target and subtarget settings.
11135 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
11136 and for secondary reload failures in rs6000_secondary_reload_inner.
11137 (rs6000_secondary_reload_fail): Likewise.
11138 (rs6000_secondary_reload_inner): Likewise.
11140 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
11141 macros for first/last GPR and FPR registers.
11142 (LAST_GPR_REGNO): Likewise.
11143 (FIRST_FPR_REGNO): Likewise.
11144 (LAST_FPR_REGNO): Likewise.
11146 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
11147 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
11148 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
11149 (vcond<mode><mode>): Likewise.
11150 (vcondu<mode><mode>): Likewise.
11151 (vector_gtu<mode>): Likewise.
11152 (vector_gte<mode>): Likewise.
11153 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
11154 to prevent the compiler from converting DImode operations to TImode.
11155 (ior<mode>3): Likewise.
11156 (and<mode>3): Likewise.
11157 (one_cmpl<mode>2): Likewise.
11158 (nor<mode>3): Likewise.
11159 (andc<mode>3): Likewise.
11161 * config/rs6000/constraints.md (wt constraint): New constraint
11162 that returns VSX_REGS if TImode is allowed in VSX registers.
11164 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
11165 constant under VSX.
11167 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
11168 similar to TImode, but it is restricted to being in the GPRs.
11170 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
11171 TImode to occupy a single VSX register.
11173 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
11174 -mvsx-timode for power7/power8.
11175 (power7 cpu): Likewise.
11176 (power8 cpu): Likewise.
11178 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
11179 sure that TFmode/TDmode take up two registers if they are ever
11180 allowed in the upper VSX registers.
11181 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
11183 (rs6000_init_hard_regno_mode_ok): Likewise.
11184 (rs6000_debug_reg_global): Add debugging for PTImode and wt
11185 constraint. Print if LRA is turned on.
11186 (rs6000_option_override_internal): Give an error if -mvsx-timode
11187 and VSX is not enabled.
11188 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
11189 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
11190 to reg+offset addressing. Use PTImode when checking offset
11191 addresses for validity.
11192 (reg_offset_addressing_ok_p): Likewise.
11193 (rs6000_legitimate_offset_address_p): Likewise.
11194 (rs6000_legitimize_address): Likewise.
11195 (rs6000_legitimize_reload_address): Likewise.
11196 (rs6000_legitimate_address_p): Likewise.
11197 (rs6000_eliminate_indexed_memrefs): Likewise.
11198 (rs6000_emit_move): Likewise.
11199 (rs6000_secondary_reload): Likewise.
11200 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
11201 reloads to fpr registers to continue to use reg+offset addressing,
11202 but 64-bit reloads to altivec registers need reg+reg addressing.
11203 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
11204 it. Treat LO_SUM like a PLUS operation.
11205 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
11206 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
11207 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
11208 registers to share a register with a smaller sized type, since VSX
11209 puts scalars in the upper 64-bits.
11210 (print_operand): Add support for PTImode.
11211 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
11212 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
11213 registers, but don't have arithmetic support.
11214 (rs6000_memory_move_cost): Add test for VSX.
11215 (rs6000_opt_masks): Add -mvsx-timode.
11217 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
11220 (VSr): Use wt constraint for TImode.
11221 (VSv): Drop TImode support.
11222 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
11223 (vsx_movti_64bit): Likewise.
11224 (vsx_movti_32bit): Likewise.
11225 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
11226 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
11227 one '?' on the appropriate output constraint. Do not allow TImode
11228 logical operations on 32-bit systems.
11229 (vsx_ior<mode>3): Likewise.
11230 (vsx_xor<mode>3): Likewise.
11231 (vsx_one_cmpl<mode>2): Likewise.
11232 (vsx_nor<mode>3): Likewise.
11233 (vsx_andc<mode>3): Likewise.
11234 (vsx_concat_<mode>): Likewise.
11235 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
11237 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
11238 OPTION_MASK_VSX_TIMODE.
11239 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
11240 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
11242 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
11243 (TI2 iterator): New iterator for TImode, PTImode.
11244 (wd mode attribute): Add values for vector types.
11245 (movti_string): Replace TI move operations with operations for TImode
11246 and PTImode. Add support for TImode being allowed in VSX registers.
11247 (mov<mode>_string, TImode/PTImode): Likewise.
11248 (movti_ppc64): Likewise.
11249 (mov<mode>_ppc64, TImode/PTImode): Likewise.
11250 (TI mode splitters): Likewise.
11252 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
11255 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
11257 PR tree-optimization/56355
11258 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
11259 Also handle integers with undefined overflow.
11261 2013-03-20 Catherine Moore <clm@codesourcery.com>
11262 Maciej W. Rozycki <macro@codesourcery.com>
11263 Tom de Vries <tom@codesourcery.com>
11264 Nathan Sidwell <nathan@codesourcery.com>
11265 Iain Sandoe <iain@codesourcery.com>
11266 Nathan Froyd <froydnj@codesourcery.com>
11267 Chao-ying Fu <fu@mips.com>
11269 * doc/extend.texi: (micromips, nomicromips, nocompression):
11270 Document new function attributes.
11271 * doc/invoke.texi (minterlink-compressed, mmicromips,
11272 m14k, m14ke, m14kec): Document new options.
11273 (minterlink-mips16): Update documentation.
11274 * doc/md.texi (ZC, ZD): Document new constraints.
11275 * configure.ac (gcc_cv_as_micromips): Check if linker
11276 supports the .set micromips directive.
11277 * configure: Regenerate.
11278 * config.in: Regenerate.
11279 * config/mips/mips-tables.opt: Regenerate.
11280 * config/mips/micromips.md: New file.
11281 * constraints.md (ZC, ZD): New constraints.
11282 * config/mips/predicates.md (movep_src_register): New predicate.
11283 (movep_src_operand): New predicate.
11284 (non_volatile_mem_operand): New predicate.
11285 * config/mips/mips.md (multimem): New type.
11286 (length): Differentiate between 17-bit and 18-bit branch offsets.
11287 (MOVEP1, MOVEP2): New mode iterator.
11288 (mov_<load>l): Use ZC constraint.
11289 (mov_<load>r): Likewise.
11290 (mov_<store>l): Likewise.
11291 (mov_<store>r): Likewise.
11292 (*branch_equality<mode>_inverted): Add microMIPS support.
11293 (*branch_equality<mode>): Likewise.
11294 (*jump_absolute): Likewise.
11295 (indirect_jump_<mode>): Likewise.
11296 (tablejump_<mode>): Likewise.
11297 (<optab>_internal): Likewise.
11298 (sibcall_internal): Likewise.
11299 (sibcall_value_internal): Likewise.
11300 (prefetch): Use constraint ZD.
11301 * config/mips/mips.opt (minterlink-compressed): New option.
11302 (minterlink-mips16): Now an alias for minterlink-compressed.
11303 (mmicromips): New option.
11304 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11305 (compare_and_swap_12): Likewise.
11306 (sync_add<mode>): Likewise.
11307 (sync_<optab>_12): Likewise.
11308 (sync_old_<optab>_12): Likewise.
11309 (sync_new_<optab>_12): Likewise.
11310 (sync_nand_12): Likewise.
11311 (sync_old_nand_12): Likewise.
11312 (sync_new_nand_12): Likewise.
11313 (sync_sub<mode>): Likewise.
11314 (sync_old_add<mode>): Likewise.
11315 (sync_old_sub<mode>): Likewise.
11316 (sync_new_add<mode>): Likewise.
11317 (sync_new_sub<mode>): Likewise.
11318 (sync_<optab><mode>): Likewise.
11319 (sync_old_<optab><mode>): Likewise.
11320 (sync_new_<optab><mode>): Likewise.
11321 (sync_nand<mode>): Likewise.
11322 (sync_old_nand<mode>): Likewise.
11323 (sync_new_nand<mode>): Likewise.
11324 (sync_lock_test_and_set<mode>): Likewise.
11325 (test_and_set_12): Likewise.
11326 (atomic_compare_and_swap<mode>): Likewise.
11327 (atomic_exchange<mode>_llsc): Likewise.
11328 (atomic_fetch_add<mode>_llsc): Likewise.
11329 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11330 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11331 (umips_save_restore_pattern_p): Likewise.
11332 (umips_load_store_pair_p): Likewise.
11333 (umips_output_load_store_pair): Likewise.
11334 (umips_movep_target_p): Likewise.
11335 (umips_12bit_offset_address_p): Likewise.
11336 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11337 (mips_base_mips16): Rename this...
11338 (mips_base_compression_flags): ...to this. Update all uses.
11339 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11340 (mips_mips16_decl_p): Delete.
11341 (mips_nomips16_decl_p): Delete.
11342 (mips_get_compress_on_flags): New function.
11343 (mips_get_compress_off_flags): New function.
11344 (mips_get_compress_mode): New function.
11345 (mips_get_compress_on_name): New function.
11346 (mips_get_compress_off_name): New function.
11347 (mips_insert_attributes): Support multiple compression types.
11348 (mips_merge_decl_attributes): Likewise.
11349 (umips_12bit_offset_address_p): New function.
11350 (mips_start_function_definition): Emit .set micromips directive.
11351 (mips_call_may_need_jalx_p): New function.
11352 (mips_function_ok_for_sibcall): Add microMIPS support.
11353 (mips_print_operand_punctuation): Support short delay slots and
11355 (umips_swm_mask, umips_swm_encoding): New.
11356 (umips_build_save_restore): New function.
11357 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11358 (was_mips16_p): Remove.
11359 (old_compression_mode): New.
11360 (mips_set_compression_mode): New function.
11361 (mips_set_current_function): Add microMIPS support.
11362 (mips_option_override): Likewise.
11363 (umips_save_restore_pattern_p): New function.
11364 (umips_output_save_restore): New function.
11365 (umips_load_store_pair_p_1): New function.
11366 (umips_load_store_pair_p): New function.
11367 (umips_output_load_store_pair_1): New function.
11368 (umips_output_load_store_pair): New function.
11369 (umips_movep_target_p) New function.
11370 (mips_prepare_pch_save): Add microMIPS support.
11371 * config/mips/mips.h (TARGET_COMPRESSION): New.
11372 (TARGET_CPU_CPP_BUILTINS): Update macro
11373 to use new compression flags and to support microMIPS.
11374 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11375 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11376 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11377 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11378 (ASM_SPEC): Support mmicromips and mno-micromips.
11379 (M16STORE_REG_P): New macro.
11380 (MIPS_CALL): Support TARGET_MICROMIPS.
11381 (MICROMIPS_J): New macro.
11382 (mips_base_mips16): Rename this...
11383 (mips_base_compression_flags): ...to this.
11384 (UMIPS_12BIT_OFFSET_P): New macro.
11385 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11386 (MULTILIB_DIRNAMES): Likewise.
11387 2013-03-20 Richard Biener <rguenther@suse.de>
11389 PR tree-optimization/56661
11390 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11391 the result does not have to be distinct.
11393 2013-03-20 Richard Biener <rguenther@suse.de>
11395 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11398 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11399 Steven Bosscher <steven@gcc.gnu.org>
11401 PR rtl-optimization/56605
11402 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11404 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
11407 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11408 that require movd instead of movq.
11410 2013-03-20 Richard Biener <rguenther@suse.de>
11412 * tree-ssa-structalias.c (struct variable_info): Add pointer
11413 to the first field of an aggregate with sub-vars. Make
11414 this and the pointer to the next subfield its ID.
11415 (vi_next): New function.
11416 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11417 storedanything_id, integer_id): Increment by one.
11418 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11419 get_call_clobber_vi): Adjust.
11420 (solution_set_expand): Simplify and speedup.
11421 (solution_set_add): Inline into ...
11422 (set_union_with_increment): ... this. Adjust accordingly.
11423 (do_sd_constraint): Likewise.
11424 (do_ds_constraint): Likewise.
11425 (do_complex_constraint): Simplify.
11426 (build_pred_graph): Adjust.
11427 (solve_graph): Likewise. Simplify and speedup.
11428 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11429 get_constraint_for_component_ref, get_constraint_for_1,
11430 first_vi_for_offset, first_or_preceding_vi_for_offset,
11431 create_function_info_for, create_variable_info_for_1,
11432 create_variable_info_for, intra_create_variable_infos): Adjust.
11433 (init_base_vars): Push NULL for ID zero.
11434 (compute_points_to_sets): Adjust.
11436 2013-03-20 Richard Biener <rguenther@suse.de>
11438 * cfgloop.c (verify_loop_structure): Streamline and avoid
11439 ICEing on corrupt loop tree.
11440 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11443 2013-03-20 Richard Biener <rguenther@suse.de>
11445 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11446 check whether an SSA update is needed.
11448 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11450 * config/mips/constraints.md (T): Rename to...
11454 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11455 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11457 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11459 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11460 (*subsi3_carryin_uxtw): Likewise.
11462 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11464 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11465 (*rorsi3_insn_uxtw): Likewise.
11467 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11469 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11470 (*extrsi5_insn_uxtw): Likewise.
11472 2013-03-19 Richard Biener <rguenther@suse.de>
11474 PR tree-optimization/56273
11475 * passes.c (init_optimization_passes): Move second VRP after DOM.
11477 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
11479 * config/i386/i386.md (*movti_internal): Merge from
11480 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11481 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11482 nox64 isa attributes.
11484 2013-03-18 Richard Biener <rguenther@suse.de>
11486 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11488 (merge_node_constraints): Likewise.
11489 (build_succ_graph): Likewise.
11490 (valid_graph_edge): Inline into single caller.
11491 (unify_nodes): Likewise. Use bitmap_set_bit return value
11493 (scc_visit): Fix formatting and variable use.
11494 (do_sd_constraint): Use gcc_checking_assert.
11495 (do_ds_constraint): Likewise.
11496 (do_complex_constraint): Likewise.
11497 (condense_visit): Likewise. Cleanup.
11498 (dump_pred_graph): New function.
11499 (perform_var_substitution): Dump the pred-graph before
11500 variable substitution.
11501 (find_equivalent_node): Use gcc_checking_assert.
11502 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11504 2013-03-18 Richard Biener <rguenther@suse.de>
11506 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11507 Remove cond_expr_stmt_list argument and do not gimplify the
11509 (vect_loop_versioning): Adjust.
11510 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11511 Cleanup to use less temporaries.
11512 (vect_create_data_ref_ptr): Cleanup.
11514 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11516 PR tree-optimization/56635
11517 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11518 require types_compatible_p types.
11520 2013-03-18 Nick Clifton <nickc@redhat.com>
11522 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11523 spurious backslash.
11525 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11526 Add missing line to comment describing function.
11528 2013-03-18 Richard Biener <rguenther@suse.de>
11530 PR tree-optimization/56210
11531 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11532 Handle string / character search functions.
11533 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11535 2013-03-18 Richard Biener <rguenther@suse.de>
11537 PR middle-end/56483
11538 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11539 and implement properly.
11540 * gimple.h (gimple_cond_single_var_p): Remove.
11542 2013-03-18 Richard Biener <rguenther@suse.de>
11544 * tree-data-ref.h (find_data_references_in_loop): Declare.
11545 * tree-data-ref.c (get_references_in_stmt): Use a stack
11546 vector pre-allocated in the callers.
11547 (find_data_references_in_stmt): Adjust.
11548 (graphite_find_data_references_in_stmt): Likewise.
11549 (create_rdg_vertices): Likewise.
11550 (find_data_references_in_loop): Export.
11551 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11552 Compute dependences here...
11553 (vect_analyze_data_refs): ...not here. When we encounter
11554 a non-vectorizable data reference in basic-block vectorization
11555 truncate the data reference vector. Do not bother to
11556 fixup data-dependence information for gather loads.
11557 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11558 of data references, as reported.
11560 2013-03-18 Richard Biener <rguenther@suse.de>
11562 PR tree-optimization/3713
11563 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11564 has_constants and expr.
11565 (stmt_has_constants): Properly valueize SSA names when deciding
11566 whether the stmt has constants.
11568 2013-03-18 Richard Biener <rguenther@suse.de>
11570 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11571 whole function when there is nothing to do.
11572 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11573 * tree-vectorizer.c (vectorize_loops): Update virtual and
11574 loop-closed SSA once.
11575 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11577 2013-03-18 Richard Biener <rguenther@suse.de>
11579 PR middle-end/56113
11580 * domwalk.c (bb_postorder): New global static.
11581 (cmp_bb_postorder): New function.
11582 (walk_dominator_tree): Replace scheme imposing an order for
11583 visiting dominator sons by one sorting them at the time they
11584 are pushed on the stack.
11586 2013-03-18 Richard Biener <rguenther@suse.de>
11588 PR tree-optimization/39326
11589 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11590 (struct mem_ref): Replace mem member with ao_ref typed member.
11591 (MEM_ANALYZABLE): Adjust.
11592 (memref_eq): Likewise.
11593 (mem_ref_alloc): Likewise.
11594 (gather_mem_refs_stmt): Likewise.
11595 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11596 (execute_sm_if_changed_flag_set): Adjust.
11597 (execute_sm): Likewise.
11598 (ref_always_accessed_p): Likewise.
11599 (refs_independent_p): Likewise.
11600 (can_sm_ref_p): Likewise.
11602 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11605 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11606 return 1 even for !unsignedp.
11608 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11610 * config/i386/i386.md (isa): Add x64 and nox64.
11611 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11612 (*pushtf): Enable *roF alternative for x64 isa only.
11613 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11614 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11615 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11616 (*movtf_internal): Merge from *movtf_internal_rex64 and
11617 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11618 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11619 nox64 isa attributes.
11620 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11621 nox64 isa attributes.
11622 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11624 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11626 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11628 2013-03-17 Jakub Jelinek <jakub@redhat.com>
11631 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11632 class names. Remove trailing comma after "ALL_REGS".
11634 2013-03-16 Jan Hubicka <jh@suse.cz>
11636 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11637 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11638 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11639 of cgraph_get_create_node.
11640 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11642 2013-03-16 Jason Merrill <jason@redhat.com>
11645 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11646 with DW_AT_default_value.
11648 2013-03-16 Jakub Jelinek <jakub@redhat.com>
11650 * BASE-VER: Set to 4.9.0.
11652 2013-03-14 Andi Kleen <ak@linux.intel.com>
11655 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11656 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11657 Document _x* TSX intrinsics.
11659 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11660 David Holsgrove <david.holsgrove@xilinx.com>
11662 * configure.ac: Add MicroBlaze TLS support detection.
11663 * configure: Regenerate.
11664 * config/microblaze/microblaze-protos.h
11665 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11666 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11667 * config/microblaze/microblaze.c (microblaze_address_type): Add
11668 ADDRESS_TLS and tls_reloc address types.
11669 (microblaze_address_info): Add tls_reloc.
11670 (TARGET_HAVE_TLS): Define.
11671 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11672 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11673 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11674 load_tls_operand, microblaze_call_tls_get_addr,
11675 microblaze_legitimize_tls_address): New functions.
11676 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11677 (get_base_reg): Use microblaze_tls_symbol_p.
11678 (microblaze_classify_address): Handle TLS.
11679 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11680 label_mentioned_p and microblaze_tls_referenced_p.
11681 (microblaze_legitimize_address): Handle TLS.
11682 (microblaze_address_insns): Handle ADDRESS_TLS.
11683 (pic_address_needs_scratch): Handle TLS.
11684 (print_operand_address): Handle TLS.
11685 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11686 (microblaze_expand_move): Handle TLS.
11687 (microblaze_legitimate_constant_p): Check
11688 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11689 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11690 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11691 (PIC_OFFSET_TABLE_REGNUM): Set.
11692 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11693 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11694 (addsi3, movsi_internal2, movdf_internal): Update constraints
11695 * config/microblaze/predicates.md (arith_plus_operand): Define
11696 (move_operand): Redefine as move_src_operand,
11697 check microblaze_tls_referenced_p.
11699 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11701 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11702 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11704 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11706 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11709 2013-03-14 Jakub Jelinek <jakub@redhat.com>
11711 PR tree-optimization/53265
11712 * common.opt (Waggressive-loop-optimizations): New option.
11713 * tree-ssa-loop-niter.c: Include tree-pass.h.
11714 (do_warn_aggressive_loop_optimizations): New function.
11715 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11716 if number_of_latch_executions returned constant.
11717 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11718 early. If number_of_latch_executions returned constant, set
11719 nb_iterations_upper_bound back to it.
11720 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11722 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11723 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11725 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11726 (MULTILIB_OSDIRNAMES): Set.
11727 * genmultilib: If defaultosdirname doesn't start with :: , set
11728 defaultosdirname2 instead, clear it and emit two . multilib_raw
11729 entries instead of just one.
11731 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11733 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11734 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11735 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11736 (SUBTARGET_OVERRIDE_OPTIONS): New.
11738 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11741 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11742 (musermode): Convert to Var(TARGET_USERMODE).
11743 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11744 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11745 * config/sh/sh.c (sh_option_override): Use
11746 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11747 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11749 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11751 (udivsi3_i4_single, divsi3_i4_single): Use
11752 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11754 2013-03-13 Dave Korn <dave.korn.cygwin@....>
11756 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11759 2013-03-13 Richard Biener <rguenther@suse.de>
11761 PR tree-optimization/56608
11762 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11763 calls when vectorizing basic-blocks.
11765 2013-03-13 Jakub Jelinek <jakub@redhat.com>
11768 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11771 2013-03-12 Jakub Jelinek <jakub@redhat.com>
11773 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11775 2013-03-11 Jan Hubicka <jh@suse.cz>
11778 * lto-streamer-out.c (output_symbol_p): Skip references from
11779 constructors of external variables.
11781 2013-03-11 Jan Hubicka <jh@suse.cz>
11783 PR middle-end/56571
11784 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11786 * emit-rtl.c (verify_rtx_sharing): Likewise.
11787 (copy_insn_1): Likewise.
11788 * rtl.c (copy_rtx): Likewise.
11790 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
11793 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11794 output_operand_lossage message.
11796 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
11799 * arm.c (shift_op): Validate RTL pattern on the fly.
11800 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11803 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11806 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11807 new call patterns that clobber %fr12.
11808 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11809 split and postreload patterns.
11810 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11811 registers %fr12 and %fr12R as call used.
11813 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11815 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11816 (canon_address, record_store, replace_read, check_mem_read_rtx,
11817 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11818 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11819 rest_of_handle_dse): Likewise.
11821 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11823 PR middle-end/56524
11824 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11826 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11827 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11828 (save_optabs_if_changed): Replace with...
11829 (init_tree_optimization_optabs): ...this.
11830 * optabs.c (save_optabs_if_changed): Rename to...
11831 (init_tree_optimization_optabs): ...this. Take the optimization node
11832 as argument. Do nothing if the base optabs are already correct.
11833 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11834 to recompute optabs.
11835 * function.h (function): Remove optabs field.
11836 * function.c (invoke_set_current_function_hook): Call
11837 init_tree_optimization_optabs. Use the result to initialize
11840 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
11842 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11843 if GTMA_HAS_NO_INSTRUMENTATION.
11844 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11845 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11846 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11847 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11848 GTMA_HAS_NO_INSTRUMENTATION.
11850 2013-03-08 Jakub Jelinek <jakub@redhat.com>
11852 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11855 2013-03-08 Marek Polacek <polacek@redhat.com>
11856 Jakub Jelinek <jakub@redhat.com>
11858 PR tree-optimization/56478
11859 * predict.c (is_comparison_with_loop_invariant_p): Change the
11860 type of loop_step to tree.
11861 (predict_loops): Adjust.
11862 (predict_iv_comparison): Perform the computations on double_ints.
11864 2013-03-08 Richard Biener <rguenther@suse.de>
11866 PR tree-optimization/56570
11867 * tree-cfg.c (verify_expr_location_1): Verify locations for
11869 * tree-sra.c (create_access_replacement): Strip locations
11870 from DECL_DEBUG_EXPRs.
11872 2013-03-08 Richard Biener <rguenther@suse.de>
11874 * tree-inline.c (expand_call_inline): Do not associate
11875 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11876 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11878 2013-03-08 Richard Biener <rguenther@suse.de>
11880 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11881 or block changes with -Og. Fix for location / block encoding
11882 changes and PHI arguments with locations.
11884 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11886 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11888 (struct output_info): Likewise.
11889 (register_overhead): Remove bad gcc_assert.
11890 (bitmap_find_bit): If there is only a single bitmap element, do not
11891 count a miss as a search.
11892 (print_statistics): Update for counter type changes.
11893 (dump_bitmap_statistics): Likewise. Print headers such that they
11894 are properly lined up with the printed counters.
11896 2013-03-07 Jakub Jelinek <jakub@redhat.com>
11898 PR tree-optimization/56559
11899 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11900 check that it has only a single use.
11902 2013-03-07 Richard Biener <rguenther@suse.de>
11904 * doc/invoke.texi (fwhole-program): Discourage use in combination
11907 2013-03-06 Jakub Jelinek <jakub@redhat.com>
11909 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11911 PR tree-optimization/56539
11912 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11913 instead of GSI_CONTINUE_LINKING as last argument to
11914 force_gimple_operand_gsi. Adjust function comment.
11916 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11919 PR middle-end/56548
11920 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11921 promoted mode, convert the result back to the original mode.
11923 2013-03-06 Richard Biener <rguenther@suse.de>
11925 PR middle-end/56294
11926 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11927 (insert_updated_phi_nodes_compare_uids): New function.
11928 (update_ssa): Sort symbols_to_rename after UID before
11929 traversing it to insert PHI nodes.
11931 2013-03-06 Richard Biener <rguenther@suse.de>
11933 PR middle-end/50494
11934 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11935 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11938 2013-02-13 Richard Biener <rguenther@suse.de>
11941 * varasm.c (output_constant_def_1): Get the decl representing
11942 the constant as argument.
11943 (output_constant_def): Wrap output_constant_def_1.
11944 (make_decl_rtl): Use output_constant_def_1 with the decl
11945 representing the constant.
11946 (build_constant_desc): Optionally re-use a decl already
11947 representing the constant.
11948 (tree_output_constant_def): Adjust.
11950 2013-03-06 Joey Ye <joey.ye@arm.com>
11953 * gcc.c (convert_white_space): New function.
11954 (main): Handles white space in function name.
11956 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11959 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11960 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11961 to SH_DIV_CALL_TABLE for TARGET_SH2.
11962 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11964 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11965 call-table options.
11967 2013-03-05 Sterling Augustine <saugustine@google.com>
11968 Cary Coutant <ccoutant@google.com>
11971 * dwarf2out.c (resolve_addr): Don't call
11972 remove_loc_list_addr_table_entries a second time for the same
11975 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11978 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11979 (avoid_complex_debug_insns): New function.
11980 (expand_debug_locations): Call it.
11982 PR rtl-optimization/56484
11983 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11984 lifetimes of hard registers on small register class machines.
11986 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11988 * config/microblaze/microblaze-protos.h: Rename
11989 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11990 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11992 (microblaze_fast_interrupt_function_p): New function.
11993 (microblaze_is_interrupt_handler): Rename to
11994 microblaze_is_interrupt_variant and add fast_interrupt check.
11995 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11996 (save_restore_insns): Likewise.
11997 (compute_frame_size): Likewise.
11998 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11999 (microblaze_globalize_label): Likewise.
12000 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
12001 * config/microblaze/microblaze.md: Use wrapper
12002 microblaze_is_interrupt_variant.
12004 2013-03-05 Kai Tietz <ktietz@redhat.com>
12006 * sdbout.c (sdbout_one_type): Switch to current function's section
12007 supporting cold/hot.
12009 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
12011 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
12014 2013-03-05 Jakub Jelinek <jakub@redhat.com>
12016 PR middle-end/56461
12017 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
12018 if VALGRIND_GET_VBITS is defined, temporarily make object
12019 memory all defined, and restore previous valgrind addressability
12020 and definability afterwards. Free this_object at the end.
12022 PR middle-end/56461
12023 * lra.c (lra): Call lra_clear_live_ranges if live_p,
12024 right before calling lra_create_live_ranges, also call it
12025 when clearing live_p. Only call lra_clear_live_ranges
12026 at the end if live_p.
12028 PR middle-end/56461
12029 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
12031 2013-03-05 Richard Biener <rguenther@suse.de>
12033 PR tree-optimization/56521
12034 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
12037 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
12040 * except.h (remove_unreachable_eh_regions): New prototype.
12041 * except.c (remove_eh_handler_splicer): New function, split out
12042 of remove_eh_handler.
12043 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
12044 warning about running it on many EH regions one at a time.
12045 (remove_unreachable_eh_regions_worker): New function, walk the
12046 EH tree in depth-first order and remove non-marked regions.
12047 (remove_unreachable_eh_regions): New function.
12048 * tree-eh.c (mark_reachable_handlers): New function, split out
12049 from remove_unreachable_handlers.
12050 (remove_unreachable_handlers): Use mark_reachable_handlers and
12051 remove_unreachable_eh_regions.
12052 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
12053 and remove_unreachable_eh_regions.
12055 2013-03-05 Richard Biener <rguenther@suse.de>
12057 PR middle-end/56525
12058 * loop-init.c (fix_loop_structure): Remove loops in two stages,
12059 not freeing them until the end.
12061 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12063 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
12065 2013-03-05 Richard Biener <rguenther@suse.de>
12067 PR tree-optimization/56270
12068 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
12069 of loads after scheduling an SLP instance.
12071 2013-03-05 Jakub Jelinek <jakub@redhat.com>
12073 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
12075 (check_gcc_parallelize): Run guality.exp as a separate job from
12076 vect.exp with unsorted.exp and $(dg_target_exps) separately from
12077 struct-layout-1.exp with stackalign.exp.
12079 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
12081 PR middle-end/56461
12082 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
12083 load_index sbitmap even if some bit in it isn't set.
12085 PR middle-end/56461
12086 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
12087 (discover_iteration_bound_by_body_walk): Change queues to
12088 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
12089 spelling in comment. Call safe_push on queues[bound_index] directly.
12090 Release queues[queue_index] in every iteration unconditionally.
12091 Release bounds vector.
12093 PR middle-end/56461
12094 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
12095 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
12096 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
12099 2013-03-05 Richard Biener <rguenther@suse.de>
12102 * tree-inline.c (remap_blocks_to_null): New function.
12103 (expand_call_inline): When expanding a call stmt without
12104 an associated block inline remap all callee blocks to NULL.
12106 2013-03-05 Jakub Jelinek <jakub@redhat.com>
12108 PR rtl-optimization/56494
12109 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
12110 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
12111 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
12113 PR middle-end/56461
12114 * sel-sched-ir.c (free_sched_pools): Release
12115 succs_info_pool.stack[succs_info_pool.max_top] vectors too
12116 if succs_info_pool.max_top isn't -1.
12119 * opts.c (opts_obstack, opts_concat): Moved to...
12120 * opts-common.c (opts_obstack, opts_concat): ... here.
12122 2013-03-04 Jakub Jelinek <jakub@redhat.com>
12124 PR middle-end/56461
12125 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
12127 2013-03-04 Martin Jambor <mjambor@suse.cz>
12129 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
12130 all appropriate places.
12132 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
12134 PR tree-optimization/56424
12135 * ipa-split.c (split_function): Do not set the RSO flag if result is
12136 not by reference and its type is a register type.
12138 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
12140 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
12141 (microblaze_legitimate_pic_operand): Likewise
12142 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
12143 new function microblaze_legitimate_pic_operand
12144 * config/microblaze/microblaze-protos.h
12145 (microblaze_legitimate_pic_operand): Declare.
12147 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12149 * config/microblaze/predicates.md (call_insn_simple_operand):
12150 New predicate for supported rtx code types.
12151 * config/microblaze/microblaze.md (call_internal1): Use
12152 call_insn_simple_operand predicate.
12154 2013-03-04 Jakub Jelinek <jakub@redhat.com>
12156 PR middle-end/56461
12157 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
12158 partitions.ordered_remove.
12160 PR middle-end/56461
12161 * tree-vect-stmts.c (vectorizable_conversion): Don't call
12162 vec_oprnds0.create (1) for modifier == NONE.
12164 PR middle-end/56461
12165 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
12166 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
12167 vec_oprnds1 right before pushing anything to it for
12170 PR middle-end/56461
12171 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
12172 set nbbs to 0 instead of having separate code path.
12173 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
12174 instead of false as last argument if returning NULL.
12176 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
12178 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
12179 the attribute is now called "target" instead of "option".
12180 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
12181 * doc/tm.texi.in (Target Attributes): Likewise document the correct
12182 attribute/pragma name for TARGET_OPTION_VALID_P and
12183 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
12184 * doc/tm.texi: Regenerated.
12186 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
12188 * config/microblaze/microblaze.c:
12189 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
12190 * config/microblaze/microblaze.h: Add -mxl-reorder to
12192 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
12193 instructions emitted if TARGET_REORDER.
12194 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
12195 or 0 for -m/-mno case, but initialises as 2 to detect default use case
12198 2013-03-01 Xinliang David Li <davidxl@google.com>
12200 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
12203 2013-03-01 Jakub Jelinek <jakub@redhat.com>
12205 PR middle-end/56461
12206 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
12207 vector even when returning true. Fix up function comment formatting.
12209 PR middle-end/56461
12210 * ira-build.c (ira_loop_nodes_count): New variable.
12211 (create_loop_tree_nodes): Initialize it.
12212 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
12214 PR middle-end/56461
12215 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
12216 method on dr_chain and result_chain.
12217 * tree-vect-stmts.c (vectorizable_store): Only call
12218 result_chain.create if j == 0.
12220 PR middle-end/56461
12221 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
12222 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
12223 before overwriting it.
12225 2013-03-01 Tobias Burnus <burnus@net-b.de>
12227 * doc/extended.texi (C Extensions): Change order in @menu
12229 (Other MIPS Built-in Functions): Move last MIPS entry before
12230 "picoChip Built-in Functions".
12231 (SH Built-in Functions): Move after RX Built-in Functions.
12232 * doc/gcc.texi (Introduction): Change order in @menu
12234 * doc/md.texi (Constraints): Ditto.
12235 * gty.texi (Type Information): Ditto.
12236 (User-provided marking routines for template types): Make
12238 * doc/invoke.texi (AArch64 Options): Move before
12239 "Adapteva Epiphany Options".
12241 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
12242 Jakub Jelinek <jakub@redhat.com>
12245 * asan.c (gate_asan): Lookup no_sanitize_address instead of
12246 no_address_safety_analysis attribute.
12247 * doc/extend.texi (no_address_safety_attribute): Rename to
12248 no_sanitize_address attribute, mention no_address_safety_analysis
12249 attribute as deprecated alias.
12251 2013-02-28 Jakub Jelinek <jakub@redhat.com>
12253 PR middle-end/56461
12254 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
12255 type to vec<vec<tree> > *.
12256 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
12257 to be vec<tree> instead of vec<tree> *, set vec_defs
12258 to vNULL and call vec_defs.create (number_of_vects), adjust other
12260 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
12261 vectorizable_condition): Adjust vect_get_slp_defs callers.
12263 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12265 * config/aarch64/aarch64.c
12266 (aarch64_float_const_representable): Remove unused variable.
12268 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12270 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
12272 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12274 * config/aarch64/aarch64-builtins.c
12275 (aarch64_init_simd_builtins): Make static.
12277 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12279 * config/aarch64/aarch64.c
12280 (aarch64_simd_make_constant): Make static.
12282 2013-02-28 Martin Jambor <mjambor@suse.cz>
12284 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
12285 with no initialization to the RHS of debug statements.
12287 2013-02-28 Martin Jambor <mjambor@suse.cz>
12289 PR tree-optimization/56294
12290 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
12292 (get_access_replacement): Do not call create_access_replacement.
12293 Assert a replacement exists.
12294 (get_repl_default_def_ssa_name): Create the replacement declaration
12297 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12299 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
12300 final_end_function.
12302 2013-02-28 Marek Polacek <polacek@redhat.com>
12304 PR rtl-optimization/56466
12305 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
12306 if we're changing a loop.
12307 (peel_loops_completely): Likewise.
12309 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12312 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
12314 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12317 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
12318 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
12319 INTX_FTYPE_FX, FX_FTYPE_INTX.
12320 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
12322 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12324 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12325 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12326 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12327 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12328 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12329 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12330 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12331 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12332 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12333 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12334 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12335 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12336 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12337 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12338 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12339 (avrxmega6): Increase max flash segments from 5 to 6.
12340 * config/avr/t-multilib: Regenerate.
12341 * config/avr/avr-tables.opt: Regenerate.
12342 * doc/avr-mmcu.texi: Regenerate.
12344 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12346 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12347 (avr_device_to_arch): Rename to avr_device_to_ld.
12348 (avr_device_to_as): New prototype.
12349 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12350 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12351 * config/avr/driver-avr.c (avr_device_to_as): New.
12352 (avr_device_to_arch): Rename to avr_device_to_ld.
12354 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12356 PR middle-end/56461
12357 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12358 method on dr_chain and result_chain.
12360 PR middle-end/56461
12361 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12362 pointer_set_destroy on not_executed_last_iteration.
12364 PR middle-end/56461
12365 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
12367 PR middle-end/56461
12368 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12369 FOR_EACH_DEFINED_FUNCTION when freeing state.
12371 PR middle-end/56461
12372 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12374 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12377 PR middle-end/56461
12378 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12379 known_aggs[i].items and release known_aggs vector.
12381 PR middle-end/56461
12382 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12384 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12386 * config/microblaze/microblaze.c (microblaze_emit_compare):
12387 Use xor for EQ/NE comparisions.
12388 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12389 (cbranchsf4): Adjust operator to comparison_operator.
12391 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12393 PR middle-end/56461
12394 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12396 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12397 vec_safe_push, always update *slot.
12398 (redirect_edge_var_map_clear): Use vec_free.
12399 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12400 (free_var_map_entry): Use vec_free.
12401 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12402 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12404 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
12406 PR middle-end/45472
12407 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12408 when the may_trap_p bit of the exprs being merged differs.
12409 Reorder tests for speculativeness in the logical and operator.
12411 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12413 * incpath.c (add_standard_paths): Use reconcat instead of concat
12414 where appropriate and avoid leaking memory.
12416 * opts.h: Include obstack.h.
12417 (opts_concat): New prototype.
12418 (opts_obstack): New declaration.
12419 * opts.c (opts_concat): New function.
12420 (opts_obstack): New variable.
12421 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12422 (finish_options): Use opts_concat instead of concat
12423 and XOBNEWVEC instead of XNEWVEC.
12424 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12425 generate_option): Likewise.
12426 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12427 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12430 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12431 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12433 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12435 PR middle-end/56461
12436 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12438 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12440 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12441 (arm_block_move_unaligned_straight): Likewise.
12442 (arm_adjust_block_mem): Likewise.
12444 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12447 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12448 temp, cond and label.
12449 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12452 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12453 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12456 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12457 of prologue/epilogue functions.
12460 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12461 Remove unused variable cfa_offset.
12462 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12465 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12466 type promotion to unsigned.
12469 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12470 for HOST_WIDE_INT of 32 bit / same size as int.
12471 (arm_block_move_unaligned_straight): Likewise.
12472 (arm_adjust_block_mem): Likewise.
12475 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12478 2013-02-26 Marek Polacek <polacek@redhat.com>
12480 PR tree-optimization/56426
12481 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
12483 2013-02-26 Richard Biener <rguenther@suse.de>
12486 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12487 unused variable loops.
12489 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12491 PR tree-optimization/56448
12492 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12493 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12494 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12495 later operands of the references, or even first operand for
12496 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12498 PR tree-optimization/56443
12499 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12500 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12501 to type_for_mode langhook.
12503 2013-02-25 Matt Turner <mattst88@gmail.com>
12505 * doc/invoke.texi: Document r4700.
12507 2013-02-25 Richard Biener <rguenther@suse.de>
12509 PR tree-optimization/56175
12510 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12512 (simplify_bitwise_binary): ... here. Also guard the conversion
12513 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12515 2013-02-25 Catherine Moore <clm@codesourcery.com>
12518 2013-02-24 Catherine Moore <clm@codesourcery.com>
12519 Maciej W. Rozycki <macro@codesourcery.com>
12520 Tom de Vries <tom@codesourcery.com>
12521 Nathan Sidwell <nathan@codesourcery.com>
12522 Iain Sandoe <iain@codesourcery.com>
12523 Nathan Froyd <froydnj@codesourcery.com>
12524 Chao-ying Fu <fu@mips.com>
12526 * doc/extend.texi: (micromips, nomicromips, nocompression):
12527 Document new function attributes.
12528 * doc/invoke.texi (minterlink-compressed, mmicromips,
12529 m14k, m14ke, m14kec): Document new options.
12530 (minterlink-mips16): Update documentation.
12531 * doc/md.texi (ZC, ZD): Document new constraints.
12532 * configure.ac (gcc_cv_as_micromips): Check if linker
12533 supports the .set micromips directive.
12534 * configure: Regenerate.
12535 * config.in: Regenerate.
12536 * config/mips/mips-tables.opt: Regenerate.
12537 * config/mips/micromips.md: New file.
12538 * constraints.md (ZC, AD): New constraints.
12539 * config/mips/predicates.md (movep_src_register): New predicate.
12540 (movep_src_operand): New predicate.
12541 (non_volatile_mem_operand): New predicate.
12542 * config/mips/mips.md (multimem): New type.
12543 (length): Differentiate between 17-bit and 18-bit branch offsets.
12544 (MOVEP1, MOVEP2): New mode iterator.
12545 (mov_<load>l): Use ZC constraint.
12546 (mov_<load>r): Likewise.
12547 (mov_<store>l): Likewise.
12548 (mov_<store>r): Likewise.
12549 (*branch_equality<mode>_inverted): Add microMIPS support.
12550 (*branch_equality<mode>): Likewise.
12551 (*jump_absolute): Likewise.
12552 (indirect_jump_<mode>): Likewise.
12553 (tablejump_<mode>): Likewise.
12554 (<optab>_internal): Likewise.
12555 (sibcall_internal): Likewise.
12556 (sibcall_value_internal): Likewise.
12557 (prefetch): Use constraint ZD.
12558 * config/mips/mips.opt (minterlink-compressed): New option.
12559 (minterlink-mips16): Now an alias for minterlink-compressed.
12560 (mmicromips): New option.
12561 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12562 (compare_and_swap_12): Likewise.
12563 (sync_add<mode>): Likewise.
12564 (sync_<optab>_12): Likewise.
12565 (sync_old_<optab>_12): Likewise.
12566 (sync_new_<optab>_12): Likewise.
12567 (sync_nand_12): Likewise.
12568 (sync_old_nand_12): Likewise.
12569 (sync_new_nand_12): Likewise.
12570 (sync_sub<mode>): Likewise.
12571 (sync_old_add<mode>): Likewise.
12572 (sync_old_sub<mode>): Likewise.
12573 (sync_new_add<mode>): Likewise.
12574 (sync_new_sub<mode>): Likewise.
12575 (sync_<optab><mode>): Likewise.
12576 (sync_old_<optab><mode>): Likewise.
12577 (sync_new_<optab><mode>): Likewise.
12578 (sync_nand<mode>): Likewise.
12579 (sync_old_nand<mode>): Likewise.
12580 (sync_new_nand<mode>): Likewise.
12581 (sync_lock_test_and_set<mode>): Likewise.
12582 (test_and_set_12): Likewise.
12583 (atomic_compare_and_swap<mode>): Likewise.
12584 (atomic_exchange<mode>_llsc): Likewise.
12585 (atomic_fetch_add<mode>_llsc): Likewise.
12586 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12587 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12588 (umips_save_restore_pattern_p): Likewise.
12589 (umips_load_store_pair_p): Likewise.
12590 (umips_output_load_store_pair): Likewise.
12591 (umips_movep_target_p): Likewise.
12592 (umips_12bit_offset_address_p): Likewise.
12593 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12594 (mips_base_mips16): Rename this...
12595 (mips_base_compression_flags): ...to this. Update all uses.
12596 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12597 (mips_mips16_decl_p): Delete.
12598 (mips_nomips16_decl_p): Delete.
12599 (mips_get_compress_on_flags): New function.
12600 (mips_get_compress_off_flags): New function.
12601 (mips_get_compress_mode): New function.
12602 (mips_get_compress_on_name): New function.
12603 (mips_get_compress_off_name): New function.
12604 (mips_insert_attributes): Support multiple compression types.
12605 (mips_merge_decl_attributes): Likewise.
12606 (umips_12bit_offset_address_p): New function.
12607 (mips_start_function_definition): Emit .set micromips directive.
12608 (mips_call_may_need_jalx_p): New function.
12609 (mips_function_ok_for_sibcall): Add microMIPS support.
12610 (mips_print_operand_punctuation): Support short delay slots and
12612 (umips_swm_mask, umips_swm_encoding): New.
12613 (umips_build_save_restore): New function.
12614 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12615 (was_mips16_p): Remove.
12616 (old_compression_mode): New.
12617 (mips_set_compression_mode): New function.
12618 (mips_set_current_function): Add microMIPS support.
12619 (mips_option_override): Likewise.
12620 (umips_save_restore_pattern_p): New function.
12621 (umips_output_save_restore): New function.
12622 (umips_load_store_pair_p_1): New function.
12623 (umips_load_store_pair_p): New function.
12624 (umips_output_load_store_pair_1): New function.
12625 (umips_output_load_store_pair): New function.
12626 (umips_movep_target_p) New function.
12627 (mips_prepare_pch_save): Add microMIPS support.
12628 * config/mips/mips.h (TARGET_COMPRESSION): New.
12629 (TARGET_CPU_CPP_BUILTINS): Update macro
12630 to use new compression flags and to support microMIPS.
12631 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12632 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12633 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12634 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12635 (ASM_SPEC): Support mmicromips and mno-micromips.
12636 (M16STORE_REG_P): New macro.
12637 (MIPS_CALL): Support TARGET_MICROMIPS.
12638 (MICROMIPS_J): New macro.
12639 (mips_base_mips16): Rename this...
12640 (mips_base_compression_flags): ...to this.
12641 (UMIPS_12BIT_OFFSET_P): New macro.
12642 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12643 (MULTILIB_DIRNAMES): Likewise.
12645 2013-02-25 Tom de Vries <tom@codesourcery.com>
12647 PR rtl-optimization/56131
12648 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12649 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12650 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12652 2013-02-25 Tobias Burnus <burnus@net-b.de>
12654 * doc/invoke.texi (-fsanitize=): Move from optimization
12655 to debugging options.
12657 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12659 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12661 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12662 Alexander Monakov <amonakov@ispras.ru>
12664 PR middle-end/56077
12665 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12666 flush pending lists also on non-jumps. Adjust comment.
12668 2013-02-24 Catherine Moore <clm@codesourcery.com>
12669 Maciej W. Rozycki <macro@codesourcery.com>
12670 Tom de Vries <tom@codesourcery.com>
12671 Nathan Sidwell <nathan@codesourcery.com>
12672 Iain Sandoe <iain@codesourcery.com>
12673 Nathan Froyd <froydnj@codesourcery.com>
12674 Chao-ying Fu <fu@mips.com>
12676 * doc/extend.texi: (micromips, nomicromips, nocompression):
12677 Document new function attributes.
12678 * doc/invoke.texi (minterlink-compressed, mmicromips,
12679 m14k, m14ke, m14kec): Document new options.
12680 (minterlink-mips16): Update documentation.
12681 * doc/md.texi (ZC, ZD): Document new constraints.
12682 * configure.ac (gcc_cv_as_micromips): Check if linker
12683 supports the .set micromips directive.
12684 * configure: Regenerate.
12685 * config.in: Regenerate.
12686 * config/mips/mips-tables.opt: Regenerate.
12687 * config/mips/micromips.md: New file.
12688 * constraints.md (ZC, AD): New constraints.
12689 * config/mips/predicates.md (movep_src_register): New predicate.
12690 (movep_src_operand): New predicate.
12691 (non_volatile_mem_operand): New predicate.
12692 * config/mips/mips.md (multimem): New type.
12693 (length): Differentiate between 17-bit and 18-bit branch offsets.
12694 (MOVEP1, MOVEP2): New mode iterator.
12695 (mov_<load>l): Use ZC constraint.
12696 (mov_<load>r): Likewise.
12697 (mov_<store>l): Likewise.
12698 (mov_<store>r): Likewise.
12699 (*branch_equality<mode>_inverted): Add microMIPS support.
12700 (*branch_equality<mode>): Likewise.
12701 (*jump_absolute): Likewise.
12702 (indirect_jump_<mode>): Likewise.
12703 (tablejump_<mode>): Likewise.
12704 (<optab>_internal): Likewise.
12705 (sibcall_internal): Likewise.
12706 (sibcall_value_internal): Likewise.
12707 (prefetch): Use constraint ZD.
12708 * config/mips/mips.opt (minterlink-compressed): New option.
12709 (minterlink-mips16): Now an alias for minterlink-compressed.
12710 (mmicromips): New option.
12711 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12712 (compare_and_swap_12): Likewise.
12713 (sync_add<mode>): Likewise.
12714 (sync_<optab>_12): Likewise.
12715 (sync_old_<optab>_12): Likewise.
12716 (sync_new_<optab>_12): Likewise.
12717 (sync_nand_12): Likewise.
12718 (sync_old_nand_12): Likewise.
12719 (sync_new_nand_12): Likewise.
12720 (sync_sub<mode>): Likewise.
12721 (sync_old_add<mode>): Likewise.
12722 (sync_old_sub<mode>): Likewise.
12723 (sync_new_add<mode>): Likewise.
12724 (sync_new_sub<mode>): Likewise.
12725 (sync_<optab><mode>): Likewise.
12726 (sync_old_<optab><mode>): Likewise.
12727 (sync_new_<optab><mode>): Likewise.
12728 (sync_nand<mode>): Likewise.
12729 (sync_old_nand<mode>): Likewise.
12730 (sync_new_nand<mode>): Likewise.
12731 (sync_lock_test_and_set<mode>): Likewise.
12732 (test_and_set_12): Likewise.
12733 (atomic_compare_and_swap<mode>): Likewise.
12734 (atomic_exchange<mode>_llsc): Likewise.
12735 (atomic_fetch_add<mode>_llsc): Likewise.
12736 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12737 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12738 (umips_save_restore_pattern_p): Likewise.
12739 (umips_load_store_pair_p): Likewise.
12740 (umips_output_load_store_pair): Likewise.
12741 (umips_movep_target_p): Likewise.
12742 (umips_12bit_offset_address_p): Likewise.
12743 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12744 (mips_base_mips16): Rename this...
12745 (mips_base_compression_flags): ...to this. Update all uses.
12746 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12747 (mips_mips16_decl_p): Delete.
12748 (mips_nomips16_decl_p): Delete.
12749 (mips_get_compress_on_flags): New function.
12750 (mips_get_compress_off_flags): New function.
12751 (mips_get_compress_mode): New function.
12752 (mips_get_compress_on_name): New function.
12753 (mips_get_compress_off_name): New function.
12754 (mips_insert_attributes): Support multiple compression types.
12755 (mips_merge_decl_attributes): Likewise.
12756 (umips_12bit_offset_address_p): New function.
12757 (mips_start_function_definition): Emit .set micromips directive.
12758 (mips_call_may_need_jalx_p): New function.
12759 (mips_function_ok_for_sibcall): Add microMIPS support.
12760 (mips_print_operand_punctuation): Support short delay slots and
12762 (umips_swm_mask, umips_swm_encoding): New.
12763 (umips_build_save_restore): New function.
12764 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12765 (was_mips16_p): Remove.
12766 (old_compression_mode): New.
12767 (mips_set_compression_mode): New function.
12768 (mips_set_current_function): Add microMIPS support.
12769 (mips_option_override): Likewise.
12770 (umips_save_restore_pattern_p): New function.
12771 (umips_output_save_restore): New function.
12772 (umips_load_store_pair_p_1): New function.
12773 (umips_load_store_pair_p): New function.
12774 (umips_output_load_store_pair_1): New function.
12775 (umips_output_load_store_pair): New function.
12776 (umips_movep_target_p) New function.
12777 (mips_prepare_pch_save): Add microMIPS support.
12778 * config/mips/mips.h (TARGET_COMPRESSION): New.
12779 (TARGET_CPU_CPP_BUILTINS): Update macro
12780 to use new compression flags and to support microMIPS.
12781 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12782 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12783 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12784 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12785 (ASM_SPEC): Support mmicromips and mno-micromips.
12786 (M16STORE_REG_P): New macro.
12787 (MIPS_CALL): Support TARGET_MICROMIPS.
12788 (MICROMIPS_J): New macro.
12789 (mips_base_mips16): Rename this...
12790 (mips_base_compression_flags): ...to this.
12791 (UMIPS_12BIT_OFFSET_P): New macro.
12792 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12793 (MULTILIB_DIRNAMES): Likewise.
12795 2013-02-24 Jakub Jelinek <jakub@redhat.com>
12798 * target-globals.c (save_target_globals): For init_reg_sets and
12799 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12801 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12803 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12804 * config/aarch64/t-aarch64
12805 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12807 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12809 PR inline-asm/56148
12810 * lra-constraints.c (process_alt_operands): Reload operand
12811 conflicting with earlier clobber only if no more other conflicting
12814 2013-02-22 Jakub Jelinek <jakub@redhat.com>
12817 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12818 if not linking a shared library.
12820 2013-02-22 Seth LaForge <sethml@google.com>
12822 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12824 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12826 * config/arm/arm.md (split for extendsidi): Update condition.
12827 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12828 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12829 (qhs_zextenddi_cstr): Likewise.
12831 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12833 PR middle-end/56420
12834 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12835 avoid signed wrapping.
12836 (expand_mult): Handle properly multiplication by
12837 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12838 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12839 in the compiler if coeff is HOST_WIDE_INT_MIN.
12840 (expand_divmod): Don't make ext_op1 static, change it's type to
12841 uhwi. Avoid undefined behavior in -INTVAL (op1).
12843 PR rtl-optimization/50339
12844 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12846 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12847 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12848 into splitting_ashiftrt field.
12849 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12851 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12854 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
12856 PR middle-end/56108
12857 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12858 are sure to go irrevocable.
12860 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
12862 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12863 scalars are valid operands.
12865 2013-02-21 Martin Jambor <mjambor@suse.cz>
12867 PR tree-optimization/56310
12868 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12869 only matching indices and non-negative final offsets.
12870 (intersect_aggregates_with_edge): Pass src_idx to
12871 agg_replacements_to_vector. Pass src_idx insstead of index to
12872 intersect_with_agg_replacements.
12874 2013-02-21 Martin Jambor <mjambor@suse.cz>
12876 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12877 instead of hard-wired defaults.
12879 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12881 * doc/invoke.texi (MIPS Options): Update documentation of the
12882 floating-point multiply-accumulate instruction restrictions.
12884 2013-02-21 Kostya Serebryany <kcc@google.com>
12886 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12887 asan_shadow_offset on x86_64 linux.
12889 2013-02-21 Richard Biener <rguenther@suse.de>
12891 PR tree-optimization/56415
12893 2013-02-11 Richard Biener <rguenther@suse.de>
12895 PR tree-optimization/56273
12896 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12899 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12902 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12905 PR inline-asm/56405
12906 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12907 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12909 2013-02-20 Jan Hubicka <jh@suse.cz>
12911 PR tree-optimization/56265
12912 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12913 when target is referenced for first time.
12915 2013-02-20 Richard Biener <rguenther@suse.de>
12917 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12918 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12919 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12920 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12921 not return anything.
12922 (rename_ssa_copies): Do not remove unused locals.
12923 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12924 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12925 * passes.c (execute_function_todo): Do not schedule unused locals
12926 removal if cleanup_tree_cfg did something.
12927 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12928 about the number of removed locals.
12930 2013-02-20 Richard Biener <rguenther@suse.de>
12932 PR tree-optimization/56398
12933 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12935 2013-02-20 Martin Jambor <mjambor@suse.cz>
12937 PR tree-optimization/55334
12938 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12939 restricted pointers to arrays.
12941 2013-02-20 Richard Biener <rguenther@suse.de>
12942 Jakub Jelinek <jakub@redhat.com>
12944 PR tree-optimization/56396
12945 * tree-ssa-ccp.c (n_const_val): New static variable.
12946 (get_value): Return NULL for SSA names we don't have a lattice
12948 (ccp_initialize): Initialize n_const_val.
12949 * tree-ssa-copy.c (n_copy_of): New static variable.
12950 (init_copy_prop): Initialize n_copy_of.
12951 (get_value): Return NULL_TREE for SSA names we don't have a
12954 2013-02-20 Martin Jambor <mjambor@suse.cz>
12956 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12958 2013-02-20 Richard Biener <rguenther@suse.de>
12960 * genpreds.c (write_lookup_constraint): Do not compare first
12961 letter of the constraint again.
12963 2013-02-20 Richard Biener <rguenther@suse.de>
12965 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12967 (get_use_iv_cost): Terminate hashtable walk when coming across
12970 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12972 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12973 reassociation for avx2 targets.
12975 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12977 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12978 Add version check for v8.10.a to enable microblaze_has_clz
12979 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12980 version and TARGET_PATTERN_COMPARE check
12981 * config/microblaze/microblaze.md: New clzsi2 instruction
12983 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12985 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12986 function before branching.
12988 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12990 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12992 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12994 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12996 PR middle-end/55889
12997 * sel-sched.c: Include ira.h.
12998 (implicit_clobber_conflict_p): New function.
12999 (moveup_expr): Use it.
13000 * Makefile.in (sel-sched.o): Depend on ira.h.
13002 2013-02-19 Richard Biener <rguenther@suse.de>
13004 PR tree-optimization/56384
13005 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
13006 (vn_hash_type): Split out from ...
13007 (vn_hash_constant_with_type): ... here.
13008 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
13009 (vn_phi_eq): Compare types from vn_phi_s structure.
13010 (vn_phi_lookup): Populate vn_phi_s type.
13011 (vn_phi_insert): Likewise.
13013 2013-02-19 Jakub Jelinek <jakub@redhat.com>
13015 PR tree-optimization/56350
13016 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
13017 if haven't found reduction or nested cycle operand, rather than
13018 asserting we must find it.
13020 PR tree-optimization/56381
13021 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
13024 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
13025 Jakub Jelinek <jakub@redhat.com>
13028 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
13029 (swap_optab_enable): Same.
13030 (init_all_optabs): Use argument instead of global.
13031 * tree.h (struct tree_optimization_option): New field target_optabs.
13032 * expr.h (init_all_optabs): Add argument to prototype.
13033 (TREE_OPTIMIZATION_OPTABS): New.
13034 (save_optabs_if_changed): Protoize.
13035 * optabs.h: Declare this_fn_optabs.
13036 * optabs.c (save_optabs_if_changed): New.
13037 Declare this_fn_optabs.
13038 (init_optabs): Add argument to init_all_optabs() call.
13039 * function.c (invoke_set_current_function_hook): Handle per
13041 * function.h (struct function): New field optabs.
13042 * config/mips/mips.c (mips_set_mips16_mode): Handle when
13043 optimization_current_node has changed.
13044 * target-globals.h (save_target_globals_default_opts): Protoize.
13045 * target-globals.c (save_target_globals_default_opts): New.
13047 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13050 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
13051 registers %fr12 and %fr12R as call used.
13054 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
13055 and HImode, require all displacements to be an integer multiple of
13057 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
13058 only allow QImode and HImode when reload is in progress and strict is
13059 true. Likewise for symbolic addresses. Use base14_operand to check
13060 displacements in REG+BASE addresses.
13062 2013-02-18 Richard Biener <rguenther@suse.de>
13064 PR tree-optimization/56366
13065 * tree-vect-loop.c (get_initial_def_for_induction): Properly
13066 handle sign-conversion of outer-loop initial induction value.
13068 2013-02-18 Richard Biener <rguenther@suse.de>
13070 PR middle-end/56349
13071 * cfghooks.c (merge_blocks): If we merge a latch into another
13072 block adjust references to it.
13073 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
13074 (verify_loop_structure): Verify that a recorded latch is in fact
13077 2013-02-18 Richard Biener <rguenther@suse.de>
13079 PR tree-optimization/56321
13080 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
13081 order SSA name release and virtual operand unlinking.
13083 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13085 * config/microblaze/microblaze.md (save_stack_block): Define.
13086 (restore_stack_block): Likewise.
13088 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13090 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
13091 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
13092 * config/microblaze/microblaze.c (microblaze_option_override):
13093 Bail out early for PIC modes when target does not support PIC.
13095 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13097 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
13098 Replace with a microblaze version.
13099 (microblaze_trampoline_init): Adapt for microblaze.
13100 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
13103 2013-02-16 Jakub Jelinek <jakub@redhat.com>
13104 Dodji Seketeli <dodji@redhat.com>
13107 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
13108 (instrument_mem_region_access): Do not forget to always put
13109 instrumentation of the of 'base' and 'base + len' in a "if (len !=
13110 0) statement, even for cases where either 'base' or 'base + len'
13111 are not instrumented -- because they have been previously
13112 instrumented. Simplify the logic by putting all the statements
13113 instrument 'base + len' inside a sequence, and then insert that
13114 sequence right before the current insertion point. Then, to
13115 instrument 'base + len', just get an iterator on that statement.
13116 And do not forget to update the pointer to iterator the function
13117 received as argument.
13119 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
13121 PR rtl-optimization/56348
13122 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
13124 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
13126 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
13127 (clean_graph_dump_file): Pass base to start_graph_dump.
13129 2013-02-14 Richard Henderson <rth@redhat.com>
13132 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
13134 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
13136 * collect2-aix.h: Define F_LOADONLY.
13138 2013-02-14 Richard Biener <rguenther@suse.de>
13141 * varasm.c (output_constant_def_1): Get the decl representing
13142 the constant as argument.
13143 (output_constant_def): Wrap output_constant_def_1.
13144 (make_decl_rtl): Use output_constant_def_1 with the decl
13145 representing the constant.
13146 (build_constant_desc): Optionally re-use a decl already
13147 representing the constant.
13148 (tree_output_constant_def): Adjust.
13150 2013-02-14 Dodji Seketeli <dodji@redhat.com>
13153 * asan.c (instrument_builtin_call): Really put the length of the
13154 second source argument into src1_len.
13156 2013-02-13 Jakub Jelinek <jakub@redhat.com>
13158 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
13159 argument. If it is false, don't create edge from then_bb to
13161 (insert_if_then_before_iter): Pass true to it.
13162 (build_check_stmt): Pass false to it.
13163 (transform_statements): Flush hash table only on extended basic
13164 block boundaries, rather than at the beginning of every bb.
13165 Don't flush hash table on nonfreeing_call_p calls.
13166 * tree-flow.h (nonfreeing_call_p): New prototype.
13167 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
13169 2013-02-13 David S. Miller <davem@davemloft.net>
13171 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
13173 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
13176 * ira.c (max_regno_before_ira): Move from ...
13178 (fix_reg_equiv_init): Use max_regno_before_ira instead of
13181 2013-02-13 Jakub Jelinek <jakub@redhat.com>
13183 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
13185 2013-02-13 Richard Biener <rguenther@suse.de>
13188 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
13189 globals in MEM_REFs.
13191 2013-02-13 Richard Biener <rguenther@suse.de>
13193 * loop-init.c (loop_optimizer_init): Clear loop state when
13194 re-initializing preserved loops.
13195 * loop-unswitch.c (unswitch_single_loop): Return whether
13196 we unswitched the loop. Do not verify loop state here.
13197 (unswitch_loops): When we unswitched a loop discover new loops.
13199 2013-02-13 Kostya Serebryany <kcc@google.com>
13201 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
13203 * sanitizer.def: Rename __asan_init to __asan_init_v1.
13205 2013-02-12 Dodji Seketeli <dodji@redhat.com>
13207 Avoid instrumenting duplicated memory access in the same basic block
13208 * Makefile.in (asan.o): Add new dependency on hash-table.h
13209 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
13210 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
13211 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
13212 (free_mem_ref_resources, has_mem_ref_been_instrumented)
13213 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
13214 (get_mem_ref_of_assignment): New functions.
13215 (get_mem_refs_of_builtin_call): Extract from
13216 instrument_builtin_call and tweak a little bit to make it fit with
13218 (instrument_builtin_call): Use the new
13219 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
13220 of is_gimple_builtin_call.
13221 (instrument_derefs, instrument_mem_region_access): Insert the
13222 instrumented memory reference into the hash table.
13223 (maybe_instrument_assignment): Renamed instrument_assignment into
13224 this, and change it to advance the iterator when instrumentation
13225 actually happened and return true in that case. This makes it
13226 homogeneous with maybe_instrument_assignment, and thus give a
13227 chance to callers to be more 'regular'.
13228 (transform_statements): Clear the memory reference hash table
13229 whenever we enter a new BB, when we cross a function call, or when
13230 we are done transforming statements. Use
13231 maybe_instrument_assignment instead of instrumentation. No more
13232 need to special case maybe_instrument_assignment and advance the
13233 iterator after calling it; it's now handled just like
13234 maybe_instrument_call. Update comment.
13236 2013-02-13 Richard Biener <rguenther@suse.de>
13238 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
13239 Fix loop discovery code.
13241 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
13243 PR inline-asm/56148
13244 * lra-constraints.c (process_alt_operands): Match early clobber
13245 operand with itself. Check conflicts with earlyclobber only if
13246 the operand is not reloaded. Prefer to reload conflicting operand
13247 if earlyclobber and matching operands are the same.
13249 2013-02-12 Richard Biener <rguenther@suse.de>
13252 * lto-streamer-out.c (write_symbol): Do not output symbols
13253 for hard register variables.
13255 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
13258 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
13259 (umulsidi3_insn, mulsidi3_insn): New insns.
13261 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
13263 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
13264 (struct tune_params): Add vec_costs field.
13265 * config/arm/arm.c (arm_builtin_vectorization_cost)
13266 (arm_add_stmt_cost): New functions.
13267 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
13268 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
13269 (arm_default_vec_cost): New struct of type cpu_vec_costs.
13270 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13271 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
13272 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
13273 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
13275 2013-02-12 Richard Biener <rguenther@suse.de>
13278 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
13279 decls again if possible.
13281 2013-02-12 Richard Biener <rguenther@suse.de>
13283 PR middle-end/56288
13284 * tree-ssa.c (verify_ssa_name): Fix check, move
13285 SSA_NAME_IN_FREE_LIST check up.
13287 2013-02-12 Jakub Jelinek <jakub@redhat.com>
13288 Steven Bosscher <steven@gcc.gnu.org>
13290 PR rtl-optimization/56151
13291 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
13292 equal to op0 or op1, and last_insn pattern is CODE operation
13293 with MEM dest and one of the operands matches that MEM.
13295 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
13297 * doc/extend.texi: Document Function Multiversioning and "default"
13298 parameter string to target attribute.
13299 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
13300 target attribute parameter is "default".
13301 (ix86_compare_version_priority): Remove checks for target attribute.
13302 (ix86_mangle_function_version_assembler_name): Change error to sorry.
13303 Remove check for target attribute equal to NULL. Add assert.
13304 (ix86_generate_version_dispatcher_body): Change error to sorry.
13306 2013-02-11 Iain Sandoe <iain@codesourcery.com>
13307 Jack Howarth <howarth@bromo.med.uc.edu>
13308 Patrick Marlier <patrick.marlier@gmail.com>
13311 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
13312 define ENDFILE_SPEC as TM_DESTRUCTOR.
13313 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
13315 2013-02-11 Alexander Potapenko <glider@google.com>
13316 Jack Howarth <howarth@bromo.med.uc.edu>
13317 Jakub Jelinek <jakub@redhat.com>
13320 * config/darwin.c (cdtor_record): Rename ctor_record.
13321 (sort_cdtor_records): Rename sort_ctor_records.
13322 (finalize_dtors): New routine to sort destructors by
13323 priority before use in assemble_integer.
13324 (machopic_asm_out_destructor): Use finalize_dtors if needed.
13326 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
13328 PR rtl-optimization/56275
13329 * simplify-rtx.c (avoid_constant_pool_reference): Check that
13330 offset is non-negative and less than cmode size before
13331 calling simplify_subreg.
13333 2013-02-11 Richard Biener <rguenther@suse.de>
13335 PR tree-optimization/56264
13336 * cfgloop.h (fix_loop_structure): Adjust prototype.
13337 * loop-init.c (fix_loop_structure): Return the number of
13338 newly discovered loops.
13339 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13340 are discovered, do a full loop-closed SSA rewrite.
13342 2013-02-11 Richard Biener <rguenther@suse.de>
13344 PR tree-optimization/56273
13345 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13347 (check_array_ref): Fix missing newline in dumps.
13348 (search_for_addr_array): Likewise.
13350 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
13352 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13354 2013-02-09 Jakub Jelinek <jakub@redhat.com>
13357 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13359 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13361 PR rtl-optimization/56246
13362 * lra-constraints.c (simplify_operand_subreg): Try to reuse
13364 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13365 constraints are satisfied.
13367 2013-02-08 Jeff Law <law@redhat.com>
13370 * emit-rtl.c (reg_is_parm_p): New function.
13371 * regs.h (reg_is_parm_p): New prototype.
13372 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13373 callee-clobbered registers.
13375 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13378 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13379 If there is no implicit builtin declaration, just return NULL.
13381 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13383 * config/i386/sse.md (FMAMODEM): New mode iterator.
13384 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13385 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13387 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13389 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13390 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13391 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13393 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13395 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13396 (microblaze*-*-elf): Likewise.
13397 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13399 * config/microblaze/microblaze-c.c: Add builtin defines for
13400 _LITTLE_ENDIAN and _BIG_ENDIAN.
13401 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13402 add to TARGET_DEFAULT flags.
13403 Expand ASM_SPEC and LINK_SPEC.
13404 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13405 * config/microblaze/microblaze.md: Update extendsidi2 and
13406 movdi_internal instructions to use low-order / high-order reg
13408 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13409 options and inversemask / mask of LITTLE_ENDIAN.
13410 * config/microblaze/t-microblaze: Expand multilib options to
13411 include mlittle-endian (le) and update exceptions patterns.
13413 2013-02-08 Jakub Jelinek <jakub@redhat.com>
13415 PR rtl-optimization/56195
13416 * lra-constraints.c (get_reload_reg): Don't reuse regs
13417 if they have smaller mode than requested, if they have
13418 wider mode than requested, try to return a SUBREG.
13420 PR tree-optimization/56250
13421 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13422 if type is unsigned and code isn't MULT_EXPR.
13424 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13426 PR tree-optimization/56064
13427 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13428 bits according to mode.
13429 * fixed-value.h (fixed_from_double_int)
13430 (const_fixed_from_double_int): Adjust comments.
13432 2013-02-08 Richard Biener <rguenther@suse.de>
13435 * lto-streamer.h (struct data_in): Remove current_file, current_line
13436 and current_col members.
13437 * lto-streamer-out.c (lto_output_location): Stream changed bits
13438 en-block for efficiency.
13439 * lto-streamer-in.c (clear_line_info): Remove.
13440 (lto_input_location): Cache current file, line and column
13441 globally via local statics. Read changed bits en-block.
13442 (input_function): Do not call clear_line_info.
13443 (lto_read_body): Likewise.
13444 (lto_input_toplevel_asms): Likewise.
13446 2013-02-08 Michael Matz <matz@suse.de>
13448 PR tree-optimization/52448
13449 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13450 (nt_call_phase): New static.
13451 (add_or_mark_expr): Only mark accesses with newer phase than any
13453 (nonfreeing_call_p): New.
13454 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13455 (nt_fini_block): Keep blocks marked as visited.
13456 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13458 2013-02-08 Richard Biener <rguenther@suse.de>
13460 * ira.c (ira): Free broken dominator information.
13462 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13464 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13466 2013-02-08 Marek Polacek <polacek@redhat.com>
13468 * cfgloop.c (verify_loop_structure): Add more checking of headers.
13470 2013-02-08 Richard Biener <rguenther@suse.de>
13472 PR middle-end/56181
13473 * cfgloop.h (flow_loops_find): Adjust.
13474 (bb_loop_header_p): Declare.
13475 * cfgloop.c (bb_loop_header_p): New function split out from ...
13476 (flow_loops_find): ... here. Adjust function signature,
13477 support incremental loop structure update.
13478 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13479 * cfgloopmanip.c (fix_loop_structure): Move ...
13480 * loop-init.c (fix_loop_structure): ... here.
13481 (apply_loop_flags): Split out from ...
13482 (loop_optimizer_init): ... here.
13483 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13484 in incremental mode, only remove dead loops here.
13486 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13489 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13490 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13491 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13492 (*round<mode>3.libgcc): New insns for fixed-modes.
13493 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13494 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13495 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13496 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13497 implementations. Define to __builtin_avr_absFX,
13498 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13499 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13500 __builtin_avr_countlsFX, respectively.
13501 * config/avr/avr-c.c (target.h): Include it.
13502 (enum avr_builtin_id): New enum.
13503 (avr_resolve_overloaded_builtin): New static function.
13504 (avr_register_target_pragmas): Use it to set
13505 targetm.resolve_overloaded_builtin.
13506 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13507 tree nodes used by DEF_BUILTIN.
13508 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13509 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13510 <AVR_BUILTIN_xxBITS>: Same.
13512 2013-02-08 Richard Biener <rguenther@suse.de>
13514 * cfgloop.c (verify_loop_structure): Properly handle
13515 a loop exiting to another loop header.
13516 * ira-int.h (ira_loops): Remove.
13517 * ira.c (ira_loops): Remove.
13518 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13519 (do_reload): Use loop_optimizer_finalize.
13520 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13521 number_of_loops to access the loop tree.
13522 (more_one_region_p): Likewise.
13523 (finish_loop_tree_nodes): Likewise.
13524 (rebuild_regno_allocno_maps): Likewise.
13525 (mark_loops_for_removal): Likewise.
13526 (mark_all_loops_for_removal): Likewise.
13527 (remove_unnecessary_regions): Likewise.
13528 (ira_build): Likewise.
13529 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13531 2013-02-08 Richard Biener <rguenther@suse.de>
13533 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13534 * ipa-pure-const.c (analyze_function): Avoid calling
13535 mark_irreducible_loops twice.
13536 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
13538 2013-02-07 David S. Miller <davem@davemloft.net>
13540 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13542 * var-tracking.c (vt_add_function_parameter): Test the presence of
13543 HAVE_window_save properly and do not remap argument registers when
13544 we have a leaf function.
13546 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
13549 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13551 * config/i386/i386.c (ix86_print_operand): Ditto.
13553 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13555 * lra-constraints.c (process_alt_operands): Fix recently added comment.
13557 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13559 PR rtl-optimization/56225
13560 * lra-constraints.c (process_alt_operands): Check that reload hard
13561 reg can hold value for strict_low_part.
13563 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13566 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13567 dwarf2out_end_function.
13568 (in_first_function_p, maybe_at_text_label_p,
13569 first_loclabel_num_not_at_text_label): New variables.
13570 (dwarf2out_var_location): In the first function find out
13571 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
13572 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13575 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13577 PR rtl-optimization/56178
13578 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13579 SUBREG of a register. Tidy up related block of code.
13580 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13581 note if the source is a register or a SUBREG of a register.
13583 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13586 * config/rs6000/rs6000.md (ptrm): New mode attr.
13587 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13588 call_value_indirect_aix<pttrsize>,
13589 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13592 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13594 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13595 if -bnortl. Convert to strcmp and strncmp.
13597 2013-02-07 Alan Modra <amodra@gmail.com>
13600 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13601 addresses won't wrap when offsetting.
13602 (rs6000_secondary_reload): Provide secondary reloads needed for
13603 wrapping LO_SUM addresses.
13605 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13607 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13608 MACH, just __MACH__.
13610 2013-02-06 Richard Biener <rguenther@suse.de>
13612 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13613 instead of calling fix_loop_structure.
13615 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13617 PR middle-end/56217
13618 * omp-low.c (use_pointer_for_field): Return false if
13619 lower_send_shared_vars doesn't generate any copy-out code.
13621 2013-02-06 Tom de Vries <tom@codesourcery.com>
13623 PR rtl-optimization/56131
13624 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13625 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13626 of the label is NULL. Add comment.
13628 2013-02-05 Jakub Jelinek <jakub@redhat.com>
13630 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13633 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13634 (STATIC_LIBTSAN_LIBS): Likewise.
13635 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13636 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13637 is defined, don't add anything else beyond that.
13638 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13639 (LINK_COMMAND_SPEC): Use them.
13641 PR tree-optimization/56205
13642 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13643 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13644 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13646 2013-02-05 Richard Biener <rguenther@suse.de>
13648 PR tree-optimization/53342
13649 PR tree-optimization/53185
13650 * tree-vectorizer.h (vect_check_strided_load): Remove.
13651 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13652 not disallow peeling for vectorized strided loads.
13653 (vect_check_strided_load): Make static and simplify.
13654 (vect_analyze_data_refs): Adjust.
13655 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13656 correctly when vectorizing strided loads.
13658 2013-02-05 Richard Biener <rguenther@suse.de>
13660 * doc/install.texi: Refer to ISL, not PPL.
13662 2013-02-05 Jan Hubicka <jh@suse.cz>
13664 PR tree-optimization/55789
13665 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13667 2013-02-05 Jan Hubicka <jh@suse.cz>
13669 PR tree-optimization/55789
13670 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13671 the dead call anyway.
13673 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13676 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13678 2013-02-04 Alexander Potapenko <glider@google.com>
13679 Jack Howarth <howarth@bromo.med.uc.edu>
13680 Jakub Jelinek <jakub@redhat.com>
13683 * config/darwin.c (sort_ctor_records): Stabilized qsort
13684 on constructor priority by using original position.
13685 (finalize_ctors): New routine to sort constructors by
13686 priority before use in assemble_integer.
13687 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13689 2013-02-04 Jakub Jelinek <jakub@redhat.com>
13692 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13693 about visibility on artificial decls.
13694 * config/sol2.c (solaris_assemble_visibility): Likewise.
13696 2013-02-04 Kai Tietz <ktietz@redhat.com>
13699 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13700 argument and improve checking of return-argument types for 16-byte
13702 (ix86_function_value_1): Add additional valtype argument on call
13703 of function_value_64.
13704 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13705 handling infunction_value_64 function.
13707 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13709 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13711 2013-02-04 Richard Biener <rguenther@suse.de>
13713 PR tree-optimization/56188
13714 * tree-ssa-structalias.c (label_visit): Consider case with
13715 initially non-empty points-to set.
13716 (perform_var_substitution): Dump node mapping and clean up.
13718 2013-02-04 Richard Guenther <rguenther@suse.de>
13721 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13722 node prevail as last resort.
13723 (lto_symtab_merge_decls): Remove guard on LTRANS here.
13724 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13726 2013-02-04 Richard Biener <rguenther@suse.de>
13728 PR tree-optimization/56113
13729 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13731 (equiv_class_lookup_or_add): ... this.
13732 (label_visit): Adjust and fix error in previous patch.
13733 (perform_var_substitution): Adjust.
13735 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13737 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13738 * config/sh/sh4-300.md: Likewise.
13739 * config/sh/sh4a.md: Likewise.
13740 * config/sh/constraints.md: Likewise.
13741 * config/sh/sh.md: Likewise.
13742 * config/sh/netbsd-elf.h: Likewise.
13743 * config/sh/predicates.md: Likewise.
13744 * config/sh/sh-protos.h: Likewise.
13745 * config/sh/ushmedia.h: Likewise.
13746 * config/sh/linux.h: Likewise.
13747 * config/sh/sh.c: Likewise.
13748 * config/sh/superh.h: Likewise.
13749 * config/sh/elf.h: Likewise.
13750 * config/sh/sh4.md: Likewise.
13751 * config/sh/sh.h: Likewise.
13753 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13755 * config/pa/constraints.md: Adjust unused letters. Change "T"
13756 constraint to match_test floating_point_store_memory_operand().
13757 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13758 (base14_operand): New.
13759 (floating_point_store_memory_operand): New.
13760 (integer_store_memory_operand): Revise to use base14_operand and
13761 reg_plus_base_memory_operand.
13762 (move_dest_operand): Allow symbolic_memory_operands.
13763 (symbolic_memory_operand): Check for LO_SOM.
13764 (symbolic_operand): Change default case to break.
13765 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13766 CONST_DOUBLE values to be reloaded by putting them into memory when
13767 the destination is a floating point register.
13768 (movdf): Remove code to handle CONST_DOUBLE.
13770 (reload_indf_r1): New.
13771 (reload_insf_r1): New.
13772 Consistently use "Q" and "T" constraints with integer and floating
13773 point move instructions, respectively.
13774 (movdi): Remove FAIL.
13775 Change predicate for source operand unamed DImode move from
13776 general_operand to move_src_operand.
13777 (umulsidi3): Change predicate for destination operand to
13779 Likewise for similar unamed patterns.
13780 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13781 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13782 (hppa_legitimize_address): Simplify mask calculation.
13783 (pa_emit_move_sequence): Revised handling of secondary reloads from
13784 REG+D addresses for floating point loads and stores. Directly handle
13785 loading CONST0_RTX (mode) to a floating point register.
13786 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13787 to floating point registers. Don't restrict secondary reloads to
13788 floating point registers to integer modes. Revise some comments and
13790 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13791 (pa_legitimate_address_p): New.
13792 (pa_legitimize_reload_address): New.
13793 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13794 (STRICT_REG_OK_FOR_BASE_P): New.
13795 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13796 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13798 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
13799 Andrew Dixie <andrewd@gentrack.com>
13801 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13804 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13806 * expmed.c (extract_bit_field_1): Pass the full width of the
13807 structure to get_best_reg_extraction_insn.
13809 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13812 * configure.ac (use_cxa_atexit): Add AIX.
13813 * configure: Regenerate.
13815 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13817 2013-02-01 Jakub Jelinek <jakub@redhat.com>
13820 * final.c (need_profile_function): New variable.
13821 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13822 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13823 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13824 notes, targetm.asm_out.function_prologue doesn't emit anything,
13825 HAVE_prologue and profiler should be emitted before prologue,
13826 set need_profile_function instead of emitting it.
13827 (final_scan_insn): If need_profile_function, emit
13828 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13829 NOTE_INSN_FUNCTION_BEG note.
13831 2013-02-01 Richard Henderson <rth@redhat.com>
13833 * config/rs6000/rs6000.md (smulditi3): New.
13836 * config/alpha/alpha.md (umulditi3): New.
13838 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13840 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13841 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13843 2013-02-01 Richard Biener <rguenther@suse.de>
13845 PR tree-optimization/56113
13846 * tree-ssa-structalias.c (label_visit): Reduce work for
13847 single-predecessor nodes.
13849 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13851 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13852 range isn't testing for zero.
13854 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13856 PR middle-end/56113
13857 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13859 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13860 Nick Clifton <nickc@redhat.com>
13862 * config/v850/constraints.md (Q): Define as a memory constraint.
13863 * config/v850/predicates.md (label_ref_operand): New predicate.
13864 (e3v5_shift_operand): New predicate.
13865 (ior_operator): New predicate.
13866 * config/v850/t-v850: Add e3v5 multilib.
13867 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13868 (v850_gen_movdi): Prototype.
13869 * config/v850/v850.c: Add support for e3v5 architecture.
13870 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13872 (construct_save_jarl): Add e3v5 long JARL support.
13873 (v850_adjust_insn_length): New function. Adjust length of call
13874 insns when using e3v5 instructions.
13875 (v850_gen_movdi): New function: Generate instructions to move a
13877 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13878 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13879 (TARGET_USE_FPU): Enable for e3v5.
13880 (CONST_OK_FOR_W): New macro.
13881 (ADJUST_INSN_LENGTH): Define.
13882 * config/v850/v850.md (UNSPEC_LOOP): Define.
13883 (attr cpu): Add v850e3v5.
13884 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13885 (movdi): New pattern.
13886 (movdi_internal): New pattern.
13887 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13888 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13889 (cstoresf4): Likewise.
13890 (cstoredf4): Likewise.
13891 (insv): New pattern.
13892 (rotlso3_a): New pattern.
13893 (rotlsi3_b): New pattern
13894 (rotlsi3_v850e3v5): New pattern.
13895 (doloop_begin): New pattern.
13896 (fix_loop_counter): New pattern.
13897 (doloop_end): New pattern.
13898 (branch_normal): Add e3v5 long branch support.
13899 (branch_invert): Likewise.
13900 (branch_z_normal): Likewise.
13901 (branch_z_invert): Likewise.
13902 (branch_nz_normal): Likewise.
13903 (branch_nz_invert): Likewise.
13904 (call_internal_short): Add e3v5 register-indirect JARL support.
13905 (call_internal_long): Likewise.
13906 (call_value_internal_short): Likewise.
13907 (call_value_internal_long): Likewise.
13908 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13909 (mloop): New option.
13910 * config.gcc: Add support for configuring v840e3v5 target.
13911 * doc/invoke.texi: Document new v850 specific command line options.
13913 2013-01-31 Paul Koning <ni1d@arrl.net>
13917 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13918 children if parent is a class.
13919 (prune_unused_types_prune): Don't add DW_AT_declaration.
13921 2013-01-31 Richard Biener <rguenther@suse.de>
13923 PR tree-optimization/56157
13924 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13925 match up operand with SLP child.
13927 2013-01-31 Jason Merrill <jason@redhat.com>
13930 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13931 parameters the first time.
13932 (gen_scheduled_generic_parms_dies): Check completeness here.
13934 2013-01-31 Richard Biener <rguenther@suse.de>
13936 PR middle-end/53073
13937 * common.opt (faggressive-loop-optimizations): New flag,
13938 enabled by default.
13939 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13940 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13941 infer_loop_bounds_from_undefined by it.
13943 2013-01-31 Richard Biener <rguenther@suse.de>
13945 PR tree-optimization/56150
13946 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13947 visit virtual operands.
13948 (find_uses_to_rename_bb): Likewise.
13950 2013-01-31 Richard Biener <rguenther@suse.de>
13952 PR tree-optimization/56150
13953 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13954 mixed store non-store stmts.
13956 2013-01-30 Jakub Jelinek <jakub@redhat.com>
13959 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13960 LIBASAN_EARLY_SPEC is defined.
13961 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13962 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13964 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13967 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13968 invalid args instead of ICEing on it.
13969 (ix86_valid_target_attribute_tree): Return error_mark_node if
13970 ix86_valid_target_attribute_inner_p failed.
13971 (ix86_valid_target_attribute_p): Return false only if
13972 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13973 target("default") attribute.
13974 (sorted_attr_string): Change argument from const char * to tree,
13975 merge in all target attribute arguments rather than just one.
13976 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13977 instead of free. Avoid using strcat.
13978 (ix86_mangle_function_version_assembler_name): Mangle
13979 target("default") as if no target attribute is present. Adjust
13980 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13981 instead of xmalloc and XDELETEVEC instead of free.
13982 (ix86_function_versions): Don't return true if one of the decls
13983 doesn't have target attribute. If they don't and one of the decls
13984 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13985 sorted_attr_string caller. Use XDELETEVEC instead of free.
13986 (ix86_supports_function_versions): Remove.
13987 (make_name): Fix up formatting.
13988 (make_dispatcher_decl): Remove resolver_name and its initialization.
13989 Avoid leaking memory.
13990 (is_function_default_version): Return true if there is
13991 target("default") attribute rather than no target attribute at all.
13992 (make_resolver_func): Avoid leaking memory.
13993 (ix86_generate_version_dispatcher_body): Likewise.
13994 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13995 * target.def (supports_function_versions): Remove.
13996 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13997 * doc/tm.texi: Regenerated.
13999 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
14001 PR rtl-optimization/56144
14002 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
14003 for values with side effects.
14005 2013-01-30 Richard Biener <rguenther@suse.de>
14007 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
14008 (sparseset_pop): Likewise.
14009 * cfganal.c (compute_idf): Likewise. Increase work-stack size
14010 to be able to use quick_push in the worker loop.
14012 2013-01-30 Marek Polacek <polacek@redhat.com>
14014 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
14016 2013-01-30 Richard Biener <rguenther@suse.de>
14019 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
14021 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
14023 PR tree-optimization/56064
14024 * fixed-value.c (fixed_from_double_int): New function.
14025 * fixed-value.h (fixed_from_double_int): New prototype.
14026 (const_fixed_from_double_int): New static inline function.
14027 * fold-const.c (native_interpret_fixed): New static function.
14028 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
14029 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
14030 (native_encode_fixed): New static function.
14031 (native_encode_expr) <FIXED_CST>: Use it.
14032 (native_interpret_int): Move double_int worker code to...
14033 * double-int.c (double_int::from_buffer): ...this new static method.
14034 * double-int.h (double_int::from_buffer): Prototype it.
14036 2013-01-30 Richard Biener <rguenther@suse.de>
14038 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
14039 New pointer-map and obstack.
14040 (init_alias_vars): Allocate pointer-map and obstack.
14041 (delete_points_to_sets): Free them.
14042 (find_what_var_points_to): Cache result.
14043 (find_what_p_points_to): Adjust for changed interface of
14044 find_what_var_points_to.
14045 (compute_points_to_sets): Likewise.
14046 (ipa_pta_execute): Likewise.
14048 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14050 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
14051 * configure: Regenerate.
14052 * config.in: Regenerate.
14053 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
14054 #nobits/#progbits if supported.
14056 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
14059 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
14060 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
14061 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
14063 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14065 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
14066 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
14068 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14070 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
14071 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
14073 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14075 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
14077 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
14078 * config/arm/cortex-a7.md: New bypasses using
14079 arm_mac_accumulator_is_result.
14081 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14083 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
14084 (cortex_a7_neon_mla): Likewise.
14085 (cortex_a7_fpfmad): New reservation.
14086 (cortex_a7_fpmacs): Use ffmas and update required units.
14087 (cortex_a7_fpmuld): Update required units and latency.
14088 (cortex_a7_fpmacd): Likewise.
14089 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
14090 (cortex_a7_neon). Likewise.
14091 (bypass) Update participating units.
14093 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14095 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
14096 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
14098 * config/arm/vfp11.md (vfp_farith): Use ffmas.
14099 (vfp_fmul): Use ffmad.
14100 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
14101 (cortex_r4_fmacd): Use ffmad.
14102 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
14103 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
14104 (cortex_a9_fmacd): Use ffmad.
14105 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
14106 (cortex_a8_vfp_macd): Use ffmad.
14107 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
14108 (cortex_a5_fpmacd): Use ffmad.
14109 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
14110 (cortex_a15_vfp_macd): Use ffmad.
14111 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
14113 2013-01-29 Jason Merrill <jason@redhat.com>
14116 * varasm.c (default_assemble_visibility): Don't warn about
14117 visibility on artificial decls.
14119 2013-01-29 Richard Biener <rguenther@suse.de>
14121 PR tree-optimization/56113
14122 * tree-ssa-structalias.c (equiv_class_lookup): Also return
14124 (label_visit): Free duplicate bitmaps and record the leader instead.
14125 (perform_var_substitution): Adjust.
14127 2013-01-29 Richard Biener <rguenther@suse.de>
14129 PR tree-optimization/55270
14130 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
14131 the CFG, schedule loops for fixup.
14133 2013-01-29 Nick Clifton <nickc@redhat.com>
14135 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
14138 2013-01-28 Leif Ekblad <leif@rdos.net>
14140 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
14141 * config/i386/i386.h (TARGET_RDOS): New macro.
14142 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
14143 * config/i386/i386.c (ix86_option_override_internal): For 64bit
14144 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
14145 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
14146 DEFAULT_LARGE_SECTION_THRESHOLD.
14147 * config/i386/i386.md (R14_REG, R15_REG): New constants.
14148 * config/i386/rdos.h: New file.
14149 * config/i386/rdos64.h: New file.
14151 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
14154 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
14157 2013-01-28 Jakub Jelinek <jakub@redhat.com>
14159 PR rtl-optimization/56117
14160 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
14161 call cselib_lookup_from_insn on the MEM before calling
14162 add_insn_mem_dependence.
14164 2013-01-28 Richard Biener <rguenther@suse.de>
14166 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
14167 to a stmt that didn't have one.
14168 (copy_phis_for_bb): Likewise for PHI arguments.
14169 (copy_debug_stmt): Likewise for debug stmts.
14171 2013-01-28 Richard Biener <rguenther@suse.de>
14173 PR tree-optimization/56034
14174 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
14175 (partition_builtin_p): Adjust.
14176 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
14177 it is the last partition.
14178 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
14179 up the vertex for the definition.
14180 (classify_partition): Classify whether a partition is a
14181 PKIND_REDUCTION, thus has uses outside of the loop.
14182 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
14183 Merge all PKIND_REDUCTION partitions into the last partition.
14184 (tree_loop_distribution): Seed partitions from reductions as well.
14186 2013-01-28 Jakub Jelinek <jakub@redhat.com>
14188 PR tree-optimization/56125
14189 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
14190 pow(x,c) into sqrt(x) * powi(x, n/2) or
14191 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
14192 optimizing for size.
14193 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
14194 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
14197 PR tree-optimization/56094
14198 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
14199 to UNKNOWN_LOCATION while gimplifying expr.
14201 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
14204 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
14205 operand 0 in movabs insn template for -masm=intel asm alternative.
14206 (*movabs<mode>_2): Ditto for operand 1.
14208 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
14211 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
14214 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14216 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
14219 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14221 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
14222 Undef to avoid warning.
14224 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14226 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
14227 * configure: Regenerate.
14229 2013-01-25 Jakub Jelinek <jakub@redhat.com>
14231 PR tree-optimization/56098
14232 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
14233 for stmts with volatile ops.
14234 (cond_store_replacement): Don't optimize if assign has volatile ops.
14235 (cond_if_else_store_replacement_1): Don't optimize if either
14236 then_assign or else_assign have volatile ops.
14237 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
14240 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14242 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
14244 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14246 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
14247 missing ':' in asm example.
14249 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
14251 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
14252 entries into lane and laneq entries.
14253 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
14254 Remove AdvSIMD scalar modes.
14255 (aarch64_sq<r>dmulh_laneq<mode>): New.
14256 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
14258 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
14259 builtin implementations to relfect changes in RTL in aarch64-simd.md.
14260 * config/aarch64/iterators.md (VCOND): New.
14263 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14266 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
14267 Add NULL LIBNAME argument to existing definitions.
14268 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
14269 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
14270 * config/avr/avr.c (DEF_BUILTIN): Same.
14271 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
14272 (avr_expand_builtin): Expand to a vanilla call if a libgcc
14273 implementation is available (DECL_ASSEMBLER_NAME is set).
14274 (avr_fold_absfx): New static function.
14275 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
14276 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
14277 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
14278 AVR_BUILTIN_ABSLLK.
14279 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
14280 (abshk, absk, abslk, absllk): Provide as static inline functions.
14282 2013-01-25 Marek Polacek <polacek@redhat.com>
14284 PR tree-optimization/56035
14285 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
14287 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
14289 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
14290 (*movtf_internal_rex64): Add (!o,C) alternative
14291 (*movxf_internal_rex64): Ditto.
14292 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
14294 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
14296 * doc/invoke.texi: fix typo.
14297 * doc/objc.texi: fix typo.
14299 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
14301 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
14302 for the first two alternatives.
14304 2013-01-24 Diego Novillo <dnovillo@google.com>
14306 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
14307 (ggc-zone.o): Remove.
14308 * configure.ac: Remove option --with-gc.
14309 * configure: Re-generate.
14310 * doc/install.texi: Remove documentation for --with-gc.
14311 * gengtype.c (write_enum_defn): Remove. Update all users.
14312 (write_Types_process_field): Remove generation of gt_e_* argument.
14313 (output_type_enum): Remove. Update all users.
14314 (write_enum_defn): Remove. Update all users.
14315 (enum alloc_zone): Remove. Update all users.
14316 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
14317 * ggc-common.c (ggc_splay_alloc): Remove first argument.
14318 Update all callers.
14319 (struct ptr_data): Remove field TYPE. Update all users.
14320 (gt_pch_note_object): Remove argument TYPE. Update all users.
14321 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
14323 * ggc-none.c (ggc_alloc_typed_stat): Remove.
14324 (struct alloc_zone): Remove.
14325 (ggc_internal_alloc_zone_stat): Remove.
14326 (ggc_internal_cleared_alloc_zone_stat): Remove.
14327 * ggc-page.c (ggc_alloc_typed_stat): Remove.
14328 (ggc_pch_count_object): Remove last argument. Update all users.
14329 (ggc_pch_alloc_object): Remove last argument. Update all users.
14330 (struct alloc_zone): Remove.
14331 * ggc-zone.c: Remove.
14332 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
14333 (struct alloc_zone): Remove.
14334 (ggc_alloc_typed_stat): Remove.
14335 (ggc_alloc_typed): Remove.
14336 (ggc_splay_alloc): Remove first argument.
14337 (rtl_zone): Remove. Update all users.
14338 (tree_zone): Remove. Update all users.
14339 (tree_id_zone): Remove. Update all users.
14340 (ggc_internal_zone_alloc_stat): Remove. Update all users.
14341 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
14342 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
14343 * tree-ssanames.c: Remove references to zone allocator in comments.
14345 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
14347 * config/avr/avr.c (avr_out_fract): Make register numbers that
14348 might be outside of source operand signed.
14350 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
14352 * config/i386/constraints.md (Yf): New constraint.
14353 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14354 of f constraint to conditionaly disable x87 register preferences.
14355 (*movdf_internal): Ditto.
14356 (*movsf_internal): Ditto.
14358 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14360 PR inline-asm/55934
14361 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14362 that have operands with impossible constraints.
14363 Add a FIXME for a speed-up opportunity.
14364 * lra-constraints.c (process_alt_operands): Verify that a class
14365 selected from constraints on asms is valid for the operand mode.
14366 (curr_insn_transform): Remove incorrect comment.
14368 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
14370 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14371 TOC operand is a valid symbol ref in the constant pool.
14373 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14375 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
14377 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
14380 * config/avr/stdfix.h: New file.
14381 * t-avr (stdfix-gcc.h): New rule to build it.
14382 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14384 2013-01-23 Kostya Serebryany <kcc@google.com>
14386 * config/darwin.h: remove dependency on
14387 CoreFoundation (asan on Mac OS).
14389 2013-01-23 Jakub Jelinek <jakub@redhat.com>
14392 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14393 instead of cmpdi_operand for first comparison operand.
14394 Don't assert that comparison operands aren't both constants.
14396 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14398 * doc/install.texi (Downloading the Source): Update references to
14399 downloading separate components.
14401 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14403 * doc/extend.texi (__int128): Improve grammar.
14405 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
14408 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14409 alternative to (o,r).
14410 (*movdi_internal_rex64): Remove (!o,n) alternative.
14411 (DImode immediate->memory splitter): Remove.
14412 (DImode immediate->memory peephole2): Remove.
14413 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14414 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14415 alternative to (!o,*r).
14416 (*movtf_internal_sse): New pattern.
14417 (*movxf_internal_rex64): New pattern.
14418 (*movxf_internal): Disable for TARGET_64BIT.
14419 (*movdf_internal_rex64): Remove (!o,F) alternative.
14421 2013-01-22 Jakub Jelinek <jakub@redhat.com>
14423 PR middle-end/56074
14424 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14425 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14426 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14427 stmt locations where LOCATION_LOCUS of the stmt location is
14428 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14431 * config/i386/i386.md (UNSPEC_STOS): New.
14432 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14433 *strsetqi_1): Add UNSPEC_STOS.
14435 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14438 * doc/invoke.texi: Remove left over -Wsynth example.
14440 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14442 PR tree-optimization/56051
14443 * fold-const.c (fold_binary_loc): Don't fold
14444 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14445 a narrowing conversion, or widening conversion from signed
14448 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14450 PR rtl-optimization/56023
14451 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14452 dependent on debug instruction.
14454 2013-01-21 Martin Jambor <mjambor@suse.cz>
14456 PR middle-end/56022
14457 * function.c (allocate_struct_function): Call
14458 invoke_set_current_function_hook earlier.
14460 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14462 * reload1.c (init_reload): Only initialize reload_obstack
14463 during the first call.
14465 2013-01-21 Marek Polacek <polacek@redhat.com>
14467 * cfgloop.c (verify_loop_structure): Fix up grammar.
14469 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14471 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14472 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14474 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14477 * config/arm/marvell-pj4.md: Update copyright year.
14478 Fix up use of alu to alu_reg and simple_alu_imm.
14480 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14482 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14484 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14487 * lra-constraints.c (curr_insn_transform): Don't reuse original
14488 insn for secondary memory move when memory mode should be different.
14490 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14492 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14493 atomic_storedi_1): New patterns.
14495 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14497 btver2 pipeline descriptions.
14498 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14500 * config/i386/i386.md (btver2_decode): New type attributes.
14501 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
14503 * config/i386/btver2.md: New file describing btver2 pipelines.
14505 2013-01-19 Andrew Pinski <apinski@cavium.com>
14507 PR tree-optimization/52631
14508 * tree-ssa-sccvn (visit_use): Before looking up the original
14509 statement, try looking up the simplified expression.
14511 2013-01-19 Anthony Green <green@moxielogic.com>
14513 * config/moxie/moxie.c (moxie_expand_prologue): Set
14514 current_function_static_stack_size.
14516 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14518 PR tree-optimization/56029
14519 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14520 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14522 2013-01-18 Sharad Singhai <singhai@google.com>
14524 PR tree-optimization/55995
14525 * dumpfile.c (dump_loc): Print location only if available.
14526 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14528 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14531 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14532 secondary memory move.
14533 (inherit_reload_reg): Use rclass instead of cl for
14534 check_secondary_memory_needed_p.
14536 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14538 PR middle-end/56015
14539 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
14540 the case where writing real complex part of target modifies op1.
14542 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14544 * config/aarch64/aarch64-simd.md
14545 (aarch64_vcond_internal<mode>): Handle unordered cases.
14546 * config/aarch64/iterators.md (v_cmp_result): New.
14548 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14549 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14551 * config/arm/marvell-pj4.md: New file.
14552 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14553 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14554 (generic_vfp): Likewise.
14555 * config/arm/arm-cores.def: Add marvell-pj4.
14556 * config/arm/arm-tune.md: Regenerate.
14557 * config/arm/arm-tables.opt: Regenerate.
14558 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14559 * doc/invoke.texi: Document marvell-pj4.
14561 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14563 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14565 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14570 * var-tracking.c (negative_power_of_two_p): New.
14571 (global_get_addr_cache, local_get_addr_cache): New.
14572 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14573 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14575 (vt_stack_offset_p): Remove.
14576 (vt_canon_true_dep): Always canonicalize loc's address.
14577 (clobber_overlapping_mems): Make sure we have a MEM.
14578 (local_get_addr_clear_given_value): New.
14579 (val_reset): Clear local cached entries.
14580 (compute_bb_dataflow): Create and release the local cache.
14581 Disable duplicate MEMs clobbering.
14582 (emit_notes_in_bb): Clobber MEMs likewise.
14583 (vt_emit_notes): Create and release the local cache.
14584 (vt_initialize, vt_finalize): Create and release the global
14585 cache, respectively.
14586 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
14588 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14590 PR libmudflap/53359
14591 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14592 not found in the symtab.
14594 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14597 PR rtl-optimization/55547
14598 PR rtl-optimization/53827
14601 * alias.c (offset_overlap_p): New, factored out of...
14602 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14603 the conservative special case for symbolic constants. Don't
14604 adjust zero sizes on alignment.
14606 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14608 PR rtl-optimization/52573
14609 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14610 REG_UNUSED for the same register.
14612 2013-01-17 Richard Biener <rguenther@suse.de>
14613 Marek Polacek <polacek@redhat.com>
14615 PR rtl-optimization/55833
14616 * loop-unswitch.c (unswitch_loops): Move loop verification...
14617 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14618 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14619 Set it to true when we're removing a loop from hierarchy tree in
14620 an irreducible region.
14621 (fix_bb_placements): Adjust caller.
14622 (fix_loop_placements): Likewise.
14624 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
14626 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14627 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14628 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14629 Remove ID. Adjust comments.
14630 * config/avr/avr-c.c (avr_builtin_name): Remove.
14631 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14632 * config/avr/avr.c (avr_tolower): New static function.
14633 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14634 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14635 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14638 2013-01-17 Jan Hubicka <jh@suse.cz>
14640 PR tree-optimization/55273
14641 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14643 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
14646 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14647 store through atomic_store<mode>_1.
14648 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14650 2013-01-17 Martin Jambor <mjambor@suse.cz>
14652 PR tree-optimizations/55264
14653 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14654 for virtual methods.
14655 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14656 virtual methods before inlining is over.
14657 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14659 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14662 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14664 PR rtl-optimization/56005
14665 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14666 pending reads for prefetch.
14668 2013-01-16 Ian Bolton <ian.bolton@arm.com>
14670 * config/aarch64/aarch64.md
14671 (*cstoresi_neg_uxtw): New pattern.
14672 (*cmovsi_insn_uxtw): New pattern.
14673 (*<optab>si3_uxtw): New pattern.
14674 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14675 (*<optab>si3_insn_uxtw): New pattern.
14676 (*bswapsi2_uxtw): New pattern.
14678 2013-01-16 Richard Biener <rguenther@suse.de>
14680 * tree-inline.c (tree_function_versioning): Remove set but
14681 never used variable.
14683 2013-01-16 Richard Biener <rguenther@suse.de>
14685 PR tree-optimization/55964
14686 * tree-flow.h (rename_variables_in_loop): Remove.
14687 (rename_variables_in_bb): Likewise.
14688 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14689 (copy_loop_before): Adjust and delete update-ssa status.
14690 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14691 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
14692 (rename_variables_in_loop): Remove.
14693 (slpeel_update_phis_for_duplicate_loop): Likewise.
14694 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14695 use available cfg machinery instead of duplicating it.
14696 Update PHI nodes and perform poor-mans SSA update here.
14697 (slpeel_tree_peel_loop_to_edge): Adjust.
14699 2013-01-16 Richard Biener <rguenther@suse.de>
14701 PR tree-optimization/54767
14702 PR tree-optimization/53465
14703 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14704 (vrp_visit_phi_node): For PHI arguments coming via backedges
14705 drop all symbolical range information.
14706 (execute_vrp): Compute backedges.
14708 2013-01-16 Richard Biener <rguenther@suse.de>
14710 * doc/install.texi: Update CLooG and ISL requirements to
14713 2013-01-16 Christian Bruel <christian.bruel@st.com>
14716 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14717 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14718 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14720 2013-01-16 DJ Delorie <dj@redhat.com>
14722 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14723 (UNSPECV_SP_SWITCH_E): New.
14724 (sp_switch_1): Change to an unspec.
14725 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14728 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
14730 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14731 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14732 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14733 (expand_mem_thread_fence): Ditto.
14734 (expand_mem_signal_fence): Ditto.
14735 (expand_atomic_load): Ditto.
14736 (expand_atomic_store): Ditto.
14738 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
14740 PR rtl-optimization/55547
14741 PR rtl-optimization/53827
14744 * alias.c (memrefs_conflict_p): Set sizes to negative after
14747 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14750 * function.c (thread_prologue_and_epilogue_insns): Always
14751 add crtl->drap_reg to set_up_by_prologue.set, even if
14752 stack_realign_drap is false.
14754 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14756 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14757 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14758 *call): Fix indention.
14760 2013-01-15 Tom de Vries <tom@codesourcery.com>
14763 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14766 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14768 PR rtl-optimization/55153
14769 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14771 2013-01-15 Martin Jambor <mjambor@suse.cz>
14773 PR tree-optimization/55920
14774 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14775 accesses as grp_to_be_debug_replaced.
14777 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14779 PR tree-optimization/55920
14780 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14781 there is non-useless type conversion needed from debug rhs to lhs,
14782 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14784 2013-01-15 Joseph Myers <joseph@codesourcery.com>
14785 Mikael Pettersson <mikpe@it.uu.se>
14788 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14790 (ASM_OUTPUT_CASE_LABEL): Remove.
14791 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14792 * final.c (shorten_branches): Update alignment of labels before
14793 jump tables if CASE_VECTOR_SHORTEN_MODE.
14795 2013-01-15 Richard Biener <rguenther@suse.de>
14798 * system.h: Do not include gmp.h for building host tools.
14800 2013-01-15 Richard Biener <rguenther@suse.de>
14802 PR middle-end/55882
14803 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14804 account for bitpos when computing alignment.
14806 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14808 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14809 (ix86_target_macros_internal): Likewise.
14811 * config/i386/i386.c (m_CORE2I7): Removed.
14812 (m_CORE_HASWELL): New macro.
14813 (m_CORE_ALL): Likewise.
14814 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14815 (initial_ix86_arch_features): Likewise.
14816 (processor_target_table): Initializations for Core avx2.
14817 (cpu_names): New names "core-avx2".
14818 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14819 PROCESSOR_CORE_HASWELL.
14820 (ix86_issue_rate): New case.
14821 (ia32_multipass_dfa_lookahead): Likewise.
14822 (ix86_sched_init_global): Likewise.
14824 * config/i386/i386.h (TARGET_HASWELL): New macro.
14825 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14826 (processor_type): New PROCESSOR_HASWELL.
14828 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14830 PR tree-optimization/55955
14831 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14832 *SHIFT_EXPR and *ROTATE_EXPR codes.
14834 PR tree-optimization/48766
14835 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14836 -ftrapv disable -fwrapv.
14838 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14841 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14842 etc. to 1 and not to __flash.
14843 Use LL suffix for __INT24_MAX__ with -mint8.
14844 Use ULL suffix for __UINT24_MAX__ with -mint8.
14846 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14848 * config/avr/avr-arch.h
14849 (struct base_arch_s): Use typedef avr_arch_t instead.
14850 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14851 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14852 * config/avr/avr.c: Same.
14853 * config/avr/avr-devices.c: Same.
14854 * config/avr/driver-avr.c: Same.
14855 * config/avr/gen-avr-mmcu-texi.c: Same.
14856 * config/avr/avr-mcus.def: Adjust comment.
14858 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14860 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14861 * config/aarch64/iterators.md (VALLDI): New.
14863 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
14864 Andi Kleen <ak@linux.intel.com>
14867 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14868 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14871 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14873 * config/avr/avr-stdint.h: Remove trailing blanks.
14874 * config/avr/avr-log.h: Same.
14875 * config/avr/avr-arch.h: Same.
14876 * config/avr/avr-devices.c: Same.
14877 * config/avr/avr-dimode.md: Same.
14878 * config/avr/predicates.md: Same.
14879 * config/avr/avr-c.c: Same. And fix typo.
14881 * config/avr/avr-protos.h: Same. And:
14882 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14883 (init_cumulative_args): Rename to avr_init_cumulative_args.
14884 (expand_prologue): Rename to avr_expand_prologue.
14885 (expand_epilogue): Rename to avr_expand_epilogue.
14886 (adjust_insn_length): Rename to avr_adjust_insn_length.
14887 (notice_update_cc): Rename to avr_notice_update_cc.
14888 (final_prescan_insn): Rename to avr_final_prescan_insn.
14889 * config/avr/avr.c: Same.
14890 * config/avr/avr.h: Same.
14891 * config/avr/avr.md: Remove trailing blanks.
14892 (prologue): Use avr_expand_prologue.
14893 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14895 2013-01-14 Richard Biener <rguenther@suse.de>
14897 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14898 verify_location, collect_subblocks): New functions.
14899 (verify_gimple_in_cfg): Verify that locations only reference
14900 BLOCKs in the functions BLOCK tree.
14902 2013-01-14 Richard Biener <rguenther@suse.de>
14904 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14906 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14908 (insert_out_of_ssa_copy_on_edge): Likewise.
14909 (rewrite_close_phi_out_of_ssa): Likewise.
14910 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14912 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14913 propagated constants.
14914 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14917 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14919 * config/avr/avr-modes.def: Add GPL copyright notice.
14921 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
14923 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14924 MEMMODEL_MASK to determine memory model.
14925 (atomic_store<mode>): Ditto from operands[2].
14926 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14928 2013-01-13 Jakub Jelinek <jakub@redhat.com>
14931 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14932 (fold_gimple_assign): Don't call unshare_expr here.
14933 (fold_ctor_reference): Call unshare_expr.
14935 2013-01-13 Terry Guo <terry.guo@arm.com>
14937 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14938 * doc/fragments.texi: Document MULTILIB_REUSE.
14939 * gcc.c (multilib_reuse): New internal spec.
14940 (set_multilib_dir): Also search multilib from multilib_reuse.
14941 * genmultilib (tmpmultilib3): Refactor code.
14942 (tmpmultilib4): Ditto.
14943 (multilib_reuse): New multilib argument.
14945 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14947 * Makefile.in: Update copyright.
14949 2013-01-12 Tom de Vries <tom@codesourcery.com>
14951 PR middle-end/55890
14952 * calls.c (expand_call): Check if arg_nr is valid.
14954 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14956 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14957 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14958 documentation. Add missing '__' in front of
14959 __builtin_ia32_packssdw256.
14961 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14964 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14965 NO_REGS for larl operands.
14966 (s390_reload_larl_operand): Use s390_load_address instead of
14969 2013-01-11 Richard Biener <rguenther@suse.de>
14971 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14972 (verify_node_sharing): ... here.
14973 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14975 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14977 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14978 Substitute TREECHECKING.
14979 * configure: Regenerate.
14980 * Makefile.in (TREECHECKING): New.
14982 2013-01-11 Richard Guenther <rguenther@suse.de>
14984 PR tree-optimization/44061
14985 * tree-vrp.c (extract_range_basic): Compute zero as
14986 value-range for __builtin_constant_p of function parameters.
14988 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14990 Update copyright years.
14992 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14994 PR rtl-optimization/55672
14995 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14996 const to be eliminable.
14998 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
15000 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
15001 * configure: Regenerate.
15003 2013-01-10 Richard Biener <rguenther@suse.de>
15005 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
15007 2013-01-10 Richard Biener <rguenther@suse.de>
15010 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
15011 locations for virtual PHI arguments.
15012 (rewrite_update_phi_arguments): Likewise.
15014 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
15016 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
15019 2013-01-10 Jakub Jelinek <jakub@redhat.com>
15021 PR tree-optimization/55921
15022 * tree-complex.c (expand_complex_asm): New function.
15023 (expand_complex_operations_1): Call it for GIMPLE_ASM.
15025 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15028 * config/s390/s390.c (s390_symref_operand_p)
15029 (s390_loadrelative_operand_p): Merge the two functions.
15030 (s390_check_qrst_address, print_operand_address): Add parameters
15031 to s390_loadrelative_operand_p invokation.
15032 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
15033 (s390_reload_larl_operand, s390_secondary_reload): Use
15034 s390_loadrelative_operand_p instead of s390_symref_operand_p.
15035 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
15037 2013-01-09 Mike Stump <mikestump@comcast.net>
15039 * dse.c (record_store): Remove unnecessary assert.
15041 2013-01-09 Jan Hubicka <jh@suse.cz>
15043 PR tree-optimization/55569
15044 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
15045 * cfgloop.h (scale_loop_profile): Likewise.
15047 2013-01-09 Jan Hubicka <jh@suse.cz>
15050 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
15052 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
15054 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
15056 PR middle-end/55114
15057 * expr.h (maybe_emit_group_store): Declare.
15058 * expr.c (maybe_emit_group_store): New function.
15059 * builtins.c (expand_builtin_int_roundingfn): Call it.
15060 (expand_builtin_int_roundingfn_2): Likewise.
15062 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
15064 PR rtl-optimization/55829
15065 * lra-constraints.c (match_reload): Add code for absent output.
15066 (curr_insn_transform): Add code for reloads of matched inputs
15069 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
15071 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
15072 attribute of movddup insn to DF.
15073 (*vec_interleave_lowv2df): Ditto.
15074 (vec_dupv2df): Ditto.
15076 2013-01-09 Jan Hubicka <jh@suse.cz>
15078 PR tree-optimiation/55875
15079 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
15080 EVERY_ITERATION parameter.
15081 (number_of_iterations_exit): Check if exit is executed every iteration.
15082 (idx_infer_loop_bounds): Similarly here.
15083 (n_of_executions_at_most): Simplify
15084 to only test for cases where statement is dominated by the
15085 particular bound; handle correctly the "postdominance" test.
15086 (scev_probably_wraps_p): Use max loop iterations info
15087 as a global bound first.
15089 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
15090 Nick Clifton <nickc@redhat.com>
15092 * config/v850/v850.md (cbranchsf4): New pattern.
15093 (cstoresf4): New pattern.
15094 (cbranchdf4): New pattern.
15095 (cstoredf4): New pattern.
15096 (movsicc): Disallow floating point comparisons.
15097 (cmpsf_le_insn): Fix order of operators.
15098 (cmpsf_lt_insn): Likewise.
15099 (cmpsf_eq_insn): Likewise.
15100 (cmpdf_le_insn): Likewise.
15101 (cmpdf_lt_insn): Likewise.
15102 (cmpdf_eq_insn): Likewise.
15103 (cmpsf_ge_insn): Use LE comparison.
15104 (cmpdf_ge_insn): Likewise.
15105 (cmpsf_gt_insn): Use LT comparison.
15106 (cmpdf_gt_insn): Likewise.
15107 (cmpsf_ne_insn): Delete pattern.
15108 (cmpdf_ne_insn): Delete pattern.
15109 * config/v850/v850.c (v850_gen_float_compare): Use
15110 gen_cmpdf_eq_insn for NE comparison.
15111 (v850_float_z_comparison_operator)
15112 (v850_float_nz_comparison_operator): Move from here ...
15113 * config/v850/predicates.md: ... to here. Move GT and GE
15114 comparisons into v850_float_z_comparison_operator.
15115 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
15117 (v850_float_nz_comparison_operator): Likewise.
15119 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15121 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
15122 with calls to gen_insvsi/gen_insvdi.
15124 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15126 * config/i386/i386.c (initial_ix86_tune_features): Set up
15127 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
15129 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
15130 Jakub Jelinek <jakub@redhat.com>
15132 PR tree-optimization/48189
15133 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
15134 If nitercst is 0, don't predict the exit edge.
15136 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15138 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
15139 in asm_fprintf with reg_names.
15140 (aarch64_print_operand_address): Likewise.
15141 (aarch64_return_addr): Likewise.
15142 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
15144 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15146 * config/pa/pa.h (VAL_U6_BITS_P): Define.
15147 (INT_U6_BITS): Likewise.
15148 * config/pa/predicates.md (uint6_operand): New predicate.
15149 (shift5_operand, shift6_operand): Likewise.
15150 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
15152 (lshrdi3): Use shift6_operand.
15153 (shrpsi4, shrpdi4): New insn patterns.
15154 (extzv): Delete expander.
15155 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
15156 predicates in unamed zero extract patterns. Tighten common constraint.
15157 (extv): Delete expander.
15158 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
15159 predicates in unamed sign extract patterns. Tighten common constraint.
15160 (insv): Delete expander.
15161 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
15162 predicates in unamed insert patterns. Tighten common constraint.
15163 Change uint32_operand predicate to uint6_operand predicate in unamed
15164 DImode pattern to insert constant values of type 1...1xxxx.
15166 2013-01-04 Jan Hubicka <jh@suse.cz>
15168 PR tree-optimization/55823
15169 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
15172 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15173 Uros Bizjak <ubizjak@gmail.com>
15175 PR rtl-optimization/55845
15176 * df-problems.c (can_move_insns_across): Stop scanning at
15177 volatile_insn_p source instruction or give up if
15178 across_from .. across_to range contains any volatile_insn_p
15181 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
15183 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
15184 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
15186 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
15187 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
15189 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15192 * asan.c (asan_clear_shadow): New function.
15193 (asan_emit_stack_protection): Use it.
15195 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
15197 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
15198 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
15199 with tab instead of space.
15201 2013-01-08 Nick Clifton <nickc@redhat.com>
15203 * config/rl78/rl78.c (rl78_expand_prologue): Always select
15204 register bank 0 at the start of an interrupt handler.
15205 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
15208 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15210 * config/aarch64/aarch64-simd.md
15211 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
15212 (aarch64_simd_bsl): Likewise.
15213 (aarch64_vcond_internal<mode>): Likewise.
15214 (vcond<mode><mode>): Likewise.
15215 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
15216 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
15218 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15220 * config/aarch64/aarch64-builtins.c
15221 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
15223 2013-01-08 Martin Jambor <mjambor@suse.cz>
15226 * tree-sra.c (analyze_access_subtree): Return true also after
15227 potentially creating a debug-only replacement.
15229 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15231 PR middle-end/55890
15232 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
15234 PR tree-optimization/54120
15235 * tree-vrp.c (range_fits_type_p): Don't allow
15236 src_precision < precision from signed vr to unsigned_p
15237 if vr->min or vr->max is negative.
15238 (simplify_float_conversion_using_ranges): Test can_float_p
15239 against CODE_FOR_nothing.
15241 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15242 Richard Biener <rguenther@suse.de>
15244 PR middle-end/55851
15245 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
15246 types instead of just INTEGER_TYPE types.
15248 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
15250 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
15253 2013-01-07 Steve Ellcey <sellcey@mips.com>
15256 * config/mips/mips.opt: Change mad to mmad to match documentation.
15258 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15261 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
15262 .progmemx.data now.
15264 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15267 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
15268 (avr_addrspace_t): Add .section_name field.
15269 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
15271 (avr_addrspace): Same. Initialize .section_name. Remove last
15272 NULL entry. Put __memx into .progmemx.data.
15273 (progmem_section_prefix): Remove.
15274 (avr_asm_init_sections): No need to initialize progmem_section.
15275 (avr_asm_named_section): Use avr_addrspace[].section_name to get
15276 section name prefix.
15277 (avr_asm_select_section): Ditto. And use get_unnamed_section to
15278 retrieve the progmem section.
15279 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
15280 boundary to run over avr_addrspace[].
15281 (avr_register_target_pragmas): Ditto.
15283 2013-01-06 Jakub Jelinek <jakub@redhat.com>
15285 * varasm.c (output_constant_def_contents): For asan_protect_global
15286 protected strings, adjust DECL_ALIGN if needed, before testing for
15288 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
15289 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
15291 (output_object_block): For asan protected decls, emit asan padding
15292 after their contents.
15293 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
15294 (asan_finish_file): Test it here instead.
15296 2013-01-07 Nick Clifton <nickc@redhat.com>
15297 Matthias Klose <doko@debian.org>
15298 Doug Kwan <dougkwan@google.com>
15299 H.J. Lu <hongjiu.lu@intel.com>
15302 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
15304 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
15306 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
15308 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
15310 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
15312 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15315 * doc/install.texi (Cross-Compiler-Specific Options): Document
15318 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
15320 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
15321 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
15322 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
15323 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15324 vqmovun_high_s64): Fix source operand number and update copyright.
15326 2013-01-07 Richard Biener <rguenther@suse.de>
15328 PR middle-end/55890
15329 * gimple.h (gimple_call_builtin_p): New overload.
15330 * gimple.c (validate_call): New function.
15331 (gimple_call_builtin_p): Likewise.
15332 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15333 Use gimple_call_builtin_p.
15334 (find_func_clobbers): Likewise.
15335 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15336 (strlen_optimize_stmt): Likewise.
15338 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15340 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15341 (vld1q_dup_*): Likewise.
15342 (vld1_*): Likewise.
15343 (vld1q_*): Likewise.
15344 (vld1_lane_*): Likewise.
15345 (vld1q_lane_*): Likewise.
15347 2013-01-07 Richard Biener <rguenther@suse.de>
15349 * lto-streamer.h (LTO_minor_version): Bump to 2.
15351 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15353 * config/aarch64/aarch64-protos.h
15354 (aarch64_const_double_zero_rtx_p): Rename to...
15355 (aarch64_float_const_zero_rtx_p): ...this.
15356 (aarch64_float_const_representable_p): New.
15357 (aarch64_output_simd_mov_immediate): Likewise.
15358 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15359 move immediate case.
15360 * config/aarch64/aarch64.c
15361 (aarch64_const_double_zero_rtx_p): Rename to...
15362 (aarch64_float_const_zero_rtx_p): ...this.
15363 (aarch64_print_operand): Allow printing of new constants.
15364 (aarch64_valid_floating_const): New.
15365 (aarch64_legitimate_constant_p): Check for valid floating-point
15367 (aarch64_simd_valid_immediate): Likewise.
15368 (aarch64_vect_float_const_representable_p): New.
15369 (aarch64_float_const_representable_p): Likewise.
15370 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15371 (aarch64_output_simd_mov_immediate): New.
15372 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15373 (*movdf_aarch64): Likewise.
15374 * config/aarch64/constraints.md (Ufc): New.
15375 (Y): call aarch64_float_const_zero_rtx.
15376 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15378 2013-01-07 Richard Biener <rguenther@suse.de>
15380 PR tree-optimization/55888
15381 PR tree-optimization/55862
15382 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15383 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15384 not if it is contained therein.
15386 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15388 * config/avr/t-avr: Typo.
15390 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15393 * config/avr/t-avr: Don't automatically rebuild
15394 $(srcdir)/config/avr/t-multilib
15395 $(srcdir)/config/avr/avr-tables.opt
15396 $(srcdir)/doc/avr-mmcu.texi
15397 (avr-mcus): New phony target to build them on request.
15398 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15399 * avr/avr-mcus.def: Adjust comments.
15401 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
15403 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15405 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15407 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15409 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15411 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15413 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
15415 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15416 to generate profiling.
15417 * config/rs6000/aix64.h (LIB_SPEC): Same.
15419 2013-01-04 Andrew Pinski <apinski@cavium.com>
15421 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15423 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15425 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
15427 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15429 (ix86_expand_move): Ditto.
15430 (ix86_zero_extend_to_Pmode): Ditto.
15431 (ix86_expand_call): Ditto.
15432 (ix86_expand_special_args_builtin): Ditto.
15433 (ix86_expand_builtin): Ditto.
15435 2013-01-04 Richard Biener <rguenther@suse.de>
15437 PR tree-optimization/55862
15438 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15439 translating them through PHI nodes.
15441 2013-01-04 Martin Jambor <mjambor@suse.cz>
15443 PR tree-optimization/55755
15444 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15445 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15447 2013-01-04 Marek Polacek <polacek@redhat.com>
15449 PR middle-end/55859
15450 * opts.c (default_options_optimization): Clarify error message.
15452 2013-01-04 Richard Biener <rguenther@suse.de>
15454 PR middle-end/55863
15455 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15458 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15461 * config/pa/pa.md (movsi): Revert previous change.
15462 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15465 2013-01-03 Richard Henderson <rth@redhat.com>
15467 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15468 after eliminating TLS symbols.
15470 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
15473 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15474 * graphite-poly.c (debug_gmp_value): Likewise.
15476 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
15479 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15480 selected code model, define __code_mode_small__, __code_model_medium__,
15481 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15482 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15483 xchg temporary register with %k. Declare temporary register as
15485 [__x86_64__]: For medium and large code models, preserve %rbx register.
15487 2013-01-03 Richard Biener <rguenther@suse.de>
15489 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
15490 (dump_subscript): Adjust.
15491 (finalize_ddr_dependent): Do not dump redundant info.
15492 (analyze_siv_subscript): Adjust.
15493 (subscript_dependence_tester): Likewise.
15494 (compute_affine_dependence): Likewise.
15496 2013-01-03 Richard Biener <rguenther@suse.de>
15499 2013-01-03 Richard Biener <rguenther@suse.de>
15501 PR tree-optimization/55857
15502 * tree-vect-stmts.c (vectorizable_load): Do not setup
15503 re-alignment for invariant loads.
15505 2013-01-02 Richard Biener <rguenther@suse.de>
15507 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15508 invariant load do not generate a vector load from the scalar location.
15510 2013-01-03 Richard Biener <rguenther@suse.de>
15512 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15513 for not vectorizing.
15514 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15515 not build INDIRECT_REFs, call get_name once only.
15516 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15517 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15519 2013-01-03 Richard Biener <rguenther@suse.de>
15521 PR tree-optimization/55857
15522 * tree-vect-stmts.c (vectorizable_load): Do not setup
15523 re-alignment for invariant loads.
15525 2013-01-03 Richard Biener <rguenther@suse.de>
15528 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15529 prefer a built-in decl.
15531 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15533 * gcc.c (process_command): Update copyright notice dates.
15534 * gcov.c (print_version): Likewise.
15535 * gcov-dump.c (print_version): Likewise.
15537 PR rtl-optimization/55838
15538 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15539 iv0.step, iv1.step and step.
15541 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15542 Marc Glisse <marc.glisse@inria.fr>
15544 PR tree-optimization/55832
15545 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15546 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15547 integer_{one,zero}_node.
15549 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15552 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15553 * var-tracking.c (reverse_op): Don't add reverse ops to
15554 VALUEs that have already
15555 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
15557 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15559 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15561 2013-01-02 Teresa Johnson <tejohnson@google.com>
15563 * dumpfile.c (dump_loc): Print filename with location.
15564 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15565 new location_t parameter to emit complete unroll message with
15566 new dump framework.
15567 (canonicalize_loop_induction_variables): Compute loops location
15568 and pass to try_unroll_loop_completely.
15569 * loop-unroll.c (report_unroll_peel): New function.
15570 (peel_loops_completely): Use new dump format with location
15571 for main dumpfile message, and invoke report_unroll_peel on success.
15572 (decide_unrolling_and_peeling): Ditto.
15573 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15574 by report_unroll_peel.
15575 (decide_peel_completely): Ditto.
15576 (decide_unroll_constant_iterations): Ditto.
15577 (decide_unroll_runtime_iterations): Ditto.
15578 (decide_peel_simple): Ditto.
15579 (decide_unroll_stupid): Ditto.
15580 * cfgloop.c (get_loop_location): New function.
15581 * cfgloop.h (get_loop_location): Declare.
15583 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15585 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15588 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15590 PR middle-end/55198
15591 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15592 BLKmode objects when EXPAND_MEMORY is specified.
15594 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15596 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15598 (fold_builtin_cpu): Do not share cpu model decls across statements.
15600 2013-01-02 Jason Merrill <jason@redhat.com>
15603 * tree.c (build_array_type_1): Revert earlier change.
15605 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15607 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15609 * config/aarch64/aarch64-tune.md: Re-generate.
15611 2013-01-02 Richard Biener <rguenther@suse.de>
15613 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15614 invariant load do not generate a vector load from the scalar location.
15616 2013-01-02 Richard Biener <rguenther@suse.de>
15619 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15620 * configure: Regenerate.
15622 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15624 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15625 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15626 (expand_builtin_int_roundingfn_2): Keep the original target around
15627 for the fallback case.
15629 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15631 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15632 to be clear for sign changes.
15634 2013-01-01 Jan Hubicka <jh@suse.cz>
15636 * ipa-inline-analysis.c: Fix formatting.
15638 2013-01-01 Jakub Jelinek <jakub@redhat.com>
15640 PR tree-optimization/55831
15641 * tree-vect-loop.c (get_initial_def_for_induction): Use
15642 gsi_after_labels instead of gsi_start_bb.
15644 Copyright (C) 2013 Free Software Foundation, Inc.
15646 Copying and distribution of this file, with or without modification,
15647 are permitted in any medium without royalty provided the copyright
15648 notice and this notice are preserved.