1 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
3 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
4 (ashlv2si3): New expander.
5 (*ashlv2si3_i): New define_insn_and_split.
6 * predicates.md (float_operation): Allow patterns with three
9 PR rtl-optimization/58021
10 * mode-switching.c (create_pre_exit): Always split off preceding
11 insns if we are not at the basic block head.
13 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
15 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
16 (UCLIBC_DYNAMIC_LINKER): New macro.
17 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
20 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
22 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
23 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
25 for SF and DF modes. Use ieee_quad_format for TF mode.
26 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
27 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
28 (mips_option_override): Handle `-mnan=legacy'.
29 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
30 `-mabs=2008' and `-mnan=2008'.
31 (OPTION_DEFAULT_SPECS): Add "nan" default.
32 (ASM_SPEC): Handle `-mnan='.
33 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
34 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
36 (neg<mode>2): Likewise.
37 * config/mips/mips.opt (mabs, mnan): New options.
38 * doc/install.texi (Configuration): Document `--with-nan=' option.
39 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
41 (MIPS Options): Document them.
42 * config.gcc <mips*-*-*>: Handle `--with-nan='.
43 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
44 * configure: Regenerate.
45 * config.in: Regenerate.
47 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
49 * config/i386/i386.md (float post-reload splitters): Do not check
50 for subregs of SSE registers.
52 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
53 H.J. Lu <hongjiu.lu@intel.com>
57 * config/i386/i386.md (post-reload splitter
58 to avoid partial SSE reg dependency stalls): New pattern.
60 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
62 * config/s390/s390.md ("movcc"): Swap load and store instructions.
64 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
66 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
67 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
69 2013-07-26 Cary Coutant <ccoutant@google.com>
71 * dwarf2out.c (die_checksum_ordered): Don't include template
72 instantiations in signature.
73 (is_template_parameter): New function.
74 (is_template_instantiation): New function.
75 (generate_skeleton_bottom_up): Don't include template instantiations
77 (generate_skeleton): Likewise.
78 (break_out_comdat_types): Move recursive call to break out nested
80 (prune_unused_types_mark_generic_parms_dies): Call
81 is_template_parameter.
83 2013-07-26 Ian Bolton <ian.bolton@arm.com>
85 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
86 uses vector registers.
87 * config/aarch64/iterators.md: Add attributes rtn and vas.
89 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
90 Richard Earnshaw <richard.earnshaw@arm.com>
92 * combine.c (simplify_comparison): Re-canonicalize operands
94 * config/arm/arm.md (movcond_addsi): New splitter.
96 2013-07-25 Sterling Augustine <saugustine@google.com>
98 * dwarf2out.c (size_of_pubnames): Move code to...
99 (include_pubname_in_output): ...here. New.
100 (want_pubnames): Rearrange.
101 (output_pubnames): Call include_pubname_in_output. Move assertion.
103 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
105 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
107 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
110 * doc/extend.texi: Remove obsolete builtins. Fix
111 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
113 2013-07-25 Jan Hubicka <jh@suse.cz>
115 * cgraph.c (release_function_body): Break out from ...
116 (cgraph_release_function_body): ... this one; also release DECL_RESULT
118 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
120 (create_specialized_node): Update.
121 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
123 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
124 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
125 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
126 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
129 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
131 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
132 addsi3_carryin_alt2_<optab>): Correct output template.
134 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
136 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
137 Adjust for arm_restrict_it.
138 Remove trailing whitespace.
140 2013-07-25 Mark Kettenis <kettenis@openbsd.org>
142 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
143 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
145 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
147 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
149 PR rtl-optimization/57960
150 * lra-constraints.c (process_alt_operands): Use the right mode
151 when checking strict_low.
153 2013-07-25 Jan Hubicka <jh@suse.cz>
155 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
156 * cgraph.c (cgraph_remove_node): Do not release function body
157 when in cgraph streaming.
158 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
159 in other partitions are not considered reachable; fix handling of
162 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
164 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
166 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
171 * config/arm/arm.md ("*sibcall_insn): Replace use of
172 Ss with US. Adjust output for v5 and v4t.
173 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
175 * config/arm/constraints.md ("Ss"): Rename to US.
177 2013-07-25 Terry Guo <terry.guo@arm.com>
179 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
180 shift_add/shift_sub0/shift_sub1 RTXs.
182 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
183 Anton Blanchard <anton@au1.ibm.com>
185 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
186 (altivec_vpks<VI_char>ss): Likewise.
187 (altivec_vpks<VI_char>us): Likewise.
188 (altivec_vpku<VI_char>us): Likewise.
189 (altivec_vpku<VI_char>um): Likewise.
191 2013-07-24 David Malcolm <dmalcolm@redhat.com>
193 Introduce context class.
195 * Makefile.in (CONTEXT_H): New.
196 (OBJS): Add context.o.
197 (toplev.o): Add CONTEXT_H to dependencies.
200 * toplev.c (general_init): Create the singleton gcc::context instance.
206 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
208 PR rtl-optimization/57968
209 * mode-switching.c (create_pre_exit): Allow instructions that
210 don't set a return register to need a non-exit mode.
212 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
213 Anton Blanchard <anton@au1.ibm.com>
215 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
216 operands to vperm for little endian.
217 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
218 of lvsl to create the control mask for a vperm for little endian.
220 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
221 Anton Blanchard <anton@au1.ibm.com>
223 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
224 two operands for little-endian.
226 2013-07-23 Steve Ellcey <sellcey@mips.com>
228 * config/mips/mips.c (mips_case_values_threshold): New.
229 (TARGET_CASE_VALUES_THRESHOLD): Define.
231 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
232 Anton Blanchard <anton@au1.ibm.com>
234 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
235 selection of field for vector splat in little endian mode.
237 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
239 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
240 expanders to rs6000.md.
241 (ior<mode>3): Likewise.
242 (and<mode>3): Likewise.
243 (one_cmpl<mode>2): Likewise.
244 (nor<mode>3): Likewise.
245 (andc<mode>3): Likewise.
246 (eqv<mode>3): Likewise.
247 (nand<mode>3): Likewise.
248 (orc<mode>3): Likewise.
250 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
253 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
254 to split multi-word logical operations.
255 (rs6000_split_logical_di): Likewise.
256 (rs6000_split_logical): Likewise.
258 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
259 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
260 and allow TImode operations in 32-bit.
261 (vsx_and<mode>3_64bit): Likewise.
262 (vsx_ior<mode>3_32bit): Likewise.
263 (vsx_ior<mode>3_64bit): Likewise.
264 (vsx_xor<mode>3_32bit): Likewise.
265 (vsx_xor<mode>3_64bit): Likewise.
266 (vsx_one_cmpl<mode>2_32bit): Likewise.
267 (vsx_one_cmpl<mode>2_64bit): Likewise.
268 (vsx_nor<mode>3_32bit): Likewise.
269 (vsx_nor<mode>3_64bit): Likewise.
270 (vsx_andc<mode>3_32bit): Likewise.
271 (vsx_andc<mode>3_64bit): Likewise.
272 (vsx_eqv<mode>3_32bit): Likewise.
273 (vsx_eqv<mode>3_64bit): Likewise.
274 (vsx_nand<mode>3_32bit): Likewise.
275 (vsx_nand<mode>3_64bit): Likewise.
276 (vsx_orc<mode>3_32bit): Likewise.
277 (vsx_orc<mode>3_64bit): Likewise.
279 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
280 logical types in GPRs.
282 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
283 logical insns to rs6000.md, and allow TImode operations in
285 (altivec_ior<mode>3): Likewise.
286 (altivec_xor<mode>3): Likewise.
287 (altivec_one_cmpl<mode>2): Likewise.
288 (altivec_nor<mode>3): Likewise.
289 (altivec_andc<mode>3): Likewise.
291 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
292 attributes for moving the 128-bit logical operations into
294 (BOOL_REGS_OUTPUT): Likewise.
295 (BOOL_REGS_OP1): Likewise.
296 (BOOL_REGS_OP2): Likewise.
297 (BOOL_REGS_UNARY): Likewise.
298 (BOOL_REGS_AND_CR0): Likewise.
299 (one_cmpl<mode>2): Add support for DI logical operations on
300 32-bit, splitting the operations to 32-bit.
304 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
305 changes to combine the 32/64-bit code, allow logical operations on
306 TI mode in 32-bit, and to use similar match_operator patterns like
307 scalar mode uses. Combine the Altivec and VSX code for logical
308 operations, and move it here.
309 (ior<mode>3, 128-bit types): Likewise.
310 (xor<mode>3, 128-bit types): Likewise.
311 (one_cmpl<mode>3, 128-bit types): Likewise.
312 (nor<mode>3, 128-bit types): Likewise.
313 (andc<mode>3, 128-bit types): Likewise.
314 (eqv<mode>3, 128-bit types): Likewise.
315 (nand<mode>3, 128-bit types): Likewise.
316 (orc<mode>3, 128-bit types): Likewise.
317 (and<mode>3_internal): Likewise.
318 (bool<mode>3_internal): Likewise.
319 (boolc<mode>3_internal1): Likewise.
320 (boolc<mode>3_internal2): Likewise.
321 (boolcc<mode>3_internal1): Likewise.
322 (boolcc<mode>3_internal2): Likewise.
323 (eqv<mode>3_internal1): Likewise.
324 (eqv<mode>3_internal2): Likewise.
325 (one_cmpl1<mode>3_internal): Likewise.
327 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
329 * config/microblaze/microblaze.c (microblaze_expand_prologue):
330 Rename flag_stack_usage to flag_stack_usage_info.
332 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
334 * config/microblaze/sync.md: New file.
335 * config/microblaze/microblaze.md: Include sync.md
336 * config/microblaze/microblaze.c: Add print_operand 'y'.
337 * config/microblaze/constraints.md: Add memory_contraint
338 'Q' which is a single register.
340 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
342 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
344 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
346 * reload.c (find_reloads): Exit loop once we find this operand
347 cannot be reloaded somehow for this alternative.
349 * reload.c (find_reloads): Exit loop once we find a hard register.
351 * rtlanal.c (computed_jump_p): Exit loop once we find label
354 * i386.c (ix86_pad_returns): Exit loop after setting replace.
356 * cfgloopmanip.c (remove_path): Exit loop after setting
359 * gensupport.c (subst_dup): Avoid loop if code is not
360 MATCH_DUP nor MATCH_OP_DUP.
362 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
364 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
366 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
368 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
369 true for SP_REGNUM if mode == ptr_mode.
370 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
371 with value R0_REGNUM + 31.
373 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
375 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
376 pad pointer-typed argument downward.
378 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
380 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
381 and __ILP32__ when the ILP32 model is in use.
383 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
385 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
386 (aarch64_load_symref_appropriately): In the case of
387 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
388 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
389 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
390 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
391 if 'mode' doesn't equal to 'ptr_mode'.
392 (aarch64_output_mi_thunk): Add an assertion on the alignment of
393 'vcall_offset'; change to call aarch64_emit_move differently depending
394 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
395 to calculate the upper bound of 'vcall_offset'.
396 (aarch64_cannot_force_const_mem): Change to also return true if
398 (aarch64_legitimize_reload_address): In the case of large
399 displacements, add new local variable 'xmode' and an assertion
400 based on it; change to use 'xmode' to generate the new rtx and
402 (aarch64_asm_trampoline_template): Change to generate the template
403 differently depending on TARGET_ILP32 or not; change to use
404 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
405 (aarch64_trampoline_size): Removed.
406 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
407 and replace immediate literals with it. Change to use 'ptr_mode'
408 instead of 'DImode' and call convert_memory_address if the mode
409 of 'fnaddr' doesn't equal to 'ptr_mode'.
410 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
412 (aarch64_elf_asm_destructor): Likewise.
413 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
414 on TARGET_ILP32 instead of aarch64_trampoline_size.
415 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
416 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
417 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
418 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
419 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
420 (storewb_pair<GPI:mode>_<P:mode>): ... this.
421 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
422 depending on the value of 'mode'.
423 (add_losym_<mode>): New.
424 (ldr_got_small_<mode>): New, based on ldr_got_small.
425 (ldr_got_small): Remove.
426 (ldr_got_small_sidi): New.
427 * config/aarch64/iterators.md (P): New.
428 (PTR): Change to 'ptr_mode' in the condition.
430 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
432 * config.gcc (aarch64*-*-*): Support --with-abi.
433 (aarch64*-*-elf): Support --with-multilib-list.
434 (aarch64*-*-linux*): Likewise.
435 (supported_defaults): Add abi to aarch64*-*-*.
436 * configure.ac: Mention AArch64 for --with-multilib-list.
437 * configure: Re-generated.
438 * config/aarch64/biarchilp32.h: New file.
439 * config/aarch64/biarchlp64.h: New file.
440 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
442 (MULTILIB_DEFAULTS): Ditto.
443 (DRIVER_SELF_SPECS): Ditto.
444 (ASM_SPEC): Update to also substitute -mabi.
445 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
446 file whose name depends on -mabi= and -mbig-endian.
447 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
449 (POINTER_SIZE): New define.
450 (POINTERS_EXTEND_UNSIGNED): Ditto.
451 (enum aarch64_abi_type): New enumeration tag.
452 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
453 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
454 (TARGET_ILP32): New define.
455 * config/aarch64/aarch64.opt (mabi): New.
457 (ilp32, lp64): New values for -mabi.
458 * config/aarch64/t-aarch64 (comma): New define.
459 (MULTILIB_OPTIONS): Ditto.
460 (MULTILIB_DIRNAMES): Ditto.
461 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
462 * doc/invoke.texi: Document -mabi for AArch64.
464 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
466 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
468 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
469 Anton Blanchard <anton@au1.ibm.com>
471 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
472 endianness when selecting field to splat.
474 2013-07-22 Eric Christopher <echristo@gmail.com>
476 * dwarf2out.c (die_odr_checksum): New function to use
477 CHECKSUM_ macros and ULEB128 for DIE tag.
478 (generate_type_signature): Use.
480 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
482 * config.gcc (sparc*-*-*): Accept leon3 processor.
483 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
484 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
485 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
486 * config/sparc/sparc.opt (enum processor_type): Add leon3.
487 (mfix-ut699): Adjust comment.
488 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
489 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
490 (CPP_CPU_SPEC): Likewise.
491 (ASM_CPU_SPEC): Likewise.
492 * config/sparc/sparc.c (leon3_cost): New constant.
493 (sparc_option_override): Add leon3 support.
494 (mem_ref): New function.
495 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
496 (sparc_do_work_around_errata): Look into the instruction in the delay
497 slot and adjust accordingly. Add fix for the data cache nullify issues
498 of the UT699. Change insertion position for the NOP.
499 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
500 (leon3_load): New reservation.
501 (leon_store): Bump latency to 2.
502 (grfpu): New automaton.
503 (grfpu_alu): New unit.
504 (grfpu_ds): Likewise.
505 (leon_fp_alu): Adjust.
506 (leon_fp_mult): Delete.
507 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
508 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
509 * config/sparc/sparc.md (cpu): Add leon3.
510 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
512 (atomic_test_and_set): Likewise.
515 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
517 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
518 default for R5900 targets.
519 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
520 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
521 * config/mips/mips.c (mips_option_override): Report an error for
522 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
523 for -march=r5900 -mhard-float.
525 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
527 * df-problems.c (can_move_insns_across): Exit loop once we
528 find a non-fixed, non-global register.
530 * ipa-pure-const.c (propagate_nothrow): Exit loop after
533 * omega.c (omega_eliminate_red): Break after setting red_found.
534 (omega_problem_has_red_equations): Similarly after setting found.
535 (omega_query_variable): Similarly after setting coupled.
537 2013-07-22 Marek Polacek <polacek@redhat.com>
539 * gimplify.c: Don't include gimple.h twice.
541 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
543 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
544 instead of TARGET_THUMB1.
545 (Pz): New constraint.
546 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
548 (compare_negsi_si): Likewise.
549 (compare_addsi2_op0): Likewise.
550 (compare_addsi2_op1): Likewise.
551 (addsi3_carryin_<optab>): Likewise.
552 (addsi3_carryin_alt2_<optab>): Likewise.
553 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
555 (subsi3_carryin): Likewise.
556 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
557 (minmax_arithsi): Disable for arm_restrict_it.
558 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
559 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
560 (satsi_<SAT:code>_shift): Likewise.
561 (arm_shiftsi3): Add alternative for 16-bit encoding.
562 (arm32_movhf): Disable for arm_restrict_it.
563 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
564 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
566 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
568 * config/arm/arm.md (attribute "insn"): Delete.
569 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
570 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
571 (not_shiftsi): Update for attribute change.
572 (not_shiftsi_compare0): Likewise.
573 (not_shiftsi_compare0_scratch): Likewise.
574 (arm_one_cmplsi2): Likewise.
575 (thumb1_one_cmplsi2): Likewise.
576 (notsi_compare0): Likewise.
577 (notsi_compare0_scratch): Likewise.
578 (thumb1_movdi_insn): Likewise.
579 (arm_movsi_insn): Likewise.
580 (movhi_insn_arch4): Likewise.
581 (movhi_bytes): Likewise.
582 (arm_movqi_insn): Likewise.
583 (thumb1_movqi_insn): Likewise.
584 (arm32_movhf): Likewise.
585 (thumb1_movhf): Likewise.
586 (arm_movsf_soft_insn): Likewise.
587 (thumb1_movsf_insn): Likewise.
588 (thumb_movdf_insn): Likewise.
589 (movsicc_insn): Likewise.
590 (movsfcc_soft_insn): Likewise.
592 (cond_move): Likewise.
593 (if_move_not): Likewise.
594 (if_not_move): Likewise.
595 (if_shift_move): Likewise.
596 (if_move_shift): Likewise.
597 (if_shift_shift): Likewise.
598 (if_not_arith): Likewise.
599 (if_arith_not): Likewise.
600 (cond_move_not): Likewise.
601 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
602 (neon_mov<mode>): Likewise.
603 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
604 (thumb2_movsi_vfp): Likewise.
605 (movsf_vfp): Likewise.
606 (thumb2_movsf_vfp): Likewise.
607 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
609 (cortexa7_older_only): Likewise.
610 (cortexa7_younger): Likewise.
611 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
612 (1020alu_shift_op): Likewise.
613 (1020alu_shift_reg_op): Likewise.
614 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
615 (alu_shift_op): Likewise.
616 (alu_shift_reg_op): Likewise.
617 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
618 (11_alu_shift_op): Likewise.
619 (11_alu_shift_reg_op): Likewise.
620 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
621 (9_alu_shift_reg_op): Likewise.
622 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
624 (cortex_a15_alu_shift): Likewise.
625 (cortex_a15_alu_shift_reg): Likewise.
626 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
627 (cortex_a5_alu_shift): Likewise.
628 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
630 (cortex_a53_alu_shift): Likewise.
631 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
633 (cortex_a7_alu_reg): Likewise.
634 (cortex_a7_alu_shift): Likewise.
635 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
636 (cortex_a8_alu_shift): Likewise.
637 (cortex_a8_alu_shift_reg): Likewise.
638 (cortex_a8_mov): Likewise.
639 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
640 (cortex_a9_dp_shift): Likewise.
641 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
642 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
643 (cortex_r4_mov): Likewise.
644 (cortex_r4_alu_shift): Likewise.
645 (cortex_r4_alu_shift_reg): Likewise.
646 * config/arm/fa526.md (526_alu_op): Update for attribute change.
647 (526_alu_shift_op): Likewise.
648 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
649 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
650 (626te_alu_shift_op): Likewise.
651 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
652 (726te_alu_op): Likewise.
653 (726te_alu_shift_op): Likewise.
654 (726te_alu_shift_reg_op): Likewise.
655 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
656 (mp626_alu_shift_op): Likewise.
657 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
658 (pj4_alu_e1_conds): Likewise.
660 (pj4_alu_conds): Likewise.
661 (pj4_shift): Likewise.
662 (pj4_shift_conds): Likewise.
663 (pj4_alu_shift): Likewise.
664 (pj4_alu_shift_conds): Likewise.
666 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
668 * config/arm/predicates.md (shiftable_operator_strict_it):
670 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
671 Disable cond_exec version for arm_restrict_it.
672 (thumb2_smaxsi3): Convert to generate cond_exec.
673 (thumb2_sminsi3): Likewise.
674 (thumb32_umaxsi3): Likewise.
675 (thumb2_uminsi3): Likewise.
676 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
677 (thumb2_neg_abssi2): Likewise.
678 (thumb2_mov_scc): Add alternative for 16-bit encoding.
679 (thumb2_movsicc_insn): Adjust alternatives.
680 (thumb2_mov_negscc): Disable for arm_restrict_it.
681 (thumb2_mov_negscc_strict_it): New pattern.
682 (thumb2_mov_notscc_strict_it): New pattern.
683 (thumb2_mov_notscc): Disable for arm_restrict_it.
684 (thumb2_ior_scc): Likewise.
685 (thumb2_ior_scc_strict_it): New pattern.
686 (thumb2_cond_move): Adjust for arm_restrict_it.
687 (thumb2_cond_arith): Disable for arm_restrict_it.
688 (thumb2_cond_arith_strict_it): New pattern.
689 (thumb2_cond_sub): Adjust for arm_restrict_it.
690 (thumb2_movcond): Likewise.
691 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
692 (thumb2_zero_extendhisi2_v6): Likewise.
693 (thumb2_zero_extendqisi2_v6): Likewise.
694 (orsi_notsi_si): Likewise.
695 (orsi_not_shiftsi_si): Likewise.
697 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
699 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
700 instruction sequence is 1 byte shorter.
702 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
704 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
705 it is not needed after split.
707 2013-07-20 Iain Sandoe <iain@codesourcery.com>
710 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
711 second label for nonlocal goto receivers. Don't output pic base labels
712 unless we're producing PIC; mark that action unreachable().
713 (ix86_save_reg): If the function contains a nonlocal label, save the
715 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
716 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
717 (update_pic_label_number_if_needed): New.
718 (machopic_output_function_base_name): Adjust for nonlocal receiver
720 (machopic_should_output_picbase_label): New.
721 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
722 (nonlocal_goto_receiver): New insn and split.
724 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
726 * config/aarch64/aarch64-builtins.c
727 (aarch64_fold_builtin): Fold abs in all modes.
728 * config/aarch64/aarch64-simd-builtins.def
729 (abs): Enable for all modes.
730 * config/aarch64/arm_neon.h
731 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
732 (vabs_f64): Add missing intrinsic.
734 2013-07-19 Ian Bolton <ian.bolton@arm.com>
736 * config/aarch64/arm_neon.h (vabs_s64): New function
738 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
741 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
742 * config/avr/avr.md (adjust_len): Add `round'.
743 * config/avr/avr-protos.h (avr_out_round): New prototype.
744 (avr_out_plus): Add `out_label' argument.
745 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
746 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
747 Handle the case where `insn' is just a pattern.
748 (avr_out_bitop): Handle the case where `insn' is just a pattern.
749 (avr_out_round): New function.
750 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
752 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
754 * config/microblaze/microblaze.c (microblaze_expand_prologue):
755 Add check for flag_stack_usage to handle -fstack-usage support
757 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
759 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
760 interaction for new Power8 flags and VSX.
762 2013-07-18 Sriraman Tallam <tmsriram@google.com>
765 * tree-inline.c (expand_call_inline): Emit errors during
766 early_inlining only if optimization is not turned on.
768 2013-07-18 David Malcolm <dmalcolm@redhat.com>
772 * passes.c (init_optimization_passes): Move the construction of
773 the pass hierarchy into a new passes.def file.
775 * Makefile.in (passes.o): Add dependency on passes.def.
777 2013-07-18 David Malcolm <dmalcolm@redhat.com>
779 * passes.c (init_optimization_passes): Introduce macros for
780 constructing the tree of passes (INSERT_PASSES_AFTER,
781 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
782 TERMINATE_PASS_LIST).
784 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
785 Wei Mi <wmi@google.com>
787 PR rtl-optimization/57878
788 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
790 (reload_pseudo_compare_func): Check nregs first for reload
793 2013-07-18 David Malcolm <dmalcolm@redhat.com>
795 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
797 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
799 * read-rtl.c (validate_const_int): Once an invalid character is
802 * gengtype.c (write_roots): Similarly once we find the "deletable"
803 or "if_marked" option.
805 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
807 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
808 "xtab" and "sat". Move value "clz" from here to ...
809 (attriubte "type"): ... here.
810 (satsi_<SAT:code>): Delete "insn" attribute.
811 (satsi_<SAT:code>_shift): Likewise.
812 (arm_zero_extendqisi2addsi): Likewise.
813 (arm_extendqisi2addsi): Likewise.
814 (clzsi2): Update for attribute changes.
816 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
818 (arm_usatsihi): Likewise.
819 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
821 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
823 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
824 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
825 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
826 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
827 in alphabetical order.
828 (attribute "core_cycles"): Update for attribute changes.
829 (arm_addsi3): Likewise.
830 (addsi3_compare0): Likewise.
831 (addsi3_compare0_scratch): Likewise.
832 (addsi3_compare_op1): Likewise.
833 (addsi3_compare_op2): Likewise.
834 (compare_addsi2_op0): Likewise.
835 (compare_addsi2_op1): Likewise.
836 (addsi3_carryin_shift_<optab>): Likewise.
837 (subsi3_carryin_shift): Likewise.
838 (rsbsi3_carryin_shift): Likewise.
839 (arm_subsi3_insn): Likewise.
840 (subsi3_compare0): Likewise.
841 (subsi3_compare): Likewise.
842 (arm_andsi3_insn): Likewise.
843 (thumb1_andsi3_insn): Likewise.
844 (andsi3_compare0): Likewise.
845 (andsi3_compare0_scratch): Likewise.
846 (zeroextractsi_compare0_scratch
847 (andsi_not_shiftsi_si): Likewise.
848 (iorsi3_insn): Likewise.
849 (iorsi3_compare0): Likewise.
850 (iorsi3_compare0_scratch): Likewise.
851 (arm_xorsi3): Likewise.
852 (thumb1_xorsi3_insn): Likewise.
853 (xorsi3_compare0): Likewise.
854 (xorsi3_compare0_scratch): Likewise.
855 (satsi_<SAT:code>_shift): Likewise.
857 (arm_shiftsi3): Likewise.
858 (shiftsi3_compare0): Likewise.
859 (not_shiftsi): Likewise.
860 (not_shiftsi_compare0): Likewise.
861 (not_shiftsi_compare0_scratch): Likewise.
862 (arm_one_cmplsi2): Likewise.
863 (thumb_one_complsi2): Likewise.
864 (notsi_compare0): Likewise.
865 (notsi_compare0_scratch): Likewise.
866 (thumb1_zero_extendhisi2): Likewise.
867 (arm_zero_extendhisi2): Likewise.
868 (arm_zero_extendhisi2_v6): Likewise.
869 (arm_zero_extendhisi2addsi): Likewise.
870 (thumb1_zero_extendqisi2): Likewise.
871 (thumb1_zero_extendqisi2_v6): Likewise.
872 (arm_zero_extendqisi2): Likewise.
873 (arm_zero_extendqisi2_v6): Likewise.
874 (arm_zero_extendqisi2addsi): Likewise.
875 (thumb1_extendhisi2): Likewise.
876 (arm_extendhisi2): Likewise.
877 (arm_extendhisi2_v6): Likewise.
878 (arm_extendqisi): Likewise.
879 (arm_extendqisi_v6): Likewise.
880 (arm_extendqisi2addsi): Likewise.
881 (thumb1_extendqisi2): Likewise.
882 (thumb1_movdi_insn): Likewise.
883 (arm_movsi_insn): Likewise.
884 (movsi_compare0): Likewise.
885 (movhi_insn_arch4): Likewise.
886 (movhi_bytes): Likewise.
887 (arm_movqi_insn): Likewise.
888 (thumb1_movqi_insn): Likewise.
889 (arm32_movhf): Likewise.
890 (thumb1_movhf): Likewise.
891 (arm_movsf_soft_insn): Likewise.
892 (thumb1_movsf_insn): Likewise.
893 (movdf_soft_insn): Likewise.
894 (thumb_movdf_insn): Likewise.
895 (arm_cmpsi_insn): Likewise.
896 (cmpsi_shiftsi): Likewise.
897 (cmpsi_shiftsi_swp): Likewise.
898 (arm_cmpsi_negshiftsi_si): Likewise.
899 (movsicc_insn): Likewise.
900 (movsfcc_soft_insn): Likewise.
901 (arith_shiftsi): Likewise.
902 (arith_shiftsi_compare0
903 (arith_shiftsi_compare0_scratch
904 (sub_shiftsi): Likewise.
905 (sub_shiftsi_compare0
906 (sub_shiftsi_compare0_scratch
908 (cond_move): Likewise.
909 (if_plus_move): Likewise.
910 (if_move_plus): Likewise.
911 (if_move_not): Likewise.
912 (if_not_move): Likewise.
913 (if_shift_move): Likewise.
914 (if_move_shift): Likewise.
915 (if_shift_shift): Likewise.
916 (if_not_arith): Likewise.
917 (if_arith_not): Likewise.
918 (cond_move_not): Likewise.
919 (thumb1_ashlsi3): Set type attribute.
920 (thumb1_ashrsi3): Likewise.
921 (thumb1_lshrsi3): Likewise.
922 (thumb1_rotrsi3): Likewise.
923 (shiftsi3_compare0_scratch): Likewise.
924 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
925 (neon_mov<mode>): Likewise.
926 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
928 (thumb2_movsi_insn): Likewise.
929 (thumb2_cmpsi_neg_shiftsi): Likewise.
930 (thumb2_extendqisi_v6): Likewise.
931 (thumb2_zero_extendhisi2_v6): Likewise.
932 (thumb2_zero_extendqisi2_v6): Likewise.
933 (thumb2_shiftsi3_short): Likewise.
934 (thumb2_addsi3_compare0_scratch): Likewise.
935 (orsi_not_shiftsi_si): Likewise.
936 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
937 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
939 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
940 (1020alu_shift_op): Likewise.
941 (1020alu_shift_reg_op): Likewise.
942 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
943 (alu_shift_op): Likewise.
944 (alu_shift_reg_op): Likewise.
945 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
946 (11_alu_shift_op): Likewise.
947 (11_alu_shift_reg_op): Likewise.
948 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
949 (9_alu_shift_reg_op): Likewise.
950 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
952 (cortex_a15_alu_shift): Likewise.
953 (cortex_a15_alu_shift_reg): Likewise.
954 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
956 (cortex_a5_alu_shift): Likewise.
957 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
959 (cortex_a53_alu_shift): Likewise.
960 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
962 (cortex_a7_alu_reg): Likewise.
963 (cortex_a7_alu_shift): Likewise.
964 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
966 (cortex_a8_alu_shift): Likewise.
967 (cortex_a8_alu_shift_reg): Likewise.
968 (cortex_a8_mov): Likewise.
969 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
970 (cortex_a9_dp_shift): Likewise.
971 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
973 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
975 (cortex_r4_mov): Likewise.
976 (cortex_r4_alu_shift): Likewise.
977 (cortex_r4_alu_shift_reg): Likewise.
978 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
979 (526_alu_shift_op): Likewise.
980 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
981 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
982 (626te_alu_shift_op): Likewise.
983 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
984 (726te_alu_op): Likewise.
985 (726te_alu_shift_op): Likewise.
986 (726te_alu_shift_reg_op): Likewise.
987 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
988 (mp626_alu_shift_op): Likewise.
989 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
990 (pj4_alu_e1_conds): Likewise.
992 (pj4_alu_conds): Likewise.
993 (pj4_shift): Likewise.
994 (pj4_shift_conds): Likewise.
995 (pj4_alu_shift): Likewise.
996 (pj4_alu_shift_conds): Likewise.
997 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
999 (cortexa7_older_only): Likewise.
1000 (cortexa7_younger): Likewise.
1002 2013-07-18 David Malcolm <dmalcolm@redhat.com>
1004 * ipa-pure-const.c (generate_summary): Rename to...
1005 (pure_const_generate_summary): ... this.
1007 2013-07-17 Iain Sandoe <iain@codesourcery.com>
1009 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
1011 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
1014 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
1017 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1019 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
1020 enabled without -march=zEC12.
1021 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
1024 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1026 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
1027 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
1028 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
1029 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
1030 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
1031 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
1032 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
1034 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
1035 and ISA_HAS_NMADD3_NMSUB3.
1036 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
1037 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
1038 (nmsub4<mode>, nmsub3<mode>): Likewise.
1039 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
1041 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1043 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
1044 TARGET_MIPS5400 checking.
1046 2013-07-16 Jakub Jelinek <jakub@redhat.com>
1047 Peter Bergner <bergner@vnet.ibm.com>
1049 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
1050 registers in the comment.
1051 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
1052 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
1053 rather than FIRST_PSEUDO_REGISTERS.
1055 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
1057 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1058 enable extra ISA flags with TARGET_HTM.
1060 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1062 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
1065 2013-07-15 Cong Hou <congh@google.com>
1067 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
1068 in compare function for sorting.
1070 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
1072 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
1073 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
1074 * config/rs6000/rs6000.opt: Add -mhtm option.
1075 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
1076 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
1077 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1078 __HTM__ if the HTM instructions are available.
1079 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
1080 htm_spr_reg_operand): New define_predicates.
1081 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
1082 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
1084 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
1085 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
1086 HTM builtin functions.
1087 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
1088 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
1089 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
1090 (rs6000_builtin_mask_calculate): Likewise.
1091 (rs6000_option_override_internal): Likewise.
1092 (bdesc_htm): Add new HTM builtin support.
1093 (htm_spr_num): New function.
1094 (htm_spr_regno): Likewise.
1095 (rs6000_htm_spr_icode): Likewise.
1096 (htm_expand_builtin): Likewise.
1097 (htm_init_builtins): Likewise.
1098 (rs6000_expand_builtin): Add support for HTM builtin functions.
1099 (rs6000_init_builtins): Likewise.
1100 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
1102 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
1103 (TARGET_HTM, MASK_HTM): Define macros.
1104 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
1105 (FIXED_REGISTERS): Likewise.
1106 (CALL_USED_REGISTERS): Likewise.
1107 (CALL_REALLY_USED_REGISTERS): Likewise.
1108 (REG_ALLOC_ORDER): Likewise.
1109 (enum reg_class): Likewise.
1110 (REG_CLASS_NAMES): Likewise.
1111 (REG_CLASS_CONTENTS): Likewise.
1112 (REGISTER_NAMES): Likewise.
1113 (ADDITIONAL_REGISTER_NAMES): Likewise.
1114 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
1115 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
1116 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
1117 * config/rs6000/htm.md: New file.
1118 * config/rs6000/htmintrin.h: New file.
1119 * config/rs6000/htmxlintrin.h: New file.
1121 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
1123 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1124 Define SYMBOL_TINY_GOT, update comment.
1125 * config/aarch64/aarch64.c
1126 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
1127 (aarch64_expand_mov_immediate): Likewise.
1128 (aarch64_print_operand): Likewise.
1129 (aarch64_classify_symbol): Likewise.
1130 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
1131 (ldr_got_tiny): Define.
1133 2013-07-13 Tobias Grosser <tobias@grosser.es>
1135 PR tree-optimization/54094
1136 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
1137 scheduling dimension for the parallelism check from the polyhedral
1138 information in the AST.
1139 * graphite-dependences.c (carries_deps): Do not assume the schedule is
1142 2013-07-13 Jason Merrill <jason@redhat.com>
1144 * print-tree.c (debug_vec_tree): Use debug_raw.
1145 (debug_raw (vec<tree, va_gc> &)): New.
1146 (debug_raw (vec<tree, va_gc> *)): New.
1147 * tree.h: Declare them.
1149 2013-07-13 Bin Cheng <bin.cheng@arm.com>
1151 * ifcvt.c (ifcvt_after_combine): New static variable.
1152 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
1154 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
1155 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
1156 rest_of_handle_if_after_reload): Pass new argument for if_convert.
1158 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
1160 * config/mips/mips.c (mips_expand_call): Remove empty statement.
1162 2013-07-12 Michael Matz <matz@suse.de>
1165 * convert.c (convert_to_real): Reject non-float inner types.
1167 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
1169 * config/aarch64/aarch64-protos.h
1170 (aarch64_simd_immediate_valid_for_move): Remove.
1171 * config/aarch64/aarch64.c (simd_immediate_info): New member.
1172 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
1174 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
1176 2013-07-11 Steve Ellcey <sellcey@mips.com>
1178 * config/mips/mips.c (mips_conditional_register_usage): Do not
1179 use t[0-7] registers in MIPS16 mode when optimizing for size.
1181 2013-07-11 Sriraman Tallam <tmsriram@google.com>
1183 * config/i386/i386.c (dispatch_function_versions): Fix array
1184 indexing of function_version_info to match actual_versions.
1186 2013-07-11 Teresa Johnson <tejohnson@google.com>
1188 * vec.h (struct va_gc): Move release out-of-line.
1189 (va_gc::release): Call ggc_free on released vec.
1191 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1193 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
1194 Require GOT register as additional operand in UNSPEC.
1195 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
1196 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1197 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1198 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
1199 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
1200 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
1201 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
1203 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
1206 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1207 name seen by assembler/linker rather if available.
1209 2013-07-11 Andreas Schwab <schwab@suse.de>
1211 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1213 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
1215 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
1217 2013-07-10 Joseph Myers <joseph@codesourcery.com>
1219 * doc/tm.texi.in: Move hook documentation to ....
1220 * target.def: ... here.
1222 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1224 * doc/tm.texi: Regenerate.
1226 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1229 * doc/invoke.texi: Document -Wconditionally-supported.
1231 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1234 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1237 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1240 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1241 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1242 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1243 Remove duplicate devices.
1244 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1245 * config/avr/t-multilib: Regenerate.
1246 * config/avr/avr-tables.opt: Regenerate.
1247 * doc/avr-mmcu.texi: Regenerate.
1249 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1252 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1254 2013-07-10 Graham Stott <graham.stott@btinternet.com>
1256 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1257 the cost of MULT when optimizing for size.
1259 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1261 * config/cr16/cr16-protos.h: Don't include target.h.
1263 2013-07-09 Joseph Myers <joseph@codesourcery.com>
1265 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1266 adjust register size for TDmode and TFmode for VSX registers.
1268 2013-07-08 Kai Tietz <ktietz@redhat.com>
1271 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1272 hook_bool_const_tree_true.
1274 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1276 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1277 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1278 * config/s390/s390.md: Define FPR*_REGNUM constants.
1279 Fix FPR2_REGNUM constant (18 -> 17).
1280 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1281 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1282 ("trunc<BFP:mode><DFP_ALL:mode>2")
1283 ("trunc<DFP_ALL:mode><BFP:mode>2")
1284 ("*extend<BFP:mode><DFP_ALL:mode>2")
1285 ("*extend<DFP_ALL:mode><BFP:mode>2")
1286 ("extend<BFP:mode><DFP_ALL:mode>2")
1287 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1290 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1292 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
1294 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1296 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1297 and cfun_fpr_bit_p to cfun_fpr_save_p.
1298 (s390_frame_area, s390_register_info, s390_frame_info)
1299 (s390_emit_prologue, s390_emit_epilogue)
1300 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1302 * config/s390/s390.h: Define *_REGNUM macros for floating point
1305 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1307 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1309 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1311 PR rtl-optimization/57786
1312 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1313 and break out of the loop when it is set to false.
1315 2013-07-08 Jakub Jelinek <jakub@redhat.com>
1318 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1319 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1320 (const_int 63)) 0)).
1321 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1322 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1323 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1325 PR rtl-optimization/57829
1326 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1327 mask bits outside of mode are just sign-extension from mode to HWI.
1329 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1331 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1332 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1333 adjust_address instead of change_address to keep info about alignment.
1334 (emit_strmov): Remove.
1335 (emit_memmov): New function.
1336 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1337 (expand_movmem_epilogue): Likewise and return updated rtx for
1339 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1340 destination and source.
1341 (decide_alignment): Refactor, handle vector_loop.
1342 (ix86_expand_movmem): Likewise.
1343 (ix86_expand_setmem): Likewise.
1344 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1346 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
1348 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1349 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1351 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1353 * config/i386/sse.md (sse_movlhps): Change alternative 3
1354 of operand 2 to "m".
1356 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1359 * config/i386/sse.md (iptr): New mode attribute.
1360 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1361 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1362 (<sse>_vmmul<mode>3): Ditto.
1363 (<sse>_vmdiv<mode>3): Ditto.
1364 (sse_vmrcpv4sf2): Ditto.
1365 (<sse>_vmsqrt<mode>2): Ditto.
1366 (sse_vmrsqrtv4sf2): Ditto.
1367 (<sse>_vm<code><mode>3): Ditto.
1368 (avx_vmcmp<mode>3): Ditto.
1369 (<sse>_vmmaskcmp<mode>3): Ditto.
1370 (<sse>_comi): Ditto.
1371 (<sse>_ucomi): Ditto.
1372 (*xop_vmfrcz_<mode>): Ditto.
1373 (*fmai_fmadd_<mode>): Ditto.
1374 (*fmai_fmsub_<mode>): Ditto.
1375 (*fmai_fnmadd_<mode>): Ditto.
1376 (*fmai_fnmsub_<mode>): Ditto.
1377 (*fma4i_vmfmadd_<mode>): Ditto.
1378 (*fma4i_vmfmsub_<mode>): Ditto.
1379 (*fma4i_vmfnmadd_<mode>): Ditto.
1380 (*fma4i_vmfnmsub_<mode>): Ditto.
1381 (*xop_vmfrcz_<mode>): Ditto.
1382 (sse_cvtps2pi): Ditto.
1383 (sse_cvttps2pi): Ditto.
1384 (sse_cvtss2si): Ditto.
1385 (sse_cvtss2si_2): Ditto.
1386 (sse_cvtss2siq_2): Ditto.
1387 (sse_cvttss2si): Ditto.
1388 (sse_cvttss2siq): Ditto.
1389 (sse_cvtsd2si): Ditto.
1390 (sse_cvtsd2si_2): Ditto.
1391 (sse_cvtsd2siq_2): Ditto.
1392 (sse_cvttsd2si): Ditto.
1393 (sse_cvttsd2siq): Ditto.
1394 (sse_cvtsd2ss): Ditto.
1395 (sse_cvtss2sd): Ditto.
1396 (avx2_pbroadcast<mode>): Ditto.
1397 (avx2_pbroadcast<mode>_1): Ditto.
1398 (*avx_vperm_broadcast_v4sf): Ditto.
1400 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1401 (sse_movlhps): Ditto.
1402 (sse_storehps): Ditto.
1403 (sse_loadhps): Ditto.
1404 (sse_storelps): Ditto.
1405 (sse_loadlps): Ditto.
1406 (*vec_concatv4sf): Ditto.
1407 (*vec_interleave_highv2df): Ditto.
1408 (*vec_interleave_lowv2df): Ditto.
1409 (*vec_extractv2df_1_sse): Ditto.
1410 (*vec_extractv2df_0_sse): Ditto.
1411 (sse2_storelpd): Ditto.
1412 (sse2_loadlpd): Ditto.
1413 (sse2_movsd): Ditto.
1414 (*vec_concatv4si): Ditto.
1415 (vec_concatv2di): Ditto.
1417 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1418 for Intel asm dialect.
1419 (mmx_punpcklwd): Ditto.
1420 (mmx_punpckldq): Ditto.
1422 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1423 for intel assembler dialect.
1425 2013-07-06 Jakub Jelinek <jakub@redhat.com>
1428 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1429 for BUILT_IN_C{LZ,LRSB}*.
1430 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1431 * tree-vrp.c (extract_range_basic): Handle
1432 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1433 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1434 fall thru to code calling set_value*.
1435 * builtins.c (expand_builtin): Remove *IMAX cases.
1436 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1437 if width is bigger than 2*HWI.
1439 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1441 PR rtl-optimization/55342
1442 * lra-int.h (lra_subreg_reload_pseudos): New.
1443 * lra.c: Add undoing optional reloads to the block diagram.
1444 (lra_subreg_reload_pseudos): New.
1445 (lra_optional_reload_pseudos): Change comments.
1446 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1447 lra_optional_reload_pseudos after undo transformations.
1448 * lra-assigns.c (pseudo_prefix_title): New.
1449 (lra_setup_reg_renumber): Use it.
1450 (spill_for): Ditto. Check subreg reload pseudos too.
1451 (assign_by_spills): Consider subreg reload pseudos too.
1452 * lra-constraints.c (simplify_operand_subreg): Use
1453 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1454 (curr_insn_transform): Recognize and do optional reloads.
1455 (undo_optional_reloads): New.
1456 (lra_undo_inheritance): Call undo_optional_reloads.
1458 2013-07-05 Thomas Quinot <quinot@adacore.com>
1460 * tree-complex.c (expand_complex_operations_1): Fix typo.
1462 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1464 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1465 (tune_params): New member 'const vec_costs'.
1466 * config/aarch64/aarch64.c (generic_vector_cost): New.
1467 (generic_tunings): New member 'generic_vector_cost'.
1468 (aarch64_builtin_vectorization_cost): New.
1469 (aarch64_add_stmt_cost): New.
1470 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1471 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1473 2013-07-03 Jakub Jelinek <jakub@redhat.com>
1476 * config/i386/predicates.md (vsib_address_operand): Disallow
1477 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1479 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1482 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1483 expand_builtin_setjmp_receiver.
1484 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1485 with NULL for the label parameter.
1486 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1487 the frame-pointer. Adjust comments.
1488 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1489 only if LABEL is non-NULL.
1491 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1493 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1494 (ARM_ABI_AAPCS64): Ditto.
1496 (ARM_DEFAULT_ABI): Ditto.
1498 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1500 * config/aarch64/aarch64-builtins.c
1501 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1502 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1504 * config/aarch64/aarch64-simd.md
1505 (aarch64_ld1<VALL:mode>): New.
1506 (aarch64_st1<VALL:mode>): Likewise.
1507 * config/aarch64/arm_neon.h
1508 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1510 2013-07-02 Sriraman Tallam <tmsriram@google.com>
1512 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1514 (ix86_option_override_internal):Turn on all -mavx target flags by
1515 default as they are dependent on AVX anyway.
1517 2013-07-02 Cary Coutant <ccoutant@google.com>
1519 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1521 (loc_checksum_ordered): Likewise.
1522 (hash_loc_operands): Remove inline keyword.
1524 2013-07-02 Jakub Jelinek <jakub@redhat.com>
1526 PR tree-optimization/57741
1527 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1528 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1529 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1530 Allow REAL_CST step_exprs if flag_associative_math.
1531 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1533 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1535 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1537 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1539 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1541 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1543 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1545 (iorsi3_insn): Likewise.
1546 (arm_xorsi3): Likewise.
1548 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1550 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1552 (attribute "type"): ... here, and prefix with "wmmx_".
1553 (attribute "core_cycles"): Update for attribute changes.
1554 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1555 (tbcstv4hi): Likewise.
1556 (tbcstv2si): Likewise.
1557 (iwmmxt_iordi3): Likewise.
1558 (iwmmxt_xordi3): Likewise.
1559 (iwmmxt_anddi3): Likewise.
1560 (iwmmxt_nanddi3): Likewise.
1561 (iwmmxt_arm_movdi): Likewise.
1562 (iwmmxt_movsi_insn): Likewise.
1563 (mov<mode>_internal): Likewise.
1564 (and<mode>3_iwmmxt): Likewise.
1565 (ior<mode>3_iwmmxt): Likewise.
1566 (xor<mode>3_iwmmxt): Likewise.
1567 (add<mode>3_iwmmxt): Likewise.
1568 (ssaddv8qi3): Likewise.
1569 (ssaddv4hi3): Likewise.
1570 (ssaddv2si3): Likewise.
1571 (usaddv8qi3): Likewise.
1572 (usaddv4hi3): Likewise.
1573 (usaddv2si3): Likewise.
1574 (sub<mode>3_iwmmxt): Likewise.
1575 (sssubv8qi3): Likewise.
1576 (sssubv4hi3): Likewise.
1577 (sssubv2si3): Likewise.
1578 (ussubv8qi3): Likewise.
1579 (ussubv4hi3): Likewise.
1580 (ussubv2si3): Likewise.
1581 (mulv4hi3_iwmmxt): Likewise.
1582 (smulv4hi3_highpart): Likewise.
1583 (umulv4hi3_highpart): Likewise.
1584 (iwmmxt_wmacs): Likewise.
1585 (iwmmxt_wmacsz): Likewise.
1586 (iwmmxt_wmacu): Likewise.
1587 (iwmmxt_wmacuz): Likewise.
1588 (iwmmxt_clrdi): Likewise.
1589 (iwmmxt_clrv8qi): Likewise.
1590 (iwmmxt_clr4hi): Likewise.
1591 (iwmmxt_clr2si): Likewise.
1592 (iwmmxt_uavgrndv8qi3): Likewise.
1593 (iwmmxt_uavgrndv4hi3): Likewise.
1594 (iwmmxt_uavgv8qi3): Likewise.
1595 (iwmmxt_uavgv4hi3): Likewise.
1596 (iwmmxt_tinsrb): Likewise.
1597 (iwmmxt_tinsrh): Likewise.
1598 (iwmmxt_tinsrw): Likewise.
1599 (iwmmxt_textrmub): Likewise.
1600 (iwmmxt_textrmsb): Likewise.
1601 (iwmmxt_textrmuh): Likewise.
1602 (iwmmxt_textrmsh): Likewise.
1603 (iwmmxt_textrmw): Likewise.
1604 (iwmxxt_wshufh): Likewise.
1605 (eqv8qi3): Likewise.
1606 (eqv4hi3): Likewise.
1607 (eqv2si3): Likewise.
1608 (gtuv8qi3): Likewise.
1609 (gtuv4hi3): Likewise.
1610 (gtuv2si3): Likewise.
1611 (gtv8qi3): Likewise.
1612 (gtv4hi3): Likewise.
1613 (gtv2si3): Likewise.
1614 (smax<mode>3_iwmmxt): Likewise.
1615 (umax<mode>3_iwmmxt): Likewise.
1616 (smin<mode>3_iwmmxt): Likewise.
1617 (umin<mode>3_iwmmxt): Likewise.
1618 (iwmmxt_wpackhss): Likewise.
1619 (iwmmxt_wpackwss): Likewise.
1620 (iwmmxt_wpackdss): Likewise.
1621 (iwmmxt_wpackhus): Likewise.
1622 (iwmmxt_wpackwus): Likewise.
1623 (iwmmxt_wpackdus): Likewise.
1624 (iwmmxt_wunpckihb): Likewise.
1625 (iwmmxt_wunpckihh): Likewise.
1626 (iwmmxt_wunpckihw): Likewise.
1627 (iwmmxt_wunpckilb): Likewise.
1628 (iwmmxt_wunpckilh): Likewise.
1629 (iwmmxt_wunpckilw): Likewise.
1630 (iwmmxt_wunpckehub): Likewise.
1631 (iwmmxt_wunpckehuh): Likewise.
1632 (iwmmxt_wunpckehuw): Likewise.
1633 (iwmmxt_wunpckehsb): Likewise.
1634 (iwmmxt_wunpckehsh): Likewise.
1635 (iwmmxt_wunpckehsw): Likewise.
1636 (iwmmxt_wunpckelub): Likewise.
1637 (iwmmxt_wunpckeluh): Likewise.
1638 (iwmmxt_wunpckeluw): Likewise.
1639 (iwmmxt_wunpckelsb): Likewise.
1640 (iwmmxt_wunpckelsh): Likewise.
1641 (iwmmxt_wunpckelsw): Likewise.
1642 (ror<mode>3): Likewise.
1643 (ashr<mode>3_iwmmxt): Likewise.
1644 (lshr<mode>3_iwmmxt): Likewise.
1645 (ashl<mode>3_iwmmxt): Likewise.
1646 (ror<mode>3_di): Likewise.
1647 (ashr<mode>3_di): Likewise.
1648 (lshr<mode>3_di): Likewise.
1649 (ashl<mode>3_di): Likewise.
1650 (iwmmxt_wmadds): Likewise.
1651 (iwmmxt_wmaddu): Likewise.
1652 (iwmmxt_tmia): Likewise.
1653 (iwmmxt_tmiaph): Likewise.
1654 (iwmmxt_tmiabb): Likewise.
1655 (iwmmxt_tmiatb): Likewise.
1656 (iwmmxt_tmiabt): Likewise.
1657 (iwmmxt_tmiatt): Likewise.
1658 (iwmmxt_tmovmskb): Likewise.
1659 (iwmmxt_tmovmskh): Likewise.
1660 (iwmmxt_tmovmskw): Likewise.
1661 (iwmmxt_waccb): Likewise.
1662 (iwmmxt_wacch): Likewise.
1663 (iwmmxt_waccw): Likewise.
1664 (iwmmxt_waligni): Likewise.
1665 (iwmmxt_walignr): Likewise.
1666 (iwmmxt_walignr0): Likewise.
1667 (iwmmxt_walignr1): Likewise.
1668 (iwmmxt_walignr2): Likewise.
1669 (iwmmxt_walignr3): Likewise.
1670 (iwmmxt_wsadb): Likewise.
1671 (iwmmxt_wsadh): Likewise.
1672 (iwmmxt_wsadbz): Likewise.
1673 (iwmmxt_wsadhz): Likewise.
1674 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1675 (iwmmxt_wabsdiffb): Likewise.
1676 (iwmmxt_wabsdiffh): Likewise.
1677 (iwmmxt_wabsdiffw): Likewise.
1678 (iwmmxt_waddsubhx): Likewise
1679 (iwmmxt_wsubaddhx): Likewise.
1680 (addc<mode>3): Likewise.
1681 (iwmmxt_avg4): Likewise.
1682 (iwmmxt_avg4r): Likewise.
1683 (iwmmxt_wmaddsx): Likewise.
1684 (iwmmxt_wmaddux): Likewise.
1685 (iwmmxt_wmaddsn): Likewise.
1686 (iwmmxt_wmaddun): Likewise.
1687 (iwmmxt_wmulwsm): Likewise.
1688 (iwmmxt_wmulwum): Likewise.
1689 (iwmmxt_wmulsmr): Likewise.
1690 (iwmmxt_wmulumr): Likewise.
1691 (iwmmxt_wmulwsmr): Likewise.
1692 (iwmmxt_wmulwumr): Likewise.
1693 (iwmmxt_wmulwl): Likewise.
1694 (iwmmxt_wqmulm): Likewise.
1695 (iwmmxt_wqmulwm): Likewise.
1696 (iwmmxt_wqmulmr): Likewise.
1697 (iwmmxt_wqmulwmr): Likewise.
1698 (iwmmxt_waddbhusm): Likewise.
1699 (iwmmxt_waddbhusl): Likewise.
1700 (iwmmxt_wqmiabb): Likewise.
1701 (iwmmxt_wqmiabt): Likewise.
1702 (iwmmxt_wqmiatb): Likewise.
1703 (iwmmxt_wqmiatt): Likewise.
1704 (iwmmxt_wqmiabbn): Likewise.
1705 (iwmmxt_wqmiabtn): Likewise.
1706 (iwmmxt_wqmiatbn): Likewise.
1707 (iwmmxt_wqmiattn): Likewise.
1708 (iwmmxt_wmiabb): Likewise.
1709 (iwmmxt_wmiabt): Likewise.
1710 (iwmmxt_wmiatb): Likewise.
1711 (iwmmxt_wmiatt): Likewise.
1712 (iwmmxt_wmiabbn): Likewise.
1713 (iwmmxt_wmiabtn): Likewise.
1714 (iwmmxt_wmiatbn): Likewise.
1715 (iwmmxt_wmiattn): Likewise.
1716 (iwmmxt_wmiawbb): Likewise.
1717 (iwmmxt_wmiawbt): Likewise.
1718 (iwmmxt_wmiawtb): Likewise.
1719 (iwmmxt_wmiawtt): Likewise.
1720 (iwmmxt_wmiawbbn): Likewise.
1721 (iwmmxt_wmiawbtn): Likewise.
1722 (iwmmxt_wmiawtbn): Likewise.
1723 (iwmmxt_wmiawttn): Likewise.
1724 (iwmmxt_wmerge): Likewise.
1725 (iwmmxt_tandc<mode>3): Likewise.
1726 (iwmmxt_torc<mode>3): Likewise.
1727 (iwmmxt_torvsc<mode>3): Likewise.
1728 (iwmmxt_textrc<mode>3): Likewise.
1729 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1730 (wmmxt_pack): Likewise.
1731 (wmmxt_mult_c1): Likewise.
1732 (wmmxt_mult_c2): Likewise.
1733 (wmmxt_alu_c1): Likewise.
1734 (wmmxt_alu_c2): Likewise.
1735 (wmmxt_alu_c3): Likewise.
1736 (wmmxt_transfer_c1): Likewise.
1737 (wmmxt_transfer_c2): Likewise.
1738 (wmmxt_transfer_c3): Likewise.
1739 (marvell_f_iwmmxt_wstr): Likewise.
1740 (marvell_f_iwmmxt_wldr): Likewise.
1742 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1744 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1746 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1749 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1750 * lra-constraints.c (need_for_split_p): Check call used hard regs
1751 living through calls.
1753 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1754 call used regs for call insn.
1756 2013-06-28 Jakub Jelinek <jakub@redhat.com>
1759 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1760 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1762 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1764 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1766 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1768 * lra-constraints.c (need_for_split_p): Check call used hard regs
1769 living through calls.
1771 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1774 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1775 to tie with any other modes. Eliminate Altivec vector mode tests,
1776 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1777 code, to return 0 if testing MODE2 for a condition, if we've
1778 already tested MODE1 for the same condition.
1780 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1782 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1785 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1787 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1788 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1790 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1792 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1794 (aarch64_symbolic_constant_p): Remove.
1795 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1796 static. Fix line length and white space.
1797 (aarch64_symbolic_constant_p): Remove.
1798 * config/aarch64/predicates.md (aarch64_valid_symref):
1799 Use aarch64_classify_symbol_expression.
1801 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1803 * config/arm/constraints.md (Ts): New constraint.
1804 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1806 (compare_scc): Use "Ts" constraint for operand 0.
1807 (ior_scc_scc): Likewise.
1808 (and_scc_scc): Likewise.
1809 (and_scc_scc_nodom): Likewise.
1810 (ior_scc_scc_cmp): Likewise for operand 7.
1811 (and_scc_scc_cmp): Likewise.
1812 * config/arm/thumb2.md (thumb2_movsi_insn):
1813 Add alternatives for 16-bit encodings.
1814 (thumb2_movhi_insn): Likewise.
1815 (thumb2_movsicc_insn): Likewise.
1816 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1817 (thumb2_negscc): Use "Ts" constraint.
1818 Move mvn instruction outside cond_exec block.
1819 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1820 for 16-bit encodings.
1822 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1824 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1826 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1827 (mulsi3subsi): Likewise.
1828 (mulsidi3adddi): Likewise.
1829 (mulsidi3_v6): Likewise.
1830 (umulsidi3_v6): Likewise.
1831 (umulsidi3adddi_v6): Likewise.
1832 (smulsi3_highpart_v6): Likewise.
1833 (umulsi3_highpart_v6): Likewise.
1834 (mulhisi3tb): Likewise.
1835 (mulhisi3bt): Likewise.
1836 (mulhisi3tt): Likewise.
1837 (maddhisi4): Likewise.
1838 (maddhisi4tb): Likewise.
1839 (maddhisi4tt): Likewise.
1840 (maddhidi4): Likewise.
1841 (maddhidi4tb): Likewise.
1842 (maddhidi4tt): Likewise.
1843 (zeroextractsi_compare0_scratch): Likewise.
1844 (insv_zero): Likewise.
1845 (insv_t2): Likewise.
1846 (anddi_notzesidi_di): Likewise.
1847 (anddi_notsesidi_di): Likewise.
1848 (andsi_notsi_si): Likewise.
1849 (iordi_zesidi_di): Likewise.
1850 (xordi_zesidi_di): Likewise.
1851 (andsi_iorsi3_notsi): Likewise.
1853 (smax_m1): Likewise.
1855 (not_shiftsi): Likewise.
1856 (unaligned_loadsi): Likewise.
1857 (unaligned_loadhis): Likewise.
1858 (unaligned_loadhiu): Likewise.
1859 (unaligned_storesi): Likewise.
1860 (unaligned_storehi): Likewise.
1861 (extv_reg): Likewise.
1862 (extzv_t2): Likewise.
1864 (udivsi3): Likewise.
1865 (arm_zero_extendhisi2addsi): Likewise.
1866 (arm_zero_extendqisi2addsi): Likewise.
1867 (compareqi_eq0): Likewise.
1868 (arm_extendhisi2_v6): Likewise.
1869 (arm_extendqisi2addsi): Likewise.
1870 (arm_movt): Likewise.
1871 (thumb2_ldrd): Likewise.
1872 (thumb2_ldrd_base): Likewise.
1873 (thumb2_ldrd_base_neg): Likewise.
1874 (thumb2_strd): Likewise.
1875 (thumb2_strd_base): Likewise.
1876 (thumb2_strd_base_neg): Likewise.
1877 (arm_negsi2): Add alternative for 16-bit encoding.
1878 (arm_one_cmplsi2): Likewise.
1880 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1882 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1883 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1884 (movdfcc): Likewise.
1885 * config/arm/vfp.md (*thumb2_movsf_vfp):
1886 Disable predication for arm_restrict_it.
1887 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1888 (*thumb2_movdfcc_vfp): Likewise.
1889 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1890 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1891 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1892 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1893 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1894 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1895 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1896 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1897 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1898 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1899 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1900 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1901 Disable predication for arm_restrict_it.
1903 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1905 * config/i386/bmiintrin.h (_bextr_u32): New.
1906 (_bextr_u64): Ditto.
1908 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1910 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1911 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1912 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1913 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1914 * config/mips/n32-elf.h: ...this new file.
1916 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1919 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1920 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1922 2013-06-27 Catherine Moore <clm@codesourcery.com>
1924 * config/mips/mips-tables.opt: Regenerate.
1925 * config/mips/mips-cpus.def: Add m14ke and m14kec.
1926 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1927 * doc/invoke.texi: Add -m14kc.
1929 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1932 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1933 constraints of operand 1 and 2.
1936 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1937 to match RTL canonicalization. Swap predicates and
1938 constraints of operand 1 and 2.
1940 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1942 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1943 Process OP_INOUT regs for splitting too.
1945 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1947 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1948 decl before the loop, initialize to NULL.
1949 (vectorizable_load): Initialize ptr_incr to NULL.
1951 2013-06-27 Martin Jambor <mjambor@suse.cz>
1954 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1955 * ipa-ref.c (ipa_maybe_record_reference): New function.
1956 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1957 * ipa-cp.c (create_specialized_node): Record potential references from
1959 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1961 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1963 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1964 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1965 'mode' to force_reg.
1966 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1967 (aarch64_expand_mov_immediate): Likewise.
1969 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1971 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1972 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1974 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1976 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1977 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1978 (struct machine_function): Add tbegin_p.
1979 (s390_canonicalize_comparison): Fold CC mode compares to
1980 conditional jump if possible.
1981 (s390_emit_jump): Return the emitted jump.
1982 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1983 Handle CCRAWmode compares.
1984 (s390_option_override): Default to -mhtm if available.
1985 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1986 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1987 FPRs instead of df_regs_ever_live_p.
1988 (s390_optimize_nonescaping_tx): New function.
1989 (s390_init_frame_layout): Extend clobbered_regs array to cover
1991 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1992 (s390_expand_tbegin): New function.
1993 (enum s390_builtin): New enum definition.
1994 (code_for_builtin): New array definition.
1995 (s390_init_builtins): New function.
1996 (s390_expand_builtin): New function.
1997 (TARGET_INIT_BUILTINS): Define.
1998 (TARGET_EXPAND_BUILTIN): Define.
1999 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
2000 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
2001 (s390_alc_comparison): Likewise.
2002 * config/s390/s390-modes.def: Add CCRAWmode.
2003 * config/s390/s390.h (processor_flags): Add PF_TX.
2004 (TARGET_CPU_HTM): Define macro.
2005 (TARGET_HTM): Define macro.
2006 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
2007 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
2008 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
2009 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
2010 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
2011 (TBEGIN_MASK, TBEGINC_MASK): New constants.
2012 ("*cc_to_int"): Move up.
2013 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
2014 constants other than 0.
2015 ("*ccraw_to_int"): New insn and splitter definition.
2016 ("tbegin", "tbegin_nofloat", "tbegin_retry")
2017 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
2018 ("tx_assist"): New expander.
2019 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
2020 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
2021 * config/s390/s390.opt: Add -mhtm option.
2022 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
2023 * config/s390/htmxlintrin.h: New file.
2024 * config/s390/htmintrin.h: New file.
2025 * config/s390/s390intrin.h: New file.
2026 * doc/extend.texi: Document htm builtins.
2027 * config.gcc: Add the new header files to extra_headers.
2029 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
2031 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
2032 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
2034 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2035 Pat Haugen <pthaugen@us.ibm.com>
2036 Peter Bergner <bergner@vnet.ibm.com>
2038 * config/rs6000/power8.md: New.
2039 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
2040 setting for power8 entry.
2041 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
2042 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
2043 test for Power4/Power5 only.
2044 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
2046 (force_new_group): Adjust comment.
2047 * config/rs6000/rs6000.md: Include power8.md.
2049 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
2051 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
2052 * config/arm/arm-protos.h (arm_max_conditional_execute): New
2054 (tune_params): Update comment.
2055 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
2056 (arm_max_conditional_execute): New function.
2057 (thumb2_final_prescan_insn): Use max_insn_skipped and
2058 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
2060 2013-06-25 Jakub Jelinek <jakub@redhat.com>
2062 PR tree-optimization/57705
2063 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
2064 SSA_NAME step, provided that it is not defined inside the loop.
2065 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
2066 (get_initial_def_for_induction): Handle SSA_NAME IV step.
2068 2013-06-25 Martin Jambor <mjambor@suse.cz>
2071 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
2072 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
2074 (ipa_note_param_call): Initialize member_ptr flag.
2075 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
2076 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
2077 (ipa_write_indirect_edge_info): Stream member_ptr flag.
2078 (ipa_read_indirect_edge_info): Likewise.
2080 2013-06-25 Richard Biener <rguenther@suse.de>
2083 * passes.c (init_optimization_passes): Move pass_fold_builtins
2084 and pass_dce earlier with -Og.
2086 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
2088 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
2089 <BIT_FIELD_REF>: Remove trailing TAB.
2090 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
2093 2013-06-24 Martin Jambor <mjambor@suse.cz>
2095 PR tree-optimization/57358
2096 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
2097 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
2098 (ipa_analyze_params_uses): Generate pessimistic info when true.
2100 2013-06-24 Martin Jambor <mjambor@suse.cz>
2102 PR tree-optimization/57539
2103 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
2104 global.inlined_to of the new node to it. All callers changed.
2105 * ipa-inline-transform.c (clone_inlined_nodes): New variable
2106 inlining_into, pass it to cgraph_clone_node.
2107 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
2108 ipa_free_edge_args_substructures.
2109 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
2110 rdesc linked list. Do not assert rdesc edges have inlined caller.
2111 Assert we have found an rdesc in the rdesc list.
2113 2013-06-24 Richard Biener <rguenther@suse.de>
2115 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
2116 (pointer_set_lookup): Declare.
2117 (class pointer_map): New template class implementing a
2118 generic pointer to T map.
2119 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
2120 pointer_map<T>::contains, pointer_map<T>::insert,
2121 pointer_map<T>::traverse): New functions.
2122 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
2123 (pointer_set_lookup): New function.
2124 (pointer_set_contains): Use pointer_set_lookup.
2125 (pointer_set_insert): Likewise.
2126 (insert_aux): Remove.
2127 (struct pointer_map_t): Embed a pointer_set_t.
2128 (pointer_map_create): Adjust.
2129 (pointer_map_destroy): Likewise.
2130 (pointer_map_contains): Likewise.
2131 (pointer_map_insert): Likewise.
2132 (pointer_map_traverse): Likewise.
2133 * tree-streamer.h (struct streamer_tree_cache_d): Use a
2134 pointer_map<unsigned> instead of a pointer_map_t.
2135 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
2136 (streamer_tree_cache_lookup): Likewise.
2137 (streamer_tree_cache_create): Likewise.
2138 (streamer_tree_cache_delete): Likewise.
2139 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
2140 pointer_map<unsigned> instead of a pointer_map_t.
2141 (lto_init_tree_ref_encoder): Adjust.
2142 (lto_destroy_tree_ref_encoder): Likewise.
2143 * lto-section-out.c (lto_output_decl_index): Likewise.
2144 (lto_record_function_out_decl_state): Likewise.
2145 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
2147 2013-06-24 Richard Biener <rguenther@suse.de>
2149 PR tree-optimization/57488
2150 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
2152 2013-06-24 Alan Modra <amodra@gmail.com>
2154 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2155 (gen_easy_altivec_constant): Likewise.
2156 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2157 easy_vector_constant_msb): Likewise.
2159 2013-06-23 Jakub Jelinek <jakub@redhat.com>
2162 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
2163 add missing return true.
2165 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
2168 * config/sh/predicates.md (general_extend_operand): Invoke
2169 general_movsrc_operand for memory operands.
2170 (general_movsrc_operand): Allow reg+reg addressing, do not use
2171 general_operand for memory operands.
2173 2013-06-23 Sriraman Tallam <tmsriram@google.com>
2175 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
2176 when current target options does not apply.
2177 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
2178 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
2179 * config/i386/bmiintrin.h: Pass appropriate target
2180 attributes to header.
2181 * config/i386/mmintrin.h: Ditto.
2182 * config/i386/nmmintrin.h: Ditto.
2183 * config/i386/avx2intrin.h: Ditto.
2184 * config/i386/fxsrintrin.h: Ditto.
2185 * config/i386/tbmintrin.h: Ditto.
2186 * config/i386/xsaveintrin.h: Ditto.
2187 * config/i386/f16cintrin.h: Ditto.
2188 * config/i386/xtestintrin.h: Ditto.
2189 * config/i386/xsaveoptintrin.h: Ditto.
2190 * config/i386/bmi2intrin.h: Ditto.
2191 * config/i386/lzcntintrin.h: Ditto.
2192 * config/i386/smmintrin.h: Ditto.
2193 * config/i386/wmmintrin.h: Ditto.
2194 * config/i386/x86intrin.h: Remove all header include guards.
2195 * config/i386/prfchwintrin.h: Ditto.
2196 * config/i386/pmmintrin.h: Ditto.
2197 * config/i386/tmmintrin.h: Ditto.
2198 * config/i386/xmmintrin.h: Ditto.
2199 * config/i386/popcntintrin.h: Ditto.
2200 * config/i386/rdseedintrin.h: Ditto.
2201 * config/i386/ammintrin.h: Ditto.
2202 * config/i386/emmintrin.h: Ditto.
2203 * config/i386/immintrin.h: Remove all header include guards.
2204 * config/i386/fma4intrin.h: Ditto.
2205 * config/i386/lwpintrin.h: Ditto.
2206 * config/i386/xopintrin.h: Ditto.
2207 * config/i386/ia32intrin.h: Ditto.
2208 * config/i386/avxintrin.h: Ditto.
2209 * config/i386/rtmintrin.h: Ditto.
2210 * config/i386/fmaintrin.h: Ditto.
2211 * config/i386/mm3dnow.h: Ditto.
2213 2013-06-22 Sriraman Tallam <tmsriram@google.com>
2215 * common/config/i386/i386-common.c: Handle LZCNT.
2217 2013-06-22 Andi Kleen <ak@linux.intel.com>
2219 * doc/extend.texi: Use __atomic_store_n instead of
2220 __atomic_store in HLE example.
2222 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2224 * config/sh/sh.c: Remove <cstdlib> workaround.
2226 2013-06-21 Andi Kleen <ak@linux.intel.com>
2228 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
2230 2013-06-21 Andi Kleen <ak@linux.intel.com>
2232 * doc/extend.texi: Document that __atomic_clear and
2233 __atomic_test_and_set should only be used with bool.
2235 2013-06-20 Jan Hubicka <jh@suse.cz>
2237 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2239 * tree.c (decls_same_for_odr): New function.
2240 (same_for_edr): New function.
2241 (types_same_for_odr): New function.
2242 (get_binfo_at_offset): Use it.
2243 * tree.h (types_same_for_odr): Declare.
2245 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
2246 Jason Merrill <jason@redhat.com>
2248 * system.h: Include <cstdlib> as well as <stdlib.h>.
2250 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
2253 * config/i386/i386.c (construct_container): Report error if
2254 long double is used with disabled x87 float returns.
2256 2013-06-20 Jan Hubicka <jh@suse.cz>
2258 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2260 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2262 PR rtl-optimization/57425
2263 PR rtl-optimization/57569
2264 * alias.c (write_dependence_p): Remove parameters mem_mode and
2265 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2266 Changed all callers.
2267 (canon_anti_dependence): Get comments and semantics in sync.
2268 Add parameter mem_canonicalized. Changed all callers.
2269 * rtl.h (canon_anti_dependence): Update prototype.
2271 2013-06-20 Richard Biener <rguenther@suse.de>
2273 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2274 byte case, inline streamer_read_uchar and defer section
2277 2013-06-20 Richard Biener <rguenther@suse.de>
2279 PR tree-optimization/57584
2280 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2281 SSA names into the expanded expression that take part in
2282 abnormal coalescing.
2284 2013-06-19 Sharad Singhai <singhai@google.com>
2286 * gcov.c (print_usage): Handle new option.
2287 (process_args): Ditto.
2288 (get_gcov_intermediate_filename): New function.
2289 (output_intermediate_file): New function.
2290 (output_gcov_file): New function
2291 (generate_results): Handle new option.
2292 (release_function): Relase demangled name.
2293 (read_graph_file): Handle demangled name.
2294 (output_lines): Ditto.
2295 * doc/gcov.texi: Document gcov intermediate format.
2297 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2300 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2301 (lra_emit_add): Use the functions. Add comment about Y as an
2304 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
2307 * collect2.c (collect_atexit): New.
2308 (collect_exit): Delete.
2309 (main): Register collect_atexit with atexit.
2310 (collect_wait): Change collect_exit to exit.
2312 * collect2.h (collect_exit): Delete.
2313 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2315 2013-06-19 Wei Mi <wmi@google.com>
2317 PR rtl-optimization/57518
2318 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2319 if regno is used in paradoxical subreg.
2320 (update_equiv_regs): Check pdx_subregs[regno] before
2321 set a reg to be equivalent with a mem.
2323 2013-06-19 Matthias Klose <doko@ubuntu.com>
2326 * file-find.h (find_a_file): Add a mode parameter.
2327 * file-find.c (find_a_file): Likewise.
2328 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2329 with X_OK for the executables.
2330 * collect2.c (main): Call find_a_file with X_OK.
2332 2013-06-19 Steve Ellcey <sellcey@mips.com>
2335 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2336 Use NEXT_INSN instead of next_real_insn.
2338 2013-06-19 Jan Hubicka <jh@suse.cz>
2340 * cgraph.h (const_value_known_p): Replace by ...
2341 (ctor_for_folding): .. this one.
2342 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2343 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2344 * expr.c (expand_expr_real_1): Likewise.
2345 (string_constant): Likewise.
2346 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2347 * ipa.c (process_references): Likewise.
2348 (symtab_remove_unreachable_nodes): Likewise.
2349 * ipa-inline-analysis.c (param_change_prob): Likewise.
2350 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2351 (get_base_constructor): Likwise.
2352 * varpool.c (varpool_remove_node): Likewise.
2353 (varpool_remove_initializer): LIkewise.
2354 (dump_varpool_node): LIkwise.
2355 (const_value_known_p): Rewrite to ...
2356 (ctor_for_folding): ... this one.
2358 2013-06-19 Jakub Jelinek <jakub@redhat.com>
2361 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2362 PERSONALITY in $PATH derived prefixes.
2364 2013-06-19 Jeff Law <law@redhat.com>
2366 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2369 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2370 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2373 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2375 * config/arm/vfp.md: Move VFP instruction classification documentation
2377 * config/arm/arm.md: ... here. Update instruction classification
2380 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
2382 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2383 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2384 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2386 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2389 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2390 with NEXT_INSN. Use tablejump_p to check for jump table data
2393 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2396 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2397 that now in C++ the value is correct per the C++ standards.
2399 2013-06-19 Richard Biener <rguenther@suse.de>
2401 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2404 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2407 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2410 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2411 with next_active_insn.
2413 2013-06-18 Sriraman Tallam <tmsriram@google.com>
2415 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2416 functions are inlined during failures to flag an error.
2417 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2418 in early inline pass.
2420 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2422 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2425 2013-06-18 Julian Brown <julian@codesourcery.com>
2427 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2428 Permit virtual register pre-reload if !strict.
2429 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2431 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2433 * config/arm/neon.md (movmisalign<mode>): Use
2434 neon_perm_struct_or_reg_operand instead of
2435 neon_struct_or_register_operand.
2436 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2437 neon_permissive_struct_operand instead of neon_struct_operand.
2438 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2439 neon_vector_mem_operand.
2440 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2441 neon_vector_mem_operand.
2442 (neon_permissive_struct_operand): New.
2443 (neon_struct_or_register_operand): Rename to...
2444 (neon_perm_struct_or_reg_operand): This. Adjust call to
2445 neon_vector_mem_operand.
2447 2013-06-18 Richard Biener <rguenther@suse.de>
2449 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2450 * lto-streamer.h: Include pointer-set.h.
2451 (struct lto_decl_slot): Remove.
2452 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2453 Remove next_index entry.
2454 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2455 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2456 (lto_init_tree_ref_encoder): Adjust.
2457 (lto_destroy_tree_ref_encoder): Likewise.
2458 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2459 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2460 (lto_output_decl_index): Adjust.
2461 (lto_new_out_decl_state): Likewise.
2462 (lto_record_function_out_decl_state): Likewise.
2463 * lto-streamer-out.c (copy_function): Likewise.
2465 2013-06-18 Richard Biener <rguenther@suse.de>
2467 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2468 * cgraphunit.c: Include cfgloop.h.
2469 (init_lowered_empty_function): Initialize the loop tree.
2470 (assemble_thunk): Insert new BBs into loops.
2472 2013-06-18 Richard Biener <rguenther@suse.de>
2474 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2475 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2476 the map from cache entry to cache index optional.
2477 (streamer_tree_cache_replace_tree): Adjust accordingly.
2478 (streamer_tree_cache_append): Likewise.
2479 (streamer_tree_cache_delete): Likewise.
2480 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2481 streamer cache map from cache entry to cache index.
2482 * lto-streamer-out.c (create_output_block): Adjust.
2484 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2486 * config/arm/arm.md (attribute "insn"): Move multiplication and
2487 division attributes to...
2488 (attribute "type"): ... here. Remove mult.
2489 (attribute "mul32"): New attribute.
2490 (attribute "mul64"): Add umaal.
2491 (*arm_mulsi3): Update attributes.
2492 (*arm_mulsi3_v6): Likewise.
2493 (*thumb_mulsi3): Likewise.
2494 (*thumb_mulsi3_v6): Likewise.
2495 (*mulsi3_compare0): Likewise.
2496 (*mulsi3_compare0_v6): Likewise.
2497 (*mulsi_compare0_scratch): Likewise.
2498 (*mulsi_compare0_scratch_v6): Likewise.
2499 (*mulsi3addsi): Likewise.
2500 (*mulsi3addsi_v6): Likewise.
2501 (*mulsi3addsi_compare0): Likewise.
2502 (*mulsi3addsi_compare0_v6): Likewise.
2503 (*mulsi3addsi_compare0_scratch): Likewise.
2504 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2505 (*mulsi3subsi): Likewise.
2506 (*mulsidi3adddi): Likewise.
2507 (*mulsi3addsi_v6): Likewise.
2508 (*mulsidi3adddi_v6): Likewise.
2509 (*mulsidi3_nov6): Likewise.
2510 (*mulsidi3_v6): Likewise.
2511 (*umulsidi3_nov6): Likewise.
2512 (*umulsidi3_v6): Likewise.
2513 (*umulsidi3adddi): Likewise.
2514 (*umulsidi3adddi_v6): Likewise.
2515 (*smulsi3_highpart_nov6): Likewise.
2516 (*smulsi3_highpart_v6): Likewise.
2517 (*umulsi3_highpart_nov6): Likewise.
2518 (*umulsi3_highpart_v6): Likewise.
2519 (mulhisi3): Likewise.
2520 (*mulhisi3tb): Likewise.
2521 (*mulhisi3bt): Likewise.
2522 (*mulhisi3tt): Likewise.
2523 (maddhisi4): Likewise.
2524 (*maddhisi4tb): Likewise.
2525 (*maddhisi4tt): Likewise.
2526 (maddhidi4): Likewise.
2527 (*maddhidi4tb): Likewise.
2528 (*maddhidi4tt): Likewise.
2530 (udivsi3): Likewise.
2531 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2532 (thumb2_mulsi_short_compare0): Likewise.
2533 (thumb2_mulsi_short_compare0_scratch): Likewise.
2534 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2535 (1020mult2): Likewise.
2536 (1020mult3): Likewise.
2537 (1020mult4): Likewise.
2538 (1020mult5): Likewise.
2539 (1020mult6): Likewise.
2540 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2542 (cortex_a15_mult64): Likewise.
2543 (cortex_a15_sdiv): Likewise.
2544 (cortex_a15_udiv): Likewise.
2545 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2551 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2552 (pj4_ir_div): Likewise.
2553 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2554 (11_mult2): Likewise.
2555 (11_mult3): Likewise.
2556 (11_mult4): Likewise.
2557 (11_mult5): Likewise.
2558 (11_mult6): Likewise.
2559 (11_mult7): Likewise.
2560 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2561 (cortex_a8_mla): Likewise.
2562 (cortex_a8_mull): Likewise.
2563 (cortex_a8_smulwy): Likewise.
2564 (cortex_a8_smlald): Likewise.
2565 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2566 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2567 (cortex_r4_mul_3): Likewise.
2568 (cortex_r4_mla_4): Likewise.
2569 (cortex_r4_mla_3): Likewise.
2570 (cortex_r4_smlald): Likewise.
2571 (cortex_r4_mull): Likewise.
2572 (cortex_r4_sdiv): Likewise.
2573 (cortex_r4_udiv): Likewise.
2574 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2575 (cortex_a7_idiv): Likewise.
2576 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2577 (9_mult2): Likewise.
2578 (9_mult3): Likewise.
2579 (9_mult4): Likewise.
2580 (9_mult5): Likewise.
2581 (9_mult6): Likewise.
2582 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2583 (cortex_a53_sdiv): Likewise.
2584 (cortex_a53_udiv): Likewise.
2585 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2586 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2587 (mp626_mult2): Likewise.
2588 (mp626_mult3): Likewise.
2589 (mp626_mult4): Likewise.
2590 * config/arm/fa526.md (526_mult1): Update attribute change.
2591 (526_mult2): Likewise.
2592 * config/arm/arm-generic.md (mult): Update attribute change.
2593 (mult_ldsched_strongarm): Likewise.
2594 (mult_ldsched): Likewise.
2595 (multi_cycle): Likewise.
2596 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2597 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2598 (606te_mult2): Likewise.
2599 (606te_mult3): Likewise.
2600 (606te_mult4): Likewise.
2601 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2602 (cortex_a9_mac16): Likewise.
2603 (cortex_a9_multiply): Likewise.
2604 (cortex_a9_mac): Likewise.
2605 (cortex_a9_multiply_long): Likewise.
2606 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2607 (626te_mult2): Likewise.
2608 (626te_mult3): Likewise.
2609 (626te_mult4): Likewise.
2611 2013-06-18 Richard Biener <rguenther@suse.de>
2614 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2616 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2619 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2620 with next_active_insn.
2622 2013-06-18 Alan Modra <amodra@gmail.com>
2624 * config/rs6000/rs6000.h (enum data_align): New.
2625 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2626 (DATA_ABI_ALIGNMENT): Define.
2627 (CONSTANT_ALIGNMENT): Correct comment.
2628 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2629 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2631 2013-06-17 David Malcolm <dmalcolm@redhat.com>
2633 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2634 ATTRIBUTE_UNUSED marking.
2636 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2638 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2639 alternative and update.
2640 (aarch64_dup_lanedi): Delete.
2641 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2642 * config/aarch64/aarch64-simd-builtins.def: Update.
2644 2013-06-17 Richard Biener <rguenther@suse.de>
2646 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2647 (lto_input_scc): Declare.
2648 (lto_input_tree_1): Likewise.
2649 (struct lto_stats_d): Add num_tree_bodies_output and
2650 num_pickle_refs_output.
2651 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2652 (lto_read_tree_1): Split out from ...
2653 (lto_read_tree): ... this.
2654 (lto_input_scc): New function.
2655 (lto_input_tree_1): Split out from ...
2656 (lto_input_tree): ... this. Handle LTO_tree_scc.
2657 (lto_data_in_create): Create the streamer cache without hashes.
2658 * lto-streamer-out.c (create_output_block): Create the streamer
2659 cache with hashes when not doing WPA.
2660 (lto_write_tree_1): Split out from ...
2661 (lto_write_tree): ... this.
2662 (get_symbol_initial_value): New function.
2663 (lto_output_tree_1): Split out from ...
2664 (lto_output_tree): ... this. Write trees as series of SCCs
2665 using a DFS walk via DFS_write_tree.
2666 (struct sccs, struct scc_entry): New types.
2667 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2668 (DFS_write_tree_body): New function.
2669 (DFS_write_tree): Likewise.
2670 (hash_tree): Likewise.
2671 (scc_entry_compare): Likewise.
2672 (hash_scc): Likewise.
2673 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2674 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2675 TREE_CHAIN as regular reference.
2676 (streamer_read_integer_cst): Remove.
2677 (streamer_get_pickled_tree): Adjust.
2678 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2679 of DECL_EXTERNALs in BLOCK_VARS for now.
2680 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2682 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2683 Add hash value argument and record that if hashes are recorded
2685 (streamer_tree_cache_insert_1): Adjust.
2686 (streamer_tree_cache_insert): Likewise.
2687 (streamer_tree_cache_insert_at): Rename to ...
2688 (streamer_tree_cache_replace_tree): ... this and adjust.
2689 (streamer_tree_cache_append): Adjust.
2690 (record_common_node): Likewise.
2691 (streamer_tree_cache_create): Add argument whether to
2692 record hash values together with trees.
2693 (streamer_tree_cache_delete): Adjust.
2694 * tree-streamer.h (struct streamer_tree_cache_d): Add
2696 (streamer_read_integer_cst): Remove.
2697 (streamer_tree_cache_insert): Adjust.
2698 (streamer_tree_cache_append): Likewise.
2699 (streamer_tree_cache_insert_at): Rename to ...
2700 (streamer_tree_cache_replace_tree): ... this and adjust.
2701 (streamer_tree_cache_create): Add argument whether to record hashes.
2702 (streamer_tree_cache_get): Rename to ...
2703 (streamer_tree_cache_get_tree): ... this.
2704 (streamer_tree_cache_get_hash): New function.
2705 * tree.c (cache_integer_cst): New function.
2706 * tree.h (cache_integer_cst): Declare.
2707 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2708 * lto-symtab.c (lto_varpool_replace_node): Only release
2709 DECL_INITIAL of non-prevailing decls.
2710 * varpool.c (varpool_remove_initializer): Do not release
2711 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2713 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2715 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2716 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2717 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2718 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2719 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2720 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2721 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2722 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2723 instead of TARGET_64BIT.
2724 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2725 Require ISA_HAS_<D>DIV.
2727 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2729 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2730 (mips*-*-linux*): Move default with_llsc setting to where other
2732 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2734 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2735 Likewise. Remove default with_tune setting. Move default float
2736 setting to its own block. Handle with_llsc in the same block as above.
2738 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2740 PR rtl-optimization/57425
2741 PR rtl-optimization/57569
2742 * alias.c (write_dependence_p): Add new parameters mem_mode,
2743 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2744 Changed all callers.
2745 (canon_anti_dependence): New function.
2746 * cse.c (check_dependence): Use canon_anti_dependence.
2747 * cselib.c (cselib_invalidate_mem): Likewise.
2748 * rtl.h (canon_anti_dependence): Declare.
2750 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2752 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2753 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2754 ".set mips3" for 64-bit targets.
2756 2013-06-15 Dehao Chen <dehao@google.com>
2758 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2759 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2760 (gimple_check_call_args): Likewise.
2761 * value-prof.c (check_ic_target): Likewise.
2762 * ipa-inline.c (early_inliner): Likewise.
2763 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2764 * cgraph.c (cgraph_create_edge_1): Likewise.
2765 (cgraph_make_edge_direct): Likewise.
2767 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2770 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2771 rs6000_output_move_128bit to handle emitting quad memory
2772 operations. Set attribute length to 8 bytes.
2774 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2776 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2778 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2779 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2780 (aarch64_<su>mlsl<mode>): Likewise.
2782 2013-06-14 Mike Stump <mikestump@comcast.net>
2784 * Makefile.in (TARGET_H): Add insn-codes.h.
2786 2013-06-14 Alan Modra <amodra@gmail.com>
2790 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2791 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2792 bitfield expansion when EXPAND_MEMORY.
2793 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2795 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2797 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2798 test for clearing quad memory on 32-bit later.
2800 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2802 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2803 (fold_negate_expr): Likewise.
2804 (fold_real_zero_addition_p): Handle vectors.
2805 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2807 2013-06-14 Alan Modra <amodra@gmail.com>
2809 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2811 2013-06-13 Jan Hubicka <jh@suse.cz>
2813 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2814 Local comdats are not externally visible.
2815 * symtab.c (dump_symtab_base): Dump externally visible.
2816 (verify_symtab_base): Verify back links in the symtab hash.
2818 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2820 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2821 CONVERT_EXPR as equal nodes.
2823 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2825 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2827 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2829 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2830 Generalize to complex and vector.
2831 * tree.c (build_all_ones_cst): New function.
2832 * tree.h (build_all_ones_cst): Declare it.
2834 2013-06-13 Alan Modra <amodra@gmail.com>
2836 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2837 * config/rs6000/rs6000.md (signbittf2): New insn.
2838 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2839 (abstf2_internal, cmptf_internal2): Likewise.
2840 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2842 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2843 Pat Haugen <pthaugen@us.ibm.com>
2844 Peter Bergner <bergner@vnet.ibm.com>
2846 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2847 power8 byte, half-word, and quad-word atomic instructions.
2848 (emit_store_conditional): Likewise.
2849 (rs6000_expand_atomic_compare_and_swap): Likewise.
2850 (rs6000_expand_atomic_op): Likewise.
2852 * config/rs6000/sync.md (larx): Add new modes for power8.
2854 (AINT): New mode iterator to include TImode as well as normal
2855 integer modes on power8.
2856 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2857 that VSX registers are not considered. Use AINT mode iterator
2858 instead of INT1 to allow inclusion of quad word atomic operations
2860 (load_locked<mode>): Likewise.
2861 (store_conditional<mode>): Likewise.
2862 (atomic_compare_and_swap<mode>): Likewise.
2863 (atomic_exchange<mode>): Likewise.
2864 (atomic_nand<mode>): Likewise.
2865 (atomic_fetch_<fetchop_name><mode>): Likewise.
2866 (atomic_nand_fetch<mode>): Likewise.
2867 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2869 (ATOMIC): On power8, add QImode, HImode modes.
2870 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2871 modes that promote to SImode.
2872 (load_lockedti): Convert TImode arguments to PTImode, so that we
2873 get a guaranteed even/odd register pair.
2874 (load_lockedpti): Likewise.
2875 (store_conditionalti): Likewise.
2876 (store_conditionalpti): Likewise.
2878 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2879 atomic load/store instructions.
2882 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2884 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2886 (insn_count): New attribute, with most cases extracted from...
2887 (length): ...here. Redefine most cases in terms of insn_count.
2888 (single_insn): Delete.
2889 (can_delay): Use insn_count to check for single instructions.
2890 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2891 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2892 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2893 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2894 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2895 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2896 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2897 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2898 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2899 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2900 rather than "length".
2901 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2902 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2903 Use "insn_count" rather than "length".
2904 * config/mips/mips-dsp.md
2905 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2906 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2909 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
2911 PR tree-optimization/57361
2912 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2914 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2916 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2918 (aarch64_simd_combine<mode>): New instruction expansion.
2919 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2921 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2922 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2924 2013-06-12 Jan Hubicka <jh@suse.cz>
2926 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2927 decl has when in streaming stage.
2928 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2929 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2931 2013-06-12 Roland Stigge <stigge@antcom.de>
2934 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2936 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2938 PR tree-optimization/57537
2939 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2940 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2942 2013-06-12 Richard Biener <rguenther@suse.de>
2944 * data-streamer.h (streamer_write_char_stream): CSE
2945 obs->current_pointer.
2946 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2947 streamer_write_char_stream manually and optimize the resulting loop.
2948 (streamer_write_hwi_stream): Likewise.
2950 2013-06-12 Jan Hubicka <jh@suse.cz>
2952 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2953 * cgraph.h (varpool_create_empty_node): Declare.
2954 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2956 * symtab.c (symtab_unregister_node): Be lax about missin entries
2958 (symtab_get_node): Update comment.
2959 * varpool.c (varpool_create_empty_node): Break out from ...
2960 (varpool_node_for_decl): ... here.
2961 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2963 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2965 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2966 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2967 part. Use straight-line flow at the end.
2968 <COMPONENT_REF>: Remove superfluous else.
2969 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2971 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2974 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2975 target hook even for !TREE_PUBLIC decls. If no resolution info
2976 is available, return false for common and external decls.
2978 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2980 * config/rl78/constraints.md (U): New constraint.
2981 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2984 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2987 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2988 to allow returning address to AT_PLATFORM name.
2990 2013-06-11 Jan Hubicka <jh@suse.cz>
2992 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2993 * cgraph.h (symtab_node_base): Add weakref flag.
2994 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2995 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2996 (output_weakrefs): Use weakref flag.
2997 * fold-const.c (simple_operand_p): Handle WEAK.
2998 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2999 * ipa.c (varpool_externally_visible_p): Drop weakref.
3000 (function_and_variable_visibility): Update comment; fix weakref
3001 sanity checks; do not clear DECL_WEAK on them.
3002 * lto-cgraph.c (lto_output_node): update.
3003 (lto_output_varpool_node): Update.
3004 (input_overwrite_node): Update.
3005 (input_node): Update.
3006 (input_varpool_node): Update.
3007 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
3008 (lto_symtab_merge_symbols): Add sanity check.
3009 (lto_symtab_prevailing_decl): Do not special case weakrefs.
3010 * passes.c (rest_of_decl_compilation): Set static flag, too.
3011 * symtab.c (dump_symtab_base): Dump weakref.
3012 (verify_symtab_base): Sanity check weakrefs.
3013 (symtab_make_decl_local): Remove duplicated code.
3014 (symtab_alias_ultimate_target): Simplify.
3015 * varpool.c (varpool_create_variable_alias): Set weakref flag.
3017 2013-06-11 DJ Delorie <dj@redhat.com>
3019 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
3020 (rl78_unwind_word_mode): New.
3022 2013-06-11 David Malcolm <dmalcolm@redhat.com>
3024 * final.c (debug_prefix_maps): Make static.
3026 2013-06-11 David Malcolm <dmalcolm@redhat.com>
3028 * function.c (initial_trampoline): Remove stray copy.
3030 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
3032 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
3034 2013-06-11 Martin Jambor <mjambor@suse.cz>
3036 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
3037 within bounds at the beginning of the function.
3039 2013-06-11 Alan Modra <amodra@gmail.com>
3041 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
3043 (get_named_section): Don't NULL !DECL_P decl.
3045 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
3047 * doc/invoke.texi (core-avx2): Document.
3049 (atom): Updated with MOVBE.
3051 2013-06-11 Richard Biener <rguenther@suse.de>
3053 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
3055 2013-06-11 Anton Blanchard <anton@samba.org>
3057 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
3058 correct shift value in little-endian mode.
3060 2013-06-11 Jakub Jelinek <jakub@redhat.com>
3063 * varasm.c (get_variable_align): Move #endif to the right place.
3065 2013-06-10 Cary Coutant <ccoutant@google.com>
3067 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
3068 for hash so that hash table traversal order is deterministic.
3070 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3071 Pat Haugen <pthaugen@us.ibm.com>
3072 Peter Bergner <bergner@vnet.ibm.com>
3074 * config/rs6000/vector.md (GPR move splitter): Do not split moves
3075 of vectors in GPRS if they are direct moves or quad word load or
3078 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
3080 (direct_move_p): Likewise.
3081 (quad_load_store_p): Likewise.
3083 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
3084 classes into bins based on the physical register type.
3085 (reg_class_to_reg_type): Likewise.
3086 (IS_STD_REG_TYPE): Likewise.
3087 (IS_FP_VECT_REG_TYPE): Likewise.
3088 (reload_fpr_gpr): Arrays to determine what insn to use if we can
3089 use direct move instructions.
3090 (reload_gpr_vsx): Likewise.
3091 (reload_vsx_gpr): Likewise.
3092 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
3093 information that is a simplification of register classes. Also
3094 precalculate direct move reload helpers.
3095 (direct_move_p): New function to return true if the operation can
3096 be done as a direct move instruciton.
3097 (quad_load_store_p): New function to return true if the operation
3098 is a quad memory operation.
3099 (rs6000_legitimize_address): If quad memory, only allow register
3100 indirect for TImode addresses.
3101 (rs6000_legitimate_address_p): Likewise.
3102 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
3103 (rs6000_reload_register_type): Likewise.
3104 (register_to_reg_type): Return register type.
3105 (rs6000_secondary_reload_simple_move): New helper function for
3106 secondary reload and secondary memory needed to identify anything
3107 that is a simple move, and does not need reloading.
3108 (rs6000_secondary_reload_direct_move): New helper function for
3109 secondary reload to identify cases that can be done with several
3110 instructions via the direct move instructions.
3111 (rs6000_secondary_reload_move): New helper function for secondary
3112 reload to identify moves between register types that can be done.
3113 (rs6000_secondary_reload): Add support for quad memory operations
3114 and for direct move.
3115 (rs6000_secondary_memory_needed): Likewise.
3116 (rs6000_debug_secondary_memory_needed): Change argument names.
3117 (rs6000_output_move_128bit): New function to return the move to
3118 use for 128-bit moves, including knowing about the various
3119 limitations of quad memory operations.
3121 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
3122 memory operations. call rs6000_output_move_128bit for the actual
3123 instruciton(s) to generate.
3124 (vsx_movti_64bit): Likewise.
3126 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
3127 (UNSPEC_P8V_MTVSRWZ): Likewise.
3128 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
3129 (UNSPEC_P8V_MTVSRD): Likewise.
3130 (UNSPEC_P8V_XXPERMDI): Likewise.
3131 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
3132 (UNSPEC_FUSION_GPR): Likewise.
3133 (FMOVE128_GPR): New iterator for direct move.
3134 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
3137 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
3138 loads and direct move instructions.
3139 (zero_extendsidi2_lfiwzx): Likewise.
3140 (extendsidi2_lfiwax): Likewise.
3141 (extendsidi2_nocell): Likewise.
3142 (floatsi<mode>2_lfiwax): Likewise.
3144 (floatunssi<mode>2_lfiwzx): Likewise.
3146 (fix_trunc<mode>_stfiwx): Likewise.
3147 (fixuns_trunc<mode>_stfiwx): Likewise.
3148 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
3149 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
3150 (parity<mode>2_cmpb): Set length/type attr.
3151 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
3152 for 'mr.' to fast_compare.
3153 (bpermd_<mode>): Change type attr to popcnt.
3154 (p8_fmrgow_<mode>): New insns for power8 direct move support.
3155 (p8_mtvsrwz_1): Likewise.
3156 (p8_mtvsrwz_2): Likewise.
3157 (reload_fpr_from_gpr<mode>): Likewise.
3158 (p8_mtvsrd_1): Likewise.
3159 (p8_mtvsrd_2): Likewise.
3160 (p8_xxpermdi_<mode>): Likewise.
3161 (reload_vsx_from_gpr<mode>): Likewise.
3162 (reload_vsx_from_gprsf): Likewise.
3163 (p8_mfvsrd_3_<mode>): LIkewise.
3164 (reload_gpr_from_vsx<mode>): Likewise.
3165 (reload_gpr_from_vsxsf): Likewise.
3166 (p8_mfvsrd_4_disf): Likewise.
3167 (multi-word GPR splits): Do not split direct moves or quad memory
3170 2013-06-10 David Malcolm <dmalcolm@redhat.com>
3172 * tree-into-ssa.c (interesting_blocks): Make static.
3174 2013-06-10 Jakub Jelinek <jakub@redhat.com>
3177 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
3178 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
3179 Use DATA_ABI_ALIGNMENT for that case instead if defined.
3180 (get_variable_align): New function.
3181 (get_variable_section, emit_bss, emit_common,
3182 assemble_variable_contents, place_block_symbol): Use
3183 get_variable_align instead of DECL_ALIGN.
3184 (assemble_noswitch_variable): Add align argument, use it
3185 instead of DECL_ALIGN.
3186 (assemble_variable): Adjust caller. Use get_variable_align
3187 instead of DECL_ALIGN.
3188 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
3190 (DATA_ABI_ALIGNMENT): Define.
3191 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
3192 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
3193 opt is false, only return the psABI mandated alignment increase.
3194 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
3195 (DATA_ABI_ALIGNMENT): ... this.
3196 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
3197 (DATA_ABI_ALIGNMENT): ... this.
3198 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
3199 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
3200 (DATA_ABI_ALIGNMENT): ... this.
3201 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
3202 * doc/tm.texi: Regenerated.
3204 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
3206 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3207 cmp_code to construct REG_EQUAL note.
3209 2013-06-09 Jakub Jelinek <jakub@redhat.com>
3212 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3213 that operands[2] doesn't overlap with operands[0].
3215 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
3216 Jan Hubicka <jh@suse.cz>
3218 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3219 hack to mark symbols as used.
3221 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3223 PR rtl-optimization/57559
3224 * lra-constraints.c (process_alt_operands): Don't discourage
3225 memory with known offset for offsetable memory constraint.
3226 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3228 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3230 * varasm.c (struct oc_local_state): Reorder fields.
3231 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3232 and adjust accordingly.
3233 (output_constructor): Reorder initialization code and adjust call to
3234 output_constructor_bitfield.
3236 2013-06-07 Jan Hubicka <jh@suse.cz>
3238 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3240 2013-06-07 David Malcolm <dmalcolm@redhat.com>
3242 * tree-object-size.c (unknown): Make const.
3244 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3246 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3247 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3248 for last alternative in the cpu_facility attribute.
3250 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3253 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3254 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3255 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3256 * config/arm/constraints.md (Dg): New constraint.
3257 * config/arm/neon.md (xordi3_neon): Remove.
3258 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3259 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3261 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3263 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3264 Clean up alternatives.
3266 2013-06-07 Alan Modra <amodra@gmail.com>
3268 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3271 2013-06-07 Alan Modra <amodra@gmail.com>
3273 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3275 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3277 * config/arm/constraints.md (Df): New constraint.
3278 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3279 Correct length attribute for last two alternatives.
3281 2013-06-07 Alan Modra <amodra@gmail.com>
3283 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3284 override user -mfp-in-toc.
3285 (offsettable_ok_by_alignment): Consider just the current access
3286 rather than the whole object, unless BLKmode. Handle
3287 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3288 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3289 for -mcmodel=medium.
3290 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3291 override user -mfp-in-toc or -msum-in-toc. Default to
3292 -mno-fp-in-toc for -mcmodel=medium.
3294 2013-06-06 DJ Delorie <dj@redhat.com>
3296 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3297 TARGET_VALID_POINTER_MODE.
3299 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3300 Pat Haugen <pthaugen@us.ibm.com>
3301 Peter Bergner <bergner@vnet.ibm.com>
3303 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3304 Document new power8 builtins.
3306 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3307 condition code register, to allow 128-bit logical operations to be
3308 done in the VSX or GPR registers.
3309 (nor<mode>3): Use the canonical form for nor.
3310 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3311 vclz*, and vpopcnt* vector instructions.
3312 (nand<mode>3): Likewise.
3313 (orc<mode>3): Likewise.
3314 (clz<mode>2): LIkewise.
3315 (popcount<mode>2): Likewise.
3317 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3318 that only the GPRs are recognized.
3320 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3321 support for new power8 builtins.
3323 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3325 (xscvdpspn): Likewise.
3331 (vpopcnt): Likewise.
3332 (vpopcntb): Likewise.
3333 (vpopcnth): Likewise.
3334 (vpopcntw): Likewise.
3335 (vpopcntd): Likewise.
3340 (eqv_v16qi3): Likewise.
3341 (eqv_v8hi3): Likewise.
3342 (eqv_v4si3): Likewise.
3343 (eqv_v2di3): Likewise.
3344 (eqv_v4sf3): Likewise.
3345 (eqv_v2df3): Likewise.
3347 (nand_v16qi3): Likewise.
3348 (nand_v8hi3): Likewise.
3349 (nand_v4si3): Likewise.
3350 (nand_v2di3): Likewise.
3351 (nand_v4sf3): Likewise.
3352 (nand_v2df3): Likewise.
3354 (orc_v16qi3): Likewise.
3355 (orc_v8hi3): Likewise.
3356 (orc_v4si3): Likewise.
3357 (orc_v2di3): Likewise.
3358 (orc_v4sf3): Likewise.
3359 (orc_v2df3): Likewise.
3361 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3362 allow power8 quad mode in 64-bit.
3363 (rs6000_builtin_vectorized_function): Add support to vectorize
3364 ISA 2.07 count leading zeros, population count builtins.
3365 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3366 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3367 (builtin_function_type): Add vgbbd builtin function which takes an
3369 (altivec_expand_vec_perm_const): Add support for new power8 merge
3372 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3373 that does not include TImdoe for use with 32-bit.
3374 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3376 (UNSPEC_VSX_CVDPSPN): Likewise.
3377 (vsx_xscvdpspn): Likewise.
3378 (vsx_xscvspdpn): Likewise.
3379 (vsx_xscvdpspn_scalar): Likewise.
3380 (vsx_xscvspdpn_directmove): Likewise.
3381 (vsx_and<mode>3): Split logical operations into 32-bit and
3382 64-bit. Add support to do logical operations on TImode as well as
3383 VSX vector types. Allow logical operations to be done in either
3384 VSX registers or in general purpose registers in 64-bit mode. Add
3385 splitters if GPRs were used. For AND, add clobber of CCmode to
3386 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3388 (vsx_and<mode>3_32bit): Likewise.
3389 (vsx_and<mode>3_64bit): Likewise.
3390 (vsx_ior<mode>3): Likewise.
3391 (vsx_ior<mode>3_32bit): Likewise.
3392 (vsx_ior<mode>3_64bit): Likewise.
3393 (vsx_xor<mode>3): Likewise.
3394 (vsx_xor<mode>3_32bit): Likewise.
3395 (vsx_xor<mode>3_64bit): Likewise.
3396 (vsx_one_cmpl<mode>2): Likewise.
3397 (vsx_one_cmpl<mode>2_32bit): Likewise.
3398 (vsx_one_cmpl<mode>2_64bit): Likewise.
3399 (vsx_nor<mode>3): Likewise.
3400 (vsx_nor<mode>3_32bit): Likewise.
3401 (vsx_nor<mode>3_64bit): Likewise.
3402 (vsx_andc<mode>3): Likewise.
3403 (vsx_andc<mode>3_32bit): Likewise.
3404 (vsx_andc<mode>3_64bit): Likewise.
3405 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3406 and xxlorc instructions.
3407 (vsx_eqv<mode>3_64bit): Likewise.
3408 (vsx_nand<mode>3_32bit): Likewise.
3409 (vsx_nand<mode>3_64bit): Likewise.
3410 (vsx_orc<mode>3_32bit): Likewise.
3411 (vsx_orc<mode>3_64bit): Likewise.
3413 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3415 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3417 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3418 (p8_vmrgow): Likewise.
3419 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3420 GPRs to be split under VSX.
3421 (p8v_clz<mode>2): Add power8 count leading zero support.
3422 (p8v_popcount<mode>2): Add power8 population count support.
3423 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3426 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3429 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3431 (vec_nand): Likewise.
3432 (vec_vclz): Likewise.
3433 (vec_vclzb): Likewise.
3434 (vec_vclzd): Likewise.
3435 (vec_vclzh): Likewise.
3436 (vec_vclzw): Likewise.
3437 (vec_vgbbd): Likewise.
3438 (vec_vmrgew): Likewise.
3439 (vec_vmrgow): Likewise.
3440 (vec_vpopcnt): Likewise.
3441 (vec_vpopcntb): Likewise.
3442 (vec_vpopcntd): Likewise.
3443 (vec_vpopcnth): Likewise.
3444 (vec_vpopcntw): Likewise.
3446 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3448 PR rtl-optimization/57468
3449 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3452 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3454 PR rtl-optimization/57459
3455 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3456 type when setting live regs.
3458 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3460 * config/s390/s390.opt (mlra): New option.
3461 * config/s390/s390.c (s390_decompose_address): Check displacement
3462 for all registers for LRA.
3463 (s390_secondary_reload): Don't used secondary reloads for LRA.
3464 (s390_lra_p): New function.
3465 (TARGET_LRA_P): Define.
3466 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3467 of attribute cpu_facility to zarch for the last alternative.
3468 (*cmpmem_short): Ditto.
3470 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3472 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3473 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3474 (arm_expand_prologue): Likewise.
3476 2013-06-06 Teresa Johnson <tejohnson@google.com>
3479 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3480 as this is now done by redirect_edge_and_branch_force.
3481 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3482 barriers, and fix interaction with splitting.
3483 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3484 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3485 reflect changes made in the routine.
3486 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3487 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3488 since this is called in cfglayout mode, and replace partition fixup
3489 with assert as that is now done by force_nonfallthru_and_redirect.
3490 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3491 already be marked with region crossing note.
3492 (insert_section_boundary_note): Make non-static, gate on flag
3493 has_bb_partition, rewrite to also check for multiple partitions.
3494 (rest_of_handle_reorder_blocks): Remove call to
3495 insert_section_boundary_note, now done later during free_cfg.
3496 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3497 * bb-reorder.h (insert_section_boundary_note): Declare.
3498 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3499 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3500 invoke insert_section_boundary_note.
3501 (try_redirect_by_replacing_jump): Remove unnecessary
3502 check for region crossing note.
3503 (fixup_partition_crossing): New function.
3504 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3505 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3506 in non-cfglayout mode.
3507 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3508 remove old code that tried to do this. Emit barrier correctly
3509 when we are in cfglayout mode.
3510 (last_bb_in_partition): New function.
3511 (rtl_split_edge): Correctly fixup partition boundaries.
3512 (commit_one_edge_insertion): Remove old code that tried to
3513 fixup region crossing edge since this is now handled in
3514 split_block, and set up insertion point correctly since
3515 block may now end in a jump.
3516 (verify_hot_cold_block_grouping): Guard against checking when not in
3517 linearized RTL mode.
3518 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3520 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3521 rtl_verify_flow_info, so not called in cfglayout mode.
3522 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3523 (fixup_reorder_chain): Remove old code that attempted to fixup region
3524 crossing note as this is now handled in force_nonfallthru_and_redirect.
3525 (duplicate_insn_chain): Don't duplicate switch section notes.
3526 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3528 * basic-block.h (emit_barrier_after_bb): Declare.
3530 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3532 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3533 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3534 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3536 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3538 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3540 * config/arm/ldmstm.md: Regenerate.
3542 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3544 * config/arm/sync.md (atomic_loaddi_1):
3545 Disable predication for arm_restrict_it.
3546 (arm_load_exclusive<mode>): Likewise.
3547 (arm_load_exclusivesi): Likewise.
3548 (arm_load_exclusivedi): Likewise.
3549 (arm_load_acquire_exclusive<mode>): Likewise.
3550 (arm_load_acquire_exclusivesi): Likewise.
3551 (arm_load_acquire_exclusivedi): Likewise.
3552 (arm_store_exclusive<mode>): Likewise.
3553 (arm_store_exclusive<mode>): Likewise.
3554 (arm_store_release_exclusivedi): Likewise.
3555 (arm_store_release_exclusive<mode>): Likewise.
3557 2013-06-06 Richard Biener <rguenther@suse.de>
3559 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3561 (lto_tag_is_tree_code_p): Adjust.
3562 (lto_tag_is_gimple_code_p): Likewise.
3563 (lto_gimple_code_to_tag): Likewise.
3564 (lto_tag_to_gimple_code): Likewise.
3565 (lto_tree_code_to_tag): Likewise.
3566 (lto_tag_to_tree_code): Likewise.
3567 * data-streamer.h (streamer_write_hwi_in_range): Use
3568 uhwi streaming to stream the normalized range.
3569 (streamer_read_hwi_in_range): Likewise.
3571 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3573 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3574 (predicable_short_it): Likewise.
3575 (predicated): Likewise.
3576 (enabled): Handle above.
3577 (define_cond_exec): Set predicated attribute to yes.
3579 2013-06-05 Mike Stump <mikestump@comcast.net>
3581 * gdbinit.in (__FUNCTION__): Add.
3583 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
3585 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3586 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3588 2013-06-05 Jan Hubicka <jh@suse.cz>
3590 * varasm.c (mark_decl_referenced): Revert the removal until targets
3593 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
3595 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3596 instead of mark_decl_referenced.
3598 2013-06-05 Jan Hubicka <jh@suse.cz>
3600 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3601 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3602 and symtab_used_from_object_file_p.
3603 (cgraph_make_node_local_1): Clear forced_by_abi.
3604 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3605 * cgraph.h (symtab_node_base): Add forced_by_abi.
3606 (decide_is_variable_needed): Remove.
3607 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3608 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3609 (decide_is_symbol_needed): ... this one; handle symbols in general;
3610 always analyze virtuals; honnor forced_by_abi.
3611 (cgraph_finalize_function): Update.
3612 (varpool_finalize_decl): Update.
3613 (symbol_defined_and_needed): Remove.
3614 (analyze_functions): Update.
3615 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3616 output_refs, input_overwrite_node): Handle forced_by_abi.
3617 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3618 (address_taken_from_non_vtable_p): ... this one.
3619 (comdat_can_be_unshared_p_1): New function.
3620 (cgraph_comdat_can_be_unshared_p): Rename to ...
3621 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3622 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3623 (function_and_variable_visibility): Clear forced_by_abi as needed.
3624 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3625 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3626 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3627 * varpool.c (decide_is_variable_needed): Remove.
3629 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3631 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3632 (arm_option_override): Override arm_restrict_it where appropriate.
3633 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3634 * config/arm/arm.opt (mrestrict-it): New command-line option.
3635 * doc/invoke.texi: Document -mrestrict-it.
3637 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3639 * tsan.c (tsan_atomic_table): Make const.
3641 2013-06-05 Richard Biener <rguenther@suse.de>
3643 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3644 index associated with the tree we are supposed to replace.
3645 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3646 TREE_ASM_WRITTEN as zero for everything but SSA names.
3648 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3650 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3652 2013-06-04 Jan Hubicka <jh@suse.cz>
3654 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3655 (input_node, input_varpool_node): Handle correctly external same
3657 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3658 nodes at ltrans stage.
3660 2013-06-04 Jan Hubicka <jh@suse.cz>
3662 * ipa-inline.c (update_caller_keys): Fix availability test.
3663 (update_callee_keys): Likewise.
3664 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3665 to follow ELF standard.
3667 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3669 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3670 (mips64r5900el-*-elf*): New configurations.
3671 * config/mips/mips-cpus.def (r5900): New processor.
3672 * config/mips/mips-tables.opt: Regenerate.
3673 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3674 (mips_issue_rate): Handle PROCESSOR_R5900.
3675 (mips_reorg_process_insns): Force reorder mode for the R5900.
3676 * config/mips/mips.h (TARGET_MIPS5900): Define.
3677 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3679 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3681 * config/mips/mips.md (processor): Add r5900.
3682 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3684 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3686 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3687 into function to generate MOVI instruction.
3688 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3689 (aarch64_preferred_simd_mode): Turn into wrapper.
3690 (aarch64_output_scalar_simd_mov_immediate): New function.
3691 * config/aarch64/aarch64-protos.h: Add prototype for above.
3693 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3695 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3696 element_char member.
3697 (sizetochar): Return signed char.
3698 (aarch64_simd_valid_immediate): Remove elchar and other
3699 unnecessary variables.
3700 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3701 Calculate element_char as required.
3702 * config/aarch64/aarch64-protos.h: Update and move prototype
3703 for aarch64_output_simd_mov_immediate.
3704 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3707 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3709 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3710 information completed by aarch64_simd_valid_immediate.
3711 (aarch64_legitimate_constant_p): Update arguments.
3712 (aarch64_simd_valid_immediate): Work with struct rather than many
3714 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3715 (aarch64_simd_make_constant): Update arguments.
3716 (aarch64_output_simd_mov_immediate): Work with struct rather than
3717 many pointers. Output immediate directly rather than as operand.
3718 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3720 * config/aarch64/constraints.md (Dn): Update arguments.
3722 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3724 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3726 (aarch64_simd_immediate_valid_for_move): Remove.
3727 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3728 (aarch64_simd_make_constant): Update call.
3729 (aarch64_output_simd_mov_immediate): Update call.
3730 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3732 * config/aarch64/constraints.md (Dn): Update call.
3734 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3736 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3737 return type to bool for prototype.
3738 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3739 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3740 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3742 2013-06-04 Catherine Moore <clm@codesourcery.com>
3744 * config/mips/mips.opt (meva): New.
3745 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3746 (ASM_SPEC): Handle -meva.
3747 * doc/invoke.texi (meva): Document.
3749 2013-06-04 Alan Modra <amodra@gmail.com>
3751 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3754 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3756 * rtl.def: Add extra fourth optional field to define_cond_exec.
3757 * gensupport.c (process_one_cond_exec): Process attributes from
3759 * doc/md.texi: Document fourth field in define_cond_exec.
3761 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3763 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3764 out the processing order as in store_bit_field_1.
3766 2013-06-04 Jan Hubicka <jh@suse.cz>
3769 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3770 non-VAR_DECL node if it does not exist yet.
3772 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3774 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3775 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3776 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3777 target_cpu_default setting.
3779 2013-06-03 Teresa Johnson <tejohnson@google.com>
3781 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3782 default to -fopt-info=optimized instead of all.
3783 * doc/invoke.texi: Ditto.
3784 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3785 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3786 (execute_vect_slp): Emit BB vectorization success under
3787 MSG_OPTIMIZED_LOCATIONS.
3788 * tree-vect-slp.c (vect_slp_transform_bb): Change
3789 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3790 * tree-vect-loop.c (vect_transform_loop): Ditto.
3792 2013-06-03 Jason Merrill <jason@redhat.com>
3795 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3796 Use TARGET_EXPR for C++.
3798 2013-06-03 Jakub Jelinek <jakub@redhat.com>
3800 PR rtl-optimization/57268
3801 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3802 if DEBUG_INSN_P (insn).
3805 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3807 PR rtl-optimization/57268
3808 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3809 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3811 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3813 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3814 (ix86_avoid_lea_for_addr): Likewise.
3815 (exact_dependency_1): Likewise.
3816 (ix86_adjust_cost): Likewise.
3817 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3819 (do_reorder_for_imul): Fix typo, formatting and
3820 !reload_completed check removed.
3821 (ix86_sched_reorder): Fix typo and formatting.
3822 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3825 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3827 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3829 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3831 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3832 <STRING_CST>: Likewise.
3833 <VECTOR_CST>: Likewise.
3835 2013-06-01 Janus Weil <janus@gcc.gnu.org>
3836 Mikael Morin <mikael@gcc.gnu.org>
3838 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3839 * config.in: Regenerated.
3840 * configure: Regenerated.
3842 2013-06-01 Jan Hubicka <jh@suse.cz>
3845 * cgraphunit.c (compile): When weakref is not supported,
3846 set up transparent aliases before final output pass.
3847 * varasm.c (assemble_alias): Do not try to do it here.
3849 2013-06-01 Jan Hubicka <jh@suse.cz>
3852 * passes.c (for_per_function): Skip unanalyzed functions.
3854 2013-06-01 Jan Hubicka <jh@suse.cz>
3856 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3857 (lto_symtab_merge_symbols_1): ... this one.
3858 (lto_symtab_merge_cgraph_nodes): Rename to ...
3859 (lto_symtab_merge_symbols): ... this one; simplify.
3860 * cgraph.c (same_body_aliases_done): Rename to ...
3861 (cpp_implicit_aliases_done): ... this one.
3862 (cgraph_create_function_alias): Update.
3863 (cgraph_same_body_alias): Update.
3864 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3865 (verify_edge_corresponds_to_fndecl): Simplify.
3866 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3867 (cgraph_node): Remove same_body_alias.
3868 (varpool_node): Remove alias_of and extra_name_alias.
3869 (same_body_aliases_done): Rename to ..
3870 (cpp_implicit_aliases_done): ... this one.
3871 (symtab_alias_ultimate_target): Add default parameter.
3872 (symtab_resolve_alias): New function.
3873 (fixup_same_cpp_alias_visibility): Declare.
3874 (cgraph_function_node): Add default parameter.
3875 (cgraph_node_asm_name): Likewise.
3876 (cgraph_function_or_thunk_node): Add default parameter; do
3877 not ICE when it is NULL.
3878 (varpool_variable_node): Likewise.
3879 * tree-emutls.c (create_emultls_var): Update.
3880 (ipa_lower_emutls): Update.
3881 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3882 (cgraph_reset_node): Reset alias info.
3883 (cgraph_finalize_function): Update.
3884 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3885 (analyze_function): Simplify.
3886 (cgraph_process_same_body_aliases): Simplify.
3887 (analyze_functions): Fixup same body aliases.
3888 (handle_alias_pairs): Simplify.
3889 (assemble_thunk): Update.
3890 (assemble_thunks_and_aliases): Update.
3891 (output_weakrefs): Rewrite.
3892 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3893 (lto_output_varpool_node): Likewise.
3894 (compute_ltrans_boundary): Remve assert.
3895 (get_alias_symbol): New functoin.
3896 (input_node): Rewrite alias handling.
3897 (input_varpool_node): Likewise.
3898 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3899 * ipa.c (process_references): Handle weakrefs correctly.
3900 (symtab_remove_unreachable_nodes): Likewise.
3901 * trans-mem.c (get_cg_data): Update.
3902 (ipa_tm_create_version_alias): Update.
3903 (ipa_tm_execute): Update.
3904 * symtab.c (dump_symtab_base): Dump aliases.
3905 (verify_symtab_base): Verify aliases.
3906 (symtab_node_availability): New function.
3907 (symtab_alias_ultimate_target): Simplify.
3908 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3909 handle all the fixup cases.
3910 (symtab_resolve_alias): New function.
3911 * passes.c (ipa_write_summaries): Handle weakrefs.
3912 * varpool.c (varpool_analyze_node): Simplify.
3913 (assemble_aliases): Update.
3914 (varpool_create_variable_alias): Simplify.
3915 (varpool_extra_name_alias): Simplify.
3916 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3917 (lto_symtab_merge_symbols): ... this one.
3919 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3922 PR rtl-optimization/57268
3923 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3924 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3926 2013-06-01 Tobias Burnus <burnus@net-b.de>
3929 2013-05-31 Tobias Burnus <burnus@net-b.de>
3932 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3935 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3937 PR rtl-optimization/57268
3938 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3939 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3941 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3943 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3944 unordered comparison operators when -fno-trapping-math is in effect
3946 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3947 and implement unordered comparison operators properly on the e500.
3949 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3951 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3952 for constant scalar integers.
3953 (simplify_relational_operation_1): Likewise.
3955 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3957 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3958 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3961 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3962 Igor Zamyatin <igor.zamyatin@intel.com>
3964 Silvermont (SLM) architecture performance tuning.
3965 * config/i386/i386.h (enum ix86_tune_indices): Add
3966 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3967 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3969 * config/i386/i386.c (initial_ix86_tune_features)
3970 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3971 (ix86_lea_outperforms): Handle Silvermont tuning.
3972 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3974 (ix86_use_lea_for_mov): Likewise.
3975 (ix86_avoid_lea_for_addr): Likewise.
3976 (ix86_lea_for_add_ok): Likewise.
3977 (exact_dependency_1): New function.
3978 (exact_store_load_dependency): Likewise.
3979 (ix86_adjust_cost): Handle Silvermont tuning.
3980 (do_reoder_for_imul): Likewise.
3981 (swap_top_of_ready_list): New function.
3982 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3984 * config/i386/i386.md (peepholes that split memory operand in fp
3987 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3989 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3990 Remove un-necessary braces.
3992 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3994 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3995 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3997 2013-05-31 Tobias Burnus <burnus@net-b.de>
4000 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
4002 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4005 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
4006 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
4007 * config/arm/neon.md (iordi3_neon): Remove.
4008 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
4009 * config/arm/predicates.md (imm_for_neon_logic_operand):
4010 Move to earlier in the file.
4011 (neon_logic_op2): Likewise.
4012 (arm_iordi_operand_neon): New predicate.
4014 2013-05-31 Richard Biener <rguenther@suse.de>
4016 PR tree-optimization/57478
4017 PR tree-optimization/57453
4018 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
4021 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4023 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
4024 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
4026 2013-05-30 Tobias Burnus <burnus@net-b.de>
4027 Thomas Koenig <tkoenig@gcc.gnu.org>
4030 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
4031 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
4033 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
4035 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4037 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
4039 * target.def (register_usage_leveling_p): New hook.
4040 * targhooks.c (default_register_usage_leveling_p): New.
4041 * targhooks.h (default_register_usage_leveling_p): New prototype.
4042 * lra-assigns.c (register_usage_leveling_p): Use the hook.
4043 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
4044 * doc/tm.texi: Update.
4045 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
4047 2013-05-30 Ian Bolton <ian.bolton@arm.com>
4049 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
4050 (*insv_reg<mode>): New define_insn.
4052 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
4054 PR rtl-optimization/57439
4055 * postreload.c (move2add_valid_value_p): Check that we have
4056 a zero subreg_regno_offset when accessing the register in
4059 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4060 Igor Zamyatin <igor.zamyatin@intel.com>
4062 Silvermont (SLM) architecture pipeline model, tuning and
4064 * config.gcc: Add slm config options and target.
4066 * config/i386/slm.md: New.
4068 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
4070 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
4072 (ix86_target_macros_internal): Likewise.
4074 * gcc/config/i386/i386.c (slm_cost): New cost.
4075 (m_SLM): New macro flag.
4076 (initial_ix86_tune_features): Set m_SLM.
4077 (x86_accumulate_outgoing_args): Likewise.
4078 (x86_arch_always_fancy_math_387): Likewise.
4079 (processor_target_table): Add slm cost.
4080 (cpu_names): Add slm cpu name.
4081 (x86_option_override_internal): Set SLM ISA.
4082 (ix86_issue_rate): New case PROCESSOR_SLM.
4083 (ia32_multipass_dfa_lookahead): Likewise.
4084 (fold_builtin_cpu): Add slm.
4086 * config/i386/i386.h (TARGET_SLM): New target macro.
4087 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
4088 (processor_type): Add PROCESSOR_SLM.
4090 * config/i386/i386.md (cpu): Add new value "slm".
4091 (slm.md): Include slm.md.
4093 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
4094 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4096 * config/arm/arm-protos.h: Add and update function protos.
4097 * config/arm/arm.c (use_simple_return_p): New added.
4098 (thumb2_expand_return): Check simple_return flag.
4099 * config/arm/arm.md: Add simple_return and conditional simple_return.
4100 * config/arm/iterators.md: Add iterator for return and simple_return.
4102 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4104 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
4105 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
4106 (arm_emit_vfp_multi_reg_pop): Likewise.
4107 (thumb2_emit_ldrd_pop): Likewise.
4108 (arm_expand_epilogue): Add misc REG_CFA notes.
4109 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
4111 2013-05-29 Lawrence Crowl <crowl@google.com>
4113 * config/arm/t-arm: Update for below.
4115 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
4116 Change type to hash_table. Update dependent calls and types.
4118 * config/i386/t-cygming: Update for below.
4120 * config/i386/t-interix: Update for below.
4122 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
4123 Change type to hash_table. Update dependent calls and types.
4124 (i386_find_on_wrapper_list::wrappers): Likewise.
4126 * config/ia64/t-ia64: Update for below.
4128 * config/ia64/ia64.c (bundle_state_table):
4129 Change type to hash_table. Update dependent calls and types.
4131 * config/mips/mips.c (mips_reorg_process_insns::htab):
4132 Change type to hash_table. Update dependent calls and types.
4134 * config/sol2.c (solaris_comdat_htab):
4135 Change type to hash_table. Update dependent calls and types.
4137 * config/t-sol2: Update for above.
4139 2013-05-29 Teresa Johnson <tejohnson@google.com>
4141 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
4142 functions are not yet marked as defined.
4144 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4145 Pat Haugen <pthaugen@us.ibm.com>
4146 Peter Bergner <bergner@vnet.ibm.com>
4148 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
4152 (vrotl<mode>3): Likewise.
4153 (vashl<mode>3): Likewise.
4154 (vlshr<mode>3): Likewise.
4155 (vashr<mode>3): Likewise.
4157 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4158 support for power8 V2DI builtins.
4160 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
4161 power8 V2DI builtins.
4162 (vupkhsw): Likewise.
4163 (vupklsw): Likewise.
4164 (vaddudm): Likewise.
4169 (vpkudum): Likewise.
4170 (vpksdss): Likewise.
4171 (vpkudus): Likewise.
4172 (vpksdus): Likewise.
4177 (vsubudm): Likewise.
4178 (vcmpequd): Likewise.
4179 (vcmpgtsd): Likewise.
4180 (vcmpgtud): Likewise.
4181 (vcmpequd_p): Likewise.
4182 (vcmpgtsd_p): Likewise.
4183 (vcmpgtud_p): Likewise.
4184 (vupkhsw): Likewise.
4185 (vupklsw): Likewise.
4186 (vaddudm): Likewise.
4191 (vpksdss): Likewise.
4192 (vpksdus): Likewise.
4193 (vpkudum): Likewise.
4194 (vpkudus): Likewise.
4199 (vsubudm): Likewise.
4201 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4202 support for power8 V2DI instructions.
4204 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4205 power8 V2DI instructions. Combine pack and unpack insns to use an
4206 iterator for each mode. Check whether a particular mode supports
4207 Altivec instructions instead of just checking TARGET_ALTIVEC.
4208 (UNSPEC_VPKUWUM): Likewise.
4209 (UNSPEC_VPKSHSS): Likewise.
4210 (UNSPEC_VPKSWSS): Likewise.
4211 (UNSPEC_VPKUHUS): Likewise.
4212 (UNSPEC_VPKSHUS): Likewise.
4213 (UNSPEC_VPKUWUS): Likewise.
4214 (UNSPEC_VPKSWUS): Likewise.
4215 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4216 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4217 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4218 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4219 (UNSPEC_VUPKHSB): Likewise.
4220 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4221 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4222 (UNSPEC_VUPKHSH): Likewise.
4223 (UNSPEC_VUPKLSB): Likewise.
4224 (UNSPEC_VUPKLSH): Likewise.
4226 (VI_char): Likewise.
4227 (VI_scalar): Likewise.
4228 (VI_unit): Likewise.
4230 (VP_small): Likewise.
4231 (VP_small_lc): Likewise.
4232 (VU_char): Likewise.
4233 (add<mode>3): Likewise.
4234 (altivec_vaddcuw): Likewise.
4235 (altivec_vaddu<VI_char>s): Likewise.
4236 (altivec_vadds<VI_char>s): Likewise.
4237 (sub<mode>3): Likewise.
4238 (altivec_vsubcuw): Likewise.
4239 (altivec_vsubu<VI_char>s): Likewise.
4240 (altivec_vsubs<VI_char>s): Likewise.
4241 (altivec_vavgs<VI_char>): Likewise.
4242 (altivec_vcmpbfp): Likewise.
4243 (altivec_eq<mode>): Likewise.
4244 (altivec_gt<mode>): Likewise.
4245 (altivec_gtu<mode>): Likewise.
4246 (umax<mode>3): Likewise.
4247 (smax<mode>3): Likewise.
4248 (umin<mode>3): Likewise.
4249 (smin<mode>3): Likewise.
4250 (altivec_vpkuhum): Likewise.
4251 (altivec_vpkuwum): Likewise.
4252 (altivec_vpkshss): Likewise.
4253 (altivec_vpkswss): Likewise.
4254 (altivec_vpkuhus): Likewise.
4255 (altivec_vpkshus): Likewise.
4256 (altivec_vpkuwus): Likewise.
4257 (altivec_vpkswus): Likewise.
4258 (altivec_vpks<VI_char>ss): Likewise.
4259 (altivec_vpks<VI_char>us): Likewise.
4260 (altivec_vpku<VI_char>us): Likewise.
4261 (altivec_vpku<VI_char>um): Likewise.
4262 (altivec_vrl<VI_char>): Likewise.
4263 (altivec_vsl<VI_char>): Likewise.
4264 (altivec_vsr<VI_char>): Likewise.
4265 (altivec_vsra<VI_char>): Likewise.
4266 (altivec_vsldoi_<mode>): Likewise.
4267 (altivec_vupkhsb): Likewise.
4268 (altivec_vupkhs<VU_char>): Likewise.
4269 (altivec_vupkls<VU_char>): Likewise.
4270 (altivec_vupkhsh): Likewise.
4271 (altivec_vupklsb): Likewise.
4272 (altivec_vupklsh): Likewise.
4273 (altivec_vcmpequ<VI_char>_p): Likewise.
4274 (altivec_vcmpgts<VI_char>_p): Likewise.
4275 (altivec_vcmpgtu<VI_char>_p): Likewise.
4276 (abs<mode>2): Likewise.
4277 (vec_unpacks_hi_v16qi): Likewise.
4278 (vec_unpacks_hi_v8hi): Likewise.
4279 (vec_unpacks_lo_v16qi): Likewise.
4280 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4281 (vec_unpacks_lo_v8hi): Likewise.
4282 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4283 (vec_pack_trunc_v8h): Likewise.
4284 (vec_pack_trunc_v4si): Likewise.
4285 (vec_pack_trunc_<mode>): Likewise.
4287 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4289 (vec_vmaxsd): Likewise.
4290 (vec_vmaxud): Likewise.
4291 (vec_vminsd): Likewise.
4292 (vec_vminud): Likewise.
4293 (vec_vpksdss): Likewise.
4294 (vec_vpksdus): Likewise.
4295 (vec_vpkudum): Likewise.
4296 (vec_vpkudus): Likewise.
4297 (vec_vrld): Likewise.
4298 (vec_vsld): Likewise.
4299 (vec_vsrad): Likewise.
4300 (vec_vsrd): Likewise.
4301 (vec_vsubudm): Likewise.
4302 (vec_vupkhsw): Likewise.
4303 (vec_vupklsw): Likewise.
4305 2013-05-29 Jan Hubicka <jh@suse.cz>
4307 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4308 flags; reorder rest of fields in more consistent way.
4309 (varpool_node): Remove analyzed, finalized and alias.
4310 (cgraph_ndoe): Likewise.
4311 (symtab_alias_ultimate_target): New function.
4312 (cgraph_function_node): Move offline.
4313 (cgraph_reset_node): Declare.
4314 (cgraph_comdat_can_be_unshared_p): Remove.
4315 (varpool_remove_initializer): Declare.
4316 (varpool_first_defined_variable, varpool_next_defined_variable
4317 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4318 (cgraph_function_with_gimple_body_p): Update.
4319 (varpool_all_refs_explicit_p): Update.
4320 (symtab_alias_target): New function.
4321 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4322 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
4323 (cgraph_function_or_thunk_node): Simplify using
4324 symtab_alias_ultimate_target.
4325 (varpool_variable_node): Likewise.
4326 * cgraph.c (cgraph_create_function_alias): Update.
4327 (cgraph_add_thunk): Update.
4328 (cgraph_remove_node): Update.
4329 (dump_cgraph_node): Do not dump removed flags.
4330 (cgraph_function_body_availability): Update.
4331 (cgraph_propagate_frequency): Update.
4332 (verify_cgraph_node): Check sanity of local flag.
4333 (cgraph_function_node): Move here from cgraph.h; revamp for
4334 cgraph_function_or_thunk_node.
4335 * lto-symtab.c (lto_varpool_replace_node): Update.
4336 (lto_symtab_resolve_can_prevail_p): Update.
4337 (lto_symtab_merge_cgraph_nodes): Update.
4338 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4339 propagate_constants_accross_call, devirtualization_time_bonus,
4340 ipcp_propagate_stage): Update.
4341 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
4342 * ipa-inline-transform.c (clone_inlined_nodes,
4343 preserve_function_body_p): Update.
4344 * ipa-reference.c (propagate): Update.
4345 (write_node_summary_p): Update.
4346 * toplev.c (wrapup_global_declaration_2): Update.
4347 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4348 (analyze_function) ... this one.
4349 (cgraph_process_new_functions): Update.
4350 (cgraph_reset_node): Export.
4351 (cgraph_finalize_function): Update.
4352 (cgraph_add_new_function): Update.
4353 (process_function_and_variable_attributes): Update.
4354 (varpool_finalize_decl): Update.
4355 (symbol_finalized): Remove.
4356 (symbol_finalized_and_needed): Rename to ...
4357 (symbol_defined_and_needed): ... update.
4358 (cgraph_analyze_functions): Update.
4359 (handle_alias_pairs): Update.
4360 (mark_functions_to_output): Update.
4361 (assemble_thunk): Update.
4362 (output_in_order): Update.
4363 (output_weakrefs): Update.
4364 (finalize_compilation_unit): Update.
4365 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4366 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4367 input_node, input_varpool_node): Update.
4368 * dbxout.c (dbxout_expand_expr): Update.
4369 * cgraphclones.c (cgraph_clone_node): Update.
4370 (cgraph_copy_node_for_versioning): Update.
4371 (cgraph_materialize_clone): Update.
4372 (cgraph_materialize_all_clones): Update.
4373 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4374 propagate_pure_const, propagate_nothrow): Update.
4375 * lto-streamer-out.c (lto_output, write_symbol): Update.
4376 * ipa-utils.c (ipa_reverse_postorder): Update.
4377 * ipa-inline.c (can_inline_edge_p): Update.
4378 (update_caller_keys, ipa_inline): Update.
4379 * dwarf2out.c (reference_to_unused,
4380 premark_types_used_by_global_vars_helper): Update.
4381 * tree-eh.c (tree_could_trap_p): Update.
4382 * ipa-split.c (consider_split, execute_split_functions): Update.
4383 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4384 has_addr_references_p): Update; move ahead in file for better
4386 (process_references): Simplify.
4387 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4389 (cgraph_comdat_can_be_unshared_p): Make static.
4390 (cgraph_externally_visible_p): Update.
4391 (varpool_externally_visible_p): Update.
4392 (function_and_variable_visibility): Update.
4393 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4394 ipa_tm_mark_force_output_node): Update.
4395 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4396 estimate_edge_devirt_benefit, inline_generate_summary,
4397 inline_write_summary): Update.
4398 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4399 * ipa-prop.c (ipa_compute_jump_functions): Update.
4400 (ipa_print_node_params, ipa_prop_read_section,
4401 ipa_update_after_lto_read, read_replacements_section): Update.
4402 * varasm.c (mark_decl_referenced): Update.
4403 (assemble_alias, dump_tm_clone_pairs): Update.
4404 * tree-inline.c (copy_bb): Update.
4405 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4407 * symtab.c (dump_symtab_base): Print new flags.
4408 (verify_symtab_base): Verify new flags.
4409 (symtab_alias_ultimate_target): New function.
4410 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4411 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4413 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4415 * i386.c (ix86_get_function_versions_dispatcher,
4416 ix86_generate_version_dispatcher_body): Update.
4417 (fold_builtin_cpu): Use varpool_add_new_variable.
4418 * varpool.c (varpool_remove_initializer): Break out from ...
4419 (varpool_remove_node): ... this one.
4420 (dump_varpool_node, varpool_node_for_asm,
4421 cgraph_variable_initializer_availability, varpool_analyze_node,
4422 varpool_assemble_decl, varpool_remove_unreferenced_decls,
4423 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4426 2013-05-29 Jan Hubicka <jh@suse.cz>
4428 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4430 2013-05-29 Easwaran Raman <eraman@google.com>
4432 PR tree-optimization/57442
4433 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4434 when control exits the main loop.
4436 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4438 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4440 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
4441 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4442 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4445 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4447 PR tree-optimization/57441
4448 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4449 Don't limit size of incr_vec to number of candidates.
4451 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
4453 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4454 and mips16 directories.
4455 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4456 (MULTILIB_DIRNAMES): Ditto.
4457 (MULTILIB_EXCEPTIONS): Add new exceptions.
4458 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4459 (MULTILIB_DIRNAMES): Ditto.
4460 (MULTILIB_EXCEPTIONS): Add new exceptions.
4462 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4463 Marcus Shawcroft <marcus.shawcroft@arm.com>
4465 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4466 SYMBOL_TINY_ABSOLUTE.
4467 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4468 SYMBOL_TINY_ABSOLUTE.
4469 (aarch64_expand_mov_immediate): Likewise.
4470 (aarch64_classify_symbol): Likewise.
4471 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4472 Permit SYMBOL_TINY_ABSOLUTE.
4473 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4475 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4476 Marcus Shawcroft <marcus.shawcroft@arm.com>
4478 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4479 Refactor if/switch. Replace gcc_assert with if.
4481 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4483 * config/i386/i386.c (initial_ix86_tune_features): Enable
4484 FP Reassociation for AMD bdver1 and bdver2.
4486 2013-05-29 Martin Jambor <mjambor@suse.cz>
4488 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4489 and IMAGPART_EXPR do not occur within other handled_components.
4491 2013-05-29 Richard Biener <rguenther@suse.de>
4493 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4494 access on whether the use is in the BB we currently try to
4496 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4497 vectorize to vect_bb_slp_scalar_cost.
4499 2013-05-29 Richard Biener <rguenther@suse.de>
4501 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4502 computing scalar cost offsetted by stmts that are kept live
4504 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4505 for computation of scalar cost.
4507 2013-05-28 Steve Ellcey <sellcey@mips.com>
4509 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4511 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4513 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4514 array notation built-in reduction functions.
4515 * doc/passes.texi (Passes): Added documentation about changes done
4517 * doc/invoke.texi (C Dialect Options): Added documentation about
4518 the -fcilkplus flag.
4519 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4520 (BUILTINS_DEF): Depend on cilkplus.def.
4521 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4522 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4523 * cilkplus.def: New file.
4525 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4527 PR rtl-optimization/57439
4528 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4530 2013-05-28 Easwaran Raman <eraman@google.com>
4532 PR tree-optimization/57337
4533 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4534 (find_insert_point): Correctly identify the insertion point
4535 when two statements with the same UID is compared.
4537 2013-05-28 Richard Biener <rguenther@suse.de>
4539 PR tree-optimization/56787
4540 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4541 from the list of data references.
4542 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4544 (vect_analyze_loop_operations): Likewise.
4545 (vect_transform_loop): Remove clobbers.
4547 2013-05-28 Martin Jambor <mjambor@suse.cz>
4549 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4550 and REALPART_EXPRs have scalar type.
4552 2013-05-28 Richard Biener <rguenther@suse.de>
4554 PR tree-optimization/57411
4555 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4557 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4558 virtual operand propagation.
4560 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4562 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4563 destination register for bmasksi_vis.
4564 (vector_init_bshuffle): Likewise.
4565 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4567 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4569 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4570 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4571 mode if the instruction isn't available in the original mode.
4572 * config/sparc/sparc.opt (mfix-ut699): New option.
4573 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4574 (divdf3): Turn into expander.
4575 (divdf3_nofix): New insn.
4576 (divdf3_fix): Likewise.
4577 (divsf3): Disable if -mfix-ut699.
4578 (sqrtdf2): Turn into expander.
4579 (sqrtdf2_nofix): New insn.
4580 (sqrtdf2_fix): Likewise.
4581 (sqrtsf2): Disable if -mfix-ut699.
4583 2013-05-27 Richard Biener <rguenther@suse.de>
4586 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4587 block for the new loop.
4589 2013-05-27 Richard Biener <rguenther@suse.de>
4591 PR tree-optimization/57343
4592 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4593 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4594 (number_of_iterations_cond): Do not build the folded tree.
4596 2013-05-27 Richard Biener <rguenther@suse.de>
4600 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4601 OEP_CONSTANT_ADDRESS_OF retained.
4603 PR tree-optimization/57417
4604 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4606 (set_ssa_val_to): Compare addresses using
4607 get_addr_base_and_unit_offset.
4609 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4611 PR rtl-optimization/56833
4612 * postreload.c (move2add_record_mode): New function.
4613 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4614 (move2add_use_add2_insn): Use move2add_record_sym_value.
4615 (move2add_use_add3_insn): Likewise.
4616 (reload_cse_move2add): Use move2add_valid_value_p and
4617 move2add_record_mode. Invalidate call-clobbered and REG_INC
4618 affected regs by setting reg_mode to VOIDmode.
4619 (move2add_note_store): Don't pretend the inside of a SUBREG is
4620 the actual destination. Invalidate single/leading registers by
4621 setting reg_mode to VOIDmode.
4622 Use move2add_record_sym_value, move2add_valid_value_p and
4623 move2add_record_mode.
4625 2013-05-27 Richard Biener <rguenther@suse.de>
4627 PR tree-optimization/57396
4628 * tree-affine.c (double_int_constant_multiple_p): Properly
4629 return false for val == 0 and div != 0.
4631 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4633 * config/mips/mips.h: Use #elif in preprocessor conditions.
4635 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4638 * config/mips/constraints.md (kl): New constraint.
4639 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4640 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4641 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4643 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4645 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4648 * config/mips/mips.c (mips_can_inline_p): New function.
4649 (TARGET_CAN_INLINE_P): Define.
4651 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4653 * sched-int.h (ds_t, dw_t): Make unsigned int.
4654 Fix documentation that describes how all the ds_t bits are used.
4655 Reserve the last bit for delayed-branch scheduling.
4656 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4657 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4658 (gen_dep_weak_1): Remove prototype.
4659 * sched-deps.c (get_dep_weak_1): Make static.
4660 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4661 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4662 * doc/tm.texi: Regenerate.
4663 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4665 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4668 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4670 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4671 Sandra Loosemore <sandra@codesourcery.com>
4673 * config.gcc (powerpc-*): Allow native for with-cpu.
4675 2013-05-24 Jeff Law <law@redhat.com>
4677 PR tree-optimization/57124
4678 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4679 conversion feeding a condition if the range has an overflow
4680 if -fstrict-overflow. Add warnings for when we do make the
4683 2013-05-24 Dehao Chen <dehao@google.com>
4685 * tree-cfg.c (locus_discrim_map): Fix the typo.
4686 (locus_discrim_hasher): Likewise.
4687 (locus_discrim_hasher::hash): Likewise.
4688 (locus_discrim_hasher::equal): Likewise.
4690 2013-05-24 Martin Jambor <mjambor@suse.cz>
4692 PR tree-optimization/57294
4693 * cgraph.h (ipa_record_stmt_references): Declare.
4694 * cgraphbuild.c (ipa_record_stmt_references): New function.
4695 (build_cgraph_edges): Use ipa_record_stmt_references.
4696 (rebuild_cgraph_edges): Likewise.
4697 (cgraph_rebuild_references): Likewise.
4698 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4699 associated with the old statement and build references from the
4700 newly built statements.
4701 * ipa-ref.c (ipa_remove_stmt_references): New function.
4702 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4704 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4706 * lra-constraints.c (emit_spill_move): Use smaller mode for
4708 (check_and_process_move): Consider mem-reg moves for secondary
4710 (curr_insn_transform): Don't lose insns emitted before for
4711 secondary memory moves.
4712 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4713 reg set up in the current insn.
4715 2013-05-24 Dehao Chen <dehao@google.com>
4717 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4719 (locus_descrim_hasher::equal): Likewise.
4720 (build_gimple_cfg): New discriminator assignment algorithm.
4721 (make_edges): Likewise.
4722 (next_discriminator_for_locus): Likewise.
4723 (same_line_p): Likewise.
4724 (assign_discriminators): Likewise.
4725 (make_cond_expr_edges): Likewise.
4726 (make_gimple_switch_edges): Likewise.
4727 (make_goto_expr_edges): Likewise.
4728 (make_gimple_asm_edges): Likewise.
4730 2013-05-24 Ian Bolton <ian.bolton@arm.com>
4732 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4733 X format specifier to only display bottom 16 bits.
4734 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4735 immediate to match for operand 2, since it will be masked.
4737 2013-05-24 Richard Biener <rguenther@suse.de>
4739 PR tree-optimization/57287
4740 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4741 all SSA names that occur in abnormal PHIs.
4743 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4746 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4747 that index is not negative.
4749 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4751 PR rtl-optimization/55177
4752 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4753 (simplify_byte_swapping_operation): New.
4754 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4755 (simplify_relational_operation_1): Deal with BSWAP.
4757 2013-05-23 Richard Henderson <rth@redhat.com>
4760 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4761 (ix86_reorg): Call it.
4763 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
4766 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4767 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4768 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4770 2013-05-23 Christian Bruel <christian.bruel@st.com>
4773 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4775 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4776 Marcus Shawcroft <marcus.shawcroft@arm.com>
4778 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4779 * config/aarch64/constraints.md (Usa): Remove.
4780 * doc/md.texi (AArch64 Usa): Remove.
4782 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4783 Marcus Shawcroft <marcus.shawcroft@arm.com>
4785 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4786 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4787 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4788 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4790 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4792 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4793 instruction (AdvSIMD).
4794 * config/aarch64/aarch64-builtins.c
4795 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4796 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4798 2013-05-23 Martin Jambor <mjambor@suse.cz>
4801 * tree.h (contains_bitfld_component_ref_p): Declare.
4802 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4803 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4805 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4806 not access a bit-field. Assert all final offsets are byte-aligned.
4808 2013-05-23 Richard Biener <rguenther@suse.de>
4810 PR tree-optimization/57380
4811 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4812 least one invariant or re-used load.
4813 * passes.c (init_optimization_passes): Move pass_phiprop before
4816 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4818 * config/aarch64/aarch64-simd.md
4819 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4821 2013-05-23 Richard Biener <rguenther@suse.de>
4824 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4825 OEP_CONSTANT_ADDRESS_OF retained.
4827 2013-05-23 Jakub Jelinek <jakub@redhat.com>
4830 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4831 don't lower unit. Handle unit not being always BITS_PER_WORD.
4833 2013-05-23 Richard Biener <rguenther@suse.de>
4835 PR rtl-optimization/57341
4836 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4837 instead of true_dependence.
4839 2013-05-22 David Malcolm <dmalcolm@redhat.com>
4841 * bb-reorder.c (branch_threshold): Make const.
4842 (exec_threshold): Ditto.
4844 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4845 Pat Haugen <pthaugen@us.ibm.com>
4846 Peter Bergner <bergner@vnet.ibm.com>
4848 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4849 documentation for the power8 crypto builtins.
4851 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4853 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4854 macros for defining power8 builtin functions.
4855 (BU_P8V_AV_2): Likewise.
4856 (BU_P8V_AV_P): Likewise.
4857 (BU_P8V_VSX_1): Likewise.
4858 (BU_P8V_OVERLOAD_1): Likewise.
4859 (BU_P8V_OVERLOAD_2): Likewise.
4860 (BU_CRYPTO_1): Likewise.
4861 (BU_CRYPTO_2): Likewise.
4862 (BU_CRYPTO_3): Likewise.
4863 (BU_CRYPTO_OVERLOAD_1): Likewise.
4864 (BU_CRYPTO_OVERLOAD_2): Likewise.
4865 (XSCVSPDP): Fix typo, point to the correct instruction.
4866 (VCIPHER): Add power8 crypto builtins.
4867 (VCIPHERLAST): Likewise.
4868 (VNCIPHER): Likewise.
4869 (VNCIPHERLAST): Likewise.
4870 (VPMSUMB): Likewise.
4871 (VPMSUMH): Likewise.
4872 (VPMSUMW): Likewise.
4873 (VPERMXOR_V2DI): Likewise.
4874 (VPERMXOR_V4SI: Likewise.
4875 (VPERMXOR_V8HI: Likewise.
4876 (VPERMXOR_V16QI: Likewise.
4877 (VSHASIGMAW): Likewise.
4878 (VSHASIGMAD): Likewise.
4880 (VPERMXOR): Likewise.
4881 (VSHASIGMA): Likewise.
4883 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4884 __CRYPTO__ if the crypto instructions are available.
4885 (altivec_overloaded_builtins): Add support for overloaded power8
4888 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4889 support for power8 crypto builtins.
4890 (builtin_function_type): Likewise.
4891 (altivec_init_builtins): Add support for builtins that take vector
4892 long long (V2DI) arguments.
4894 * config/rs6000/crypto.md: New file, define power8 crypto
4897 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4898 Pat Haugen <pthaugen@us.ibm.com>
4899 Peter Bergner <bergner@vnet.ibm.com>
4901 * doc/invoke.texi (Option Summary): Add power8 options.
4902 (RS/6000 and PowerPC Options): Likewise.
4904 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4905 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4906 wm, wn, wr documentation.
4908 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4909 registers if direct move instructions are enabled.
4910 (wn): New constraint for no registers.
4911 (wq): New constraint for quad word even GPR registers.
4912 (wr): New constraint if 64-bit instructions are enabled.
4913 (wv): New constraint if power8 vector instructions are enabled.
4914 (wQ): New constraint for quad word memory locations.
4916 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4917 constraint for 0..15 for crypto instructions.
4918 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4919 as GPR and floating point registers.
4920 (int_reg_operand): New predicate to match only GPR registers.
4921 (base_reg_operand): New predicate to match base registers.
4922 (quad_int_reg_operand): New predicate to match even GPR registers
4923 for quad memory operations.
4924 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4925 operations in both GPR and VSX registers.
4926 (quad_memory_operand): New predicate for quad memory operations.
4927 (reg_or_indexed_operand): New predicate for direct move support.
4929 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4930 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4931 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4932 (POWERPC_MASKS): Add power8 options.
4933 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4936 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4937 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4939 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4940 (-mpower8-fusion): New power8 options.
4941 (-mpower8-fusion-sign): Likewise.
4942 (-mpower8-vector): Likewise.
4943 (-mcrypto): Likewise.
4944 (-mdirect-move): Likewise.
4945 (-mquad-memory): Likewise.
4947 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4949 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4951 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4952 (rs6000_debug_vector_unit): Add p8_vector.
4953 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4954 definitions. Also print fusion state.
4955 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4956 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4957 (rs6000_option_override_internal): Add support for power8.
4958 (rs6000_common_init_builtins): Add debugging for skipped builtins
4960 (rs6000_adjust_cost): Add power8 support.
4961 (rs6000_issue_rate): Likewise.
4962 (insn_must_be_first_in_group): Likewise.
4963 (insn_must_be_last_in_group): Likewise.
4964 (force_new_group): Likewise.
4965 (rs6000_register_move_cost): Likewise.
4966 (rs6000_opt_masks): Likewise.
4968 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4969 power8 capable assembler, default to power7 options.
4970 (TARGET_DIRECT_MOVE): Likewise.
4971 (TARGET_CRYPTO): Likewise.
4972 (TARGET_P8_VECTOR): Likewise.
4973 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4974 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4975 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4976 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4977 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4978 (TARGET_XSCVDPSPN): Likewise.
4979 (TARGET_XSCVSPDPN): Likewsie.
4980 (TARGET_SYNC_HI_QI): Likewise.
4981 (TARGET_SYNC_TI): Likewise.
4982 (MASK_CRYPTO): Likewise.
4983 (MASK_DIRECT_MOVE): Likewise.
4984 (MASK_P8_FUSION): Likewise.
4985 (MASK_P8_VECTOR): Likewise.
4986 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4987 temporary used by some of the direct move instructions to get two FP
4988 temporary registers does not force creation of a stack frame.
4989 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4990 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4991 that any VSX registers are tieable, even if they are also an
4992 Altivec vector mode.
4993 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4994 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4995 (RS6000_BTM_CRYPTO): Likewise.
4996 (RS6000_BTM_COMMON): Likewise.
4998 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4999 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
5000 (enum rs6000_vector): Add power8 vector support.
5002 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5006 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
5007 (any_sibcall_could_use_r3): this and handle indirect calls.
5008 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
5010 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5012 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
5014 2013-05-22 Richard Biener <rguenther@suse.de>
5017 * profile.c (branch_prob): Do not split blocks that are
5018 abnormally receiving from ECF_RETURNS_TWICE functions.
5020 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5022 * recog.c (offsettable_address_addr_space_p): Fix calculation of
5023 address mode. Move pointer mode initialization to the same place.
5025 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5027 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
5028 while it has any effect.
5030 2013-05-21 Easwaran Raman <eraman@google.com>
5032 PR tree-optimization/57322
5033 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
5034 UID of the statement added to the BB to be 1.
5036 2013-05-21 Jakub Jelinek <jakub@redhat.com>
5038 PR tree-optimization/57331
5039 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
5040 of conversion from pointer type to integral type with integer.
5042 2013-05-21 Martin Jambor <mjambor@suse.cz>
5045 * ipa-prop.c (ipa_read_node_info): Process param_used and
5046 controlled_uses in the same order as when writing.
5048 2013-05-21 Magnus Granberg <baldrick@free.fr>
5051 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
5053 2013-05-21 Richard Biener <rguenther@suse.de>
5055 PR tree-optimization/57318
5056 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
5057 estimate stmts with side-effects as likely eliminated.
5059 2013-05-21 Richard Biener <rguenther@suse.de>
5061 PR tree-optimization/57330
5062 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
5063 preserve the call stmts fntype.
5065 2013-05-21 Richard Biener <rguenther@suse.de>
5067 PR tree-optimization/57303
5068 * tree-ssa-sink.c (statement_sink_location): Improve killing
5069 stmt detection and properly handle self-assignments.
5071 2013-05-21 Christian Bruel <christian.bruel@st.com>
5073 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
5074 spanning registers. LEAF_REG_REMAP is supported only for contiguous
5075 registers. Set register size out of the PARALLEL loop.
5077 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
5080 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
5081 (*fmasf4, *fmasf4_media): New insns.
5083 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5085 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
5086 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
5087 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
5088 (mips_idiv_insns): Update the comments to say that the returned
5089 instruction counts are in units of BASE_INSN_LENGTH.
5090 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
5091 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
5092 using 2 rather than 4 as the length of indirect MIPS16 and
5093 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
5094 length of a NOP. Don't divide MIPS16 lengths by 2.
5095 (mips16_split_long_branches): Assume a branch is long if the
5096 length is greater than 4 rather than 8.
5097 * config/mips/mips.md (length): Give MIPS16 lengths directly,
5098 rather than multiplying them by 2. Multiply instruction counts
5099 by BASE_INSN_LENGTH rather than 4.
5100 (*jump_mips16, tls_get_tp_mips16_<mode>)
5101 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
5103 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5105 * config/mips/mips.md (extended_mips16): Remove branch case.
5106 (length): Remove duplicated extended_mips16 test.
5108 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5110 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
5112 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
5114 * recog.h (Recog_data): Rename to...
5115 (recog_data_d): ...this.
5116 (recog_data): Update accordingly.
5117 * recog.c (recog_data): Likewise.
5118 * reload.c (save_recog_data): Likewise.
5119 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
5120 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
5122 2013-05-17 Julian Brown <julian@codesourcery.com>
5124 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
5125 found in a REG_EQUAL note, invalidate it.
5127 2013-05-17 Easwaran Raman <eraman@google.com>
5129 * tree-ssa-reassoc.c (find_insert_point): New function.
5130 (insert_stmt_after): Likewise.
5131 (get_def_stmt): Likewise.
5132 (ensure_ops_are_available): Likewise.
5133 (not_dominated_by): Likewise.
5134 (rewrite_expr_tree): Do not move statements beyond what is
5135 necessary. Remove call to swap_ops_for_binary_stmt...
5136 (reassociate_bb): ... and move it here.
5137 (build_and_add_sum): Assign UIDs for new statements.
5138 (linearize_expr): Likewise.
5139 (do_reassoc): Renumber gimple statement UIDs.
5141 2013-05-17 Jan Hubicka <jh@suse.cz>
5143 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
5145 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
5146 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
5148 (output_weakrefs): Update.
5150 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
5151 Martin Jambor <mjambor@suse.cz>
5154 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
5155 value that corresponds to the given aggval is found in values vector.
5157 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
5159 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
5160 sse, sse2, sse3, ssse3 and sse4a flags to options.
5162 2013-05-17 David Malcolm <dmalcolm@redhat.com>
5164 * gengtype-state.c: (s_expr_writer): New class, to handle
5165 prettifying of output layout of s-expressions.
5166 (state_writer): New class, to write out gtype.state.
5167 (state_written_type_count): Move this variable into member data of
5169 (s_expr_writer::s_expr_writer): New code: constructor for new class
5170 (state_writer::state_writer(): ditto
5171 (s_expr_writer::write_new_line): New function
5172 (s_expr_writer::write_any_indent): ditto
5173 (s_expr_writer::begin_s_expr): ditto
5174 (s_expr_writer::end_s_expr): ditto
5175 (write_state_fileloc): convert to method of state_writer...
5176 (state_writer:: write_state_fileloc): ...and use methods of
5177 s_expr_writer to write indentation into the gtype.state output file
5178 to visually represent the hierarchical structure of the list
5180 (write_state_fields): ditto, renaming to...
5181 (state_writer::write_state_fields)
5182 (write_state_a_string): ditto, renaming to...
5183 (state_writer::write_state_a_string)
5184 (write_state_string_option): ditto, renaming to...
5185 (state_writer::write_state_string_option)
5186 (write_state_type_option): ditto, renaming to...
5187 (state_writer::write_state_type_option)
5188 (write_state_nested_option): ditto, renaming to...
5189 (state_writer::write_state_nested_option)
5190 (write_state_option): ditto, renaming to...
5191 (state_writer::write_state_option)
5192 (write_state_options): ditto, renaming to...
5193 (state_writer::write_state_options)
5194 (write_state_lang_bitmap): ditto, renaming to...
5195 (state_writer::write_state_lang_bitmap)
5196 (write_state_version): ditto, renaming to...
5197 (state_writer::write_state_version)
5198 (write_state_scalar_type): ditto, renaming to...
5199 (state_writer::write_state_scalar_type)
5200 (write_state_string_type): ditto, renaming to...
5201 (state_writer::write_state_string_type)
5202 (write_state_undefined_type): ditto, renaming to...
5203 (state_writer::write_state_undefined_type)
5204 (write_state_struct_union_type): ditto, renaming to...
5205 (state_writer::write_state_struct_union_type)
5206 (write_state_struct_type): ditto, renaming to...
5207 (state_writer::write_state_struct_type)
5208 (write_state_user_struct_type): ditto, renaming to...
5209 (state_writer::write_state_user_struct_type)
5210 (write_state_lang_struct_type): ditto, renaming to...
5211 (state_writer::write_state_lang_struct_type)
5212 (write_state_param_struct_type): ditto, renaming to...
5213 (state_writer::write_state_param_struct_type)
5214 (write_state_pointer_type): ditto, renaming to...
5215 (state_writer::write_state_pointer_type)
5216 (write_state_array_type): ditto, renaming to...
5217 (state_writer::write_state_array_type)
5218 (write_state_gc_used): ditto, renaming to...
5219 (state_writer::write_state_gc_used)
5220 (write_state_common_type_content): ditto, renaming to...
5221 (state_writer::write_state_common_type_content)
5222 (write_state_type): ditto, renaming to...
5223 (state_writer::write_state_type)
5224 (write_state_pair_list): ditto, renaming to...
5225 (state_writer::write_state_pair_list)
5226 (write_state_pair): ditto, renaming to...
5227 (state_writer::write_state_pair)
5228 (write_state_typedefs): ditto, renaming to...
5229 (state_writer::write_state_typedefs)
5230 (write_state_structures): ditto, renaming to...
5231 (state_writer::write_state_structures)
5232 (write_state_param_structs): ditto, renaming to...
5233 (state_writer::write_state_param_structs)
5234 (write_state_variables): ditto, renaming to...
5235 (state_writer::write_state_variables)
5236 (write_state_srcdir): ditto, renaming to...
5237 (state_writer::write_state_srcdir)
5238 (write_state_files_list): ditto, renaming to...
5239 (state_writer::write_state_files_list)
5240 (write_state_languages): ditto, renaming to...
5241 (state_writer::write_state_languages)
5242 (write_state): create a state_writer instance and use it when
5243 writing out the state file
5245 2013-05-17 Mike Stump <mikestump@comcast.net>
5247 PR rtl-optimization/57304
5248 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5249 accessing DF_REF_REAL_LOC.
5251 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5253 PR rtl-optimization/57281
5254 PR rtl-optimization/57300
5255 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5256 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5257 what the other splitter did if the registers are dead.
5259 2013-05-17 Richard Biener <rguenther@suse.de>
5261 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5264 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5266 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5269 2013-05-17 Marek Polacek <polacek@redhat.com>
5271 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5272 length when doing non-zero store of storing '\0' to '\0'.
5274 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5276 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5277 vect_external_def oprnd1 with loop_vinfo, try to emit
5278 optional cast, negation and and stmts on the loop preheader
5279 edge instead of into the pattern def seq.
5281 PR tree-optimization/57051
5282 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5283 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5285 2013-05-16 Nick Clifton <nickc@redhat.com>
5287 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5288 (rl78_is_naked_func): New function.
5289 (rl78_expand_prologue): Skip prologue generation for naked functions.
5290 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
5291 * doc/extend.texi (naked): Add RL78 to the list of processors
5292 that supports this attribute.
5294 2013-05-16 Jeff Law <law@redhat.com>
5296 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5298 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5300 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5301 cache parameters using detect_caches_amd also for CYRIX,
5302 NSC and TM2 signatures.
5304 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5305 Dzianis Kahanovich <mahatma@eu.by>
5309 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5310 VIA/Centaur processors and determine their cache parameters
5311 using detect_caches_amd.
5313 2013-05-16 Teresa Johnson <tejohnson@google.com>
5315 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5316 (rtl_verify_edges): New function.
5317 (rtl_verify_bb_insns): Ditto.
5318 (rtl_verify_bb_pointers): Ditto.
5319 (rtl_verify_bb_insn_chain): Ditto.
5320 (rtl_verify_fallthru): Ditto.
5321 (rtl_verify_bb_layout): Ditto.
5322 (rtl_verify_flow_info_1): Outline checks into new functions.
5323 (rtl_verify_flow_info): Ditto.
5325 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
5327 * cfghooks.c (copy_bbs): Add update_dominance argument.
5328 * cfghooks.h (copy_bbs): Update prototype.
5329 * tree-cfg.c (gimple_duplicate_sese_region):
5330 Add update_dominance argument.
5331 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5332 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5333 gimple_duplicate_sese_region call.
5334 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5335 Update copy_bbs call.
5336 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5337 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5339 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5341 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5342 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5343 vect_recog_rotate_pattern.
5344 (vect_recog_rotate_pattern): New function.
5346 2013-05-16 Jason Merrill <jason@redhat.com>
5348 * Makefile.in (LLINKER): New variable.
5349 (mostlyclean): Remove link mutex.
5350 * configure.ac: Handle --enable-link-mutex.
5351 * lock-and-run.sh: New script.
5353 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5356 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5359 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5361 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5363 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5365 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5366 * config/arm/arm.c (next_consecutive_mem): New function.
5367 (gen_movmem_ldrd_strd): Likewise.
5368 * config/arm/arm.md (movmemqi): Update condition and code.
5369 (unaligned_loaddi, unaligned_storedi): New patterns.
5371 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5373 * config.gcc: Obsolete *-*-solaris2.9*.
5374 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5376 2013-05-16 Richard Biener <rguenther@suse.de>
5378 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5379 earlier, after GRAPHITE transforms and IV canonicalization.
5381 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5383 * omp-low.c (extract_omp_for_data): For collapsed loops,
5384 if at least one of the loops is known at compile time to
5385 iterate zero times, set count to 0.
5386 (expand_omp_regimplify_p): New function.
5387 (expand_omp_for_generic): For collapsed loops, if at least
5388 one of the loops isn't known to iterate at least once,
5389 add runtime check with setting count to 0.
5390 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5391 For unsigned types if it isn't known at compile time that
5392 the loop will iterate at least once, add runtime check to bypass
5393 the whole loop if initial condition isn't true.
5395 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5397 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5399 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
5402 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5403 transformations to avoid an infinite loop.
5405 2013-05-16 Marek Polacek <polacek@redhat.com>
5407 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5409 2013-05-15 Leif Ekblad <leif@rdos.net>
5411 * config/i386/i386.c (ix86_decompose_address): Use
5412 DEFAULT_TLS_SEG_REG to access TLS segment register.
5413 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5414 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5415 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5417 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5420 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5421 sibling calls to functions that would normally be lazily bound,
5422 unless $gp is call-clobbered.
5424 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
5426 * config/i386/i386.c (ix86_option_override_internal): Update
5427 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5428 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5429 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
5430 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5432 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5434 2013-05-15 Andreas Schwab <schwab@suse.de>
5436 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5437 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5440 2013-05-15 Teresa Johnson <tejohnson@google.com>
5442 * loop-unroll.c (report_unroll_peel): Check decision before
5443 emitting unroll/peel message.
5445 2013-05-15 Teresa Johnson <tejohnson@google.com>
5447 * function.h (has_bb_partition): New rtl_data flag.
5448 (bb_reorder_complete): Ditto.
5449 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5450 instead of flag_reorder_blocks_and_partition.
5451 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5452 with some enhancements.
5453 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5454 * bb-reorder.c (connect_traces): Check for has_bb_partition
5455 instead of flag_reorder_blocks_and_partition.
5456 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5457 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5458 verify_hot_cold_block_grouping.
5459 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5461 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5464 * config/arm/predicates.md (call_insn_operand): New predicate.
5465 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5466 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5467 if insn is not a tail call.
5468 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5470 * config/arm/arm.h (enum reg_class): New caller save register class.
5471 (REG_CLASS_NAMES): Likewise.
5472 (REG_CLASS_CONTENTS): Likewise.
5473 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5476 2013-05-15 Richard Biener <rguenther@suse.de>
5478 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5479 of MSG_OPTIMIZED_LOCATIONS.
5480 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5481 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5483 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5484 of MSG_OPTIMIZED_LOCATIONS.
5485 (execute_vect_slp): Likewise.
5486 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5487 (vect_create_cond_for_alias_checks): Likewise.
5488 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5489 (vect_recog_widen_mult_pattern): Likewise.
5490 (vect_recog_widen_sum_pattern): Likewise.
5491 (vect_recog_over_widening_pattern): Likewise.
5492 (vect_recog_widen_shift_pattern): Likewise.
5493 (vect_recog_vector_vector_shift_pattern): Likewise.
5494 (vect_recog_divmod_pattern): Likewise.
5495 (vect_recog_mixed_size_cond_pattern): Likewise.
5496 (vect_recog_bool_pattern): Likewise.
5497 (vect_pattern_recog_1): Likewise.
5499 2013-05-15 Martin Jambor <mjambor@suse.cz>
5501 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5502 non-functions to builtin_unreachable.
5503 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5504 correct when new direct edges were discovered.
5506 2013-05-15 Martin Jambor <mjambor@suse.cz>
5508 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5509 header, print symbol order instead of node uid, print more information
5510 about indirect edge targets.
5511 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5513 (ipa_make_edge_direct_to_target): Likewise.
5514 (remove_described_reference): Likewise.
5515 (propagate_controlled_uses): Likewise.
5516 (ipa_print_node_params): Also print symbol order.
5517 (ipcp_transform_function): Print symbol order instead of node uids.
5518 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5519 (cgraph_get_create_real_symbol_node): Likewise.
5520 * ipa-cp.c (print_lattice): Likewise.
5521 (print_all_lattices): Likewise.
5522 (determine_versionability): Likewise.
5523 (initialize_node_lattices): Likewise.
5524 (estimate_local_effects): Likewise.
5525 (update_profiling_info): Likewise.
5526 (create_specialized_node): Likewise.
5527 (perhaps_add_new_callers): Likewise.
5528 (decide_about_value): Likewise.
5529 (decide_whether_version_node): Likewise.
5530 (identify_dead_nodes): Likewise.
5531 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5532 (dump_inline_summary): Likewise.
5533 (estimate_node_size_and_time): Likewise.
5534 (inline_analyze_function): Likewise.
5535 * ipa-inline.c (report_inline_failed_reason): Likewise.
5536 (want_early_inline_function_p): Likewise.
5537 (edge_badness): Likewise.
5538 (update_edge_key): Likewise.
5539 (inline_small_functions): Likewise. Add dumping of order to two other
5541 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5542 instead of node uids.
5543 (propagate_pure_const): Likewise.
5544 (propagate_pure_const): Likewise.
5545 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5546 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5547 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5549 * tree-pretty-print.c (dump_function_header): Likewise.
5550 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5551 Print symbol order instead of node uids.
5553 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5555 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5556 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5558 2013-05-15 Richard Biener <rguenther@suse.de>
5560 PR tree-optimization/57275
5561 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5562 return value for fail to do runtime alias checks for gather loads.
5564 2013-05-15 Jan Hubicka <jh@suse.cz>
5568 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5569 weakrefs are not external.
5570 (lto_symtab_merge_decls): Fix thinko when dealing with
5571 non-lto_symtab decls.
5572 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5573 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5574 * varpool.c (dump_varpool_node): Dump more flags.
5576 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5578 * config/i386/i386.c (processor_alias_table): Add instruction
5579 FSGSBASE for AMD bdver3 architecture.
5581 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5583 * tree.c (warn_deprecated_use): Print file:line using locus color.
5584 * diagnostic.c (diagnostic_report_current_module): Print file:line
5585 and file:line:column using locus color.
5587 2013-05-14 Mike Stump <mikestump@comcast.net>
5589 * gdbinit.in: Add __null.
5591 2013-05-14 Mike Stump <mikestump@comcast.net>
5593 * recog.h: Rename struct recog_data to Recog_data.
5594 * recog.c: Likewise.
5595 * reload.c (can_reload_into): Likewise.
5596 * config/picochip/picochip.c: Likewise.
5598 2013-05-14 Mike Stump <mikestump@comcast.net>
5600 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5602 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5604 * resource.h (struct resources): Remove unch_memory member.
5605 (CLEAR_RESOURCE): Don't clear unch_memory.
5606 * resource.c (mark_referenced_resources): Don't set it.
5607 (mark_set_resources): Likewise.
5608 (mark_target_live_regs): Don't clear it.
5609 (init_resource_info): Likewise.
5610 * reorg.c (resource_conflicts_p): Don't compare it.
5611 (redundant_insn): Don't set it.
5613 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5615 * emit-rtl.c (next_label): Remove unused function.
5616 (skip_consecutive_labels, link_cc0_insns): Move to ...
5617 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5618 only place where these functions are used, and make them static.
5620 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5622 * fold-const.c (fold_negate_expr): Handle vectors.
5623 (fold_truth_not_expr): Make it static.
5624 (fold_invert_truthvalue): New static function.
5625 (invert_truthvalue_loc): Handle vectors. Do not call
5626 fold_truth_not_expr directly.
5627 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5628 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5629 (fold_comparison): Handle vector constants.
5630 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5631 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5632 * tree.h (fold_truth_not_expr): Remove declaration.
5634 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5636 * config/aarch64/aarch64-simd.md
5637 (aarch64_vcond_internal<mode>): Rename to...
5638 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5639 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5640 float modes. Clarify all iterator modes.
5641 (vcond<mode><mode>): Use new name for vcond expanders.
5642 (vcond<v_cmp_result><mode>): Likewise.
5643 (vcondu<mode><mode>: Likewise.
5644 * config/aarch64/iterators.md (VDQF_COND): New.
5646 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5649 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5650 variable for the shift amount. Check that we shift by non-negative
5653 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5656 * config/arm/arm.h (EPILOGUE_USES): Only return true
5657 for LR_REGNUM after epilogue_completed.
5659 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5661 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5664 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5667 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5668 and Solaris 11+/x86 with gld.
5669 * configure: Regenerate.
5671 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5673 * expmed.c (expand_shift_1): Canonicalize rotates by
5674 constant bitsize / 2 to bitsize - 1.
5675 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5676 case ROTATERT>: Likewise.
5679 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5681 * config/i386/i386.md (rotateinv): New code attr.
5682 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5683 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5684 roll $31, %eax, etc.
5686 2013-05-14 Richard Biener <rguenther@suse.de>
5689 * tree-eh.c (sink_clobbers): Give up for successors with
5690 multiple predecessors and no virtual uses.
5692 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5694 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5695 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5697 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5700 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5701 the case when both op0 and op1 have VOIDmode.
5703 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5705 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5706 in multiply-accumulate mode.
5708 2013-05-13 Guozhi Wei <carrot@google.com>
5710 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5712 2013-05-13 Kai Tietz <ktietz@redhat.com>
5715 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5716 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5717 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5718 * config/i386/i386.c (ix86_option_override_internal): Likewise.
5719 (ix86_expand_prologue): Likewise.
5720 (ix86_expand_split_stack_prologue): Likewise.
5721 (legitimate_pic_address_disp_p): Likewise.
5722 (legitimize_pic_address): Likewise.
5723 (legitimize_tls_address): Likewise.
5724 (legitimize_pe_coff_symbol): Likewise.
5725 (output_pic_addr_const): Likewise.
5726 (construct_plt_address): Likewise.
5727 (ix86_expand_call): Likewise.
5728 (x86_output_mi_thunk): Likewise.
5729 (x86_function_profiler): Likewise.
5731 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5733 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5734 similar switch cases.
5735 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5736 (aarch64_simd_mov_to_<mode>low): Delete.
5737 (aarch64_simd_mov_to_<mode>high): Delete.
5738 (move_lo_quad_<mode>): Add w<-r alternative.
5739 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5740 (aarch64_simd_mov_from_*): Update type attribute.
5741 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5744 2013-05-13 Jan Hubicka <jh@suse.cz>
5746 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5747 * config/i386/i386.c (ix86_compute_frame_layout,
5748 ix86_expand_epilogue, emit_i387_cw_initialization,
5749 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5750 ix86_local_alignment): Fix use of size/speed predicates.
5752 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5754 PR tree-optimization/45216
5755 PR tree-optimization/57157
5756 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5757 the (-Y) & (B - 1) variant if OP is |.
5758 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5759 return shifted. Use (-op1) & (prec - 1) as other_amount
5760 instead of prec - op1.
5762 2013-05-13 Martin Jambor <mjambor@suse.cz>
5765 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5766 (ipa_constant_data): New type.
5767 (ipa_jump_func): Use ipa_constant_data to hold information about
5768 constant jump functions.
5769 (ipa_get_jf_constant): Adjust to jump function type changes.
5770 (ipa_get_jf_constant_rdesc): New function.
5771 (ipa_param_descriptor): New field controlled_uses.
5772 (ipa_get_controlled_uses): New function.
5773 (ipa_set_controlled_uses): Likewise.
5774 * ipa-ref.h (ipa_find_reference): Declare.
5775 * ipa-prop.c (ipa_cst_ref_desc): New type.
5776 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5778 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5779 New parameter cs. Adjust all callers.
5780 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5781 (remove_described_reference): New function.
5782 (jfunc_rdesc_usable): Likewise.
5783 (try_make_edge_direct_simple_call): Decrement controlled use count,
5784 attempt to remove reference if it hits zero.
5785 (combine_controlled_uses_counters): New function.
5786 (propagate_controlled_uses): Likewise.
5787 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5788 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5789 (ipa_print_node_params): Print described use counter.
5790 (ipa_write_jump_function): Adjust to jump function type changes.
5791 (ipa_read_jump_function): New parameter CS, pass it to
5792 ipa_set_jf_constant. Adjust caller.
5793 (ipa_write_node_info): Stream controlled use count
5794 (ipa_read_node_info): Likewise.
5795 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5797 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5798 count. Remove cloning-added reference if it reaches zero.
5799 * ipa-ref.c (ipa_find_reference): New function.
5801 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5803 * config/i386/i386.c (processor_target_table): Modified default
5804 alignment values for AMD BD and BT architectures.
5806 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
5808 * tree-vect-generic.c (uniform_vector_p): Move ...
5809 * tree.c (uniform_vector_p): ... here.
5810 * tree.h (uniform_vector_p): Declare it.
5811 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5814 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5816 PR tree-optimization/57230
5817 * tree-ssa-strlen.c (handle_char_store): Record length for
5818 array store from STRING_CST.
5820 PR tree-optimization/57230
5821 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5824 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5826 * config/epiphany/epiphany.c (epiphany_init): Check size of
5827 NUM_MODES_FOR_MODE_SWITCHING.
5828 (epiphany_expand_prologue):
5829 Remove CONFIG_REGNUM initial value handling code.
5830 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5831 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5832 (emit_set_fp_mode, epiphany_mode_after): Likewise.
5833 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5834 Don't return 1 for FP_MODE_NONE.
5835 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5836 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5837 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5838 * config/epiphany/epiphany.md (save_config): New pattern.
5840 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
5842 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5844 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
5846 * config/i386/i386.md (memory): Handle sseishft1.
5847 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5848 (*vec_extractv2di_1): Ditto.
5850 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5852 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5855 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
5857 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5858 Add mthumb/march=armv7-a multilib.
5859 Add mthumb/march=armv7-r multilib.
5860 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5862 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5864 * config/v850/t-rtems: Add more multilibs.
5866 2013-05-10 Richard Biener <rguenther@suse.de>
5868 PR tree-optimization/57214
5869 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5870 not propagate from SSA names that occur in abnormal PHI nodes.
5872 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
5874 * stor-layout.c (element_precision): New function.
5875 * machmode.h (element_precision): Declare it.
5876 * tree.c (build_minus_one_cst): New function.
5877 (element_precision): Likewise.
5878 * tree.h (build_minus_one_cst): Declare new function.
5879 (element_precision): Likewise.
5880 * fold-const.c (operand_equal_p): Use element_precision.
5881 (fold_binary_loc): Handle vector types.
5882 * convert.c (convert_to_integer): Use element_precision.
5883 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5886 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5888 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5889 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5890 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5891 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5892 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5893 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5894 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5895 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5896 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5897 (Uuw8): New constraints.
5898 (Usb4): Move into alphabetical order.
5899 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5900 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5901 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5902 previously unnamed patterns.
5903 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5904 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5905 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5906 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5907 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5908 of specific lengths.
5910 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5912 * config/i386/i386.md (rotateinv): New code attr.
5913 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5914 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5915 roll $31, %eax, etc.
5917 PR tree-optimization/45216
5918 PR tree-optimization/57157
5919 * tree-ssa-forwprop.c (simplify_rotate): New function.
5920 (ssa_forward_propagate_and_combine): Call it.
5922 2013-05-10 Richard Biener <rguenther@suse.de>
5924 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5925 disable peeling when we version for aliasing.
5926 (vector_alignment_reachable_p): Honor explicit user alignment.
5927 (vect_supportable_dr_alignment): Likewise.
5928 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5929 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5930 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5931 then peeling to arrange for the cost-model check to come first.
5933 2013-05-10 Alan Modra <amodra@gmail.com>
5935 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5936 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5937 * configure: Regenerate.
5939 2013-05-10 Alan Modra <amodra@gmail.com>
5942 * varasm.c (default_elf_select_section): Move !DECL_P check..
5943 (get_named_section): ..to here before calling get_section_name.
5945 (default_section_type_flags): Add DECL_P check.
5946 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5947 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5949 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5951 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5952 When using gen_stack_adjust_str with a register offset, add a
5953 REG_FRAME_RELATED_EXPR note.
5955 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
5957 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5958 (*vec_extractv4si_zext_mem): Ditto.
5959 (*vec_extractv2di): Add 0->x and x->x alternatives.
5960 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5961 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5963 2013-05-09 Jason Merrill <jason@redhat.com>
5965 N3639 C++1y VLA support
5966 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5969 * tree.c (build_constructor_va): New.
5970 * tree.h: Declare it.
5972 2013-05-09 Martin Jambor <mjambor@suse.cz>
5975 * gimple-fold.c (canonicalize_constructor_val): Call
5976 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5978 2013-05-09 Jan Hubicka <jh@suse.cz>
5979 Richard Biener <rguenther@suse.de>
5982 * symtab.c (symtab_make_decl_local): Do not add private names.
5984 2013-05-09 Jan Hubicka <jh@suse.cz>
5987 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5988 (unlink_from_assembler_name_hash): Likewise.
5989 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5990 symtab_unregister_node, symtab_initialize_asm_name_hash,
5991 change_decl_assembler_name): Update.
5993 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5995 * config/aarch64/aarch64.md: New movtf split.
5996 (*movtf_aarch64): Update.
5997 (aarch64_movdi_tilow): Handle TF modes and rename to
5998 aarch64_movdi_<mode>low.
5999 (aarch64_movdi_tihigh): Handle TF modes and rename to
6000 aarch64_movdi_<mode>high
6001 (aarch64_movtihigh_di): Handle TF modes and rename to
6002 aarch64_mov<mode>high_di
6003 (aarch64_movtilow_di): Handle TF modes and rename to
6004 aarch64_mov<mode>low_di
6005 (aarch64_movtilow_tilow): Remove spurious whitespace.
6006 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
6008 (aarch64_print_operand): Update.
6010 2013-05-09 Alan Modra <amodra@gmail.com>
6012 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
6014 * configure: Regenerate.
6016 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
6018 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
6019 splitter preparation statements.
6020 * config/i386/sse.md (*vec_extract* splitters): Ditto.
6021 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
6024 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6026 * gimple-ssa-strength-reduction.c (count_candidates): Change
6027 return value to int.
6028 (analyze_candidates_and_replace): Change type of length to int.
6030 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
6032 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
6033 (*vec_extract<mode>): Use VI12_128 mode iterator.
6034 (*vec_extract<mode>_mem): Ditto.
6035 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
6038 2013-05-08 Diego Novillo <dnovillo@google.com>
6043 2012-08-17 Diego Novillo <dnovillo@google.com>
6046 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
6047 * config.in: Regenerate.
6048 * configure: Regenerate.
6049 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
6051 2013-05-08 Jan Hubicka <jh@suse.cz>
6054 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
6055 * cgraph.h (symtab_node_base): Add unique_name.
6056 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6057 input_overwrite_node, input_varpool_node): Stream unique_name.
6058 * cgraphclones.c (cgraph_create_virtual_clone,
6059 cgraph_function_versioning): Set unique_name.
6060 * ipa.c (function_and_variable_visibility): Set unique_name.
6062 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6064 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
6065 (alloc_cand_and_find_basis): Restrict conditional candidate
6066 processing to CAND_MULTs.
6068 2013-05-08 Jan Hubicka <jh@suse.cz>
6071 lto-symtab.c (lto_symtab_symbol_p): New function.
6072 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
6073 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
6074 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
6075 Skip static symbols.
6077 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
6079 PR tree-optimization/57200
6080 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6081 Only call inform if the preceding warning_at returns true.
6083 2013-05-07 Han Shen <shenhan@google.com>
6085 * cfgexpand.c (record_or_union_type_has_array_p): New function.
6086 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
6087 * common.opt (fstack-protector-strong): New option.
6088 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
6089 * doc/invoke.texi (Optimization Options): Document
6090 "-fstack-protector-strong".
6091 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
6093 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6095 * config/mips/mips.c (mips_machine_reorg2): Return 0.
6097 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
6099 * ira.c (update_equiv_regs): Add insn having equiv memory even if
6100 it is not lhs of the insn.
6101 (setup_reg_equiv): Remove insn having equiv memory which it is not
6103 * lra-constraints.c (process_address): Try to improve generation
6104 code for address base + disp.
6105 (lra_constraints): Make correct the code for checking insn setting
6106 up backward equivalence. Remove insn only if it is in the init
6108 * lra-eliminations.c (update_reg_eliminate): Change return value.
6109 (lra_eliminate): Use the result.
6111 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
6113 * config/i386/sse.md (ssescalarnummask): New mode attribute.
6114 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
6115 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
6116 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
6117 register target operands.
6118 (*vec_extractv8hi_sse2): New pattern.
6119 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
6120 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
6121 (*vec_extract<mode>_mem): New insn and split pattern.
6123 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
6125 * config/arm/arm.c (arm_asan_shadow_offset): New function.
6126 (TARGET_ASAN_SHADOW_OFFSET): Define.
6127 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
6128 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
6130 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6132 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
6133 (incr_vec_index): Return -1 if increment not found.
6134 (create_add_on_incoming_edge): Assert if increment not found.
6135 (record_increment): Limit number of increments recorded.
6136 (all_phi_incrs_profitable): Return false if an increment not found.
6137 (replace_profitable_candidates): Don't process increments that were
6139 (analyze_candidates_and_replace): Limit size of incr_vec.
6141 2013-05-07 Richard Biener <rguenther@suse.de>
6143 * calls.c (special_function_p): setjmp-like functions are leaf.
6144 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
6145 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
6147 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
6149 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
6150 (aarch64_simd_mov<mode>): New expander.
6151 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
6152 (aarch64_simd_mov_to_<mode>high): Likewise.
6153 (aarch64_simd_mov_from_<mode>low): Likewise.
6154 (aarch64_simd_mov_from_<mode>high): Likewise.
6155 (aarch64_dup_lane<mode>): Update.
6156 (aarch64_dup_lanedi): New instruction pattern.
6157 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
6158 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
6160 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6162 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
6163 (replace_mult_candidate): Remove unnecessary argument; remove
6164 unnecessary parameter from call to introduce_cast_before_cand.
6165 (replace_unconditional_candidate): Remove unnecessary parameter
6166 from call to replace_mult_candidate.
6167 (replace_conditional_candidate): Likewise.
6168 (insert_initializers): Use make_temp_ssa_name.
6169 (introduce_cast_before_cand): Remove unnecessary argument; use
6171 (replace_one_candidate): Remove unnecessary argument; remove
6172 unnecessary parameter from calls to introduce_cast_before_cand.
6173 (replace_profitable_candidates): Remove unnecessary parameters
6174 from calls to replace_one_candidate.
6176 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6178 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
6179 phi def as possibly hiding a basis for a CAND_ADD whose operands
6180 have been commuted in the analysis.
6181 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
6183 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6185 * config/aarch64/aarch64.md
6186 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
6187 shift value between 0-4.
6189 2013-05-07 Richard Biener <rguenther@suse.de>
6191 * double-int.h (rshift): New overload.
6192 * double-int.c (rshift): New function.
6193 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
6194 (create_reference_ops_from_ref): Remove.
6195 (vn_reference_insert): Use shared ops for constructing the
6196 reference and copy it.
6198 2013-05-07 Richard Biener <rguenther@suse.de>
6201 * tree-eh.c (sink_clobbers): Properly propagate
6202 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6204 2013-05-07 Jakub Jelinek <jakub@redhat.com>
6206 PR tree-optimization/57149
6207 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6208 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6209 collect_phi_def_edges, execute_late_warn_uninitialized): Use
6210 uninit_undefined_value_p instead of ssa_undefined_value_p.
6213 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6214 for modifier == EXPAND_INITIALIZER.
6216 2013-05-07 Anton Blanchard <anton@samba.org>
6218 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6219 for powerpc64 little endian.
6220 * configure: Regenerate.
6222 2013-05-06 Graham Stott <grahams@btinternet.com>
6224 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6225 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6226 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6227 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6229 2013-05-06 Graham Stott <grahams@btinternet.com>
6231 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6232 codes which allow non-lvalues.
6234 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
6236 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6237 components are all 1s.
6238 (integer_minus_onep): New function.
6239 * tree.h (integer_minus_onep): Declare it.
6240 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6241 integer_minus_onep instead of integer_all_onesp.
6243 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6246 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6247 variations of these patterns.
6249 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6251 * config/i386/i386.md (isa): Add x64_sse4 member.
6252 (enabled): Handle x64_sse4.
6253 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6254 instruction for 64bit SSE4_1 targets. Update insn attributes.
6255 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6256 instruction for SSE4_1 targets. Update insn attributes.
6257 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6258 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6259 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6261 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6262 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6263 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6265 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6268 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6270 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6272 * final.c (do_assembler_dialects): Don't handle curly braces and
6273 vertical bar escaped by % as dialect delimiters.
6274 (output_asm_insn): Print curly braces and vertical bar if escaped
6275 by % and ASSEMBLER_DIALECT defined.
6276 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6277 * doc/tm.texi: Regenerated.
6279 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6281 * config/mips/mips.c: Include tree-pass.h.
6282 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6283 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6284 (pass_mips_machine_reorg2): New machine specific pass.
6285 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6286 (mips_option_override): Register the new pass.
6287 * rtl.h (cleanup_barriers): Remove prototype.
6288 (dbr_schedule): Likewise.
6289 * jump.c (cleanup_barriers): Make static.
6290 * reorg.c (dbr_schedule): Likewise.
6292 2013-05-06 Richard Biener <rguenther@suse.de>
6294 PR tree-optimization/57185
6295 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6298 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6301 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6302 between "first_arg" and "insn", not "last" and "insn".
6304 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6306 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6307 (find_candidates_in_block): Re-enable slsr_process_phi.
6308 (create_phi_basis): Fix double counting of candidate adjustment.
6310 2013-05-06 Richard Biener <rguenther@suse.de>
6313 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6314 the edge is also fallthru, preserve it and just clear the
6316 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6317 also complex, preserve that and just clear the fallthru flag.
6318 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6319 update virtual operands.
6321 2013-05-06 Alan Modra <amodra@gmail.com>
6323 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6324 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6325 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6326 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6327 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6328 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6330 2013-05-06 Alan Modra <amodra@gmail.com>
6332 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6333 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6334 (DEFAULT_ASM_ENDIAN): Define.
6335 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6336 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6337 Update -K PIC clause from sysv4.h.
6338 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6339 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6341 2013-05-06 Alan Modra <amodra@gmail.com>
6343 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6344 twice for little-endian.
6345 (ashrdi3_no_power, ashrdi3): Support little-endian.
6347 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6350 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6351 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6353 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6354 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6355 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6358 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6359 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6361 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6362 * config/pa/pa.opt: Make mbig-switch a no-op.
6363 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6364 (CASE_VECTOR_MODE): Always return SImode.
6365 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6366 for the !TARGET_BIG_SWITCH case.
6367 * config/pa/pa-linux.h: Likewise.
6368 * config/pa/pa-openbsd.h: Likewise.
6369 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6370 * config/pa/pa.md (short_jump): Remove define_insn.
6371 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6372 (casesi0): Remove define_insn.
6373 (type): Remove btable_branch.
6374 (pa_combine_type): Likewise.
6375 (in_nullified_branch_delay): Likewise.
6376 (in_call_delay): Likewise.
6377 (define_delay): Likewise.
6378 (define_insn_reservation "Z3"): Likewise.
6379 (define_insn_reservation "Z4"): Likewise.
6380 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6381 (pa_adjust_insn_length): Remove adjustment for btable branches.
6382 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6385 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
6387 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6388 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6389 Add m->r,x alternatives.
6390 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6391 splitters using SWI48x mode iterator.
6392 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6393 TARGET_64BIT. Add m->x alternative.
6394 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6395 Add o->x alternative. Enable for TARGET_SSE.
6396 (sse_storeq): Remove expander.
6397 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6398 with memory input operand.
6399 (*vec_extractv2di_1 splitter): New.
6400 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6401 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6403 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6405 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6406 (INT_LOWPART): Delete.
6407 (extract_MB): Adjust.
6408 (extract_ME): Adjust.
6409 (print_operand): Adjust.
6411 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6413 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6414 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6415 (reg_or_logical_cint_operand, easy_fp_constant,
6416 logical_const_operand): Delete "CONST_DOUBLE" case.
6417 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6418 "HOST_BITS_PER_WIDE_INT == 64" test.
6419 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
6420 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6421 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6422 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6424 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6425 CONST_DOUBLE DImode/VOIDmode case.
6426 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6427 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6428 CONST_DOUBLE VOIDmode case.
6429 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6430 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6431 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6432 Delete CONST_DOUBLE case.
6433 (splitters for mov FMOVE64 const_double): Delete
6434 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6435 "HOST_BITS_PER_WIDE_INT >= 64" test.
6436 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6438 (mov DI const_double): Delete.
6440 2013-05-04 Jakub Jelinek <jakub@redhat.com>
6442 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6443 on op shows all bits zero in mode of a lowpart subreg, return zero.
6445 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6448 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6449 to save TFmode registers and DImode to save TImode registers for
6450 caller save operations.
6451 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6452 mark being partially clobbered since they only use the first
6455 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6456 and TDmode only use the upper 64-bits of each VSX register.
6458 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6460 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6461 (find_candidates_in_block): Disable slsr_process_phi.
6463 2013-05-03 Guozhi Wei <carrot@google.com>
6465 * coverage.c (coverage_obj_init): Move the construction of gcov
6467 (build_init_ctor): ... here.
6469 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6471 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6472 (slsr_cand_d): Redefine def_phi.
6473 (stride_status, phi_adjust_status, count_phis_status): New enums.
6474 (find_phi_def): New.
6475 (find_basis_for_base_expr): New.
6476 (find_basis_for_candidate): Handle hidden bases.
6477 (alloc_cand_and_find_basis): Handle phi candidates.
6478 (slsr_process_phi): New.
6479 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6480 (create_mul_imm_cand): Likewise.
6481 (create_add_ssa_cand): Exclude phi base candidates.
6482 (create_add_imm_cand): Likewise.
6483 (slsr_process_cast): Likewise.
6484 (slsr_process_copy): Likewise.
6485 (find_candidates_in_block): Handle phi candidates.
6486 (dump_candidate): Likewise.
6487 (unconditional_cands): Delete.
6488 (unconditional_cands_with_known_stride_p): Delete.
6489 (phi_dependent_cand_p): New.
6490 (cand_increment): Handle phi-dependent candidates.
6491 (replace_dependent): Delete.
6492 (replace_mult_candidate): New.
6493 (replace_unconditional_candidate): New.
6494 (incr_vec_index): Move to avoid forward reference.
6495 (create_add_on_incoming_edge): New.
6496 (create_phi_basis): New.
6497 (replace_dependents): Delete.
6498 (replace_conditional_candidate): New.
6499 (phi_add_costs): New.
6500 (replace_uncond_cands_and_profitable_phis): New.
6501 (record_increment): Handle phi adjustments.
6502 (record_phi_increments): New.
6503 (record_increments): Handle phi adjustments.
6504 (phi_incr_cost): New.
6505 (lowest_cost_path): Handle phis.
6506 (total_savings): Likewise.
6507 (analyze_increments): Likewise.
6508 (ncd_with_phi): New.
6509 (ncd_of_cand_and_phis): New.
6510 (nearest_common_dominator_for_cands): Handle phi increments.
6511 (all_phi_incrs_profitable): New.
6512 (replace_profitable_candidates): Handle phi-dependent candidates.
6513 (analyze_candidates_and_replace): Likewise.
6515 2013-05-03 Teresa Johnson <tejohnson@google.com>
6518 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6519 do not exceed REG_BR_PROB_BASE.
6521 2013-05-03 Jeff Law <law@redhat.com>
6523 PR tree-optimization/57144
6524 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6525 operand of the condition will bit into the new type when eliminating
6526 a cast feeding a condition.
6528 2013-05-03 Jakub Jelinek <jakub@redhat.com>
6530 PR rtl-optimization/57130
6531 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6532 of COMPARE as in_code to the recursive call if needed.
6534 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
6536 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6537 (enabled): Handle new members.
6538 * config/i386/sse.md (*vec_concatv2si): Merge from
6539 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6540 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6542 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6544 PR tree-optimization/57027
6545 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6546 for fnms opportunity, check we got the prerequisite kind
6547 of tree / gimple before using accessor functions.
6549 2013-05-03 Richard Biener <rguenther@suse.de>
6551 * double-int.h (lshift): New overload without precision
6553 (operator *=, operator +=, operator -=): Move ...
6554 * double-int.c (operator *=, operator +=, operator -=): ... here
6555 and implement more efficiently.
6556 (mul_double_with_sign): Remove.
6557 (lshift_double): Adjust to take unsinged shift argument, push
6558 dispatching code to callers.
6559 (mul_double_wide_with_sign): Add early out for callers that
6560 are not interested in high parts or overflow.
6561 (lshift): New function.
6562 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6564 (lrotate, rrotate): Use logical shifts.
6565 * expr.c (get_inner_reference): Use lshift.
6566 * fixed-value.c (do_fixed_divide): Likewise.
6567 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6568 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6569 (indirect_refs_may_alias_p): Likewise.
6570 (stmt_kills_ref_p_1): Likewise.
6572 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6574 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6576 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6578 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6579 scalar form of FABD instruction.
6581 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6583 * lra-constraints.c (process_alt_operands): Add checking alt
6584 number to choose the best alternative.
6586 2013-05-02 Richard Biener <rguenther@suse.de>
6588 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6589 bitmap and its handling.
6590 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6592 2013-05-02 Richard Biener <rguenther@suse.de>
6595 * tree-inline.c (copy_loops): Properly handle removed loops.
6596 (copy_cfg_body): Mark destination loops for fixup if source
6599 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6602 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6603 generating simple_return for naked functions.
6605 2013-05-02 Martin Jambor <mjambor@suse.cz>
6608 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6609 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6611 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6612 ipa_agg_replacement_value structures.
6613 (known_aggs_to_agg_replacement_list): Likewise.
6614 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6615 (read_agg_replacement_chain): Likewise.
6616 (ipcp_transform_function): Also check that by_ref flags match.
6618 2013-05-02 Richard Biener <rguenther@suse.de>
6620 * graphds.h (struct graph): Add obstack member.
6621 * graphds.c (new_graph): Initialize obstack and allocate
6623 (add_edge): Allocate edge from the obstack.
6624 (free_graph): Free the obstack instead of all edges and vertices.
6626 2013-05-02 Teresa Johnson <tejohnson@google.com>
6628 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6630 * cfg.c (update_bb_profile_for_threading): Ditto.
6631 * tree-inline.c (copy_bb): Ditto.
6632 (copy_edges_for_bb): Ditto.
6633 (initialize_cfun): Ditto.
6634 (copy_cfg_body): Ditto.
6635 (expand_call_inline): Ditto.
6636 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6637 (estimate_node_size_and_time): Ditto.
6638 (inline_merge_summary): Ditto.
6639 * cgraphclones.c (cgraph_clone_edge): Ditto.
6640 (cgraph_clone_node): Ditto.
6641 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6642 (compute_trg_info): Ditto.
6644 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6646 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6647 S reg when fp attribute set.
6648 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6650 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6652 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6654 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6655 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6656 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6658 2013-05-02 Richard Biener <rguenther@suse.de>
6660 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6661 (struct instantiate_cache_entry): New type.
6662 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6663 (struct instantiate_cache_type): New type.
6664 (set_instantiated_value, get_instantiated_value): Remove.
6665 (get_instantiated_value_entry): New function.
6666 (instantiate_scev_name): Use the new cache and adjust.
6667 (instantiate_scev_poly): Adjust.
6668 (instantiate_scev_binary): Likewise.
6669 (instantiate_array_ref): Likewise.
6670 (instantiate_scev_convert): Likewise.
6671 (instantiate_scev_not): Likewise.
6672 (instantiate_scev_3): Likewise.
6673 (instantiate_scev_2): Likewise.
6674 (instantiate_scev_r): Likewise.
6675 (instantiate_scev): Likewise.
6676 (resolve_mixers): Likewise.
6678 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6681 * lra-constraints.c (best_small_class_operands_num): Remove.
6682 (process_alt_operands): Remove small_class_operands_num. Take
6683 small classes operands into losers and only if the operand is not
6684 matched. Modify debugging output.
6685 (curr_insn_transform): Remove best_small_class_operands_num.
6688 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6690 * config/aarch64/aarch64-builtins.c
6691 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6692 * config/aarch64/aarch64-simd-builtins.def
6693 (reduc_splus_): Add new modes.
6694 (reduc_uplus_): New.
6695 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6696 (reduc_uplus_v4sf): Likewise.
6697 (reduc_splus_v4sf): Likewise.
6698 (aarch64_addv<mode>): Likewise.
6699 (reduc_uplus_<mode>): Likewise.
6700 (reduc_splus_<mode>): Likewise.
6701 (aarch64_addvv2di): Likewise.
6702 (reduc_uplus_v2di): Likewise.
6703 (reduc_splus_v2di): Likewise.
6704 (aarch64_addvv2si): Likewise.
6705 (reduc_uplus_v2si): Likewise.
6706 (reduc_splus_v2si): Likewise.
6707 (reduc_<sur>plus_<mode>): New.
6708 (reduc_<sur>plus_v2di): Likewise.
6709 (reduc_<sur>plus_v2si): Likewise.
6710 (reduc_<sur>plus_v4sf): Likewise.
6711 (aarch64_addpv4sf): Likewise.
6712 * config/aarch64/arm_neon.h
6713 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6714 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6715 add UNSPEC_SADDV, UNSPEC_UADDV.
6717 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6719 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6721 * config/aarch64/arm_neon.h
6722 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6724 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6726 * config/aarch64/aarch64-builtins
6727 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6729 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6731 * config/aarch64/aarch64-simd-builtins.def
6733 (reduc_smin_): Likewise.
6734 (reduc_umax_): Likewise.
6735 (reduc_umin_): Likewise.
6736 (reduc_smax_nan_): Likewise.
6737 (reduc_smin_nan_): Likewise.
6740 (smax): Update for V2SF, V4SF and V2DF modes.
6743 (smin_nan): Likewise.
6744 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6745 (<su><maxmin><mode>3): ...This, refactor.
6746 (s<maxmin><mode>3): New.
6747 (<maxmin_uns><mode>3): Likewise.
6748 (reduc_<maxmin_uns>_<mode>): Refactor.
6749 (reduc_<maxmin_uns>_v4sf): Likewise.
6750 (reduc_<maxmin_uns>_v2si): Likewise.
6751 (aarch64_<fmaxmin><mode>: Remove.
6752 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6754 (vmin<q>_f<32,64>): Likewise.
6755 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6757 (su): Add mappings for smax, smin, umax, umin.
6759 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6760 (FMAXMIN): Rename as...
6761 (FMAXMIN_UNS): ...This.
6763 (fmaxminv): Likewise.
6764 (fmaxmin): Likewise.
6766 (maxmin_uns_op): Likewise.
6768 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6770 * config/aarch64/arm_neon.h
6771 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6772 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6773 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6775 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6777 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6778 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6780 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6782 * config/aarch64/aarch64-simd.md
6783 (vcond<mode>_internal): Handle special cases for constant masks.
6784 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6785 (vcondu<mode><mode>): Likewise.
6786 (vcond<v_cmp_result><mode>): New.
6788 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6790 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6791 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6792 * config/aarch64/aarch64-simd-builtins.def
6793 (cmeq): Update to BUILTIN_VALLDI.
6798 * config/aarch64/arm_neon.h
6799 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6800 to builtins or C as appropriate.
6802 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6804 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6806 (cmhi): Rename to...
6808 * config/aarch64/aarch64-simd.md
6809 (simd_mode): Add SF.
6810 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6811 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6812 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6813 (cstore<mode>_neg): ...This.
6814 * config/aarch64/iterators.md
6816 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6818 (UCOMPARISONS): Likewise.
6819 (optab): Add missing comparisons.
6827 (V_cmp_result): Add DF, SF modes.
6828 (v_cmp_result): Likewise.
6831 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6833 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6835 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6836 define_insn to define_insn_and_split.
6837 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6838 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6839 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6840 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6841 (thumb2_negscc): Likewise.
6843 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6845 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6847 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6849 * config/arm/thumb2.md: Remove trailing whitespaces.
6851 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6853 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6854 Use gen_int_mode rather than GEN_INT.
6856 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6858 * value-prof.c (stream_in_histogram_value): Remove the strayed
6861 2013-04-30 Richard Biener <rguenther@suse.de>
6864 * cfghooks.c (split_edge): Properly check for the loop latch edge.
6866 2013-04-30 Richard Biener <rguenther@suse.de>
6869 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6871 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
6873 PR rtl-optimization/56957
6874 PR rtl-optimization/57105
6875 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6876 variable. Use just INSN_UID for determining whether an insn
6877 should be only disconnected from the insn stream.
6878 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6880 2013-04-30 Jakub Jelinek <jakub@redhat.com>
6882 PR tree-optimization/57104
6883 * tsan.c (instrument_expr): Don't instrument accesses to
6884 DECL_HARD_REGISTER VAR_DECLs.
6886 2013-04-30 Richard Biener <rguenther@suse.de>
6888 * function.h (loops_for_fn): New inline function.
6889 (set_loops_for_fn): Likewise.
6890 * cfgloop.h (place_new_loop): Add struct function parameter.
6891 (get_loop): Likewise.
6892 (get_loops): Likewise.
6893 (number_of_loops): Likewise.
6895 (fel_init): Likewise.
6896 * cfg.c (get_loop_copy): Adjust.
6897 * cfgloop.c (flow_loops_dump): Likewise.
6898 (record_loop_exits): Likewise.
6899 (verify_loop_structure): Likewise.
6900 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6901 (estimate_reg_pressure_cost): Likewise.
6902 (mark_loop_exit_edges): Likewise.
6903 * cfgloopmanip.c (place_new_loop): Likewise.
6904 (add_loop): Likewise.
6905 (duplicate_loop): Likewise.
6906 * graph.c (draw_cfg_nodes): Likewise.
6907 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6908 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6909 (extract_affine_chrec): Likewise.
6910 (build_scop_iteration_domain): Likewise.
6911 * graphite.c (graphite_initialize): Likewise.
6912 * ira-build.c (create_loop_tree_nodes): Likewise.
6913 (more_one_region_p): Likewise.
6914 (rebuild_regno_allocno_maps): Likewise.
6915 (mark_loops_for_removal): Likewise.
6916 (mark_all_loops_for_removal): Likewise.
6917 (remove_unnecessary_regions): Likewise.
6918 (ira_build): Likewise.
6919 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6920 * loop-init.c (fix_loop_structure): Likewise.
6921 (gate_rtl_move_loop_invariants): Likewise.
6922 (gate_rtl_unswitch): Likewise.
6923 (gate_rtl_unroll_and_peel_loops): Likewise.
6924 (rtl_doloop): Likewise.
6925 * lto-streamer-in.c (input_cfg): Likewise.
6926 * lto-streamer-out.c (output_cfg): Likewise.
6927 * modulo-sched.c (sms_schedule): Likewise.
6928 * predict.c (tree_estimate_probability): Likewise.
6929 (tree_estimate_probability_driver): Likewise.
6930 (estimate_loops): Likewise.
6931 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6932 (move_sese_region_to_fn): Likewise.
6933 (debug_loop_num): Likewise.
6934 * tree-chrec.c (chrec_evaluate): Likewise.
6935 (hide_evolution_in_other_loops_than_loop): Likewise.
6936 (chrec_component_in_loop_num): Likewise.
6937 (reset_evolution_in_loop): Likewise.
6938 (evolution_function_is_invariant_rec_p): Likewise.
6939 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6940 * tree-inline.c (copy_loops): Likewise.
6941 (copy_cfg_body): Likewise.
6942 (tree_function_versioning): Likewise.
6943 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6944 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6946 (add_to_evolution_1): Likewise.
6947 (scev_const_prop): Likewise.
6948 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6949 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6950 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6951 (tree_ssa_lim_initialize): Likewise.
6952 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6953 (verify_loop_closed_ssa): Likewise.
6954 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6955 (tree_ssa_loop_im): Likewise.
6956 (tree_ssa_loop_unswitch): Likewise.
6957 (tree_vectorize): Likewise.
6958 (check_data_deps): Likewise.
6959 (tree_ssa_loop_ivcanon): Likewise.
6960 (tree_ssa_loop_bounds): Likewise.
6961 (tree_complete_unroll): Likewise.
6962 (tree_complete_unroll_inner): Likewise.
6963 (tree_parallelize_loops): Likewise.
6964 (tree_ssa_loop_prefetch): Likewise.
6965 (tree_ssa_loop_ivopts): Likewise.
6966 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6967 * tree-vectorizer.c (vectorize_loops): Likewise.
6969 2013-04-29 Mike Frysinger <vapier@gentoo.org>
6971 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6972 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6973 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6974 with EABI_LINK_SPEC.
6976 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6979 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6982 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6985 * lra-constraints.c (process_alt_operands): Discourage a bit more
6986 using memory for pseudos. Print cost dump for alternatives.
6987 Modify cost values for conflicts with early clobbers.
6988 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6990 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6993 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6995 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6997 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6999 (movdi_aarch64): Support LDR/STR from/to D register.
7001 2013-04-29 Ian Bolton <ian.bolton@arm.com>
7003 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
7004 or higher by default.
7006 2013-04-29 Richard Biener <rguenther@suse.de>
7009 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
7010 even if not adding abnormal edges for calls that can make
7013 2013-04-29 Richard Biener <rguenther@suse.de>
7016 * tree-cfg.c (move_stmt_op): Fix condition under which to update
7018 (move_stmt_r): Remove redundant checking.
7020 2013-04-29 Teresa Johnson <tejohnson@google.com>
7023 * basic-block.h (apply_scale): New function.
7024 (apply_probability): Use apply_scale.
7025 * gimple-streamer-in.c (input_bb): Ditto.
7026 * lto-streamer-in.c (input_cfg): Ditto.
7027 * lto-cgraph.c (merge_profile_summaries): Ditto.
7028 * tree-optimize.c (execute_fixup_cfg): Ditto.
7029 * tree-inline.c (copy_bb): Update comment to use apply_scale.
7030 (copy_edges_for_bb): Ditto.
7031 (copy_cfg_body): Ditto.
7033 2013-04-29 Tom de Vries <tom@codesourcery.com>
7035 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
7036 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
7037 (tail_merge_optimize): Handle current_loops == NULL.
7039 2013-04-26 Jeff Law <law@redhat.com>
7041 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
7042 (simplify_cond_using_ranges): Generalize code to simplify
7043 COND_EXPRs where one argument is a constant and the other
7044 is an SSA_NAME created by an integral type conversion.
7046 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7048 * config/arm/arm.md (store_minmaxsi): Use only when
7049 optimize_insn_for_size_p.
7051 2013-04-29 Christian Bruel <christian.bruel@st.com>
7054 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
7056 2013-04-29 Richard Biener <rguenther@suse.de>
7059 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
7060 loop tree make sure to schedule a fixup for the child as well.
7061 (expand_omp_for_generic): Properly add loops.
7062 (expand_omp_for_static_nochunk): Likewise.
7063 (expand_omp_for_static_chunk): Likewise.
7064 (expand_omp_for): For the degenerate case fixup loops.
7065 (expand_omp_sections): Fix default bb placement in loops.
7066 (expand_omp_atomic_pipeline): Properly add loops.
7068 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7070 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
7072 2013-04-29 Tom de Vries <tom@codesourcery.com>
7074 * tree-ssa-tail-merge.c: Update header comment.
7076 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7078 * config/aarch64/arm_neon.h
7079 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
7080 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
7081 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
7082 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
7083 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
7084 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
7085 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
7086 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
7088 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7090 * config/aarch64/aarch64-simd.md
7091 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
7092 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
7093 fix_trunc, fixuns_trunc.
7094 (ftrunc<VDQF:mode>2): New.
7095 * config/aarch64/iterators.md (optab): Add fix, fixuns.
7096 (fix_trunc_optab): New.
7098 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7100 * config/aarch64/aarch64-builtins.c
7101 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
7102 iceilf, lround, iroundf.
7104 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
7107 * config/i386/i386.h (enum ix86_tune_indices)
7108 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
7109 New, split from X86_TUNE_INTER_UNIT_MOVES.
7110 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
7111 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
7112 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
7113 (TARGET_INTER_UNIT_MOVES): Remove.
7114 * config/i386/i386.c (initial_ix86_tune_features): Update.
7115 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
7116 (ix86_expand_convert_uns_didf_sse): Use
7117 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7118 (ix86_expand_vector_init_one_nonzero): Ditto.
7119 (ix86_expand_vector_init_interleave): Ditto.
7120 (inline_secondary_memory_needed): Return true for moves from SSE class
7121 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
7122 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
7123 * config/i386/constraints.md (Yi, Ym): Depend on
7124 TARGET_INTER_UNIT_MOVES_TO_VEC.
7125 (Yj, Yn): New constraints.
7126 * config/i386/i386.md (*movdi_internal): Change constraints of
7127 operand 1 from Yi to Yj and from Ym to Yn.
7128 (*movsi_internal): Ditto.
7129 (*movdf_internal): Ditto.
7130 (*movsf_internal): Ditto.
7131 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
7132 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7133 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
7134 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
7135 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
7136 * config/i386/sse.md (movdi_to_sse): Ditto.
7137 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
7138 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
7139 TARGET_INTER_UNIT_MOVES.
7140 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
7141 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
7142 instead of TARGET_INTER_UNIT_MOVES.
7143 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
7144 operand 1 from Yi to Yj and from Ym to Yn.
7146 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7148 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
7149 (float_truncate_hi_): Likewise.
7150 (float_extend_lo_): Likewise.
7151 (float_truncate_lo_): Likewise.
7152 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
7153 (aarch64_float_extend_lo_v2df): Likewise.
7154 (vec_unpacks_hi_v4sf): Likewise.
7155 (aarch64_float_truncate_lo_v2sf): Likewise.
7156 (aarch64_float_truncate_hi_v4sf): Likewise.
7157 (vec_pack_trunc_v2df): Likewise.
7158 (vec_pack_trunc_df): Likewise.
7160 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7162 * config/aarch64/aarch64-builtins.c
7163 (aarch64_fold_builtin): Fold float conversions.
7164 * config/aarch64/aarch64-simd-builtins.def
7165 (floatv2si, floatv4si, floatv2di): New.
7166 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
7167 * config/aarch64/aarch64-simd.md
7168 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
7169 * config/aarch64/iterators.md (FLOATUORS): New.
7170 (optab): Add float, floatuns.
7171 (su_optab): Likewise.
7173 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7175 * config/aarch64/aarch64-builtins.c
7176 (aarch64_builtin_vectorized_function): Use new names for
7178 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
7179 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
7180 (fcvtzu): Split as...
7181 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
7182 (fcvtas): Split as...
7183 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
7184 (fcvtau): Split as...
7185 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
7186 (fcvtps): Split as...
7187 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
7188 (fcvtpu): Split as...
7189 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
7190 (fcvtms): Split as...
7191 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
7192 (fcvtmu): Split as...
7193 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
7194 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
7195 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
7196 (lfrintnusf, lfrintnudf): Likewise.
7197 * config/aarch64/aarch64-simd.md
7198 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
7200 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
7201 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
7202 (fcvt_pattern): Likewise.
7204 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7206 * config/aarch64/aarch64-simd.md
7207 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7208 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7210 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7212 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7213 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7214 (vrnd<a,m,n,p>_f32): Implement using builtins.
7215 (vrnd<i,x><q>_f<32, 64>): New.
7217 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7219 * config/aarch64/aarch64-builtins.c
7220 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7221 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7222 (frintz): Rename to...
7224 (frintp): Rename to...
7226 (frintm): Rename to...
7228 (frinti): Rename to...
7229 (nearbyint): ...this.
7230 (frintx): Rename to...
7232 (frinta): Rename to...
7234 * config/aarch64/aarch64-simd.md
7235 (aarch64_frint<frint_suffix><mode>): Delete.
7236 (<frint_pattern><mode>2): Convert to insn.
7237 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7238 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7239 (frint_pattern): Likewise.
7240 (frint_suffix): Likewise.
7242 2013-04-29 Richard Biener <rguenther@suse.de>
7244 PR tree-optimization/57081
7245 * loop-init.c: Include tree-flow.h.
7246 (loop_optimizer_finalize): Free number of iteration estimates.
7247 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7249 2013-04-29 Jakub Jelinek <jakub@redhat.com>
7251 PR tree-optimization/57083
7252 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7253 non-singleton shift count range, zero extend low_bound for uns case.
7255 * config/i386/predicates.md (general_vector_operand): New predicate.
7256 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7257 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7258 if they aren't nonimmediate operands. If their original values
7259 satisfy const_vector_equal_evenodd_p, don't shift them.
7260 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7261 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7262 if not nonimmediate_operand.
7263 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7264 instead of register_operand.
7265 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7267 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
7269 * stor-layout.c (finalize_size_functions): Allocate a structure and
7270 reset cfun before dumping the functions.
7272 2013-04-27 Jakub Jelinek <jakub@redhat.com>
7274 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7277 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7278 use xop_pmacsdqh if uns_p.
7279 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7280 the immediate rotate count.
7282 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7284 * rtl.h (struct rtx_def): Add comment for field jump.
7285 (LRA_SUBREG_P): New macro.
7286 * recog.c (register_operand): Check LRA_SUBREG_P.
7287 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7289 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7290 (lra_final_code_change): Skip subreg change for operators.
7291 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7292 if there are no operand changes.
7293 * lra-constraints.c (curr_insn_set): New.
7294 (match_reload): Set LRA_SUBREG_P.
7295 (emit_spill_move): Ditto.
7296 (check_and_process_move): Use curr_insn_set. Process only single
7297 set insns. Don't initialize sec_mem_p and change_p.
7298 (simplify_operand_subreg): Use LRA_SUBREG_P.
7299 (reg_in_class_p): New function.
7300 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7301 of #ifdef. Add code to remove cycling.
7302 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7303 non-null disp. Reload inner instead of disp when base and index
7304 are null. Try to put lo_sum into register.
7305 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7306 (check_and_process_move): Move code for move cost check to
7307 simple_move_p. Remove equiv_substitution.
7308 (simple_move_p): New function.
7309 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7310 curr_insn_set. Call check_and_process_move only for single set
7311 insns. Use the new function. Move call of check_and_process_move
7312 after operand equiv substitution and address process.
7314 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7317 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7318 with nonlocal goto receivers or returns twice calls, ignore
7319 unininitialized values from abnormal edges to nl goto receiver
7320 or returns twice call.
7322 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7324 PR tree-optimization/57051
7325 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7326 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7329 2013-04-26 Richard Biener <rguenther@suse.de>
7331 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7332 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7333 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7334 (fixup_loop_arrays_after_move): New function.
7335 (move_sese_region_to_fn): Properly outline the loop tree parts
7338 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
7340 * config/i386/i386.md (type, unit): Fix long lines.
7342 2013-04-26 Richard Biener <rguenther@suse.de>
7344 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7345 (lto-streamer-out.o): Likewise.
7346 * cfgloop.c (init_loops_structure): Export, add struct function
7347 argument and adjust.
7348 (flow_loops_find): Adjust.
7349 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7350 (init_loops_structure): Declare.
7351 * lto-streamer-in.c: Include cfgloop.h.
7352 (input_cfg): Input the loop tree.
7353 * lto-streamer-out.c: Include cfgloop.h.
7354 (output_cfg): Output the loop tree.
7355 (output_struct_function_base): Do not drop PROP_loops.
7357 2013-03-26 Richard Biener <rguenther@suse.de>
7359 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7360 (pass_build_cfg): Provide PROP_loops.
7361 (move_sese_region_to_fn): Remove loops that are outlined into fn
7363 * tree-inline.c: Include cfgloop.h.
7364 (initialize_cfun): Do not drop PROP_loops.
7365 (copy_loops): New function.
7366 (copy_cfg_body): Copy loop structure.
7367 (tree_function_versioning): Initialize destination loop tree.
7368 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7369 (pass_parallelize_loops): Do IL verification.
7370 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7371 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7372 the CFG make sure we fixup loops as well.
7373 * tree-ssa-tail-merge.c: Include cfgloop.h.
7374 (replace_block_by): When merging loop latches mark loops for fixup.
7375 * lto-streamer-out.c (output_struct_function_base): Drop
7377 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7378 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7379 * ipa-split.c: Include cfgloop.h.
7380 (split_function): Add the new return block to the loop tree root.
7381 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7382 whether we have removed the forwarder block.
7383 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7384 * cfgloop.h (place_new_loop): Declare.
7385 * cfgloopmanip.c (place_new_loop): Export.
7386 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7387 (tree-switch-conversion.o): Likewise.
7388 (tree-complex.o): Likewise.
7389 (tree-inline.o): Likewise.
7390 (tree-ssa-tailmerge.o): Likewise.
7391 (ipa-split.o): Likewise.
7392 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7393 (tree-ssa-copy.o): Likewise.
7394 * tree-switch-conversion.c: Include cfgloop.h
7395 (process_switch): If we emit a bit-test cascade, schedule loops
7397 * tree-complex.c: Include cfgloop.h.
7398 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7399 * asan.c: Include cfgloop.h.
7400 (create_cond_insert_point): Properly add new basic-blocks to
7401 loops, schedule loop fixup.
7402 * cfgloop.c (verify_loop_structure): Check that looks are not
7404 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7406 (expand_omp_for_generic): Likewise.
7407 (expand_omp_sections): Likewise.
7408 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7409 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7410 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7411 is initialized, not when loops are present.
7412 * tree-parloops.c (parallelize_loops): Remove checking here.
7413 * passes.c (init_optimization_passes): Schedule a copy-propagation
7414 pass before complete unrolling of inner loops.
7416 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7418 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7419 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7420 (colorize_init): Add argument to _WIN32 version.
7421 * toplev.c: Include diagnostic-color.h.
7422 (process_options): Default to -fdiagnostics-color=auto if
7423 GCC_COLORS env var is in the environment.
7424 * common.opt (fdiagnostics-color=): Add Var and Init.
7425 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7426 env var is in the environment, the default is auto rather than never.
7428 * diagnostic.h (file_name_as_prefix): Add context argument.
7429 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7430 the string as locus.
7431 * langhooks.c (lhd_print_error_function): Adjust caller.
7433 2013-04-25 Lawrence Crowl <crowl@google.com>
7435 * var-tracking.c (shared_hash_def::htab):
7436 Change type to hash_table. Update dependent calls and types.
7438 2013-04-25 Lawrence Crowl <crowl@google.com>
7440 * Makefile.in: Update as needed below.
7442 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7443 Move declaration to after the type's method definitons.
7445 * attribs.c (htab_t scoped_attributes::attribute_hash):
7446 Change type to hash_table. Update dependent calls and types.
7448 * bitmap.c (htab_t bitmap_desc_hash):
7449 Change type to hash_table. Update dependent calls and types.
7451 * cselib.c (htab_t cselib_hash_table):
7452 Change type to hash_table. Update dependent calls and types.
7454 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7455 (hash_string_slot_node): Move implementation into lto-streamer.h
7456 struct string_slot_hasher.
7457 (eq_string_slot_node): Likewise.
7459 * data-streamer-out.c: Update output_block::string_hash_table
7460 dependent calls and types.
7462 * dwarf2cfi.c (htab_t trace_index):
7463 Change type to hash_table. Update dependent calls and types.
7465 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7466 Change type to hash_table. Update dependent calls and types.
7467 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7468 (htab_t optimize_external_refs::map): Likewise.
7469 (htab_t output_comp_unit::extern_map): Likewise.
7470 (htab_t output_comdat_type_unit::extern_map): Likewise.
7471 (htab_t output_macinfo::macinfo_htab): Likewise.
7472 (htab_t optimize_location_lists::htab): Likewise.
7473 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7475 * except.c (htab_t ehspec_hash_type):
7476 Change type to hash_table. Update dependent calls and types.
7477 (assign_filter_values::ttypes): Likewise.
7478 (assign_filter_values::ehspec): Likewise.
7479 (sjlj_assign_call_site_values::ar_hash): Likewise.
7480 (convert_to_eh_region_ranges::ar_hash): Likewise.
7482 * gcse.c (htab_t pre_ldst_table):
7483 Change type to hash_table. Update dependent calls and types.
7485 * ggc-common.c (htab_t saving_htab):
7486 Change type to hash_table. Update dependent calls and types.
7487 (htab_t loc_hash): Likewise.
7488 (htab_t ptr_hash): Likewise.
7489 (call_count): Rename ggc_call_count.
7490 (call_alloc): Rename ggc_call_alloc.
7491 (loc_descriptor): Rename make_loc_descriptor.
7492 (add_statistics): Rename ggc_add_statistics.
7494 * ggc-common.c (saving_htab):
7495 Change type to hash_table. Update dependent calls and types.
7497 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7498 (push_gimplify_context): Likewise.
7499 (pop_gimplify_context): Likewise.
7500 (struct gimple_temp_hash_elt): Added.
7501 (struct gimplify_hasher): Likewise.
7502 (struct gimplify_ctx.temp_htab):
7503 Change type to hash_table. Update dependent calls and types.
7505 * gimple-fold.c: Include gimplify-ctx.h.
7507 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7508 Change type to hash_table. Update dependent calls and types.
7509 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7510 avoid potential global name collision.
7512 * gimplify.c: Include gimplify-ctx.h.
7513 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7514 (htab_t gimplify_ctx::temp_htab):
7515 Update dependent calls and types for new type hash_table.
7516 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7517 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7519 * gimplify-ctx.h: New.
7520 (struct gimple_temp_hash_elt): Move from gimplify.c.
7521 (class gimplify_hasher): New.
7522 (struct gimplify_ctx): Move from gimple.h.
7523 (htab_t gimplify_ctx::temp_htab):
7524 Change type to hash_table. Update dependent calls and types.
7526 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7527 (htab_t ivs_params::newivs_index):
7528 Change type to hash_table. Update dependent calls and types.
7529 (htab_t ivs_params::params_index): Likewise.
7530 (htab_t print_generated_program::params_index): Likewise.
7531 (htab_t gloog::newivs_index): Likewise.
7532 (htab_t gloog::params_index): Likewise.
7534 * graphite.c: Include graphite-htab.h.
7535 4htab_t graphite_transform_loops::bb_pbb_mapping):
7536 Change type to hash_table. Update dependent calls and types.
7538 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7539 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7540 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7542 * graphite-dependences.c: Include graphite-htab.h.
7543 (loop_is_parallel_p): Change hash table type of parameter.
7545 * graphite-htab.h: New.
7546 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7547 (extern find_pbb_via_hash): Move from graphite-poly.h.
7548 (extern loop_is_parallel_p): Move from graphite-poly.h.
7549 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7551 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7552 (extern loop_is_parallel_p): Move to graphite-htab.h.
7553 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7555 * haifa-sched.c (htab_t delay_htab):
7556 Change type to hash_table. Update dependent calls and types.
7557 (htab_t delay_htab_i2): Likewise.
7559 * ira-color.c (htab_t allocno_hard_regs_htab):
7560 Change type to hash_table. Update dependent calls and types.
7562 * ira-costs.c (htab_t cost_classes_htab):
7563 Change type to hash_table. Update dependent calls and types.
7565 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7566 Change type to hash_table. Update dependent calls and types.
7568 * loop-iv.c (htab_t bivs):
7569 Change type to hash_table. Update dependent calls and types.
7571 * loop-unroll.c (htab_t opt_info::insns_to_split):
7572 Change type to hash_table. Update dependent calls and types.
7573 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7575 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7576 (struct string_slot_hasher): New.
7577 (htab_t output_block::string_hash_table):
7578 Change type to hash_table. Update dependent calls and types.
7580 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7581 (htab_t file_name_hash_table):
7582 Change type to hash_table. Update dependent calls and types.
7584 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7587 * lto-streamer.c (htab_t tree_htab):
7588 Change type to hash_table. Update dependent calls and types.
7590 * omp-low.c: Include gimplify-ctx.h.
7592 * passes.c (htab_t name_to_pass_map):
7593 Change type to hash_table. Update dependent calls and types.
7594 (pass_traverse): Rename to passes_pass_traverse.
7596 * plugin.c (htab_t event_tab):
7597 Change type to hash_table. Update dependent calls and types.
7599 * postreload-gcse.c (htab_t expr_table):
7600 Change type to hash_table. Update dependent calls and types.
7601 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7603 * sese.c (debug_rename_map_1): Make extern.
7604 (htab_t copy_bb_and_scalar_dependences::rename_map):
7605 Change type to hash_table. Update dependent calls and types.
7607 * sese.h (extern debug_rename_map): Move to .c file.
7609 * store-motion.c (htab_t store_motion_mems_table):
7610 Change type to hash_table. Update dependent calls and types.
7612 * trans-mem.c (htab_t tm_new_mem_hash):
7613 Change type to hash_table. Update dependent calls and types.
7615 * tree-browser.c (htab_t TB_up_ht):
7616 Change type to hash_table. Update dependent calls and types.
7618 * tree-cfg.c (htab_t discriminator_per_locus):
7619 Change type to hash_table. Update dependent calls and types.
7621 * tree-complex.c: Include tree-hasher.h
7622 (htab_t complex_variable_components):
7623 Change type to hash_table. Update dependent calls and types.
7625 * tree-eh.c (htab_t finally_tree):
7626 Change type to hash_table. Update dependent calls and types.
7628 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7629 struct int_tree_hasher.
7630 (extern int_tree_map_eq): Likewise.
7631 (uid_decl_map_hash): Removed.
7632 (extern decl_tree_map_eq): Likewise.
7634 * tree-hasher.h: New.
7635 (struct int_tree_hasher): New.
7636 (typedef int_tree_htab_type): New.
7638 * tree-inline.c: Include gimplify-ctx.h.
7640 * tree-mudflap.c: Include gimplify-ctx.h.
7642 * tree-parloops.c: Include tree-hasher.h.
7643 (htab_t eliminate_local_variables_stmt::decl_address):
7644 Change type to hash_table. Update dependent calls and types.
7645 (htab_t separate_decls_in_region::decl_copies): Likewise.
7647 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7648 Change type to hash_table. Update dependent calls and types.
7650 * tree-sra.c (candidates):
7651 Change type to hash_table. Update dependent calls and types.
7653 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7655 (int_tree_map_hash): Likewise.
7657 * tree-ssa-dom.c (htab_t avail_exprs):
7658 Change type to hash_table. Update dependent calls and types.
7660 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7661 Change type to hash_table. Update dependent calls and types.
7663 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7664 Change type to hash_table. Update dependent calls and types.
7666 * tree-ssa-phiopt.c (seen_ssa_names):
7667 Change type to hash_table. Update dependent calls and types.
7669 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7670 Change type to hash_table. Update dependent calls and types.
7672 * tree-ssa-uncprop.c (equiv):
7673 Change type to hash_table. Update dependent calls and types.
7675 2013-04-25 Jakub Jelinek <jakub@redhat.com>
7677 PR rtl-optimization/57003
7678 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7679 call note_stores with kill_clobbered_value callback again after
7680 killing regs_invalidated_by_call.
7682 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7684 * config/aarch64/aarch64-simd.md
7685 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7686 (aarch64_simd_bsl<mode>): Likewise.
7687 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7689 2013-04-25 Marek Polacek <polacek@redhat.com>
7691 PR tree-optimization/57066
7692 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7694 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7696 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7698 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7700 * config/aarch64/aarch64-builtins.c
7701 (aarch64_fold_builtin): New.
7702 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7703 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7704 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7705 * config/aarch64/arm_neon.h
7706 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7708 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7709 Tejas Belagod <tejas.belagod@arm.com>
7711 * config/aarch64/aarch64-builtins.c
7712 (aarch64_gimple_fold_builtin): New.
7713 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7714 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7715 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7717 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7719 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7721 * config/aarch64/aarch64.md
7722 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7724 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7726 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7727 (*ngcsi_uxtw): New pattern.
7729 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7730 Julian Brown <julian@codesourcery.com>
7732 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7733 (TB_DREG): Add T_V4HF.
7734 (v4hf_UP): New macro.
7735 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7736 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7737 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7739 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7740 (arm_vector_mode_supported_p): Handle V4HF.
7741 (arm_mangle_map): Handle V4HFmode.
7742 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7743 * config/arm/arm_neon_builtins.def: Add entries for
7744 vcvtv4hfv4sf, vcvtv4sfv4hf.
7745 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7746 (neon_vcvtv4hfv4sf): Likewise.
7747 * config/arm/neon-gen.ml: Handle half-precision floating point
7749 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7750 * config/arm/arm_neon.h: Regenerate.
7751 * config/arm/neon.ml (type elts): Add F16.
7752 (type vectype): Add T_float16x4, T_floatHF.
7753 (type vecmode): Add V4HF.
7754 (type features): Add Requires_FP_bit feature.
7755 (elt_width): Handle F16.
7756 (elt_class): Likewise.
7757 (elt_of_class_width): Likewise.
7758 (mode_of_elt): Refactor.
7759 (type_for_elt): Handle F16, fix error messages.
7760 (vectype_size): Handle T_float16x4.
7761 (vcvt_sh): New function.
7762 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7763 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7764 (string_of_mode): Handle V4HF.
7765 * doc/arm-neon-intrinsics.texi: Regenerate.
7767 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7769 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7770 format specifier in 'X' case.
7772 2013-04-25 Alan Modra <amodra@gmail.com>
7775 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7776 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7777 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7778 Repeat for many other rotate/shift and mask patterns using subregs.
7779 Name lshiftrt insns.
7780 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7781 on WORDS_BIG_ENDIAN.
7783 2013-04-25 Alan Modra <amodra@gmail.com>
7785 * config.gcc: Support little-endian powerpc-linux targets.
7786 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7787 (LINK_OS_LINUX_SPEC): Define.
7788 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7789 Preserve MASK_LITTLE_ENDIAN.
7790 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7791 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7792 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7793 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7794 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7795 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7796 Correct fp word order for little-endian. Don't shift toc entries
7797 smaller than a word for little-endian.
7798 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7799 (bswapdi2 splits): Correct low-part subreg for little-endian.
7800 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7801 low/high where such is correct only for be.
7802 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7803 little-endian for -mcall-aixdesc.
7805 2013-04-25 Alan Modra <amodra@gmail.com>
7807 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7808 replace_equiv_address_nv.
7810 2013-04-25 Alan Modra <amodra@gmail.com>
7812 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7814 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7817 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7818 * rtl.h (struct rtx_def): ...
7820 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7822 PR rtl-optimizations/57046
7823 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7824 for multi-reg splits.
7826 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7828 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7830 2013-04-24 Sterling Augustine <saugustine@google.com>
7832 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7833 (comp_dir_string, debug_str_dwo_section): New.
7834 (DEBUG_STR_DWO_SECTION): Rename to ...
7835 (DEBUG_DWO_STR_SECTION): ... this.
7836 (DEBUG_NORM_STR_SECTION): Delete.
7837 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7838 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7839 (find_AT_string): Move most logic to ...
7840 (find_AT_string_in_table): ... here. New.
7841 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7842 add_skeleton_AT_string. Delete logic.
7843 (output_skeleton_debug_sections): Remove call to
7844 add_top_level_skeleton_die_attrs.
7845 (add_comp_dir_attribute): Move logic to comp_dir_string.
7846 (dwarf2out_init): Initialize debug_str_dwo_section.
7847 (output_indirect_string): Call find_string_form.
7848 (output_indirect_strings): Rewrite.
7849 (prune_unused_types): Empty skeleton_debug_str_hash.
7850 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7851 (dwarf2out_finish): Call output_indirect_strings.
7853 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7855 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7857 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7859 * rtl.h (struct rtx_def): Add comment for field jump.
7860 (LRA_SUBREG_P): New macro.
7861 * recog.c (register_operand): Check LRA_SUBREG_P.
7862 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7864 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7865 (lra_final_code_change): Skip subreg change for operators.
7866 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7867 if there are no operand changes.
7868 * lra-constraints.c (curr_insn_set): New.
7869 (match_reload): Set LRA_SUBREG_P.
7870 (emit_spill_move): Ditto.
7871 (check_and_process_move): Use curr_insn_set. Process only single
7872 set insns. Don't initialize sec_mem_p and change_p.
7873 (simplify_operand_subreg): Use LRA_SUBREG_P.
7874 (reg_in_class_p): New function.
7875 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7876 of #ifdef. Add code to remove cycling.
7877 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7878 non-null disp. Reload inner instead of disp when base and index
7879 are null. Try to put lo_sum into register.
7880 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7881 (check_and_process_move): Move code for move cost check to
7882 simple_move_p. Remove equiv_substitution.
7883 (simple_move_p): New function.
7884 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7885 curr_insn_set. Call check_and_process_move only for single set
7886 insns. Use the new function. Move call of check_and_process_move
7887 after operand equiv substitution and address process.
7889 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7891 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7892 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7893 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7895 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7897 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7899 2013-04-24 Marek Polacek <polacek@redhat.com>
7901 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7902 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7903 (select_loops_exit_conditions): Likewise.
7904 (number_of_iterations_for_all_loops): Likewise.
7905 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7906 (scev_analysis): Likewise.
7908 2013-04-02 Catherine Moore <clm@codesourcery.com>
7909 Chao-ying Fu <fu@mips.com>
7911 * config/mips/micromips.md (jraddiusp): New pattern.
7912 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7913 instruction if possible.
7915 2013-04-24 Alan Modra <amodra@gmail.com>
7917 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7919 2013-04-24 Julian Brown <julian@codesourcery.com>
7920 Chung-Lin Tang <cltang@codesourcery.com>
7922 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7923 dependency behavior in enumeration type DIE generation. Add TODO note
7924 to comments about future DW_FORM_sdata/udata re-work of related code.
7926 2013-04-23 Lawrence Crowl <crowl@google.com>
7928 * Makefile.in: Update as needed below.
7930 * hash-table.h (class hash_table):
7931 Correct many methods with parameter types compare_type to the correct
7932 value_type. (Correct code was unlikely to notice the change.)
7933 (hash_table::elements_with_deleted) New.
7934 (class hashtable::iterator): New.
7935 (hashtable::begin()): New.
7936 (hashtable::end()): New.
7937 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7939 * statistics.c (statistics_hashes):
7940 Change type to hash_table. Update dependent calls and types.
7942 * tree-into-ssa.c (var_infos):
7943 Change type to hash_table. Update dependent calls and types.
7945 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7946 Change type to hash_table. Update dependent calls and types.
7948 * tree-ssa-loop-im.c (struct mem_ref.refs):
7949 Change type to hash_table. Update dependent calls and types.
7951 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7952 Change type to hash_table. Update dependent calls and types.
7954 * tree-ssa-sccvn.c (vn_tables_s::nary):
7955 Change type to hash_table. Update dependent calls and types.
7956 (vn_tables_s::phis): Likewise.
7957 (vn_tables_s::references): Likewise.
7959 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7960 (vn_reference_eq): Update parameter and return types.
7962 * tree-ssa-structalias.c (pointer_equiv_class_table):
7963 Change type to hash_table. Update dependent calls and types.
7964 (location_equiv_class_table): Likewise.
7966 * tree-vect-data-refs.c: Consequential changes for making
7967 peeling a hash_table.
7969 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7970 (destroy_loop_vec_info): Dependent hash_table update.
7972 * tree-vectorizer.h (peeling_htab):
7973 Change type to hash_table. Update dependent calls and types.
7975 2013-04-23 Shiva Chen <shiva0217@gmail.com>
7977 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7978 to check the register content is equal or not.
7979 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7980 to assign register content record.
7981 * lra-eliminations.c (update_reg_eliminate): Use
7982 lra_update_reg_val_offset to update register content offset.
7983 * lra-int.h (struct lra_reg): Add offset member.
7984 (lra_reg_val_equal_p): New static inline function.
7985 (lra_update_reg_val_offset): New static inline function.
7986 (lra_assign_reg_val): New static inline function.
7987 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7988 to assign register content record.
7989 (initialize_lra_reg_info_element): Initial offset to zero.
7991 2013-04-23 Catherine Moore <clm@codesourcery.com>
7993 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7994 operands. Record compression.
7996 2013-04-23 Xinliang David Li <davidxl@google.com>
7998 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
8000 2013-04-23 Richard Biener <rguenther@suse.de>
8003 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
8004 parameter, only add abnormal goto edges from the copied body
8005 if the call could perform abnormal gotos.
8006 (copy_cfg_body): Adjust.
8008 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
8010 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
8012 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
8014 * coretypes.h (gimple_stmt_iterator): Add struct to make
8017 2013-04-23 Richard Biener <rguenther@suse.de>
8019 PR tree-optimization/57026
8020 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
8021 from SSA names occuring in abnormal PHI nodes.
8023 2013-04-22 Andi Kleen <ak@linux.intel.com>
8025 * lto/lto.c (print_lto_report_1): Fix LTO report names.
8027 2013-04-22 Andi Kleen <ak@linux.intel.com>
8029 * lto/lto.c (print_lto_report_1): Declare early.
8030 (read_cgraph_and_symbols): Call print_lto_report_1 early.
8032 2013-04-22 Andi Kleen <ak@linux.intel.com>
8034 * common.opt (-flto-report-wpa): Add.
8035 * doc/invoke.texi (-flto-report-wpa): Add.
8036 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
8039 2013-04-22 Xinliang David Li <davidxl@google.com>
8041 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
8042 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
8043 * Makefile.in: New dependency
8045 David Daney <ddaney.cavm@gmail.com>
8047 * configure.ac (gcc_cv_as_micromips_support): Use the
8048 --fatal-warnings option.
8049 * configure: Regenerate.
8051 2013-04-22 Marek Polacek <polacek@redhat.com>
8054 * tsan.c (instrument_expr): Don't instrument expression
8055 in case its size is zero.
8057 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
8061 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8063 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8065 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8067 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
8068 (gimple_stmt_iterator): New typedef.
8069 * gimple.h (gimple_stmt_iterator): Rename to...
8070 (gimple_stmt_iterator_d): ... This.
8071 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
8072 trees be valid for GIMPLE and GENERIC.
8073 (TARGET_GIMPLE_FOLD_BUILTIN): New.
8074 * gimple-fold.c (gimple_fold_call): Call target hook
8075 gimple_fold_builtin.
8076 * hooks.c (hook_bool_gsiptr_false): New.
8077 * hooks.h (hook_bool_gsiptr_false): New.
8078 * target.def (fold_stmt): New.
8079 * doc/tm.texi: Regenerate.
8081 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
8084 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
8085 a set sp if no stack realignment.
8087 2013-04-22 Nick Clifton <nickc@redhat.com>
8089 * config.gcc (tilegx-linux): Extend extra_objs rather than
8091 (tilepro-linux): Likewise.
8093 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8095 * config/aarch64/aarch64-builtins.c
8097 (CF0, CF1, CF2, CF3, CF4, CF10): New.
8098 (VAR<1-12>): Add MAP parameter.
8099 (BUILTIN_*): Likewise.
8100 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
8101 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
8102 (aarch64_ushl_n<mode>): Likewise.
8103 (aarch64_sshr_n<mode>): Likewise.
8104 (aarch64_ushr_n<mode>): Likewise.
8105 (aarch64_<maxmin><mode>): Likewise.
8106 (aarch64_sqrt<mode>): Likewise.
8107 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
8108 (vshr<q>_n_*): Likewise.
8110 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8112 * config/aarch64/aarch64-builtins.c
8113 (aarch64_simd_builtin_type_mode): Handle SF types.
8115 (BUILTIN_GPF): Define.
8116 (aarch64_init_simd_builtins): Handle SF types.
8117 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
8120 * config/aarch64/aarch64-simd.md
8121 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
8122 (aarch64_frecpe<mode>): New.
8123 (aarch64_frecps<mode>): Likewise.
8124 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
8125 (v8type): Add frecp<esx>.
8126 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
8127 (aarch64_frecps<mode>): Likewise.
8128 * config/aarch64/iterators.md (FRECP): New.
8129 (frecp_suffix): Likewise.
8130 * config/aarch64/arm_neon.h
8131 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
8133 2013-04-22 Christian Bruel <christian.bruel@st.com>
8136 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
8137 (REG_CLASS_NAMES): Idem.
8138 (REG_CLASS_CONTENTS): Idem.
8139 (REGCLASS_HAS_FP_REG): Idem.
8140 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
8141 (sh_conditional_register_usage): Idem.
8143 2013-04-21 Jeff Law <law@redhat.com>
8145 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
8146 (ssa_forward_propagate_and_combine): Use it.
8148 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8150 * lra.c: Update the flow chart diagram.
8152 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8154 PR rtl-optimization/56847
8155 * lra-constraints.c (process_alt_operands): Discourage alternative
8156 with non-matche doffsettable memory constraint fro memory with
8159 2013-04-19 Richard Biener <rguenther@suse.de>
8161 PR tree-optimization/56982
8162 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
8164 * gimplify.c (gimplify_call_expr): Notice special calls.
8165 (gimplify_modify_expr): Likewise.
8166 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
8167 abnormal control flow receivers.
8168 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
8169 in the same way as cfun->has_nonlocal_labels.
8170 (gimple_purge_dead_abnormal_call_edges): Likewise.
8171 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
8172 receivers start a basic-block.
8174 2013-04-19 Richard Biener <rguenther@suse.de>
8176 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
8178 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
8179 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
8180 (SLP_TREE_LOAD_PERMUTATION): Add.
8181 (vect_transform_slp_perm_load): Adjust prototype.
8182 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
8183 (vect_free_slp_instance): Likewise.
8184 (vect_create_new_slp_node): Likewise.
8185 (vect_supported_slp_permutation_p): Remove.
8186 (vect_slp_rearrange_stmts): Adjust.
8187 (vect_supported_load_permutation_p): Likewise. Inline
8188 vect_supported_slp_permutation_p here.
8189 (vect_analyze_slp_instance): Compute load permutations per
8190 slp node instead of per instance.
8191 (vect_get_slp_defs): Adjust.
8192 (vect_transform_slp_perm_load): Likewise.
8193 (vect_schedule_slp_instance): Remove redundant code.
8194 (vect_schedule_slp): Remove hack for PR56270, add it ...
8195 * tree-vect-stmts.c (vectorizable_load): ... here, do not
8196 CSE loads for SLP. Adjust.
8198 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8200 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
8201 spelling in two comments.
8203 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8206 * config/arm/arm.c (load_multiple_sequence): Require SP
8207 as base register for loads if SP is in the register list.
8209 2013-04-19 Martin Jambor <mjambor@suse.cz>
8211 PR tree-optimization/56718
8212 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8213 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8214 and made public. Adjusted all callers.
8215 (ipa_intraprocedural_devirtualization): New function.
8216 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8217 (ipa_intraprocedural_devirtualization): Likewise.
8218 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8220 2013-04-19 Richard Biener <rguenther@suse.de>
8222 PR tree-optimization/57000
8223 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8225 2013-04-19 Terry Guo <terry.guo@arm.com>
8227 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8229 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8230 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8231 (cortex_m4_fmacs): Use new reservations.
8232 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8234 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8236 PR rtl-optimization/56999
8237 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8239 (lra_coalesce): Remove split_origin_bitmap and related code.
8240 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8241 ranges if necessary.
8243 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
8245 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8247 (ix86_expand_call): Remove clobbered_registers array and use
8248 x86_64_ms_sysv_extra_clobbered_registers instead.
8249 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8251 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8253 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8254 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8255 (*call_value_rex64_ms_sysv): Ditto.
8257 2013-04-18 Cary Coutant <ccoutant@google.com>
8259 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8260 parent instead of die_mark.
8262 2013-04-18 Diego Novillo <dnovillo@google.com>
8264 * gimple.c (create_gimple_tmp): New.
8265 (get_expr_type): New.
8266 (build_assign): New.
8267 (build_type_cast): New.
8268 * gimple.h (enum ssa_mode): Define.
8269 (gimple_seq_set_location): New.
8270 * asan.c (build_check_stmt): Change some gimple_build_* calls
8271 to use build_assign and build_type_cast.
8273 2013-04-18 Richard Biener <rguenther@suse.de>
8275 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8276 handle negative step. Remove redundant checks.
8277 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8278 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8279 for negative step and grouped loads fail to vectorize.
8281 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8283 * emit-rtl.c (reset_insn_used_flags): New function.
8284 (reset_all_used_flags): Use it.
8285 (verify_insn_sharing): New function.
8286 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8288 2013-04-18 Jakub Jelinek <jakub@redhat.com>
8290 PR tree-optimization/56984
8291 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8292 and (x >> M) >= N don't register any assertion if N << M is the
8295 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8297 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8298 do not delete_insn insns that have not yet been emitted, only
8299 unlink them with remove_insn.
8300 * df-scan.c (df_insn_delete): Revert r197492.
8302 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8304 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8305 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8307 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8309 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8310 define_insn_and_split.
8311 (and_scc,ior_scc,negscc): Likewise.
8312 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8314 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8316 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8317 can benefit from using a sequence of LDRD instructions in epilogue
8318 instead of a single LDM instruction.
8320 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8323 * doc/extend.texi: Fix typo.
8325 2013-04-17 Richard Biener <rguenther@suse.de>
8327 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8328 (vect_build_slp_tree): ... here.
8329 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8330 match. Remove special-casing of mismatched complex loads.
8331 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8332 re-try the match with swapped commutative operands.
8333 (vect_supported_load_permutation_p): Remove special-casing of
8334 mismatched complex loads.
8335 (vect_analyze_slp_instance): Adjust.
8337 2013-04-17 Richard Biener <rguenther@suse.de>
8339 PR rtl-optimization/56921
8340 * cfgloop.h (struct loop): Add simple_loop_desc member.
8341 (struct niter_desc): Mark with GTY(()).
8342 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8343 * loop-iv.c (get_simple_loop_desc): Likewise.
8344 (free_simple_loop_desc): Likewise.
8347 2013-04-16 Richard Biener <rguenther@suse.de>
8349 PR rtl-optimization/56921
8350 * loop-init.c (pass_rtl_move_loop_invariants): Add
8351 TODO_do_not_ggc_collect to todo_flags_finish.
8352 (pass_rtl_unswitch): Same.
8353 (pass_rtl_unroll_and_peel_loops): Same.
8354 (pass_rtl_doloop): Same.
8356 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8358 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8359 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8360 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8362 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8363 * tree-streamer.c (record_common_node): Adjust reference in comment.
8365 2013-04-17 Terry Guo <terry.guo@arm.com>
8367 * config/arm/cortex-m4.md: Add a new bypass.
8369 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8371 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8373 (*subs_<optab><mode>_multp2): New pattern.
8374 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8375 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8377 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8379 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8380 (*subs_mul_imm_<mode>): New pattern.
8382 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
8385 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8386 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8387 (vsx_movti_32bit): Change j->wa to O->wa.
8389 2013-04-16 Richard Biener <rguenther@suse.de>
8391 PR rtl-optimization/56921
8392 * loop-init.c (pass_rtl_move_loop_invariants): Add
8393 TODO_do_not_ggc_collect to todo_flags_finish.
8394 (pass_rtl_unswitch): Same.
8395 (pass_rtl_unroll_and_peel_loops): Same.
8396 (pass_rtl_doloop): Same.
8398 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
8400 * config/arm/arm.c (emit_multi_reg_push): New declaration
8401 for an existing function.
8402 (arm_emit_strd_push): New function.
8403 (arm_expand_prologue): Used here.
8404 (arm_emit_ldrd_pop): New function.
8405 (arm_expand_epilogue): Used here.
8406 (arm_get_frame_offsets): Update condition.
8407 (arm_emit_multi_reg_pop): Add a special case for load of a single
8408 register with writeback.
8410 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
8412 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8415 2013-04-16 Richard Biener <rguenther@suse.de>
8417 PR tree-optimization/56756
8418 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8419 (first_mem_ref_loc): New.
8420 (execute_sm): Place the load temporarily before a previous
8421 access instead of in the latch edge to ensure its SSA dependencies
8422 are defined at points dominating the load.
8424 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8426 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8427 correct fix by moving header and footer insn to the footer of
8428 the merged basic block. Clear BB_END of the merged-away block.
8431 * emit-rtl.c (make_note_raw): New function.
8432 (link_insn_into_chain): New static inline function.
8434 (add_insn_before, add_insn_after): Factor insn chain linking code...
8435 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8436 using link_insn_into_chain.
8437 (note_outside_basic_block_p): New helper function for emit_note_after
8438 and emit_note_before.
8439 (emit_note_after): Use nobb variant of add_insn_after if the note
8440 should not be contained in a basic block.
8441 (emit_note_before): Use nobb variant of add_insn_before if the note
8442 should not be contained in a basic block.
8443 (emit_note_copy): Use make_note_raw.
8444 (emit_note): Likewise.
8445 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8446 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8447 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8448 the moved barrier the tail of the basic block it follows.
8449 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8451 2013-04-15 Jakub Jelinek <jakub@redhat.com>
8453 PR tree-optimization/56962
8454 * gimple-ssa-strength-reduction.c (record_increment): Only set
8455 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8456 either rhs1 or rhs2 is equal to c->base_expr.
8458 2013-04-15 Richard Biener <rguenther@suse.de>
8460 PR tree-optimization/56933
8461 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8463 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8464 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8465 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8466 dependence check ...
8467 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8469 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8470 GROUP_READ_WRITE_DEPENDENCE.
8472 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8474 * emit-rtl.c (reset_all_used_flags): New function.
8475 (verify_rtl_sharing): Call reset_all_used_flags before and after
8476 performing the checks.
8478 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8480 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8481 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8482 * config/arm/constraints.md (De): New constraint.
8483 * config/arm/neon.md (anddi3_neon): Delete.
8484 (neon_vand<mode>): Expand to standard anddi3 pattern.
8485 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8486 Move earlier in the file.
8487 (neon_inv_logic_op2): Likewise.
8488 (arm_anddi_operand_neon): New predicate.
8490 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8492 * configure.ac (gcc_cv_ld_as_needed): Set
8493 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8494 Use -z ignore, -z record on *-*-solaris2*.
8495 (HAVE_LD_AS_NEEDED): Update comment.
8496 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8497 * configure: Regenerate.
8498 * config.in: Regenerate.
8499 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8500 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8501 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8502 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8503 equivalents. Fix markup.
8504 * doc/tm.texi: Regenerate.
8506 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8508 * config/i386/i386.opt: New option mstack-protector-guard=.
8509 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8510 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8511 TARGET_SSP_TLS_GUARD.
8512 * config/i386/i386.c (ix86_option_override_internal): Set
8513 ix86_stack_protector_guard.
8514 * config/i386/i386.md (stack_protect_set): Enable for
8515 TARGET_SSP_TLS_GUARD only.
8516 (stack_protect_set_<mode>): Ditto.
8517 (stack_protect_test): Ditto.
8518 (stack_protect_test_<mode>): Ditto.
8519 * doc/invoke.texi (i386 Option): Document.
8521 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8524 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8525 (S_MODES): Set H_MODE bit.
8526 (SF_MODES): Set only S_MODE and SF_MODE bits.
8527 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8528 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8529 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8530 <MODE_FLOAT>: Likewise.
8532 2013-04-15 Joey Ye <joey.ye@arm.com>
8534 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8536 2013-04-15 Joey Ye <joey.ye@arm.com>
8538 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8540 (thumb_far_jump_used_p): Count instruction size and set
8543 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8545 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8546 * resource.c (mark_target_live_regs): Reformat conditional block.
8548 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8550 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8551 notes, they are emitted only just before final.
8552 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8554 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8556 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8557 * cfgrtl.c (delete_insn): Call it here instead.
8558 * lra-spills.c (lra_final_code_change): Use delete_insn.
8559 * haifa-sched.c (sched_remove_insn): Likewise.
8560 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8561 returning to the nop pool.
8562 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8563 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8565 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8567 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8568 * doc/tm.texi: Regenerated.
8570 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
8572 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8575 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8577 * df-core.c (df_find_def): Compare register numbers.
8578 (df_find_use): Likewise.
8580 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8583 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8584 lra_in_progress for return.
8586 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8588 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8589 define_insn into define_insn_and_split and emit movsicc patterns.
8591 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8593 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8595 2013-04-12 Richard Biener <rguenther@suse.de>
8597 * tree-pass.h (TODO_do_not_ggc_collect): New.
8598 * passes.c (execute_one_ipa_transform_pass): Honor
8599 TODO_do_not_ggc_collect.
8600 (execute_one_pass): Likewise.
8603 2013-04-10 Richard Biener <rguenther@suse.de>
8605 * passes.c (init_optimization_passes): Remove reload pass.
8606 * ira.c (do_reload): Merge into ...
8608 (rest_of_handle_reload): Remove.
8609 (pass_reload): Likewise.
8610 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8611 of reload for vzeroupper pass placement.
8613 2013-04-12 Jakub Jelinek <jakub@redhat.com>
8615 PR tree-optimization/56918
8616 PR tree-optimization/56920
8617 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8618 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8619 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8620 use wide_mul_with_sign method.
8622 2013-04-12 Richard Biener <rguenther@suse.de>
8624 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8625 not be considered a gimple constant.
8627 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
8629 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8630 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8633 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8634 Jakub Jelinek <jakub@redhat.com>
8636 * opts.c: Include diagnostic-color.h.
8637 (common_handle_option): Handle OPT_fdiagnostics_color_.
8638 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8639 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8640 (diagnostic-color.o): New.
8641 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8642 (diagnostic_color_rule): New enum.
8643 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8644 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8645 the location string.
8646 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8647 either NULL, or color kind.
8648 * diagnostic-color.c: New file.
8649 * diagnostic-color.h: New file.
8650 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8652 * doc/invoke.texi (-fdiagnostics-color): Document.
8653 * pretty-print.h (pp_show_color): Define.
8654 (struct pretty_print_info): Add show_color field.
8655 * diagnostic.c: Include diagnostic-color.h.
8656 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8657 macros. Colorize error:, warning: etc. strings and also the location
8659 (diagnostic_show_locus): Colorize the caret line.
8660 * pretty-print.c: Include diagnostic-color.h.
8661 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8662 inside of %< %> quotes or quoted through q format modifier.
8664 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8666 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8668 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8670 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8672 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8675 2013-04-11 Marek Polacek <polacek@redhat.com>
8677 PR tree-optimization/48184
8678 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8680 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8682 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8683 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8684 (skip_simple_arithmetic): Tidy up.
8685 * tree.h (skip_simple_constant_arithmetic): Declare.
8687 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8689 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8691 2013-04-11 Richard Biener <rguenther@suse.de>
8693 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8694 generate vector constants.
8696 2013-04-11 Richard Biener <rguenther@suse.de>
8698 PR tree-optimization/56878
8699 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8700 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8702 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8703 Prefer to align the DR with the most invariant base address.
8705 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8707 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8710 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8712 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8713 floating-point vector comparisons against 0.
8715 2013-04-11 Jakub Jelinek <jakub@redhat.com>
8717 PR tree-optimization/56899
8718 * fold-const.c (extract_muldiv_1): Apply distributive law
8719 only if TYPE_OVERFLOW_WRAPS (ctype).
8721 2013-04-11 Bin Cheng <bin.cheng@arm.com>
8724 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8725 loading has side effect.
8727 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8729 * config/sparc/sparc.c: Include tree-pass.h.
8730 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8731 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8732 head of file. Change return type. Split off gate function.
8733 (sparc_gate_work_around_errata): New function.
8734 (pass_work_around_errata): New pass definition.
8735 (insert_pass_work_around_errata) New pass insert definition to
8736 insert pass_work_around_errata just after delayed-branch scheduling.
8737 (sparc_option_override): Insert the pass.
8738 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8740 2013-04-10 David S. Miller <davem@davemloft.net>
8742 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8743 or -mcpu=hypersparc.
8745 * target.def (cstore_mode): New hook.
8746 * target.h: Include insn-codes.h
8747 * targhooks.c: Likewise.
8748 (default_cstore_mode): New function.
8749 * targhooks.h: Declare it.
8750 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8751 * doc/tm.texi: Rebuild.
8752 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8753 target hook, rather than inspecting the insn_data.
8754 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8755 (TARGET_CSTORE_MODE): Redefine.
8756 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8758 * config/sparc/predicates.md (cstore_result_operand): New special
8760 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8761 Use it for operand 0.
8762 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8763 (*snesi_special): Likewise.
8764 (*snesi_zero): Likewise.
8765 (*seqsi_zero): Likewise.
8766 (*sltu_insn): Likewise.
8767 (*sgeu_insn): Likewise.
8768 (*seqdi_special): Make operand 0 and comparison operation be of
8770 (*snedi_special): Likewise.
8771 (*snedi_special_vis3): Likewise.
8772 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8773 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8774 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8775 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8776 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8777 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8778 (*sltu_extend_sp64): Likewise.
8779 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8780 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8781 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8782 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8783 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8785 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8787 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8788 (aarch64_start_file): Use the new function.
8790 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8791 Jason Merrill <jason@redhat.com>
8793 * common.opt: Add -gdwarf.
8794 * opts.c (common_handle_option): Handle it.
8795 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8797 2013-04-10 Richard Biener <rguenther@suse.de>
8799 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8800 (execute_one_ipa_transform_pass): But unconditionally here.
8801 (execute_one_pass): And here.
8802 (init_optimization_passes): Remove reload pass.
8803 * tree-pass.h (TODO_ggc_collect): Remove.
8804 (pass_reload): Likewise.
8805 * ira.c (do_reload): Merge into ...
8807 (rest_of_handle_reload): Remove.
8808 (pass_reload): Likewise.
8809 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8810 of reload for vzeroupper pass placement.
8811 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8812 and todo_flags_finish of all passes.
8814 2013-04-10 Richard Biener <rguenther@suse.de>
8816 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8817 first_const_oprnd field, rename first_def_type to first_op_type.
8818 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8819 (vect_get_and_check_slp_defs): Always use the type of the
8820 operand. Allow mixed vect_external_def, vect_constant_def types.
8821 (vect_get_constant_vectors): Handle mixed vect_external_def,
8822 vect_constant_def types.
8824 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8826 PR tree-optimization/55524
8827 * tree-ssa-math-opts.c
8828 (convert_mult_to_fma): Don't use an fms construct
8829 when we don't have an fms operation, but fnma, and it looks
8830 likely that we'll be able to use the latter.
8832 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8834 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8836 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8837 inline fail caused by overwritable functions.
8839 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8841 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8842 unnecessary bits in the constant power of two case.
8844 2013-04-10 Richard Biener <rguenther@suse.de>
8846 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8847 broken code swapping operands.
8848 (vect_build_slp_tree): Do not compute load permutations here.
8849 (vect_analyze_slp_instance): Compute load permutations here,
8850 after building the SLP tree.
8852 2013-04-09 Christian Bruel <christian.bruel@st.com>
8854 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8855 of next/prev_real_insn.
8857 2013-04-09 Jan Hubicka <jh@suse.cz>
8859 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8860 Drop aliased parameter.
8861 (function_and_variable_visibility): Do not handle alias pairs.
8862 * cgraph.c (varpool_externally_visible_p): Update prototype.
8863 * varpool.c (varpool_add_new_variable): Update.
8865 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8867 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8869 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8871 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8873 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8875 2013-04-09 Marek Polacek <polacek@redhat.com>
8877 PR tree-optimization/48762
8878 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8880 2013-04-09 Richard Biener <rguenther@suse.de>
8882 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8884 (vect_build_slp_tree): Likewise.
8885 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8886 calculating the cost of a SLP instance.
8887 (vect_analyze_slp_instance): Use it from here, after building
8890 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8893 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8894 expand_omp_for_static_chunk): Use simple_p = true in
8895 force_gimple_operand_gsi calls when assigning to addressable decls.
8897 2013-04-09 Jeff Law <law@redhat.com>
8899 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8900 when the boolean was created by converting a wider object which
8901 had a boolean range.
8903 2013-04-09 Richard Biener <rguenther@suse.de>
8905 * tree-vectorizer.h (slp_void_p): Remove.
8906 (slp_tree): Typedef before _slp_tree declaration.
8907 (struct _slp_tree): Use a vector of slp_tree as children.
8908 (vect_get_place_in_interleaving_chain): Remove.
8909 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8911 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8913 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8914 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8915 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8916 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8917 Use slp_node instead of slp_void_p and adjust.
8919 2013-04-09 Richard Biener <rguenther@suse.de>
8921 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8922 work that is not necessary.
8924 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8926 PR tree-optimization/56854
8927 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8928 forward into clobber stmts if it would change MEM_REF lhs into
8931 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8933 * tree.c (type_hash_lookup, type_hash_add): Make static.
8934 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8936 2013-04-09 Richard Biener <rguenther@suse.de>
8938 * tree.h (unsave_expr_now): Remove.
8939 * tree-inline.c (mark_local_for_remap_r): Remove.
8940 (unsave_expr_1): Likewise.
8941 (unsave_r): Likewise.
8942 (unsave_expr_now): Likewise.
8943 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8944 (propagate_tree_value): Likewise.
8946 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8948 * doc/rtl.texi (sequence): Rewrite documentation to match the
8949 current use of SEQUENCE rtl objects.
8950 * rtl.def (SEQUENCE): Likewise.
8952 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8953 Update documentation.
8954 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8955 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8957 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8959 2013-04-08 Teresa Johnson <tejohnson@google.com>
8961 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8962 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8964 (estimate_edge_size_and_time): Add comment to suggest using rounding
8966 (estimate_node_size_and_time): Ditto.
8967 (remap_edge_change_prob): Use helper rounding divide methods.
8968 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8969 (gimple_mod_pow2_value_transform): Ditto.
8970 (gimple_mod_subtract_transform): Ditto.
8971 (gimple_ic_transform): Ditto.
8972 (gimple_stringops_transform): Ditto.
8973 * stmt.c (conditional_probability): Ditto.
8974 (emit_case_dispatch_table): Ditto.
8975 * lto-cgraph.c (merge_profile_summaries): Ditto.
8976 * tree-optimize.c (execute_fixup_cfg): Ditto.
8977 * cfgcleanup.c (try_forward_edges): Ditto.
8978 * cfgloopmanip.c (scale_loop_profile): Ditto.
8980 (duplicate_loop_to_header_edge): Ditto.
8981 (lv_adjust_loop_entry_edge): Ditto.
8982 * tree-vect-loop.c (vect_transform_loop): Ditto.
8983 * profile.c (compute_branch_probabilities): Ditto.
8984 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8985 * lto-streamer-in.c (input_cfg): Ditto.
8986 * gimple-streamer-in.c (input_bb): Ditto.
8987 * ipa-cp.c (update_profiling_info): Ditto.
8988 (update_specialized_profile): Ditto.
8989 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8990 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8992 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8993 (compute_trg_info): Ditto.
8994 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8995 (purge_dead_edges): Ditto.
8996 * loop-unswitch.c (unswitch_loop): Ditto.
8997 * cgraphclones.c (cgraph_clone_edge): Ditto.
8998 (cgraph_clone_node): Ditto.
8999 * tree-inline.c (copy_bb): Ditto.
9000 (copy_edges_for_bb): Ditto.
9001 (initialize_cfun): Ditto.
9002 (copy_cfg_body): Ditto.
9003 (expand_call_inline): Ditto.
9005 2013-04-08 Kai Tietz <ktietz@redhat.com>
9007 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
9008 TARGET_CYGWIN64 by TARGET_64BIT.
9010 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
9012 * config/epiphany/epiphany.md (GPR_1): New constant.
9013 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
9014 * config/epiphany/epiphany.c (gen_compare_reg):
9015 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
9016 is already in place.
9017 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
9018 Don't require being called during rtl expansion; If y operlaps r0,
9020 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
9021 (epiphany_expand_epilogue): Likewise.
9023 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
9024 Don't use CC_FPmode for ORDERED / UNORDERED.
9025 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
9027 * config/epiphany/constraints.md (CnL): New constraint.
9028 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
9029 * config/epiphany/predicates.md (add_operand): Allow 1024.
9031 * config/epiphany/epiphany.md (logical_op): New code iterator.
9032 (op_mnc): New code attribute.
9033 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
9034 (mov_f+1, mov_f+2): New peephole2 patterns.
9036 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
9037 (cstoresi4): Also allow re-use of zero result when doing a NE
9038 comparison to a non-zero operand.
9039 Use (clobber (scratch)) for first insn if the gpr output is not needed.
9041 * config/epiphany/epiphany.md (<insn_opname>v2si3):
9042 Use gen_addsi3_i / gen_subsi3_i.
9044 2013-04-08 Jakub Jelinek <jakub@redhat.com>
9048 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
9049 contain anything but clobbers, at most one __builtin_stack_restore,
9050 optionally debug stmts and final resx, and if it has at least one
9051 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
9052 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
9053 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
9054 which isn't defaut definition, remove them.
9055 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
9056 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
9057 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
9058 with MEM_REF LHS with SSA_NAME address.
9060 2013-04-08 Jeff Law <law@redhat.com>
9062 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
9064 2013-04-08 Richard Biener <rguenther@suse.de>
9066 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
9068 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
9069 determined vector type.
9070 (vect_analyze_data_refs): Likewise.
9071 (vect_get_new_vect_var): Adjust.
9072 (vect_create_destination_var): Preserve SSA name versions.
9073 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
9074 not dump anything here.
9076 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
9078 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
9079 Add member lr_slot_known.
9080 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
9082 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
9083 Remove code that sets lr_slot_offset according to what a previous
9084 version of epiphany_emit_save_restore used to do.
9085 (epiphany_emit_save_restore): When doing an lr save or restore,
9086 set/verify lr_slot_known and lr_slot_offset.
9088 2013-04-08 Xinyu Qi <xyqi@marvell.com>
9091 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
9094 2013-04-08 Richard Biener <rguenther@suse.de>
9096 * alias.c (find_base_term): Fix thinko in previous change.
9098 2013-04-08 Jakub Jelinek <jakub@redhat.com>
9100 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
9101 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
9102 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
9103 if possible to compute val.
9104 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
9105 For QImode integers don't require anything about precision. Use
9106 const_with_all_bytes_same to find out if the constant doesn't have
9107 repeated bytes in it.
9109 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9111 * config/s390/s390.c (s390_expand_insv): Only accept insertions
9114 2013-04-08 Marek Polacek <polacek@redhat.com>
9116 PR rtl-optimization/48182
9117 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
9120 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9123 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
9124 nuses, make sure we have a label.
9126 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9129 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
9130 (rs6000_emit_swdiv_low_precision): Remove.
9131 (rs6000_emit_swdiv): Rewrite to handle between one and four
9132 iterations of Newton-Raphson generally; modify required number of
9133 iterations for some cases.
9134 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
9136 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
9138 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
9139 set-but-unused variable.
9141 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
9142 basic blocks of released function bodies garbage-collectable.
9144 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
9145 (struct rtl_opt_pass): Add TODO_df_finish.
9147 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
9149 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9151 * config/arm/constraints.md (q): New constraint.
9152 * config/arm/ldrdstrd.md: New file.
9153 * config/arm/arm.md (ldrdstrd.md) New include.
9154 (arm_movdi): Use "q" instead of "r" constraint
9155 for double-word memory access.
9156 (movdf_soft_insn): Likewise.
9157 * config/arm/vfp.md (movdi_vfp): Likewise.
9158 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
9159 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
9160 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
9161 (mem_ok_for_ldrd_strd): Likewise.
9162 (output_move_double): Update assertion.
9164 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9166 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
9168 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9170 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
9171 define_insn_and_split.
9172 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
9174 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9176 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
9177 define_insn_and_split.
9178 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
9179 (shiftsi3_compare): New pattern.
9181 * config/arm/unspecs.md (UNSPEC_RRX): New.
9183 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9185 * config/arm/arm.md (negdi_extendsidi): New pattern.
9186 (negdi_zero_extendsidi): Likewise.
9188 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9190 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
9191 define_insn_and_split.
9192 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
9193 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
9195 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9197 * config/arm/arm.md (arm_subdi3): Convert define_insn into
9198 define_insn_and_split.
9199 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
9200 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
9202 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9204 * config/arm/arm.md (subsi3_carryin): New pattern.
9205 (subsi3_carryin_const): Likewise.
9206 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9207 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9209 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9211 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9213 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9215 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
9216 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
9218 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9220 * config/arm/arm.c (arm_expand_builtin): Change fcode
9221 type to unsigned int.
9223 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9225 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9227 2013-04-04 Ian Lance Taylor <iant@google.com>
9229 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9232 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9235 * df-scan.c (df_insn_delete): Disable failing assert.
9237 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9239 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9240 New function prototype.
9241 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9242 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9243 (arm_builtin_vectorized_function): New function.
9245 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9247 * config/arm/arm_neon_builtins.def: New file.
9248 * config/arm/arm.c (neon_builtin_data): Move contents to
9249 arm_neon_builtins.def.
9250 (enum arm_builtins): Include neon builtin definitions.
9251 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
9252 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
9254 2013-04-04 Marek Polacek <polacek@redhat.com>
9256 PR tree-optimization/48186
9257 * predict.c (maybe_hot_frequency_p): Return false if
9258 HOT_BB_FREQUENCY_FRACTION is 0.
9259 (cgraph_maybe_hot_edge_p): Likewise.
9261 2013-04-04 Richard Biener <rguenther@suse.de>
9263 PR tree-optimization/56826
9264 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9267 2013-04-04 Richard Biener <rguenther@suse.de>
9269 PR tree-optimization/56213
9270 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
9271 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
9273 2013-04-04 Richard Biener <rguenther@suse.de>
9275 PR tree-optimization/56837
9276 * tree-loop-distribution.c (classify_partition): For non-zero
9277 values require that the value has the same precision as its
9278 mode to be useful as memset value.
9280 2013-04-03 Nick Clifton <nickc@redhat.com>
9282 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
9283 (fmssf4): Use fmsf.s on E3V5 architectures.
9284 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9285 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9287 2013-04-03 Jeff Law <law@redhat.com>
9289 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9290 (lra-eliminations.o): Likewise.
9292 2013-04-03 Teresa Johnson <tejohnson@google.com>
9294 * gcov-io.c (compute_working_sets): Moved most of body of old
9295 compute_working_sets here from profile.c.
9296 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
9297 (gcov_working_set_t): Moved typedef here from basic-block.h
9298 (compute_working_set): Declare.
9299 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9300 (get_working_sets): Renamed from compute_working_set,
9301 replace most of body with call to new compute_working_sets.
9302 (get_exec_counts): Replace call to compute_working_sets
9303 to get_working_sets.
9304 * profile.h (get_working_sets): Renamed from compute_working_set.
9305 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
9306 to get_working_sets.
9307 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9308 * gcov-dump.c (dump_working_sets): New function.
9310 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9312 * hwint.c (sext_hwi, zext_hwi): New functions.
9313 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9314 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9315 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9316 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9317 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9318 (sext_hwi, zext_hwi): New functions.
9320 2013-04-03 Jeff Law <law@redhat.com>
9322 PR tree-optimization/56799
9323 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9324 back test for widening conversion erroneously dropped in prior change.
9326 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9329 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9330 instead of next_real_insn.
9332 2013-04-03 Marek Polacek <polacek@redhat.com>
9335 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
9337 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9340 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9342 (thumb1_output_casesi): Likewise.
9343 (thumb2_output_casesi): Likewise.
9345 2013-04-03 Richard Biener <rguenther@suse.de>
9347 PR tree-optimization/56817
9348 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9350 (tree_unroll_loops_completely_1): ... new function to manually
9351 walk the loop tree, properly defering outer loops of unrolled
9352 loops to later iterations.
9354 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9356 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9357 (vectorizable_load): Likewise.
9358 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9359 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9361 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9363 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9366 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9368 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9370 2013-04-03 Bin Cheng <bin.cheng@arm.com>
9372 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9374 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9376 PR tree-optimization/56790
9377 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9380 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9382 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9384 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9385 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9388 2013-04-03 Jakub Jelinek <jakub@redhat.com>
9391 * tree.h (force_folding_builtin_constant_p): New decl.
9392 * builtins.c (force_folding_builtin_constant_p): New variable.
9393 (fold_builtin_constant_p): Fold immediately also if
9394 force_folding_builtin_constant_p.
9396 2013-04-03 Richard Biener <rguenther@suse.de>
9398 PR tree-optimization/56812
9399 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9400 DRs of the same interleaving chain are independent.
9402 2013-04-02 Jason Merrill <jason@redhat.com>
9404 * gdbinit.in (pbb): Use debug fn.
9406 2013-04-02 Lawrence Crowl <crowl@google.com>
9408 * sese.h (struct ivtype_map_elt_s): Remove unused.
9409 (extern debug_ivtype_map): Remove unused.
9410 (extern eq_ivtype_map_elts): Remove unused.
9411 * sese.c (debug_ivtype_map): Removed unused.
9412 (debug_ivtype_map_1): Removed unused.
9413 (debug_ivtype_elt): Remove unused.
9414 (eq_ivtype_map_elts): Remove unused.
9417 2013-04-02 Kai Tietz <ktietz@redhat.com>
9420 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9421 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
9422 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9424 (legitimize_pe_coff_symbol): Likewise.
9425 (is_imported_p): New helper-function.
9426 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9427 for Windows x64 targets.
9428 (ix86_expand_prologue): Optimize for pe-coff targets.
9429 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9430 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9431 medium/large code-model.
9432 (legitimize_pic_address): Likewise.
9433 (legitimize_tls_address): Likewise.
9434 (ix86_expand_call): Likewise.
9435 (x86_output_mi_thunk): Likewise.
9436 (get_dllimport_decl): Add new beimport argument.
9437 (construct_plt_address): Don't assert for x64 pe-coff targets.
9438 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9440 (SYMBOL_FLAG_STUBVAR): New macro.
9441 (SYMBOL_REF_STUBVAR_P): Likewise.
9442 * config/i386/winnt.c (stub_list): New structure.
9443 (stub_head): New local variable.
9444 (i386_pe_record_stub): New function.
9445 (i386_pe_file_end): Emit refptr-stubs.
9447 2013-04-02 Jakub Jelinek <jakub@redhat.com>
9449 PR rtl-optimization/56745
9450 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9451 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9454 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9455 and both of them are MEM_REFs, just compare first argument for
9456 equality and attempt to deal even with differing offsets.
9459 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9460 of gimple_clobber_p to be MEM_REF.
9461 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9462 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9463 after gimplification.
9464 * asan.c (get_mem_ref_of_assignment): Don't instrument
9465 gimple_clobber_p stmts.
9466 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9467 gimple_clobber_p stmt if they have MEM_REF lhs and
9468 are dead because of another gimple_clobber_p stmt.
9469 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9470 gimple_clobber_p stmts like debug stmts.
9471 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9472 that refer to unused VAR_DECLs or uninitialized values.
9473 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9474 gimple_clobber_p stmts if they refer to removed parameters.
9475 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9478 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
9480 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9481 using SWI48 mode attribute.
9483 2013-04-02 Wei Mi <wmi@google.com>
9485 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9486 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9487 *<rotate_insn><mode>3_mask in i386.md.
9489 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9491 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9493 2013-04-02 Richard Biener <rguenther@suse.de>
9495 PR tree-optimization/56778
9496 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9497 Runtime alias tests are not supported for gather loads.
9498 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9499 stmts referenced from SSA operands before updating SSA form.
9501 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9502 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9504 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9505 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9506 * config/arm/cortex-a53.md: New file.
9507 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9508 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9509 * config/arm/arm.c (arm_issue_rate): Likewise.
9510 * config/arm/arm-tune.md: Regenerate
9511 * config/arm/arm-tables.opt: Regenerate.
9512 * config/arm/arm-cores.def: Add cortex-a53.
9514 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9516 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9519 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9521 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9522 scalar load/store operations using B/H registers.
9523 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9525 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9527 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9529 * config/aarch64/aarch64.c
9530 (aarch64_simd_scalar_immediate_valid_for_move): New.
9531 * config/aarch64/aarch64-protos.h
9532 (aarch64_simd_scalar_immediate_valid_for_move): New.
9533 * config/aarch64/constraints.md (Dh, Dq): New.
9534 * config/aarch64/iterators.md (hq): New.
9536 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9538 * reorg.c (get_branch_condition): Deal with conditional returns.
9539 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9541 2013-04-01 Wei Mi <wmi@google.com>
9543 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9544 Truncate operand 2 using %b asm operand modifier.
9545 (*<shift_insn><mode>3_mask): Ditto.
9546 (*<rotate_insn><mode>3_mask): Ditto.
9548 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9551 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9553 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9555 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9557 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9559 2013-03-30 Lawrence Crowl <crowl@google.com>
9561 * dse.c (clear_alias_sets): Remove never set.
9562 (disqualified_clear_alias_sets): Remove never set.
9563 (clear_alias_mode_pool): Remove never set.
9564 (dse_step0): Remove condition that is never true.
9565 (canon_address): Remove condition that is never true.
9566 (dse_step7): Remove condition that is never true.
9567 (rest_of_handle_dse): Remove condition that is never true.
9568 (rest_of_handle_dse::did_global): Remove never read from above.
9569 (dse_step2_spill): Remove never called from above.
9570 (dse_step5_spill): Remove never called from above.
9572 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9574 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9575 JUMP_TABLE_DATA changes.
9576 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9577 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9578 (Insns) <jump_table_data>: New entry.
9579 * doc/tm.texi: Regenerate.
9581 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9583 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9584 for table jump at the end of a basic block using tablejump_p.
9585 * targhooks.c (default_invalid_within_doloop): Likewise.
9586 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9587 target hook implementation that is identical to the default hook.
9588 (rs6000_invalid_within_doloop): Remove.
9590 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9591 unused variable from tablejump_p call.
9593 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9594 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9595 (INSN_DELETED_P): Likewise.
9596 (emit_jump_table_data): New prototype.
9597 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9598 after 4th as unused.
9599 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9600 * sched-vis.c (print_insn): Likewise.
9601 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9602 insn for compatibility with back ends that use next_active_insn to
9603 identify jump table data.
9604 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9605 (remove_insn): Likewise.
9606 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9608 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9609 (emit_jump_table_data): New function.
9611 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9612 basic block, a JUMP_TABLE_DATA never is.
9613 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9614 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9615 off from code handling real insns.
9616 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9617 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9618 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9619 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9620 is not a NONDEBUG_INSN_P.
9621 * ira-costs.c (scan_one_insn): Likewise.
9622 * jump.c (mark_all_labels): Likewise.
9623 (mark_jump_label_1): Likewise.
9624 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9625 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9627 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9628 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9629 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9630 JUMP_TABLE_DATA_P insns.
9631 (calculate_elim_costs_all_insns): Likewise.
9632 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9633 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9634 (delete_output_reload): Code style fixups.
9635 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9636 insn flags on this non-insn.
9637 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9638 as scheduling barriers, for pre-change compatibility.
9639 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9640 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9642 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9643 redundant JUMP_TABLE_DATA_P test.
9644 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9645 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9646 (frv_for_each_packet): Likewise.
9647 * config/i386/i386.c (min_insn_size): Likewise.
9648 (ix86_avoid_jump_mispredicts): Likewise.
9649 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9650 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9651 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9652 (mips16_insn_length): Robustify.
9653 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9654 (mips16_split_long_branches): Likewise.
9655 * config/pa/pa.c (pa_combine_instructions): Likewise.
9656 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9657 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9658 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9659 as contributing to pool range lengths.
9660 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9661 Remove redundant JUMP_TABLE_DATA_P test.
9662 (sh_loop_align): Likewise.
9663 (split_branches): Likewise.
9664 (sh_insn_length_adjustment): Likewise.
9665 * config/spu/spu.c (get_branch_target): Likewise.
9667 2013-03-29 Jan Hubicka <jh@suse.cz>
9669 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9670 gcov streaming; stream hot bb threshold to ltrans.
9671 * predict.c (get_hot_bb_threshold): Break out from ....
9672 (maybe_hot_count_p): ... here.
9673 (set_hot_bb_threshold): New function.
9674 * lto-section-in.c (lto_section_name): Add profile.
9675 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9676 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9678 (histogram_entry): New structure.
9679 (histogram, histogram_pool): New global vars.
9680 (histogram_hash): New structure.
9681 (histogram_hash::hash): New method.
9682 (histogram_hash::equal): Likewise.
9683 (account_time_size): New function.
9684 (cmp_counts): New function.
9685 (dump_histogram): New function.
9686 (ipa_profile_generate_summary): New function.
9687 (ipa_profile_write_summary): New function.
9688 (ipa_profile_read_summary): New function.
9689 (ipa_profile): Decide on threshold.
9690 (pass_ipa_profile): Add ipa_profile_write_summary and
9691 ipa_profile_read_summary.
9692 * Makefile.in (ipa.o): Update dependencies.
9693 * lto-streamer.h (LTO_section_ipa_profile): New section.
9695 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9697 * tree.h (VAR_P): New.
9699 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9702 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9704 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9706 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9707 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9708 (control_flow_insn_p): Likewise.
9709 * cfgrtl.c (duplicate_insn_chain): Likewise.
9710 * final.c (get_attr_length_1): Likewise.
9711 (shorten_branches): Likewise.
9712 (final_scan_insn): Likewise.
9713 * function.c (instantiate_virtual_regs): Likewise.
9714 * gcse.c (insert_insn_end_basic_block): Likewise.
9715 * ira-costs.c (scan_one_insn): Likewise.
9716 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9717 * lra.c (check_rtl): Likewise.
9718 * reload1.c (elimination_costs_in_insn): Likewise.
9719 * reorg.c (follow_jumps): Likewise.
9721 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9722 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9723 (thumb_far_jump_used_p): Likewise.
9724 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9725 (workaround_speculation): Likewise.
9726 (add_sched_insns_for_speculation): Likewise.
9727 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9728 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9729 (frv_for_each_packet): Likewise.
9730 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9731 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9732 (final_emit_insn_group_barriers): Likewise.
9733 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9734 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9735 (mips16_insn_length): Likewise.
9736 * config/pa/pa.c (pa_reorg): Likewise.
9737 (pa_combine_instructions): Likewise.
9738 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9739 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9740 (sh_reorg): Likewise.
9741 (split_branches): Likewise.
9742 * config/spu/spu.c (get_branch_target): Likewise.
9744 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9747 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9749 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9750 Fix declaration name.
9752 2013-03-28 Lawrence Crowl <crowl@google.com>
9754 * graphds.h (struct graph.indicies): Remove unused.
9755 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9756 (SCOP_ORIGINAL_PDDRS): Remove unused.
9757 * sese.h (extern insert_loop_close_phis): Removed unused.
9758 (extern insert_guard_phis): Removed unused.
9759 (extern ivtype_map_elt_info): Removed unused.
9760 (new_ivtype_map_elt): Removed unused.
9761 * sese.c (ivtype_map_elt_info): Removed unused.
9763 2013-03-28 Lawrence Crowl <crowl@google.com>
9765 * Makefile.in: Add several missing include dependences.
9767 (test-dump.o): New. This object is not added to any executable,
9768 but is present for ad-hoc testing.
9770 (debug (const bitmap_head_def &)): New.
9771 (debug (const bitmap_head_def *)): New.
9773 (extern debug (const bitmap_head_def &)): New.
9774 (extern debug (const bitmap_head_def *)): New.
9776 (debug (edge_def &)): New.
9777 (debug (edge_def *)): New.
9779 (debug (basic_block_def &)): New.
9780 (debug (basic_block_def *)): New.
9782 (dump_node (const_tree, int, FILE *)): Correct source file.
9784 (debug (die_struct &)): New.
9785 (debug (die_struct *)): New.
9787 (extern debug (die_struct &)): New.
9788 (extern debug (die_struct *)): New.
9789 * gimple-pretty-print.c
9790 (debug (gimple_statement_d &)): New.
9791 (debug (gimple_statement_d *)): New.
9792 * gimple-pretty-print.h
9793 (extern debug (gimple_statement_d &)): New.
9794 (extern debug (gimple_statement_d *)): New.
9796 (debug (ira_allocno_copy &)): New.
9797 (debug (ira_allocno_copy *)): New.
9798 (debug (ira_allocno &)): New.
9799 (debug (ira_allocno *)): New.
9801 (extern debug (ira_allocno_copy &)): New.
9802 (extern debug (ira_allocno_copy *)): New.
9803 (extern debug (ira_allocno &)): New.
9804 (extern debug (ira_allocno *)): New.
9806 (debug (live_range &)): New.
9807 (debug (live_range *)): New.
9809 (debug (lra_live_range &)): New.
9810 (debug (lra_live_range *)): New.
9812 (debug (lra_live_range &)): New.
9813 (debug (lra_live_range *)): New.
9815 (debug (omega_pb_d &)): New.
9816 (debug (omega_pb_d *)): New.
9818 (extern debug (omega_pb_d &)): New.
9819 (extern debug (omega_pb_d *)): New.
9821 (debug (const rtx_def &)): New.
9822 (debug (const rtx_def *)): New.
9824 (debug_tree (tree): Move within file.
9825 (debug_raw (const tree_node &)): New.
9826 (debug_raw (const tree_node *)): New.
9827 (dump_tree_via_hooks (const tree_node *, int)): New.
9828 (debug (const tree_node &)): New.
9829 (debug (const tree_node *)): New.
9830 (debug_verbose (const tree_node &)): New.
9831 (debug_verbose (const tree_node *)): New.
9832 (debug_head (const tree_node &)): New.
9833 (debug_head (const tree_node *)): New.
9834 (debug_body (const tree_node &)): New.
9835 (debug_body (const tree_node *)): New.
9836 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9837 (debug (vec<tree, va_gc> &)): New.
9838 (debug (vec<tree, va_gc> *)): New.
9840 (extern debug (const rtx_def &)): New.
9841 (extern debug (const rtx_def *)): New.
9843 (debug_raw (simple_bitmap_def &)): New.
9844 (debug_raw (simple_bitmap_def *)): New.
9845 (debug (simple_bitmap_def &)): New.
9846 (debug (simple_bitmap_def *)): New.
9848 (extern debug (simple_bitmap_def &)): New.
9849 (extern debug (simple_bitmap_def *)): New.
9850 (extern debug_raw (simple_bitmap_def &)): New.
9851 (extern debug_raw (simple_bitmap_def *)): New.
9853 (debug (vinsn_def &)): New.
9854 (debug (vinsn_def *)): New.
9855 (debug_verbose (vinsn_def &)): New.
9856 (debug_verbose (vinsn_def *)): New.
9857 (debug (expr_def &)): New.
9858 (debug (expr_def *)): New.
9859 (debug_verbose (expr_def &)): New.
9860 (debug_verbose (expr_def *)): New.
9861 (debug (vec<rtx> &)): New.
9862 (debug (vec<rtx> *)): New.
9864 (extern debug (vinsn_def &)): New.
9865 (extern debug (vinsn_def *)): New.
9866 (extern debug_verbose (vinsn_def &)): New.
9867 (extern debug_verbose (vinsn_def *)): New.
9868 (extern debug (expr_def &)): New.
9869 (extern debug (expr_def *)): New.
9870 (extern debug_verbose (expr_def &)): New.
9871 (extern debug_verbose (expr_def *)): New.
9872 (extern debug (vec<rtx> &)): New.
9873 (extern debug (vec<rtx> *)): New.
9875 (_list_iter_cond_expr): Make inline instead of static.
9877 (debug (sreal &)): New.
9878 (debug (sreal *)): New.
9880 (extern debug (sreal &)): New.
9881 (extern debug (sreal *)): New.
9883 (extern debug_raw (const tree_node &)): New.
9884 (extern debug_raw (const tree_node *)): New.
9885 (extern debug (const tree_node &)): New.
9886 (extern debug (const tree_node *)): New.
9887 (extern debug_verbose (const tree_node &)): New.
9888 (extern debug_verbose (const tree_node *)): New.
9889 (extern debug_head (const tree_node &)): New.
9890 (extern debug_head (const tree_node *)): New.
9891 (extern debug_body (const tree_node &)): New.
9892 (extern debug_body (const tree_node *)): New.
9893 (extern debug (vec<tree, va_gc> &)): New.
9894 (extern debug (vec<tree, va_gc> *)): New.
9896 (debug (struct loop &)): New.
9897 (debug (struct loop *)): New.
9898 (debug_verbose (struct loop &)): New.
9899 (debug_verbose (struct loop *)): New.
9900 * tree-dump.c: Add header dependence.
9902 (extern debug (struct loop &)): New.
9903 (extern debug (struct loop *)): New.
9904 (extern debug_verbose (struct loop &)): New.
9905 (extern debug_verbose (struct loop *)): New.
9907 (debug (data_reference &)): New.
9908 (debug (data_reference *)): New.
9909 (debug (vec<data_reference_p> &)): New.
9910 (debug (vec<data_reference_p> *)): New.
9911 (debug (vec<ddr_p> &)): New.
9912 (debug (vec<ddr_p> *)): New.
9914 (extern debug (data_reference &)): New.
9915 (extern debug (data_reference *)): New.
9916 (extern debug (vec<data_reference_p> &)): New.
9917 (extern debug (vec<data_reference_p> *)): New.
9918 (extern debug (vec<ddr_p> &)): New.
9919 (extern debug (vec<ddr_p> *)): New.
9921 (debug (pt_solution &)): New.
9922 (debug (pt_solution *)): New.
9924 (extern debug (pt_solution &)): New.
9925 (extern debug (pt_solution *)): New.
9927 (debug (_var_map &)): New.
9928 (debug (_var_map *)): New.
9929 (debug (tree_live_info_d &)): New.
9930 (debug (tree_live_info_d *)): New.
9932 (extern debug (_var_map &)): New.
9933 (extern debug (_var_map *)): New.
9934 (extern debug (tree_live_info_d &)): New.
9935 (extern debug (tree_live_info_d *)): New.
9937 2013-03-28 Jan Hubicka <jh@suse.cz>
9939 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9941 2013-03-28 Ian Bolton <ian.bolton@arm.com>
9943 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9944 record only when desired or required.
9946 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
9948 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9949 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9951 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9953 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9954 (*andsi3_compare0_uxtw): New pattern.
9955 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9956 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9958 2013-03-28 Jan Hubicka <jh@suse.cz>
9960 * data-streamer-in.c (streamer_read_gcov_count): New function.
9961 * gimple-streamer-out.c: Include value-prof.h.
9962 (output_gimple_stmt): Output histogram.
9963 (output_bb): Use streamer_write_gcov_count.
9964 * value-prof.c: Include data-streamer.h
9965 (dump_histogram_value): Add HIST_TYPE_MAX.
9966 (stream_out_histogram_value): New function.
9967 (stream_in_histogram_value): New function.
9968 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9969 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9970 * data-streamer-out.c (streamer_write_gcov_count): New function.
9971 (streamer_write_gcov_count_stream): New function.
9972 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9973 (lto_output_node): Likewise.
9974 (input_node, input_edge): Likewise.
9975 * lto-streamer-out.c (output_cfg): Update streaming.
9976 * lto-streamer-in.c (input_cfg): Likewise.
9977 * data-streamer.h (streamer_write_gcov_count,
9978 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9979 * gimple-streamer-in.c: Include value-prof.h
9980 (input_gimple_stmt): Input histograms.
9981 (input_bb): Update profile streaming.
9983 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9985 * genmodes.c (emit_max_int): New function.
9986 (emit_insn_modes_h): Added call to emit_max_function.
9987 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9989 * machmode.def: Fixed comment.
9991 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9993 * combine.c (try_combine): Removed useless assert.
9994 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9996 2013-03-28 Marek Polacek <polacek@redhat.com>
9997 Richard Biener <rguenther@suse.de>
9999 PR tree-optimization/56695
10000 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
10001 build signed result of a vector comparison.
10002 * tree-cfg.c (verify_gimple_comparison): Check that a result
10003 of a vector comparison has signed type.
10005 2013-03-28 Richard Biener <rguenther@suse.de>
10007 PR tree-optimization/37021
10008 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
10009 do not restrict gaps between groups.
10010 * tree-vect-stmts.c (vectorizable_load): Properly account for
10011 a gap between groups.
10013 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
10015 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
10016 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
10019 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
10021 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
10022 * doc/extend.texi (Named Address Spaces): Ditto.
10023 (Variable Attributes): Ditto.
10025 2013-03-27 Kai Tietz <ktietz@redhat.com>
10027 * config.build: Add support for cygwin x64 target.
10028 * config.gcc: Likewise.
10029 * config.host: Likewise.
10030 * configure.ac: Likewise
10031 * configure: Regenerated.
10033 2013-03-27 Kai Tietz <ktietz@redhat.com>
10035 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
10036 * config/i386/t-cygwin-w64: New file.
10037 * config/i386/cygwin-w64.h: New file.
10038 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
10039 and add support for x64-cygwin target.
10040 (CPP_SPEC): Likewise.
10041 (CXX_WRAP_SPEC_LIST): Undefine before define.
10042 (LIBGCJ_SONAME): Use 15 as version.
10044 2013-03-27 Richard Biener <rguenther@suse.de>
10046 PR tree-optimization/56716
10047 * tree-ssa-structalias.c (perform_var_substitution): Adjust
10048 dumping for ref nodes.
10050 2013-03-27 Martin Jambor <mjambor@suse.cz>
10052 PR tree-optimization/55334
10053 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
10054 restricted pointers to arrays.
10056 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10058 * Makefile.in (.SUFFIXES): Add .cc.
10059 (.c.o): Apply same recipe for implicit rule .cc.o.
10061 2013-03-27 Richard Biener <rguenther@suse.de>
10063 PR tree-optimization/37021
10064 * tree-vect-data-refs.c (vect_check_strided_load): Allow
10065 REALPART/IMAGPART_EXPRs around the supported refs.
10066 * tree-ssa-structalias.c (find_func_aliases): Assume that
10067 floating-point values are not used to transfer pointers.
10069 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10071 * target.def (TARGET_HAS_IFUNC_P): New target hook.
10072 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
10073 * doc/tm.texi: Regenerate.
10074 * targhooks.h (default_has_ifunc_p): New.
10075 * targhooks.c (default_has_ifunc_p): Ditto.
10076 * config/linux-protos.h: New file.
10077 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
10078 this hook for linux which disables support of indirect functions in
10080 * config/linux-android.c: New file.
10081 * config/t-linux-android.c: Ditto.
10082 * config.gcc: Added new object file linux-android.o.
10083 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
10084 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
10085 * varasm.c (do_assemble_alias): Likewise.
10086 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
10087 doesn't support indirect functions.
10088 * configure: Regenerate.
10090 2013-03-27 Bin Cheng <bin.cheng@arm.com>
10093 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
10094 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
10097 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10099 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
10101 2013-03-27 Terry Guo <terry.guo@arm.com>
10103 * config/arm/arm-cores.def: Added core cortex-r7.
10104 * config/arm/arm-tune.md: Regenerated.
10105 * config/arm/arm-tables.opt: Regenerated.
10106 * doc/invoke.texi: Added entry for core cortex-r7.
10108 2013-03-27 Walter Lee <walt@tilera.com>
10110 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
10111 double-decrement of next_scratch_regno.
10113 2013-03-27 Walter Lee <walt@tilera.com>
10115 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
10117 (insn_v1mulus): Ditto.
10118 (insn_v2muls): Ditto.
10120 2013-03-27 Walter Lee <walt@tilera.com>
10122 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
10123 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
10125 2013-03-27 Walter Lee <walt@tilera.com>
10127 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
10128 (*sibcall_value): Ditto.
10130 2013-03-27 Walter Lee <walt@tilera.com>
10132 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
10133 (insn_mnz_v8qi): ... this ...
10134 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
10136 (insn_v<n>mnz): Replaced by ...
10137 (insn_v1mnz): ... this ...
10138 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
10140 (insn_mz_<mode>): Replaced by ...
10141 (insn_mz_v8qi): ... this ...
10142 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
10144 (insn_v<n>mz): Replaced by ...
10145 (insn_v1mz): ... this ...
10146 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
10149 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
10151 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
10153 2013-03-26 Roland McGrath <mcgrathr@google.com>
10155 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
10156 than fprintf with a non-constant, non-format string.
10158 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10160 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
10161 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
10162 operand 0 predicate.
10163 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
10164 attribute. Use general_x64nomem_operand as operand 1 predicate.
10165 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
10166 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10167 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
10168 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10169 (mov<mode>_insv_1): Remove expander. Merge insn with
10170 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
10171 Use general_x64nomem_operand as operand 1 predicate.
10172 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
10173 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
10174 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10175 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
10176 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
10177 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
10178 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10179 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
10180 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
10181 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
10182 (general_x64nomem_operand): Ditto.
10184 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
10186 * config/rtems.opt: Add -pthread option.
10188 2013-03-26 Richard Biener <rguenther@suse.de>
10190 * alias.c (find_base_term): Avoid redundant and not used recursion.
10191 (base_alias_check): Get the initial base term from the caller.
10192 (true_dependence_1): Compute and pass base terms to base_alias_check.
10193 (write_dependence_p): Likewise.
10194 (may_alias_p): Likewise.
10196 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
10198 * config/aarch64/aarch64.c (aarch64_classify_address): Support
10199 PC-relative load in SI modes and above only.
10201 2013-03-26 Xinyu Qi <xyqi@marvell.com>
10203 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
10204 * config/arm/iwmmxt.md (WCGR0): Update.
10205 (WCGR1, WCGR2, WCGR3): Likewise.
10207 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10209 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10210 Use x64 and nox64 isa attributes.
10212 2013-03-26 Richard Biener <rguenther@suse.de>
10214 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10215 alignment computations and rely on get_object_alignment_1
10216 for the !TYPE_P case.
10217 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10219 2013-03-26 Walter Lee <walt@tilera.com>
10221 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10222 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10224 2013-03-25 Jeff Law <law@redhat.com>
10226 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10227 check for INTEGRAL_TYPE_P that was missing due to checking in
10228 wrong version of prior patch.
10230 2013-03-25 Walter Lee <walt@tilera.com>
10232 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10233 TILEGX_INSN_SHUFFLEBYTES1.
10234 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10236 (tilegx_builtins): Ditto.
10237 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10239 2013-03-25 Walter Lee <walt@tilera.com>
10241 * config/tilegx/tilegx.md (floatsisf2): New pattern.
10242 (floatunssisf2): New pattern.
10243 (floatsidf2): New pattern.
10244 (floatunssidf2): New pattern.
10246 2013-03-25 Walter Lee <walt@tilera.com>
10248 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10249 tests for constraint J, K, N, P.
10251 2013-03-25 Walter Lee <walt@tilera.com>
10253 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10254 Use indirect/pcrel encoding.
10255 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10258 2013-03-25 Steve Ellcey <sellcey@mips.com>
10260 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10261 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10262 * config/mips/mips.c (mips_option_override): Set IMADD default.
10263 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10264 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10265 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10266 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10267 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10269 2013-03-25 Jeff Law <law@redhat.com>
10271 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10272 slightly to avoid creating and folding useless trees. Simplify
10273 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10275 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
10277 * config/i386/i386.md (*zero_extendsidi2): Merge with
10278 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10279 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10280 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10281 targets. Clarify comment.
10283 2013-03-25 Martin Jambor <mjambor@suse.cz>
10285 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10286 pass-through jump functions differently.
10287 (ipa_read_jump_function): Likewise. Also use setter functions to set
10290 2013-03-25 Martin Jambor <mjambor@suse.cz>
10292 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10293 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10295 (ipa_get_indirect_edge_target): New function.
10296 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10297 ipa_get_indirect_edge_target. Update all callers.
10298 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10299 ipa_get_indirect_edge_target_1 instead of calling
10300 ipa_get_indirect_edge_target.
10301 (create_specialized_node): Pass aggvlas to
10302 ipcp_discover_new_direct_edges.
10304 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10306 * config/arm/arm.md (f_sels, f_seld): New types.
10307 (*cmov<mode>): New pattern.
10308 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10311 2013-03-25 Kai Tietz <ktietz@redhat.com>
10313 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10314 POSIX-printf for mingw-hosted builds.
10316 2013-03-25 Richard Biener <rguenther@suse.de>
10318 PR middle-end/56694
10319 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10320 must-not-throw stmt location.
10322 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10324 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10325 Emit load-acquire versions when acq is true.
10326 (arm_emit_store_exclusive): Add rel parameter.
10327 Emit store-release versions when rel is true.
10328 (arm_split_compare_and_swap): Use acquire-release instructions
10330 of barriers when appropriate.
10331 (arm_split_atomic_op): Likewise.
10332 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10333 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10334 (VUNSPEC_SLX): Likewise.
10335 (VUNSPEC_LDA): Likewise.
10336 (VUNSPEC_STL): Likewise.
10337 * config/arm/sync.md (atomic_load<mode>): New pattern.
10338 (atomic_store<mode>): Likewise.
10339 (arm_load_acquire_exclusive<mode>): Likewise.
10340 (arm_load_acquire_exclusivesi): Likewise.
10341 (arm_load_acquire_exclusivedi): Likewise.
10342 (arm_store_release_exclusive<mode>): Likewise.
10344 2013-03-25 Catherine Moore <clm@codesourcery.com>
10346 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10347 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10348 * config/mip/predicates.md (lwsp_swsp_operand,
10349 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10350 sb16_operand, db4_operand, db7_operand, ib3_operand,
10351 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10352 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10353 andi16_operand): New predicates.
10354 * config/mips/mips.md (compression): New attribute.
10355 (enabled): New attribute.
10356 (length): Consider compression in computing length.
10357 (shift_compression): New code attribute.
10358 (*add<mode>3): New operands. Record compression.
10359 (sub<mode>3): Likewise.
10360 (one_cmpl<mode>2): Likewise.
10361 (*and<mode>3): Likewise.
10362 (*ior<mode>3): Likewise.
10363 (unnamed pattern for xor): Likewise.
10364 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10365 (*<optab><mode>3): Likewise.
10366 (*mov<mode>_internal: Likewise.
10367 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10368 (mips_unsigned_immediate_p): New.
10369 (umips_lwsp_swsp_address_p): New.
10370 (m16_based_address_p): New.
10371 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10372 (mips_unsigned_immediate_p): New prototype.
10373 (lwsp_swsp_address_p): New prototype.
10374 (m16_based_address_p): New prototype.
10375 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10376 (mips_signed_immediate_p): New function.
10377 (m16_based_address_p): New function.
10378 (lwsp_swsp_address_p): New function.
10379 (mips_print_operand_punctuation): Recognize short delay slot insns
10380 for microMIPS.add<mode>3"
10382 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10385 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10386 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10388 2013-03-25 Richard Biener <rguenther@suse.de>
10390 PR tree-optimization/56689
10391 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10394 2013-03-25 Richard Biener <rguenther@suse.de>
10396 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10398 (memory_references): Likewise.
10399 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10400 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10401 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10402 (gather_mem_refs_in_loops): Fold into ...
10403 (analyze_memory_references): ... this. Move initialization
10404 to tree_ssa_lim_initialize.
10405 (fill_always_executed_in): Rename to ...
10406 (fill_always_executed_in_1): ... this.
10407 (fill_always_executed_in): Move contains_call computation to
10408 this new function from ...
10409 (tree_ssa_lim_initialize): ... here.
10410 (tree_ssa_lim): Call fill_always_executed_in.
10412 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10414 * postreload.c (reload_combine): Fix code detecting returns.
10416 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10418 * function.c (emit_use_return_register_into_block): On cc0 targets,
10419 do not emit the sequence between cc0 setter and user.
10421 2013-03-25 Kai Tietz <ktietz@redhat.com>
10423 * config/i386/predicates.md (local_symbolic_operand): Interpret
10424 dll-imported symbols as none-local.
10426 2013-03-25 Richard Biener <rguenther@suse.de>
10428 * tree-ssa-loop-im.c (struct depend): Remove.
10429 (struct lim_aux_data): Make depends a vec of gimples.
10430 (free_lim_aux_data): Adjust.
10431 (add_dependency): Likewise.
10432 (set_level): Likewise.
10434 2013-03-25 Richard Biener <rguenther@suse.de>
10436 PR middle-end/56434
10437 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10438 the pointer returned by calls with ECF_MALLOC set.
10440 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10442 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10444 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10446 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
10447 using MMXMODE mode iterator.
10448 (*move<mode>_internal): Merge with *movv2sf_internal and
10449 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10451 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10453 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10454 (record_last_mem_set_info): Likewise.
10456 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10457 of XNEWVEC followed by memset.
10458 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10460 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10462 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10463 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10464 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10465 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10466 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10467 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10468 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10469 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10470 BARRIER_P instead of GET_CODE.
10472 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10474 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10475 inaccuracy in the probing code.
10477 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10478 (ctrapdi4): Likewise.
10480 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10482 * calls.c (expand_call): Add missing guard to code handling return
10483 of non-BLKmode structures in MSB.
10484 * function.c (expand_function_end): Likewise.
10486 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10488 * combine.c (try_combine): Adjust comment. Do not add the set of
10489 insn #0 if the destination indirectly is set or dies in insn #2.
10490 Tidy up code to distribute a new note.
10492 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10494 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10495 also for alternatives 16 and 17.
10497 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10499 * config/i386/sse.md (*mov<mode>_internal): Merge with
10500 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10501 Emit insn template depending on type attribute. Use
10502 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10503 movd instead of movq mnemonic for interunit moves. Rewrite mode
10504 attribute calculation. Remove unit attribute calculation.
10505 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10506 Set prefix_data16 attribute for DImode ssemov types.
10507 Use Ym instead of y for SSE-MMX conversion alternatives.
10508 Reorder operand constraints.
10510 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10512 * df.h (df_insn_delete): Adjust prototype.
10513 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10514 and let it decide whether mark the basic block dirty.
10515 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10516 * df-scan.c (df_insn_info_delete): New helper function, split
10517 off from df_insn_delete.
10518 (df_scan_free_bb_info): Use it.
10519 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10521 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10522 that the insn is actually an insn and it has a non-NULL basic block.
10523 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10525 2013-03-22 Richard Biener <rguenther@suse.de>
10527 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10529 (mem_ref_alloc): Do not allocate them.
10530 (refs_independent_p): Do not query or maintain a cache.
10532 2013-03-22 Richard Biener <rguenther@suse.de>
10534 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10535 (gather_mem_refs_in_loops): Do not compute it.
10536 (analyze_memory_references): Do not allocate it.
10537 (tree_ssa_lim_finalize): Do not free it.
10538 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10540 2013-03-22 Richard Biener <rguenther@suse.de>
10542 * is-a.h (as_a): Use gcc_checking_assert.
10544 2013-03-22 Ian Bolton <ian.bolton@arm.com>
10546 * config/aarch64/aarch64.c (aarch64_print_operand): New
10547 format specifier for printing a constant in hex.
10548 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10549 format specifier for printing second operand.
10551 2013-03-22 Richard Biener <rguenther@suse.de>
10553 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10555 (gather_mem_refs_in_loops): Perform store accumulation here.
10556 (create_vop_ref_mapping_loop): Remove.
10557 (create_vop_ref_mapping): Likewise.
10558 (analyze_memory_references): Initialize refs_stored_in_loop.
10559 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10560 (record_indep_loop): Remove.
10561 (record_dep_loop): New function.
10562 (ref_indep_loop_p_1): Adjust to only walk over references
10563 in the loop, not its subloops.
10564 (ref_indep_loop_p): Rename to ...
10565 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10566 maintaining a more fine-grained cache.
10567 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10568 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10570 2013-03-22 Richard Biener <rguenther@suse.de>
10572 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10573 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10574 aggregate mem_ref_loc.
10575 (free_mem_ref_locs): Inline into ...
10576 (memref_free): ... this and adjust.
10577 (mem_ref_alloc): Adjust.
10578 (mem_ref_locs_alloc): Remove.
10579 (record_mem_ref_loc): Adjust.
10580 (get_all_locs_in_loop): Rewrite into ...
10581 (for_all_locs_in_loop): ... this iterator.
10582 (rewrite_mem_ref_loc): New functor.
10583 (rewrite_mem_refs): Use for_all_locs_in_loop.
10584 (sm_set_flag_if_changed): New functor.
10585 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10586 (ref_always_accessed): New functor.
10587 (ref_always_accessed_p): Use for_all_locs_in_loop.
10589 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10591 * tree-pass.h (PROP_gimple_lvec): New.
10592 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10593 (init_optimization_passes): Move pass_lower_vector.
10594 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10596 (pass_lower_vector): Provide PROP_gimple_lvec.
10597 (pass_lower_vector_ssa): Likewise.
10598 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10600 2013-03-21 Mark Wielaard <mjw@redhat.com>
10602 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10604 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10606 * config/i386/i386.md (*movdi_internal): Disparage slightly
10607 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10608 conversion alternatives.
10610 2013-03-21 Jakub Jelinek <jakub@redhat.com>
10612 PR middle-end/48087
10613 * diagnostic.def (DK_WERROR): New kind.
10614 * diagnostic.h (werrorcount): Define.
10615 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10616 promoted to DK_ERROR, increment DK_WERROR counter instead of
10618 * toplev.c (toplev_main): Call print_ignored_options even if
10619 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10620 even if just werrorcount is non-zero.
10623 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10625 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10626 (string_cst_pool_decl): New function.
10627 (optimize_one_addr_into_implicit_ptr): New function.
10628 (resolve_addr_in_expr): Optimize DWARF location expression
10629 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10630 which doesn't live in memory, but has DW_AT_location or
10631 DW_AT_const_value, or refers to a string literal, into
10632 DW_OP_GNU_implicit_pointer.
10633 (optimize_location_into_implicit_ptr): New function.
10634 (resolve_addr): If removing DW_AT_location of a variable because
10635 it was DW_OP_addr of address of the variable, but the variable doesn't
10636 live in memory, try to emit const value attribute for the initializer.
10638 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10640 * tree.h (VECTOR_TYPE_P): New macro.
10641 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10642 TYPE_MODE): Use it.
10643 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10644 VEC_COND_EXPR cannot be lvalues.
10645 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10647 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10649 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10650 Restrict the transformation to equal modes.
10652 2013-03-21 Richard Biener <rguenther@suse.de>
10654 PR tree-optimization/39326
10655 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10656 (MEM_ANALYZABLE): Adjust.
10657 (record_mem_ref_loc): Move bitmap ops ...
10658 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10659 unanalyzable refs, do not record locations for it.
10660 (analyze_memory_references): Allocate ref zero as shared
10662 (refs_independent_p): Do not test for unanalyzed mems here.
10663 (ref_indep_loop_p_1): Special-case disambiguation against
10664 the unanalyzed ref.
10665 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10667 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10669 * config/arm/arm-protos.h (tune_params): Add
10670 prefer_neon_for_64bits field.
10671 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10672 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10673 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10674 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10675 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10676 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10677 (arm_option_override): Handle -mneon-for-64bits new option.
10678 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10679 (prefer_neon_for_64bits): Declare new variable.
10680 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10681 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10682 (arch_enabled): Handle new arch types. Remove support for onlya8
10684 (one_cmpldi2): Use new arch names.
10685 (zero_extend<mode>di2, extend<mode>di2): Ditto.
10686 * config/arm/arm.opt (mneon-for-64bits): Add option.
10687 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10688 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10689 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10691 * doc/invoke.texi (-mneon-for-64bits): Document.
10693 2013-03-21 Richard Biener <rguenther@suse.de>
10695 PR tree-optimization/39326
10696 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10697 (sort_bbs_in_loop_postorder_cmp): New function.
10698 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10700 2013-03-21 Richard Biener <rguenther@suse.de>
10702 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10703 (vect_insert_into_interleaving_chain): Likewise.
10704 (vect_drs_dependent_in_basic_block): Inline ...
10705 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10707 (vect_analyze_data_ref_dependence): ... here. Simplify.
10708 (vect_check_interleaving): Simplify.
10709 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10710 (vect_slp_analyze_data_ref_dependences): ... this new function.
10711 (dr_group_sort_cmp): New function.
10712 (vect_analyze_data_ref_accesses): Compute data-reference groups
10713 here instead of in vect_analyze_data_ref_dependence. Use
10714 a more efficient algorithm.
10715 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10716 vect_slp_analyze_data_ref_dependences. Call
10717 vect_analyze_data_ref_accesses earlier.
10718 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10719 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10720 (vect_slp_analyze_data_ref_dependences): New prototype.
10722 2013-03-21 Richard Biener <rguenther@suse.de>
10724 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10725 ref is stored in the loop.
10726 (find_refs_for_sm): Walk only over all stores.
10727 (store_motion_loop): Allocate from lim_bitmap_obstack.
10728 (store_motion): Likewise.
10730 2013-03-21 Richard Biener <rguenther@suse.de>
10732 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10733 Update virtual SSA form.
10735 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10737 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10738 * configure: Regenerate.
10739 * config.in: Regenerate.
10740 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10741 if !HAVE_LD_EH_FRAME_CIEV3.
10743 2013-03-21 Richard Biener <rguenther@suse.de>
10745 * tree-cfg.c (verify_expr_no_block): New function.
10746 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10747 nor DECL_VALUE_EXPR have locations with associated blocks.
10748 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10749 (clear_unused_block_pointer): Remove code dealing with
10750 blocks in DECL_DEBUG_EXPR locations.
10752 2013-03-21 Richard Biener <rguenther@suse.de>
10754 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10755 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10756 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10757 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10758 instead of DECL_DEBUG_EXPR_IS_FROM.
10759 * gimplify.c (gimplify_modify_expr): Likewise.
10760 * tree-cfg.c (verify_expr_location_1): Likewise.
10761 * tree-complex.c (create_one_component_var): Likewise.
10762 * tree-sra.c (create_access_replacement): Likewise.
10763 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10764 (clear_unused_block_pointer): Likewise.
10765 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10766 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10767 * var-tracking.c (var_debug_decl): Likewise.
10768 (track_expr_p): Likewise.
10769 * tree-inline.c (add_local_variables): Likewise. Set
10770 DECL_HAS_DEBUG_EXPR_P after copying it.
10771 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10772 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10774 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10777 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10778 * configure: Regenerate.
10779 * config.in: Regenerate.
10780 * config/i386/i386.md (*movdf_internal): Use
10781 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10782 movd instead of movq mnemonic for interunit moves.
10783 (*movdi_internal): Ditto.
10785 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10787 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10788 (abd<mode>_3): New pattern.
10789 (aba<mode>_3): New pattern.
10790 (fabd<mode>_3): New pattern.
10792 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10794 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10795 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10796 occurrence of REGISTER_PREFIX as its empty string.
10798 2013-03-20 Jeff Law <law@redhat.com>
10800 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10801 addititional equivalences for equality comparisons between an SSA_NAME
10802 and a constant where the SSA_NAME was set from a widening conversion.
10804 2013-03-20 Walter Lee <walt@tilera.com>
10806 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10808 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10810 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10811 depending on type attribute.
10812 (*movti_internal): Ditto.
10813 (*movtf_internal): Ditto.
10814 (*movxf_internal): Ditto.
10815 (*movdf_internal): Ditto.
10816 (*movsf_internal): Ditto.
10818 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10820 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10821 maybe_vex for sselog1 and ssemov types.
10822 (*movdi_internal): Reorder operand constraints.
10823 (*movsi_internal): Ditto. Set prefix attribute to
10824 maybe_vex for sselog1 and ssemov types.
10825 (*movtf_internal): Set prefix attribute to maybe_vex
10826 for sselog1 and ssemov types.
10827 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10828 DImode ssemov types. Reorder operand constraints.
10829 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10830 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10831 attribute for SImode ssemov types. Reorder operand constraints.
10833 2013-03-20 Martin Jambor <mjambor@suse.cz>
10835 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10836 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10838 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10840 * config/rs6000/predicates.md (indexed_address, update_address_mem
10841 update_indexed_address_mem): New predicates.
10842 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10843 attribute for load/store instructions.
10844 * config/rs6000/dfp.md (movsd_store): Likewise.
10845 (movsd_load): Likewise.
10846 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10847 (unnamed HI->DI extend define_insn): Likewise.
10848 (unnamed SI->DI extend define_insn): Likewise.
10849 (unnamed QI->SI extend define_insn): Likewise.
10850 (unnamed QI->HI extend define_insn): Likewise.
10851 (unnamed HI->SI extend define_insn): Likewise.
10852 (unnamed HI->SI extend define_insn): Likewise.
10853 (extendsfdf2_fpr): Likewise.
10854 (movsi_internal1): Likewise.
10855 (movsi_internal1_single): Likewise.
10856 (movhi_internal): Likewise.
10857 (movqi_internal): Likewise.
10858 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10859 attribute for load/store instructions.
10860 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10862 (mov<mode>_softfloat): Likewise.
10863 (mov<mode>_hardfloat32): Likewise.
10864 (mov<mode>_hardfloat64): Likewise.
10865 (mov<mode>_softfloat64): Likewise.
10866 (movdi_internal32): Likewise.
10867 (movdi_internal64): Likewise.
10868 (probe_stack_<mode>): Likewise.
10870 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10872 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10873 floating point, and decimal floating point to reload iterator.
10875 * config/rs6000/constraints.md (wl constraint): New constraints to
10876 return FLOAT_REGS if certain options are used to reduce the number
10877 of separate patterns that exist in the file.
10878 (wx constraint): Likewise.
10879 (wz constraint): Likewise.
10881 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10882 -mdebug=reg, print wg, wl, wx, and wz constraints.
10883 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10884 Initialize the reload functions for 64-bit binary/decimal floating
10886 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10887 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10888 create the buffer on the stack to overcome not having a 32-bit
10890 (rs6000_emit_move): Likewise.
10891 (rs6000_secondary_memory_needed_rtx): Likewise.
10892 (rs6000_alloc_sdmode_stack_slot): Likewise.
10893 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10894 via xxlxor, just like DFmode 0.0.
10896 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10897 define as 1 if we are running on a power7 or newer.
10898 (enum r6000_reg_class_enum): Add new constraints.
10900 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10901 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10902 with other moves by using conditional constraits (wg). Use LFIWZX
10903 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
10904 (movsd splitter): Likewise.
10905 (movsd_hardfloat): Likewise.
10906 (movsd_softfloat): Likewise.
10908 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10909 binary and decimal floating point moves.
10910 (fmove_ok): New attributes to combine binary and decimal floating
10911 point moves, and to combine power6x (mfpgpr) moves along normal
10913 (real_value_to_target): Likewise.
10914 (f32_lr): Likewise.
10915 (f32_lm): Likewise.
10916 (f32_li): Likewise.
10917 (f32_sr): Likewise.
10918 (f32_sm): Likewise.
10919 (f32_si): Likewise.
10920 (movsf): Combine binary and decimal floating point moves. Combine
10921 power6x (mfpgpr) moves with other moves by using conditional
10922 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
10923 (mov<mode> for SFmode/SDmode); Likewise.
10924 (SFmode/SDmode splitters): Likewise.
10925 (movsf_hardfloat): Likewise.
10926 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10927 (movsf_softfloat): Likewise.
10928 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10930 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10931 wx and wz constraints.
10933 * config/rs6000/constraints.md (wg constraint): New constraint to
10934 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10936 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10939 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10940 -mdebug=reg, print wg, wl, wx, and wz constraints.
10941 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10942 Initialize the reload functions for 64-bit binary/decimal floating
10944 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10945 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10946 create the buffer on the stack to overcome not having a 32-bit
10948 (rs6000_emit_move): Likewise.
10949 (rs6000_secondary_memory_needed_rtx): Likewise.
10950 (rs6000_alloc_sdmode_stack_slot): Likewise.
10951 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10952 via xxlxor, just like DFmode 0.0.
10954 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10955 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10956 with other moves by using conditional constraits (wg). Use LFIWZX
10957 and STFIWX for loading SDmode on power7.
10958 (movdd splitters): Likewise.
10959 (movdd_hardfloat32): Likewise.
10960 (movdd_softfloat32): Likewise.
10961 (movdd_hardfloat64_mfpgpr): Likewise.
10962 (movdd_hardfloat64): Likewise.
10963 (movdd_softfloat64): Likewise.
10965 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10966 64-bit binary and decimal floating point moves.
10967 (FMOVE64X): Likewise.
10968 (movdf): Combine 64-bit binary and decimal floating point moves.
10969 Combine power6x (mfpgpr) moves with other moves by using
10970 conditional constraits (wg).
10971 (mov<mode> for DFmode/DDmode): Likewise.
10972 (DFmode/DDmode splitters): Likewise.
10973 (movdf_hardfloat32): Likewise.
10974 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10975 (movdf_softfloat32): Likewise.
10976 (movdf_hardfloat64_mfpgpr): Likewise.
10977 (movdf_hardfloat64): Likewise.
10978 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10979 (movdf_softfloat64): Likewise.
10980 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10981 (reload_<mode>_load): Move to later in the file so they aren't in
10982 the middle of the floating point move insns.
10983 (reload_<mode>_store): Likewise.
10985 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10988 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10989 constraint if -mdebug=reg.
10990 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10991 Enable using dd reload support if needed.
10993 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10994 binary and decimal floating point moves in rs6000.md.
10995 (movtd_internal): Likewise.
10997 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10998 decimal floating point moves.
11000 (movtf_internal): Likewise.
11001 (mov<mode>_internal, TDmode/TFmode): Likewise.
11002 (movtf_softfloat): Likewise.
11003 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
11005 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
11006 movdi_internal64, using wg constraint for move direct operations.
11007 (movdi_internal64): Likewise.
11009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
11010 MODES_TIEABLE_P for selected modes. Print the numerical value of
11011 the various virtual registers. Use GPR/FPR first/last values,
11012 instead of hard coding the register numbers. Print which modes
11013 have reload functions registered.
11014 (rs6000_option_override_internal): If -mdebug=reg, trace the options
11015 settings before/after setting cpu, target and subtarget settings.
11016 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
11017 and for secondary reload failures in rs6000_secondary_reload_inner.
11018 (rs6000_secondary_reload_fail): Likewise.
11019 (rs6000_secondary_reload_inner): Likewise.
11021 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
11022 macros for first/last GPR and FPR registers.
11023 (LAST_GPR_REGNO): Likewise.
11024 (FIRST_FPR_REGNO): Likewise.
11025 (LAST_FPR_REGNO): Likewise.
11027 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
11028 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
11029 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
11030 (vcond<mode><mode>): Likewise.
11031 (vcondu<mode><mode>): Likewise.
11032 (vector_gtu<mode>): Likewise.
11033 (vector_gte<mode>): Likewise.
11034 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
11035 to prevent the compiler from converting DImode operations to TImode.
11036 (ior<mode>3): Likewise.
11037 (and<mode>3): Likewise.
11038 (one_cmpl<mode>2): Likewise.
11039 (nor<mode>3): Likewise.
11040 (andc<mode>3): Likewise.
11042 * config/rs6000/constraints.md (wt constraint): New constraint
11043 that returns VSX_REGS if TImode is allowed in VSX registers.
11045 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
11046 constant under VSX.
11048 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
11049 similar to TImode, but it is restricted to being in the GPRs.
11051 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
11052 TImode to occupy a single VSX register.
11054 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
11055 -mvsx-timode for power7/power8.
11056 (power7 cpu): Likewise.
11057 (power8 cpu): Likewise.
11059 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
11060 sure that TFmode/TDmode take up two registers if they are ever
11061 allowed in the upper VSX registers.
11062 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
11064 (rs6000_init_hard_regno_mode_ok): Likewise.
11065 (rs6000_debug_reg_global): Add debugging for PTImode and wt
11066 constraint. Print if LRA is turned on.
11067 (rs6000_option_override_internal): Give an error if -mvsx-timode
11068 and VSX is not enabled.
11069 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
11070 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
11071 to reg+offset addressing. Use PTImode when checking offset
11072 addresses for validity.
11073 (reg_offset_addressing_ok_p): Likewise.
11074 (rs6000_legitimate_offset_address_p): Likewise.
11075 (rs6000_legitimize_address): Likewise.
11076 (rs6000_legitimize_reload_address): Likewise.
11077 (rs6000_legitimate_address_p): Likewise.
11078 (rs6000_eliminate_indexed_memrefs): Likewise.
11079 (rs6000_emit_move): Likewise.
11080 (rs6000_secondary_reload): Likewise.
11081 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
11082 reloads to fpr registers to continue to use reg+offset addressing,
11083 but 64-bit reloads to altivec registers need reg+reg addressing.
11084 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
11085 it. Treat LO_SUM like a PLUS operation.
11086 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
11087 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
11088 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
11089 registers to share a register with a smaller sized type, since VSX
11090 puts scalars in the upper 64-bits.
11091 (print_operand): Add support for PTImode.
11092 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
11093 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
11094 registers, but don't have arithmetic support.
11095 (rs6000_memory_move_cost): Add test for VSX.
11096 (rs6000_opt_masks): Add -mvsx-timode.
11098 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
11101 (VSr): Use wt constraint for TImode.
11102 (VSv): Drop TImode support.
11103 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
11104 (vsx_movti_64bit): Likewise.
11105 (vsx_movti_32bit): Likewise.
11106 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
11107 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
11108 one '?' on the appropriate output constraint. Do not allow TImode
11109 logical operations on 32-bit systems.
11110 (vsx_ior<mode>3): Likewise.
11111 (vsx_xor<mode>3): Likewise.
11112 (vsx_one_cmpl<mode>2): Likewise.
11113 (vsx_nor<mode>3): Likewise.
11114 (vsx_andc<mode>3): Likewise.
11115 (vsx_concat_<mode>): Likewise.
11116 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
11118 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
11119 OPTION_MASK_VSX_TIMODE.
11120 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
11121 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
11123 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
11124 (TI2 iterator): New iterator for TImode, PTImode.
11125 (wd mode attribute): Add values for vector types.
11126 (movti_string): Replace TI move operations with operations for TImode
11127 and PTImode. Add support for TImode being allowed in VSX registers.
11128 (mov<mode>_string, TImode/PTImode): Likewise.
11129 (movti_ppc64): Likewise.
11130 (mov<mode>_ppc64, TImode/PTImode): Likewise.
11131 (TI mode splitters): Likewise.
11133 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
11136 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
11138 PR tree-optimization/56355
11139 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
11140 Also handle integers with undefined overflow.
11142 2013-03-20 Catherine Moore <clm@codesourcery.com>
11143 Maciej W. Rozycki <macro@codesourcery.com>
11144 Tom de Vries <tom@codesourcery.com>
11145 Nathan Sidwell <nathan@codesourcery.com>
11146 Iain Sandoe <iain@codesourcery.com>
11147 Nathan Froyd <froydnj@codesourcery.com>
11148 Chao-ying Fu <fu@mips.com>
11150 * doc/extend.texi: (micromips, nomicromips, nocompression):
11151 Document new function attributes.
11152 * doc/invoke.texi (minterlink-compressed, mmicromips,
11153 m14k, m14ke, m14kec): Document new options.
11154 (minterlink-mips16): Update documentation.
11155 * doc/md.texi (ZC, ZD): Document new constraints.
11156 * configure.ac (gcc_cv_as_micromips): Check if linker
11157 supports the .set micromips directive.
11158 * configure: Regenerate.
11159 * config.in: Regenerate.
11160 * config/mips/mips-tables.opt: Regenerate.
11161 * config/mips/micromips.md: New file.
11162 * constraints.md (ZC, ZD): New constraints.
11163 * config/mips/predicates.md (movep_src_register): New predicate.
11164 (movep_src_operand): New predicate.
11165 (non_volatile_mem_operand): New predicate.
11166 * config/mips/mips.md (multimem): New type.
11167 (length): Differentiate between 17-bit and 18-bit branch offsets.
11168 (MOVEP1, MOVEP2): New mode iterator.
11169 (mov_<load>l): Use ZC constraint.
11170 (mov_<load>r): Likewise.
11171 (mov_<store>l): Likewise.
11172 (mov_<store>r): Likewise.
11173 (*branch_equality<mode>_inverted): Add microMIPS support.
11174 (*branch_equality<mode>): Likewise.
11175 (*jump_absolute): Likewise.
11176 (indirect_jump_<mode>): Likewise.
11177 (tablejump_<mode>): Likewise.
11178 (<optab>_internal): Likewise.
11179 (sibcall_internal): Likewise.
11180 (sibcall_value_internal): Likewise.
11181 (prefetch): Use constraint ZD.
11182 * config/mips/mips.opt (minterlink-compressed): New option.
11183 (minterlink-mips16): Now an alias for minterlink-compressed.
11184 (mmicromips): New option.
11185 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11186 (compare_and_swap_12): Likewise.
11187 (sync_add<mode>): Likewise.
11188 (sync_<optab>_12): Likewise.
11189 (sync_old_<optab>_12): Likewise.
11190 (sync_new_<optab>_12): Likewise.
11191 (sync_nand_12): Likewise.
11192 (sync_old_nand_12): Likewise.
11193 (sync_new_nand_12): Likewise.
11194 (sync_sub<mode>): Likewise.
11195 (sync_old_add<mode>): Likewise.
11196 (sync_old_sub<mode>): Likewise.
11197 (sync_new_add<mode>): Likewise.
11198 (sync_new_sub<mode>): Likewise.
11199 (sync_<optab><mode>): Likewise.
11200 (sync_old_<optab><mode>): Likewise.
11201 (sync_new_<optab><mode>): Likewise.
11202 (sync_nand<mode>): Likewise.
11203 (sync_old_nand<mode>): Likewise.
11204 (sync_new_nand<mode>): Likewise.
11205 (sync_lock_test_and_set<mode>): Likewise.
11206 (test_and_set_12): Likewise.
11207 (atomic_compare_and_swap<mode>): Likewise.
11208 (atomic_exchange<mode>_llsc): Likewise.
11209 (atomic_fetch_add<mode>_llsc): Likewise.
11210 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11211 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11212 (umips_save_restore_pattern_p): Likewise.
11213 (umips_load_store_pair_p): Likewise.
11214 (umips_output_load_store_pair): Likewise.
11215 (umips_movep_target_p): Likewise.
11216 (umips_12bit_offset_address_p): Likewise.
11217 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11218 (mips_base_mips16): Rename this...
11219 (mips_base_compression_flags): ...to this. Update all uses.
11220 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11221 (mips_mips16_decl_p): Delete.
11222 (mips_nomips16_decl_p): Delete.
11223 (mips_get_compress_on_flags): New function.
11224 (mips_get_compress_off_flags): New function.
11225 (mips_get_compress_mode): New function.
11226 (mips_get_compress_on_name): New function.
11227 (mips_get_compress_off_name): New function.
11228 (mips_insert_attributes): Support multiple compression types.
11229 (mips_merge_decl_attributes): Likewise.
11230 (umips_12bit_offset_address_p): New function.
11231 (mips_start_function_definition): Emit .set micromips directive.
11232 (mips_call_may_need_jalx_p): New function.
11233 (mips_function_ok_for_sibcall): Add microMIPS support.
11234 (mips_print_operand_punctuation): Support short delay slots and
11236 (umips_swm_mask, umips_swm_encoding): New.
11237 (umips_build_save_restore): New function.
11238 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11239 (was_mips16_p): Remove.
11240 (old_compression_mode): New.
11241 (mips_set_compression_mode): New function.
11242 (mips_set_current_function): Add microMIPS support.
11243 (mips_option_override): Likewise.
11244 (umips_save_restore_pattern_p): New function.
11245 (umips_output_save_restore): New function.
11246 (umips_load_store_pair_p_1): New function.
11247 (umips_load_store_pair_p): New function.
11248 (umips_output_load_store_pair_1): New function.
11249 (umips_output_load_store_pair): New function.
11250 (umips_movep_target_p) New function.
11251 (mips_prepare_pch_save): Add microMIPS support.
11252 * config/mips/mips.h (TARGET_COMPRESSION): New.
11253 (TARGET_CPU_CPP_BUILTINS): Update macro
11254 to use new compression flags and to support microMIPS.
11255 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11256 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11257 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11258 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11259 (ASM_SPEC): Support mmicromips and mno-micromips.
11260 (M16STORE_REG_P): New macro.
11261 (MIPS_CALL): Support TARGET_MICROMIPS.
11262 (MICROMIPS_J): New macro.
11263 (mips_base_mips16): Rename this...
11264 (mips_base_compression_flags): ...to this.
11265 (UMIPS_12BIT_OFFSET_P): New macro.
11266 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11267 (MULTILIB_DIRNAMES): Likewise.
11268 2013-03-20 Richard Biener <rguenther@suse.de>
11270 PR tree-optimization/56661
11271 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11272 the result does not have to be distinct.
11274 2013-03-20 Richard Biener <rguenther@suse.de>
11276 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11279 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11280 Steven Bosscher <steven@gcc.gnu.org>
11282 PR rtl-optimization/56605
11283 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11285 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
11288 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11289 that require movd instead of movq.
11291 2013-03-20 Richard Biener <rguenther@suse.de>
11293 * tree-ssa-structalias.c (struct variable_info): Add pointer
11294 to the first field of an aggregate with sub-vars. Make
11295 this and the pointer to the next subfield its ID.
11296 (vi_next): New function.
11297 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11298 storedanything_id, integer_id): Increment by one.
11299 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11300 get_call_clobber_vi): Adjust.
11301 (solution_set_expand): Simplify and speedup.
11302 (solution_set_add): Inline into ...
11303 (set_union_with_increment): ... this. Adjust accordingly.
11304 (do_sd_constraint): Likewise.
11305 (do_ds_constraint): Likewise.
11306 (do_complex_constraint): Simplify.
11307 (build_pred_graph): Adjust.
11308 (solve_graph): Likewise. Simplify and speedup.
11309 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11310 get_constraint_for_component_ref, get_constraint_for_1,
11311 first_vi_for_offset, first_or_preceding_vi_for_offset,
11312 create_function_info_for, create_variable_info_for_1,
11313 create_variable_info_for, intra_create_variable_infos): Adjust.
11314 (init_base_vars): Push NULL for ID zero.
11315 (compute_points_to_sets): Adjust.
11317 2013-03-20 Richard Biener <rguenther@suse.de>
11319 * cfgloop.c (verify_loop_structure): Streamline and avoid
11320 ICEing on corrupt loop tree.
11321 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11324 2013-03-20 Richard Biener <rguenther@suse.de>
11326 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11327 check whether an SSA update is needed.
11329 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11331 * config/mips/constraints.md (T): Rename to...
11335 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11336 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11338 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11340 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11341 (*subsi3_carryin_uxtw): Likewise.
11343 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11345 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11346 (*rorsi3_insn_uxtw): Likewise.
11348 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11350 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11351 (*extrsi5_insn_uxtw): Likewise.
11353 2013-03-19 Richard Biener <rguenther@suse.de>
11355 PR tree-optimization/56273
11356 * passes.c (init_optimization_passes): Move second VRP after DOM.
11358 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
11360 * config/i386/i386.md (*movti_internal): Merge from
11361 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11362 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11363 nox64 isa attributes.
11365 2013-03-18 Richard Biener <rguenther@suse.de>
11367 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11369 (merge_node_constraints): Likewise.
11370 (build_succ_graph): Likewise.
11371 (valid_graph_edge): Inline into single caller.
11372 (unify_nodes): Likewise. Use bitmap_set_bit return value
11374 (scc_visit): Fix formatting and variable use.
11375 (do_sd_constraint): Use gcc_checking_assert.
11376 (do_ds_constraint): Likewise.
11377 (do_complex_constraint): Likewise.
11378 (condense_visit): Likewise. Cleanup.
11379 (dump_pred_graph): New function.
11380 (perform_var_substitution): Dump the pred-graph before
11381 variable substitution.
11382 (find_equivalent_node): Use gcc_checking_assert.
11383 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11385 2013-03-18 Richard Biener <rguenther@suse.de>
11387 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11388 Remove cond_expr_stmt_list argument and do not gimplify the
11390 (vect_loop_versioning): Adjust.
11391 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11392 Cleanup to use less temporaries.
11393 (vect_create_data_ref_ptr): Cleanup.
11395 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11397 PR tree-optimization/56635
11398 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11399 require types_compatible_p types.
11401 2013-03-18 Nick Clifton <nickc@redhat.com>
11403 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11404 spurious backslash.
11406 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11407 Add missing line to comment describing function.
11409 2013-03-18 Richard Biener <rguenther@suse.de>
11411 PR tree-optimization/56210
11412 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11413 Handle string / character search functions.
11414 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11416 2013-03-18 Richard Biener <rguenther@suse.de>
11418 PR middle-end/56483
11419 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11420 and implement properly.
11421 * gimple.h (gimple_cond_single_var_p): Remove.
11423 2013-03-18 Richard Biener <rguenther@suse.de>
11425 * tree-data-ref.h (find_data_references_in_loop): Declare.
11426 * tree-data-ref.c (get_references_in_stmt): Use a stack
11427 vector pre-allocated in the callers.
11428 (find_data_references_in_stmt): Adjust.
11429 (graphite_find_data_references_in_stmt): Likewise.
11430 (create_rdg_vertices): Likewise.
11431 (find_data_references_in_loop): Export.
11432 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11433 Compute dependences here...
11434 (vect_analyze_data_refs): ...not here. When we encounter
11435 a non-vectorizable data reference in basic-block vectorization
11436 truncate the data reference vector. Do not bother to
11437 fixup data-dependence information for gather loads.
11438 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11439 of data references, as reported.
11441 2013-03-18 Richard Biener <rguenther@suse.de>
11443 PR tree-optimization/3713
11444 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11445 has_constants and expr.
11446 (stmt_has_constants): Properly valueize SSA names when deciding
11447 whether the stmt has constants.
11449 2013-03-18 Richard Biener <rguenther@suse.de>
11451 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11452 whole function when there is nothing to do.
11453 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11454 * tree-vectorizer.c (vectorize_loops): Update virtual and
11455 loop-closed SSA once.
11456 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11458 2013-03-18 Richard Biener <rguenther@suse.de>
11460 PR middle-end/56113
11461 * domwalk.c (bb_postorder): New global static.
11462 (cmp_bb_postorder): New function.
11463 (walk_dominator_tree): Replace scheme imposing an order for
11464 visiting dominator sons by one sorting them at the time they
11465 are pushed on the stack.
11467 2013-03-18 Richard Biener <rguenther@suse.de>
11469 PR tree-optimization/39326
11470 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11471 (struct mem_ref): Replace mem member with ao_ref typed member.
11472 (MEM_ANALYZABLE): Adjust.
11473 (memref_eq): Likewise.
11474 (mem_ref_alloc): Likewise.
11475 (gather_mem_refs_stmt): Likewise.
11476 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11477 (execute_sm_if_changed_flag_set): Adjust.
11478 (execute_sm): Likewise.
11479 (ref_always_accessed_p): Likewise.
11480 (refs_independent_p): Likewise.
11481 (can_sm_ref_p): Likewise.
11483 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11486 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11487 return 1 even for !unsignedp.
11489 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11491 * config/i386/i386.md (isa): Add x64 and nox64.
11492 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11493 (*pushtf): Enable *roF alternative for x64 isa only.
11494 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11495 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11496 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11497 (*movtf_internal): Merge from *movtf_internal_rex64 and
11498 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11499 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11500 nox64 isa attributes.
11501 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11502 nox64 isa attributes.
11503 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11505 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11507 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11509 2013-03-17 Jakub Jelinek <jakub@redhat.com>
11512 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11513 class names. Remove trailing comma after "ALL_REGS".
11515 2013-03-16 Jan Hubicka <jh@suse.cz>
11517 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11518 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11519 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11520 of cgraph_get_create_node.
11521 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11523 2013-03-16 Jason Merrill <jason@redhat.com>
11526 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11527 with DW_AT_default_value.
11529 2013-03-16 Jakub Jelinek <jakub@redhat.com>
11531 * BASE-VER: Set to 4.9.0.
11533 2013-03-14 Andi Kleen <ak@linux.intel.com>
11536 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11537 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11538 Document _x* TSX intrinsics.
11540 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11541 David Holsgrove <david.holsgrove@xilinx.com>
11543 * configure.ac: Add MicroBlaze TLS support detection.
11544 * configure: Regenerate.
11545 * config/microblaze/microblaze-protos.h
11546 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11547 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11548 * config/microblaze/microblaze.c (microblaze_address_type): Add
11549 ADDRESS_TLS and tls_reloc address types.
11550 (microblaze_address_info): Add tls_reloc.
11551 (TARGET_HAVE_TLS): Define.
11552 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11553 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11554 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11555 load_tls_operand, microblaze_call_tls_get_addr,
11556 microblaze_legitimize_tls_address): New functions.
11557 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11558 (get_base_reg): Use microblaze_tls_symbol_p.
11559 (microblaze_classify_address): Handle TLS.
11560 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11561 label_mentioned_p and microblaze_tls_referenced_p.
11562 (microblaze_legitimize_address): Handle TLS.
11563 (microblaze_address_insns): Handle ADDRESS_TLS.
11564 (pic_address_needs_scratch): Handle TLS.
11565 (print_operand_address): Handle TLS.
11566 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11567 (microblaze_expand_move): Handle TLS.
11568 (microblaze_legitimate_constant_p): Check
11569 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11570 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11571 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11572 (PIC_OFFSET_TABLE_REGNUM): Set.
11573 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11574 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11575 (addsi3, movsi_internal2, movdf_internal): Update constraints
11576 * config/microblaze/predicates.md (arith_plus_operand): Define
11577 (move_operand): Redefine as move_src_operand,
11578 check microblaze_tls_referenced_p.
11580 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11582 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11583 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11585 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11587 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11590 2013-03-14 Jakub Jelinek <jakub@redhat.com>
11592 PR tree-optimization/53265
11593 * common.opt (Waggressive-loop-optimizations): New option.
11594 * tree-ssa-loop-niter.c: Include tree-pass.h.
11595 (do_warn_aggressive_loop_optimizations): New function.
11596 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11597 if number_of_latch_executions returned constant.
11598 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11599 early. If number_of_latch_executions returned constant, set
11600 nb_iterations_upper_bound back to it.
11601 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11603 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11604 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11606 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11607 (MULTILIB_OSDIRNAMES): Set.
11608 * genmultilib: If defaultosdirname doesn't start with :: , set
11609 defaultosdirname2 instead, clear it and emit two . multilib_raw
11610 entries instead of just one.
11612 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11614 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11615 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11616 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11617 (SUBTARGET_OVERRIDE_OPTIONS): New.
11619 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11622 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11623 (musermode): Convert to Var(TARGET_USERMODE).
11624 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11625 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11626 * config/sh/sh.c (sh_option_override): Use
11627 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11628 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11630 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11632 (udivsi3_i4_single, divsi3_i4_single): Use
11633 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11635 2013-03-13 Dave Korn <dave.korn.cygwin@....>
11637 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11640 2013-03-13 Richard Biener <rguenther@suse.de>
11642 PR tree-optimization/56608
11643 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11644 calls when vectorizing basic-blocks.
11646 2013-03-13 Jakub Jelinek <jakub@redhat.com>
11649 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11652 2013-03-12 Jakub Jelinek <jakub@redhat.com>
11654 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11656 2013-03-11 Jan Hubicka <jh@suse.cz>
11659 * lto-streamer-out.c (output_symbol_p): Skip references from
11660 constructors of external variables.
11662 2013-03-11 Jan Hubicka <jh@suse.cz>
11664 PR middle-end/56571
11665 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11667 * emit-rtl.c (verify_rtx_sharing): Likewise.
11668 (copy_insn_1): Likewise.
11669 * rtl.c (copy_rtx): Likewise.
11671 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
11674 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11675 output_operand_lossage message.
11677 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
11680 * arm.c (shift_op): Validate RTL pattern on the fly.
11681 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11684 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11687 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11688 new call patterns that clobber %fr12.
11689 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11690 split and postreload patterns.
11691 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11692 registers %fr12 and %fr12R as call used.
11694 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11696 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11697 (canon_address, record_store, replace_read, check_mem_read_rtx,
11698 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11699 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11700 rest_of_handle_dse): Likewise.
11702 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11704 PR middle-end/56524
11705 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11707 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11708 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11709 (save_optabs_if_changed): Replace with...
11710 (init_tree_optimization_optabs): ...this.
11711 * optabs.c (save_optabs_if_changed): Rename to...
11712 (init_tree_optimization_optabs): ...this. Take the optimization node
11713 as argument. Do nothing if the base optabs are already correct.
11714 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11715 to recompute optabs.
11716 * function.h (function): Remove optabs field.
11717 * function.c (invoke_set_current_function_hook): Call
11718 init_tree_optimization_optabs. Use the result to initialize
11721 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
11723 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11724 if GTMA_HAS_NO_INSTRUMENTATION.
11725 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11726 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11727 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11728 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11729 GTMA_HAS_NO_INSTRUMENTATION.
11731 2013-03-08 Jakub Jelinek <jakub@redhat.com>
11733 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11736 2013-03-08 Marek Polacek <polacek@redhat.com>
11737 Jakub Jelinek <jakub@redhat.com>
11739 PR tree-optimization/56478
11740 * predict.c (is_comparison_with_loop_invariant_p): Change the
11741 type of loop_step to tree.
11742 (predict_loops): Adjust.
11743 (predict_iv_comparison): Perform the computations on double_ints.
11745 2013-03-08 Richard Biener <rguenther@suse.de>
11747 PR tree-optimization/56570
11748 * tree-cfg.c (verify_expr_location_1): Verify locations for
11750 * tree-sra.c (create_access_replacement): Strip locations
11751 from DECL_DEBUG_EXPRs.
11753 2013-03-08 Richard Biener <rguenther@suse.de>
11755 * tree-inline.c (expand_call_inline): Do not associate
11756 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11757 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11759 2013-03-08 Richard Biener <rguenther@suse.de>
11761 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11762 or block changes with -Og. Fix for location / block encoding
11763 changes and PHI arguments with locations.
11765 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11767 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11769 (struct output_info): Likewise.
11770 (register_overhead): Remove bad gcc_assert.
11771 (bitmap_find_bit): If there is only a single bitmap element, do not
11772 count a miss as a search.
11773 (print_statistics): Update for counter type changes.
11774 (dump_bitmap_statistics): Likewise. Print headers such that they
11775 are properly lined up with the printed counters.
11777 2013-03-07 Jakub Jelinek <jakub@redhat.com>
11779 PR tree-optimization/56559
11780 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11781 check that it has only a single use.
11783 2013-03-07 Richard Biener <rguenther@suse.de>
11785 * doc/invoke.texi (fwhole-program): Discourage use in combination
11788 2013-03-06 Jakub Jelinek <jakub@redhat.com>
11790 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11792 PR tree-optimization/56539
11793 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11794 instead of GSI_CONTINUE_LINKING as last argument to
11795 force_gimple_operand_gsi. Adjust function comment.
11797 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11800 PR middle-end/56548
11801 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11802 promoted mode, convert the result back to the original mode.
11804 2013-03-06 Richard Biener <rguenther@suse.de>
11806 PR middle-end/56294
11807 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11808 (insert_updated_phi_nodes_compare_uids): New function.
11809 (update_ssa): Sort symbols_to_rename after UID before
11810 traversing it to insert PHI nodes.
11812 2013-03-06 Richard Biener <rguenther@suse.de>
11814 PR middle-end/50494
11815 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11816 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11819 2013-02-13 Richard Biener <rguenther@suse.de>
11822 * varasm.c (output_constant_def_1): Get the decl representing
11823 the constant as argument.
11824 (output_constant_def): Wrap output_constant_def_1.
11825 (make_decl_rtl): Use output_constant_def_1 with the decl
11826 representing the constant.
11827 (build_constant_desc): Optionally re-use a decl already
11828 representing the constant.
11829 (tree_output_constant_def): Adjust.
11831 2013-03-06 Joey Ye <joey.ye@arm.com>
11834 * gcc.c (convert_white_space): New function.
11835 (main): Handles white space in function name.
11837 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11840 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11841 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11842 to SH_DIV_CALL_TABLE for TARGET_SH2.
11843 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11845 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11846 call-table options.
11848 2013-03-05 Sterling Augustine <saugustine@google.com>
11849 Cary Coutant <ccoutant@google.com>
11852 * dwarf2out.c (resolve_addr): Don't call
11853 remove_loc_list_addr_table_entries a second time for the same
11856 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11859 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11860 (avoid_complex_debug_insns): New function.
11861 (expand_debug_locations): Call it.
11863 PR rtl-optimization/56484
11864 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11865 lifetimes of hard registers on small register class machines.
11867 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11869 * config/microblaze/microblaze-protos.h: Rename
11870 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11871 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11873 (microblaze_fast_interrupt_function_p): New function.
11874 (microblaze_is_interrupt_handler): Rename to
11875 microblaze_is_interrupt_variant and add fast_interrupt check.
11876 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11877 (save_restore_insns): Likewise.
11878 (compute_frame_size): Likewise.
11879 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11880 (microblaze_globalize_label): Likewise.
11881 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11882 * config/microblaze/microblaze.md: Use wrapper
11883 microblaze_is_interrupt_variant.
11885 2013-03-05 Kai Tietz <ktietz@redhat.com>
11887 * sdbout.c (sdbout_one_type): Switch to current function's section
11888 supporting cold/hot.
11890 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11892 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11895 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11897 PR middle-end/56461
11898 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11899 if VALGRIND_GET_VBITS is defined, temporarily make object
11900 memory all defined, and restore previous valgrind addressability
11901 and definability afterwards. Free this_object at the end.
11903 PR middle-end/56461
11904 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11905 right before calling lra_create_live_ranges, also call it
11906 when clearing live_p. Only call lra_clear_live_ranges
11907 at the end if live_p.
11909 PR middle-end/56461
11910 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11912 2013-03-05 Richard Biener <rguenther@suse.de>
11914 PR tree-optimization/56521
11915 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11918 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11921 * except.h (remove_unreachable_eh_regions): New prototype.
11922 * except.c (remove_eh_handler_splicer): New function, split out
11923 of remove_eh_handler.
11924 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11925 warning about running it on many EH regions one at a time.
11926 (remove_unreachable_eh_regions_worker): New function, walk the
11927 EH tree in depth-first order and remove non-marked regions.
11928 (remove_unreachable_eh_regions): New function.
11929 * tree-eh.c (mark_reachable_handlers): New function, split out
11930 from remove_unreachable_handlers.
11931 (remove_unreachable_handlers): Use mark_reachable_handlers and
11932 remove_unreachable_eh_regions.
11933 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11934 and remove_unreachable_eh_regions.
11936 2013-03-05 Richard Biener <rguenther@suse.de>
11938 PR middle-end/56525
11939 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11940 not freeing them until the end.
11942 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11944 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11946 2013-03-05 Richard Biener <rguenther@suse.de>
11948 PR tree-optimization/56270
11949 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11950 of loads after scheduling an SLP instance.
11952 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11954 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11956 (check_gcc_parallelize): Run guality.exp as a separate job from
11957 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11958 struct-layout-1.exp with stackalign.exp.
11960 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11962 PR middle-end/56461
11963 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11964 load_index sbitmap even if some bit in it isn't set.
11966 PR middle-end/56461
11967 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11968 (discover_iteration_bound_by_body_walk): Change queues to
11969 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11970 spelling in comment. Call safe_push on queues[bound_index] directly.
11971 Release queues[queue_index] in every iteration unconditionally.
11972 Release bounds vector.
11974 PR middle-end/56461
11975 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11976 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11977 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11980 2013-03-05 Richard Biener <rguenther@suse.de>
11983 * tree-inline.c (remap_blocks_to_null): New function.
11984 (expand_call_inline): When expanding a call stmt without
11985 an associated block inline remap all callee blocks to NULL.
11987 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11989 PR rtl-optimization/56494
11990 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11991 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11992 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11994 PR middle-end/56461
11995 * sel-sched-ir.c (free_sched_pools): Release
11996 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11997 if succs_info_pool.max_top isn't -1.
12000 * opts.c (opts_obstack, opts_concat): Moved to...
12001 * opts-common.c (opts_obstack, opts_concat): ... here.
12003 2013-03-04 Jakub Jelinek <jakub@redhat.com>
12005 PR middle-end/56461
12006 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
12008 2013-03-04 Martin Jambor <mjambor@suse.cz>
12010 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
12011 all appropriate places.
12013 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
12015 PR tree-optimization/56424
12016 * ipa-split.c (split_function): Do not set the RSO flag if result is
12017 not by reference and its type is a register type.
12019 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
12021 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
12022 (microblaze_legitimate_pic_operand): Likewise
12023 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
12024 new function microblaze_legitimate_pic_operand
12025 * config/microblaze/microblaze-protos.h
12026 (microblaze_legitimate_pic_operand): Declare.
12028 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12030 * config/microblaze/predicates.md (call_insn_simple_operand):
12031 New predicate for supported rtx code types.
12032 * config/microblaze/microblaze.md (call_internal1): Use
12033 call_insn_simple_operand predicate.
12035 2013-03-04 Jakub Jelinek <jakub@redhat.com>
12037 PR middle-end/56461
12038 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
12039 partitions.ordered_remove.
12041 PR middle-end/56461
12042 * tree-vect-stmts.c (vectorizable_conversion): Don't call
12043 vec_oprnds0.create (1) for modifier == NONE.
12045 PR middle-end/56461
12046 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
12047 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
12048 vec_oprnds1 right before pushing anything to it for
12051 PR middle-end/56461
12052 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
12053 set nbbs to 0 instead of having separate code path.
12054 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
12055 instead of false as last argument if returning NULL.
12057 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
12059 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
12060 the attribute is now called "target" instead of "option".
12061 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
12062 * doc/tm.texi.in (Target Attributes): Likewise document the correct
12063 attribute/pragma name for TARGET_OPTION_VALID_P and
12064 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
12065 * doc/tm.texi: Regenerated.
12067 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
12069 * config/microblaze/microblaze.c:
12070 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
12071 * config/microblaze/microblaze.h: Add -mxl-reorder to
12073 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
12074 instructions emitted if TARGET_REORDER.
12075 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
12076 or 0 for -m/-mno case, but initialises as 2 to detect default use case
12079 2013-03-01 Xinliang David Li <davidxl@google.com>
12081 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
12084 2013-03-01 Jakub Jelinek <jakub@redhat.com>
12086 PR middle-end/56461
12087 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
12088 vector even when returning true. Fix up function comment formatting.
12090 PR middle-end/56461
12091 * ira-build.c (ira_loop_nodes_count): New variable.
12092 (create_loop_tree_nodes): Initialize it.
12093 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
12095 PR middle-end/56461
12096 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
12097 method on dr_chain and result_chain.
12098 * tree-vect-stmts.c (vectorizable_store): Only call
12099 result_chain.create if j == 0.
12101 PR middle-end/56461
12102 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
12103 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
12104 before overwriting it.
12106 2013-03-01 Tobias Burnus <burnus@net-b.de>
12108 * doc/extended.texi (C Extensions): Change order in @menu
12110 (Other MIPS Built-in Functions): Move last MIPS entry before
12111 "picoChip Built-in Functions".
12112 (SH Built-in Functions): Move after RX Built-in Functions.
12113 * doc/gcc.texi (Introduction): Change order in @menu
12115 * doc/md.texi (Constraints): Ditto.
12116 * gty.texi (Type Information): Ditto.
12117 (User-provided marking routines for template types): Make
12119 * doc/invoke.texi (AArch64 Options): Move before
12120 "Adapteva Epiphany Options".
12122 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
12123 Jakub Jelinek <jakub@redhat.com>
12126 * asan.c (gate_asan): Lookup no_sanitize_address instead of
12127 no_address_safety_analysis attribute.
12128 * doc/extend.texi (no_address_safety_attribute): Rename to
12129 no_sanitize_address attribute, mention no_address_safety_analysis
12130 attribute as deprecated alias.
12132 2013-02-28 Jakub Jelinek <jakub@redhat.com>
12134 PR middle-end/56461
12135 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
12136 type to vec<vec<tree> > *.
12137 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
12138 to be vec<tree> instead of vec<tree> *, set vec_defs
12139 to vNULL and call vec_defs.create (number_of_vects), adjust other
12141 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
12142 vectorizable_condition): Adjust vect_get_slp_defs callers.
12144 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12146 * config/aarch64/aarch64.c
12147 (aarch64_float_const_representable): Remove unused variable.
12149 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12151 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
12153 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12155 * config/aarch64/aarch64-builtins.c
12156 (aarch64_init_simd_builtins): Make static.
12158 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12160 * config/aarch64/aarch64.c
12161 (aarch64_simd_make_constant): Make static.
12163 2013-02-28 Martin Jambor <mjambor@suse.cz>
12165 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
12166 with no initialization to the RHS of debug statements.
12168 2013-02-28 Martin Jambor <mjambor@suse.cz>
12170 PR tree-optimization/56294
12171 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
12173 (get_access_replacement): Do not call create_access_replacement.
12174 Assert a replacement exists.
12175 (get_repl_default_def_ssa_name): Create the replacement declaration
12178 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12180 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
12181 final_end_function.
12183 2013-02-28 Marek Polacek <polacek@redhat.com>
12185 PR rtl-optimization/56466
12186 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
12187 if we're changing a loop.
12188 (peel_loops_completely): Likewise.
12190 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12193 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
12195 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12198 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
12199 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
12200 INTX_FTYPE_FX, FX_FTYPE_INTX.
12201 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
12203 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12205 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12206 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12207 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12208 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12209 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12210 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12211 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12212 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12213 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12214 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12215 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12216 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12217 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12218 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12219 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12220 (avrxmega6): Increase max flash segments from 5 to 6.
12221 * config/avr/t-multilib: Regenerate.
12222 * config/avr/avr-tables.opt: Regenerate.
12223 * doc/avr-mmcu.texi: Regenerate.
12225 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12227 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12228 (avr_device_to_arch): Rename to avr_device_to_ld.
12229 (avr_device_to_as): New prototype.
12230 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12231 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12232 * config/avr/driver-avr.c (avr_device_to_as): New.
12233 (avr_device_to_arch): Rename to avr_device_to_ld.
12235 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12237 PR middle-end/56461
12238 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12239 method on dr_chain and result_chain.
12241 PR middle-end/56461
12242 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12243 pointer_set_destroy on not_executed_last_iteration.
12245 PR middle-end/56461
12246 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
12248 PR middle-end/56461
12249 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12250 FOR_EACH_DEFINED_FUNCTION when freeing state.
12252 PR middle-end/56461
12253 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12255 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12258 PR middle-end/56461
12259 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12260 known_aggs[i].items and release known_aggs vector.
12262 PR middle-end/56461
12263 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12265 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12267 * config/microblaze/microblaze.c (microblaze_emit_compare):
12268 Use xor for EQ/NE comparisions.
12269 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12270 (cbranchsf4): Adjust operator to comparison_operator.
12272 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12274 PR middle-end/56461
12275 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12277 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12278 vec_safe_push, always update *slot.
12279 (redirect_edge_var_map_clear): Use vec_free.
12280 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12281 (free_var_map_entry): Use vec_free.
12282 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12283 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12285 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
12287 PR middle-end/45472
12288 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12289 when the may_trap_p bit of the exprs being merged differs.
12290 Reorder tests for speculativeness in the logical and operator.
12292 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12294 * incpath.c (add_standard_paths): Use reconcat instead of concat
12295 where appropriate and avoid leaking memory.
12297 * opts.h: Include obstack.h.
12298 (opts_concat): New prototype.
12299 (opts_obstack): New declaration.
12300 * opts.c (opts_concat): New function.
12301 (opts_obstack): New variable.
12302 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12303 (finish_options): Use opts_concat instead of concat
12304 and XOBNEWVEC instead of XNEWVEC.
12305 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12306 generate_option): Likewise.
12307 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12308 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12311 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12312 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12314 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12316 PR middle-end/56461
12317 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12319 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12321 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12322 (arm_block_move_unaligned_straight): Likewise.
12323 (arm_adjust_block_mem): Likewise.
12325 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12328 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12329 temp, cond and label.
12330 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12333 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12334 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12337 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12338 of prologue/epilogue functions.
12341 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12342 Remove unused variable cfa_offset.
12343 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12346 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12347 type promotion to unsigned.
12350 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12351 for HOST_WIDE_INT of 32 bit / same size as int.
12352 (arm_block_move_unaligned_straight): Likewise.
12353 (arm_adjust_block_mem): Likewise.
12356 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12359 2013-02-26 Marek Polacek <polacek@redhat.com>
12361 PR tree-optimization/56426
12362 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
12364 2013-02-26 Richard Biener <rguenther@suse.de>
12367 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12368 unused variable loops.
12370 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12372 PR tree-optimization/56448
12373 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12374 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12375 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12376 later operands of the references, or even first operand for
12377 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12379 PR tree-optimization/56443
12380 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12381 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12382 to type_for_mode langhook.
12384 2013-02-25 Matt Turner <mattst88@gmail.com>
12386 * doc/invoke.texi: Document r4700.
12388 2013-02-25 Richard Biener <rguenther@suse.de>
12390 PR tree-optimization/56175
12391 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12393 (simplify_bitwise_binary): ... here. Also guard the conversion
12394 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12396 2013-02-25 Catherine Moore <clm@codesourcery.com>
12399 2013-02-24 Catherine Moore <clm@codesourcery.com>
12400 Maciej W. Rozycki <macro@codesourcery.com>
12401 Tom de Vries <tom@codesourcery.com>
12402 Nathan Sidwell <nathan@codesourcery.com>
12403 Iain Sandoe <iain@codesourcery.com>
12404 Nathan Froyd <froydnj@codesourcery.com>
12405 Chao-ying Fu <fu@mips.com>
12407 * doc/extend.texi: (micromips, nomicromips, nocompression):
12408 Document new function attributes.
12409 * doc/invoke.texi (minterlink-compressed, mmicromips,
12410 m14k, m14ke, m14kec): Document new options.
12411 (minterlink-mips16): Update documentation.
12412 * doc/md.texi (ZC, ZD): Document new constraints.
12413 * configure.ac (gcc_cv_as_micromips): Check if linker
12414 supports the .set micromips directive.
12415 * configure: Regenerate.
12416 * config.in: Regenerate.
12417 * config/mips/mips-tables.opt: Regenerate.
12418 * config/mips/micromips.md: New file.
12419 * constraints.md (ZC, AD): New constraints.
12420 * config/mips/predicates.md (movep_src_register): New predicate.
12421 (movep_src_operand): New predicate.
12422 (non_volatile_mem_operand): New predicate.
12423 * config/mips/mips.md (multimem): New type.
12424 (length): Differentiate between 17-bit and 18-bit branch offsets.
12425 (MOVEP1, MOVEP2): New mode iterator.
12426 (mov_<load>l): Use ZC constraint.
12427 (mov_<load>r): Likewise.
12428 (mov_<store>l): Likewise.
12429 (mov_<store>r): Likewise.
12430 (*branch_equality<mode>_inverted): Add microMIPS support.
12431 (*branch_equality<mode>): Likewise.
12432 (*jump_absolute): Likewise.
12433 (indirect_jump_<mode>): Likewise.
12434 (tablejump_<mode>): Likewise.
12435 (<optab>_internal): Likewise.
12436 (sibcall_internal): Likewise.
12437 (sibcall_value_internal): Likewise.
12438 (prefetch): Use constraint ZD.
12439 * config/mips/mips.opt (minterlink-compressed): New option.
12440 (minterlink-mips16): Now an alias for minterlink-compressed.
12441 (mmicromips): New option.
12442 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12443 (compare_and_swap_12): Likewise.
12444 (sync_add<mode>): Likewise.
12445 (sync_<optab>_12): Likewise.
12446 (sync_old_<optab>_12): Likewise.
12447 (sync_new_<optab>_12): Likewise.
12448 (sync_nand_12): Likewise.
12449 (sync_old_nand_12): Likewise.
12450 (sync_new_nand_12): Likewise.
12451 (sync_sub<mode>): Likewise.
12452 (sync_old_add<mode>): Likewise.
12453 (sync_old_sub<mode>): Likewise.
12454 (sync_new_add<mode>): Likewise.
12455 (sync_new_sub<mode>): Likewise.
12456 (sync_<optab><mode>): Likewise.
12457 (sync_old_<optab><mode>): Likewise.
12458 (sync_new_<optab><mode>): Likewise.
12459 (sync_nand<mode>): Likewise.
12460 (sync_old_nand<mode>): Likewise.
12461 (sync_new_nand<mode>): Likewise.
12462 (sync_lock_test_and_set<mode>): Likewise.
12463 (test_and_set_12): Likewise.
12464 (atomic_compare_and_swap<mode>): Likewise.
12465 (atomic_exchange<mode>_llsc): Likewise.
12466 (atomic_fetch_add<mode>_llsc): Likewise.
12467 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12468 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12469 (umips_save_restore_pattern_p): Likewise.
12470 (umips_load_store_pair_p): Likewise.
12471 (umips_output_load_store_pair): Likewise.
12472 (umips_movep_target_p): Likewise.
12473 (umips_12bit_offset_address_p): Likewise.
12474 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12475 (mips_base_mips16): Rename this...
12476 (mips_base_compression_flags): ...to this. Update all uses.
12477 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12478 (mips_mips16_decl_p): Delete.
12479 (mips_nomips16_decl_p): Delete.
12480 (mips_get_compress_on_flags): New function.
12481 (mips_get_compress_off_flags): New function.
12482 (mips_get_compress_mode): New function.
12483 (mips_get_compress_on_name): New function.
12484 (mips_get_compress_off_name): New function.
12485 (mips_insert_attributes): Support multiple compression types.
12486 (mips_merge_decl_attributes): Likewise.
12487 (umips_12bit_offset_address_p): New function.
12488 (mips_start_function_definition): Emit .set micromips directive.
12489 (mips_call_may_need_jalx_p): New function.
12490 (mips_function_ok_for_sibcall): Add microMIPS support.
12491 (mips_print_operand_punctuation): Support short delay slots and
12493 (umips_swm_mask, umips_swm_encoding): New.
12494 (umips_build_save_restore): New function.
12495 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12496 (was_mips16_p): Remove.
12497 (old_compression_mode): New.
12498 (mips_set_compression_mode): New function.
12499 (mips_set_current_function): Add microMIPS support.
12500 (mips_option_override): Likewise.
12501 (umips_save_restore_pattern_p): New function.
12502 (umips_output_save_restore): New function.
12503 (umips_load_store_pair_p_1): New function.
12504 (umips_load_store_pair_p): New function.
12505 (umips_output_load_store_pair_1): New function.
12506 (umips_output_load_store_pair): New function.
12507 (umips_movep_target_p) New function.
12508 (mips_prepare_pch_save): Add microMIPS support.
12509 * config/mips/mips.h (TARGET_COMPRESSION): New.
12510 (TARGET_CPU_CPP_BUILTINS): Update macro
12511 to use new compression flags and to support microMIPS.
12512 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12513 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12514 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12515 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12516 (ASM_SPEC): Support mmicromips and mno-micromips.
12517 (M16STORE_REG_P): New macro.
12518 (MIPS_CALL): Support TARGET_MICROMIPS.
12519 (MICROMIPS_J): New macro.
12520 (mips_base_mips16): Rename this...
12521 (mips_base_compression_flags): ...to this.
12522 (UMIPS_12BIT_OFFSET_P): New macro.
12523 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12524 (MULTILIB_DIRNAMES): Likewise.
12526 2013-02-25 Tom de Vries <tom@codesourcery.com>
12528 PR rtl-optimization/56131
12529 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12530 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12531 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12533 2013-02-25 Tobias Burnus <burnus@net-b.de>
12535 * doc/invoke.texi (-fsanitize=): Move from optimization
12536 to debugging options.
12538 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12540 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12542 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12543 Alexander Monakov <amonakov@ispras.ru>
12545 PR middle-end/56077
12546 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12547 flush pending lists also on non-jumps. Adjust comment.
12549 2013-02-24 Catherine Moore <clm@codesourcery.com>
12550 Maciej W. Rozycki <macro@codesourcery.com>
12551 Tom de Vries <tom@codesourcery.com>
12552 Nathan Sidwell <nathan@codesourcery.com>
12553 Iain Sandoe <iain@codesourcery.com>
12554 Nathan Froyd <froydnj@codesourcery.com>
12555 Chao-ying Fu <fu@mips.com>
12557 * doc/extend.texi: (micromips, nomicromips, nocompression):
12558 Document new function attributes.
12559 * doc/invoke.texi (minterlink-compressed, mmicromips,
12560 m14k, m14ke, m14kec): Document new options.
12561 (minterlink-mips16): Update documentation.
12562 * doc/md.texi (ZC, ZD): Document new constraints.
12563 * configure.ac (gcc_cv_as_micromips): Check if linker
12564 supports the .set micromips directive.
12565 * configure: Regenerate.
12566 * config.in: Regenerate.
12567 * config/mips/mips-tables.opt: Regenerate.
12568 * config/mips/micromips.md: New file.
12569 * constraints.md (ZC, AD): New constraints.
12570 * config/mips/predicates.md (movep_src_register): New predicate.
12571 (movep_src_operand): New predicate.
12572 (non_volatile_mem_operand): New predicate.
12573 * config/mips/mips.md (multimem): New type.
12574 (length): Differentiate between 17-bit and 18-bit branch offsets.
12575 (MOVEP1, MOVEP2): New mode iterator.
12576 (mov_<load>l): Use ZC constraint.
12577 (mov_<load>r): Likewise.
12578 (mov_<store>l): Likewise.
12579 (mov_<store>r): Likewise.
12580 (*branch_equality<mode>_inverted): Add microMIPS support.
12581 (*branch_equality<mode>): Likewise.
12582 (*jump_absolute): Likewise.
12583 (indirect_jump_<mode>): Likewise.
12584 (tablejump_<mode>): Likewise.
12585 (<optab>_internal): Likewise.
12586 (sibcall_internal): Likewise.
12587 (sibcall_value_internal): Likewise.
12588 (prefetch): Use constraint ZD.
12589 * config/mips/mips.opt (minterlink-compressed): New option.
12590 (minterlink-mips16): Now an alias for minterlink-compressed.
12591 (mmicromips): New option.
12592 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12593 (compare_and_swap_12): Likewise.
12594 (sync_add<mode>): Likewise.
12595 (sync_<optab>_12): Likewise.
12596 (sync_old_<optab>_12): Likewise.
12597 (sync_new_<optab>_12): Likewise.
12598 (sync_nand_12): Likewise.
12599 (sync_old_nand_12): Likewise.
12600 (sync_new_nand_12): Likewise.
12601 (sync_sub<mode>): Likewise.
12602 (sync_old_add<mode>): Likewise.
12603 (sync_old_sub<mode>): Likewise.
12604 (sync_new_add<mode>): Likewise.
12605 (sync_new_sub<mode>): Likewise.
12606 (sync_<optab><mode>): Likewise.
12607 (sync_old_<optab><mode>): Likewise.
12608 (sync_new_<optab><mode>): Likewise.
12609 (sync_nand<mode>): Likewise.
12610 (sync_old_nand<mode>): Likewise.
12611 (sync_new_nand<mode>): Likewise.
12612 (sync_lock_test_and_set<mode>): Likewise.
12613 (test_and_set_12): Likewise.
12614 (atomic_compare_and_swap<mode>): Likewise.
12615 (atomic_exchange<mode>_llsc): Likewise.
12616 (atomic_fetch_add<mode>_llsc): Likewise.
12617 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12618 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12619 (umips_save_restore_pattern_p): Likewise.
12620 (umips_load_store_pair_p): Likewise.
12621 (umips_output_load_store_pair): Likewise.
12622 (umips_movep_target_p): Likewise.
12623 (umips_12bit_offset_address_p): Likewise.
12624 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12625 (mips_base_mips16): Rename this...
12626 (mips_base_compression_flags): ...to this. Update all uses.
12627 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12628 (mips_mips16_decl_p): Delete.
12629 (mips_nomips16_decl_p): Delete.
12630 (mips_get_compress_on_flags): New function.
12631 (mips_get_compress_off_flags): New function.
12632 (mips_get_compress_mode): New function.
12633 (mips_get_compress_on_name): New function.
12634 (mips_get_compress_off_name): New function.
12635 (mips_insert_attributes): Support multiple compression types.
12636 (mips_merge_decl_attributes): Likewise.
12637 (umips_12bit_offset_address_p): New function.
12638 (mips_start_function_definition): Emit .set micromips directive.
12639 (mips_call_may_need_jalx_p): New function.
12640 (mips_function_ok_for_sibcall): Add microMIPS support.
12641 (mips_print_operand_punctuation): Support short delay slots and
12643 (umips_swm_mask, umips_swm_encoding): New.
12644 (umips_build_save_restore): New function.
12645 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12646 (was_mips16_p): Remove.
12647 (old_compression_mode): New.
12648 (mips_set_compression_mode): New function.
12649 (mips_set_current_function): Add microMIPS support.
12650 (mips_option_override): Likewise.
12651 (umips_save_restore_pattern_p): New function.
12652 (umips_output_save_restore): New function.
12653 (umips_load_store_pair_p_1): New function.
12654 (umips_load_store_pair_p): New function.
12655 (umips_output_load_store_pair_1): New function.
12656 (umips_output_load_store_pair): New function.
12657 (umips_movep_target_p) New function.
12658 (mips_prepare_pch_save): Add microMIPS support.
12659 * config/mips/mips.h (TARGET_COMPRESSION): New.
12660 (TARGET_CPU_CPP_BUILTINS): Update macro
12661 to use new compression flags and to support microMIPS.
12662 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12663 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12664 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12665 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12666 (ASM_SPEC): Support mmicromips and mno-micromips.
12667 (M16STORE_REG_P): New macro.
12668 (MIPS_CALL): Support TARGET_MICROMIPS.
12669 (MICROMIPS_J): New macro.
12670 (mips_base_mips16): Rename this...
12671 (mips_base_compression_flags): ...to this.
12672 (UMIPS_12BIT_OFFSET_P): New macro.
12673 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12674 (MULTILIB_DIRNAMES): Likewise.
12676 2013-02-24 Jakub Jelinek <jakub@redhat.com>
12679 * target-globals.c (save_target_globals): For init_reg_sets and
12680 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12682 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12684 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12685 * config/aarch64/t-aarch64
12686 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12688 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12690 PR inline-asm/56148
12691 * lra-constraints.c (process_alt_operands): Reload operand
12692 conflicting with earlier clobber only if no more other conflicting
12695 2013-02-22 Jakub Jelinek <jakub@redhat.com>
12698 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12699 if not linking a shared library.
12701 2013-02-22 Seth LaForge <sethml@google.com>
12703 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12705 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12707 * config/arm/arm.md (split for extendsidi): Update condition.
12708 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12709 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12710 (qhs_zextenddi_cstr): Likewise.
12712 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12714 PR middle-end/56420
12715 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12716 avoid signed wrapping.
12717 (expand_mult): Handle properly multiplication by
12718 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12719 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12720 in the compiler if coeff is HOST_WIDE_INT_MIN.
12721 (expand_divmod): Don't make ext_op1 static, change it's type to
12722 uhwi. Avoid undefined behavior in -INTVAL (op1).
12724 PR rtl-optimization/50339
12725 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12727 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12728 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12729 into splitting_ashiftrt field.
12730 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12732 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12735 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
12737 PR middle-end/56108
12738 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12739 are sure to go irrevocable.
12741 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
12743 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12744 scalars are valid operands.
12746 2013-02-21 Martin Jambor <mjambor@suse.cz>
12748 PR tree-optimization/56310
12749 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12750 only matching indices and non-negative final offsets.
12751 (intersect_aggregates_with_edge): Pass src_idx to
12752 agg_replacements_to_vector. Pass src_idx insstead of index to
12753 intersect_with_agg_replacements.
12755 2013-02-21 Martin Jambor <mjambor@suse.cz>
12757 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12758 instead of hard-wired defaults.
12760 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12762 * doc/invoke.texi (MIPS Options): Update documentation of the
12763 floating-point multiply-accumulate instruction restrictions.
12765 2013-02-21 Kostya Serebryany <kcc@google.com>
12767 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12768 asan_shadow_offset on x86_64 linux.
12770 2013-02-21 Richard Biener <rguenther@suse.de>
12772 PR tree-optimization/56415
12774 2013-02-11 Richard Biener <rguenther@suse.de>
12776 PR tree-optimization/56273
12777 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12780 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12783 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12786 PR inline-asm/56405
12787 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12788 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12790 2013-02-20 Jan Hubicka <jh@suse.cz>
12792 PR tree-optimization/56265
12793 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12794 when target is referenced for first time.
12796 2013-02-20 Richard Biener <rguenther@suse.de>
12798 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12799 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12800 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12801 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12802 not return anything.
12803 (rename_ssa_copies): Do not remove unused locals.
12804 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12805 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12806 * passes.c (execute_function_todo): Do not schedule unused locals
12807 removal if cleanup_tree_cfg did something.
12808 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12809 about the number of removed locals.
12811 2013-02-20 Richard Biener <rguenther@suse.de>
12813 PR tree-optimization/56398
12814 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12816 2013-02-20 Martin Jambor <mjambor@suse.cz>
12818 PR tree-optimization/55334
12819 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12820 restricted pointers to arrays.
12822 2013-02-20 Richard Biener <rguenther@suse.de>
12823 Jakub Jelinek <jakub@redhat.com>
12825 PR tree-optimization/56396
12826 * tree-ssa-ccp.c (n_const_val): New static variable.
12827 (get_value): Return NULL for SSA names we don't have a lattice
12829 (ccp_initialize): Initialize n_const_val.
12830 * tree-ssa-copy.c (n_copy_of): New static variable.
12831 (init_copy_prop): Initialize n_copy_of.
12832 (get_value): Return NULL_TREE for SSA names we don't have a
12835 2013-02-20 Martin Jambor <mjambor@suse.cz>
12837 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12839 2013-02-20 Richard Biener <rguenther@suse.de>
12841 * genpreds.c (write_lookup_constraint): Do not compare first
12842 letter of the constraint again.
12844 2013-02-20 Richard Biener <rguenther@suse.de>
12846 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12848 (get_use_iv_cost): Terminate hashtable walk when coming across
12851 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12853 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12854 reassociation for avx2 targets.
12856 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12858 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12859 Add version check for v8.10.a to enable microblaze_has_clz
12860 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12861 version and TARGET_PATTERN_COMPARE check
12862 * config/microblaze/microblaze.md: New clzsi2 instruction
12864 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12866 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12867 function before branching.
12869 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12871 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12873 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12875 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12877 PR middle-end/55889
12878 * sel-sched.c: Include ira.h.
12879 (implicit_clobber_conflict_p): New function.
12880 (moveup_expr): Use it.
12881 * Makefile.in (sel-sched.o): Depend on ira.h.
12883 2013-02-19 Richard Biener <rguenther@suse.de>
12885 PR tree-optimization/56384
12886 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12887 (vn_hash_type): Split out from ...
12888 (vn_hash_constant_with_type): ... here.
12889 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12890 (vn_phi_eq): Compare types from vn_phi_s structure.
12891 (vn_phi_lookup): Populate vn_phi_s type.
12892 (vn_phi_insert): Likewise.
12894 2013-02-19 Jakub Jelinek <jakub@redhat.com>
12896 PR tree-optimization/56350
12897 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12898 if haven't found reduction or nested cycle operand, rather than
12899 asserting we must find it.
12901 PR tree-optimization/56381
12902 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12905 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
12906 Jakub Jelinek <jakub@redhat.com>
12909 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12910 (swap_optab_enable): Same.
12911 (init_all_optabs): Use argument instead of global.
12912 * tree.h (struct tree_optimization_option): New field target_optabs.
12913 * expr.h (init_all_optabs): Add argument to prototype.
12914 (TREE_OPTIMIZATION_OPTABS): New.
12915 (save_optabs_if_changed): Protoize.
12916 * optabs.h: Declare this_fn_optabs.
12917 * optabs.c (save_optabs_if_changed): New.
12918 Declare this_fn_optabs.
12919 (init_optabs): Add argument to init_all_optabs() call.
12920 * function.c (invoke_set_current_function_hook): Handle per
12922 * function.h (struct function): New field optabs.
12923 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12924 optimization_current_node has changed.
12925 * target-globals.h (save_target_globals_default_opts): Protoize.
12926 * target-globals.c (save_target_globals_default_opts): New.
12928 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12931 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12932 registers %fr12 and %fr12R as call used.
12935 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12936 and HImode, require all displacements to be an integer multiple of
12938 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12939 only allow QImode and HImode when reload is in progress and strict is
12940 true. Likewise for symbolic addresses. Use base14_operand to check
12941 displacements in REG+BASE addresses.
12943 2013-02-18 Richard Biener <rguenther@suse.de>
12945 PR tree-optimization/56366
12946 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12947 handle sign-conversion of outer-loop initial induction value.
12949 2013-02-18 Richard Biener <rguenther@suse.de>
12951 PR middle-end/56349
12952 * cfghooks.c (merge_blocks): If we merge a latch into another
12953 block adjust references to it.
12954 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12955 (verify_loop_structure): Verify that a recorded latch is in fact
12958 2013-02-18 Richard Biener <rguenther@suse.de>
12960 PR tree-optimization/56321
12961 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12962 order SSA name release and virtual operand unlinking.
12964 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12966 * config/microblaze/microblaze.md (save_stack_block): Define.
12967 (restore_stack_block): Likewise.
12969 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12971 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12972 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12973 * config/microblaze/microblaze.c (microblaze_option_override):
12974 Bail out early for PIC modes when target does not support PIC.
12976 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12978 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12979 Replace with a microblaze version.
12980 (microblaze_trampoline_init): Adapt for microblaze.
12981 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12984 2013-02-16 Jakub Jelinek <jakub@redhat.com>
12985 Dodji Seketeli <dodji@redhat.com>
12988 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12989 (instrument_mem_region_access): Do not forget to always put
12990 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12991 0) statement, even for cases where either 'base' or 'base + len'
12992 are not instrumented -- because they have been previously
12993 instrumented. Simplify the logic by putting all the statements
12994 instrument 'base + len' inside a sequence, and then insert that
12995 sequence right before the current insertion point. Then, to
12996 instrument 'base + len', just get an iterator on that statement.
12997 And do not forget to update the pointer to iterator the function
12998 received as argument.
13000 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
13002 PR rtl-optimization/56348
13003 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
13005 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
13007 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
13008 (clean_graph_dump_file): Pass base to start_graph_dump.
13010 2013-02-14 Richard Henderson <rth@redhat.com>
13013 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
13015 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
13017 * collect2-aix.h: Define F_LOADONLY.
13019 2013-02-14 Richard Biener <rguenther@suse.de>
13022 * varasm.c (output_constant_def_1): Get the decl representing
13023 the constant as argument.
13024 (output_constant_def): Wrap output_constant_def_1.
13025 (make_decl_rtl): Use output_constant_def_1 with the decl
13026 representing the constant.
13027 (build_constant_desc): Optionally re-use a decl already
13028 representing the constant.
13029 (tree_output_constant_def): Adjust.
13031 2013-02-14 Dodji Seketeli <dodji@redhat.com>
13034 * asan.c (instrument_builtin_call): Really put the length of the
13035 second source argument into src1_len.
13037 2013-02-13 Jakub Jelinek <jakub@redhat.com>
13039 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
13040 argument. If it is false, don't create edge from then_bb to
13042 (insert_if_then_before_iter): Pass true to it.
13043 (build_check_stmt): Pass false to it.
13044 (transform_statements): Flush hash table only on extended basic
13045 block boundaries, rather than at the beginning of every bb.
13046 Don't flush hash table on nonfreeing_call_p calls.
13047 * tree-flow.h (nonfreeing_call_p): New prototype.
13048 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
13050 2013-02-13 David S. Miller <davem@davemloft.net>
13052 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
13054 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
13057 * ira.c (max_regno_before_ira): Move from ...
13059 (fix_reg_equiv_init): Use max_regno_before_ira instead of
13062 2013-02-13 Jakub Jelinek <jakub@redhat.com>
13064 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
13066 2013-02-13 Richard Biener <rguenther@suse.de>
13069 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
13070 globals in MEM_REFs.
13072 2013-02-13 Richard Biener <rguenther@suse.de>
13074 * loop-init.c (loop_optimizer_init): Clear loop state when
13075 re-initializing preserved loops.
13076 * loop-unswitch.c (unswitch_single_loop): Return whether
13077 we unswitched the loop. Do not verify loop state here.
13078 (unswitch_loops): When we unswitched a loop discover new loops.
13080 2013-02-13 Kostya Serebryany <kcc@google.com>
13082 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
13084 * sanitizer.def: Rename __asan_init to __asan_init_v1.
13086 2013-02-12 Dodji Seketeli <dodji@redhat.com>
13088 Avoid instrumenting duplicated memory access in the same basic block
13089 * Makefile.in (asan.o): Add new dependency on hash-table.h
13090 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
13091 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
13092 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
13093 (free_mem_ref_resources, has_mem_ref_been_instrumented)
13094 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
13095 (get_mem_ref_of_assignment): New functions.
13096 (get_mem_refs_of_builtin_call): Extract from
13097 instrument_builtin_call and tweak a little bit to make it fit with
13099 (instrument_builtin_call): Use the new
13100 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
13101 of is_gimple_builtin_call.
13102 (instrument_derefs, instrument_mem_region_access): Insert the
13103 instrumented memory reference into the hash table.
13104 (maybe_instrument_assignment): Renamed instrument_assignment into
13105 this, and change it to advance the iterator when instrumentation
13106 actually happened and return true in that case. This makes it
13107 homogeneous with maybe_instrument_assignment, and thus give a
13108 chance to callers to be more 'regular'.
13109 (transform_statements): Clear the memory reference hash table
13110 whenever we enter a new BB, when we cross a function call, or when
13111 we are done transforming statements. Use
13112 maybe_instrument_assignment instead of instrumentation. No more
13113 need to special case maybe_instrument_assignment and advance the
13114 iterator after calling it; it's now handled just like
13115 maybe_instrument_call. Update comment.
13117 2013-02-13 Richard Biener <rguenther@suse.de>
13119 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
13120 Fix loop discovery code.
13122 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
13124 PR inline-asm/56148
13125 * lra-constraints.c (process_alt_operands): Match early clobber
13126 operand with itself. Check conflicts with earlyclobber only if
13127 the operand is not reloaded. Prefer to reload conflicting operand
13128 if earlyclobber and matching operands are the same.
13130 2013-02-12 Richard Biener <rguenther@suse.de>
13133 * lto-streamer-out.c (write_symbol): Do not output symbols
13134 for hard register variables.
13136 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
13139 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
13140 (umulsidi3_insn, mulsidi3_insn): New insns.
13142 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
13144 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
13145 (struct tune_params): Add vec_costs field.
13146 * config/arm/arm.c (arm_builtin_vectorization_cost)
13147 (arm_add_stmt_cost): New functions.
13148 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
13149 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
13150 (arm_default_vec_cost): New struct of type cpu_vec_costs.
13151 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13152 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
13153 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
13154 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
13156 2013-02-12 Richard Biener <rguenther@suse.de>
13159 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
13160 decls again if possible.
13162 2013-02-12 Richard Biener <rguenther@suse.de>
13164 PR middle-end/56288
13165 * tree-ssa.c (verify_ssa_name): Fix check, move
13166 SSA_NAME_IN_FREE_LIST check up.
13168 2013-02-12 Jakub Jelinek <jakub@redhat.com>
13169 Steven Bosscher <steven@gcc.gnu.org>
13171 PR rtl-optimization/56151
13172 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
13173 equal to op0 or op1, and last_insn pattern is CODE operation
13174 with MEM dest and one of the operands matches that MEM.
13176 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
13178 * doc/extend.texi: Document Function Multiversioning and "default"
13179 parameter string to target attribute.
13180 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
13181 target attribute parameter is "default".
13182 (ix86_compare_version_priority): Remove checks for target attribute.
13183 (ix86_mangle_function_version_assembler_name): Change error to sorry.
13184 Remove check for target attribute equal to NULL. Add assert.
13185 (ix86_generate_version_dispatcher_body): Change error to sorry.
13187 2013-02-11 Iain Sandoe <iain@codesourcery.com>
13188 Jack Howarth <howarth@bromo.med.uc.edu>
13189 Patrick Marlier <patrick.marlier@gmail.com>
13192 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
13193 define ENDFILE_SPEC as TM_DESTRUCTOR.
13194 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
13196 2013-02-11 Alexander Potapenko <glider@google.com>
13197 Jack Howarth <howarth@bromo.med.uc.edu>
13198 Jakub Jelinek <jakub@redhat.com>
13201 * config/darwin.c (cdtor_record): Rename ctor_record.
13202 (sort_cdtor_records): Rename sort_ctor_records.
13203 (finalize_dtors): New routine to sort destructors by
13204 priority before use in assemble_integer.
13205 (machopic_asm_out_destructor): Use finalize_dtors if needed.
13207 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
13209 PR rtl-optimization/56275
13210 * simplify-rtx.c (avoid_constant_pool_reference): Check that
13211 offset is non-negative and less than cmode size before
13212 calling simplify_subreg.
13214 2013-02-11 Richard Biener <rguenther@suse.de>
13216 PR tree-optimization/56264
13217 * cfgloop.h (fix_loop_structure): Adjust prototype.
13218 * loop-init.c (fix_loop_structure): Return the number of
13219 newly discovered loops.
13220 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13221 are discovered, do a full loop-closed SSA rewrite.
13223 2013-02-11 Richard Biener <rguenther@suse.de>
13225 PR tree-optimization/56273
13226 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13228 (check_array_ref): Fix missing newline in dumps.
13229 (search_for_addr_array): Likewise.
13231 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
13233 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13235 2013-02-09 Jakub Jelinek <jakub@redhat.com>
13238 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13240 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13242 PR rtl-optimization/56246
13243 * lra-constraints.c (simplify_operand_subreg): Try to reuse
13245 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13246 constraints are satisfied.
13248 2013-02-08 Jeff Law <law@redhat.com>
13251 * emit-rtl.c (reg_is_parm_p): New function.
13252 * regs.h (reg_is_parm_p): New prototype.
13253 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13254 callee-clobbered registers.
13256 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13259 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13260 If there is no implicit builtin declaration, just return NULL.
13262 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13264 * config/i386/sse.md (FMAMODEM): New mode iterator.
13265 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13266 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13268 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13270 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13271 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13272 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13274 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13276 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13277 (microblaze*-*-elf): Likewise.
13278 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13280 * config/microblaze/microblaze-c.c: Add builtin defines for
13281 _LITTLE_ENDIAN and _BIG_ENDIAN.
13282 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13283 add to TARGET_DEFAULT flags.
13284 Expand ASM_SPEC and LINK_SPEC.
13285 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13286 * config/microblaze/microblaze.md: Update extendsidi2 and
13287 movdi_internal instructions to use low-order / high-order reg
13289 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13290 options and inversemask / mask of LITTLE_ENDIAN.
13291 * config/microblaze/t-microblaze: Expand multilib options to
13292 include mlittle-endian (le) and update exceptions patterns.
13294 2013-02-08 Jakub Jelinek <jakub@redhat.com>
13296 PR rtl-optimization/56195
13297 * lra-constraints.c (get_reload_reg): Don't reuse regs
13298 if they have smaller mode than requested, if they have
13299 wider mode than requested, try to return a SUBREG.
13301 PR tree-optimization/56250
13302 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13303 if type is unsigned and code isn't MULT_EXPR.
13305 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13307 PR tree-optimization/56064
13308 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13309 bits according to mode.
13310 * fixed-value.h (fixed_from_double_int)
13311 (const_fixed_from_double_int): Adjust comments.
13313 2013-02-08 Richard Biener <rguenther@suse.de>
13316 * lto-streamer.h (struct data_in): Remove current_file, current_line
13317 and current_col members.
13318 * lto-streamer-out.c (lto_output_location): Stream changed bits
13319 en-block for efficiency.
13320 * lto-streamer-in.c (clear_line_info): Remove.
13321 (lto_input_location): Cache current file, line and column
13322 globally via local statics. Read changed bits en-block.
13323 (input_function): Do not call clear_line_info.
13324 (lto_read_body): Likewise.
13325 (lto_input_toplevel_asms): Likewise.
13327 2013-02-08 Michael Matz <matz@suse.de>
13329 PR tree-optimization/52448
13330 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13331 (nt_call_phase): New static.
13332 (add_or_mark_expr): Only mark accesses with newer phase than any
13334 (nonfreeing_call_p): New.
13335 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13336 (nt_fini_block): Keep blocks marked as visited.
13337 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13339 2013-02-08 Richard Biener <rguenther@suse.de>
13341 * ira.c (ira): Free broken dominator information.
13343 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13345 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13347 2013-02-08 Marek Polacek <polacek@redhat.com>
13349 * cfgloop.c (verify_loop_structure): Add more checking of headers.
13351 2013-02-08 Richard Biener <rguenther@suse.de>
13353 PR middle-end/56181
13354 * cfgloop.h (flow_loops_find): Adjust.
13355 (bb_loop_header_p): Declare.
13356 * cfgloop.c (bb_loop_header_p): New function split out from ...
13357 (flow_loops_find): ... here. Adjust function signature,
13358 support incremental loop structure update.
13359 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13360 * cfgloopmanip.c (fix_loop_structure): Move ...
13361 * loop-init.c (fix_loop_structure): ... here.
13362 (apply_loop_flags): Split out from ...
13363 (loop_optimizer_init): ... here.
13364 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13365 in incremental mode, only remove dead loops here.
13367 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13370 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13371 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13372 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13373 (*round<mode>3.libgcc): New insns for fixed-modes.
13374 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13375 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13376 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13377 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13378 implementations. Define to __builtin_avr_absFX,
13379 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13380 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13381 __builtin_avr_countlsFX, respectively.
13382 * config/avr/avr-c.c (target.h): Include it.
13383 (enum avr_builtin_id): New enum.
13384 (avr_resolve_overloaded_builtin): New static function.
13385 (avr_register_target_pragmas): Use it to set
13386 targetm.resolve_overloaded_builtin.
13387 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13388 tree nodes used by DEF_BUILTIN.
13389 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13390 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13391 <AVR_BUILTIN_xxBITS>: Same.
13393 2013-02-08 Richard Biener <rguenther@suse.de>
13395 * cfgloop.c (verify_loop_structure): Properly handle
13396 a loop exiting to another loop header.
13397 * ira-int.h (ira_loops): Remove.
13398 * ira.c (ira_loops): Remove.
13399 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13400 (do_reload): Use loop_optimizer_finalize.
13401 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13402 number_of_loops to access the loop tree.
13403 (more_one_region_p): Likewise.
13404 (finish_loop_tree_nodes): Likewise.
13405 (rebuild_regno_allocno_maps): Likewise.
13406 (mark_loops_for_removal): Likewise.
13407 (mark_all_loops_for_removal): Likewise.
13408 (remove_unnecessary_regions): Likewise.
13409 (ira_build): Likewise.
13410 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13412 2013-02-08 Richard Biener <rguenther@suse.de>
13414 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13415 * ipa-pure-const.c (analyze_function): Avoid calling
13416 mark_irreducible_loops twice.
13417 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
13419 2013-02-07 David S. Miller <davem@davemloft.net>
13421 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13423 * var-tracking.c (vt_add_function_parameter): Test the presence of
13424 HAVE_window_save properly and do not remap argument registers when
13425 we have a leaf function.
13427 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
13430 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13432 * config/i386/i386.c (ix86_print_operand): Ditto.
13434 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13436 * lra-constraints.c (process_alt_operands): Fix recently added comment.
13438 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13440 PR rtl-optimization/56225
13441 * lra-constraints.c (process_alt_operands): Check that reload hard
13442 reg can hold value for strict_low_part.
13444 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13447 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13448 dwarf2out_end_function.
13449 (in_first_function_p, maybe_at_text_label_p,
13450 first_loclabel_num_not_at_text_label): New variables.
13451 (dwarf2out_var_location): In the first function find out
13452 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
13453 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13456 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13458 PR rtl-optimization/56178
13459 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13460 SUBREG of a register. Tidy up related block of code.
13461 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13462 note if the source is a register or a SUBREG of a register.
13464 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13467 * config/rs6000/rs6000.md (ptrm): New mode attr.
13468 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13469 call_value_indirect_aix<pttrsize>,
13470 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13473 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13475 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13476 if -bnortl. Convert to strcmp and strncmp.
13478 2013-02-07 Alan Modra <amodra@gmail.com>
13481 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13482 addresses won't wrap when offsetting.
13483 (rs6000_secondary_reload): Provide secondary reloads needed for
13484 wrapping LO_SUM addresses.
13486 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13488 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13489 MACH, just __MACH__.
13491 2013-02-06 Richard Biener <rguenther@suse.de>
13493 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13494 instead of calling fix_loop_structure.
13496 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13498 PR middle-end/56217
13499 * omp-low.c (use_pointer_for_field): Return false if
13500 lower_send_shared_vars doesn't generate any copy-out code.
13502 2013-02-06 Tom de Vries <tom@codesourcery.com>
13504 PR rtl-optimization/56131
13505 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13506 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13507 of the label is NULL. Add comment.
13509 2013-02-05 Jakub Jelinek <jakub@redhat.com>
13511 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13514 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13515 (STATIC_LIBTSAN_LIBS): Likewise.
13516 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13517 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13518 is defined, don't add anything else beyond that.
13519 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13520 (LINK_COMMAND_SPEC): Use them.
13522 PR tree-optimization/56205
13523 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13524 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13525 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13527 2013-02-05 Richard Biener <rguenther@suse.de>
13529 PR tree-optimization/53342
13530 PR tree-optimization/53185
13531 * tree-vectorizer.h (vect_check_strided_load): Remove.
13532 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13533 not disallow peeling for vectorized strided loads.
13534 (vect_check_strided_load): Make static and simplify.
13535 (vect_analyze_data_refs): Adjust.
13536 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13537 correctly when vectorizing strided loads.
13539 2013-02-05 Richard Biener <rguenther@suse.de>
13541 * doc/install.texi: Refer to ISL, not PPL.
13543 2013-02-05 Jan Hubicka <jh@suse.cz>
13545 PR tree-optimization/55789
13546 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13548 2013-02-05 Jan Hubicka <jh@suse.cz>
13550 PR tree-optimization/55789
13551 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13552 the dead call anyway.
13554 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13557 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13559 2013-02-04 Alexander Potapenko <glider@google.com>
13560 Jack Howarth <howarth@bromo.med.uc.edu>
13561 Jakub Jelinek <jakub@redhat.com>
13564 * config/darwin.c (sort_ctor_records): Stabilized qsort
13565 on constructor priority by using original position.
13566 (finalize_ctors): New routine to sort constructors by
13567 priority before use in assemble_integer.
13568 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13570 2013-02-04 Jakub Jelinek <jakub@redhat.com>
13573 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13574 about visibility on artificial decls.
13575 * config/sol2.c (solaris_assemble_visibility): Likewise.
13577 2013-02-04 Kai Tietz <ktietz@redhat.com>
13580 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13581 argument and improve checking of return-argument types for 16-byte
13583 (ix86_function_value_1): Add additional valtype argument on call
13584 of function_value_64.
13585 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13586 handling infunction_value_64 function.
13588 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13590 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13592 2013-02-04 Richard Biener <rguenther@suse.de>
13594 PR tree-optimization/56188
13595 * tree-ssa-structalias.c (label_visit): Consider case with
13596 initially non-empty points-to set.
13597 (perform_var_substitution): Dump node mapping and clean up.
13599 2013-02-04 Richard Guenther <rguenther@suse.de>
13602 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13603 node prevail as last resort.
13604 (lto_symtab_merge_decls): Remove guard on LTRANS here.
13605 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13607 2013-02-04 Richard Biener <rguenther@suse.de>
13609 PR tree-optimization/56113
13610 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13612 (equiv_class_lookup_or_add): ... this.
13613 (label_visit): Adjust and fix error in previous patch.
13614 (perform_var_substitution): Adjust.
13616 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13618 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13619 * config/sh/sh4-300.md: Likewise.
13620 * config/sh/sh4a.md: Likewise.
13621 * config/sh/constraints.md: Likewise.
13622 * config/sh/sh.md: Likewise.
13623 * config/sh/netbsd-elf.h: Likewise.
13624 * config/sh/predicates.md: Likewise.
13625 * config/sh/sh-protos.h: Likewise.
13626 * config/sh/ushmedia.h: Likewise.
13627 * config/sh/linux.h: Likewise.
13628 * config/sh/sh.c: Likewise.
13629 * config/sh/superh.h: Likewise.
13630 * config/sh/elf.h: Likewise.
13631 * config/sh/sh4.md: Likewise.
13632 * config/sh/sh.h: Likewise.
13634 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13636 * config/pa/constraints.md: Adjust unused letters. Change "T"
13637 constraint to match_test floating_point_store_memory_operand().
13638 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13639 (base14_operand): New.
13640 (floating_point_store_memory_operand): New.
13641 (integer_store_memory_operand): Revise to use base14_operand and
13642 reg_plus_base_memory_operand.
13643 (move_dest_operand): Allow symbolic_memory_operands.
13644 (symbolic_memory_operand): Check for LO_SOM.
13645 (symbolic_operand): Change default case to break.
13646 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13647 CONST_DOUBLE values to be reloaded by putting them into memory when
13648 the destination is a floating point register.
13649 (movdf): Remove code to handle CONST_DOUBLE.
13651 (reload_indf_r1): New.
13652 (reload_insf_r1): New.
13653 Consistently use "Q" and "T" constraints with integer and floating
13654 point move instructions, respectively.
13655 (movdi): Remove FAIL.
13656 Change predicate for source operand unamed DImode move from
13657 general_operand to move_src_operand.
13658 (umulsidi3): Change predicate for destination operand to
13660 Likewise for similar unamed patterns.
13661 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13662 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13663 (hppa_legitimize_address): Simplify mask calculation.
13664 (pa_emit_move_sequence): Revised handling of secondary reloads from
13665 REG+D addresses for floating point loads and stores. Directly handle
13666 loading CONST0_RTX (mode) to a floating point register.
13667 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13668 to floating point registers. Don't restrict secondary reloads to
13669 floating point registers to integer modes. Revise some comments and
13671 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13672 (pa_legitimate_address_p): New.
13673 (pa_legitimize_reload_address): New.
13674 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13675 (STRICT_REG_OK_FOR_BASE_P): New.
13676 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13677 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13679 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
13680 Andrew Dixie <andrewd@gentrack.com>
13682 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13685 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13687 * expmed.c (extract_bit_field_1): Pass the full width of the
13688 structure to get_best_reg_extraction_insn.
13690 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13693 * configure.ac (use_cxa_atexit): Add AIX.
13694 * configure: Regenerate.
13696 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13698 2013-02-01 Jakub Jelinek <jakub@redhat.com>
13701 * final.c (need_profile_function): New variable.
13702 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13703 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13704 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13705 notes, targetm.asm_out.function_prologue doesn't emit anything,
13706 HAVE_prologue and profiler should be emitted before prologue,
13707 set need_profile_function instead of emitting it.
13708 (final_scan_insn): If need_profile_function, emit
13709 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13710 NOTE_INSN_FUNCTION_BEG note.
13712 2013-02-01 Richard Henderson <rth@redhat.com>
13714 * config/rs6000/rs6000.md (smulditi3): New.
13717 * config/alpha/alpha.md (umulditi3): New.
13719 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13721 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13722 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13724 2013-02-01 Richard Biener <rguenther@suse.de>
13726 PR tree-optimization/56113
13727 * tree-ssa-structalias.c (label_visit): Reduce work for
13728 single-predecessor nodes.
13730 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13732 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13733 range isn't testing for zero.
13735 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13737 PR middle-end/56113
13738 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13740 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13741 Nick Clifton <nickc@redhat.com>
13743 * config/v850/constraints.md (Q): Define as a memory constraint.
13744 * config/v850/predicates.md (label_ref_operand): New predicate.
13745 (e3v5_shift_operand): New predicate.
13746 (ior_operator): New predicate.
13747 * config/v850/t-v850: Add e3v5 multilib.
13748 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13749 (v850_gen_movdi): Prototype.
13750 * config/v850/v850.c: Add support for e3v5 architecture.
13751 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13753 (construct_save_jarl): Add e3v5 long JARL support.
13754 (v850_adjust_insn_length): New function. Adjust length of call
13755 insns when using e3v5 instructions.
13756 (v850_gen_movdi): New function: Generate instructions to move a
13758 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13759 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13760 (TARGET_USE_FPU): Enable for e3v5.
13761 (CONST_OK_FOR_W): New macro.
13762 (ADJUST_INSN_LENGTH): Define.
13763 * config/v850/v850.md (UNSPEC_LOOP): Define.
13764 (attr cpu): Add v850e3v5.
13765 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13766 (movdi): New pattern.
13767 (movdi_internal): New pattern.
13768 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13769 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13770 (cstoresf4): Likewise.
13771 (cstoredf4): Likewise.
13772 (insv): New pattern.
13773 (rotlso3_a): New pattern.
13774 (rotlsi3_b): New pattern
13775 (rotlsi3_v850e3v5): New pattern.
13776 (doloop_begin): New pattern.
13777 (fix_loop_counter): New pattern.
13778 (doloop_end): New pattern.
13779 (branch_normal): Add e3v5 long branch support.
13780 (branch_invert): Likewise.
13781 (branch_z_normal): Likewise.
13782 (branch_z_invert): Likewise.
13783 (branch_nz_normal): Likewise.
13784 (branch_nz_invert): Likewise.
13785 (call_internal_short): Add e3v5 register-indirect JARL support.
13786 (call_internal_long): Likewise.
13787 (call_value_internal_short): Likewise.
13788 (call_value_internal_long): Likewise.
13789 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13790 (mloop): New option.
13791 * config.gcc: Add support for configuring v840e3v5 target.
13792 * doc/invoke.texi: Document new v850 specific command line options.
13794 2013-01-31 Paul Koning <ni1d@arrl.net>
13798 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13799 children if parent is a class.
13800 (prune_unused_types_prune): Don't add DW_AT_declaration.
13802 2013-01-31 Richard Biener <rguenther@suse.de>
13804 PR tree-optimization/56157
13805 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13806 match up operand with SLP child.
13808 2013-01-31 Jason Merrill <jason@redhat.com>
13811 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13812 parameters the first time.
13813 (gen_scheduled_generic_parms_dies): Check completeness here.
13815 2013-01-31 Richard Biener <rguenther@suse.de>
13817 PR middle-end/53073
13818 * common.opt (faggressive-loop-optimizations): New flag,
13819 enabled by default.
13820 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13821 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13822 infer_loop_bounds_from_undefined by it.
13824 2013-01-31 Richard Biener <rguenther@suse.de>
13826 PR tree-optimization/56150
13827 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13828 visit virtual operands.
13829 (find_uses_to_rename_bb): Likewise.
13831 2013-01-31 Richard Biener <rguenther@suse.de>
13833 PR tree-optimization/56150
13834 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13835 mixed store non-store stmts.
13837 2013-01-30 Jakub Jelinek <jakub@redhat.com>
13840 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13841 LIBASAN_EARLY_SPEC is defined.
13842 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13843 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13845 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13848 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13849 invalid args instead of ICEing on it.
13850 (ix86_valid_target_attribute_tree): Return error_mark_node if
13851 ix86_valid_target_attribute_inner_p failed.
13852 (ix86_valid_target_attribute_p): Return false only if
13853 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13854 target("default") attribute.
13855 (sorted_attr_string): Change argument from const char * to tree,
13856 merge in all target attribute arguments rather than just one.
13857 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13858 instead of free. Avoid using strcat.
13859 (ix86_mangle_function_version_assembler_name): Mangle
13860 target("default") as if no target attribute is present. Adjust
13861 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13862 instead of xmalloc and XDELETEVEC instead of free.
13863 (ix86_function_versions): Don't return true if one of the decls
13864 doesn't have target attribute. If they don't and one of the decls
13865 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13866 sorted_attr_string caller. Use XDELETEVEC instead of free.
13867 (ix86_supports_function_versions): Remove.
13868 (make_name): Fix up formatting.
13869 (make_dispatcher_decl): Remove resolver_name and its initialization.
13870 Avoid leaking memory.
13871 (is_function_default_version): Return true if there is
13872 target("default") attribute rather than no target attribute at all.
13873 (make_resolver_func): Avoid leaking memory.
13874 (ix86_generate_version_dispatcher_body): Likewise.
13875 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13876 * target.def (supports_function_versions): Remove.
13877 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13878 * doc/tm.texi: Regenerated.
13880 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13882 PR rtl-optimization/56144
13883 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13884 for values with side effects.
13886 2013-01-30 Richard Biener <rguenther@suse.de>
13888 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13889 (sparseset_pop): Likewise.
13890 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13891 to be able to use quick_push in the worker loop.
13893 2013-01-30 Marek Polacek <polacek@redhat.com>
13895 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13897 2013-01-30 Richard Biener <rguenther@suse.de>
13900 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13902 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
13904 PR tree-optimization/56064
13905 * fixed-value.c (fixed_from_double_int): New function.
13906 * fixed-value.h (fixed_from_double_int): New prototype.
13907 (const_fixed_from_double_int): New static inline function.
13908 * fold-const.c (native_interpret_fixed): New static function.
13909 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13910 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13911 (native_encode_fixed): New static function.
13912 (native_encode_expr) <FIXED_CST>: Use it.
13913 (native_interpret_int): Move double_int worker code to...
13914 * double-int.c (double_int::from_buffer): ...this new static method.
13915 * double-int.h (double_int::from_buffer): Prototype it.
13917 2013-01-30 Richard Biener <rguenther@suse.de>
13919 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13920 New pointer-map and obstack.
13921 (init_alias_vars): Allocate pointer-map and obstack.
13922 (delete_points_to_sets): Free them.
13923 (find_what_var_points_to): Cache result.
13924 (find_what_p_points_to): Adjust for changed interface of
13925 find_what_var_points_to.
13926 (compute_points_to_sets): Likewise.
13927 (ipa_pta_execute): Likewise.
13929 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13931 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13932 * configure: Regenerate.
13933 * config.in: Regenerate.
13934 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13935 #nobits/#progbits if supported.
13937 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13940 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13941 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13942 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13944 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13946 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13947 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13949 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13951 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13952 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13954 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13956 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13958 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13959 * config/arm/cortex-a7.md: New bypasses using
13960 arm_mac_accumulator_is_result.
13962 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13964 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
13965 (cortex_a7_neon_mla): Likewise.
13966 (cortex_a7_fpfmad): New reservation.
13967 (cortex_a7_fpmacs): Use ffmas and update required units.
13968 (cortex_a7_fpmuld): Update required units and latency.
13969 (cortex_a7_fpmacd): Likewise.
13970 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13971 (cortex_a7_neon). Likewise.
13972 (bypass) Update participating units.
13974 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13976 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13977 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13979 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13980 (vfp_fmul): Use ffmad.
13981 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13982 (cortex_r4_fmacd): Use ffmad.
13983 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13984 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13985 (cortex_a9_fmacd): Use ffmad.
13986 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13987 (cortex_a8_vfp_macd): Use ffmad.
13988 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13989 (cortex_a5_fpmacd): Use ffmad.
13990 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13991 (cortex_a15_vfp_macd): Use ffmad.
13992 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13994 2013-01-29 Jason Merrill <jason@redhat.com>
13997 * varasm.c (default_assemble_visibility): Don't warn about
13998 visibility on artificial decls.
14000 2013-01-29 Richard Biener <rguenther@suse.de>
14002 PR tree-optimization/56113
14003 * tree-ssa-structalias.c (equiv_class_lookup): Also return
14005 (label_visit): Free duplicate bitmaps and record the leader instead.
14006 (perform_var_substitution): Adjust.
14008 2013-01-29 Richard Biener <rguenther@suse.de>
14010 PR tree-optimization/55270
14011 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
14012 the CFG, schedule loops for fixup.
14014 2013-01-29 Nick Clifton <nickc@redhat.com>
14016 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
14019 2013-01-28 Leif Ekblad <leif@rdos.net>
14021 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
14022 * config/i386/i386.h (TARGET_RDOS): New macro.
14023 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
14024 * config/i386/i386.c (ix86_option_override_internal): For 64bit
14025 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
14026 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
14027 DEFAULT_LARGE_SECTION_THRESHOLD.
14028 * config/i386/i386.md (R14_REG, R15_REG): New constants.
14029 * config/i386/rdos.h: New file.
14030 * config/i386/rdos64.h: New file.
14032 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
14035 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
14038 2013-01-28 Jakub Jelinek <jakub@redhat.com>
14040 PR rtl-optimization/56117
14041 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
14042 call cselib_lookup_from_insn on the MEM before calling
14043 add_insn_mem_dependence.
14045 2013-01-28 Richard Biener <rguenther@suse.de>
14047 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
14048 to a stmt that didn't have one.
14049 (copy_phis_for_bb): Likewise for PHI arguments.
14050 (copy_debug_stmt): Likewise for debug stmts.
14052 2013-01-28 Richard Biener <rguenther@suse.de>
14054 PR tree-optimization/56034
14055 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
14056 (partition_builtin_p): Adjust.
14057 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
14058 it is the last partition.
14059 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
14060 up the vertex for the definition.
14061 (classify_partition): Classify whether a partition is a
14062 PKIND_REDUCTION, thus has uses outside of the loop.
14063 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
14064 Merge all PKIND_REDUCTION partitions into the last partition.
14065 (tree_loop_distribution): Seed partitions from reductions as well.
14067 2013-01-28 Jakub Jelinek <jakub@redhat.com>
14069 PR tree-optimization/56125
14070 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
14071 pow(x,c) into sqrt(x) * powi(x, n/2) or
14072 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
14073 optimizing for size.
14074 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
14075 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
14078 PR tree-optimization/56094
14079 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
14080 to UNKNOWN_LOCATION while gimplifying expr.
14082 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
14085 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
14086 operand 0 in movabs insn template for -masm=intel asm alternative.
14087 (*movabs<mode>_2): Ditto for operand 1.
14089 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
14092 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
14095 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14097 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
14100 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14102 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
14103 Undef to avoid warning.
14105 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14107 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
14108 * configure: Regenerate.
14110 2013-01-25 Jakub Jelinek <jakub@redhat.com>
14112 PR tree-optimization/56098
14113 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
14114 for stmts with volatile ops.
14115 (cond_store_replacement): Don't optimize if assign has volatile ops.
14116 (cond_if_else_store_replacement_1): Don't optimize if either
14117 then_assign or else_assign have volatile ops.
14118 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
14121 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14123 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
14125 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14127 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
14128 missing ':' in asm example.
14130 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
14132 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
14133 entries into lane and laneq entries.
14134 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
14135 Remove AdvSIMD scalar modes.
14136 (aarch64_sq<r>dmulh_laneq<mode>): New.
14137 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
14139 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
14140 builtin implementations to relfect changes in RTL in aarch64-simd.md.
14141 * config/aarch64/iterators.md (VCOND): New.
14144 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14147 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
14148 Add NULL LIBNAME argument to existing definitions.
14149 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
14150 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
14151 * config/avr/avr.c (DEF_BUILTIN): Same.
14152 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
14153 (avr_expand_builtin): Expand to a vanilla call if a libgcc
14154 implementation is available (DECL_ASSEMBLER_NAME is set).
14155 (avr_fold_absfx): New static function.
14156 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
14157 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
14158 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
14159 AVR_BUILTIN_ABSLLK.
14160 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
14161 (abshk, absk, abslk, absllk): Provide as static inline functions.
14163 2013-01-25 Marek Polacek <polacek@redhat.com>
14165 PR tree-optimization/56035
14166 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
14168 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
14170 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
14171 (*movtf_internal_rex64): Add (!o,C) alternative
14172 (*movxf_internal_rex64): Ditto.
14173 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
14175 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
14177 * doc/invoke.texi: fix typo.
14178 * doc/objc.texi: fix typo.
14180 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
14182 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
14183 for the first two alternatives.
14185 2013-01-24 Diego Novillo <dnovillo@google.com>
14187 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
14188 (ggc-zone.o): Remove.
14189 * configure.ac: Remove option --with-gc.
14190 * configure: Re-generate.
14191 * doc/install.texi: Remove documentation for --with-gc.
14192 * gengtype.c (write_enum_defn): Remove. Update all users.
14193 (write_Types_process_field): Remove generation of gt_e_* argument.
14194 (output_type_enum): Remove. Update all users.
14195 (write_enum_defn): Remove. Update all users.
14196 (enum alloc_zone): Remove. Update all users.
14197 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
14198 * ggc-common.c (ggc_splay_alloc): Remove first argument.
14199 Update all callers.
14200 (struct ptr_data): Remove field TYPE. Update all users.
14201 (gt_pch_note_object): Remove argument TYPE. Update all users.
14202 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
14204 * ggc-none.c (ggc_alloc_typed_stat): Remove.
14205 (struct alloc_zone): Remove.
14206 (ggc_internal_alloc_zone_stat): Remove.
14207 (ggc_internal_cleared_alloc_zone_stat): Remove.
14208 * ggc-page.c (ggc_alloc_typed_stat): Remove.
14209 (ggc_pch_count_object): Remove last argument. Update all users.
14210 (ggc_pch_alloc_object): Remove last argument. Update all users.
14211 (struct alloc_zone): Remove.
14212 * ggc-zone.c: Remove.
14213 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
14214 (struct alloc_zone): Remove.
14215 (ggc_alloc_typed_stat): Remove.
14216 (ggc_alloc_typed): Remove.
14217 (ggc_splay_alloc): Remove first argument.
14218 (rtl_zone): Remove. Update all users.
14219 (tree_zone): Remove. Update all users.
14220 (tree_id_zone): Remove. Update all users.
14221 (ggc_internal_zone_alloc_stat): Remove. Update all users.
14222 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
14223 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
14224 * tree-ssanames.c: Remove references to zone allocator in comments.
14226 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
14228 * config/avr/avr.c (avr_out_fract): Make register numbers that
14229 might be outside of source operand signed.
14231 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
14233 * config/i386/constraints.md (Yf): New constraint.
14234 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14235 of f constraint to conditionaly disable x87 register preferences.
14236 (*movdf_internal): Ditto.
14237 (*movsf_internal): Ditto.
14239 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14241 PR inline-asm/55934
14242 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14243 that have operands with impossible constraints.
14244 Add a FIXME for a speed-up opportunity.
14245 * lra-constraints.c (process_alt_operands): Verify that a class
14246 selected from constraints on asms is valid for the operand mode.
14247 (curr_insn_transform): Remove incorrect comment.
14249 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
14251 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14252 TOC operand is a valid symbol ref in the constant pool.
14254 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14256 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
14258 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
14261 * config/avr/stdfix.h: New file.
14262 * t-avr (stdfix-gcc.h): New rule to build it.
14263 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14265 2013-01-23 Kostya Serebryany <kcc@google.com>
14267 * config/darwin.h: remove dependency on
14268 CoreFoundation (asan on Mac OS).
14270 2013-01-23 Jakub Jelinek <jakub@redhat.com>
14273 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14274 instead of cmpdi_operand for first comparison operand.
14275 Don't assert that comparison operands aren't both constants.
14277 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14279 * doc/install.texi (Downloading the Source): Update references to
14280 downloading separate components.
14282 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14284 * doc/extend.texi (__int128): Improve grammar.
14286 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
14289 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14290 alternative to (o,r).
14291 (*movdi_internal_rex64): Remove (!o,n) alternative.
14292 (DImode immediate->memory splitter): Remove.
14293 (DImode immediate->memory peephole2): Remove.
14294 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14295 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14296 alternative to (!o,*r).
14297 (*movtf_internal_sse): New pattern.
14298 (*movxf_internal_rex64): New pattern.
14299 (*movxf_internal): Disable for TARGET_64BIT.
14300 (*movdf_internal_rex64): Remove (!o,F) alternative.
14302 2013-01-22 Jakub Jelinek <jakub@redhat.com>
14304 PR middle-end/56074
14305 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14306 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14307 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14308 stmt locations where LOCATION_LOCUS of the stmt location is
14309 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14312 * config/i386/i386.md (UNSPEC_STOS): New.
14313 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14314 *strsetqi_1): Add UNSPEC_STOS.
14316 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14319 * doc/invoke.texi: Remove left over -Wsynth example.
14321 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14323 PR tree-optimization/56051
14324 * fold-const.c (fold_binary_loc): Don't fold
14325 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14326 a narrowing conversion, or widening conversion from signed
14329 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14331 PR rtl-optimization/56023
14332 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14333 dependent on debug instruction.
14335 2013-01-21 Martin Jambor <mjambor@suse.cz>
14337 PR middle-end/56022
14338 * function.c (allocate_struct_function): Call
14339 invoke_set_current_function_hook earlier.
14341 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14343 * reload1.c (init_reload): Only initialize reload_obstack
14344 during the first call.
14346 2013-01-21 Marek Polacek <polacek@redhat.com>
14348 * cfgloop.c (verify_loop_structure): Fix up grammar.
14350 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14352 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14353 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14355 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14358 * config/arm/marvell-pj4.md: Update copyright year.
14359 Fix up use of alu to alu_reg and simple_alu_imm.
14361 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14363 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14365 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14368 * lra-constraints.c (curr_insn_transform): Don't reuse original
14369 insn for secondary memory move when memory mode should be different.
14371 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14373 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14374 atomic_storedi_1): New patterns.
14376 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14378 btver2 pipeline descriptions.
14379 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14381 * config/i386/i386.md (btver2_decode): New type attributes.
14382 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
14384 * config/i386/btver2.md: New file describing btver2 pipelines.
14386 2013-01-19 Andrew Pinski <apinski@cavium.com>
14388 PR tree-optimization/52631
14389 * tree-ssa-sccvn (visit_use): Before looking up the original
14390 statement, try looking up the simplified expression.
14392 2013-01-19 Anthony Green <green@moxielogic.com>
14394 * config/moxie/moxie.c (moxie_expand_prologue): Set
14395 current_function_static_stack_size.
14397 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14399 PR tree-optimization/56029
14400 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14401 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14403 2013-01-18 Sharad Singhai <singhai@google.com>
14405 PR tree-optimization/55995
14406 * dumpfile.c (dump_loc): Print location only if available.
14407 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14409 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14412 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14413 secondary memory move.
14414 (inherit_reload_reg): Use rclass instead of cl for
14415 check_secondary_memory_needed_p.
14417 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14419 PR middle-end/56015
14420 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
14421 the case where writing real complex part of target modifies op1.
14423 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14425 * config/aarch64/aarch64-simd.md
14426 (aarch64_vcond_internal<mode>): Handle unordered cases.
14427 * config/aarch64/iterators.md (v_cmp_result): New.
14429 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14430 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14432 * config/arm/marvell-pj4.md: New file.
14433 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14434 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14435 (generic_vfp): Likewise.
14436 * config/arm/arm-cores.def: Add marvell-pj4.
14437 * config/arm/arm-tune.md: Regenerate.
14438 * config/arm/arm-tables.opt: Regenerate.
14439 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14440 * doc/invoke.texi: Document marvell-pj4.
14442 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14444 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14446 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14451 * var-tracking.c (negative_power_of_two_p): New.
14452 (global_get_addr_cache, local_get_addr_cache): New.
14453 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14454 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14456 (vt_stack_offset_p): Remove.
14457 (vt_canon_true_dep): Always canonicalize loc's address.
14458 (clobber_overlapping_mems): Make sure we have a MEM.
14459 (local_get_addr_clear_given_value): New.
14460 (val_reset): Clear local cached entries.
14461 (compute_bb_dataflow): Create and release the local cache.
14462 Disable duplicate MEMs clobbering.
14463 (emit_notes_in_bb): Clobber MEMs likewise.
14464 (vt_emit_notes): Create and release the local cache.
14465 (vt_initialize, vt_finalize): Create and release the global
14466 cache, respectively.
14467 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
14469 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14471 PR libmudflap/53359
14472 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14473 not found in the symtab.
14475 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14478 PR rtl-optimization/55547
14479 PR rtl-optimization/53827
14482 * alias.c (offset_overlap_p): New, factored out of...
14483 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14484 the conservative special case for symbolic constants. Don't
14485 adjust zero sizes on alignment.
14487 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14489 PR rtl-optimization/52573
14490 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14491 REG_UNUSED for the same register.
14493 2013-01-17 Richard Biener <rguenther@suse.de>
14494 Marek Polacek <polacek@redhat.com>
14496 PR rtl-optimization/55833
14497 * loop-unswitch.c (unswitch_loops): Move loop verification...
14498 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14499 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14500 Set it to true when we're removing a loop from hierarchy tree in
14501 an irreducible region.
14502 (fix_bb_placements): Adjust caller.
14503 (fix_loop_placements): Likewise.
14505 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
14507 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14508 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14509 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14510 Remove ID. Adjust comments.
14511 * config/avr/avr-c.c (avr_builtin_name): Remove.
14512 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14513 * config/avr/avr.c (avr_tolower): New static function.
14514 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14515 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14516 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14519 2013-01-17 Jan Hubicka <jh@suse.cz>
14521 PR tree-optimization/55273
14522 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14524 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
14527 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14528 store through atomic_store<mode>_1.
14529 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14531 2013-01-17 Martin Jambor <mjambor@suse.cz>
14533 PR tree-optimizations/55264
14534 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14535 for virtual methods.
14536 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14537 virtual methods before inlining is over.
14538 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14540 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14543 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14545 PR rtl-optimization/56005
14546 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14547 pending reads for prefetch.
14549 2013-01-16 Ian Bolton <ian.bolton@arm.com>
14551 * config/aarch64/aarch64.md
14552 (*cstoresi_neg_uxtw): New pattern.
14553 (*cmovsi_insn_uxtw): New pattern.
14554 (*<optab>si3_uxtw): New pattern.
14555 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14556 (*<optab>si3_insn_uxtw): New pattern.
14557 (*bswapsi2_uxtw): New pattern.
14559 2013-01-16 Richard Biener <rguenther@suse.de>
14561 * tree-inline.c (tree_function_versioning): Remove set but
14562 never used variable.
14564 2013-01-16 Richard Biener <rguenther@suse.de>
14566 PR tree-optimization/55964
14567 * tree-flow.h (rename_variables_in_loop): Remove.
14568 (rename_variables_in_bb): Likewise.
14569 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14570 (copy_loop_before): Adjust and delete update-ssa status.
14571 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14572 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
14573 (rename_variables_in_loop): Remove.
14574 (slpeel_update_phis_for_duplicate_loop): Likewise.
14575 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14576 use available cfg machinery instead of duplicating it.
14577 Update PHI nodes and perform poor-mans SSA update here.
14578 (slpeel_tree_peel_loop_to_edge): Adjust.
14580 2013-01-16 Richard Biener <rguenther@suse.de>
14582 PR tree-optimization/54767
14583 PR tree-optimization/53465
14584 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14585 (vrp_visit_phi_node): For PHI arguments coming via backedges
14586 drop all symbolical range information.
14587 (execute_vrp): Compute backedges.
14589 2013-01-16 Richard Biener <rguenther@suse.de>
14591 * doc/install.texi: Update CLooG and ISL requirements to
14594 2013-01-16 Christian Bruel <christian.bruel@st.com>
14597 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14598 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14599 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14601 2013-01-16 DJ Delorie <dj@redhat.com>
14603 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14604 (UNSPECV_SP_SWITCH_E): New.
14605 (sp_switch_1): Change to an unspec.
14606 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14609 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
14611 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14612 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14613 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14614 (expand_mem_thread_fence): Ditto.
14615 (expand_mem_signal_fence): Ditto.
14616 (expand_atomic_load): Ditto.
14617 (expand_atomic_store): Ditto.
14619 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
14621 PR rtl-optimization/55547
14622 PR rtl-optimization/53827
14625 * alias.c (memrefs_conflict_p): Set sizes to negative after
14628 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14631 * function.c (thread_prologue_and_epilogue_insns): Always
14632 add crtl->drap_reg to set_up_by_prologue.set, even if
14633 stack_realign_drap is false.
14635 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14637 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14638 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14639 *call): Fix indention.
14641 2013-01-15 Tom de Vries <tom@codesourcery.com>
14644 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14647 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14649 PR rtl-optimization/55153
14650 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14652 2013-01-15 Martin Jambor <mjambor@suse.cz>
14654 PR tree-optimization/55920
14655 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14656 accesses as grp_to_be_debug_replaced.
14658 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14660 PR tree-optimization/55920
14661 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14662 there is non-useless type conversion needed from debug rhs to lhs,
14663 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14665 2013-01-15 Joseph Myers <joseph@codesourcery.com>
14666 Mikael Pettersson <mikpe@it.uu.se>
14669 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14671 (ASM_OUTPUT_CASE_LABEL): Remove.
14672 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14673 * final.c (shorten_branches): Update alignment of labels before
14674 jump tables if CASE_VECTOR_SHORTEN_MODE.
14676 2013-01-15 Richard Biener <rguenther@suse.de>
14679 * system.h: Do not include gmp.h for building host tools.
14681 2013-01-15 Richard Biener <rguenther@suse.de>
14683 PR middle-end/55882
14684 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14685 account for bitpos when computing alignment.
14687 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14689 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14690 (ix86_target_macros_internal): Likewise.
14692 * config/i386/i386.c (m_CORE2I7): Removed.
14693 (m_CORE_HASWELL): New macro.
14694 (m_CORE_ALL): Likewise.
14695 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14696 (initial_ix86_arch_features): Likewise.
14697 (processor_target_table): Initializations for Core avx2.
14698 (cpu_names): New names "core-avx2".
14699 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14700 PROCESSOR_CORE_HASWELL.
14701 (ix86_issue_rate): New case.
14702 (ia32_multipass_dfa_lookahead): Likewise.
14703 (ix86_sched_init_global): Likewise.
14705 * config/i386/i386.h (TARGET_HASWELL): New macro.
14706 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14707 (processor_type): New PROCESSOR_HASWELL.
14709 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14711 PR tree-optimization/55955
14712 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14713 *SHIFT_EXPR and *ROTATE_EXPR codes.
14715 PR tree-optimization/48766
14716 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14717 -ftrapv disable -fwrapv.
14719 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14722 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14723 etc. to 1 and not to __flash.
14724 Use LL suffix for __INT24_MAX__ with -mint8.
14725 Use ULL suffix for __UINT24_MAX__ with -mint8.
14727 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14729 * config/avr/avr-arch.h
14730 (struct base_arch_s): Use typedef avr_arch_t instead.
14731 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14732 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14733 * config/avr/avr.c: Same.
14734 * config/avr/avr-devices.c: Same.
14735 * config/avr/driver-avr.c: Same.
14736 * config/avr/gen-avr-mmcu-texi.c: Same.
14737 * config/avr/avr-mcus.def: Adjust comment.
14739 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14741 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14742 * config/aarch64/iterators.md (VALLDI): New.
14744 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
14745 Andi Kleen <ak@linux.intel.com>
14748 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14749 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14752 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14754 * config/avr/avr-stdint.h: Remove trailing blanks.
14755 * config/avr/avr-log.h: Same.
14756 * config/avr/avr-arch.h: Same.
14757 * config/avr/avr-devices.c: Same.
14758 * config/avr/avr-dimode.md: Same.
14759 * config/avr/predicates.md: Same.
14760 * config/avr/avr-c.c: Same. And fix typo.
14762 * config/avr/avr-protos.h: Same. And:
14763 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14764 (init_cumulative_args): Rename to avr_init_cumulative_args.
14765 (expand_prologue): Rename to avr_expand_prologue.
14766 (expand_epilogue): Rename to avr_expand_epilogue.
14767 (adjust_insn_length): Rename to avr_adjust_insn_length.
14768 (notice_update_cc): Rename to avr_notice_update_cc.
14769 (final_prescan_insn): Rename to avr_final_prescan_insn.
14770 * config/avr/avr.c: Same.
14771 * config/avr/avr.h: Same.
14772 * config/avr/avr.md: Remove trailing blanks.
14773 (prologue): Use avr_expand_prologue.
14774 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14776 2013-01-14 Richard Biener <rguenther@suse.de>
14778 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14779 verify_location, collect_subblocks): New functions.
14780 (verify_gimple_in_cfg): Verify that locations only reference
14781 BLOCKs in the functions BLOCK tree.
14783 2013-01-14 Richard Biener <rguenther@suse.de>
14785 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14787 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14789 (insert_out_of_ssa_copy_on_edge): Likewise.
14790 (rewrite_close_phi_out_of_ssa): Likewise.
14791 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14793 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14794 propagated constants.
14795 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14798 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14800 * config/avr/avr-modes.def: Add GPL copyright notice.
14802 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
14804 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14805 MEMMODEL_MASK to determine memory model.
14806 (atomic_store<mode>): Ditto from operands[2].
14807 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14809 2013-01-13 Jakub Jelinek <jakub@redhat.com>
14812 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14813 (fold_gimple_assign): Don't call unshare_expr here.
14814 (fold_ctor_reference): Call unshare_expr.
14816 2013-01-13 Terry Guo <terry.guo@arm.com>
14818 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14819 * doc/fragments.texi: Document MULTILIB_REUSE.
14820 * gcc.c (multilib_reuse): New internal spec.
14821 (set_multilib_dir): Also search multilib from multilib_reuse.
14822 * genmultilib (tmpmultilib3): Refactor code.
14823 (tmpmultilib4): Ditto.
14824 (multilib_reuse): New multilib argument.
14826 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14828 * Makefile.in: Update copyright.
14830 2013-01-12 Tom de Vries <tom@codesourcery.com>
14832 PR middle-end/55890
14833 * calls.c (expand_call): Check if arg_nr is valid.
14835 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14837 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14838 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14839 documentation. Add missing '__' in front of
14840 __builtin_ia32_packssdw256.
14842 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14845 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14846 NO_REGS for larl operands.
14847 (s390_reload_larl_operand): Use s390_load_address instead of
14850 2013-01-11 Richard Biener <rguenther@suse.de>
14852 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14853 (verify_node_sharing): ... here.
14854 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14856 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14858 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14859 Substitute TREECHECKING.
14860 * configure: Regenerate.
14861 * Makefile.in (TREECHECKING): New.
14863 2013-01-11 Richard Guenther <rguenther@suse.de>
14865 PR tree-optimization/44061
14866 * tree-vrp.c (extract_range_basic): Compute zero as
14867 value-range for __builtin_constant_p of function parameters.
14869 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14871 Update copyright years.
14873 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14875 PR rtl-optimization/55672
14876 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14877 const to be eliminable.
14879 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
14881 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14882 * configure: Regenerate.
14884 2013-01-10 Richard Biener <rguenther@suse.de>
14886 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14888 2013-01-10 Richard Biener <rguenther@suse.de>
14891 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14892 locations for virtual PHI arguments.
14893 (rewrite_update_phi_arguments): Likewise.
14895 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14897 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14900 2013-01-10 Jakub Jelinek <jakub@redhat.com>
14902 PR tree-optimization/55921
14903 * tree-complex.c (expand_complex_asm): New function.
14904 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14906 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14909 * config/s390/s390.c (s390_symref_operand_p)
14910 (s390_loadrelative_operand_p): Merge the two functions.
14911 (s390_check_qrst_address, print_operand_address): Add parameters
14912 to s390_loadrelative_operand_p invokation.
14913 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14914 (s390_reload_larl_operand, s390_secondary_reload): Use
14915 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14916 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14918 2013-01-09 Mike Stump <mikestump@comcast.net>
14920 * dse.c (record_store): Remove unnecessary assert.
14922 2013-01-09 Jan Hubicka <jh@suse.cz>
14924 PR tree-optimization/55569
14925 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14926 * cfgloop.h (scale_loop_profile): Likewise.
14928 2013-01-09 Jan Hubicka <jh@suse.cz>
14931 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14933 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14935 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14937 PR middle-end/55114
14938 * expr.h (maybe_emit_group_store): Declare.
14939 * expr.c (maybe_emit_group_store): New function.
14940 * builtins.c (expand_builtin_int_roundingfn): Call it.
14941 (expand_builtin_int_roundingfn_2): Likewise.
14943 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14945 PR rtl-optimization/55829
14946 * lra-constraints.c (match_reload): Add code for absent output.
14947 (curr_insn_transform): Add code for reloads of matched inputs
14950 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
14952 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14953 attribute of movddup insn to DF.
14954 (*vec_interleave_lowv2df): Ditto.
14955 (vec_dupv2df): Ditto.
14957 2013-01-09 Jan Hubicka <jh@suse.cz>
14959 PR tree-optimiation/55875
14960 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14961 EVERY_ITERATION parameter.
14962 (number_of_iterations_exit): Check if exit is executed every iteration.
14963 (idx_infer_loop_bounds): Similarly here.
14964 (n_of_executions_at_most): Simplify
14965 to only test for cases where statement is dominated by the
14966 particular bound; handle correctly the "postdominance" test.
14967 (scev_probably_wraps_p): Use max loop iterations info
14968 as a global bound first.
14970 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
14971 Nick Clifton <nickc@redhat.com>
14973 * config/v850/v850.md (cbranchsf4): New pattern.
14974 (cstoresf4): New pattern.
14975 (cbranchdf4): New pattern.
14976 (cstoredf4): New pattern.
14977 (movsicc): Disallow floating point comparisons.
14978 (cmpsf_le_insn): Fix order of operators.
14979 (cmpsf_lt_insn): Likewise.
14980 (cmpsf_eq_insn): Likewise.
14981 (cmpdf_le_insn): Likewise.
14982 (cmpdf_lt_insn): Likewise.
14983 (cmpdf_eq_insn): Likewise.
14984 (cmpsf_ge_insn): Use LE comparison.
14985 (cmpdf_ge_insn): Likewise.
14986 (cmpsf_gt_insn): Use LT comparison.
14987 (cmpdf_gt_insn): Likewise.
14988 (cmpsf_ne_insn): Delete pattern.
14989 (cmpdf_ne_insn): Delete pattern.
14990 * config/v850/v850.c (v850_gen_float_compare): Use
14991 gen_cmpdf_eq_insn for NE comparison.
14992 (v850_float_z_comparison_operator)
14993 (v850_float_nz_comparison_operator): Move from here ...
14994 * config/v850/predicates.md: ... to here. Move GT and GE
14995 comparisons into v850_float_z_comparison_operator.
14996 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14998 (v850_float_nz_comparison_operator): Likewise.
15000 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15002 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
15003 with calls to gen_insvsi/gen_insvdi.
15005 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15007 * config/i386/i386.c (initial_ix86_tune_features): Set up
15008 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
15010 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
15011 Jakub Jelinek <jakub@redhat.com>
15013 PR tree-optimization/48189
15014 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
15015 If nitercst is 0, don't predict the exit edge.
15017 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15019 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
15020 in asm_fprintf with reg_names.
15021 (aarch64_print_operand_address): Likewise.
15022 (aarch64_return_addr): Likewise.
15023 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
15025 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15027 * config/pa/pa.h (VAL_U6_BITS_P): Define.
15028 (INT_U6_BITS): Likewise.
15029 * config/pa/predicates.md (uint6_operand): New predicate.
15030 (shift5_operand, shift6_operand): Likewise.
15031 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
15033 (lshrdi3): Use shift6_operand.
15034 (shrpsi4, shrpdi4): New insn patterns.
15035 (extzv): Delete expander.
15036 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
15037 predicates in unamed zero extract patterns. Tighten common constraint.
15038 (extv): Delete expander.
15039 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
15040 predicates in unamed sign extract patterns. Tighten common constraint.
15041 (insv): Delete expander.
15042 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
15043 predicates in unamed insert patterns. Tighten common constraint.
15044 Change uint32_operand predicate to uint6_operand predicate in unamed
15045 DImode pattern to insert constant values of type 1...1xxxx.
15047 2013-01-04 Jan Hubicka <jh@suse.cz>
15049 PR tree-optimization/55823
15050 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
15053 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15054 Uros Bizjak <ubizjak@gmail.com>
15056 PR rtl-optimization/55845
15057 * df-problems.c (can_move_insns_across): Stop scanning at
15058 volatile_insn_p source instruction or give up if
15059 across_from .. across_to range contains any volatile_insn_p
15062 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
15064 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
15065 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
15067 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
15068 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
15070 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15073 * asan.c (asan_clear_shadow): New function.
15074 (asan_emit_stack_protection): Use it.
15076 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
15078 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
15079 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
15080 with tab instead of space.
15082 2013-01-08 Nick Clifton <nickc@redhat.com>
15084 * config/rl78/rl78.c (rl78_expand_prologue): Always select
15085 register bank 0 at the start of an interrupt handler.
15086 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
15089 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15091 * config/aarch64/aarch64-simd.md
15092 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
15093 (aarch64_simd_bsl): Likewise.
15094 (aarch64_vcond_internal<mode>): Likewise.
15095 (vcond<mode><mode>): Likewise.
15096 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
15097 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
15099 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15101 * config/aarch64/aarch64-builtins.c
15102 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
15104 2013-01-08 Martin Jambor <mjambor@suse.cz>
15107 * tree-sra.c (analyze_access_subtree): Return true also after
15108 potentially creating a debug-only replacement.
15110 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15112 PR middle-end/55890
15113 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
15115 PR tree-optimization/54120
15116 * tree-vrp.c (range_fits_type_p): Don't allow
15117 src_precision < precision from signed vr to unsigned_p
15118 if vr->min or vr->max is negative.
15119 (simplify_float_conversion_using_ranges): Test can_float_p
15120 against CODE_FOR_nothing.
15122 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15123 Richard Biener <rguenther@suse.de>
15125 PR middle-end/55851
15126 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
15127 types instead of just INTEGER_TYPE types.
15129 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
15131 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
15134 2013-01-07 Steve Ellcey <sellcey@mips.com>
15137 * config/mips/mips.opt: Change mad to mmad to match documentation.
15139 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15142 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
15143 .progmemx.data now.
15145 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15148 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
15149 (avr_addrspace_t): Add .section_name field.
15150 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
15152 (avr_addrspace): Same. Initialize .section_name. Remove last
15153 NULL entry. Put __memx into .progmemx.data.
15154 (progmem_section_prefix): Remove.
15155 (avr_asm_init_sections): No need to initialize progmem_section.
15156 (avr_asm_named_section): Use avr_addrspace[].section_name to get
15157 section name prefix.
15158 (avr_asm_select_section): Ditto. And use get_unnamed_section to
15159 retrieve the progmem section.
15160 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
15161 boundary to run over avr_addrspace[].
15162 (avr_register_target_pragmas): Ditto.
15164 2013-01-06 Jakub Jelinek <jakub@redhat.com>
15166 * varasm.c (output_constant_def_contents): For asan_protect_global
15167 protected strings, adjust DECL_ALIGN if needed, before testing for
15169 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
15170 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
15172 (output_object_block): For asan protected decls, emit asan padding
15173 after their contents.
15174 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
15175 (asan_finish_file): Test it here instead.
15177 2013-01-07 Nick Clifton <nickc@redhat.com>
15178 Matthias Klose <doko@debian.org>
15179 Doug Kwan <dougkwan@google.com>
15180 H.J. Lu <hongjiu.lu@intel.com>
15183 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
15185 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
15187 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
15189 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
15191 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
15193 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15196 * doc/install.texi (Cross-Compiler-Specific Options): Document
15199 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
15201 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
15202 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
15203 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
15204 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15205 vqmovun_high_s64): Fix source operand number and update copyright.
15207 2013-01-07 Richard Biener <rguenther@suse.de>
15209 PR middle-end/55890
15210 * gimple.h (gimple_call_builtin_p): New overload.
15211 * gimple.c (validate_call): New function.
15212 (gimple_call_builtin_p): Likewise.
15213 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15214 Use gimple_call_builtin_p.
15215 (find_func_clobbers): Likewise.
15216 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15217 (strlen_optimize_stmt): Likewise.
15219 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15221 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15222 (vld1q_dup_*): Likewise.
15223 (vld1_*): Likewise.
15224 (vld1q_*): Likewise.
15225 (vld1_lane_*): Likewise.
15226 (vld1q_lane_*): Likewise.
15228 2013-01-07 Richard Biener <rguenther@suse.de>
15230 * lto-streamer.h (LTO_minor_version): Bump to 2.
15232 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15234 * config/aarch64/aarch64-protos.h
15235 (aarch64_const_double_zero_rtx_p): Rename to...
15236 (aarch64_float_const_zero_rtx_p): ...this.
15237 (aarch64_float_const_representable_p): New.
15238 (aarch64_output_simd_mov_immediate): Likewise.
15239 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15240 move immediate case.
15241 * config/aarch64/aarch64.c
15242 (aarch64_const_double_zero_rtx_p): Rename to...
15243 (aarch64_float_const_zero_rtx_p): ...this.
15244 (aarch64_print_operand): Allow printing of new constants.
15245 (aarch64_valid_floating_const): New.
15246 (aarch64_legitimate_constant_p): Check for valid floating-point
15248 (aarch64_simd_valid_immediate): Likewise.
15249 (aarch64_vect_float_const_representable_p): New.
15250 (aarch64_float_const_representable_p): Likewise.
15251 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15252 (aarch64_output_simd_mov_immediate): New.
15253 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15254 (*movdf_aarch64): Likewise.
15255 * config/aarch64/constraints.md (Ufc): New.
15256 (Y): call aarch64_float_const_zero_rtx.
15257 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15259 2013-01-07 Richard Biener <rguenther@suse.de>
15261 PR tree-optimization/55888
15262 PR tree-optimization/55862
15263 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15264 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15265 not if it is contained therein.
15267 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15269 * config/avr/t-avr: Typo.
15271 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15274 * config/avr/t-avr: Don't automatically rebuild
15275 $(srcdir)/config/avr/t-multilib
15276 $(srcdir)/config/avr/avr-tables.opt
15277 $(srcdir)/doc/avr-mmcu.texi
15278 (avr-mcus): New phony target to build them on request.
15279 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15280 * avr/avr-mcus.def: Adjust comments.
15282 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
15284 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15286 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15288 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15290 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15292 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15294 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
15296 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15297 to generate profiling.
15298 * config/rs6000/aix64.h (LIB_SPEC): Same.
15300 2013-01-04 Andrew Pinski <apinski@cavium.com>
15302 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15304 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15306 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
15308 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15310 (ix86_expand_move): Ditto.
15311 (ix86_zero_extend_to_Pmode): Ditto.
15312 (ix86_expand_call): Ditto.
15313 (ix86_expand_special_args_builtin): Ditto.
15314 (ix86_expand_builtin): Ditto.
15316 2013-01-04 Richard Biener <rguenther@suse.de>
15318 PR tree-optimization/55862
15319 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15320 translating them through PHI nodes.
15322 2013-01-04 Martin Jambor <mjambor@suse.cz>
15324 PR tree-optimization/55755
15325 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15326 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15328 2013-01-04 Marek Polacek <polacek@redhat.com>
15330 PR middle-end/55859
15331 * opts.c (default_options_optimization): Clarify error message.
15333 2013-01-04 Richard Biener <rguenther@suse.de>
15335 PR middle-end/55863
15336 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15339 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15342 * config/pa/pa.md (movsi): Revert previous change.
15343 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15346 2013-01-03 Richard Henderson <rth@redhat.com>
15348 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15349 after eliminating TLS symbols.
15351 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
15354 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15355 * graphite-poly.c (debug_gmp_value): Likewise.
15357 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
15360 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15361 selected code model, define __code_mode_small__, __code_model_medium__,
15362 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15363 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15364 xchg temporary register with %k. Declare temporary register as
15366 [__x86_64__]: For medium and large code models, preserve %rbx register.
15368 2013-01-03 Richard Biener <rguenther@suse.de>
15370 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
15371 (dump_subscript): Adjust.
15372 (finalize_ddr_dependent): Do not dump redundant info.
15373 (analyze_siv_subscript): Adjust.
15374 (subscript_dependence_tester): Likewise.
15375 (compute_affine_dependence): Likewise.
15377 2013-01-03 Richard Biener <rguenther@suse.de>
15380 2013-01-03 Richard Biener <rguenther@suse.de>
15382 PR tree-optimization/55857
15383 * tree-vect-stmts.c (vectorizable_load): Do not setup
15384 re-alignment for invariant loads.
15386 2013-01-02 Richard Biener <rguenther@suse.de>
15388 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15389 invariant load do not generate a vector load from the scalar location.
15391 2013-01-03 Richard Biener <rguenther@suse.de>
15393 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15394 for not vectorizing.
15395 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15396 not build INDIRECT_REFs, call get_name once only.
15397 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15398 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15400 2013-01-03 Richard Biener <rguenther@suse.de>
15402 PR tree-optimization/55857
15403 * tree-vect-stmts.c (vectorizable_load): Do not setup
15404 re-alignment for invariant loads.
15406 2013-01-03 Richard Biener <rguenther@suse.de>
15409 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15410 prefer a built-in decl.
15412 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15414 * gcc.c (process_command): Update copyright notice dates.
15415 * gcov.c (print_version): Likewise.
15416 * gcov-dump.c (print_version): Likewise.
15418 PR rtl-optimization/55838
15419 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15420 iv0.step, iv1.step and step.
15422 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15423 Marc Glisse <marc.glisse@inria.fr>
15425 PR tree-optimization/55832
15426 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15427 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15428 integer_{one,zero}_node.
15430 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15433 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15434 * var-tracking.c (reverse_op): Don't add reverse ops to
15435 VALUEs that have already
15436 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
15438 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15440 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15442 2013-01-02 Teresa Johnson <tejohnson@google.com>
15444 * dumpfile.c (dump_loc): Print filename with location.
15445 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15446 new location_t parameter to emit complete unroll message with
15447 new dump framework.
15448 (canonicalize_loop_induction_variables): Compute loops location
15449 and pass to try_unroll_loop_completely.
15450 * loop-unroll.c (report_unroll_peel): New function.
15451 (peel_loops_completely): Use new dump format with location
15452 for main dumpfile message, and invoke report_unroll_peel on success.
15453 (decide_unrolling_and_peeling): Ditto.
15454 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15455 by report_unroll_peel.
15456 (decide_peel_completely): Ditto.
15457 (decide_unroll_constant_iterations): Ditto.
15458 (decide_unroll_runtime_iterations): Ditto.
15459 (decide_peel_simple): Ditto.
15460 (decide_unroll_stupid): Ditto.
15461 * cfgloop.c (get_loop_location): New function.
15462 * cfgloop.h (get_loop_location): Declare.
15464 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15466 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15469 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15471 PR middle-end/55198
15472 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15473 BLKmode objects when EXPAND_MEMORY is specified.
15475 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15477 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15479 (fold_builtin_cpu): Do not share cpu model decls across statements.
15481 2013-01-02 Jason Merrill <jason@redhat.com>
15484 * tree.c (build_array_type_1): Revert earlier change.
15486 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15488 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15490 * config/aarch64/aarch64-tune.md: Re-generate.
15492 2013-01-02 Richard Biener <rguenther@suse.de>
15494 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15495 invariant load do not generate a vector load from the scalar location.
15497 2013-01-02 Richard Biener <rguenther@suse.de>
15500 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15501 * configure: Regenerate.
15503 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15505 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15506 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15507 (expand_builtin_int_roundingfn_2): Keep the original target around
15508 for the fallback case.
15510 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15512 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15513 to be clear for sign changes.
15515 2013-01-01 Jan Hubicka <jh@suse.cz>
15517 * ipa-inline-analysis.c: Fix formatting.
15519 2013-01-01 Jakub Jelinek <jakub@redhat.com>
15521 PR tree-optimization/55831
15522 * tree-vect-loop.c (get_initial_def_for_induction): Use
15523 gsi_after_labels instead of gsi_start_bb.
15525 Copyright (C) 2013 Free Software Foundation, Inc.
15527 Copying and distribution of this file, with or without modification,
15528 are permitted in any medium without royalty provided the copyright
15529 notice and this notice are preserved.