1 2013-07-26 Ian Bolton <ian.bolton@arm.com>
3 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
5 * config/aarch64/iterators.md: Add attributes rtn and vas.
7 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8 Richard Earnshaw <richard.earnshaw@arm.com>
10 * combine.c (simplify_comparison): Re-canonicalize operands
12 * config/arm/arm.md (movcond_addsi): New splitter.
14 2013-07-25 Sterling Augustine <saugustine@google.com>
16 * dwarf2out.c (size_of_pubnames): Move code to...
17 (include_pubname_in_output): ...here. New.
18 (want_pubnames): Rearrange.
19 (output_pubnames): Call include_pubname_in_output. Move assertion.
21 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
25 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
28 * doc/extend.texi: Remove obsolete builtins. Fix
29 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
31 2013-07-25 Jan Hubicka <jh@suse.cz>
33 * cgraph.c (release_function_body): Break out from ...
34 (cgraph_release_function_body): ... this one; also release DECL_RESULT
36 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
38 (create_specialized_node): Update.
39 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
41 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
42 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
43 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
44 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
47 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
49 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
50 addsi3_carryin_alt2_<optab>): Correct output template.
52 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
54 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
55 Adjust for arm_restrict_it.
56 Remove trailing whitespace.
58 2013-07-25 Mark Kettenis <kettenis@openbsd.org>
60 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
61 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
63 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
65 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
67 PR rtl-optimization/57960
68 * lra-constraints.c (process_alt_operands): Use the right mode
69 when checking strict_low.
71 2013-07-25 Jan Hubicka <jh@suse.cz>
73 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
74 * cgraph.c (cgraph_remove_node): Do not release function body
75 when in cgraph streaming.
76 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
77 in other partitions are not considered reachable; fix handling of
80 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
82 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
84 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
89 * config/arm/arm.md ("*sibcall_insn): Replace use of
90 Ss with US. Adjust output for v5 and v4t.
91 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
93 * config/arm/constraints.md ("Ss"): Rename to US.
95 2013-07-25 Terry Guo <terry.guo@arm.com>
97 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
98 shift_add/shift_sub0/shift_sub1 RTXs.
100 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
101 Anton Blanchard <anton@au1.ibm.com>
103 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
104 (altivec_vpks<VI_char>ss): Likewise.
105 (altivec_vpks<VI_char>us): Likewise.
106 (altivec_vpku<VI_char>us): Likewise.
107 (altivec_vpku<VI_char>um): Likewise.
109 2013-07-24 David Malcolm <dmalcolm@redhat.com>
111 Introduce context class.
113 * Makefile.in (CONTEXT_H): New.
114 (OBJS): Add context.o.
115 (toplev.o): Add CONTEXT_H to dependencies.
118 * toplev.c (general_init): Create the singleton gcc::context instance.
124 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
126 PR rtl-optimization/57968
127 * mode-switching.c (create_pre_exit): Allow instructions that
128 don't set a return register to need a non-exit mode.
130 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
131 Anton Blanchard <anton@au1.ibm.com>
133 * vector.md (vec_realign_load_<mode>): Reorder input operands to
134 vperm for little endian.
135 * rs6000.c (rs6000_expand_builtin): Use lvsr instead of lvsl to
136 create the control mask for a vperm for little endian.
138 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
139 Anton Blanchard <anton@au1.ibm.com>
141 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
142 two operands for little-endian.
144 2013-07-23 Steve Ellcey <sellcey@mips.com>
146 * config/mips/mips.c (mips_case_values_threshold): New.
147 (TARGET_CASE_VALUES_THRESHOLD): Define.
149 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
150 Anton Blanchard <anton@au1.ibm.com>
152 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
153 selection of field for vector splat in little endian mode.
155 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
157 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
158 expanders to rs6000.md.
159 (ior<mode>3): Likewise.
160 (and<mode>3): Likewise.
161 (one_cmpl<mode>2): Likewise.
162 (nor<mode>3): Likewise.
163 (andc<mode>3): Likewise.
164 (eqv<mode>3): Likewise.
165 (nand<mode>3): Likewise.
166 (orc<mode>3): Likewise.
168 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
171 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
172 to split multi-word logical operations.
173 (rs6000_split_logical_di): Likewise.
174 (rs6000_split_logical): Likewise.
176 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
177 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
178 and allow TImode operations in 32-bit.
179 (vsx_and<mode>3_64bit): Likewise.
180 (vsx_ior<mode>3_32bit): Likewise.
181 (vsx_ior<mode>3_64bit): Likewise.
182 (vsx_xor<mode>3_32bit): Likewise.
183 (vsx_xor<mode>3_64bit): Likewise.
184 (vsx_one_cmpl<mode>2_32bit): Likewise.
185 (vsx_one_cmpl<mode>2_64bit): Likewise.
186 (vsx_nor<mode>3_32bit): Likewise.
187 (vsx_nor<mode>3_64bit): Likewise.
188 (vsx_andc<mode>3_32bit): Likewise.
189 (vsx_andc<mode>3_64bit): Likewise.
190 (vsx_eqv<mode>3_32bit): Likewise.
191 (vsx_eqv<mode>3_64bit): Likewise.
192 (vsx_nand<mode>3_32bit): Likewise.
193 (vsx_nand<mode>3_64bit): Likewise.
194 (vsx_orc<mode>3_32bit): Likewise.
195 (vsx_orc<mode>3_64bit): Likewise.
197 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
198 logical types in GPRs.
200 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
201 logical insns to rs6000.md, and allow TImode operations in
203 (altivec_ior<mode>3): Likewise.
204 (altivec_xor<mode>3): Likewise.
205 (altivec_one_cmpl<mode>2): Likewise.
206 (altivec_nor<mode>3): Likewise.
207 (altivec_andc<mode>3): Likewise.
209 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
210 attributes for moving the 128-bit logical operations into
212 (BOOL_REGS_OUTPUT): Likewise.
213 (BOOL_REGS_OP1): Likewise.
214 (BOOL_REGS_OP2): Likewise.
215 (BOOL_REGS_UNARY): Likewise.
216 (BOOL_REGS_AND_CR0): Likewise.
217 (one_cmpl<mode>2): Add support for DI logical operations on
218 32-bit, splitting the operations to 32-bit.
222 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
223 changes to combine the 32/64-bit code, allow logical operations on
224 TI mode in 32-bit, and to use similar match_operator patterns like
225 scalar mode uses. Combine the Altivec and VSX code for logical
226 operations, and move it here.
227 (ior<mode>3, 128-bit types): Likewise.
228 (xor<mode>3, 128-bit types): Likewise.
229 (one_cmpl<mode>3, 128-bit types): Likewise.
230 (nor<mode>3, 128-bit types): Likewise.
231 (andc<mode>3, 128-bit types): Likewise.
232 (eqv<mode>3, 128-bit types): Likewise.
233 (nand<mode>3, 128-bit types): Likewise.
234 (orc<mode>3, 128-bit types): Likewise.
235 (and<mode>3_internal): Likewise.
236 (bool<mode>3_internal): Likewise.
237 (boolc<mode>3_internal1): Likewise.
238 (boolc<mode>3_internal2): Likewise.
239 (boolcc<mode>3_internal1): Likewise.
240 (boolcc<mode>3_internal2): Likewise.
241 (eqv<mode>3_internal1): Likewise.
242 (eqv<mode>3_internal2): Likewise.
243 (one_cmpl1<mode>3_internal): Likewise.
245 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
247 * config/microblaze/microblaze.c (microblaze_expand_prologue):
248 Rename flag_stack_usage to flag_stack_usage_info.
250 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
252 * config/microblaze/sync.md: New file.
253 * config/microblaze/microblaze.md: Include sync.md
254 * config/microblaze/microblaze.c: Add print_operand 'y'.
255 * config/microblaze/constraints.md: Add memory_contraint
256 'Q' which is a single register.
258 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
260 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
262 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
264 * reload.c (find_reloads): Exit loop once we find this operand
265 cannot be reloaded somehow for this alternative.
267 * reload.c (find_reloads): Exit loop once we find a hard register.
269 * rtlanal.c (computed_jump_p): Exit loop once we find label
272 * i386.c (ix86_pad_returns): Exit loop after setting replace.
274 * cfgloopmanip.c (remove_path): Exit loop after setting
277 * gensupport.c (subst_dup): Avoid loop if code is not
278 MATCH_DUP nor MATCH_OP_DUP.
280 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
282 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
284 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
286 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
287 true for SP_REGNUM if mode == ptr_mode.
288 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
289 with value R0_REGNUM + 31.
291 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
293 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
294 pad pointer-typed argument downward.
296 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
298 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
299 and __ILP32__ when the ILP32 model is in use.
301 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
303 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
304 (aarch64_load_symref_appropriately): In the case of
305 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
306 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
307 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
308 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
309 if 'mode' doesn't equal to 'ptr_mode'.
310 (aarch64_output_mi_thunk): Add an assertion on the alignment of
311 'vcall_offset'; change to call aarch64_emit_move differently depending
312 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
313 to calculate the upper bound of 'vcall_offset'.
314 (aarch64_cannot_force_const_mem): Change to also return true if
316 (aarch64_legitimize_reload_address): In the case of large
317 displacements, add new local variable 'xmode' and an assertion
318 based on it; change to use 'xmode' to generate the new rtx and
320 (aarch64_asm_trampoline_template): Change to generate the template
321 differently depending on TARGET_ILP32 or not; change to use
322 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
323 (aarch64_trampoline_size): Removed.
324 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
325 and replace immediate literals with it. Change to use 'ptr_mode'
326 instead of 'DImode' and call convert_memory_address if the mode
327 of 'fnaddr' doesn't equal to 'ptr_mode'.
328 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
330 (aarch64_elf_asm_destructor): Likewise.
331 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
332 on TARGET_ILP32 instead of aarch64_trampoline_size.
333 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
334 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
335 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
336 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
337 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
338 (storewb_pair<GPI:mode>_<P:mode>): ... this.
339 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
340 depending on the value of 'mode'.
341 (add_losym_<mode>): New.
342 (ldr_got_small_<mode>): New, based on ldr_got_small.
343 (ldr_got_small): Remove.
344 (ldr_got_small_sidi): New.
345 * config/aarch64/iterators.md (P): New.
346 (PTR): Change to 'ptr_mode' in the condition.
348 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
350 * config.gcc (aarch64*-*-*): Support --with-abi.
351 (aarch64*-*-elf): Support --with-multilib-list.
352 (aarch64*-*-linux*): Likewise.
353 (supported_defaults): Add abi to aarch64*-*-*.
354 * configure.ac: Mention AArch64 for --with-multilib-list.
355 * configure: Re-generated.
356 * config/aarch64/biarchilp32.h: New file.
357 * config/aarch64/biarchlp64.h: New file.
358 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
360 (MULTILIB_DEFAULTS): Ditto.
361 (DRIVER_SELF_SPECS): Ditto.
362 (ASM_SPEC): Update to also substitute -mabi.
363 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
364 file whose name depends on -mabi= and -mbig-endian.
365 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
367 (POINTER_SIZE): New define.
368 (POINTERS_EXTEND_UNSIGNED): Ditto.
369 (enum aarch64_abi_type): New enumeration tag.
370 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
371 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
372 (TARGET_ILP32): New define.
373 * config/aarch64/aarch64.opt (mabi): New.
375 (ilp32, lp64): New values for -mabi.
376 * config/aarch64/t-aarch64 (comma): New define.
377 (MULTILIB_OPTIONS): Ditto.
378 (MULTILIB_DIRNAMES): Ditto.
379 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
380 * doc/invoke.texi: Document -mabi for AArch64.
382 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
384 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
386 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
387 Anton Blanchard <anton@au1.ibm.com>
389 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
390 endianness when selecting field to splat.
392 2013-07-22 Eric Christopher <echristo@gmail.com>
394 * dwarf2out.c (die_odr_checksum): New function to use
395 CHECKSUM_ macros and ULEB128 for DIE tag.
396 (generate_type_signature): Use.
398 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
400 * config.gcc (sparc*-*-*): Accept leon3 processor.
401 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
402 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
403 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
404 * config/sparc/sparc.opt (enum processor_type): Add leon3.
405 (mfix-ut699): Adjust comment.
406 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
407 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
408 (CPP_CPU_SPEC): Likewise.
409 (ASM_CPU_SPEC): Likewise.
410 * config/sparc/sparc.c (leon3_cost): New constant.
411 (sparc_option_override): Add leon3 support.
412 (mem_ref): New function.
413 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
414 (sparc_do_work_around_errata): Look into the instruction in the delay
415 slot and adjust accordingly. Add fix for the data cache nullify issues
416 of the UT699. Change insertion position for the NOP.
417 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
418 (leon3_load): New reservation.
419 (leon_store): Bump latency to 2.
420 (grfpu): New automaton.
421 (grfpu_alu): New unit.
422 (grfpu_ds): Likewise.
423 (leon_fp_alu): Adjust.
424 (leon_fp_mult): Delete.
425 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
426 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
427 * config/sparc/sparc.md (cpu): Add leon3.
428 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
430 (atomic_test_and_set): Likewise.
433 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
435 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
436 default for R5900 targets.
437 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
438 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
439 * config/mips/mips.c (mips_option_override): Report an error for
440 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
441 for -march=r5900 -mhard-float.
443 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
445 * df-problems.c (can_move_insns_across): Exit loop once we
446 find a non-fixed, non-global register.
448 * ipa-pure-const.c (propagate_nothrow): Exit loop after
451 * omega.c (omega_eliminate_red): Break after setting red_found.
452 (omega_problem_has_red_equations): Similarly after setting found.
453 (omega_query_variable): Similarly after setting coupled.
455 2013-07-22 Marek Polacek <polacek@redhat.com>
457 * gimplify.c: Don't include gimple.h twice.
459 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
461 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
462 instead of TARGET_THUMB1.
463 (Pz): New constraint.
464 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
466 (compare_negsi_si): Likewise.
467 (compare_addsi2_op0): Likewise.
468 (compare_addsi2_op1): Likewise.
469 (addsi3_carryin_<optab>): Likewise.
470 (addsi3_carryin_alt2_<optab>): Likewise.
471 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
473 (subsi3_carryin): Likewise.
474 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
475 (minmax_arithsi): Disable for arm_restrict_it.
476 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
477 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
478 (satsi_<SAT:code>_shift): Likewise.
479 (arm_shiftsi3): Add alternative for 16-bit encoding.
480 (arm32_movhf): Disable for arm_restrict_it.
481 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
482 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
484 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
486 * config/arm/arm.md (attribute "insn"): Delete.
487 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
488 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
489 (not_shiftsi): Update for attribute change.
490 (not_shiftsi_compare0): Likewise.
491 (not_shiftsi_compare0_scratch): Likewise.
492 (arm_one_cmplsi2): Likewise.
493 (thumb1_one_cmplsi2): Likewise.
494 (notsi_compare0): Likewise.
495 (notsi_compare0_scratch): Likewise.
496 (thumb1_movdi_insn): Likewise.
497 (arm_movsi_insn): Likewise.
498 (movhi_insn_arch4): Likewise.
499 (movhi_bytes): Likewise.
500 (arm_movqi_insn): Likewise.
501 (thumb1_movqi_insn): Likewise.
502 (arm32_movhf): Likewise.
503 (thumb1_movhf): Likewise.
504 (arm_movsf_soft_insn): Likewise.
505 (thumb1_movsf_insn): Likewise.
506 (thumb_movdf_insn): Likewise.
507 (movsicc_insn): Likewise.
508 (movsfcc_soft_insn): Likewise.
510 (cond_move): Likewise.
511 (if_move_not): Likewise.
512 (if_not_move): Likewise.
513 (if_shift_move): Likewise.
514 (if_move_shift): Likewise.
515 (if_shift_shift): Likewise.
516 (if_not_arith): Likewise.
517 (if_arith_not): Likewise.
518 (cond_move_not): Likewise.
519 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
520 (neon_mov<mode>): Likewise.
521 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
522 (thumb2_movsi_vfp): Likewise.
523 (movsf_vfp): Likewise.
524 (thumb2_movsf_vfp): Likewise.
525 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
527 (cortexa7_older_only): Likewise.
528 (cortexa7_younger): Likewise.
529 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
530 (1020alu_shift_op): Likewise.
531 (1020alu_shift_reg_op): Likewise.
532 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
533 (alu_shift_op): Likewise.
534 (alu_shift_reg_op): Likewise.
535 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
536 (11_alu_shift_op): Likewise.
537 (11_alu_shift_reg_op): Likewise.
538 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
539 (9_alu_shift_reg_op): Likewise.
540 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
542 (cortex_a15_alu_shift): Likewise.
543 (cortex_a15_alu_shift_reg): Likewise.
544 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
545 (cortex_a5_alu_shift): Likewise.
546 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
548 (cortex_a53_alu_shift): Likewise.
549 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
551 (cortex_a7_alu_reg): Likewise.
552 (cortex_a7_alu_shift): Likewise.
553 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
554 (cortex_a8_alu_shift): Likewise.
555 (cortex_a8_alu_shift_reg): Likewise.
556 (cortex_a8_mov): Likewise.
557 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
558 (cortex_a9_dp_shift): Likewise.
559 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
560 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
561 (cortex_r4_mov): Likewise.
562 (cortex_r4_alu_shift): Likewise.
563 (cortex_r4_alu_shift_reg): Likewise.
564 * config/arm/fa526.md (526_alu_op): Update for attribute change.
565 (526_alu_shift_op): Likewise.
566 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
567 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
568 (626te_alu_shift_op): Likewise.
569 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
570 (726te_alu_op): Likewise.
571 (726te_alu_shift_op): Likewise.
572 (726te_alu_shift_reg_op): Likewise.
573 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
574 (mp626_alu_shift_op): Likewise.
575 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
576 (pj4_alu_e1_conds): Likewise.
578 (pj4_alu_conds): Likewise.
579 (pj4_shift): Likewise.
580 (pj4_shift_conds): Likewise.
581 (pj4_alu_shift): Likewise.
582 (pj4_alu_shift_conds): Likewise.
584 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
586 * config/arm/predicates.md (shiftable_operator_strict_it):
588 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
589 Disable cond_exec version for arm_restrict_it.
590 (thumb2_smaxsi3): Convert to generate cond_exec.
591 (thumb2_sminsi3): Likewise.
592 (thumb32_umaxsi3): Likewise.
593 (thumb2_uminsi3): Likewise.
594 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
595 (thumb2_neg_abssi2): Likewise.
596 (thumb2_mov_scc): Add alternative for 16-bit encoding.
597 (thumb2_movsicc_insn): Adjust alternatives.
598 (thumb2_mov_negscc): Disable for arm_restrict_it.
599 (thumb2_mov_negscc_strict_it): New pattern.
600 (thumb2_mov_notscc_strict_it): New pattern.
601 (thumb2_mov_notscc): Disable for arm_restrict_it.
602 (thumb2_ior_scc): Likewise.
603 (thumb2_ior_scc_strict_it): New pattern.
604 (thumb2_cond_move): Adjust for arm_restrict_it.
605 (thumb2_cond_arith): Disable for arm_restrict_it.
606 (thumb2_cond_arith_strict_it): New pattern.
607 (thumb2_cond_sub): Adjust for arm_restrict_it.
608 (thumb2_movcond): Likewise.
609 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
610 (thumb2_zero_extendhisi2_v6): Likewise.
611 (thumb2_zero_extendqisi2_v6): Likewise.
612 (orsi_notsi_si): Likewise.
613 (orsi_not_shiftsi_si): Likewise.
615 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
617 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
618 instruction sequence is 1 byte shorter.
620 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
622 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
623 it is not needed after split.
625 2013-07-20 Iain Sandoe <iain@codesourcery.com>
628 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
629 second label for nonlocal goto receivers. Don't output pic base labels
630 unless we're producing PIC; mark that action unreachable().
631 (ix86_save_reg): If the function contains a nonlocal label, save the
633 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
634 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
635 (update_pic_label_number_if_needed): New.
636 (machopic_output_function_base_name): Adjust for nonlocal receiver
638 (machopic_should_output_picbase_label): New.
639 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
640 (nonlocal_goto_receiver): New insn and split.
642 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
644 * config/aarch64/aarch64-builtins.c
645 (aarch64_fold_builtin): Fold abs in all modes.
646 * config/aarch64/aarch64-simd-builtins.def
647 (abs): Enable for all modes.
648 * config/aarch64/arm_neon.h
649 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
650 (vabs_f64): Add missing intrinsic.
652 2013-07-19 Ian Bolton <ian.bolton@arm.com>
654 * config/aarch64/arm_neon.h (vabs_s64): New function
656 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
659 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
660 * config/avr/avr.md (adjust_len): Add `round'.
661 * config/avr/avr-protos.h (avr_out_round): New prototype.
662 (avr_out_plus): Add `out_label' argument.
663 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
664 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
665 Handle the case where `insn' is just a pattern.
666 (avr_out_bitop): Handle the case where `insn' is just a pattern.
667 (avr_out_round): New function.
668 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
670 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
672 * config/microblaze/microblaze.c (microblaze_expand_prologue):
673 Add check for flag_stack_usage to handle -fstack-usage support
675 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
677 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
678 interaction for new Power8 flags and VSX.
680 2013-07-18 Sriraman Tallam <tmsriram@google.com>
683 * tree-inline.c (expand_call_inline): Emit errors during
684 early_inlining only if optimization is not turned on.
686 2013-07-18 David Malcolm <dmalcolm@redhat.com>
690 * passes.c (init_optimization_passes): Move the construction of
691 the pass hierarchy into a new passes.def file.
693 * Makefile.in (passes.o): Add dependency on passes.def.
695 2013-07-18 David Malcolm <dmalcolm@redhat.com>
697 * passes.c (init_optimization_passes): Introduce macros for
698 constructing the tree of passes (INSERT_PASSES_AFTER,
699 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
700 TERMINATE_PASS_LIST).
702 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
703 Wei Mi <wmi@google.com>
705 PR rtl-optimization/57878
706 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
708 (reload_pseudo_compare_func): Check nregs first for reload
711 2013-07-18 David Malcolm <dmalcolm@redhat.com>
713 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
715 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
717 * read-rtl.c (validate_const_int): Once an invalid character is
720 * gengtype.c (write_roots): Similarly once we find the "deletable"
721 or "if_marked" option.
723 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
725 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
726 "xtab" and "sat". Move value "clz" from here to ...
727 (attriubte "type"): ... here.
728 (satsi_<SAT:code>): Delete "insn" attribute.
729 (satsi_<SAT:code>_shift): Likewise.
730 (arm_zero_extendqisi2addsi): Likewise.
731 (arm_extendqisi2addsi): Likewise.
732 (clzsi2): Update for attribute changes.
734 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
736 (arm_usatsihi): Likewise.
737 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
739 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
741 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
742 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
743 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
744 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
745 in alphabetical order.
746 (attribute "core_cycles"): Update for attribute changes.
747 (arm_addsi3): Likewise.
748 (addsi3_compare0): Likewise.
749 (addsi3_compare0_scratch): Likewise.
750 (addsi3_compare_op1): Likewise.
751 (addsi3_compare_op2): Likewise.
752 (compare_addsi2_op0): Likewise.
753 (compare_addsi2_op1): Likewise.
754 (addsi3_carryin_shift_<optab>): Likewise.
755 (subsi3_carryin_shift): Likewise.
756 (rsbsi3_carryin_shift): Likewise.
757 (arm_subsi3_insn): Likewise.
758 (subsi3_compare0): Likewise.
759 (subsi3_compare): Likewise.
760 (arm_andsi3_insn): Likewise.
761 (thumb1_andsi3_insn): Likewise.
762 (andsi3_compare0): Likewise.
763 (andsi3_compare0_scratch): Likewise.
764 (zeroextractsi_compare0_scratch
765 (andsi_not_shiftsi_si): Likewise.
766 (iorsi3_insn): Likewise.
767 (iorsi3_compare0): Likewise.
768 (iorsi3_compare0_scratch): Likewise.
769 (arm_xorsi3): Likewise.
770 (thumb1_xorsi3_insn): Likewise.
771 (xorsi3_compare0): Likewise.
772 (xorsi3_compare0_scratch): Likewise.
773 (satsi_<SAT:code>_shift): Likewise.
775 (arm_shiftsi3): Likewise.
776 (shiftsi3_compare0): Likewise.
777 (not_shiftsi): Likewise.
778 (not_shiftsi_compare0): Likewise.
779 (not_shiftsi_compare0_scratch): Likewise.
780 (arm_one_cmplsi2): Likewise.
781 (thumb_one_complsi2): Likewise.
782 (notsi_compare0): Likewise.
783 (notsi_compare0_scratch): Likewise.
784 (thumb1_zero_extendhisi2): Likewise.
785 (arm_zero_extendhisi2): Likewise.
786 (arm_zero_extendhisi2_v6): Likewise.
787 (arm_zero_extendhisi2addsi): Likewise.
788 (thumb1_zero_extendqisi2): Likewise.
789 (thumb1_zero_extendqisi2_v6): Likewise.
790 (arm_zero_extendqisi2): Likewise.
791 (arm_zero_extendqisi2_v6): Likewise.
792 (arm_zero_extendqisi2addsi): Likewise.
793 (thumb1_extendhisi2): Likewise.
794 (arm_extendhisi2): Likewise.
795 (arm_extendhisi2_v6): Likewise.
796 (arm_extendqisi): Likewise.
797 (arm_extendqisi_v6): Likewise.
798 (arm_extendqisi2addsi): Likewise.
799 (thumb1_extendqisi2): Likewise.
800 (thumb1_movdi_insn): Likewise.
801 (arm_movsi_insn): Likewise.
802 (movsi_compare0): Likewise.
803 (movhi_insn_arch4): Likewise.
804 (movhi_bytes): Likewise.
805 (arm_movqi_insn): Likewise.
806 (thumb1_movqi_insn): Likewise.
807 (arm32_movhf): Likewise.
808 (thumb1_movhf): Likewise.
809 (arm_movsf_soft_insn): Likewise.
810 (thumb1_movsf_insn): Likewise.
811 (movdf_soft_insn): Likewise.
812 (thumb_movdf_insn): Likewise.
813 (arm_cmpsi_insn): Likewise.
814 (cmpsi_shiftsi): Likewise.
815 (cmpsi_shiftsi_swp): Likewise.
816 (arm_cmpsi_negshiftsi_si): Likewise.
817 (movsicc_insn): Likewise.
818 (movsfcc_soft_insn): Likewise.
819 (arith_shiftsi): Likewise.
820 (arith_shiftsi_compare0
821 (arith_shiftsi_compare0_scratch
822 (sub_shiftsi): Likewise.
823 (sub_shiftsi_compare0
824 (sub_shiftsi_compare0_scratch
826 (cond_move): Likewise.
827 (if_plus_move): Likewise.
828 (if_move_plus): Likewise.
829 (if_move_not): Likewise.
830 (if_not_move): Likewise.
831 (if_shift_move): Likewise.
832 (if_move_shift): Likewise.
833 (if_shift_shift): Likewise.
834 (if_not_arith): Likewise.
835 (if_arith_not): Likewise.
836 (cond_move_not): Likewise.
837 (thumb1_ashlsi3): Set type attribute.
838 (thumb1_ashrsi3): Likewise.
839 (thumb1_lshrsi3): Likewise.
840 (thumb1_rotrsi3): Likewise.
841 (shiftsi3_compare0_scratch): Likewise.
842 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
843 (neon_mov<mode>): Likewise.
844 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
846 (thumb2_movsi_insn): Likewise.
847 (thumb2_cmpsi_neg_shiftsi): Likewise.
848 (thumb2_extendqisi_v6): Likewise.
849 (thumb2_zero_extendhisi2_v6): Likewise.
850 (thumb2_zero_extendqisi2_v6): Likewise.
851 (thumb2_shiftsi3_short): Likewise.
852 (thumb2_addsi3_compare0_scratch): Likewise.
853 (orsi_not_shiftsi_si): Likewise.
854 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
855 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
857 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
858 (1020alu_shift_op): Likewise.
859 (1020alu_shift_reg_op): Likewise.
860 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
861 (alu_shift_op): Likewise.
862 (alu_shift_reg_op): Likewise.
863 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
864 (11_alu_shift_op): Likewise.
865 (11_alu_shift_reg_op): Likewise.
866 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
867 (9_alu_shift_reg_op): Likewise.
868 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
870 (cortex_a15_alu_shift): Likewise.
871 (cortex_a15_alu_shift_reg): Likewise.
872 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
874 (cortex_a5_alu_shift): Likewise.
875 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
877 (cortex_a53_alu_shift): Likewise.
878 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
880 (cortex_a7_alu_reg): Likewise.
881 (cortex_a7_alu_shift): Likewise.
882 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
884 (cortex_a8_alu_shift): Likewise.
885 (cortex_a8_alu_shift_reg): Likewise.
886 (cortex_a8_mov): Likewise.
887 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
888 (cortex_a9_dp_shift): Likewise.
889 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
891 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
893 (cortex_r4_mov): Likewise.
894 (cortex_r4_alu_shift): Likewise.
895 (cortex_r4_alu_shift_reg): Likewise.
896 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
897 (526_alu_shift_op): Likewise.
898 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
899 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
900 (626te_alu_shift_op): Likewise.
901 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
902 (726te_alu_op): Likewise.
903 (726te_alu_shift_op): Likewise.
904 (726te_alu_shift_reg_op): Likewise.
905 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
906 (mp626_alu_shift_op): Likewise.
907 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
908 (pj4_alu_e1_conds): Likewise.
910 (pj4_alu_conds): Likewise.
911 (pj4_shift): Likewise.
912 (pj4_shift_conds): Likewise.
913 (pj4_alu_shift): Likewise.
914 (pj4_alu_shift_conds): Likewise.
915 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
917 (cortexa7_older_only): Likewise.
918 (cortexa7_younger): Likewise.
920 2013-07-18 David Malcolm <dmalcolm@redhat.com>
922 * ipa-pure-const.c (generate_summary): Rename to...
923 (pure_const_generate_summary): ... this.
925 2013-07-17 Iain Sandoe <iain@codesourcery.com>
927 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
929 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
932 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
935 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
937 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
938 enabled without -march=zEC12.
939 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
942 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
944 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
945 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
946 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
947 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
948 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
949 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
950 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
952 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
953 and ISA_HAS_NMADD3_NMSUB3.
954 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
955 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
956 (nmsub4<mode>, nmsub3<mode>): Likewise.
957 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
959 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
961 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
962 TARGET_MIPS5400 checking.
964 2013-07-16 Jakub Jelinek <jakub@redhat.com>
965 Peter Bergner <bergner@vnet.ibm.com>
967 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
968 registers in the comment.
969 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
970 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
971 rather than FIRST_PSEUDO_REGISTERS.
973 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
975 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
976 enable extra ISA flags with TARGET_HTM.
978 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
980 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
983 2013-07-15 Cong Hou <congh@google.com>
985 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
986 in compare function for sorting.
988 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
990 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
991 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
992 * config/rs6000/rs6000.opt: Add -mhtm option.
993 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
994 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
995 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
996 __HTM__ if the HTM instructions are available.
997 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
998 htm_spr_reg_operand): New define_predicates.
999 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
1000 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
1002 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
1003 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
1004 HTM builtin functions.
1005 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
1006 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
1007 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
1008 (rs6000_builtin_mask_calculate): Likewise.
1009 (rs6000_option_override_internal): Likewise.
1010 (bdesc_htm): Add new HTM builtin support.
1011 (htm_spr_num): New function.
1012 (htm_spr_regno): Likewise.
1013 (rs6000_htm_spr_icode): Likewise.
1014 (htm_expand_builtin): Likewise.
1015 (htm_init_builtins): Likewise.
1016 (rs6000_expand_builtin): Add support for HTM builtin functions.
1017 (rs6000_init_builtins): Likewise.
1018 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
1020 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
1021 (TARGET_HTM, MASK_HTM): Define macros.
1022 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
1023 (FIXED_REGISTERS): Likewise.
1024 (CALL_USED_REGISTERS): Likewise.
1025 (CALL_REALLY_USED_REGISTERS): Likewise.
1026 (REG_ALLOC_ORDER): Likewise.
1027 (enum reg_class): Likewise.
1028 (REG_CLASS_NAMES): Likewise.
1029 (REG_CLASS_CONTENTS): Likewise.
1030 (REGISTER_NAMES): Likewise.
1031 (ADDITIONAL_REGISTER_NAMES): Likewise.
1032 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
1033 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
1034 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
1035 * config/rs6000/htm.md: New file.
1036 * config/rs6000/htmintrin.h: New file.
1037 * config/rs6000/htmxlintrin.h: New file.
1039 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
1041 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1042 Define SYMBOL_TINY_GOT, update comment.
1043 * config/aarch64/aarch64.c
1044 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
1045 (aarch64_expand_mov_immediate): Likewise.
1046 (aarch64_print_operand): Likewise.
1047 (aarch64_classify_symbol): Likewise.
1048 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
1049 (ldr_got_tiny): Define.
1051 2013-07-13 Tobias Grosser <tobias@grosser.es>
1053 PR tree-optimization/54094
1054 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
1055 scheduling dimension for the parallelism check from the polyhedral
1056 information in the AST.
1057 * graphite-dependences.c (carries_deps): Do not assume the schedule is
1060 2013-07-13 Jason Merrill <jason@redhat.com>
1062 * print-tree.c (debug_vec_tree): Use debug_raw.
1063 (debug_raw (vec<tree, va_gc> &)): New.
1064 (debug_raw (vec<tree, va_gc> *)): New.
1065 * tree.h: Declare them.
1067 2013-07-13 Bin Cheng <bin.cheng@arm.com>
1069 * ifcvt.c (ifcvt_after_combine): New static variable.
1070 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
1072 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
1073 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
1074 rest_of_handle_if_after_reload): Pass new argument for if_convert.
1076 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
1078 * config/mips/mips.c (mips_expand_call): Remove empty statement.
1080 2013-07-12 Michael Matz <matz@suse.de>
1083 * convert.c (convert_to_real): Reject non-float inner types.
1085 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
1087 * config/aarch64/aarch64-protos.h
1088 (aarch64_simd_immediate_valid_for_move): Remove.
1089 * config/aarch64/aarch64.c (simd_immediate_info): New member.
1090 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
1092 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
1094 2013-07-11 Steve Ellcey <sellcey@mips.com>
1096 * config/mips/mips.c (mips_conditional_register_usage): Do not
1097 use t[0-7] registers in MIPS16 mode when optimizing for size.
1099 2013-07-11 Sriraman Tallam <tmsriram@google.com>
1101 * config/i386/i386.c (dispatch_function_versions): Fix array
1102 indexing of function_version_info to match actual_versions.
1104 2013-07-11 Teresa Johnson <tejohnson@google.com>
1106 * vec.h (struct va_gc): Move release out-of-line.
1107 (va_gc::release): Call ggc_free on released vec.
1109 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1111 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
1112 Require GOT register as additional operand in UNSPEC.
1113 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
1114 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1115 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1116 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
1117 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
1118 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
1119 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
1121 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
1124 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1125 name seen by assembler/linker rather if available.
1127 2013-07-11 Andreas Schwab <schwab@suse.de>
1129 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1131 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
1133 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
1135 2013-07-10 Joseph Myers <joseph@codesourcery.com>
1137 * doc/tm.texi.in: Move hook documentation to ....
1138 * target.def: ... here.
1140 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1142 * doc/tm.texi: Regenerate.
1144 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1147 * doc/invoke.texi: Document -Wconditionally-supported.
1149 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1152 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1155 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1158 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1159 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1160 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1161 Remove duplicate devices.
1162 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1163 * config/avr/t-multilib: Regenerate.
1164 * config/avr/avr-tables.opt: Regenerate.
1165 * doc/avr-mmcu.texi: Regenerate.
1167 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1170 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1172 2013-07-10 Graham Stott <graham.stott@btinternet.com>
1174 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1175 the cost of MULT when optimizing for size.
1177 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1179 * config/cr16/cr16-protos.h: Don't include target.h.
1181 2013-07-09 Joseph Myers <joseph@codesourcery.com>
1183 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1184 adjust register size for TDmode and TFmode for VSX registers.
1186 2013-07-08 Kai Tietz <ktietz@redhat.com>
1189 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1190 hook_bool_const_tree_true.
1192 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1194 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1195 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1196 * config/s390/s390.md: Define FPR*_REGNUM constants.
1197 Fix FPR2_REGNUM constant (18 -> 17).
1198 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1199 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1200 ("trunc<BFP:mode><DFP_ALL:mode>2")
1201 ("trunc<DFP_ALL:mode><BFP:mode>2")
1202 ("*extend<BFP:mode><DFP_ALL:mode>2")
1203 ("*extend<DFP_ALL:mode><BFP:mode>2")
1204 ("extend<BFP:mode><DFP_ALL:mode>2")
1205 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1208 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1210 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
1212 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1214 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1215 and cfun_fpr_bit_p to cfun_fpr_save_p.
1216 (s390_frame_area, s390_register_info, s390_frame_info)
1217 (s390_emit_prologue, s390_emit_epilogue)
1218 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1220 * config/s390/s390.h: Define *_REGNUM macros for floating point
1223 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1225 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1227 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1229 PR rtl-optimization/57786
1230 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1231 and break out of the loop when it is set to false.
1233 2013-07-08 Jakub Jelinek <jakub@redhat.com>
1236 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1237 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1238 (const_int 63)) 0)).
1239 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1240 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1241 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1243 PR rtl-optimization/57829
1244 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1245 mask bits outside of mode are just sign-extension from mode to HWI.
1247 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1249 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1250 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1251 adjust_address instead of change_address to keep info about alignment.
1252 (emit_strmov): Remove.
1253 (emit_memmov): New function.
1254 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1255 (expand_movmem_epilogue): Likewise and return updated rtx for
1257 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1258 destination and source.
1259 (decide_alignment): Refactor, handle vector_loop.
1260 (ix86_expand_movmem): Likewise.
1261 (ix86_expand_setmem): Likewise.
1262 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1264 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
1266 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1267 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1269 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1271 * config/i386/sse.md (sse_movlhps): Change alternative 3
1272 of operand 2 to "m".
1274 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1277 * config/i386/sse.md (iptr): New mode attribute.
1278 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1279 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1280 (<sse>_vmmul<mode>3): Ditto.
1281 (<sse>_vmdiv<mode>3): Ditto.
1282 (sse_vmrcpv4sf2): Ditto.
1283 (<sse>_vmsqrt<mode>2): Ditto.
1284 (sse_vmrsqrtv4sf2): Ditto.
1285 (<sse>_vm<code><mode>3): Ditto.
1286 (avx_vmcmp<mode>3): Ditto.
1287 (<sse>_vmmaskcmp<mode>3): Ditto.
1288 (<sse>_comi): Ditto.
1289 (<sse>_ucomi): Ditto.
1290 (*xop_vmfrcz_<mode>): Ditto.
1291 (*fmai_fmadd_<mode>): Ditto.
1292 (*fmai_fmsub_<mode>): Ditto.
1293 (*fmai_fnmadd_<mode>): Ditto.
1294 (*fmai_fnmsub_<mode>): Ditto.
1295 (*fma4i_vmfmadd_<mode>): Ditto.
1296 (*fma4i_vmfmsub_<mode>): Ditto.
1297 (*fma4i_vmfnmadd_<mode>): Ditto.
1298 (*fma4i_vmfnmsub_<mode>): Ditto.
1299 (*xop_vmfrcz_<mode>): Ditto.
1300 (sse_cvtps2pi): Ditto.
1301 (sse_cvttps2pi): Ditto.
1302 (sse_cvtss2si): Ditto.
1303 (sse_cvtss2si_2): Ditto.
1304 (sse_cvtss2siq_2): Ditto.
1305 (sse_cvttss2si): Ditto.
1306 (sse_cvttss2siq): Ditto.
1307 (sse_cvtsd2si): Ditto.
1308 (sse_cvtsd2si_2): Ditto.
1309 (sse_cvtsd2siq_2): Ditto.
1310 (sse_cvttsd2si): Ditto.
1311 (sse_cvttsd2siq): Ditto.
1312 (sse_cvtsd2ss): Ditto.
1313 (sse_cvtss2sd): Ditto.
1314 (avx2_pbroadcast<mode>): Ditto.
1315 (avx2_pbroadcast<mode>_1): Ditto.
1316 (*avx_vperm_broadcast_v4sf): Ditto.
1318 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1319 (sse_movlhps): Ditto.
1320 (sse_storehps): Ditto.
1321 (sse_loadhps): Ditto.
1322 (sse_storelps): Ditto.
1323 (sse_loadlps): Ditto.
1324 (*vec_concatv4sf): Ditto.
1325 (*vec_interleave_highv2df): Ditto.
1326 (*vec_interleave_lowv2df): Ditto.
1327 (*vec_extractv2df_1_sse): Ditto.
1328 (*vec_extractv2df_0_sse): Ditto.
1329 (sse2_storelpd): Ditto.
1330 (sse2_loadlpd): Ditto.
1331 (sse2_movsd): Ditto.
1332 (*vec_concatv4si): Ditto.
1333 (vec_concatv2di): Ditto.
1335 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1336 for Intel asm dialect.
1337 (mmx_punpcklwd): Ditto.
1338 (mmx_punpckldq): Ditto.
1340 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1341 for intel assembler dialect.
1343 2013-07-06 Jakub Jelinek <jakub@redhat.com>
1346 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1347 for BUILT_IN_C{LZ,LRSB}*.
1348 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1349 * tree-vrp.c (extract_range_basic): Handle
1350 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1351 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1352 fall thru to code calling set_value*.
1353 * builtins.c (expand_builtin): Remove *IMAX cases.
1354 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1355 if width is bigger than 2*HWI.
1357 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1359 PR rtl-optimization/55342
1360 * lra-int.h (lra_subreg_reload_pseudos): New.
1361 * lra.c: Add undoing optional reloads to the block diagram.
1362 (lra_subreg_reload_pseudos): New.
1363 (lra_optional_reload_pseudos): Change comments.
1364 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1365 lra_optional_reload_pseudos after undo transformations.
1366 * lra-assigns.c (pseudo_prefix_title): New.
1367 (lra_setup_reg_renumber): Use it.
1368 (spill_for): Ditto. Check subreg reload pseudos too.
1369 (assign_by_spills): Consider subreg reload pseudos too.
1370 * lra-constraints.c (simplify_operand_subreg): Use
1371 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1372 (curr_insn_transform): Recognize and do optional reloads.
1373 (undo_optional_reloads): New.
1374 (lra_undo_inheritance): Call undo_optional_reloads.
1376 2013-07-05 Thomas Quinot <quinot@adacore.com>
1378 * tree-complex.c (expand_complex_operations_1): Fix typo.
1380 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1382 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1383 (tune_params): New member 'const vec_costs'.
1384 * config/aarch64/aarch64.c (generic_vector_cost): New.
1385 (generic_tunings): New member 'generic_vector_cost'.
1386 (aarch64_builtin_vectorization_cost): New.
1387 (aarch64_add_stmt_cost): New.
1388 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1389 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1391 2013-07-03 Jakub Jelinek <jakub@redhat.com>
1394 * config/i386/predicates.md (vsib_address_operand): Disallow
1395 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1397 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1400 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1401 expand_builtin_setjmp_receiver.
1402 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1403 with NULL for the label parameter.
1404 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1405 the frame-pointer. Adjust comments.
1406 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1407 only if LABEL is non-NULL.
1409 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1411 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1412 (ARM_ABI_AAPCS64): Ditto.
1414 (ARM_DEFAULT_ABI): Ditto.
1416 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1418 * config/aarch64/aarch64-builtins.c
1419 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1420 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1422 * config/aarch64/aarch64-simd.md
1423 (aarch64_ld1<VALL:mode>): New.
1424 (aarch64_st1<VALL:mode>): Likewise.
1425 * config/aarch64/arm_neon.h
1426 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1428 2013-07-02 Sriraman Tallam <tmsriram@google.com>
1430 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1432 (ix86_option_override_internal):Turn on all -mavx target flags by
1433 default as they are dependent on AVX anyway.
1435 2013-07-02 Cary Coutant <ccoutant@google.com>
1437 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1439 (loc_checksum_ordered): Likewise.
1440 (hash_loc_operands): Remove inline keyword.
1442 2013-07-02 Jakub Jelinek <jakub@redhat.com>
1444 PR tree-optimization/57741
1445 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1446 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1447 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1448 Allow REAL_CST step_exprs if flag_associative_math.
1449 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1451 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1453 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1455 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1457 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1459 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1461 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1463 (iorsi3_insn): Likewise.
1464 (arm_xorsi3): Likewise.
1466 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1468 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1470 (attribute "type"): ... here, and prefix with "wmmx_".
1471 (attribute "core_cycles"): Update for attribute changes.
1472 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1473 (tbcstv4hi): Likewise.
1474 (tbcstv2si): Likewise.
1475 (iwmmxt_iordi3): Likewise.
1476 (iwmmxt_xordi3): Likewise.
1477 (iwmmxt_anddi3): Likewise.
1478 (iwmmxt_nanddi3): Likewise.
1479 (iwmmxt_arm_movdi): Likewise.
1480 (iwmmxt_movsi_insn): Likewise.
1481 (mov<mode>_internal): Likewise.
1482 (and<mode>3_iwmmxt): Likewise.
1483 (ior<mode>3_iwmmxt): Likewise.
1484 (xor<mode>3_iwmmxt): Likewise.
1485 (add<mode>3_iwmmxt): Likewise.
1486 (ssaddv8qi3): Likewise.
1487 (ssaddv4hi3): Likewise.
1488 (ssaddv2si3): Likewise.
1489 (usaddv8qi3): Likewise.
1490 (usaddv4hi3): Likewise.
1491 (usaddv2si3): Likewise.
1492 (sub<mode>3_iwmmxt): Likewise.
1493 (sssubv8qi3): Likewise.
1494 (sssubv4hi3): Likewise.
1495 (sssubv2si3): Likewise.
1496 (ussubv8qi3): Likewise.
1497 (ussubv4hi3): Likewise.
1498 (ussubv2si3): Likewise.
1499 (mulv4hi3_iwmmxt): Likewise.
1500 (smulv4hi3_highpart): Likewise.
1501 (umulv4hi3_highpart): Likewise.
1502 (iwmmxt_wmacs): Likewise.
1503 (iwmmxt_wmacsz): Likewise.
1504 (iwmmxt_wmacu): Likewise.
1505 (iwmmxt_wmacuz): Likewise.
1506 (iwmmxt_clrdi): Likewise.
1507 (iwmmxt_clrv8qi): Likewise.
1508 (iwmmxt_clr4hi): Likewise.
1509 (iwmmxt_clr2si): Likewise.
1510 (iwmmxt_uavgrndv8qi3): Likewise.
1511 (iwmmxt_uavgrndv4hi3): Likewise.
1512 (iwmmxt_uavgv8qi3): Likewise.
1513 (iwmmxt_uavgv4hi3): Likewise.
1514 (iwmmxt_tinsrb): Likewise.
1515 (iwmmxt_tinsrh): Likewise.
1516 (iwmmxt_tinsrw): Likewise.
1517 (iwmmxt_textrmub): Likewise.
1518 (iwmmxt_textrmsb): Likewise.
1519 (iwmmxt_textrmuh): Likewise.
1520 (iwmmxt_textrmsh): Likewise.
1521 (iwmmxt_textrmw): Likewise.
1522 (iwmxxt_wshufh): Likewise.
1523 (eqv8qi3): Likewise.
1524 (eqv4hi3): Likewise.
1525 (eqv2si3): Likewise.
1526 (gtuv8qi3): Likewise.
1527 (gtuv4hi3): Likewise.
1528 (gtuv2si3): Likewise.
1529 (gtv8qi3): Likewise.
1530 (gtv4hi3): Likewise.
1531 (gtv2si3): Likewise.
1532 (smax<mode>3_iwmmxt): Likewise.
1533 (umax<mode>3_iwmmxt): Likewise.
1534 (smin<mode>3_iwmmxt): Likewise.
1535 (umin<mode>3_iwmmxt): Likewise.
1536 (iwmmxt_wpackhss): Likewise.
1537 (iwmmxt_wpackwss): Likewise.
1538 (iwmmxt_wpackdss): Likewise.
1539 (iwmmxt_wpackhus): Likewise.
1540 (iwmmxt_wpackwus): Likewise.
1541 (iwmmxt_wpackdus): Likewise.
1542 (iwmmxt_wunpckihb): Likewise.
1543 (iwmmxt_wunpckihh): Likewise.
1544 (iwmmxt_wunpckihw): Likewise.
1545 (iwmmxt_wunpckilb): Likewise.
1546 (iwmmxt_wunpckilh): Likewise.
1547 (iwmmxt_wunpckilw): Likewise.
1548 (iwmmxt_wunpckehub): Likewise.
1549 (iwmmxt_wunpckehuh): Likewise.
1550 (iwmmxt_wunpckehuw): Likewise.
1551 (iwmmxt_wunpckehsb): Likewise.
1552 (iwmmxt_wunpckehsh): Likewise.
1553 (iwmmxt_wunpckehsw): Likewise.
1554 (iwmmxt_wunpckelub): Likewise.
1555 (iwmmxt_wunpckeluh): Likewise.
1556 (iwmmxt_wunpckeluw): Likewise.
1557 (iwmmxt_wunpckelsb): Likewise.
1558 (iwmmxt_wunpckelsh): Likewise.
1559 (iwmmxt_wunpckelsw): Likewise.
1560 (ror<mode>3): Likewise.
1561 (ashr<mode>3_iwmmxt): Likewise.
1562 (lshr<mode>3_iwmmxt): Likewise.
1563 (ashl<mode>3_iwmmxt): Likewise.
1564 (ror<mode>3_di): Likewise.
1565 (ashr<mode>3_di): Likewise.
1566 (lshr<mode>3_di): Likewise.
1567 (ashl<mode>3_di): Likewise.
1568 (iwmmxt_wmadds): Likewise.
1569 (iwmmxt_wmaddu): Likewise.
1570 (iwmmxt_tmia): Likewise.
1571 (iwmmxt_tmiaph): Likewise.
1572 (iwmmxt_tmiabb): Likewise.
1573 (iwmmxt_tmiatb): Likewise.
1574 (iwmmxt_tmiabt): Likewise.
1575 (iwmmxt_tmiatt): Likewise.
1576 (iwmmxt_tmovmskb): Likewise.
1577 (iwmmxt_tmovmskh): Likewise.
1578 (iwmmxt_tmovmskw): Likewise.
1579 (iwmmxt_waccb): Likewise.
1580 (iwmmxt_wacch): Likewise.
1581 (iwmmxt_waccw): Likewise.
1582 (iwmmxt_waligni): Likewise.
1583 (iwmmxt_walignr): Likewise.
1584 (iwmmxt_walignr0): Likewise.
1585 (iwmmxt_walignr1): Likewise.
1586 (iwmmxt_walignr2): Likewise.
1587 (iwmmxt_walignr3): Likewise.
1588 (iwmmxt_wsadb): Likewise.
1589 (iwmmxt_wsadh): Likewise.
1590 (iwmmxt_wsadbz): Likewise.
1591 (iwmmxt_wsadhz): Likewise.
1592 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1593 (iwmmxt_wabsdiffb): Likewise.
1594 (iwmmxt_wabsdiffh): Likewise.
1595 (iwmmxt_wabsdiffw): Likewise.
1596 (iwmmxt_waddsubhx): Likewise
1597 (iwmmxt_wsubaddhx): Likewise.
1598 (addc<mode>3): Likewise.
1599 (iwmmxt_avg4): Likewise.
1600 (iwmmxt_avg4r): Likewise.
1601 (iwmmxt_wmaddsx): Likewise.
1602 (iwmmxt_wmaddux): Likewise.
1603 (iwmmxt_wmaddsn): Likewise.
1604 (iwmmxt_wmaddun): Likewise.
1605 (iwmmxt_wmulwsm): Likewise.
1606 (iwmmxt_wmulwum): Likewise.
1607 (iwmmxt_wmulsmr): Likewise.
1608 (iwmmxt_wmulumr): Likewise.
1609 (iwmmxt_wmulwsmr): Likewise.
1610 (iwmmxt_wmulwumr): Likewise.
1611 (iwmmxt_wmulwl): Likewise.
1612 (iwmmxt_wqmulm): Likewise.
1613 (iwmmxt_wqmulwm): Likewise.
1614 (iwmmxt_wqmulmr): Likewise.
1615 (iwmmxt_wqmulwmr): Likewise.
1616 (iwmmxt_waddbhusm): Likewise.
1617 (iwmmxt_waddbhusl): Likewise.
1618 (iwmmxt_wqmiabb): Likewise.
1619 (iwmmxt_wqmiabt): Likewise.
1620 (iwmmxt_wqmiatb): Likewise.
1621 (iwmmxt_wqmiatt): Likewise.
1622 (iwmmxt_wqmiabbn): Likewise.
1623 (iwmmxt_wqmiabtn): Likewise.
1624 (iwmmxt_wqmiatbn): Likewise.
1625 (iwmmxt_wqmiattn): Likewise.
1626 (iwmmxt_wmiabb): Likewise.
1627 (iwmmxt_wmiabt): Likewise.
1628 (iwmmxt_wmiatb): Likewise.
1629 (iwmmxt_wmiatt): Likewise.
1630 (iwmmxt_wmiabbn): Likewise.
1631 (iwmmxt_wmiabtn): Likewise.
1632 (iwmmxt_wmiatbn): Likewise.
1633 (iwmmxt_wmiattn): Likewise.
1634 (iwmmxt_wmiawbb): Likewise.
1635 (iwmmxt_wmiawbt): Likewise.
1636 (iwmmxt_wmiawtb): Likewise.
1637 (iwmmxt_wmiawtt): Likewise.
1638 (iwmmxt_wmiawbbn): Likewise.
1639 (iwmmxt_wmiawbtn): Likewise.
1640 (iwmmxt_wmiawtbn): Likewise.
1641 (iwmmxt_wmiawttn): Likewise.
1642 (iwmmxt_wmerge): Likewise.
1643 (iwmmxt_tandc<mode>3): Likewise.
1644 (iwmmxt_torc<mode>3): Likewise.
1645 (iwmmxt_torvsc<mode>3): Likewise.
1646 (iwmmxt_textrc<mode>3): Likewise.
1647 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1648 (wmmxt_pack): Likewise.
1649 (wmmxt_mult_c1): Likewise.
1650 (wmmxt_mult_c2): Likewise.
1651 (wmmxt_alu_c1): Likewise.
1652 (wmmxt_alu_c2): Likewise.
1653 (wmmxt_alu_c3): Likewise.
1654 (wmmxt_transfer_c1): Likewise.
1655 (wmmxt_transfer_c2): Likewise.
1656 (wmmxt_transfer_c3): Likewise.
1657 (marvell_f_iwmmxt_wstr): Likewise.
1658 (marvell_f_iwmmxt_wldr): Likewise.
1660 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1662 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1664 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1667 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1668 * lra-constraints.c (need_for_split_p): Check call used hard regs
1669 living through calls.
1671 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1672 call used regs for call insn.
1674 2013-06-28 Jakub Jelinek <jakub@redhat.com>
1677 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1678 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1680 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1682 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1684 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1686 * lra-constraints.c (need_for_split_p): Check call used hard regs
1687 living through calls.
1689 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1692 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1693 to tie with any other modes. Eliminate Altivec vector mode tests,
1694 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1695 code, to return 0 if testing MODE2 for a condition, if we've
1696 already tested MODE1 for the same condition.
1698 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1700 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1703 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1705 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1706 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1708 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1710 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1712 (aarch64_symbolic_constant_p): Remove.
1713 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1714 static. Fix line length and white space.
1715 (aarch64_symbolic_constant_p): Remove.
1716 * config/aarch64/predicates.md (aarch64_valid_symref):
1717 Use aarch64_classify_symbol_expression.
1719 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1721 * config/arm/constraints.md (Ts): New constraint.
1722 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1724 (compare_scc): Use "Ts" constraint for operand 0.
1725 (ior_scc_scc): Likewise.
1726 (and_scc_scc): Likewise.
1727 (and_scc_scc_nodom): Likewise.
1728 (ior_scc_scc_cmp): Likewise for operand 7.
1729 (and_scc_scc_cmp): Likewise.
1730 * config/arm/thumb2.md (thumb2_movsi_insn):
1731 Add alternatives for 16-bit encodings.
1732 (thumb2_movhi_insn): Likewise.
1733 (thumb2_movsicc_insn): Likewise.
1734 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1735 (thumb2_negscc): Use "Ts" constraint.
1736 Move mvn instruction outside cond_exec block.
1737 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1738 for 16-bit encodings.
1740 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1742 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1744 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1745 (mulsi3subsi): Likewise.
1746 (mulsidi3adddi): Likewise.
1747 (mulsidi3_v6): Likewise.
1748 (umulsidi3_v6): Likewise.
1749 (umulsidi3adddi_v6): Likewise.
1750 (smulsi3_highpart_v6): Likewise.
1751 (umulsi3_highpart_v6): Likewise.
1752 (mulhisi3tb): Likewise.
1753 (mulhisi3bt): Likewise.
1754 (mulhisi3tt): Likewise.
1755 (maddhisi4): Likewise.
1756 (maddhisi4tb): Likewise.
1757 (maddhisi4tt): Likewise.
1758 (maddhidi4): Likewise.
1759 (maddhidi4tb): Likewise.
1760 (maddhidi4tt): Likewise.
1761 (zeroextractsi_compare0_scratch): Likewise.
1762 (insv_zero): Likewise.
1763 (insv_t2): Likewise.
1764 (anddi_notzesidi_di): Likewise.
1765 (anddi_notsesidi_di): Likewise.
1766 (andsi_notsi_si): Likewise.
1767 (iordi_zesidi_di): Likewise.
1768 (xordi_zesidi_di): Likewise.
1769 (andsi_iorsi3_notsi): Likewise.
1771 (smax_m1): Likewise.
1773 (not_shiftsi): Likewise.
1774 (unaligned_loadsi): Likewise.
1775 (unaligned_loadhis): Likewise.
1776 (unaligned_loadhiu): Likewise.
1777 (unaligned_storesi): Likewise.
1778 (unaligned_storehi): Likewise.
1779 (extv_reg): Likewise.
1780 (extzv_t2): Likewise.
1782 (udivsi3): Likewise.
1783 (arm_zero_extendhisi2addsi): Likewise.
1784 (arm_zero_extendqisi2addsi): Likewise.
1785 (compareqi_eq0): Likewise.
1786 (arm_extendhisi2_v6): Likewise.
1787 (arm_extendqisi2addsi): Likewise.
1788 (arm_movt): Likewise.
1789 (thumb2_ldrd): Likewise.
1790 (thumb2_ldrd_base): Likewise.
1791 (thumb2_ldrd_base_neg): Likewise.
1792 (thumb2_strd): Likewise.
1793 (thumb2_strd_base): Likewise.
1794 (thumb2_strd_base_neg): Likewise.
1795 (arm_negsi2): Add alternative for 16-bit encoding.
1796 (arm_one_cmplsi2): Likewise.
1798 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1800 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1801 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1802 (movdfcc): Likewise.
1803 * config/arm/vfp.md (*thumb2_movsf_vfp):
1804 Disable predication for arm_restrict_it.
1805 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1806 (*thumb2_movdfcc_vfp): Likewise.
1807 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1808 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1809 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1810 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1811 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1812 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1813 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1814 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1815 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1816 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1817 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1818 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1819 Disable predication for arm_restrict_it.
1821 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1823 * config/i386/bmiintrin.h (_bextr_u32): New.
1824 (_bextr_u64): Ditto.
1826 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1828 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1829 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1830 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1831 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1832 * config/mips/n32-elf.h: ...this new file.
1834 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1837 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1838 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1840 2013-06-27 Catherine Moore <clm@codesourcery.com>
1842 * config/mips/mips-tables.opt: Regenerate.
1843 * config/mips/mips-cpus.def: Add m14ke and m14kec.
1844 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1845 * doc/invoke.texi: Add -m14kc.
1847 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1850 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1851 constraints of operand 1 and 2.
1854 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1855 to match RTL canonicalization. Swap predicates and
1856 constraints of operand 1 and 2.
1858 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1860 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1861 Process OP_INOUT regs for splitting too.
1863 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1865 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1866 decl before the loop, initialize to NULL.
1867 (vectorizable_load): Initialize ptr_incr to NULL.
1869 2013-06-27 Martin Jambor <mjambor@suse.cz>
1872 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1873 * ipa-ref.c (ipa_maybe_record_reference): New function.
1874 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1875 * ipa-cp.c (create_specialized_node): Record potential references from
1877 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1879 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1881 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1882 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1883 'mode' to force_reg.
1884 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1885 (aarch64_expand_mov_immediate): Likewise.
1887 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1889 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1890 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1892 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1894 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1895 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1896 (struct machine_function): Add tbegin_p.
1897 (s390_canonicalize_comparison): Fold CC mode compares to
1898 conditional jump if possible.
1899 (s390_emit_jump): Return the emitted jump.
1900 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1901 Handle CCRAWmode compares.
1902 (s390_option_override): Default to -mhtm if available.
1903 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1904 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1905 FPRs instead of df_regs_ever_live_p.
1906 (s390_optimize_nonescaping_tx): New function.
1907 (s390_init_frame_layout): Extend clobbered_regs array to cover
1909 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1910 (s390_expand_tbegin): New function.
1911 (enum s390_builtin): New enum definition.
1912 (code_for_builtin): New array definition.
1913 (s390_init_builtins): New function.
1914 (s390_expand_builtin): New function.
1915 (TARGET_INIT_BUILTINS): Define.
1916 (TARGET_EXPAND_BUILTIN): Define.
1917 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1918 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1919 (s390_alc_comparison): Likewise.
1920 * config/s390/s390-modes.def: Add CCRAWmode.
1921 * config/s390/s390.h (processor_flags): Add PF_TX.
1922 (TARGET_CPU_HTM): Define macro.
1923 (TARGET_HTM): Define macro.
1924 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1925 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1926 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1927 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1928 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
1929 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1930 ("*cc_to_int"): Move up.
1931 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1932 constants other than 0.
1933 ("*ccraw_to_int"): New insn and splitter definition.
1934 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1935 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1936 ("tx_assist"): New expander.
1937 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1938 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1939 * config/s390/s390.opt: Add -mhtm option.
1940 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1941 * config/s390/htmxlintrin.h: New file.
1942 * config/s390/htmintrin.h: New file.
1943 * config/s390/s390intrin.h: New file.
1944 * doc/extend.texi: Document htm builtins.
1945 * config.gcc: Add the new header files to extra_headers.
1947 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
1949 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
1950 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
1952 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1953 Pat Haugen <pthaugen@us.ibm.com>
1954 Peter Bergner <bergner@vnet.ibm.com>
1956 * config/rs6000/power8.md: New.
1957 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1958 setting for power8 entry.
1959 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1960 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1961 test for Power4/Power5 only.
1962 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1964 (force_new_group): Adjust comment.
1965 * config/rs6000/rs6000.md: Include power8.md.
1967 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1969 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1970 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1972 (tune_params): Update comment.
1973 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1974 (arm_max_conditional_execute): New function.
1975 (thumb2_final_prescan_insn): Use max_insn_skipped and
1976 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1978 2013-06-25 Jakub Jelinek <jakub@redhat.com>
1980 PR tree-optimization/57705
1981 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1982 SSA_NAME step, provided that it is not defined inside the loop.
1983 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
1984 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1986 2013-06-25 Martin Jambor <mjambor@suse.cz>
1989 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1990 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1992 (ipa_note_param_call): Initialize member_ptr flag.
1993 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1994 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1995 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1996 (ipa_read_indirect_edge_info): Likewise.
1998 2013-06-25 Richard Biener <rguenther@suse.de>
2001 * passes.c (init_optimization_passes): Move pass_fold_builtins
2002 and pass_dce earlier with -Og.
2004 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
2006 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
2007 <BIT_FIELD_REF>: Remove trailing TAB.
2008 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
2011 2013-06-24 Martin Jambor <mjambor@suse.cz>
2013 PR tree-optimization/57358
2014 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
2015 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
2016 (ipa_analyze_params_uses): Generate pessimistic info when true.
2018 2013-06-24 Martin Jambor <mjambor@suse.cz>
2020 PR tree-optimization/57539
2021 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
2022 global.inlined_to of the new node to it. All callers changed.
2023 * ipa-inline-transform.c (clone_inlined_nodes): New variable
2024 inlining_into, pass it to cgraph_clone_node.
2025 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
2026 ipa_free_edge_args_substructures.
2027 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
2028 rdesc linked list. Do not assert rdesc edges have inlined caller.
2029 Assert we have found an rdesc in the rdesc list.
2031 2013-06-24 Richard Biener <rguenther@suse.de>
2033 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
2034 (pointer_set_lookup): Declare.
2035 (class pointer_map): New template class implementing a
2036 generic pointer to T map.
2037 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
2038 pointer_map<T>::contains, pointer_map<T>::insert,
2039 pointer_map<T>::traverse): New functions.
2040 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
2041 (pointer_set_lookup): New function.
2042 (pointer_set_contains): Use pointer_set_lookup.
2043 (pointer_set_insert): Likewise.
2044 (insert_aux): Remove.
2045 (struct pointer_map_t): Embed a pointer_set_t.
2046 (pointer_map_create): Adjust.
2047 (pointer_map_destroy): Likewise.
2048 (pointer_map_contains): Likewise.
2049 (pointer_map_insert): Likewise.
2050 (pointer_map_traverse): Likewise.
2051 * tree-streamer.h (struct streamer_tree_cache_d): Use a
2052 pointer_map<unsigned> instead of a pointer_map_t.
2053 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
2054 (streamer_tree_cache_lookup): Likewise.
2055 (streamer_tree_cache_create): Likewise.
2056 (streamer_tree_cache_delete): Likewise.
2057 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
2058 pointer_map<unsigned> instead of a pointer_map_t.
2059 (lto_init_tree_ref_encoder): Adjust.
2060 (lto_destroy_tree_ref_encoder): Likewise.
2061 * lto-section-out.c (lto_output_decl_index): Likewise.
2062 (lto_record_function_out_decl_state): Likewise.
2063 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
2065 2013-06-24 Richard Biener <rguenther@suse.de>
2067 PR tree-optimization/57488
2068 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
2070 2013-06-24 Alan Modra <amodra@gmail.com>
2072 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2073 (gen_easy_altivec_constant): Likewise.
2074 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2075 easy_vector_constant_msb): Likewise.
2077 2013-06-23 Jakub Jelinek <jakub@redhat.com>
2080 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
2081 add missing return true.
2083 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
2086 * config/sh/predicates.md (general_extend_operand): Invoke
2087 general_movsrc_operand for memory operands.
2088 (general_movsrc_operand): Allow reg+reg addressing, do not use
2089 general_operand for memory operands.
2091 2013-06-23 Sriraman Tallam <tmsriram@google.com>
2093 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
2094 when current target options does not apply.
2095 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
2096 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
2097 * config/i386/bmiintrin.h: Pass appropriate target
2098 attributes to header.
2099 * config/i386/mmintrin.h: Ditto.
2100 * config/i386/nmmintrin.h: Ditto.
2101 * config/i386/avx2intrin.h: Ditto.
2102 * config/i386/fxsrintrin.h: Ditto.
2103 * config/i386/tbmintrin.h: Ditto.
2104 * config/i386/xsaveintrin.h: Ditto.
2105 * config/i386/f16cintrin.h: Ditto.
2106 * config/i386/xtestintrin.h: Ditto.
2107 * config/i386/xsaveoptintrin.h: Ditto.
2108 * config/i386/bmi2intrin.h: Ditto.
2109 * config/i386/lzcntintrin.h: Ditto.
2110 * config/i386/smmintrin.h: Ditto.
2111 * config/i386/wmmintrin.h: Ditto.
2112 * config/i386/x86intrin.h: Remove all header include guards.
2113 * config/i386/prfchwintrin.h: Ditto.
2114 * config/i386/pmmintrin.h: Ditto.
2115 * config/i386/tmmintrin.h: Ditto.
2116 * config/i386/xmmintrin.h: Ditto.
2117 * config/i386/popcntintrin.h: Ditto.
2118 * config/i386/rdseedintrin.h: Ditto.
2119 * config/i386/ammintrin.h: Ditto.
2120 * config/i386/emmintrin.h: Ditto.
2121 * config/i386/immintrin.h: Remove all header include guards.
2122 * config/i386/fma4intrin.h: Ditto.
2123 * config/i386/lwpintrin.h: Ditto.
2124 * config/i386/xopintrin.h: Ditto.
2125 * config/i386/ia32intrin.h: Ditto.
2126 * config/i386/avxintrin.h: Ditto.
2127 * config/i386/rtmintrin.h: Ditto.
2128 * config/i386/fmaintrin.h: Ditto.
2129 * config/i386/mm3dnow.h: Ditto.
2131 2013-06-22 Sriraman Tallam <tmsriram@google.com>
2133 * common/config/i386/i386-common.c: Handle LZCNT.
2135 2013-06-22 Andi Kleen <ak@linux.intel.com>
2137 * doc/extend.texi: Use __atomic_store_n instead of
2138 __atomic_store in HLE example.
2140 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2142 * config/sh/sh.c: Remove <cstdlib> workaround.
2144 2013-06-21 Andi Kleen <ak@linux.intel.com>
2146 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
2148 2013-06-21 Andi Kleen <ak@linux.intel.com>
2150 * doc/extend.texi: Document that __atomic_clear and
2151 __atomic_test_and_set should only be used with bool.
2153 2013-06-20 Jan Hubicka <jh@suse.cz>
2155 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2157 * tree.c (decls_same_for_odr): New function.
2158 (same_for_edr): New function.
2159 (types_same_for_odr): New function.
2160 (get_binfo_at_offset): Use it.
2161 * tree.h (types_same_for_odr): Declare.
2163 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
2164 Jason Merrill <jason@redhat.com>
2166 * system.h: Include <cstdlib> as well as <stdlib.h>.
2168 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
2171 * config/i386/i386.c (construct_container): Report error if
2172 long double is used with disabled x87 float returns.
2174 2013-06-20 Jan Hubicka <jh@suse.cz>
2176 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2178 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2180 PR rtl-optimization/57425
2181 PR rtl-optimization/57569
2182 * alias.c (write_dependence_p): Remove parameters mem_mode and
2183 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2184 Changed all callers.
2185 (canon_anti_dependence): Get comments and semantics in sync.
2186 Add parameter mem_canonicalized. Changed all callers.
2187 * rtl.h (canon_anti_dependence): Update prototype.
2189 2013-06-20 Richard Biener <rguenther@suse.de>
2191 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2192 byte case, inline streamer_read_uchar and defer section
2195 2013-06-20 Richard Biener <rguenther@suse.de>
2197 PR tree-optimization/57584
2198 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2199 SSA names into the expanded expression that take part in
2200 abnormal coalescing.
2202 2013-06-19 Sharad Singhai <singhai@google.com>
2204 * gcov.c (print_usage): Handle new option.
2205 (process_args): Ditto.
2206 (get_gcov_intermediate_filename): New function.
2207 (output_intermediate_file): New function.
2208 (output_gcov_file): New function
2209 (generate_results): Handle new option.
2210 (release_function): Relase demangled name.
2211 (read_graph_file): Handle demangled name.
2212 (output_lines): Ditto.
2213 * doc/gcov.texi: Document gcov intermediate format.
2215 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2218 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2219 (lra_emit_add): Use the functions. Add comment about Y as an
2222 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
2225 * collect2.c (collect_atexit): New.
2226 (collect_exit): Delete.
2227 (main): Register collect_atexit with atexit.
2228 (collect_wait): Change collect_exit to exit.
2230 * collect2.h (collect_exit): Delete.
2231 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2233 2013-06-19 Wei Mi <wmi@google.com>
2235 PR rtl-optimization/57518
2236 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2237 if regno is used in paradoxical subreg.
2238 (update_equiv_regs): Check pdx_subregs[regno] before
2239 set a reg to be equivalent with a mem.
2241 2013-06-19 Matthias Klose <doko@ubuntu.com>
2244 * file-find.h (find_a_file): Add a mode parameter.
2245 * file-find.c (find_a_file): Likewise.
2246 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2247 with X_OK for the executables.
2248 * collect2.c (main): Call find_a_file with X_OK.
2250 2013-06-19 Steve Ellcey <sellcey@mips.com>
2253 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2254 Use NEXT_INSN instead of next_real_insn.
2256 2013-06-19 Jan Hubicka <jh@suse.cz>
2258 * cgraph.h (const_value_known_p): Replace by ...
2259 (ctor_for_folding): .. this one.
2260 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2261 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2262 * expr.c (expand_expr_real_1): Likewise.
2263 (string_constant): Likewise.
2264 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2265 * ipa.c (process_references): Likewise.
2266 (symtab_remove_unreachable_nodes): Likewise.
2267 * ipa-inline-analysis.c (param_change_prob): Likewise.
2268 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2269 (get_base_constructor): Likwise.
2270 * varpool.c (varpool_remove_node): Likewise.
2271 (varpool_remove_initializer): LIkewise.
2272 (dump_varpool_node): LIkwise.
2273 (const_value_known_p): Rewrite to ...
2274 (ctor_for_folding): ... this one.
2276 2013-06-19 Jakub Jelinek <jakub@redhat.com>
2279 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2280 PERSONALITY in $PATH derived prefixes.
2282 2013-06-19 Jeff Law <law@redhat.com>
2284 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2287 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2288 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2291 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2293 * config/arm/vfp.md: Move VFP instruction classification documentation
2295 * config/arm/arm.md: ... here. Update instruction classification
2298 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
2300 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2301 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2302 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2304 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2307 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2308 with NEXT_INSN. Use tablejump_p to check for jump table data
2311 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2314 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2315 that now in C++ the value is correct per the C++ standards.
2317 2013-06-19 Richard Biener <rguenther@suse.de>
2319 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2322 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2325 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2328 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2329 with next_active_insn.
2331 2013-06-18 Sriraman Tallam <tmsriram@google.com>
2333 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2334 functions are inlined during failures to flag an error.
2335 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2336 in early inline pass.
2338 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2340 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2343 2013-06-18 Julian Brown <julian@codesourcery.com>
2345 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2346 Permit virtual register pre-reload if !strict.
2347 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2349 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2351 * config/arm/neon.md (movmisalign<mode>): Use
2352 neon_perm_struct_or_reg_operand instead of
2353 neon_struct_or_register_operand.
2354 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2355 neon_permissive_struct_operand instead of neon_struct_operand.
2356 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2357 neon_vector_mem_operand.
2358 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2359 neon_vector_mem_operand.
2360 (neon_permissive_struct_operand): New.
2361 (neon_struct_or_register_operand): Rename to...
2362 (neon_perm_struct_or_reg_operand): This. Adjust call to
2363 neon_vector_mem_operand.
2365 2013-06-18 Richard Biener <rguenther@suse.de>
2367 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2368 * lto-streamer.h: Include pointer-set.h.
2369 (struct lto_decl_slot): Remove.
2370 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2371 Remove next_index entry.
2372 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2373 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2374 (lto_init_tree_ref_encoder): Adjust.
2375 (lto_destroy_tree_ref_encoder): Likewise.
2376 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2377 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2378 (lto_output_decl_index): Adjust.
2379 (lto_new_out_decl_state): Likewise.
2380 (lto_record_function_out_decl_state): Likewise.
2381 * lto-streamer-out.c (copy_function): Likewise.
2383 2013-06-18 Richard Biener <rguenther@suse.de>
2385 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2386 * cgraphunit.c: Include cfgloop.h.
2387 (init_lowered_empty_function): Initialize the loop tree.
2388 (assemble_thunk): Insert new BBs into loops.
2390 2013-06-18 Richard Biener <rguenther@suse.de>
2392 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2393 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2394 the map from cache entry to cache index optional.
2395 (streamer_tree_cache_replace_tree): Adjust accordingly.
2396 (streamer_tree_cache_append): Likewise.
2397 (streamer_tree_cache_delete): Likewise.
2398 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2399 streamer cache map from cache entry to cache index.
2400 * lto-streamer-out.c (create_output_block): Adjust.
2402 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2404 * config/arm/arm.md (attribute "insn"): Move multiplication and
2405 division attributes to...
2406 (attribute "type"): ... here. Remove mult.
2407 (attribute "mul32"): New attribute.
2408 (attribute "mul64"): Add umaal.
2409 (*arm_mulsi3): Update attributes.
2410 (*arm_mulsi3_v6): Likewise.
2411 (*thumb_mulsi3): Likewise.
2412 (*thumb_mulsi3_v6): Likewise.
2413 (*mulsi3_compare0): Likewise.
2414 (*mulsi3_compare0_v6): Likewise.
2415 (*mulsi_compare0_scratch): Likewise.
2416 (*mulsi_compare0_scratch_v6): Likewise.
2417 (*mulsi3addsi): Likewise.
2418 (*mulsi3addsi_v6): Likewise.
2419 (*mulsi3addsi_compare0): Likewise.
2420 (*mulsi3addsi_compare0_v6): Likewise.
2421 (*mulsi3addsi_compare0_scratch): Likewise.
2422 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2423 (*mulsi3subsi): Likewise.
2424 (*mulsidi3adddi): Likewise.
2425 (*mulsi3addsi_v6): Likewise.
2426 (*mulsidi3adddi_v6): Likewise.
2427 (*mulsidi3_nov6): Likewise.
2428 (*mulsidi3_v6): Likewise.
2429 (*umulsidi3_nov6): Likewise.
2430 (*umulsidi3_v6): Likewise.
2431 (*umulsidi3adddi): Likewise.
2432 (*umulsidi3adddi_v6): Likewise.
2433 (*smulsi3_highpart_nov6): Likewise.
2434 (*smulsi3_highpart_v6): Likewise.
2435 (*umulsi3_highpart_nov6): Likewise.
2436 (*umulsi3_highpart_v6): Likewise.
2437 (mulhisi3): Likewise.
2438 (*mulhisi3tb): Likewise.
2439 (*mulhisi3bt): Likewise.
2440 (*mulhisi3tt): Likewise.
2441 (maddhisi4): Likewise.
2442 (*maddhisi4tb): Likewise.
2443 (*maddhisi4tt): Likewise.
2444 (maddhidi4): Likewise.
2445 (*maddhidi4tb): Likewise.
2446 (*maddhidi4tt): Likewise.
2448 (udivsi3): Likewise.
2449 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2450 (thumb2_mulsi_short_compare0): Likewise.
2451 (thumb2_mulsi_short_compare0_scratch): Likewise.
2452 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2453 (1020mult2): Likewise.
2454 (1020mult3): Likewise.
2455 (1020mult4): Likewise.
2456 (1020mult5): Likewise.
2457 (1020mult6): Likewise.
2458 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2460 (cortex_a15_mult64): Likewise.
2461 (cortex_a15_sdiv): Likewise.
2462 (cortex_a15_udiv): Likewise.
2463 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2469 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2470 (pj4_ir_div): Likewise.
2471 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2472 (11_mult2): Likewise.
2473 (11_mult3): Likewise.
2474 (11_mult4): Likewise.
2475 (11_mult5): Likewise.
2476 (11_mult6): Likewise.
2477 (11_mult7): Likewise.
2478 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2479 (cortex_a8_mla): Likewise.
2480 (cortex_a8_mull): Likewise.
2481 (cortex_a8_smulwy): Likewise.
2482 (cortex_a8_smlald): Likewise.
2483 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2484 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2485 (cortex_r4_mul_3): Likewise.
2486 (cortex_r4_mla_4): Likewise.
2487 (cortex_r4_mla_3): Likewise.
2488 (cortex_r4_smlald): Likewise.
2489 (cortex_r4_mull): Likewise.
2490 (cortex_r4_sdiv): Likewise.
2491 (cortex_r4_udiv): Likewise.
2492 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2493 (cortex_a7_idiv): Likewise.
2494 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2495 (9_mult2): Likewise.
2496 (9_mult3): Likewise.
2497 (9_mult4): Likewise.
2498 (9_mult5): Likewise.
2499 (9_mult6): Likewise.
2500 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2501 (cortex_a53_sdiv): Likewise.
2502 (cortex_a53_udiv): Likewise.
2503 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2504 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2505 (mp626_mult2): Likewise.
2506 (mp626_mult3): Likewise.
2507 (mp626_mult4): Likewise.
2508 * config/arm/fa526.md (526_mult1): Update attribute change.
2509 (526_mult2): Likewise.
2510 * config/arm/arm-generic.md (mult): Update attribute change.
2511 (mult_ldsched_strongarm): Likewise.
2512 (mult_ldsched): Likewise.
2513 (multi_cycle): Likewise.
2514 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2515 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2516 (606te_mult2): Likewise.
2517 (606te_mult3): Likewise.
2518 (606te_mult4): Likewise.
2519 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2520 (cortex_a9_mac16): Likewise.
2521 (cortex_a9_multiply): Likewise.
2522 (cortex_a9_mac): Likewise.
2523 (cortex_a9_multiply_long): Likewise.
2524 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2525 (626te_mult2): Likewise.
2526 (626te_mult3): Likewise.
2527 (626te_mult4): Likewise.
2529 2013-06-18 Richard Biener <rguenther@suse.de>
2532 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2534 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2537 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2538 with next_active_insn.
2540 2013-06-18 Alan Modra <amodra@gmail.com>
2542 * config/rs6000/rs6000.h (enum data_align): New.
2543 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2544 (DATA_ABI_ALIGNMENT): Define.
2545 (CONSTANT_ALIGNMENT): Correct comment.
2546 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2547 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2549 2013-06-17 David Malcolm <dmalcolm@redhat.com>
2551 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2552 ATTRIBUTE_UNUSED marking.
2554 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2556 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2557 alternative and update.
2558 (aarch64_dup_lanedi): Delete.
2559 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2560 * config/aarch64/aarch64-simd-builtins.def: Update.
2562 2013-06-17 Richard Biener <rguenther@suse.de>
2564 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2565 (lto_input_scc): Declare.
2566 (lto_input_tree_1): Likewise.
2567 (struct lto_stats_d): Add num_tree_bodies_output and
2568 num_pickle_refs_output.
2569 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2570 (lto_read_tree_1): Split out from ...
2571 (lto_read_tree): ... this.
2572 (lto_input_scc): New function.
2573 (lto_input_tree_1): Split out from ...
2574 (lto_input_tree): ... this. Handle LTO_tree_scc.
2575 (lto_data_in_create): Create the streamer cache without hashes.
2576 * lto-streamer-out.c (create_output_block): Create the streamer
2577 cache with hashes when not doing WPA.
2578 (lto_write_tree_1): Split out from ...
2579 (lto_write_tree): ... this.
2580 (get_symbol_initial_value): New function.
2581 (lto_output_tree_1): Split out from ...
2582 (lto_output_tree): ... this. Write trees as series of SCCs
2583 using a DFS walk via DFS_write_tree.
2584 (struct sccs, struct scc_entry): New types.
2585 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2586 (DFS_write_tree_body): New function.
2587 (DFS_write_tree): Likewise.
2588 (hash_tree): Likewise.
2589 (scc_entry_compare): Likewise.
2590 (hash_scc): Likewise.
2591 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2592 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2593 TREE_CHAIN as regular reference.
2594 (streamer_read_integer_cst): Remove.
2595 (streamer_get_pickled_tree): Adjust.
2596 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2597 of DECL_EXTERNALs in BLOCK_VARS for now.
2598 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2600 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2601 Add hash value argument and record that if hashes are recorded
2603 (streamer_tree_cache_insert_1): Adjust.
2604 (streamer_tree_cache_insert): Likewise.
2605 (streamer_tree_cache_insert_at): Rename to ...
2606 (streamer_tree_cache_replace_tree): ... this and adjust.
2607 (streamer_tree_cache_append): Adjust.
2608 (record_common_node): Likewise.
2609 (streamer_tree_cache_create): Add argument whether to
2610 record hash values together with trees.
2611 (streamer_tree_cache_delete): Adjust.
2612 * tree-streamer.h (struct streamer_tree_cache_d): Add
2614 (streamer_read_integer_cst): Remove.
2615 (streamer_tree_cache_insert): Adjust.
2616 (streamer_tree_cache_append): Likewise.
2617 (streamer_tree_cache_insert_at): Rename to ...
2618 (streamer_tree_cache_replace_tree): ... this and adjust.
2619 (streamer_tree_cache_create): Add argument whether to record hashes.
2620 (streamer_tree_cache_get): Rename to ...
2621 (streamer_tree_cache_get_tree): ... this.
2622 (streamer_tree_cache_get_hash): New function.
2623 * tree.c (cache_integer_cst): New function.
2624 * tree.h (cache_integer_cst): Declare.
2625 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2626 * lto-symtab.c (lto_varpool_replace_node): Only release
2627 DECL_INITIAL of non-prevailing decls.
2628 * varpool.c (varpool_remove_initializer): Do not release
2629 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2631 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2633 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2634 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2635 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2636 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2637 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2638 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2639 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2640 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2641 instead of TARGET_64BIT.
2642 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2643 Require ISA_HAS_<D>DIV.
2645 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2647 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2648 (mips*-*-linux*): Move default with_llsc setting to where other
2650 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2652 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2653 Likewise. Remove default with_tune setting. Move default float
2654 setting to its own block. Handle with_llsc in the same block as above.
2656 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2658 PR rtl-optimization/57425
2659 PR rtl-optimization/57569
2660 * alias.c (write_dependence_p): Add new parameters mem_mode,
2661 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2662 Changed all callers.
2663 (canon_anti_dependence): New function.
2664 * cse.c (check_dependence): Use canon_anti_dependence.
2665 * cselib.c (cselib_invalidate_mem): Likewise.
2666 * rtl.h (canon_anti_dependence): Declare.
2668 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2670 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2671 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2672 ".set mips3" for 64-bit targets.
2674 2013-06-15 Dehao Chen <dehao@google.com>
2676 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2677 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2678 (gimple_check_call_args): Likewise.
2679 * value-prof.c (check_ic_target): Likewise.
2680 * ipa-inline.c (early_inliner): Likewise.
2681 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2682 * cgraph.c (cgraph_create_edge_1): Likewise.
2683 (cgraph_make_edge_direct): Likewise.
2685 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2688 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2689 rs6000_output_move_128bit to handle emitting quad memory
2690 operations. Set attribute length to 8 bytes.
2692 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2694 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2696 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2697 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2698 (aarch64_<su>mlsl<mode>): Likewise.
2700 2013-06-14 Mike Stump <mikestump@comcast.net>
2702 * Makefile.in (TARGET_H): Add insn-codes.h.
2704 2013-06-14 Alan Modra <amodra@gmail.com>
2708 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2709 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2710 bitfield expansion when EXPAND_MEMORY.
2711 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2713 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2715 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2716 test for clearing quad memory on 32-bit later.
2718 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2720 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2721 (fold_negate_expr): Likewise.
2722 (fold_real_zero_addition_p): Handle vectors.
2723 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2725 2013-06-14 Alan Modra <amodra@gmail.com>
2727 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2729 2013-06-13 Jan Hubicka <jh@suse.cz>
2731 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2732 Local comdats are not externally visible.
2733 * symtab.c (dump_symtab_base): Dump externally visible.
2734 (verify_symtab_base): Verify back links in the symtab hash.
2736 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2738 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2739 CONVERT_EXPR as equal nodes.
2741 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2743 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2745 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2747 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2748 Generalize to complex and vector.
2749 * tree.c (build_all_ones_cst): New function.
2750 * tree.h (build_all_ones_cst): Declare it.
2752 2013-06-13 Alan Modra <amodra@gmail.com>
2754 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2755 * config/rs6000/rs6000.md (signbittf2): New insn.
2756 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2757 (abstf2_internal, cmptf_internal2): Likewise.
2758 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2760 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2761 Pat Haugen <pthaugen@us.ibm.com>
2762 Peter Bergner <bergner@vnet.ibm.com>
2764 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2765 power8 byte, half-word, and quad-word atomic instructions.
2766 (emit_store_conditional): Likewise.
2767 (rs6000_expand_atomic_compare_and_swap): Likewise.
2768 (rs6000_expand_atomic_op): Likewise.
2770 * config/rs6000/sync.md (larx): Add new modes for power8.
2772 (AINT): New mode iterator to include TImode as well as normal
2773 integer modes on power8.
2774 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2775 that VSX registers are not considered. Use AINT mode iterator
2776 instead of INT1 to allow inclusion of quad word atomic operations
2778 (load_locked<mode>): Likewise.
2779 (store_conditional<mode>): Likewise.
2780 (atomic_compare_and_swap<mode>): Likewise.
2781 (atomic_exchange<mode>): Likewise.
2782 (atomic_nand<mode>): Likewise.
2783 (atomic_fetch_<fetchop_name><mode>): Likewise.
2784 (atomic_nand_fetch<mode>): Likewise.
2785 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2787 (ATOMIC): On power8, add QImode, HImode modes.
2788 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2789 modes that promote to SImode.
2790 (load_lockedti): Convert TImode arguments to PTImode, so that we
2791 get a guaranteed even/odd register pair.
2792 (load_lockedpti): Likewise.
2793 (store_conditionalti): Likewise.
2794 (store_conditionalpti): Likewise.
2796 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2797 atomic load/store instructions.
2800 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2802 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2804 (insn_count): New attribute, with most cases extracted from...
2805 (length): ...here. Redefine most cases in terms of insn_count.
2806 (single_insn): Delete.
2807 (can_delay): Use insn_count to check for single instructions.
2808 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2809 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2810 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2811 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2812 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2813 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2814 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2815 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2816 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2817 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2818 rather than "length".
2819 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2820 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2821 Use "insn_count" rather than "length".
2822 * config/mips/mips-dsp.md
2823 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2824 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2827 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
2829 PR tree-optimization/57361
2830 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2832 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2834 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2836 (aarch64_simd_combine<mode>): New instruction expansion.
2837 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2839 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2840 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2842 2013-06-12 Jan Hubicka <jh@suse.cz>
2844 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2845 decl has when in streaming stage.
2846 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2847 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2849 2013-06-12 Roland Stigge <stigge@antcom.de>
2852 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2854 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2856 PR tree-optimization/57537
2857 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2858 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2860 2013-06-12 Richard Biener <rguenther@suse.de>
2862 * data-streamer.h (streamer_write_char_stream): CSE
2863 obs->current_pointer.
2864 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2865 streamer_write_char_stream manually and optimize the resulting loop.
2866 (streamer_write_hwi_stream): Likewise.
2868 2013-06-12 Jan Hubicka <jh@suse.cz>
2870 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2871 * cgraph.h (varpool_create_empty_node): Declare.
2872 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2874 * symtab.c (symtab_unregister_node): Be lax about missin entries
2876 (symtab_get_node): Update comment.
2877 * varpool.c (varpool_create_empty_node): Break out from ...
2878 (varpool_node_for_decl): ... here.
2879 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2881 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2883 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2884 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2885 part. Use straight-line flow at the end.
2886 <COMPONENT_REF>: Remove superfluous else.
2887 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2889 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2892 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2893 target hook even for !TREE_PUBLIC decls. If no resolution info
2894 is available, return false for common and external decls.
2896 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2898 * config/rl78/constraints.md (U): New constraint.
2899 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2902 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2905 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2906 to allow returning address to AT_PLATFORM name.
2908 2013-06-11 Jan Hubicka <jh@suse.cz>
2910 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2911 * cgraph.h (symtab_node_base): Add weakref flag.
2912 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2913 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2914 (output_weakrefs): Use weakref flag.
2915 * fold-const.c (simple_operand_p): Handle WEAK.
2916 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2917 * ipa.c (varpool_externally_visible_p): Drop weakref.
2918 (function_and_variable_visibility): Update comment; fix weakref
2919 sanity checks; do not clear DECL_WEAK on them.
2920 * lto-cgraph.c (lto_output_node): update.
2921 (lto_output_varpool_node): Update.
2922 (input_overwrite_node): Update.
2923 (input_node): Update.
2924 (input_varpool_node): Update.
2925 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2926 (lto_symtab_merge_symbols): Add sanity check.
2927 (lto_symtab_prevailing_decl): Do not special case weakrefs.
2928 * passes.c (rest_of_decl_compilation): Set static flag, too.
2929 * symtab.c (dump_symtab_base): Dump weakref.
2930 (verify_symtab_base): Sanity check weakrefs.
2931 (symtab_make_decl_local): Remove duplicated code.
2932 (symtab_alias_ultimate_target): Simplify.
2933 * varpool.c (varpool_create_variable_alias): Set weakref flag.
2935 2013-06-11 DJ Delorie <dj@redhat.com>
2937 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2938 (rl78_unwind_word_mode): New.
2940 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2942 * final.c (debug_prefix_maps): Make static.
2944 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2946 * function.c (initial_trampoline): Remove stray copy.
2948 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
2950 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2952 2013-06-11 Martin Jambor <mjambor@suse.cz>
2954 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2955 within bounds at the beginning of the function.
2957 2013-06-11 Alan Modra <amodra@gmail.com>
2959 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2961 (get_named_section): Don't NULL !DECL_P decl.
2963 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2965 * doc/invoke.texi (core-avx2): Document.
2967 (atom): Updated with MOVBE.
2969 2013-06-11 Richard Biener <rguenther@suse.de>
2971 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
2973 2013-06-11 Anton Blanchard <anton@samba.org>
2975 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2976 correct shift value in little-endian mode.
2978 2013-06-11 Jakub Jelinek <jakub@redhat.com>
2981 * varasm.c (get_variable_align): Move #endif to the right place.
2983 2013-06-10 Cary Coutant <ccoutant@google.com>
2985 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2986 for hash so that hash table traversal order is deterministic.
2988 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2989 Pat Haugen <pthaugen@us.ibm.com>
2990 Peter Bergner <bergner@vnet.ibm.com>
2992 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2993 of vectors in GPRS if they are direct moves or quad word load or
2996 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2998 (direct_move_p): Likewise.
2999 (quad_load_store_p): Likewise.
3001 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
3002 classes into bins based on the physical register type.
3003 (reg_class_to_reg_type): Likewise.
3004 (IS_STD_REG_TYPE): Likewise.
3005 (IS_FP_VECT_REG_TYPE): Likewise.
3006 (reload_fpr_gpr): Arrays to determine what insn to use if we can
3007 use direct move instructions.
3008 (reload_gpr_vsx): Likewise.
3009 (reload_vsx_gpr): Likewise.
3010 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
3011 information that is a simplification of register classes. Also
3012 precalculate direct move reload helpers.
3013 (direct_move_p): New function to return true if the operation can
3014 be done as a direct move instruciton.
3015 (quad_load_store_p): New function to return true if the operation
3016 is a quad memory operation.
3017 (rs6000_legitimize_address): If quad memory, only allow register
3018 indirect for TImode addresses.
3019 (rs6000_legitimate_address_p): Likewise.
3020 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
3021 (rs6000_reload_register_type): Likewise.
3022 (register_to_reg_type): Return register type.
3023 (rs6000_secondary_reload_simple_move): New helper function for
3024 secondary reload and secondary memory needed to identify anything
3025 that is a simple move, and does not need reloading.
3026 (rs6000_secondary_reload_direct_move): New helper function for
3027 secondary reload to identify cases that can be done with several
3028 instructions via the direct move instructions.
3029 (rs6000_secondary_reload_move): New helper function for secondary
3030 reload to identify moves between register types that can be done.
3031 (rs6000_secondary_reload): Add support for quad memory operations
3032 and for direct move.
3033 (rs6000_secondary_memory_needed): Likewise.
3034 (rs6000_debug_secondary_memory_needed): Change argument names.
3035 (rs6000_output_move_128bit): New function to return the move to
3036 use for 128-bit moves, including knowing about the various
3037 limitations of quad memory operations.
3039 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
3040 memory operations. call rs6000_output_move_128bit for the actual
3041 instruciton(s) to generate.
3042 (vsx_movti_64bit): Likewise.
3044 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
3045 (UNSPEC_P8V_MTVSRWZ): Likewise.
3046 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
3047 (UNSPEC_P8V_MTVSRD): Likewise.
3048 (UNSPEC_P8V_XXPERMDI): Likewise.
3049 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
3050 (UNSPEC_FUSION_GPR): Likewise.
3051 (FMOVE128_GPR): New iterator for direct move.
3052 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
3055 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
3056 loads and direct move instructions.
3057 (zero_extendsidi2_lfiwzx): Likewise.
3058 (extendsidi2_lfiwax): Likewise.
3059 (extendsidi2_nocell): Likewise.
3060 (floatsi<mode>2_lfiwax): Likewise.
3062 (floatunssi<mode>2_lfiwzx): Likewise.
3064 (fix_trunc<mode>_stfiwx): Likewise.
3065 (fixuns_trunc<mode>_stfiwx): Likewise.
3066 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
3067 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
3068 (parity<mode>2_cmpb): Set length/type attr.
3069 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
3070 for 'mr.' to fast_compare.
3071 (bpermd_<mode>): Change type attr to popcnt.
3072 (p8_fmrgow_<mode>): New insns for power8 direct move support.
3073 (p8_mtvsrwz_1): Likewise.
3074 (p8_mtvsrwz_2): Likewise.
3075 (reload_fpr_from_gpr<mode>): Likewise.
3076 (p8_mtvsrd_1): Likewise.
3077 (p8_mtvsrd_2): Likewise.
3078 (p8_xxpermdi_<mode>): Likewise.
3079 (reload_vsx_from_gpr<mode>): Likewise.
3080 (reload_vsx_from_gprsf): Likewise.
3081 (p8_mfvsrd_3_<mode>): LIkewise.
3082 (reload_gpr_from_vsx<mode>): Likewise.
3083 (reload_gpr_from_vsxsf): Likewise.
3084 (p8_mfvsrd_4_disf): Likewise.
3085 (multi-word GPR splits): Do not split direct moves or quad memory
3088 2013-06-10 David Malcolm <dmalcolm@redhat.com>
3090 * tree-into-ssa.c (interesting_blocks): Make static.
3092 2013-06-10 Jakub Jelinek <jakub@redhat.com>
3095 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
3096 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
3097 Use DATA_ABI_ALIGNMENT for that case instead if defined.
3098 (get_variable_align): New function.
3099 (get_variable_section, emit_bss, emit_common,
3100 assemble_variable_contents, place_block_symbol): Use
3101 get_variable_align instead of DECL_ALIGN.
3102 (assemble_noswitch_variable): Add align argument, use it
3103 instead of DECL_ALIGN.
3104 (assemble_variable): Adjust caller. Use get_variable_align
3105 instead of DECL_ALIGN.
3106 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
3108 (DATA_ABI_ALIGNMENT): Define.
3109 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
3110 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
3111 opt is false, only return the psABI mandated alignment increase.
3112 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
3113 (DATA_ABI_ALIGNMENT): ... this.
3114 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
3115 (DATA_ABI_ALIGNMENT): ... this.
3116 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
3117 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
3118 (DATA_ABI_ALIGNMENT): ... this.
3119 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
3120 * doc/tm.texi: Regenerated.
3122 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
3124 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3125 cmp_code to construct REG_EQUAL note.
3127 2013-06-09 Jakub Jelinek <jakub@redhat.com>
3130 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3131 that operands[2] doesn't overlap with operands[0].
3133 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
3134 Jan Hubicka <jh@suse.cz>
3136 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3137 hack to mark symbols as used.
3139 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3141 PR rtl-optimization/57559
3142 * lra-constraints.c (process_alt_operands): Don't discourage
3143 memory with known offset for offsetable memory constraint.
3144 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3146 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3148 * varasm.c (struct oc_local_state): Reorder fields.
3149 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3150 and adjust accordingly.
3151 (output_constructor): Reorder initialization code and adjust call to
3152 output_constructor_bitfield.
3154 2013-06-07 Jan Hubicka <jh@suse.cz>
3156 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3158 2013-06-07 David Malcolm <dmalcolm@redhat.com>
3160 * tree-object-size.c (unknown): Make const.
3162 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3164 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3165 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3166 for last alternative in the cpu_facility attribute.
3168 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3171 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3172 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3173 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3174 * config/arm/constraints.md (Dg): New constraint.
3175 * config/arm/neon.md (xordi3_neon): Remove.
3176 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3177 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3179 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3181 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3182 Clean up alternatives.
3184 2013-06-07 Alan Modra <amodra@gmail.com>
3186 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3189 2013-06-07 Alan Modra <amodra@gmail.com>
3191 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3193 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3195 * config/arm/constraints.md (Df): New constraint.
3196 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3197 Correct length attribute for last two alternatives.
3199 2013-06-07 Alan Modra <amodra@gmail.com>
3201 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3202 override user -mfp-in-toc.
3203 (offsettable_ok_by_alignment): Consider just the current access
3204 rather than the whole object, unless BLKmode. Handle
3205 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3206 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3207 for -mcmodel=medium.
3208 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3209 override user -mfp-in-toc or -msum-in-toc. Default to
3210 -mno-fp-in-toc for -mcmodel=medium.
3212 2013-06-06 DJ Delorie <dj@redhat.com>
3214 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3215 TARGET_VALID_POINTER_MODE.
3217 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3218 Pat Haugen <pthaugen@us.ibm.com>
3219 Peter Bergner <bergner@vnet.ibm.com>
3221 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3222 Document new power8 builtins.
3224 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3225 condition code register, to allow 128-bit logical operations to be
3226 done in the VSX or GPR registers.
3227 (nor<mode>3): Use the canonical form for nor.
3228 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3229 vclz*, and vpopcnt* vector instructions.
3230 (nand<mode>3): Likewise.
3231 (orc<mode>3): Likewise.
3232 (clz<mode>2): LIkewise.
3233 (popcount<mode>2): Likewise.
3235 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3236 that only the GPRs are recognized.
3238 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3239 support for new power8 builtins.
3241 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3243 (xscvdpspn): Likewise.
3249 (vpopcnt): Likewise.
3250 (vpopcntb): Likewise.
3251 (vpopcnth): Likewise.
3252 (vpopcntw): Likewise.
3253 (vpopcntd): Likewise.
3258 (eqv_v16qi3): Likewise.
3259 (eqv_v8hi3): Likewise.
3260 (eqv_v4si3): Likewise.
3261 (eqv_v2di3): Likewise.
3262 (eqv_v4sf3): Likewise.
3263 (eqv_v2df3): Likewise.
3265 (nand_v16qi3): Likewise.
3266 (nand_v8hi3): Likewise.
3267 (nand_v4si3): Likewise.
3268 (nand_v2di3): Likewise.
3269 (nand_v4sf3): Likewise.
3270 (nand_v2df3): Likewise.
3272 (orc_v16qi3): Likewise.
3273 (orc_v8hi3): Likewise.
3274 (orc_v4si3): Likewise.
3275 (orc_v2di3): Likewise.
3276 (orc_v4sf3): Likewise.
3277 (orc_v2df3): Likewise.
3279 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3280 allow power8 quad mode in 64-bit.
3281 (rs6000_builtin_vectorized_function): Add support to vectorize
3282 ISA 2.07 count leading zeros, population count builtins.
3283 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3284 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3285 (builtin_function_type): Add vgbbd builtin function which takes an
3287 (altivec_expand_vec_perm_const): Add support for new power8 merge
3290 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3291 that does not include TImdoe for use with 32-bit.
3292 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3294 (UNSPEC_VSX_CVDPSPN): Likewise.
3295 (vsx_xscvdpspn): Likewise.
3296 (vsx_xscvspdpn): Likewise.
3297 (vsx_xscvdpspn_scalar): Likewise.
3298 (vsx_xscvspdpn_directmove): Likewise.
3299 (vsx_and<mode>3): Split logical operations into 32-bit and
3300 64-bit. Add support to do logical operations on TImode as well as
3301 VSX vector types. Allow logical operations to be done in either
3302 VSX registers or in general purpose registers in 64-bit mode. Add
3303 splitters if GPRs were used. For AND, add clobber of CCmode to
3304 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3306 (vsx_and<mode>3_32bit): Likewise.
3307 (vsx_and<mode>3_64bit): Likewise.
3308 (vsx_ior<mode>3): Likewise.
3309 (vsx_ior<mode>3_32bit): Likewise.
3310 (vsx_ior<mode>3_64bit): Likewise.
3311 (vsx_xor<mode>3): Likewise.
3312 (vsx_xor<mode>3_32bit): Likewise.
3313 (vsx_xor<mode>3_64bit): Likewise.
3314 (vsx_one_cmpl<mode>2): Likewise.
3315 (vsx_one_cmpl<mode>2_32bit): Likewise.
3316 (vsx_one_cmpl<mode>2_64bit): Likewise.
3317 (vsx_nor<mode>3): Likewise.
3318 (vsx_nor<mode>3_32bit): Likewise.
3319 (vsx_nor<mode>3_64bit): Likewise.
3320 (vsx_andc<mode>3): Likewise.
3321 (vsx_andc<mode>3_32bit): Likewise.
3322 (vsx_andc<mode>3_64bit): Likewise.
3323 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3324 and xxlorc instructions.
3325 (vsx_eqv<mode>3_64bit): Likewise.
3326 (vsx_nand<mode>3_32bit): Likewise.
3327 (vsx_nand<mode>3_64bit): Likewise.
3328 (vsx_orc<mode>3_32bit): Likewise.
3329 (vsx_orc<mode>3_64bit): Likewise.
3331 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3333 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3335 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3336 (p8_vmrgow): Likewise.
3337 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3338 GPRs to be split under VSX.
3339 (p8v_clz<mode>2): Add power8 count leading zero support.
3340 (p8v_popcount<mode>2): Add power8 population count support.
3341 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3344 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3347 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3349 (vec_nand): Likewise.
3350 (vec_vclz): Likewise.
3351 (vec_vclzb): Likewise.
3352 (vec_vclzd): Likewise.
3353 (vec_vclzh): Likewise.
3354 (vec_vclzw): Likewise.
3355 (vec_vgbbd): Likewise.
3356 (vec_vmrgew): Likewise.
3357 (vec_vmrgow): Likewise.
3358 (vec_vpopcnt): Likewise.
3359 (vec_vpopcntb): Likewise.
3360 (vec_vpopcntd): Likewise.
3361 (vec_vpopcnth): Likewise.
3362 (vec_vpopcntw): Likewise.
3364 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3366 PR rtl-optimization/57468
3367 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3370 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3372 PR rtl-optimization/57459
3373 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3374 type when setting live regs.
3376 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3378 * config/s390/s390.opt (mlra): New option.
3379 * config/s390/s390.c (s390_decompose_address): Check displacement
3380 for all registers for LRA.
3381 (s390_secondary_reload): Don't used secondary reloads for LRA.
3382 (s390_lra_p): New function.
3383 (TARGET_LRA_P): Define.
3384 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3385 of attribute cpu_facility to zarch for the last alternative.
3386 (*cmpmem_short): Ditto.
3388 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3390 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3391 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3392 (arm_expand_prologue): Likewise.
3394 2013-06-06 Teresa Johnson <tejohnson@google.com>
3397 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3398 as this is now done by redirect_edge_and_branch_force.
3399 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3400 barriers, and fix interaction with splitting.
3401 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3402 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3403 reflect changes made in the routine.
3404 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3405 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3406 since this is called in cfglayout mode, and replace partition fixup
3407 with assert as that is now done by force_nonfallthru_and_redirect.
3408 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3409 already be marked with region crossing note.
3410 (insert_section_boundary_note): Make non-static, gate on flag
3411 has_bb_partition, rewrite to also check for multiple partitions.
3412 (rest_of_handle_reorder_blocks): Remove call to
3413 insert_section_boundary_note, now done later during free_cfg.
3414 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3415 * bb-reorder.h (insert_section_boundary_note): Declare.
3416 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3417 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3418 invoke insert_section_boundary_note.
3419 (try_redirect_by_replacing_jump): Remove unnecessary
3420 check for region crossing note.
3421 (fixup_partition_crossing): New function.
3422 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3423 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3424 in non-cfglayout mode.
3425 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3426 remove old code that tried to do this. Emit barrier correctly
3427 when we are in cfglayout mode.
3428 (last_bb_in_partition): New function.
3429 (rtl_split_edge): Correctly fixup partition boundaries.
3430 (commit_one_edge_insertion): Remove old code that tried to
3431 fixup region crossing edge since this is now handled in
3432 split_block, and set up insertion point correctly since
3433 block may now end in a jump.
3434 (verify_hot_cold_block_grouping): Guard against checking when not in
3435 linearized RTL mode.
3436 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3438 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3439 rtl_verify_flow_info, so not called in cfglayout mode.
3440 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3441 (fixup_reorder_chain): Remove old code that attempted to fixup region
3442 crossing note as this is now handled in force_nonfallthru_and_redirect.
3443 (duplicate_insn_chain): Don't duplicate switch section notes.
3444 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3446 * basic-block.h (emit_barrier_after_bb): Declare.
3448 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3450 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3451 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3452 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3454 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3456 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3458 * config/arm/ldmstm.md: Regenerate.
3460 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3462 * config/arm/sync.md (atomic_loaddi_1):
3463 Disable predication for arm_restrict_it.
3464 (arm_load_exclusive<mode>): Likewise.
3465 (arm_load_exclusivesi): Likewise.
3466 (arm_load_exclusivedi): Likewise.
3467 (arm_load_acquire_exclusive<mode>): Likewise.
3468 (arm_load_acquire_exclusivesi): Likewise.
3469 (arm_load_acquire_exclusivedi): Likewise.
3470 (arm_store_exclusive<mode>): Likewise.
3471 (arm_store_exclusive<mode>): Likewise.
3472 (arm_store_release_exclusivedi): Likewise.
3473 (arm_store_release_exclusive<mode>): Likewise.
3475 2013-06-06 Richard Biener <rguenther@suse.de>
3477 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3479 (lto_tag_is_tree_code_p): Adjust.
3480 (lto_tag_is_gimple_code_p): Likewise.
3481 (lto_gimple_code_to_tag): Likewise.
3482 (lto_tag_to_gimple_code): Likewise.
3483 (lto_tree_code_to_tag): Likewise.
3484 (lto_tag_to_tree_code): Likewise.
3485 * data-streamer.h (streamer_write_hwi_in_range): Use
3486 uhwi streaming to stream the normalized range.
3487 (streamer_read_hwi_in_range): Likewise.
3489 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3491 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3492 (predicable_short_it): Likewise.
3493 (predicated): Likewise.
3494 (enabled): Handle above.
3495 (define_cond_exec): Set predicated attribute to yes.
3497 2013-06-05 Mike Stump <mikestump@comcast.net>
3499 * gdbinit.in (__FUNCTION__): Add.
3501 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
3503 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3504 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3506 2013-06-05 Jan Hubicka <jh@suse.cz>
3508 * varasm.c (mark_decl_referenced): Revert the removal until targets
3511 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
3513 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3514 instead of mark_decl_referenced.
3516 2013-06-05 Jan Hubicka <jh@suse.cz>
3518 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3519 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3520 and symtab_used_from_object_file_p.
3521 (cgraph_make_node_local_1): Clear forced_by_abi.
3522 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3523 * cgraph.h (symtab_node_base): Add forced_by_abi.
3524 (decide_is_variable_needed): Remove.
3525 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3526 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3527 (decide_is_symbol_needed): ... this one; handle symbols in general;
3528 always analyze virtuals; honnor forced_by_abi.
3529 (cgraph_finalize_function): Update.
3530 (varpool_finalize_decl): Update.
3531 (symbol_defined_and_needed): Remove.
3532 (analyze_functions): Update.
3533 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3534 output_refs, input_overwrite_node): Handle forced_by_abi.
3535 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3536 (address_taken_from_non_vtable_p): ... this one.
3537 (comdat_can_be_unshared_p_1): New function.
3538 (cgraph_comdat_can_be_unshared_p): Rename to ...
3539 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3540 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3541 (function_and_variable_visibility): Clear forced_by_abi as needed.
3542 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3543 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3544 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3545 * varpool.c (decide_is_variable_needed): Remove.
3547 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3549 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3550 (arm_option_override): Override arm_restrict_it where appropriate.
3551 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3552 * config/arm/arm.opt (mrestrict-it): New command-line option.
3553 * doc/invoke.texi: Document -mrestrict-it.
3555 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3557 * tsan.c (tsan_atomic_table): Make const.
3559 2013-06-05 Richard Biener <rguenther@suse.de>
3561 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3562 index associated with the tree we are supposed to replace.
3563 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3564 TREE_ASM_WRITTEN as zero for everything but SSA names.
3566 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3568 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3570 2013-06-04 Jan Hubicka <jh@suse.cz>
3572 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3573 (input_node, input_varpool_node): Handle correctly external same
3575 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3576 nodes at ltrans stage.
3578 2013-06-04 Jan Hubicka <jh@suse.cz>
3580 * ipa-inline.c (update_caller_keys): Fix availability test.
3581 (update_callee_keys): Likewise.
3582 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3583 to follow ELF standard.
3585 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3587 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3588 (mips64r5900el-*-elf*): New configurations.
3589 * config/mips/mips-cpus.def (r5900): New processor.
3590 * config/mips/mips-tables.opt: Regenerate.
3591 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3592 (mips_issue_rate): Handle PROCESSOR_R5900.
3593 (mips_reorg_process_insns): Force reorder mode for the R5900.
3594 * config/mips/mips.h (TARGET_MIPS5900): Define.
3595 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3597 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3599 * config/mips/mips.md (processor): Add r5900.
3600 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3602 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3604 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3605 into function to generate MOVI instruction.
3606 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3607 (aarch64_preferred_simd_mode): Turn into wrapper.
3608 (aarch64_output_scalar_simd_mov_immediate): New function.
3609 * config/aarch64/aarch64-protos.h: Add prototype for above.
3611 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3613 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3614 element_char member.
3615 (sizetochar): Return signed char.
3616 (aarch64_simd_valid_immediate): Remove elchar and other
3617 unnecessary variables.
3618 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3619 Calculate element_char as required.
3620 * config/aarch64/aarch64-protos.h: Update and move prototype
3621 for aarch64_output_simd_mov_immediate.
3622 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3625 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3627 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3628 information completed by aarch64_simd_valid_immediate.
3629 (aarch64_legitimate_constant_p): Update arguments.
3630 (aarch64_simd_valid_immediate): Work with struct rather than many
3632 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3633 (aarch64_simd_make_constant): Update arguments.
3634 (aarch64_output_simd_mov_immediate): Work with struct rather than
3635 many pointers. Output immediate directly rather than as operand.
3636 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3638 * config/aarch64/constraints.md (Dn): Update arguments.
3640 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3642 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3644 (aarch64_simd_immediate_valid_for_move): Remove.
3645 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3646 (aarch64_simd_make_constant): Update call.
3647 (aarch64_output_simd_mov_immediate): Update call.
3648 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3650 * config/aarch64/constraints.md (Dn): Update call.
3652 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3654 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3655 return type to bool for prototype.
3656 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3657 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3658 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3660 2013-06-04 Catherine Moore <clm@codesourcery.com>
3662 * config/mips/mips.opt (meva): New.
3663 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3664 (ASM_SPEC): Handle -meva.
3665 * doc/invoke.texi (meva): Document.
3667 2013-06-04 Alan Modra <amodra@gmail.com>
3669 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3672 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3674 * rtl.def: Add extra fourth optional field to define_cond_exec.
3675 * gensupport.c (process_one_cond_exec): Process attributes from
3677 * doc/md.texi: Document fourth field in define_cond_exec.
3679 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3681 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3682 out the processing order as in store_bit_field_1.
3684 2013-06-04 Jan Hubicka <jh@suse.cz>
3687 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3688 non-VAR_DECL node if it does not exist yet.
3690 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3692 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3693 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3694 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3695 target_cpu_default setting.
3697 2013-06-03 Teresa Johnson <tejohnson@google.com>
3699 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3700 default to -fopt-info=optimized instead of all.
3701 * doc/invoke.texi: Ditto.
3702 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3703 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3704 (execute_vect_slp): Emit BB vectorization success under
3705 MSG_OPTIMIZED_LOCATIONS.
3706 * tree-vect-slp.c (vect_slp_transform_bb): Change
3707 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3708 * tree-vect-loop.c (vect_transform_loop): Ditto.
3710 2013-06-03 Jason Merrill <jason@redhat.com>
3713 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3714 Use TARGET_EXPR for C++.
3716 2013-06-03 Jakub Jelinek <jakub@redhat.com>
3718 PR rtl-optimization/57268
3719 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3720 if DEBUG_INSN_P (insn).
3723 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3725 PR rtl-optimization/57268
3726 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3727 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3729 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3731 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3732 (ix86_avoid_lea_for_addr): Likewise.
3733 (exact_dependency_1): Likewise.
3734 (ix86_adjust_cost): Likewise.
3735 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3737 (do_reorder_for_imul): Fix typo, formatting and
3738 !reload_completed check removed.
3739 (ix86_sched_reorder): Fix typo and formatting.
3740 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3743 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3745 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3747 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3749 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3750 <STRING_CST>: Likewise.
3751 <VECTOR_CST>: Likewise.
3753 2013-06-01 Janus Weil <janus@gcc.gnu.org>
3754 Mikael Morin <mikael@gcc.gnu.org>
3756 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3757 * config.in: Regenerated.
3758 * configure: Regenerated.
3760 2013-06-01 Jan Hubicka <jh@suse.cz>
3763 * cgraphunit.c (compile): When weakref is not supported,
3764 set up transparent aliases before final output pass.
3765 * varasm.c (assemble_alias): Do not try to do it here.
3767 2013-06-01 Jan Hubicka <jh@suse.cz>
3770 * passes.c (for_per_function): Skip unanalyzed functions.
3772 2013-06-01 Jan Hubicka <jh@suse.cz>
3774 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3775 (lto_symtab_merge_symbols_1): ... this one.
3776 (lto_symtab_merge_cgraph_nodes): Rename to ...
3777 (lto_symtab_merge_symbols): ... this one; simplify.
3778 * cgraph.c (same_body_aliases_done): Rename to ...
3779 (cpp_implicit_aliases_done): ... this one.
3780 (cgraph_create_function_alias): Update.
3781 (cgraph_same_body_alias): Update.
3782 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3783 (verify_edge_corresponds_to_fndecl): Simplify.
3784 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3785 (cgraph_node): Remove same_body_alias.
3786 (varpool_node): Remove alias_of and extra_name_alias.
3787 (same_body_aliases_done): Rename to ..
3788 (cpp_implicit_aliases_done): ... this one.
3789 (symtab_alias_ultimate_target): Add default parameter.
3790 (symtab_resolve_alias): New function.
3791 (fixup_same_cpp_alias_visibility): Declare.
3792 (cgraph_function_node): Add default parameter.
3793 (cgraph_node_asm_name): Likewise.
3794 (cgraph_function_or_thunk_node): Add default parameter; do
3795 not ICE when it is NULL.
3796 (varpool_variable_node): Likewise.
3797 * tree-emutls.c (create_emultls_var): Update.
3798 (ipa_lower_emutls): Update.
3799 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3800 (cgraph_reset_node): Reset alias info.
3801 (cgraph_finalize_function): Update.
3802 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3803 (analyze_function): Simplify.
3804 (cgraph_process_same_body_aliases): Simplify.
3805 (analyze_functions): Fixup same body aliases.
3806 (handle_alias_pairs): Simplify.
3807 (assemble_thunk): Update.
3808 (assemble_thunks_and_aliases): Update.
3809 (output_weakrefs): Rewrite.
3810 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3811 (lto_output_varpool_node): Likewise.
3812 (compute_ltrans_boundary): Remve assert.
3813 (get_alias_symbol): New functoin.
3814 (input_node): Rewrite alias handling.
3815 (input_varpool_node): Likewise.
3816 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3817 * ipa.c (process_references): Handle weakrefs correctly.
3818 (symtab_remove_unreachable_nodes): Likewise.
3819 * trans-mem.c (get_cg_data): Update.
3820 (ipa_tm_create_version_alias): Update.
3821 (ipa_tm_execute): Update.
3822 * symtab.c (dump_symtab_base): Dump aliases.
3823 (verify_symtab_base): Verify aliases.
3824 (symtab_node_availability): New function.
3825 (symtab_alias_ultimate_target): Simplify.
3826 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3827 handle all the fixup cases.
3828 (symtab_resolve_alias): New function.
3829 * passes.c (ipa_write_summaries): Handle weakrefs.
3830 * varpool.c (varpool_analyze_node): Simplify.
3831 (assemble_aliases): Update.
3832 (varpool_create_variable_alias): Simplify.
3833 (varpool_extra_name_alias): Simplify.
3834 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3835 (lto_symtab_merge_symbols): ... this one.
3837 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3840 PR rtl-optimization/57268
3841 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3842 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3844 2013-06-01 Tobias Burnus <burnus@net-b.de>
3847 2013-05-31 Tobias Burnus <burnus@net-b.de>
3850 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3853 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3855 PR rtl-optimization/57268
3856 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3857 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3859 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3861 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3862 unordered comparison operators when -fno-trapping-math is in effect
3864 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3865 and implement unordered comparison operators properly on the e500.
3867 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3869 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3870 for constant scalar integers.
3871 (simplify_relational_operation_1): Likewise.
3873 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3875 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3876 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3879 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3880 Igor Zamyatin <igor.zamyatin@intel.com>
3882 Silvermont (SLM) architecture performance tuning.
3883 * config/i386/i386.h (enum ix86_tune_indices): Add
3884 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3885 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3887 * config/i386/i386.c (initial_ix86_tune_features)
3888 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3889 (ix86_lea_outperforms): Handle Silvermont tuning.
3890 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3892 (ix86_use_lea_for_mov): Likewise.
3893 (ix86_avoid_lea_for_addr): Likewise.
3894 (ix86_lea_for_add_ok): Likewise.
3895 (exact_dependency_1): New function.
3896 (exact_store_load_dependency): Likewise.
3897 (ix86_adjust_cost): Handle Silvermont tuning.
3898 (do_reoder_for_imul): Likewise.
3899 (swap_top_of_ready_list): New function.
3900 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3902 * config/i386/i386.md (peepholes that split memory operand in fp
3905 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3907 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3908 Remove un-necessary braces.
3910 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3912 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3913 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3915 2013-05-31 Tobias Burnus <burnus@net-b.de>
3918 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
3920 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3923 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3924 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3925 * config/arm/neon.md (iordi3_neon): Remove.
3926 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3927 * config/arm/predicates.md (imm_for_neon_logic_operand):
3928 Move to earlier in the file.
3929 (neon_logic_op2): Likewise.
3930 (arm_iordi_operand_neon): New predicate.
3932 2013-05-31 Richard Biener <rguenther@suse.de>
3934 PR tree-optimization/57478
3935 PR tree-optimization/57453
3936 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3939 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3941 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3942 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3944 2013-05-30 Tobias Burnus <burnus@net-b.de>
3945 Thomas Koenig <tkoenig@gcc.gnu.org>
3948 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3949 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3951 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
3953 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
3955 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
3957 * target.def (register_usage_leveling_p): New hook.
3958 * targhooks.c (default_register_usage_leveling_p): New.
3959 * targhooks.h (default_register_usage_leveling_p): New prototype.
3960 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3961 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3962 * doc/tm.texi: Update.
3963 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3965 2013-05-30 Ian Bolton <ian.bolton@arm.com>
3967 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3968 (*insv_reg<mode>): New define_insn.
3970 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3972 PR rtl-optimization/57439
3973 * postreload.c (move2add_valid_value_p): Check that we have
3974 a zero subreg_regno_offset when accessing the register in
3977 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3978 Igor Zamyatin <igor.zamyatin@intel.com>
3980 Silvermont (SLM) architecture pipeline model, tuning and
3982 * config.gcc: Add slm config options and target.
3984 * config/i386/slm.md: New.
3986 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3988 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3990 (ix86_target_macros_internal): Likewise.
3992 * gcc/config/i386/i386.c (slm_cost): New cost.
3993 (m_SLM): New macro flag.
3994 (initial_ix86_tune_features): Set m_SLM.
3995 (x86_accumulate_outgoing_args): Likewise.
3996 (x86_arch_always_fancy_math_387): Likewise.
3997 (processor_target_table): Add slm cost.
3998 (cpu_names): Add slm cpu name.
3999 (x86_option_override_internal): Set SLM ISA.
4000 (ix86_issue_rate): New case PROCESSOR_SLM.
4001 (ia32_multipass_dfa_lookahead): Likewise.
4002 (fold_builtin_cpu): Add slm.
4004 * config/i386/i386.h (TARGET_SLM): New target macro.
4005 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
4006 (processor_type): Add PROCESSOR_SLM.
4008 * config/i386/i386.md (cpu): Add new value "slm".
4009 (slm.md): Include slm.md.
4011 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
4012 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4014 * config/arm/arm-protos.h: Add and update function protos.
4015 * config/arm/arm.c (use_simple_return_p): New added.
4016 (thumb2_expand_return): Check simple_return flag.
4017 * config/arm/arm.md: Add simple_return and conditional simple_return.
4018 * config/arm/iterators.md: Add iterator for return and simple_return.
4020 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4022 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
4023 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
4024 (arm_emit_vfp_multi_reg_pop): Likewise.
4025 (thumb2_emit_ldrd_pop): Likewise.
4026 (arm_expand_epilogue): Add misc REG_CFA notes.
4027 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
4029 2013-05-29 Lawrence Crowl <crowl@google.com>
4031 * config/arm/t-arm: Update for below.
4033 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
4034 Change type to hash_table. Update dependent calls and types.
4036 * config/i386/t-cygming: Update for below.
4038 * config/i386/t-interix: Update for below.
4040 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
4041 Change type to hash_table. Update dependent calls and types.
4042 (i386_find_on_wrapper_list::wrappers): Likewise.
4044 * config/ia64/t-ia64: Update for below.
4046 * config/ia64/ia64.c (bundle_state_table):
4047 Change type to hash_table. Update dependent calls and types.
4049 * config/mips/mips.c (mips_reorg_process_insns::htab):
4050 Change type to hash_table. Update dependent calls and types.
4052 * config/sol2.c (solaris_comdat_htab):
4053 Change type to hash_table. Update dependent calls and types.
4055 * config/t-sol2: Update for above.
4057 2013-05-29 Teresa Johnson <tejohnson@google.com>
4059 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
4060 functions are not yet marked as defined.
4062 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4063 Pat Haugen <pthaugen@us.ibm.com>
4064 Peter Bergner <bergner@vnet.ibm.com>
4066 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
4070 (vrotl<mode>3): Likewise.
4071 (vashl<mode>3): Likewise.
4072 (vlshr<mode>3): Likewise.
4073 (vashr<mode>3): Likewise.
4075 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4076 support for power8 V2DI builtins.
4078 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
4079 power8 V2DI builtins.
4080 (vupkhsw): Likewise.
4081 (vupklsw): Likewise.
4082 (vaddudm): Likewise.
4087 (vpkudum): Likewise.
4088 (vpksdss): Likewise.
4089 (vpkudus): Likewise.
4090 (vpksdus): Likewise.
4095 (vsubudm): Likewise.
4096 (vcmpequd): Likewise.
4097 (vcmpgtsd): Likewise.
4098 (vcmpgtud): Likewise.
4099 (vcmpequd_p): Likewise.
4100 (vcmpgtsd_p): Likewise.
4101 (vcmpgtud_p): Likewise.
4102 (vupkhsw): Likewise.
4103 (vupklsw): Likewise.
4104 (vaddudm): Likewise.
4109 (vpksdss): Likewise.
4110 (vpksdus): Likewise.
4111 (vpkudum): Likewise.
4112 (vpkudus): Likewise.
4117 (vsubudm): Likewise.
4119 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4120 support for power8 V2DI instructions.
4122 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4123 power8 V2DI instructions. Combine pack and unpack insns to use an
4124 iterator for each mode. Check whether a particular mode supports
4125 Altivec instructions instead of just checking TARGET_ALTIVEC.
4126 (UNSPEC_VPKUWUM): Likewise.
4127 (UNSPEC_VPKSHSS): Likewise.
4128 (UNSPEC_VPKSWSS): Likewise.
4129 (UNSPEC_VPKUHUS): Likewise.
4130 (UNSPEC_VPKSHUS): Likewise.
4131 (UNSPEC_VPKUWUS): Likewise.
4132 (UNSPEC_VPKSWUS): Likewise.
4133 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4134 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4135 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4136 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4137 (UNSPEC_VUPKHSB): Likewise.
4138 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4139 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4140 (UNSPEC_VUPKHSH): Likewise.
4141 (UNSPEC_VUPKLSB): Likewise.
4142 (UNSPEC_VUPKLSH): Likewise.
4144 (VI_char): Likewise.
4145 (VI_scalar): Likewise.
4146 (VI_unit): Likewise.
4148 (VP_small): Likewise.
4149 (VP_small_lc): Likewise.
4150 (VU_char): Likewise.
4151 (add<mode>3): Likewise.
4152 (altivec_vaddcuw): Likewise.
4153 (altivec_vaddu<VI_char>s): Likewise.
4154 (altivec_vadds<VI_char>s): Likewise.
4155 (sub<mode>3): Likewise.
4156 (altivec_vsubcuw): Likewise.
4157 (altivec_vsubu<VI_char>s): Likewise.
4158 (altivec_vsubs<VI_char>s): Likewise.
4159 (altivec_vavgs<VI_char>): Likewise.
4160 (altivec_vcmpbfp): Likewise.
4161 (altivec_eq<mode>): Likewise.
4162 (altivec_gt<mode>): Likewise.
4163 (altivec_gtu<mode>): Likewise.
4164 (umax<mode>3): Likewise.
4165 (smax<mode>3): Likewise.
4166 (umin<mode>3): Likewise.
4167 (smin<mode>3): Likewise.
4168 (altivec_vpkuhum): Likewise.
4169 (altivec_vpkuwum): Likewise.
4170 (altivec_vpkshss): Likewise.
4171 (altivec_vpkswss): Likewise.
4172 (altivec_vpkuhus): Likewise.
4173 (altivec_vpkshus): Likewise.
4174 (altivec_vpkuwus): Likewise.
4175 (altivec_vpkswus): Likewise.
4176 (altivec_vpks<VI_char>ss): Likewise.
4177 (altivec_vpks<VI_char>us): Likewise.
4178 (altivec_vpku<VI_char>us): Likewise.
4179 (altivec_vpku<VI_char>um): Likewise.
4180 (altivec_vrl<VI_char>): Likewise.
4181 (altivec_vsl<VI_char>): Likewise.
4182 (altivec_vsr<VI_char>): Likewise.
4183 (altivec_vsra<VI_char>): Likewise.
4184 (altivec_vsldoi_<mode>): Likewise.
4185 (altivec_vupkhsb): Likewise.
4186 (altivec_vupkhs<VU_char>): Likewise.
4187 (altivec_vupkls<VU_char>): Likewise.
4188 (altivec_vupkhsh): Likewise.
4189 (altivec_vupklsb): Likewise.
4190 (altivec_vupklsh): Likewise.
4191 (altivec_vcmpequ<VI_char>_p): Likewise.
4192 (altivec_vcmpgts<VI_char>_p): Likewise.
4193 (altivec_vcmpgtu<VI_char>_p): Likewise.
4194 (abs<mode>2): Likewise.
4195 (vec_unpacks_hi_v16qi): Likewise.
4196 (vec_unpacks_hi_v8hi): Likewise.
4197 (vec_unpacks_lo_v16qi): Likewise.
4198 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4199 (vec_unpacks_lo_v8hi): Likewise.
4200 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4201 (vec_pack_trunc_v8h): Likewise.
4202 (vec_pack_trunc_v4si): Likewise.
4203 (vec_pack_trunc_<mode>): Likewise.
4205 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4207 (vec_vmaxsd): Likewise.
4208 (vec_vmaxud): Likewise.
4209 (vec_vminsd): Likewise.
4210 (vec_vminud): Likewise.
4211 (vec_vpksdss): Likewise.
4212 (vec_vpksdus): Likewise.
4213 (vec_vpkudum): Likewise.
4214 (vec_vpkudus): Likewise.
4215 (vec_vrld): Likewise.
4216 (vec_vsld): Likewise.
4217 (vec_vsrad): Likewise.
4218 (vec_vsrd): Likewise.
4219 (vec_vsubudm): Likewise.
4220 (vec_vupkhsw): Likewise.
4221 (vec_vupklsw): Likewise.
4223 2013-05-29 Jan Hubicka <jh@suse.cz>
4225 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4226 flags; reorder rest of fields in more consistent way.
4227 (varpool_node): Remove analyzed, finalized and alias.
4228 (cgraph_ndoe): Likewise.
4229 (symtab_alias_ultimate_target): New function.
4230 (cgraph_function_node): Move offline.
4231 (cgraph_reset_node): Declare.
4232 (cgraph_comdat_can_be_unshared_p): Remove.
4233 (varpool_remove_initializer): Declare.
4234 (varpool_first_defined_variable, varpool_next_defined_variable
4235 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4236 (cgraph_function_with_gimple_body_p): Update.
4237 (varpool_all_refs_explicit_p): Update.
4238 (symtab_alias_target): New function.
4239 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4240 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
4241 (cgraph_function_or_thunk_node): Simplify using
4242 symtab_alias_ultimate_target.
4243 (varpool_variable_node): Likewise.
4244 * cgraph.c (cgraph_create_function_alias): Update.
4245 (cgraph_add_thunk): Update.
4246 (cgraph_remove_node): Update.
4247 (dump_cgraph_node): Do not dump removed flags.
4248 (cgraph_function_body_availability): Update.
4249 (cgraph_propagate_frequency): Update.
4250 (verify_cgraph_node): Check sanity of local flag.
4251 (cgraph_function_node): Move here from cgraph.h; revamp for
4252 cgraph_function_or_thunk_node.
4253 * lto-symtab.c (lto_varpool_replace_node): Update.
4254 (lto_symtab_resolve_can_prevail_p): Update.
4255 (lto_symtab_merge_cgraph_nodes): Update.
4256 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4257 propagate_constants_accross_call, devirtualization_time_bonus,
4258 ipcp_propagate_stage): Update.
4259 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
4260 * ipa-inline-transform.c (clone_inlined_nodes,
4261 preserve_function_body_p): Update.
4262 * ipa-reference.c (propagate): Update.
4263 (write_node_summary_p): Update.
4264 * toplev.c (wrapup_global_declaration_2): Update.
4265 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4266 (analyze_function) ... this one.
4267 (cgraph_process_new_functions): Update.
4268 (cgraph_reset_node): Export.
4269 (cgraph_finalize_function): Update.
4270 (cgraph_add_new_function): Update.
4271 (process_function_and_variable_attributes): Update.
4272 (varpool_finalize_decl): Update.
4273 (symbol_finalized): Remove.
4274 (symbol_finalized_and_needed): Rename to ...
4275 (symbol_defined_and_needed): ... update.
4276 (cgraph_analyze_functions): Update.
4277 (handle_alias_pairs): Update.
4278 (mark_functions_to_output): Update.
4279 (assemble_thunk): Update.
4280 (output_in_order): Update.
4281 (output_weakrefs): Update.
4282 (finalize_compilation_unit): Update.
4283 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4284 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4285 input_node, input_varpool_node): Update.
4286 * dbxout.c (dbxout_expand_expr): Update.
4287 * cgraphclones.c (cgraph_clone_node): Update.
4288 (cgraph_copy_node_for_versioning): Update.
4289 (cgraph_materialize_clone): Update.
4290 (cgraph_materialize_all_clones): Update.
4291 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4292 propagate_pure_const, propagate_nothrow): Update.
4293 * lto-streamer-out.c (lto_output, write_symbol): Update.
4294 * ipa-utils.c (ipa_reverse_postorder): Update.
4295 * ipa-inline.c (can_inline_edge_p): Update.
4296 (update_caller_keys, ipa_inline): Update.
4297 * dwarf2out.c (reference_to_unused,
4298 premark_types_used_by_global_vars_helper): Update.
4299 * tree-eh.c (tree_could_trap_p): Update.
4300 * ipa-split.c (consider_split, execute_split_functions): Update.
4301 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4302 has_addr_references_p): Update; move ahead in file for better
4304 (process_references): Simplify.
4305 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4307 (cgraph_comdat_can_be_unshared_p): Make static.
4308 (cgraph_externally_visible_p): Update.
4309 (varpool_externally_visible_p): Update.
4310 (function_and_variable_visibility): Update.
4311 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4312 ipa_tm_mark_force_output_node): Update.
4313 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4314 estimate_edge_devirt_benefit, inline_generate_summary,
4315 inline_write_summary): Update.
4316 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4317 * ipa-prop.c (ipa_compute_jump_functions): Update.
4318 (ipa_print_node_params, ipa_prop_read_section,
4319 ipa_update_after_lto_read, read_replacements_section): Update.
4320 * varasm.c (mark_decl_referenced): Update.
4321 (assemble_alias, dump_tm_clone_pairs): Update.
4322 * tree-inline.c (copy_bb): Update.
4323 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4325 * symtab.c (dump_symtab_base): Print new flags.
4326 (verify_symtab_base): Verify new flags.
4327 (symtab_alias_ultimate_target): New function.
4328 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4329 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4331 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4333 * i386.c (ix86_get_function_versions_dispatcher,
4334 ix86_generate_version_dispatcher_body): Update.
4335 (fold_builtin_cpu): Use varpool_add_new_variable.
4336 * varpool.c (varpool_remove_initializer): Break out from ...
4337 (varpool_remove_node): ... this one.
4338 (dump_varpool_node, varpool_node_for_asm,
4339 cgraph_variable_initializer_availability, varpool_analyze_node,
4340 varpool_assemble_decl, varpool_remove_unreferenced_decls,
4341 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4344 2013-05-29 Jan Hubicka <jh@suse.cz>
4346 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4348 2013-05-29 Easwaran Raman <eraman@google.com>
4350 PR tree-optimization/57442
4351 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4352 when control exits the main loop.
4354 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4356 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4358 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
4359 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4360 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4363 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4365 PR tree-optimization/57441
4366 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4367 Don't limit size of incr_vec to number of candidates.
4369 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
4371 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4372 and mips16 directories.
4373 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4374 (MULTILIB_DIRNAMES): Ditto.
4375 (MULTILIB_EXCEPTIONS): Add new exceptions.
4376 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4377 (MULTILIB_DIRNAMES): Ditto.
4378 (MULTILIB_EXCEPTIONS): Add new exceptions.
4380 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4381 Marcus Shawcroft <marcus.shawcroft@arm.com>
4383 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4384 SYMBOL_TINY_ABSOLUTE.
4385 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4386 SYMBOL_TINY_ABSOLUTE.
4387 (aarch64_expand_mov_immediate): Likewise.
4388 (aarch64_classify_symbol): Likewise.
4389 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4390 Permit SYMBOL_TINY_ABSOLUTE.
4391 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4393 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4394 Marcus Shawcroft <marcus.shawcroft@arm.com>
4396 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4397 Refactor if/switch. Replace gcc_assert with if.
4399 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4401 * config/i386/i386.c (initial_ix86_tune_features): Enable
4402 FP Reassociation for AMD bdver1 and bdver2.
4404 2013-05-29 Martin Jambor <mjambor@suse.cz>
4406 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4407 and IMAGPART_EXPR do not occur within other handled_components.
4409 2013-05-29 Richard Biener <rguenther@suse.de>
4411 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4412 access on whether the use is in the BB we currently try to
4414 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4415 vectorize to vect_bb_slp_scalar_cost.
4417 2013-05-29 Richard Biener <rguenther@suse.de>
4419 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4420 computing scalar cost offsetted by stmts that are kept live
4422 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4423 for computation of scalar cost.
4425 2013-05-28 Steve Ellcey <sellcey@mips.com>
4427 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4429 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4431 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4432 array notation built-in reduction functions.
4433 * doc/passes.texi (Passes): Added documentation about changes done
4435 * doc/invoke.texi (C Dialect Options): Added documentation about
4436 the -fcilkplus flag.
4437 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4438 (BUILTINS_DEF): Depend on cilkplus.def.
4439 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4440 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4441 * cilkplus.def: New file.
4443 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4445 PR rtl-optimization/57439
4446 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4448 2013-05-28 Easwaran Raman <eraman@google.com>
4450 PR tree-optimization/57337
4451 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4452 (find_insert_point): Correctly identify the insertion point
4453 when two statements with the same UID is compared.
4455 2013-05-28 Richard Biener <rguenther@suse.de>
4457 PR tree-optimization/56787
4458 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4459 from the list of data references.
4460 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4462 (vect_analyze_loop_operations): Likewise.
4463 (vect_transform_loop): Remove clobbers.
4465 2013-05-28 Martin Jambor <mjambor@suse.cz>
4467 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4468 and REALPART_EXPRs have scalar type.
4470 2013-05-28 Richard Biener <rguenther@suse.de>
4472 PR tree-optimization/57411
4473 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4475 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4476 virtual operand propagation.
4478 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4480 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4481 destination register for bmasksi_vis.
4482 (vector_init_bshuffle): Likewise.
4483 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4485 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4487 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4488 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4489 mode if the instruction isn't available in the original mode.
4490 * config/sparc/sparc.opt (mfix-ut699): New option.
4491 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4492 (divdf3): Turn into expander.
4493 (divdf3_nofix): New insn.
4494 (divdf3_fix): Likewise.
4495 (divsf3): Disable if -mfix-ut699.
4496 (sqrtdf2): Turn into expander.
4497 (sqrtdf2_nofix): New insn.
4498 (sqrtdf2_fix): Likewise.
4499 (sqrtsf2): Disable if -mfix-ut699.
4501 2013-05-27 Richard Biener <rguenther@suse.de>
4504 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4505 block for the new loop.
4507 2013-05-27 Richard Biener <rguenther@suse.de>
4509 PR tree-optimization/57343
4510 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4511 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4512 (number_of_iterations_cond): Do not build the folded tree.
4514 2013-05-27 Richard Biener <rguenther@suse.de>
4518 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4519 OEP_CONSTANT_ADDRESS_OF retained.
4521 PR tree-optimization/57417
4522 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4524 (set_ssa_val_to): Compare addresses using
4525 get_addr_base_and_unit_offset.
4527 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4529 PR rtl-optimization/56833
4530 * postreload.c (move2add_record_mode): New function.
4531 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4532 (move2add_use_add2_insn): Use move2add_record_sym_value.
4533 (move2add_use_add3_insn): Likewise.
4534 (reload_cse_move2add): Use move2add_valid_value_p and
4535 move2add_record_mode. Invalidate call-clobbered and REG_INC
4536 affected regs by setting reg_mode to VOIDmode.
4537 (move2add_note_store): Don't pretend the inside of a SUBREG is
4538 the actual destination. Invalidate single/leading registers by
4539 setting reg_mode to VOIDmode.
4540 Use move2add_record_sym_value, move2add_valid_value_p and
4541 move2add_record_mode.
4543 2013-05-27 Richard Biener <rguenther@suse.de>
4545 PR tree-optimization/57396
4546 * tree-affine.c (double_int_constant_multiple_p): Properly
4547 return false for val == 0 and div != 0.
4549 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4551 * config/mips/mips.h: Use #elif in preprocessor conditions.
4553 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4556 * config/mips/constraints.md (kl): New constraint.
4557 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4558 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4559 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4561 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4563 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4566 * config/mips/mips.c (mips_can_inline_p): New function.
4567 (TARGET_CAN_INLINE_P): Define.
4569 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4571 * sched-int.h (ds_t, dw_t): Make unsigned int.
4572 Fix documentation that describes how all the ds_t bits are used.
4573 Reserve the last bit for delayed-branch scheduling.
4574 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4575 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4576 (gen_dep_weak_1): Remove prototype.
4577 * sched-deps.c (get_dep_weak_1): Make static.
4578 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4579 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4580 * doc/tm.texi: Regenerate.
4581 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4583 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4586 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4588 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4589 Sandra Loosemore <sandra@codesourcery.com>
4591 * config.gcc (powerpc-*): Allow native for with-cpu.
4593 2013-05-24 Jeff Law <law@redhat.com>
4595 PR tree-optimization/57124
4596 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4597 conversion feeding a condition if the range has an overflow
4598 if -fstrict-overflow. Add warnings for when we do make the
4601 2013-05-24 Dehao Chen <dehao@google.com>
4603 * tree-cfg.c (locus_discrim_map): Fix the typo.
4604 (locus_discrim_hasher): Likewise.
4605 (locus_discrim_hasher::hash): Likewise.
4606 (locus_discrim_hasher::equal): Likewise.
4608 2013-05-24 Martin Jambor <mjambor@suse.cz>
4610 PR tree-optimization/57294
4611 * cgraph.h (ipa_record_stmt_references): Declare.
4612 * cgraphbuild.c (ipa_record_stmt_references): New function.
4613 (build_cgraph_edges): Use ipa_record_stmt_references.
4614 (rebuild_cgraph_edges): Likewise.
4615 (cgraph_rebuild_references): Likewise.
4616 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4617 associated with the old statement and build references from the
4618 newly built statements.
4619 * ipa-ref.c (ipa_remove_stmt_references): New function.
4620 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4622 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4624 * lra-constraints.c (emit_spill_move): Use smaller mode for
4626 (check_and_process_move): Consider mem-reg moves for secondary
4628 (curr_insn_transform): Don't lose insns emitted before for
4629 secondary memory moves.
4630 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4631 reg set up in the current insn.
4633 2013-05-24 Dehao Chen <dehao@google.com>
4635 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4637 (locus_descrim_hasher::equal): Likewise.
4638 (build_gimple_cfg): New discriminator assignment algorithm.
4639 (make_edges): Likewise.
4640 (next_discriminator_for_locus): Likewise.
4641 (same_line_p): Likewise.
4642 (assign_discriminators): Likewise.
4643 (make_cond_expr_edges): Likewise.
4644 (make_gimple_switch_edges): Likewise.
4645 (make_goto_expr_edges): Likewise.
4646 (make_gimple_asm_edges): Likewise.
4648 2013-05-24 Ian Bolton <ian.bolton@arm.com>
4650 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4651 X format specifier to only display bottom 16 bits.
4652 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4653 immediate to match for operand 2, since it will be masked.
4655 2013-05-24 Richard Biener <rguenther@suse.de>
4657 PR tree-optimization/57287
4658 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4659 all SSA names that occur in abnormal PHIs.
4661 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4664 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4665 that index is not negative.
4667 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4669 PR rtl-optimization/55177
4670 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4671 (simplify_byte_swapping_operation): New.
4672 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4673 (simplify_relational_operation_1): Deal with BSWAP.
4675 2013-05-23 Richard Henderson <rth@redhat.com>
4678 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4679 (ix86_reorg): Call it.
4681 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
4684 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4685 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4686 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4688 2013-05-23 Christian Bruel <christian.bruel@st.com>
4691 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4693 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4694 Marcus Shawcroft <marcus.shawcroft@arm.com>
4696 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4697 * config/aarch64/constraints.md (Usa): Remove.
4698 * doc/md.texi (AArch64 Usa): Remove.
4700 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4701 Marcus Shawcroft <marcus.shawcroft@arm.com>
4703 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4704 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4705 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4706 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4708 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4710 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4711 instruction (AdvSIMD).
4712 * config/aarch64/aarch64-builtins.c
4713 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4714 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4716 2013-05-23 Martin Jambor <mjambor@suse.cz>
4719 * tree.h (contains_bitfld_component_ref_p): Declare.
4720 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4721 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4723 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4724 not access a bit-field. Assert all final offsets are byte-aligned.
4726 2013-05-23 Richard Biener <rguenther@suse.de>
4728 PR tree-optimization/57380
4729 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4730 least one invariant or re-used load.
4731 * passes.c (init_optimization_passes): Move pass_phiprop before
4734 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4736 * config/aarch64/aarch64-simd.md
4737 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4739 2013-05-23 Richard Biener <rguenther@suse.de>
4742 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4743 OEP_CONSTANT_ADDRESS_OF retained.
4745 2013-05-23 Jakub Jelinek <jakub@redhat.com>
4748 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4749 don't lower unit. Handle unit not being always BITS_PER_WORD.
4751 2013-05-23 Richard Biener <rguenther@suse.de>
4753 PR rtl-optimization/57341
4754 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4755 instead of true_dependence.
4757 2013-05-22 David Malcolm <dmalcolm@redhat.com>
4759 * bb-reorder.c (branch_threshold): Make const.
4760 (exec_threshold): Ditto.
4762 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4763 Pat Haugen <pthaugen@us.ibm.com>
4764 Peter Bergner <bergner@vnet.ibm.com>
4766 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4767 documentation for the power8 crypto builtins.
4769 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4771 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4772 macros for defining power8 builtin functions.
4773 (BU_P8V_AV_2): Likewise.
4774 (BU_P8V_AV_P): Likewise.
4775 (BU_P8V_VSX_1): Likewise.
4776 (BU_P8V_OVERLOAD_1): Likewise.
4777 (BU_P8V_OVERLOAD_2): Likewise.
4778 (BU_CRYPTO_1): Likewise.
4779 (BU_CRYPTO_2): Likewise.
4780 (BU_CRYPTO_3): Likewise.
4781 (BU_CRYPTO_OVERLOAD_1): Likewise.
4782 (BU_CRYPTO_OVERLOAD_2): Likewise.
4783 (XSCVSPDP): Fix typo, point to the correct instruction.
4784 (VCIPHER): Add power8 crypto builtins.
4785 (VCIPHERLAST): Likewise.
4786 (VNCIPHER): Likewise.
4787 (VNCIPHERLAST): Likewise.
4788 (VPMSUMB): Likewise.
4789 (VPMSUMH): Likewise.
4790 (VPMSUMW): Likewise.
4791 (VPERMXOR_V2DI): Likewise.
4792 (VPERMXOR_V4SI: Likewise.
4793 (VPERMXOR_V8HI: Likewise.
4794 (VPERMXOR_V16QI: Likewise.
4795 (VSHASIGMAW): Likewise.
4796 (VSHASIGMAD): Likewise.
4798 (VPERMXOR): Likewise.
4799 (VSHASIGMA): Likewise.
4801 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4802 __CRYPTO__ if the crypto instructions are available.
4803 (altivec_overloaded_builtins): Add support for overloaded power8
4806 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4807 support for power8 crypto builtins.
4808 (builtin_function_type): Likewise.
4809 (altivec_init_builtins): Add support for builtins that take vector
4810 long long (V2DI) arguments.
4812 * config/rs6000/crypto.md: New file, define power8 crypto
4815 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4816 Pat Haugen <pthaugen@us.ibm.com>
4817 Peter Bergner <bergner@vnet.ibm.com>
4819 * doc/invoke.texi (Option Summary): Add power8 options.
4820 (RS/6000 and PowerPC Options): Likewise.
4822 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4823 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4824 wm, wn, wr documentation.
4826 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4827 registers if direct move instructions are enabled.
4828 (wn): New constraint for no registers.
4829 (wq): New constraint for quad word even GPR registers.
4830 (wr): New constraint if 64-bit instructions are enabled.
4831 (wv): New constraint if power8 vector instructions are enabled.
4832 (wQ): New constraint for quad word memory locations.
4834 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4835 constraint for 0..15 for crypto instructions.
4836 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4837 as GPR and floating point registers.
4838 (int_reg_operand): New predicate to match only GPR registers.
4839 (base_reg_operand): New predicate to match base registers.
4840 (quad_int_reg_operand): New predicate to match even GPR registers
4841 for quad memory operations.
4842 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4843 operations in both GPR and VSX registers.
4844 (quad_memory_operand): New predicate for quad memory operations.
4845 (reg_or_indexed_operand): New predicate for direct move support.
4847 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4848 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4849 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4850 (POWERPC_MASKS): Add power8 options.
4851 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4854 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4855 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4857 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4858 (-mpower8-fusion): New power8 options.
4859 (-mpower8-fusion-sign): Likewise.
4860 (-mpower8-vector): Likewise.
4861 (-mcrypto): Likewise.
4862 (-mdirect-move): Likewise.
4863 (-mquad-memory): Likewise.
4865 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4867 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4869 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4870 (rs6000_debug_vector_unit): Add p8_vector.
4871 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4872 definitions. Also print fusion state.
4873 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4874 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4875 (rs6000_option_override_internal): Add support for power8.
4876 (rs6000_common_init_builtins): Add debugging for skipped builtins
4878 (rs6000_adjust_cost): Add power8 support.
4879 (rs6000_issue_rate): Likewise.
4880 (insn_must_be_first_in_group): Likewise.
4881 (insn_must_be_last_in_group): Likewise.
4882 (force_new_group): Likewise.
4883 (rs6000_register_move_cost): Likewise.
4884 (rs6000_opt_masks): Likewise.
4886 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4887 power8 capable assembler, default to power7 options.
4888 (TARGET_DIRECT_MOVE): Likewise.
4889 (TARGET_CRYPTO): Likewise.
4890 (TARGET_P8_VECTOR): Likewise.
4891 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4892 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4893 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4894 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4895 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4896 (TARGET_XSCVDPSPN): Likewise.
4897 (TARGET_XSCVSPDPN): Likewsie.
4898 (TARGET_SYNC_HI_QI): Likewise.
4899 (TARGET_SYNC_TI): Likewise.
4900 (MASK_CRYPTO): Likewise.
4901 (MASK_DIRECT_MOVE): Likewise.
4902 (MASK_P8_FUSION): Likewise.
4903 (MASK_P8_VECTOR): Likewise.
4904 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4905 temporary used by some of the direct move instructions to get two FP
4906 temporary registers does not force creation of a stack frame.
4907 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4908 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4909 that any VSX registers are tieable, even if they are also an
4910 Altivec vector mode.
4911 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4912 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4913 (RS6000_BTM_CRYPTO): Likewise.
4914 (RS6000_BTM_COMMON): Likewise.
4916 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4917 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4918 (enum rs6000_vector): Add power8 vector support.
4920 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4924 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4925 (any_sibcall_could_use_r3): this and handle indirect calls.
4926 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4928 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4930 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4932 2013-05-22 Richard Biener <rguenther@suse.de>
4935 * profile.c (branch_prob): Do not split blocks that are
4936 abnormally receiving from ECF_RETURNS_TWICE functions.
4938 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4940 * recog.c (offsettable_address_addr_space_p): Fix calculation of
4941 address mode. Move pointer mode initialization to the same place.
4943 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4945 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4946 while it has any effect.
4948 2013-05-21 Easwaran Raman <eraman@google.com>
4950 PR tree-optimization/57322
4951 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4952 UID of the statement added to the BB to be 1.
4954 2013-05-21 Jakub Jelinek <jakub@redhat.com>
4956 PR tree-optimization/57331
4957 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4958 of conversion from pointer type to integral type with integer.
4960 2013-05-21 Martin Jambor <mjambor@suse.cz>
4963 * ipa-prop.c (ipa_read_node_info): Process param_used and
4964 controlled_uses in the same order as when writing.
4966 2013-05-21 Magnus Granberg <baldrick@free.fr>
4969 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
4971 2013-05-21 Richard Biener <rguenther@suse.de>
4973 PR tree-optimization/57318
4974 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4975 estimate stmts with side-effects as likely eliminated.
4977 2013-05-21 Richard Biener <rguenther@suse.de>
4979 PR tree-optimization/57330
4980 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4981 preserve the call stmts fntype.
4983 2013-05-21 Richard Biener <rguenther@suse.de>
4985 PR tree-optimization/57303
4986 * tree-ssa-sink.c (statement_sink_location): Improve killing
4987 stmt detection and properly handle self-assignments.
4989 2013-05-21 Christian Bruel <christian.bruel@st.com>
4991 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4992 spanning registers. LEAF_REG_REMAP is supported only for contiguous
4993 registers. Set register size out of the PARALLEL loop.
4995 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4998 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4999 (*fmasf4, *fmasf4_media): New insns.
5001 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5003 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
5004 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
5005 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
5006 (mips_idiv_insns): Update the comments to say that the returned
5007 instruction counts are in units of BASE_INSN_LENGTH.
5008 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
5009 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
5010 using 2 rather than 4 as the length of indirect MIPS16 and
5011 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
5012 length of a NOP. Don't divide MIPS16 lengths by 2.
5013 (mips16_split_long_branches): Assume a branch is long if the
5014 length is greater than 4 rather than 8.
5015 * config/mips/mips.md (length): Give MIPS16 lengths directly,
5016 rather than multiplying them by 2. Multiply instruction counts
5017 by BASE_INSN_LENGTH rather than 4.
5018 (*jump_mips16, tls_get_tp_mips16_<mode>)
5019 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
5021 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5023 * config/mips/mips.md (extended_mips16): Remove branch case.
5024 (length): Remove duplicated extended_mips16 test.
5026 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5028 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
5030 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
5032 * recog.h (Recog_data): Rename to...
5033 (recog_data_d): ...this.
5034 (recog_data): Update accordingly.
5035 * recog.c (recog_data): Likewise.
5036 * reload.c (save_recog_data): Likewise.
5037 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
5038 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
5040 2013-05-17 Julian Brown <julian@codesourcery.com>
5042 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
5043 found in a REG_EQUAL note, invalidate it.
5045 2013-05-17 Easwaran Raman <eraman@google.com>
5047 * tree-ssa-reassoc.c (find_insert_point): New function.
5048 (insert_stmt_after): Likewise.
5049 (get_def_stmt): Likewise.
5050 (ensure_ops_are_available): Likewise.
5051 (not_dominated_by): Likewise.
5052 (rewrite_expr_tree): Do not move statements beyond what is
5053 necessary. Remove call to swap_ops_for_binary_stmt...
5054 (reassociate_bb): ... and move it here.
5055 (build_and_add_sum): Assign UIDs for new statements.
5056 (linearize_expr): Likewise.
5057 (do_reassoc): Renumber gimple statement UIDs.
5059 2013-05-17 Jan Hubicka <jh@suse.cz>
5061 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
5063 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
5064 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
5066 (output_weakrefs): Update.
5068 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
5069 Martin Jambor <mjambor@suse.cz>
5072 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
5073 value that corresponds to the given aggval is found in values vector.
5075 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
5077 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
5078 sse, sse2, sse3, ssse3 and sse4a flags to options.
5080 2013-05-17 David Malcolm <dmalcolm@redhat.com>
5082 * gengtype-state.c: (s_expr_writer): New class, to handle
5083 prettifying of output layout of s-expressions.
5084 (state_writer): New class, to write out gtype.state.
5085 (state_written_type_count): Move this variable into member data of
5087 (s_expr_writer::s_expr_writer): New code: constructor for new class
5088 (state_writer::state_writer(): ditto
5089 (s_expr_writer::write_new_line): New function
5090 (s_expr_writer::write_any_indent): ditto
5091 (s_expr_writer::begin_s_expr): ditto
5092 (s_expr_writer::end_s_expr): ditto
5093 (write_state_fileloc): convert to method of state_writer...
5094 (state_writer:: write_state_fileloc): ...and use methods of
5095 s_expr_writer to write indentation into the gtype.state output file
5096 to visually represent the hierarchical structure of the list
5098 (write_state_fields): ditto, renaming to...
5099 (state_writer::write_state_fields)
5100 (write_state_a_string): ditto, renaming to...
5101 (state_writer::write_state_a_string)
5102 (write_state_string_option): ditto, renaming to...
5103 (state_writer::write_state_string_option)
5104 (write_state_type_option): ditto, renaming to...
5105 (state_writer::write_state_type_option)
5106 (write_state_nested_option): ditto, renaming to...
5107 (state_writer::write_state_nested_option)
5108 (write_state_option): ditto, renaming to...
5109 (state_writer::write_state_option)
5110 (write_state_options): ditto, renaming to...
5111 (state_writer::write_state_options)
5112 (write_state_lang_bitmap): ditto, renaming to...
5113 (state_writer::write_state_lang_bitmap)
5114 (write_state_version): ditto, renaming to...
5115 (state_writer::write_state_version)
5116 (write_state_scalar_type): ditto, renaming to...
5117 (state_writer::write_state_scalar_type)
5118 (write_state_string_type): ditto, renaming to...
5119 (state_writer::write_state_string_type)
5120 (write_state_undefined_type): ditto, renaming to...
5121 (state_writer::write_state_undefined_type)
5122 (write_state_struct_union_type): ditto, renaming to...
5123 (state_writer::write_state_struct_union_type)
5124 (write_state_struct_type): ditto, renaming to...
5125 (state_writer::write_state_struct_type)
5126 (write_state_user_struct_type): ditto, renaming to...
5127 (state_writer::write_state_user_struct_type)
5128 (write_state_lang_struct_type): ditto, renaming to...
5129 (state_writer::write_state_lang_struct_type)
5130 (write_state_param_struct_type): ditto, renaming to...
5131 (state_writer::write_state_param_struct_type)
5132 (write_state_pointer_type): ditto, renaming to...
5133 (state_writer::write_state_pointer_type)
5134 (write_state_array_type): ditto, renaming to...
5135 (state_writer::write_state_array_type)
5136 (write_state_gc_used): ditto, renaming to...
5137 (state_writer::write_state_gc_used)
5138 (write_state_common_type_content): ditto, renaming to...
5139 (state_writer::write_state_common_type_content)
5140 (write_state_type): ditto, renaming to...
5141 (state_writer::write_state_type)
5142 (write_state_pair_list): ditto, renaming to...
5143 (state_writer::write_state_pair_list)
5144 (write_state_pair): ditto, renaming to...
5145 (state_writer::write_state_pair)
5146 (write_state_typedefs): ditto, renaming to...
5147 (state_writer::write_state_typedefs)
5148 (write_state_structures): ditto, renaming to...
5149 (state_writer::write_state_structures)
5150 (write_state_param_structs): ditto, renaming to...
5151 (state_writer::write_state_param_structs)
5152 (write_state_variables): ditto, renaming to...
5153 (state_writer::write_state_variables)
5154 (write_state_srcdir): ditto, renaming to...
5155 (state_writer::write_state_srcdir)
5156 (write_state_files_list): ditto, renaming to...
5157 (state_writer::write_state_files_list)
5158 (write_state_languages): ditto, renaming to...
5159 (state_writer::write_state_languages)
5160 (write_state): create a state_writer instance and use it when
5161 writing out the state file
5163 2013-05-17 Mike Stump <mikestump@comcast.net>
5165 PR rtl-optimization/57304
5166 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5167 accessing DF_REF_REAL_LOC.
5169 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5171 PR rtl-optimization/57281
5172 PR rtl-optimization/57300
5173 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5174 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5175 what the other splitter did if the registers are dead.
5177 2013-05-17 Richard Biener <rguenther@suse.de>
5179 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5182 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5184 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5187 2013-05-17 Marek Polacek <polacek@redhat.com>
5189 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5190 length when doing non-zero store of storing '\0' to '\0'.
5192 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5194 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5195 vect_external_def oprnd1 with loop_vinfo, try to emit
5196 optional cast, negation and and stmts on the loop preheader
5197 edge instead of into the pattern def seq.
5199 PR tree-optimization/57051
5200 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5201 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5203 2013-05-16 Nick Clifton <nickc@redhat.com>
5205 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5206 (rl78_is_naked_func): New function.
5207 (rl78_expand_prologue): Skip prologue generation for naked functions.
5208 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
5209 * doc/extend.texi (naked): Add RL78 to the list of processors
5210 that supports this attribute.
5212 2013-05-16 Jeff Law <law@redhat.com>
5214 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5216 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5218 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5219 cache parameters using detect_caches_amd also for CYRIX,
5220 NSC and TM2 signatures.
5222 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5223 Dzianis Kahanovich <mahatma@eu.by>
5227 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5228 VIA/Centaur processors and determine their cache parameters
5229 using detect_caches_amd.
5231 2013-05-16 Teresa Johnson <tejohnson@google.com>
5233 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5234 (rtl_verify_edges): New function.
5235 (rtl_verify_bb_insns): Ditto.
5236 (rtl_verify_bb_pointers): Ditto.
5237 (rtl_verify_bb_insn_chain): Ditto.
5238 (rtl_verify_fallthru): Ditto.
5239 (rtl_verify_bb_layout): Ditto.
5240 (rtl_verify_flow_info_1): Outline checks into new functions.
5241 (rtl_verify_flow_info): Ditto.
5243 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
5245 * cfghooks.c (copy_bbs): Add update_dominance argument.
5246 * cfghooks.h (copy_bbs): Update prototype.
5247 * tree-cfg.c (gimple_duplicate_sese_region):
5248 Add update_dominance argument.
5249 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5250 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5251 gimple_duplicate_sese_region call.
5252 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5253 Update copy_bbs call.
5254 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5255 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5257 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5259 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5260 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5261 vect_recog_rotate_pattern.
5262 (vect_recog_rotate_pattern): New function.
5264 2013-05-16 Jason Merrill <jason@redhat.com>
5266 * Makefile.in (LLINKER): New variable.
5267 (mostlyclean): Remove link mutex.
5268 * configure.ac: Handle --enable-link-mutex.
5269 * lock-and-run.sh: New script.
5271 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5274 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5277 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5279 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5281 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5283 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5284 * config/arm/arm.c (next_consecutive_mem): New function.
5285 (gen_movmem_ldrd_strd): Likewise.
5286 * config/arm/arm.md (movmemqi): Update condition and code.
5287 (unaligned_loaddi, unaligned_storedi): New patterns.
5289 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5291 * config.gcc: Obsolete *-*-solaris2.9*.
5292 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5294 2013-05-16 Richard Biener <rguenther@suse.de>
5296 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5297 earlier, after GRAPHITE transforms and IV canonicalization.
5299 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5301 * omp-low.c (extract_omp_for_data): For collapsed loops,
5302 if at least one of the loops is known at compile time to
5303 iterate zero times, set count to 0.
5304 (expand_omp_regimplify_p): New function.
5305 (expand_omp_for_generic): For collapsed loops, if at least
5306 one of the loops isn't known to iterate at least once,
5307 add runtime check with setting count to 0.
5308 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5309 For unsigned types if it isn't known at compile time that
5310 the loop will iterate at least once, add runtime check to bypass
5311 the whole loop if initial condition isn't true.
5313 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5315 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5317 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
5320 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5321 transformations to avoid an infinite loop.
5323 2013-05-16 Marek Polacek <polacek@redhat.com>
5325 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5327 2013-05-15 Leif Ekblad <leif@rdos.net>
5329 * config/i386/i386.c (ix86_decompose_address): Use
5330 DEFAULT_TLS_SEG_REG to access TLS segment register.
5331 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5332 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5333 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5335 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5338 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5339 sibling calls to functions that would normally be lazily bound,
5340 unless $gp is call-clobbered.
5342 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
5344 * config/i386/i386.c (ix86_option_override_internal): Update
5345 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5346 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5347 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
5348 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5350 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5352 2013-05-15 Andreas Schwab <schwab@suse.de>
5354 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5355 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5358 2013-05-15 Teresa Johnson <tejohnson@google.com>
5360 * loop-unroll.c (report_unroll_peel): Check decision before
5361 emitting unroll/peel message.
5363 2013-05-15 Teresa Johnson <tejohnson@google.com>
5365 * function.h (has_bb_partition): New rtl_data flag.
5366 (bb_reorder_complete): Ditto.
5367 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5368 instead of flag_reorder_blocks_and_partition.
5369 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5370 with some enhancements.
5371 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5372 * bb-reorder.c (connect_traces): Check for has_bb_partition
5373 instead of flag_reorder_blocks_and_partition.
5374 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5375 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5376 verify_hot_cold_block_grouping.
5377 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5379 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5382 * config/arm/predicates.md (call_insn_operand): New predicate.
5383 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5384 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5385 if insn is not a tail call.
5386 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5388 * config/arm/arm.h (enum reg_class): New caller save register class.
5389 (REG_CLASS_NAMES): Likewise.
5390 (REG_CLASS_CONTENTS): Likewise.
5391 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5394 2013-05-15 Richard Biener <rguenther@suse.de>
5396 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5397 of MSG_OPTIMIZED_LOCATIONS.
5398 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5399 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5401 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5402 of MSG_OPTIMIZED_LOCATIONS.
5403 (execute_vect_slp): Likewise.
5404 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5405 (vect_create_cond_for_alias_checks): Likewise.
5406 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5407 (vect_recog_widen_mult_pattern): Likewise.
5408 (vect_recog_widen_sum_pattern): Likewise.
5409 (vect_recog_over_widening_pattern): Likewise.
5410 (vect_recog_widen_shift_pattern): Likewise.
5411 (vect_recog_vector_vector_shift_pattern): Likewise.
5412 (vect_recog_divmod_pattern): Likewise.
5413 (vect_recog_mixed_size_cond_pattern): Likewise.
5414 (vect_recog_bool_pattern): Likewise.
5415 (vect_pattern_recog_1): Likewise.
5417 2013-05-15 Martin Jambor <mjambor@suse.cz>
5419 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5420 non-functions to builtin_unreachable.
5421 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5422 correct when new direct edges were discovered.
5424 2013-05-15 Martin Jambor <mjambor@suse.cz>
5426 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5427 header, print symbol order instead of node uid, print more information
5428 about indirect edge targets.
5429 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5431 (ipa_make_edge_direct_to_target): Likewise.
5432 (remove_described_reference): Likewise.
5433 (propagate_controlled_uses): Likewise.
5434 (ipa_print_node_params): Also print symbol order.
5435 (ipcp_transform_function): Print symbol order instead of node uids.
5436 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5437 (cgraph_get_create_real_symbol_node): Likewise.
5438 * ipa-cp.c (print_lattice): Likewise.
5439 (print_all_lattices): Likewise.
5440 (determine_versionability): Likewise.
5441 (initialize_node_lattices): Likewise.
5442 (estimate_local_effects): Likewise.
5443 (update_profiling_info): Likewise.
5444 (create_specialized_node): Likewise.
5445 (perhaps_add_new_callers): Likewise.
5446 (decide_about_value): Likewise.
5447 (decide_whether_version_node): Likewise.
5448 (identify_dead_nodes): Likewise.
5449 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5450 (dump_inline_summary): Likewise.
5451 (estimate_node_size_and_time): Likewise.
5452 (inline_analyze_function): Likewise.
5453 * ipa-inline.c (report_inline_failed_reason): Likewise.
5454 (want_early_inline_function_p): Likewise.
5455 (edge_badness): Likewise.
5456 (update_edge_key): Likewise.
5457 (inline_small_functions): Likewise. Add dumping of order to two other
5459 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5460 instead of node uids.
5461 (propagate_pure_const): Likewise.
5462 (propagate_pure_const): Likewise.
5463 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5464 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5465 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5467 * tree-pretty-print.c (dump_function_header): Likewise.
5468 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5469 Print symbol order instead of node uids.
5471 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5473 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5474 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5476 2013-05-15 Richard Biener <rguenther@suse.de>
5478 PR tree-optimization/57275
5479 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5480 return value for fail to do runtime alias checks for gather loads.
5482 2013-05-15 Jan Hubicka <jh@suse.cz>
5486 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5487 weakrefs are not external.
5488 (lto_symtab_merge_decls): Fix thinko when dealing with
5489 non-lto_symtab decls.
5490 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5491 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5492 * varpool.c (dump_varpool_node): Dump more flags.
5494 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5496 * config/i386/i386.c (processor_alias_table): Add instruction
5497 FSGSBASE for AMD bdver3 architecture.
5499 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5501 * tree.c (warn_deprecated_use): Print file:line using locus color.
5502 * diagnostic.c (diagnostic_report_current_module): Print file:line
5503 and file:line:column using locus color.
5505 2013-05-14 Mike Stump <mikestump@comcast.net>
5507 * gdbinit.in: Add __null.
5509 2013-05-14 Mike Stump <mikestump@comcast.net>
5511 * recog.h: Rename struct recog_data to Recog_data.
5512 * recog.c: Likewise.
5513 * reload.c (can_reload_into): Likewise.
5514 * config/picochip/picochip.c: Likewise.
5516 2013-05-14 Mike Stump <mikestump@comcast.net>
5518 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5520 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5522 * resource.h (struct resources): Remove unch_memory member.
5523 (CLEAR_RESOURCE): Don't clear unch_memory.
5524 * resource.c (mark_referenced_resources): Don't set it.
5525 (mark_set_resources): Likewise.
5526 (mark_target_live_regs): Don't clear it.
5527 (init_resource_info): Likewise.
5528 * reorg.c (resource_conflicts_p): Don't compare it.
5529 (redundant_insn): Don't set it.
5531 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5533 * emit-rtl.c (next_label): Remove unused function.
5534 (skip_consecutive_labels, link_cc0_insns): Move to ...
5535 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5536 only place where these functions are used, and make them static.
5538 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5540 * fold-const.c (fold_negate_expr): Handle vectors.
5541 (fold_truth_not_expr): Make it static.
5542 (fold_invert_truthvalue): New static function.
5543 (invert_truthvalue_loc): Handle vectors. Do not call
5544 fold_truth_not_expr directly.
5545 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5546 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5547 (fold_comparison): Handle vector constants.
5548 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5549 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5550 * tree.h (fold_truth_not_expr): Remove declaration.
5552 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5554 * config/aarch64/aarch64-simd.md
5555 (aarch64_vcond_internal<mode>): Rename to...
5556 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5557 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5558 float modes. Clarify all iterator modes.
5559 (vcond<mode><mode>): Use new name for vcond expanders.
5560 (vcond<v_cmp_result><mode>): Likewise.
5561 (vcondu<mode><mode>: Likewise.
5562 * config/aarch64/iterators.md (VDQF_COND): New.
5564 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5567 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5568 variable for the shift amount. Check that we shift by non-negative
5571 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5574 * config/arm/arm.h (EPILOGUE_USES): Only return true
5575 for LR_REGNUM after epilogue_completed.
5577 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5579 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5582 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5585 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5586 and Solaris 11+/x86 with gld.
5587 * configure: Regenerate.
5589 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5591 * expmed.c (expand_shift_1): Canonicalize rotates by
5592 constant bitsize / 2 to bitsize - 1.
5593 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5594 case ROTATERT>: Likewise.
5597 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5599 * config/i386/i386.md (rotateinv): New code attr.
5600 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5601 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5602 roll $31, %eax, etc.
5604 2013-05-14 Richard Biener <rguenther@suse.de>
5607 * tree-eh.c (sink_clobbers): Give up for successors with
5608 multiple predecessors and no virtual uses.
5610 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5612 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5613 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5615 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5618 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5619 the case when both op0 and op1 have VOIDmode.
5621 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5623 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5624 in multiply-accumulate mode.
5626 2013-05-13 Guozhi Wei <carrot@google.com>
5628 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5630 2013-05-13 Kai Tietz <ktietz@redhat.com>
5633 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5634 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5635 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5636 * config/i386/i386.c (ix86_option_override_internal): Likewise.
5637 (ix86_expand_prologue): Likewise.
5638 (ix86_expand_split_stack_prologue): Likewise.
5639 (legitimate_pic_address_disp_p): Likewise.
5640 (legitimize_pic_address): Likewise.
5641 (legitimize_tls_address): Likewise.
5642 (legitimize_pe_coff_symbol): Likewise.
5643 (output_pic_addr_const): Likewise.
5644 (construct_plt_address): Likewise.
5645 (ix86_expand_call): Likewise.
5646 (x86_output_mi_thunk): Likewise.
5647 (x86_function_profiler): Likewise.
5649 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5651 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5652 similar switch cases.
5653 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5654 (aarch64_simd_mov_to_<mode>low): Delete.
5655 (aarch64_simd_mov_to_<mode>high): Delete.
5656 (move_lo_quad_<mode>): Add w<-r alternative.
5657 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5658 (aarch64_simd_mov_from_*): Update type attribute.
5659 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5662 2013-05-13 Jan Hubicka <jh@suse.cz>
5664 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5665 * config/i386/i386.c (ix86_compute_frame_layout,
5666 ix86_expand_epilogue, emit_i387_cw_initialization,
5667 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5668 ix86_local_alignment): Fix use of size/speed predicates.
5670 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5672 PR tree-optimization/45216
5673 PR tree-optimization/57157
5674 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5675 the (-Y) & (B - 1) variant if OP is |.
5676 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5677 return shifted. Use (-op1) & (prec - 1) as other_amount
5678 instead of prec - op1.
5680 2013-05-13 Martin Jambor <mjambor@suse.cz>
5683 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5684 (ipa_constant_data): New type.
5685 (ipa_jump_func): Use ipa_constant_data to hold information about
5686 constant jump functions.
5687 (ipa_get_jf_constant): Adjust to jump function type changes.
5688 (ipa_get_jf_constant_rdesc): New function.
5689 (ipa_param_descriptor): New field controlled_uses.
5690 (ipa_get_controlled_uses): New function.
5691 (ipa_set_controlled_uses): Likewise.
5692 * ipa-ref.h (ipa_find_reference): Declare.
5693 * ipa-prop.c (ipa_cst_ref_desc): New type.
5694 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5696 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5697 New parameter cs. Adjust all callers.
5698 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5699 (remove_described_reference): New function.
5700 (jfunc_rdesc_usable): Likewise.
5701 (try_make_edge_direct_simple_call): Decrement controlled use count,
5702 attempt to remove reference if it hits zero.
5703 (combine_controlled_uses_counters): New function.
5704 (propagate_controlled_uses): Likewise.
5705 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5706 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5707 (ipa_print_node_params): Print described use counter.
5708 (ipa_write_jump_function): Adjust to jump function type changes.
5709 (ipa_read_jump_function): New parameter CS, pass it to
5710 ipa_set_jf_constant. Adjust caller.
5711 (ipa_write_node_info): Stream controlled use count
5712 (ipa_read_node_info): Likewise.
5713 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5715 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5716 count. Remove cloning-added reference if it reaches zero.
5717 * ipa-ref.c (ipa_find_reference): New function.
5719 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5721 * config/i386/i386.c (processor_target_table): Modified default
5722 alignment values for AMD BD and BT architectures.
5724 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
5726 * tree-vect-generic.c (uniform_vector_p): Move ...
5727 * tree.c (uniform_vector_p): ... here.
5728 * tree.h (uniform_vector_p): Declare it.
5729 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5732 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5734 PR tree-optimization/57230
5735 * tree-ssa-strlen.c (handle_char_store): Record length for
5736 array store from STRING_CST.
5738 PR tree-optimization/57230
5739 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5742 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5744 * config/epiphany/epiphany.c (epiphany_init): Check size of
5745 NUM_MODES_FOR_MODE_SWITCHING.
5746 (epiphany_expand_prologue):
5747 Remove CONFIG_REGNUM initial value handling code.
5748 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5749 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5750 (emit_set_fp_mode, epiphany_mode_after): Likewise.
5751 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5752 Don't return 1 for FP_MODE_NONE.
5753 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5754 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5755 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5756 * config/epiphany/epiphany.md (save_config): New pattern.
5758 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
5760 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5762 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
5764 * config/i386/i386.md (memory): Handle sseishft1.
5765 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5766 (*vec_extractv2di_1): Ditto.
5768 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5770 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5773 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
5775 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5776 Add mthumb/march=armv7-a multilib.
5777 Add mthumb/march=armv7-r multilib.
5778 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5780 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5782 * config/v850/t-rtems: Add more multilibs.
5784 2013-05-10 Richard Biener <rguenther@suse.de>
5786 PR tree-optimization/57214
5787 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5788 not propagate from SSA names that occur in abnormal PHI nodes.
5790 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
5792 * stor-layout.c (element_precision): New function.
5793 * machmode.h (element_precision): Declare it.
5794 * tree.c (build_minus_one_cst): New function.
5795 (element_precision): Likewise.
5796 * tree.h (build_minus_one_cst): Declare new function.
5797 (element_precision): Likewise.
5798 * fold-const.c (operand_equal_p): Use element_precision.
5799 (fold_binary_loc): Handle vector types.
5800 * convert.c (convert_to_integer): Use element_precision.
5801 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5804 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5806 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5807 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5808 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5809 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5810 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5811 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5812 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5813 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5814 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5815 (Uuw8): New constraints.
5816 (Usb4): Move into alphabetical order.
5817 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5818 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5819 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5820 previously unnamed patterns.
5821 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5822 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5823 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5824 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5825 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5826 of specific lengths.
5828 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5830 * config/i386/i386.md (rotateinv): New code attr.
5831 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5832 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5833 roll $31, %eax, etc.
5835 PR tree-optimization/45216
5836 PR tree-optimization/57157
5837 * tree-ssa-forwprop.c (simplify_rotate): New function.
5838 (ssa_forward_propagate_and_combine): Call it.
5840 2013-05-10 Richard Biener <rguenther@suse.de>
5842 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5843 disable peeling when we version for aliasing.
5844 (vector_alignment_reachable_p): Honor explicit user alignment.
5845 (vect_supportable_dr_alignment): Likewise.
5846 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5847 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5848 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5849 then peeling to arrange for the cost-model check to come first.
5851 2013-05-10 Alan Modra <amodra@gmail.com>
5853 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5854 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5855 * configure: Regenerate.
5857 2013-05-10 Alan Modra <amodra@gmail.com>
5860 * varasm.c (default_elf_select_section): Move !DECL_P check..
5861 (get_named_section): ..to here before calling get_section_name.
5863 (default_section_type_flags): Add DECL_P check.
5864 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5865 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5867 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5869 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5870 When using gen_stack_adjust_str with a register offset, add a
5871 REG_FRAME_RELATED_EXPR note.
5873 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
5875 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5876 (*vec_extractv4si_zext_mem): Ditto.
5877 (*vec_extractv2di): Add 0->x and x->x alternatives.
5878 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5879 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5881 2013-05-09 Jason Merrill <jason@redhat.com>
5883 N3639 C++1y VLA support
5884 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5887 * tree.c (build_constructor_va): New.
5888 * tree.h: Declare it.
5890 2013-05-09 Martin Jambor <mjambor@suse.cz>
5893 * gimple-fold.c (canonicalize_constructor_val): Call
5894 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5896 2013-05-09 Jan Hubicka <jh@suse.cz>
5897 Richard Biener <rguenther@suse.de>
5900 * symtab.c (symtab_make_decl_local): Do not add private names.
5902 2013-05-09 Jan Hubicka <jh@suse.cz>
5905 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5906 (unlink_from_assembler_name_hash): Likewise.
5907 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5908 symtab_unregister_node, symtab_initialize_asm_name_hash,
5909 change_decl_assembler_name): Update.
5911 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5913 * config/aarch64/aarch64.md: New movtf split.
5914 (*movtf_aarch64): Update.
5915 (aarch64_movdi_tilow): Handle TF modes and rename to
5916 aarch64_movdi_<mode>low.
5917 (aarch64_movdi_tihigh): Handle TF modes and rename to
5918 aarch64_movdi_<mode>high
5919 (aarch64_movtihigh_di): Handle TF modes and rename to
5920 aarch64_mov<mode>high_di
5921 (aarch64_movtilow_di): Handle TF modes and rename to
5922 aarch64_mov<mode>low_di
5923 (aarch64_movtilow_tilow): Remove spurious whitespace.
5924 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5926 (aarch64_print_operand): Update.
5928 2013-05-09 Alan Modra <amodra@gmail.com>
5930 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5932 * configure: Regenerate.
5934 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5936 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5937 splitter preparation statements.
5938 * config/i386/sse.md (*vec_extract* splitters): Ditto.
5939 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5942 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5944 * gimple-ssa-strength-reduction.c (count_candidates): Change
5945 return value to int.
5946 (analyze_candidates_and_replace): Change type of length to int.
5948 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5950 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5951 (*vec_extract<mode>): Use VI12_128 mode iterator.
5952 (*vec_extract<mode>_mem): Ditto.
5953 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5956 2013-05-08 Diego Novillo <dnovillo@google.com>
5961 2012-08-17 Diego Novillo <dnovillo@google.com>
5964 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5965 * config.in: Regenerate.
5966 * configure: Regenerate.
5967 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
5969 2013-05-08 Jan Hubicka <jh@suse.cz>
5972 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5973 * cgraph.h (symtab_node_base): Add unique_name.
5974 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5975 input_overwrite_node, input_varpool_node): Stream unique_name.
5976 * cgraphclones.c (cgraph_create_virtual_clone,
5977 cgraph_function_versioning): Set unique_name.
5978 * ipa.c (function_and_variable_visibility): Set unique_name.
5980 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5982 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5983 (alloc_cand_and_find_basis): Restrict conditional candidate
5984 processing to CAND_MULTs.
5986 2013-05-08 Jan Hubicka <jh@suse.cz>
5989 lto-symtab.c (lto_symtab_symbol_p): New function.
5990 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5991 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5992 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5993 Skip static symbols.
5995 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5997 PR tree-optimization/57200
5998 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5999 Only call inform if the preceding warning_at returns true.
6001 2013-05-07 Han Shen <shenhan@google.com>
6003 * cfgexpand.c (record_or_union_type_has_array_p): New function.
6004 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
6005 * common.opt (fstack-protector-strong): New option.
6006 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
6007 * doc/invoke.texi (Optimization Options): Document
6008 "-fstack-protector-strong".
6009 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
6011 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6013 * config/mips/mips.c (mips_machine_reorg2): Return 0.
6015 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
6017 * ira.c (update_equiv_regs): Add insn having equiv memory even if
6018 it is not lhs of the insn.
6019 (setup_reg_equiv): Remove insn having equiv memory which it is not
6021 * lra-constraints.c (process_address): Try to improve generation
6022 code for address base + disp.
6023 (lra_constraints): Make correct the code for checking insn setting
6024 up backward equivalence. Remove insn only if it is in the init
6026 * lra-eliminations.c (update_reg_eliminate): Change return value.
6027 (lra_eliminate): Use the result.
6029 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
6031 * config/i386/sse.md (ssescalarnummask): New mode attribute.
6032 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
6033 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
6034 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
6035 register target operands.
6036 (*vec_extractv8hi_sse2): New pattern.
6037 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
6038 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
6039 (*vec_extract<mode>_mem): New insn and split pattern.
6041 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
6043 * config/arm/arm.c (arm_asan_shadow_offset): New function.
6044 (TARGET_ASAN_SHADOW_OFFSET): Define.
6045 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
6046 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
6048 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6050 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
6051 (incr_vec_index): Return -1 if increment not found.
6052 (create_add_on_incoming_edge): Assert if increment not found.
6053 (record_increment): Limit number of increments recorded.
6054 (all_phi_incrs_profitable): Return false if an increment not found.
6055 (replace_profitable_candidates): Don't process increments that were
6057 (analyze_candidates_and_replace): Limit size of incr_vec.
6059 2013-05-07 Richard Biener <rguenther@suse.de>
6061 * calls.c (special_function_p): setjmp-like functions are leaf.
6062 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
6063 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
6065 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
6067 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
6068 (aarch64_simd_mov<mode>): New expander.
6069 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
6070 (aarch64_simd_mov_to_<mode>high): Likewise.
6071 (aarch64_simd_mov_from_<mode>low): Likewise.
6072 (aarch64_simd_mov_from_<mode>high): Likewise.
6073 (aarch64_dup_lane<mode>): Update.
6074 (aarch64_dup_lanedi): New instruction pattern.
6075 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
6076 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
6078 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6080 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
6081 (replace_mult_candidate): Remove unnecessary argument; remove
6082 unnecessary parameter from call to introduce_cast_before_cand.
6083 (replace_unconditional_candidate): Remove unnecessary parameter
6084 from call to replace_mult_candidate.
6085 (replace_conditional_candidate): Likewise.
6086 (insert_initializers): Use make_temp_ssa_name.
6087 (introduce_cast_before_cand): Remove unnecessary argument; use
6089 (replace_one_candidate): Remove unnecessary argument; remove
6090 unnecessary parameter from calls to introduce_cast_before_cand.
6091 (replace_profitable_candidates): Remove unnecessary parameters
6092 from calls to replace_one_candidate.
6094 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6096 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
6097 phi def as possibly hiding a basis for a CAND_ADD whose operands
6098 have been commuted in the analysis.
6099 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
6101 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6103 * config/aarch64/aarch64.md
6104 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
6105 shift value between 0-4.
6107 2013-05-07 Richard Biener <rguenther@suse.de>
6109 * double-int.h (rshift): New overload.
6110 * double-int.c (rshift): New function.
6111 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
6112 (create_reference_ops_from_ref): Remove.
6113 (vn_reference_insert): Use shared ops for constructing the
6114 reference and copy it.
6116 2013-05-07 Richard Biener <rguenther@suse.de>
6119 * tree-eh.c (sink_clobbers): Properly propagate
6120 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6122 2013-05-07 Jakub Jelinek <jakub@redhat.com>
6124 PR tree-optimization/57149
6125 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6126 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6127 collect_phi_def_edges, execute_late_warn_uninitialized): Use
6128 uninit_undefined_value_p instead of ssa_undefined_value_p.
6131 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6132 for modifier == EXPAND_INITIALIZER.
6134 2013-05-07 Anton Blanchard <anton@samba.org>
6136 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6137 for powerpc64 little endian.
6138 * configure: Regenerate.
6140 2013-05-06 Graham Stott <grahams@btinternet.com>
6142 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6143 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6144 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6145 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6147 2013-05-06 Graham Stott <grahams@btinternet.com>
6149 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6150 codes which allow non-lvalues.
6152 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
6154 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6155 components are all 1s.
6156 (integer_minus_onep): New function.
6157 * tree.h (integer_minus_onep): Declare it.
6158 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6159 integer_minus_onep instead of integer_all_onesp.
6161 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6164 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6165 variations of these patterns.
6167 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6169 * config/i386/i386.md (isa): Add x64_sse4 member.
6170 (enabled): Handle x64_sse4.
6171 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6172 instruction for 64bit SSE4_1 targets. Update insn attributes.
6173 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6174 instruction for SSE4_1 targets. Update insn attributes.
6175 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6176 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6177 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6179 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6180 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6181 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6183 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6186 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6188 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6190 * final.c (do_assembler_dialects): Don't handle curly braces and
6191 vertical bar escaped by % as dialect delimiters.
6192 (output_asm_insn): Print curly braces and vertical bar if escaped
6193 by % and ASSEMBLER_DIALECT defined.
6194 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6195 * doc/tm.texi: Regenerated.
6197 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6199 * config/mips/mips.c: Include tree-pass.h.
6200 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6201 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6202 (pass_mips_machine_reorg2): New machine specific pass.
6203 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6204 (mips_option_override): Register the new pass.
6205 * rtl.h (cleanup_barriers): Remove prototype.
6206 (dbr_schedule): Likewise.
6207 * jump.c (cleanup_barriers): Make static.
6208 * reorg.c (dbr_schedule): Likewise.
6210 2013-05-06 Richard Biener <rguenther@suse.de>
6212 PR tree-optimization/57185
6213 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6216 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6219 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6220 between "first_arg" and "insn", not "last" and "insn".
6222 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6224 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6225 (find_candidates_in_block): Re-enable slsr_process_phi.
6226 (create_phi_basis): Fix double counting of candidate adjustment.
6228 2013-05-06 Richard Biener <rguenther@suse.de>
6231 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6232 the edge is also fallthru, preserve it and just clear the
6234 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6235 also complex, preserve that and just clear the fallthru flag.
6236 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6237 update virtual operands.
6239 2013-05-06 Alan Modra <amodra@gmail.com>
6241 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6242 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6243 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6244 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6245 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6246 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6248 2013-05-06 Alan Modra <amodra@gmail.com>
6250 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6251 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6252 (DEFAULT_ASM_ENDIAN): Define.
6253 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6254 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6255 Update -K PIC clause from sysv4.h.
6256 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6257 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6259 2013-05-06 Alan Modra <amodra@gmail.com>
6261 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6262 twice for little-endian.
6263 (ashrdi3_no_power, ashrdi3): Support little-endian.
6265 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6268 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6269 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6271 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6272 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6273 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6276 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6277 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6279 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6280 * config/pa/pa.opt: Make mbig-switch a no-op.
6281 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6282 (CASE_VECTOR_MODE): Always return SImode.
6283 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6284 for the !TARGET_BIG_SWITCH case.
6285 * config/pa/pa-linux.h: Likewise.
6286 * config/pa/pa-openbsd.h: Likewise.
6287 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6288 * config/pa/pa.md (short_jump): Remove define_insn.
6289 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6290 (casesi0): Remove define_insn.
6291 (type): Remove btable_branch.
6292 (pa_combine_type): Likewise.
6293 (in_nullified_branch_delay): Likewise.
6294 (in_call_delay): Likewise.
6295 (define_delay): Likewise.
6296 (define_insn_reservation "Z3"): Likewise.
6297 (define_insn_reservation "Z4"): Likewise.
6298 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6299 (pa_adjust_insn_length): Remove adjustment for btable branches.
6300 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6303 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
6305 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6306 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6307 Add m->r,x alternatives.
6308 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6309 splitters using SWI48x mode iterator.
6310 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6311 TARGET_64BIT. Add m->x alternative.
6312 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6313 Add o->x alternative. Enable for TARGET_SSE.
6314 (sse_storeq): Remove expander.
6315 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6316 with memory input operand.
6317 (*vec_extractv2di_1 splitter): New.
6318 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6319 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6321 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6323 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6324 (INT_LOWPART): Delete.
6325 (extract_MB): Adjust.
6326 (extract_ME): Adjust.
6327 (print_operand): Adjust.
6329 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6331 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6332 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6333 (reg_or_logical_cint_operand, easy_fp_constant,
6334 logical_const_operand): Delete "CONST_DOUBLE" case.
6335 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6336 "HOST_BITS_PER_WIDE_INT == 64" test.
6337 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
6338 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6339 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6340 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6342 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6343 CONST_DOUBLE DImode/VOIDmode case.
6344 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6345 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6346 CONST_DOUBLE VOIDmode case.
6347 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6348 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6349 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6350 Delete CONST_DOUBLE case.
6351 (splitters for mov FMOVE64 const_double): Delete
6352 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6353 "HOST_BITS_PER_WIDE_INT >= 64" test.
6354 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6356 (mov DI const_double): Delete.
6358 2013-05-04 Jakub Jelinek <jakub@redhat.com>
6360 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6361 on op shows all bits zero in mode of a lowpart subreg, return zero.
6363 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6366 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6367 to save TFmode registers and DImode to save TImode registers for
6368 caller save operations.
6369 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6370 mark being partially clobbered since they only use the first
6373 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6374 and TDmode only use the upper 64-bits of each VSX register.
6376 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6378 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6379 (find_candidates_in_block): Disable slsr_process_phi.
6381 2013-05-03 Guozhi Wei <carrot@google.com>
6383 * coverage.c (coverage_obj_init): Move the construction of gcov
6385 (build_init_ctor): ... here.
6387 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6389 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6390 (slsr_cand_d): Redefine def_phi.
6391 (stride_status, phi_adjust_status, count_phis_status): New enums.
6392 (find_phi_def): New.
6393 (find_basis_for_base_expr): New.
6394 (find_basis_for_candidate): Handle hidden bases.
6395 (alloc_cand_and_find_basis): Handle phi candidates.
6396 (slsr_process_phi): New.
6397 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6398 (create_mul_imm_cand): Likewise.
6399 (create_add_ssa_cand): Exclude phi base candidates.
6400 (create_add_imm_cand): Likewise.
6401 (slsr_process_cast): Likewise.
6402 (slsr_process_copy): Likewise.
6403 (find_candidates_in_block): Handle phi candidates.
6404 (dump_candidate): Likewise.
6405 (unconditional_cands): Delete.
6406 (unconditional_cands_with_known_stride_p): Delete.
6407 (phi_dependent_cand_p): New.
6408 (cand_increment): Handle phi-dependent candidates.
6409 (replace_dependent): Delete.
6410 (replace_mult_candidate): New.
6411 (replace_unconditional_candidate): New.
6412 (incr_vec_index): Move to avoid forward reference.
6413 (create_add_on_incoming_edge): New.
6414 (create_phi_basis): New.
6415 (replace_dependents): Delete.
6416 (replace_conditional_candidate): New.
6417 (phi_add_costs): New.
6418 (replace_uncond_cands_and_profitable_phis): New.
6419 (record_increment): Handle phi adjustments.
6420 (record_phi_increments): New.
6421 (record_increments): Handle phi adjustments.
6422 (phi_incr_cost): New.
6423 (lowest_cost_path): Handle phis.
6424 (total_savings): Likewise.
6425 (analyze_increments): Likewise.
6426 (ncd_with_phi): New.
6427 (ncd_of_cand_and_phis): New.
6428 (nearest_common_dominator_for_cands): Handle phi increments.
6429 (all_phi_incrs_profitable): New.
6430 (replace_profitable_candidates): Handle phi-dependent candidates.
6431 (analyze_candidates_and_replace): Likewise.
6433 2013-05-03 Teresa Johnson <tejohnson@google.com>
6436 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6437 do not exceed REG_BR_PROB_BASE.
6439 2013-05-03 Jeff Law <law@redhat.com>
6441 PR tree-optimization/57144
6442 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6443 operand of the condition will bit into the new type when eliminating
6444 a cast feeding a condition.
6446 2013-05-03 Jakub Jelinek <jakub@redhat.com>
6448 PR rtl-optimization/57130
6449 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6450 of COMPARE as in_code to the recursive call if needed.
6452 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
6454 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6455 (enabled): Handle new members.
6456 * config/i386/sse.md (*vec_concatv2si): Merge from
6457 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6458 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6460 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6462 PR tree-optimization/57027
6463 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6464 for fnms opportunity, check we got the prerequisite kind
6465 of tree / gimple before using accessor functions.
6467 2013-05-03 Richard Biener <rguenther@suse.de>
6469 * double-int.h (lshift): New overload without precision
6471 (operator *=, operator +=, operator -=): Move ...
6472 * double-int.c (operator *=, operator +=, operator -=): ... here
6473 and implement more efficiently.
6474 (mul_double_with_sign): Remove.
6475 (lshift_double): Adjust to take unsinged shift argument, push
6476 dispatching code to callers.
6477 (mul_double_wide_with_sign): Add early out for callers that
6478 are not interested in high parts or overflow.
6479 (lshift): New function.
6480 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6482 (lrotate, rrotate): Use logical shifts.
6483 * expr.c (get_inner_reference): Use lshift.
6484 * fixed-value.c (do_fixed_divide): Likewise.
6485 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6486 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6487 (indirect_refs_may_alias_p): Likewise.
6488 (stmt_kills_ref_p_1): Likewise.
6490 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6492 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6494 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6496 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6497 scalar form of FABD instruction.
6499 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6501 * lra-constraints.c (process_alt_operands): Add checking alt
6502 number to choose the best alternative.
6504 2013-05-02 Richard Biener <rguenther@suse.de>
6506 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6507 bitmap and its handling.
6508 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6510 2013-05-02 Richard Biener <rguenther@suse.de>
6513 * tree-inline.c (copy_loops): Properly handle removed loops.
6514 (copy_cfg_body): Mark destination loops for fixup if source
6517 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6520 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6521 generating simple_return for naked functions.
6523 2013-05-02 Martin Jambor <mjambor@suse.cz>
6526 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6527 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6529 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6530 ipa_agg_replacement_value structures.
6531 (known_aggs_to_agg_replacement_list): Likewise.
6532 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6533 (read_agg_replacement_chain): Likewise.
6534 (ipcp_transform_function): Also check that by_ref flags match.
6536 2013-05-02 Richard Biener <rguenther@suse.de>
6538 * graphds.h (struct graph): Add obstack member.
6539 * graphds.c (new_graph): Initialize obstack and allocate
6541 (add_edge): Allocate edge from the obstack.
6542 (free_graph): Free the obstack instead of all edges and vertices.
6544 2013-05-02 Teresa Johnson <tejohnson@google.com>
6546 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6548 * cfg.c (update_bb_profile_for_threading): Ditto.
6549 * tree-inline.c (copy_bb): Ditto.
6550 (copy_edges_for_bb): Ditto.
6551 (initialize_cfun): Ditto.
6552 (copy_cfg_body): Ditto.
6553 (expand_call_inline): Ditto.
6554 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6555 (estimate_node_size_and_time): Ditto.
6556 (inline_merge_summary): Ditto.
6557 * cgraphclones.c (cgraph_clone_edge): Ditto.
6558 (cgraph_clone_node): Ditto.
6559 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6560 (compute_trg_info): Ditto.
6562 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6564 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6565 S reg when fp attribute set.
6566 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6568 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6570 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6572 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6573 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6574 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6576 2013-05-02 Richard Biener <rguenther@suse.de>
6578 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6579 (struct instantiate_cache_entry): New type.
6580 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6581 (struct instantiate_cache_type): New type.
6582 (set_instantiated_value, get_instantiated_value): Remove.
6583 (get_instantiated_value_entry): New function.
6584 (instantiate_scev_name): Use the new cache and adjust.
6585 (instantiate_scev_poly): Adjust.
6586 (instantiate_scev_binary): Likewise.
6587 (instantiate_array_ref): Likewise.
6588 (instantiate_scev_convert): Likewise.
6589 (instantiate_scev_not): Likewise.
6590 (instantiate_scev_3): Likewise.
6591 (instantiate_scev_2): Likewise.
6592 (instantiate_scev_r): Likewise.
6593 (instantiate_scev): Likewise.
6594 (resolve_mixers): Likewise.
6596 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6599 * lra-constraints.c (best_small_class_operands_num): Remove.
6600 (process_alt_operands): Remove small_class_operands_num. Take
6601 small classes operands into losers and only if the operand is not
6602 matched. Modify debugging output.
6603 (curr_insn_transform): Remove best_small_class_operands_num.
6606 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6608 * config/aarch64/aarch64-builtins.c
6609 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6610 * config/aarch64/aarch64-simd-builtins.def
6611 (reduc_splus_): Add new modes.
6612 (reduc_uplus_): New.
6613 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6614 (reduc_uplus_v4sf): Likewise.
6615 (reduc_splus_v4sf): Likewise.
6616 (aarch64_addv<mode>): Likewise.
6617 (reduc_uplus_<mode>): Likewise.
6618 (reduc_splus_<mode>): Likewise.
6619 (aarch64_addvv2di): Likewise.
6620 (reduc_uplus_v2di): Likewise.
6621 (reduc_splus_v2di): Likewise.
6622 (aarch64_addvv2si): Likewise.
6623 (reduc_uplus_v2si): Likewise.
6624 (reduc_splus_v2si): Likewise.
6625 (reduc_<sur>plus_<mode>): New.
6626 (reduc_<sur>plus_v2di): Likewise.
6627 (reduc_<sur>plus_v2si): Likewise.
6628 (reduc_<sur>plus_v4sf): Likewise.
6629 (aarch64_addpv4sf): Likewise.
6630 * config/aarch64/arm_neon.h
6631 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6632 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6633 add UNSPEC_SADDV, UNSPEC_UADDV.
6635 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6637 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6639 * config/aarch64/arm_neon.h
6640 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6642 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6644 * config/aarch64/aarch64-builtins
6645 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6647 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6649 * config/aarch64/aarch64-simd-builtins.def
6651 (reduc_smin_): Likewise.
6652 (reduc_umax_): Likewise.
6653 (reduc_umin_): Likewise.
6654 (reduc_smax_nan_): Likewise.
6655 (reduc_smin_nan_): Likewise.
6658 (smax): Update for V2SF, V4SF and V2DF modes.
6661 (smin_nan): Likewise.
6662 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6663 (<su><maxmin><mode>3): ...This, refactor.
6664 (s<maxmin><mode>3): New.
6665 (<maxmin_uns><mode>3): Likewise.
6666 (reduc_<maxmin_uns>_<mode>): Refactor.
6667 (reduc_<maxmin_uns>_v4sf): Likewise.
6668 (reduc_<maxmin_uns>_v2si): Likewise.
6669 (aarch64_<fmaxmin><mode>: Remove.
6670 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6672 (vmin<q>_f<32,64>): Likewise.
6673 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6675 (su): Add mappings for smax, smin, umax, umin.
6677 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6678 (FMAXMIN): Rename as...
6679 (FMAXMIN_UNS): ...This.
6681 (fmaxminv): Likewise.
6682 (fmaxmin): Likewise.
6684 (maxmin_uns_op): Likewise.
6686 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6688 * config/aarch64/arm_neon.h
6689 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6690 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6691 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6693 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6695 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6696 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6698 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6700 * config/aarch64/aarch64-simd.md
6701 (vcond<mode>_internal): Handle special cases for constant masks.
6702 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6703 (vcondu<mode><mode>): Likewise.
6704 (vcond<v_cmp_result><mode>): New.
6706 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6708 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6709 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6710 * config/aarch64/aarch64-simd-builtins.def
6711 (cmeq): Update to BUILTIN_VALLDI.
6716 * config/aarch64/arm_neon.h
6717 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6718 to builtins or C as appropriate.
6720 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6722 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6724 (cmhi): Rename to...
6726 * config/aarch64/aarch64-simd.md
6727 (simd_mode): Add SF.
6728 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6729 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6730 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6731 (cstore<mode>_neg): ...This.
6732 * config/aarch64/iterators.md
6734 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6736 (UCOMPARISONS): Likewise.
6737 (optab): Add missing comparisons.
6745 (V_cmp_result): Add DF, SF modes.
6746 (v_cmp_result): Likewise.
6749 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6751 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6753 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6754 define_insn to define_insn_and_split.
6755 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6756 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6757 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6758 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6759 (thumb2_negscc): Likewise.
6761 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6763 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6765 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6767 * config/arm/thumb2.md: Remove trailing whitespaces.
6769 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6771 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6772 Use gen_int_mode rather than GEN_INT.
6774 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6776 * value-prof.c (stream_in_histogram_value): Remove the strayed
6779 2013-04-30 Richard Biener <rguenther@suse.de>
6782 * cfghooks.c (split_edge): Properly check for the loop latch edge.
6784 2013-04-30 Richard Biener <rguenther@suse.de>
6787 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6789 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
6791 PR rtl-optimization/56957
6792 PR rtl-optimization/57105
6793 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6794 variable. Use just INSN_UID for determining whether an insn
6795 should be only disconnected from the insn stream.
6796 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6798 2013-04-30 Jakub Jelinek <jakub@redhat.com>
6800 PR tree-optimization/57104
6801 * tsan.c (instrument_expr): Don't instrument accesses to
6802 DECL_HARD_REGISTER VAR_DECLs.
6804 2013-04-30 Richard Biener <rguenther@suse.de>
6806 * function.h (loops_for_fn): New inline function.
6807 (set_loops_for_fn): Likewise.
6808 * cfgloop.h (place_new_loop): Add struct function parameter.
6809 (get_loop): Likewise.
6810 (get_loops): Likewise.
6811 (number_of_loops): Likewise.
6813 (fel_init): Likewise.
6814 * cfg.c (get_loop_copy): Adjust.
6815 * cfgloop.c (flow_loops_dump): Likewise.
6816 (record_loop_exits): Likewise.
6817 (verify_loop_structure): Likewise.
6818 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6819 (estimate_reg_pressure_cost): Likewise.
6820 (mark_loop_exit_edges): Likewise.
6821 * cfgloopmanip.c (place_new_loop): Likewise.
6822 (add_loop): Likewise.
6823 (duplicate_loop): Likewise.
6824 * graph.c (draw_cfg_nodes): Likewise.
6825 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6826 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6827 (extract_affine_chrec): Likewise.
6828 (build_scop_iteration_domain): Likewise.
6829 * graphite.c (graphite_initialize): Likewise.
6830 * ira-build.c (create_loop_tree_nodes): Likewise.
6831 (more_one_region_p): Likewise.
6832 (rebuild_regno_allocno_maps): Likewise.
6833 (mark_loops_for_removal): Likewise.
6834 (mark_all_loops_for_removal): Likewise.
6835 (remove_unnecessary_regions): Likewise.
6836 (ira_build): Likewise.
6837 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6838 * loop-init.c (fix_loop_structure): Likewise.
6839 (gate_rtl_move_loop_invariants): Likewise.
6840 (gate_rtl_unswitch): Likewise.
6841 (gate_rtl_unroll_and_peel_loops): Likewise.
6842 (rtl_doloop): Likewise.
6843 * lto-streamer-in.c (input_cfg): Likewise.
6844 * lto-streamer-out.c (output_cfg): Likewise.
6845 * modulo-sched.c (sms_schedule): Likewise.
6846 * predict.c (tree_estimate_probability): Likewise.
6847 (tree_estimate_probability_driver): Likewise.
6848 (estimate_loops): Likewise.
6849 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6850 (move_sese_region_to_fn): Likewise.
6851 (debug_loop_num): Likewise.
6852 * tree-chrec.c (chrec_evaluate): Likewise.
6853 (hide_evolution_in_other_loops_than_loop): Likewise.
6854 (chrec_component_in_loop_num): Likewise.
6855 (reset_evolution_in_loop): Likewise.
6856 (evolution_function_is_invariant_rec_p): Likewise.
6857 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6858 * tree-inline.c (copy_loops): Likewise.
6859 (copy_cfg_body): Likewise.
6860 (tree_function_versioning): Likewise.
6861 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6862 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6864 (add_to_evolution_1): Likewise.
6865 (scev_const_prop): Likewise.
6866 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6867 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6868 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6869 (tree_ssa_lim_initialize): Likewise.
6870 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6871 (verify_loop_closed_ssa): Likewise.
6872 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6873 (tree_ssa_loop_im): Likewise.
6874 (tree_ssa_loop_unswitch): Likewise.
6875 (tree_vectorize): Likewise.
6876 (check_data_deps): Likewise.
6877 (tree_ssa_loop_ivcanon): Likewise.
6878 (tree_ssa_loop_bounds): Likewise.
6879 (tree_complete_unroll): Likewise.
6880 (tree_complete_unroll_inner): Likewise.
6881 (tree_parallelize_loops): Likewise.
6882 (tree_ssa_loop_prefetch): Likewise.
6883 (tree_ssa_loop_ivopts): Likewise.
6884 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6885 * tree-vectorizer.c (vectorize_loops): Likewise.
6887 2013-04-29 Mike Frysinger <vapier@gentoo.org>
6889 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6890 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6891 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6892 with EABI_LINK_SPEC.
6894 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6897 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6900 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6903 * lra-constraints.c (process_alt_operands): Discourage a bit more
6904 using memory for pseudos. Print cost dump for alternatives.
6905 Modify cost values for conflicts with early clobbers.
6906 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6908 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6911 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6913 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6915 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6917 (movdi_aarch64): Support LDR/STR from/to D register.
6919 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6921 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6922 or higher by default.
6924 2013-04-29 Richard Biener <rguenther@suse.de>
6927 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6928 even if not adding abnormal edges for calls that can make
6931 2013-04-29 Richard Biener <rguenther@suse.de>
6934 * tree-cfg.c (move_stmt_op): Fix condition under which to update
6936 (move_stmt_r): Remove redundant checking.
6938 2013-04-29 Teresa Johnson <tejohnson@google.com>
6941 * basic-block.h (apply_scale): New function.
6942 (apply_probability): Use apply_scale.
6943 * gimple-streamer-in.c (input_bb): Ditto.
6944 * lto-streamer-in.c (input_cfg): Ditto.
6945 * lto-cgraph.c (merge_profile_summaries): Ditto.
6946 * tree-optimize.c (execute_fixup_cfg): Ditto.
6947 * tree-inline.c (copy_bb): Update comment to use apply_scale.
6948 (copy_edges_for_bb): Ditto.
6949 (copy_cfg_body): Ditto.
6951 2013-04-29 Tom de Vries <tom@codesourcery.com>
6953 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6954 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6955 (tail_merge_optimize): Handle current_loops == NULL.
6957 2013-04-26 Jeff Law <law@redhat.com>
6959 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6960 (simplify_cond_using_ranges): Generalize code to simplify
6961 COND_EXPRs where one argument is a constant and the other
6962 is an SSA_NAME created by an integral type conversion.
6964 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6966 * config/arm/arm.md (store_minmaxsi): Use only when
6967 optimize_insn_for_size_p.
6969 2013-04-29 Christian Bruel <christian.bruel@st.com>
6972 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6974 2013-04-29 Richard Biener <rguenther@suse.de>
6977 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6978 loop tree make sure to schedule a fixup for the child as well.
6979 (expand_omp_for_generic): Properly add loops.
6980 (expand_omp_for_static_nochunk): Likewise.
6981 (expand_omp_for_static_chunk): Likewise.
6982 (expand_omp_for): For the degenerate case fixup loops.
6983 (expand_omp_sections): Fix default bb placement in loops.
6984 (expand_omp_atomic_pipeline): Properly add loops.
6986 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6988 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6990 2013-04-29 Tom de Vries <tom@codesourcery.com>
6992 * tree-ssa-tail-merge.c: Update header comment.
6994 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6996 * config/aarch64/arm_neon.h
6997 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6998 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6999 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
7000 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
7001 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
7002 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
7003 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
7004 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
7006 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7008 * config/aarch64/aarch64-simd.md
7009 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
7010 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
7011 fix_trunc, fixuns_trunc.
7012 (ftrunc<VDQF:mode>2): New.
7013 * config/aarch64/iterators.md (optab): Add fix, fixuns.
7014 (fix_trunc_optab): New.
7016 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7018 * config/aarch64/aarch64-builtins.c
7019 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
7020 iceilf, lround, iroundf.
7022 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
7025 * config/i386/i386.h (enum ix86_tune_indices)
7026 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
7027 New, split from X86_TUNE_INTER_UNIT_MOVES.
7028 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
7029 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
7030 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
7031 (TARGET_INTER_UNIT_MOVES): Remove.
7032 * config/i386/i386.c (initial_ix86_tune_features): Update.
7033 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
7034 (ix86_expand_convert_uns_didf_sse): Use
7035 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7036 (ix86_expand_vector_init_one_nonzero): Ditto.
7037 (ix86_expand_vector_init_interleave): Ditto.
7038 (inline_secondary_memory_needed): Return true for moves from SSE class
7039 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
7040 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
7041 * config/i386/constraints.md (Yi, Ym): Depend on
7042 TARGET_INTER_UNIT_MOVES_TO_VEC.
7043 (Yj, Yn): New constraints.
7044 * config/i386/i386.md (*movdi_internal): Change constraints of
7045 operand 1 from Yi to Yj and from Ym to Yn.
7046 (*movsi_internal): Ditto.
7047 (*movdf_internal): Ditto.
7048 (*movsf_internal): Ditto.
7049 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
7050 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7051 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
7052 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
7053 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
7054 * config/i386/sse.md (movdi_to_sse): Ditto.
7055 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
7056 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
7057 TARGET_INTER_UNIT_MOVES.
7058 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
7059 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
7060 instead of TARGET_INTER_UNIT_MOVES.
7061 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
7062 operand 1 from Yi to Yj and from Ym to Yn.
7064 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7066 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
7067 (float_truncate_hi_): Likewise.
7068 (float_extend_lo_): Likewise.
7069 (float_truncate_lo_): Likewise.
7070 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
7071 (aarch64_float_extend_lo_v2df): Likewise.
7072 (vec_unpacks_hi_v4sf): Likewise.
7073 (aarch64_float_truncate_lo_v2sf): Likewise.
7074 (aarch64_float_truncate_hi_v4sf): Likewise.
7075 (vec_pack_trunc_v2df): Likewise.
7076 (vec_pack_trunc_df): Likewise.
7078 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7080 * config/aarch64/aarch64-builtins.c
7081 (aarch64_fold_builtin): Fold float conversions.
7082 * config/aarch64/aarch64-simd-builtins.def
7083 (floatv2si, floatv4si, floatv2di): New.
7084 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
7085 * config/aarch64/aarch64-simd.md
7086 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
7087 * config/aarch64/iterators.md (FLOATUORS): New.
7088 (optab): Add float, floatuns.
7089 (su_optab): Likewise.
7091 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7093 * config/aarch64/aarch64-builtins.c
7094 (aarch64_builtin_vectorized_function): Use new names for
7096 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
7097 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
7098 (fcvtzu): Split as...
7099 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
7100 (fcvtas): Split as...
7101 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
7102 (fcvtau): Split as...
7103 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
7104 (fcvtps): Split as...
7105 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
7106 (fcvtpu): Split as...
7107 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
7108 (fcvtms): Split as...
7109 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
7110 (fcvtmu): Split as...
7111 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
7112 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
7113 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
7114 (lfrintnusf, lfrintnudf): Likewise.
7115 * config/aarch64/aarch64-simd.md
7116 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
7118 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
7119 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
7120 (fcvt_pattern): Likewise.
7122 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7124 * config/aarch64/aarch64-simd.md
7125 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7126 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7128 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7130 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7131 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7132 (vrnd<a,m,n,p>_f32): Implement using builtins.
7133 (vrnd<i,x><q>_f<32, 64>): New.
7135 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7137 * config/aarch64/aarch64-builtins.c
7138 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7139 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7140 (frintz): Rename to...
7142 (frintp): Rename to...
7144 (frintm): Rename to...
7146 (frinti): Rename to...
7147 (nearbyint): ...this.
7148 (frintx): Rename to...
7150 (frinta): Rename to...
7152 * config/aarch64/aarch64-simd.md
7153 (aarch64_frint<frint_suffix><mode>): Delete.
7154 (<frint_pattern><mode>2): Convert to insn.
7155 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7156 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7157 (frint_pattern): Likewise.
7158 (frint_suffix): Likewise.
7160 2013-04-29 Richard Biener <rguenther@suse.de>
7162 PR tree-optimization/57081
7163 * loop-init.c: Include tree-flow.h.
7164 (loop_optimizer_finalize): Free number of iteration estimates.
7165 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7167 2013-04-29 Jakub Jelinek <jakub@redhat.com>
7169 PR tree-optimization/57083
7170 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7171 non-singleton shift count range, zero extend low_bound for uns case.
7173 * config/i386/predicates.md (general_vector_operand): New predicate.
7174 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7175 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7176 if they aren't nonimmediate operands. If their original values
7177 satisfy const_vector_equal_evenodd_p, don't shift them.
7178 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7179 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7180 if not nonimmediate_operand.
7181 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7182 instead of register_operand.
7183 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7185 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
7187 * stor-layout.c (finalize_size_functions): Allocate a structure and
7188 reset cfun before dumping the functions.
7190 2013-04-27 Jakub Jelinek <jakub@redhat.com>
7192 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7195 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7196 use xop_pmacsdqh if uns_p.
7197 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7198 the immediate rotate count.
7200 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7202 * rtl.h (struct rtx_def): Add comment for field jump.
7203 (LRA_SUBREG_P): New macro.
7204 * recog.c (register_operand): Check LRA_SUBREG_P.
7205 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7207 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7208 (lra_final_code_change): Skip subreg change for operators.
7209 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7210 if there are no operand changes.
7211 * lra-constraints.c (curr_insn_set): New.
7212 (match_reload): Set LRA_SUBREG_P.
7213 (emit_spill_move): Ditto.
7214 (check_and_process_move): Use curr_insn_set. Process only single
7215 set insns. Don't initialize sec_mem_p and change_p.
7216 (simplify_operand_subreg): Use LRA_SUBREG_P.
7217 (reg_in_class_p): New function.
7218 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7219 of #ifdef. Add code to remove cycling.
7220 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7221 non-null disp. Reload inner instead of disp when base and index
7222 are null. Try to put lo_sum into register.
7223 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7224 (check_and_process_move): Move code for move cost check to
7225 simple_move_p. Remove equiv_substitution.
7226 (simple_move_p): New function.
7227 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7228 curr_insn_set. Call check_and_process_move only for single set
7229 insns. Use the new function. Move call of check_and_process_move
7230 after operand equiv substitution and address process.
7232 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7235 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7236 with nonlocal goto receivers or returns twice calls, ignore
7237 unininitialized values from abnormal edges to nl goto receiver
7238 or returns twice call.
7240 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7242 PR tree-optimization/57051
7243 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7244 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7247 2013-04-26 Richard Biener <rguenther@suse.de>
7249 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7250 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7251 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7252 (fixup_loop_arrays_after_move): New function.
7253 (move_sese_region_to_fn): Properly outline the loop tree parts
7256 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
7258 * config/i386/i386.md (type, unit): Fix long lines.
7260 2013-04-26 Richard Biener <rguenther@suse.de>
7262 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7263 (lto-streamer-out.o): Likewise.
7264 * cfgloop.c (init_loops_structure): Export, add struct function
7265 argument and adjust.
7266 (flow_loops_find): Adjust.
7267 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7268 (init_loops_structure): Declare.
7269 * lto-streamer-in.c: Include cfgloop.h.
7270 (input_cfg): Input the loop tree.
7271 * lto-streamer-out.c: Include cfgloop.h.
7272 (output_cfg): Output the loop tree.
7273 (output_struct_function_base): Do not drop PROP_loops.
7275 2013-03-26 Richard Biener <rguenther@suse.de>
7277 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7278 (pass_build_cfg): Provide PROP_loops.
7279 (move_sese_region_to_fn): Remove loops that are outlined into fn
7281 * tree-inline.c: Include cfgloop.h.
7282 (initialize_cfun): Do not drop PROP_loops.
7283 (copy_loops): New function.
7284 (copy_cfg_body): Copy loop structure.
7285 (tree_function_versioning): Initialize destination loop tree.
7286 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7287 (pass_parallelize_loops): Do IL verification.
7288 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7289 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7290 the CFG make sure we fixup loops as well.
7291 * tree-ssa-tail-merge.c: Include cfgloop.h.
7292 (replace_block_by): When merging loop latches mark loops for fixup.
7293 * lto-streamer-out.c (output_struct_function_base): Drop
7295 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7296 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7297 * ipa-split.c: Include cfgloop.h.
7298 (split_function): Add the new return block to the loop tree root.
7299 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7300 whether we have removed the forwarder block.
7301 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7302 * cfgloop.h (place_new_loop): Declare.
7303 * cfgloopmanip.c (place_new_loop): Export.
7304 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7305 (tree-switch-conversion.o): Likewise.
7306 (tree-complex.o): Likewise.
7307 (tree-inline.o): Likewise.
7308 (tree-ssa-tailmerge.o): Likewise.
7309 (ipa-split.o): Likewise.
7310 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7311 (tree-ssa-copy.o): Likewise.
7312 * tree-switch-conversion.c: Include cfgloop.h
7313 (process_switch): If we emit a bit-test cascade, schedule loops
7315 * tree-complex.c: Include cfgloop.h.
7316 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7317 * asan.c: Include cfgloop.h.
7318 (create_cond_insert_point): Properly add new basic-blocks to
7319 loops, schedule loop fixup.
7320 * cfgloop.c (verify_loop_structure): Check that looks are not
7322 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7324 (expand_omp_for_generic): Likewise.
7325 (expand_omp_sections): Likewise.
7326 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7327 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7328 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7329 is initialized, not when loops are present.
7330 * tree-parloops.c (parallelize_loops): Remove checking here.
7331 * passes.c (init_optimization_passes): Schedule a copy-propagation
7332 pass before complete unrolling of inner loops.
7334 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7336 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7337 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7338 (colorize_init): Add argument to _WIN32 version.
7339 * toplev.c: Include diagnostic-color.h.
7340 (process_options): Default to -fdiagnostics-color=auto if
7341 GCC_COLORS env var is in the environment.
7342 * common.opt (fdiagnostics-color=): Add Var and Init.
7343 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7344 env var is in the environment, the default is auto rather than never.
7346 * diagnostic.h (file_name_as_prefix): Add context argument.
7347 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7348 the string as locus.
7349 * langhooks.c (lhd_print_error_function): Adjust caller.
7351 2013-04-25 Lawrence Crowl <crowl@google.com>
7353 * var-tracking.c (shared_hash_def::htab):
7354 Change type to hash_table. Update dependent calls and types.
7356 2013-04-25 Lawrence Crowl <crowl@google.com>
7358 * Makefile.in: Update as needed below.
7360 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7361 Move declaration to after the type's method definitons.
7363 * attribs.c (htab_t scoped_attributes::attribute_hash):
7364 Change type to hash_table. Update dependent calls and types.
7366 * bitmap.c (htab_t bitmap_desc_hash):
7367 Change type to hash_table. Update dependent calls and types.
7369 * cselib.c (htab_t cselib_hash_table):
7370 Change type to hash_table. Update dependent calls and types.
7372 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7373 (hash_string_slot_node): Move implementation into lto-streamer.h
7374 struct string_slot_hasher.
7375 (eq_string_slot_node): Likewise.
7377 * data-streamer-out.c: Update output_block::string_hash_table
7378 dependent calls and types.
7380 * dwarf2cfi.c (htab_t trace_index):
7381 Change type to hash_table. Update dependent calls and types.
7383 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7384 Change type to hash_table. Update dependent calls and types.
7385 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7386 (htab_t optimize_external_refs::map): Likewise.
7387 (htab_t output_comp_unit::extern_map): Likewise.
7388 (htab_t output_comdat_type_unit::extern_map): Likewise.
7389 (htab_t output_macinfo::macinfo_htab): Likewise.
7390 (htab_t optimize_location_lists::htab): Likewise.
7391 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7393 * except.c (htab_t ehspec_hash_type):
7394 Change type to hash_table. Update dependent calls and types.
7395 (assign_filter_values::ttypes): Likewise.
7396 (assign_filter_values::ehspec): Likewise.
7397 (sjlj_assign_call_site_values::ar_hash): Likewise.
7398 (convert_to_eh_region_ranges::ar_hash): Likewise.
7400 * gcse.c (htab_t pre_ldst_table):
7401 Change type to hash_table. Update dependent calls and types.
7403 * ggc-common.c (htab_t saving_htab):
7404 Change type to hash_table. Update dependent calls and types.
7405 (htab_t loc_hash): Likewise.
7406 (htab_t ptr_hash): Likewise.
7407 (call_count): Rename ggc_call_count.
7408 (call_alloc): Rename ggc_call_alloc.
7409 (loc_descriptor): Rename make_loc_descriptor.
7410 (add_statistics): Rename ggc_add_statistics.
7412 * ggc-common.c (saving_htab):
7413 Change type to hash_table. Update dependent calls and types.
7415 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7416 (push_gimplify_context): Likewise.
7417 (pop_gimplify_context): Likewise.
7418 (struct gimple_temp_hash_elt): Added.
7419 (struct gimplify_hasher): Likewise.
7420 (struct gimplify_ctx.temp_htab):
7421 Change type to hash_table. Update dependent calls and types.
7423 * gimple-fold.c: Include gimplify-ctx.h.
7425 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7426 Change type to hash_table. Update dependent calls and types.
7427 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7428 avoid potential global name collision.
7430 * gimplify.c: Include gimplify-ctx.h.
7431 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7432 (htab_t gimplify_ctx::temp_htab):
7433 Update dependent calls and types for new type hash_table.
7434 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7435 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7437 * gimplify-ctx.h: New.
7438 (struct gimple_temp_hash_elt): Move from gimplify.c.
7439 (class gimplify_hasher): New.
7440 (struct gimplify_ctx): Move from gimple.h.
7441 (htab_t gimplify_ctx::temp_htab):
7442 Change type to hash_table. Update dependent calls and types.
7444 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7445 (htab_t ivs_params::newivs_index):
7446 Change type to hash_table. Update dependent calls and types.
7447 (htab_t ivs_params::params_index): Likewise.
7448 (htab_t print_generated_program::params_index): Likewise.
7449 (htab_t gloog::newivs_index): Likewise.
7450 (htab_t gloog::params_index): Likewise.
7452 * graphite.c: Include graphite-htab.h.
7453 4htab_t graphite_transform_loops::bb_pbb_mapping):
7454 Change type to hash_table. Update dependent calls and types.
7456 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7457 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7458 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7460 * graphite-dependences.c: Include graphite-htab.h.
7461 (loop_is_parallel_p): Change hash table type of parameter.
7463 * graphite-htab.h: New.
7464 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7465 (extern find_pbb_via_hash): Move from graphite-poly.h.
7466 (extern loop_is_parallel_p): Move from graphite-poly.h.
7467 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7469 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7470 (extern loop_is_parallel_p): Move to graphite-htab.h.
7471 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7473 * haifa-sched.c (htab_t delay_htab):
7474 Change type to hash_table. Update dependent calls and types.
7475 (htab_t delay_htab_i2): Likewise.
7477 * ira-color.c (htab_t allocno_hard_regs_htab):
7478 Change type to hash_table. Update dependent calls and types.
7480 * ira-costs.c (htab_t cost_classes_htab):
7481 Change type to hash_table. Update dependent calls and types.
7483 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7484 Change type to hash_table. Update dependent calls and types.
7486 * loop-iv.c (htab_t bivs):
7487 Change type to hash_table. Update dependent calls and types.
7489 * loop-unroll.c (htab_t opt_info::insns_to_split):
7490 Change type to hash_table. Update dependent calls and types.
7491 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7493 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7494 (struct string_slot_hasher): New.
7495 (htab_t output_block::string_hash_table):
7496 Change type to hash_table. Update dependent calls and types.
7498 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7499 (htab_t file_name_hash_table):
7500 Change type to hash_table. Update dependent calls and types.
7502 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7505 * lto-streamer.c (htab_t tree_htab):
7506 Change type to hash_table. Update dependent calls and types.
7508 * omp-low.c: Include gimplify-ctx.h.
7510 * passes.c (htab_t name_to_pass_map):
7511 Change type to hash_table. Update dependent calls and types.
7512 (pass_traverse): Rename to passes_pass_traverse.
7514 * plugin.c (htab_t event_tab):
7515 Change type to hash_table. Update dependent calls and types.
7517 * postreload-gcse.c (htab_t expr_table):
7518 Change type to hash_table. Update dependent calls and types.
7519 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7521 * sese.c (debug_rename_map_1): Make extern.
7522 (htab_t copy_bb_and_scalar_dependences::rename_map):
7523 Change type to hash_table. Update dependent calls and types.
7525 * sese.h (extern debug_rename_map): Move to .c file.
7527 * store-motion.c (htab_t store_motion_mems_table):
7528 Change type to hash_table. Update dependent calls and types.
7530 * trans-mem.c (htab_t tm_new_mem_hash):
7531 Change type to hash_table. Update dependent calls and types.
7533 * tree-browser.c (htab_t TB_up_ht):
7534 Change type to hash_table. Update dependent calls and types.
7536 * tree-cfg.c (htab_t discriminator_per_locus):
7537 Change type to hash_table. Update dependent calls and types.
7539 * tree-complex.c: Include tree-hasher.h
7540 (htab_t complex_variable_components):
7541 Change type to hash_table. Update dependent calls and types.
7543 * tree-eh.c (htab_t finally_tree):
7544 Change type to hash_table. Update dependent calls and types.
7546 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7547 struct int_tree_hasher.
7548 (extern int_tree_map_eq): Likewise.
7549 (uid_decl_map_hash): Removed.
7550 (extern decl_tree_map_eq): Likewise.
7552 * tree-hasher.h: New.
7553 (struct int_tree_hasher): New.
7554 (typedef int_tree_htab_type): New.
7556 * tree-inline.c: Include gimplify-ctx.h.
7558 * tree-mudflap.c: Include gimplify-ctx.h.
7560 * tree-parloops.c: Include tree-hasher.h.
7561 (htab_t eliminate_local_variables_stmt::decl_address):
7562 Change type to hash_table. Update dependent calls and types.
7563 (htab_t separate_decls_in_region::decl_copies): Likewise.
7565 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7566 Change type to hash_table. Update dependent calls and types.
7568 * tree-sra.c (candidates):
7569 Change type to hash_table. Update dependent calls and types.
7571 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7573 (int_tree_map_hash): Likewise.
7575 * tree-ssa-dom.c (htab_t avail_exprs):
7576 Change type to hash_table. Update dependent calls and types.
7578 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7579 Change type to hash_table. Update dependent calls and types.
7581 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7582 Change type to hash_table. Update dependent calls and types.
7584 * tree-ssa-phiopt.c (seen_ssa_names):
7585 Change type to hash_table. Update dependent calls and types.
7587 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7588 Change type to hash_table. Update dependent calls and types.
7590 * tree-ssa-uncprop.c (equiv):
7591 Change type to hash_table. Update dependent calls and types.
7593 2013-04-25 Jakub Jelinek <jakub@redhat.com>
7595 PR rtl-optimization/57003
7596 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7597 call note_stores with kill_clobbered_value callback again after
7598 killing regs_invalidated_by_call.
7600 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7602 * config/aarch64/aarch64-simd.md
7603 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7604 (aarch64_simd_bsl<mode>): Likewise.
7605 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7607 2013-04-25 Marek Polacek <polacek@redhat.com>
7609 PR tree-optimization/57066
7610 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7612 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7614 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7616 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7618 * config/aarch64/aarch64-builtins.c
7619 (aarch64_fold_builtin): New.
7620 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7621 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7622 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7623 * config/aarch64/arm_neon.h
7624 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7626 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7627 Tejas Belagod <tejas.belagod@arm.com>
7629 * config/aarch64/aarch64-builtins.c
7630 (aarch64_gimple_fold_builtin): New.
7631 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7632 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7633 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7635 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7637 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7639 * config/aarch64/aarch64.md
7640 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7642 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7644 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7645 (*ngcsi_uxtw): New pattern.
7647 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7648 Julian Brown <julian@codesourcery.com>
7650 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7651 (TB_DREG): Add T_V4HF.
7652 (v4hf_UP): New macro.
7653 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7654 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7655 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7657 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7658 (arm_vector_mode_supported_p): Handle V4HF.
7659 (arm_mangle_map): Handle V4HFmode.
7660 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7661 * config/arm/arm_neon_builtins.def: Add entries for
7662 vcvtv4hfv4sf, vcvtv4sfv4hf.
7663 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7664 (neon_vcvtv4hfv4sf): Likewise.
7665 * config/arm/neon-gen.ml: Handle half-precision floating point
7667 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7668 * config/arm/arm_neon.h: Regenerate.
7669 * config/arm/neon.ml (type elts): Add F16.
7670 (type vectype): Add T_float16x4, T_floatHF.
7671 (type vecmode): Add V4HF.
7672 (type features): Add Requires_FP_bit feature.
7673 (elt_width): Handle F16.
7674 (elt_class): Likewise.
7675 (elt_of_class_width): Likewise.
7676 (mode_of_elt): Refactor.
7677 (type_for_elt): Handle F16, fix error messages.
7678 (vectype_size): Handle T_float16x4.
7679 (vcvt_sh): New function.
7680 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7681 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7682 (string_of_mode): Handle V4HF.
7683 * doc/arm-neon-intrinsics.texi: Regenerate.
7685 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7687 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7688 format specifier in 'X' case.
7690 2013-04-25 Alan Modra <amodra@gmail.com>
7693 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7694 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7695 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7696 Repeat for many other rotate/shift and mask patterns using subregs.
7697 Name lshiftrt insns.
7698 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7699 on WORDS_BIG_ENDIAN.
7701 2013-04-25 Alan Modra <amodra@gmail.com>
7703 * config.gcc: Support little-endian powerpc-linux targets.
7704 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7705 (LINK_OS_LINUX_SPEC): Define.
7706 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7707 Preserve MASK_LITTLE_ENDIAN.
7708 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7709 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7710 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7711 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7712 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7713 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7714 Correct fp word order for little-endian. Don't shift toc entries
7715 smaller than a word for little-endian.
7716 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7717 (bswapdi2 splits): Correct low-part subreg for little-endian.
7718 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7719 low/high where such is correct only for be.
7720 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7721 little-endian for -mcall-aixdesc.
7723 2013-04-25 Alan Modra <amodra@gmail.com>
7725 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7726 replace_equiv_address_nv.
7728 2013-04-25 Alan Modra <amodra@gmail.com>
7730 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7732 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7735 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7736 * rtl.h (struct rtx_def): ...
7738 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7740 PR rtl-optimizations/57046
7741 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7742 for multi-reg splits.
7744 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7746 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7748 2013-04-24 Sterling Augustine <saugustine@google.com>
7750 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7751 (comp_dir_string, debug_str_dwo_section): New.
7752 (DEBUG_STR_DWO_SECTION): Rename to ...
7753 (DEBUG_DWO_STR_SECTION): ... this.
7754 (DEBUG_NORM_STR_SECTION): Delete.
7755 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7756 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7757 (find_AT_string): Move most logic to ...
7758 (find_AT_string_in_table): ... here. New.
7759 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7760 add_skeleton_AT_string. Delete logic.
7761 (output_skeleton_debug_sections): Remove call to
7762 add_top_level_skeleton_die_attrs.
7763 (add_comp_dir_attribute): Move logic to comp_dir_string.
7764 (dwarf2out_init): Initialize debug_str_dwo_section.
7765 (output_indirect_string): Call find_string_form.
7766 (output_indirect_strings): Rewrite.
7767 (prune_unused_types): Empty skeleton_debug_str_hash.
7768 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7769 (dwarf2out_finish): Call output_indirect_strings.
7771 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7773 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7775 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7777 * rtl.h (struct rtx_def): Add comment for field jump.
7778 (LRA_SUBREG_P): New macro.
7779 * recog.c (register_operand): Check LRA_SUBREG_P.
7780 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7782 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7783 (lra_final_code_change): Skip subreg change for operators.
7784 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7785 if there are no operand changes.
7786 * lra-constraints.c (curr_insn_set): New.
7787 (match_reload): Set LRA_SUBREG_P.
7788 (emit_spill_move): Ditto.
7789 (check_and_process_move): Use curr_insn_set. Process only single
7790 set insns. Don't initialize sec_mem_p and change_p.
7791 (simplify_operand_subreg): Use LRA_SUBREG_P.
7792 (reg_in_class_p): New function.
7793 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7794 of #ifdef. Add code to remove cycling.
7795 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7796 non-null disp. Reload inner instead of disp when base and index
7797 are null. Try to put lo_sum into register.
7798 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7799 (check_and_process_move): Move code for move cost check to
7800 simple_move_p. Remove equiv_substitution.
7801 (simple_move_p): New function.
7802 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7803 curr_insn_set. Call check_and_process_move only for single set
7804 insns. Use the new function. Move call of check_and_process_move
7805 after operand equiv substitution and address process.
7807 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7809 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7810 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7811 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7813 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7815 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7817 2013-04-24 Marek Polacek <polacek@redhat.com>
7819 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7820 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7821 (select_loops_exit_conditions): Likewise.
7822 (number_of_iterations_for_all_loops): Likewise.
7823 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7824 (scev_analysis): Likewise.
7826 2013-04-02 Catherine Moore <clm@codesourcery.com>
7827 Chao-ying Fu <fu@mips.com>
7829 * config/mips/micromips.md (jraddiusp): New pattern.
7830 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7831 instruction if possible.
7833 2013-04-24 Alan Modra <amodra@gmail.com>
7835 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7837 2013-04-24 Julian Brown <julian@codesourcery.com>
7838 Chung-Lin Tang <cltang@codesourcery.com>
7840 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7841 dependency behavior in enumeration type DIE generation. Add TODO note
7842 to comments about future DW_FORM_sdata/udata re-work of related code.
7844 2013-04-23 Lawrence Crowl <crowl@google.com>
7846 * Makefile.in: Update as needed below.
7848 * hash-table.h (class hash_table):
7849 Correct many methods with parameter types compare_type to the correct
7850 value_type. (Correct code was unlikely to notice the change.)
7851 (hash_table::elements_with_deleted) New.
7852 (class hashtable::iterator): New.
7853 (hashtable::begin()): New.
7854 (hashtable::end()): New.
7855 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7857 * statistics.c (statistics_hashes):
7858 Change type to hash_table. Update dependent calls and types.
7860 * tree-into-ssa.c (var_infos):
7861 Change type to hash_table. Update dependent calls and types.
7863 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7864 Change type to hash_table. Update dependent calls and types.
7866 * tree-ssa-loop-im.c (struct mem_ref.refs):
7867 Change type to hash_table. Update dependent calls and types.
7869 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7870 Change type to hash_table. Update dependent calls and types.
7872 * tree-ssa-sccvn.c (vn_tables_s::nary):
7873 Change type to hash_table. Update dependent calls and types.
7874 (vn_tables_s::phis): Likewise.
7875 (vn_tables_s::references): Likewise.
7877 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7878 (vn_reference_eq): Update parameter and return types.
7880 * tree-ssa-structalias.c (pointer_equiv_class_table):
7881 Change type to hash_table. Update dependent calls and types.
7882 (location_equiv_class_table): Likewise.
7884 * tree-vect-data-refs.c: Consequential changes for making
7885 peeling a hash_table.
7887 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7888 (destroy_loop_vec_info): Dependent hash_table update.
7890 * tree-vectorizer.h (peeling_htab):
7891 Change type to hash_table. Update dependent calls and types.
7893 2013-04-23 Shiva Chen <shiva0217@gmail.com>
7895 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7896 to check the register content is equal or not.
7897 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7898 to assign register content record.
7899 * lra-eliminations.c (update_reg_eliminate): Use
7900 lra_update_reg_val_offset to update register content offset.
7901 * lra-int.h (struct lra_reg): Add offset member.
7902 (lra_reg_val_equal_p): New static inline function.
7903 (lra_update_reg_val_offset): New static inline function.
7904 (lra_assign_reg_val): New static inline function.
7905 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7906 to assign register content record.
7907 (initialize_lra_reg_info_element): Initial offset to zero.
7909 2013-04-23 Catherine Moore <clm@codesourcery.com>
7911 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7912 operands. Record compression.
7914 2013-04-23 Xinliang David Li <davidxl@google.com>
7916 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7918 2013-04-23 Richard Biener <rguenther@suse.de>
7921 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7922 parameter, only add abnormal goto edges from the copied body
7923 if the call could perform abnormal gotos.
7924 (copy_cfg_body): Adjust.
7926 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
7928 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7930 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
7932 * coretypes.h (gimple_stmt_iterator): Add struct to make
7935 2013-04-23 Richard Biener <rguenther@suse.de>
7937 PR tree-optimization/57026
7938 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7939 from SSA names occuring in abnormal PHI nodes.
7941 2013-04-22 Andi Kleen <ak@linux.intel.com>
7943 * lto/lto.c (print_lto_report_1): Fix LTO report names.
7945 2013-04-22 Andi Kleen <ak@linux.intel.com>
7947 * lto/lto.c (print_lto_report_1): Declare early.
7948 (read_cgraph_and_symbols): Call print_lto_report_1 early.
7950 2013-04-22 Andi Kleen <ak@linux.intel.com>
7952 * common.opt (-flto-report-wpa): Add.
7953 * doc/invoke.texi (-flto-report-wpa): Add.
7954 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7957 2013-04-22 Xinliang David Li <davidxl@google.com>
7959 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7960 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7961 * Makefile.in: New dependency
7963 David Daney <ddaney.cavm@gmail.com>
7965 * configure.ac (gcc_cv_as_micromips_support): Use the
7966 --fatal-warnings option.
7967 * configure: Regenerate.
7969 2013-04-22 Marek Polacek <polacek@redhat.com>
7972 * tsan.c (instrument_expr): Don't instrument expression
7973 in case its size is zero.
7975 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
7979 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7981 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7983 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7985 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7986 (gimple_stmt_iterator): New typedef.
7987 * gimple.h (gimple_stmt_iterator): Rename to...
7988 (gimple_stmt_iterator_d): ... This.
7989 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7990 trees be valid for GIMPLE and GENERIC.
7991 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7992 * gimple-fold.c (gimple_fold_call): Call target hook
7993 gimple_fold_builtin.
7994 * hooks.c (hook_bool_gsiptr_false): New.
7995 * hooks.h (hook_bool_gsiptr_false): New.
7996 * target.def (fold_stmt): New.
7997 * doc/tm.texi: Regenerate.
7999 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
8002 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
8003 a set sp if no stack realignment.
8005 2013-04-22 Nick Clifton <nickc@redhat.com>
8007 * config.gcc (tilegx-linux): Extend extra_objs rather than
8009 (tilepro-linux): Likewise.
8011 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8013 * config/aarch64/aarch64-builtins.c
8015 (CF0, CF1, CF2, CF3, CF4, CF10): New.
8016 (VAR<1-12>): Add MAP parameter.
8017 (BUILTIN_*): Likewise.
8018 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
8019 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
8020 (aarch64_ushl_n<mode>): Likewise.
8021 (aarch64_sshr_n<mode>): Likewise.
8022 (aarch64_ushr_n<mode>): Likewise.
8023 (aarch64_<maxmin><mode>): Likewise.
8024 (aarch64_sqrt<mode>): Likewise.
8025 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
8026 (vshr<q>_n_*): Likewise.
8028 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8030 * config/aarch64/aarch64-builtins.c
8031 (aarch64_simd_builtin_type_mode): Handle SF types.
8033 (BUILTIN_GPF): Define.
8034 (aarch64_init_simd_builtins): Handle SF types.
8035 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
8038 * config/aarch64/aarch64-simd.md
8039 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
8040 (aarch64_frecpe<mode>): New.
8041 (aarch64_frecps<mode>): Likewise.
8042 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
8043 (v8type): Add frecp<esx>.
8044 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
8045 (aarch64_frecps<mode>): Likewise.
8046 * config/aarch64/iterators.md (FRECP): New.
8047 (frecp_suffix): Likewise.
8048 * config/aarch64/arm_neon.h
8049 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
8051 2013-04-22 Christian Bruel <christian.bruel@st.com>
8054 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
8055 (REG_CLASS_NAMES): Idem.
8056 (REG_CLASS_CONTENTS): Idem.
8057 (REGCLASS_HAS_FP_REG): Idem.
8058 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
8059 (sh_conditional_register_usage): Idem.
8061 2013-04-21 Jeff Law <law@redhat.com>
8063 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
8064 (ssa_forward_propagate_and_combine): Use it.
8066 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8068 * lra.c: Update the flow chart diagram.
8070 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8072 PR rtl-optimization/56847
8073 * lra-constraints.c (process_alt_operands): Discourage alternative
8074 with non-matche doffsettable memory constraint fro memory with
8077 2013-04-19 Richard Biener <rguenther@suse.de>
8079 PR tree-optimization/56982
8080 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
8082 * gimplify.c (gimplify_call_expr): Notice special calls.
8083 (gimplify_modify_expr): Likewise.
8084 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
8085 abnormal control flow receivers.
8086 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
8087 in the same way as cfun->has_nonlocal_labels.
8088 (gimple_purge_dead_abnormal_call_edges): Likewise.
8089 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
8090 receivers start a basic-block.
8092 2013-04-19 Richard Biener <rguenther@suse.de>
8094 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
8096 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
8097 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
8098 (SLP_TREE_LOAD_PERMUTATION): Add.
8099 (vect_transform_slp_perm_load): Adjust prototype.
8100 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
8101 (vect_free_slp_instance): Likewise.
8102 (vect_create_new_slp_node): Likewise.
8103 (vect_supported_slp_permutation_p): Remove.
8104 (vect_slp_rearrange_stmts): Adjust.
8105 (vect_supported_load_permutation_p): Likewise. Inline
8106 vect_supported_slp_permutation_p here.
8107 (vect_analyze_slp_instance): Compute load permutations per
8108 slp node instead of per instance.
8109 (vect_get_slp_defs): Adjust.
8110 (vect_transform_slp_perm_load): Likewise.
8111 (vect_schedule_slp_instance): Remove redundant code.
8112 (vect_schedule_slp): Remove hack for PR56270, add it ...
8113 * tree-vect-stmts.c (vectorizable_load): ... here, do not
8114 CSE loads for SLP. Adjust.
8116 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8118 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
8119 spelling in two comments.
8121 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8124 * config/arm/arm.c (load_multiple_sequence): Require SP
8125 as base register for loads if SP is in the register list.
8127 2013-04-19 Martin Jambor <mjambor@suse.cz>
8129 PR tree-optimization/56718
8130 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8131 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8132 and made public. Adjusted all callers.
8133 (ipa_intraprocedural_devirtualization): New function.
8134 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8135 (ipa_intraprocedural_devirtualization): Likewise.
8136 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8138 2013-04-19 Richard Biener <rguenther@suse.de>
8140 PR tree-optimization/57000
8141 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8143 2013-04-19 Terry Guo <terry.guo@arm.com>
8145 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8147 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8148 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8149 (cortex_m4_fmacs): Use new reservations.
8150 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8152 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8154 PR rtl-optimization/56999
8155 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8157 (lra_coalesce): Remove split_origin_bitmap and related code.
8158 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8159 ranges if necessary.
8161 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
8163 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8165 (ix86_expand_call): Remove clobbered_registers array and use
8166 x86_64_ms_sysv_extra_clobbered_registers instead.
8167 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8169 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8171 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8172 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8173 (*call_value_rex64_ms_sysv): Ditto.
8175 2013-04-18 Cary Coutant <ccoutant@google.com>
8177 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8178 parent instead of die_mark.
8180 2013-04-18 Diego Novillo <dnovillo@google.com>
8182 * gimple.c (create_gimple_tmp): New.
8183 (get_expr_type): New.
8184 (build_assign): New.
8185 (build_type_cast): New.
8186 * gimple.h (enum ssa_mode): Define.
8187 (gimple_seq_set_location): New.
8188 * asan.c (build_check_stmt): Change some gimple_build_* calls
8189 to use build_assign and build_type_cast.
8191 2013-04-18 Richard Biener <rguenther@suse.de>
8193 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8194 handle negative step. Remove redundant checks.
8195 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8196 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8197 for negative step and grouped loads fail to vectorize.
8199 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8201 * emit-rtl.c (reset_insn_used_flags): New function.
8202 (reset_all_used_flags): Use it.
8203 (verify_insn_sharing): New function.
8204 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8206 2013-04-18 Jakub Jelinek <jakub@redhat.com>
8208 PR tree-optimization/56984
8209 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8210 and (x >> M) >= N don't register any assertion if N << M is the
8213 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8215 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8216 do not delete_insn insns that have not yet been emitted, only
8217 unlink them with remove_insn.
8218 * df-scan.c (df_insn_delete): Revert r197492.
8220 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8222 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8223 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8225 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8227 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8228 define_insn_and_split.
8229 (and_scc,ior_scc,negscc): Likewise.
8230 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8232 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8234 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8235 can benefit from using a sequence of LDRD instructions in epilogue
8236 instead of a single LDM instruction.
8238 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8241 * doc/extend.texi: Fix typo.
8243 2013-04-17 Richard Biener <rguenther@suse.de>
8245 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8246 (vect_build_slp_tree): ... here.
8247 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8248 match. Remove special-casing of mismatched complex loads.
8249 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8250 re-try the match with swapped commutative operands.
8251 (vect_supported_load_permutation_p): Remove special-casing of
8252 mismatched complex loads.
8253 (vect_analyze_slp_instance): Adjust.
8255 2013-04-17 Richard Biener <rguenther@suse.de>
8257 PR rtl-optimization/56921
8258 * cfgloop.h (struct loop): Add simple_loop_desc member.
8259 (struct niter_desc): Mark with GTY(()).
8260 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8261 * loop-iv.c (get_simple_loop_desc): Likewise.
8262 (free_simple_loop_desc): Likewise.
8265 2013-04-16 Richard Biener <rguenther@suse.de>
8267 PR rtl-optimization/56921
8268 * loop-init.c (pass_rtl_move_loop_invariants): Add
8269 TODO_do_not_ggc_collect to todo_flags_finish.
8270 (pass_rtl_unswitch): Same.
8271 (pass_rtl_unroll_and_peel_loops): Same.
8272 (pass_rtl_doloop): Same.
8274 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8276 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8277 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8278 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8280 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8281 * tree-streamer.c (record_common_node): Adjust reference in comment.
8283 2013-04-17 Terry Guo <terry.guo@arm.com>
8285 * config/arm/cortex-m4.md: Add a new bypass.
8287 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8289 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8291 (*subs_<optab><mode>_multp2): New pattern.
8292 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8293 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8295 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8297 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8298 (*subs_mul_imm_<mode>): New pattern.
8300 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
8303 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8304 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8305 (vsx_movti_32bit): Change j->wa to O->wa.
8307 2013-04-16 Richard Biener <rguenther@suse.de>
8309 PR rtl-optimization/56921
8310 * loop-init.c (pass_rtl_move_loop_invariants): Add
8311 TODO_do_not_ggc_collect to todo_flags_finish.
8312 (pass_rtl_unswitch): Same.
8313 (pass_rtl_unroll_and_peel_loops): Same.
8314 (pass_rtl_doloop): Same.
8316 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
8318 * config/arm/arm.c (emit_multi_reg_push): New declaration
8319 for an existing function.
8320 (arm_emit_strd_push): New function.
8321 (arm_expand_prologue): Used here.
8322 (arm_emit_ldrd_pop): New function.
8323 (arm_expand_epilogue): Used here.
8324 (arm_get_frame_offsets): Update condition.
8325 (arm_emit_multi_reg_pop): Add a special case for load of a single
8326 register with writeback.
8328 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
8330 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8333 2013-04-16 Richard Biener <rguenther@suse.de>
8335 PR tree-optimization/56756
8336 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8337 (first_mem_ref_loc): New.
8338 (execute_sm): Place the load temporarily before a previous
8339 access instead of in the latch edge to ensure its SSA dependencies
8340 are defined at points dominating the load.
8342 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8344 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8345 correct fix by moving header and footer insn to the footer of
8346 the merged basic block. Clear BB_END of the merged-away block.
8349 * emit-rtl.c (make_note_raw): New function.
8350 (link_insn_into_chain): New static inline function.
8352 (add_insn_before, add_insn_after): Factor insn chain linking code...
8353 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8354 using link_insn_into_chain.
8355 (note_outside_basic_block_p): New helper function for emit_note_after
8356 and emit_note_before.
8357 (emit_note_after): Use nobb variant of add_insn_after if the note
8358 should not be contained in a basic block.
8359 (emit_note_before): Use nobb variant of add_insn_before if the note
8360 should not be contained in a basic block.
8361 (emit_note_copy): Use make_note_raw.
8362 (emit_note): Likewise.
8363 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8364 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8365 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8366 the moved barrier the tail of the basic block it follows.
8367 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8369 2013-04-15 Jakub Jelinek <jakub@redhat.com>
8371 PR tree-optimization/56962
8372 * gimple-ssa-strength-reduction.c (record_increment): Only set
8373 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8374 either rhs1 or rhs2 is equal to c->base_expr.
8376 2013-04-15 Richard Biener <rguenther@suse.de>
8378 PR tree-optimization/56933
8379 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8381 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8382 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8383 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8384 dependence check ...
8385 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8387 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8388 GROUP_READ_WRITE_DEPENDENCE.
8390 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8392 * emit-rtl.c (reset_all_used_flags): New function.
8393 (verify_rtl_sharing): Call reset_all_used_flags before and after
8394 performing the checks.
8396 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8398 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8399 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8400 * config/arm/constraints.md (De): New constraint.
8401 * config/arm/neon.md (anddi3_neon): Delete.
8402 (neon_vand<mode>): Expand to standard anddi3 pattern.
8403 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8404 Move earlier in the file.
8405 (neon_inv_logic_op2): Likewise.
8406 (arm_anddi_operand_neon): New predicate.
8408 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8410 * configure.ac (gcc_cv_ld_as_needed): Set
8411 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8412 Use -z ignore, -z record on *-*-solaris2*.
8413 (HAVE_LD_AS_NEEDED): Update comment.
8414 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8415 * configure: Regenerate.
8416 * config.in: Regenerate.
8417 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8418 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8419 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8420 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8421 equivalents. Fix markup.
8422 * doc/tm.texi: Regenerate.
8424 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8426 * config/i386/i386.opt: New option mstack-protector-guard=.
8427 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8428 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8429 TARGET_SSP_TLS_GUARD.
8430 * config/i386/i386.c (ix86_option_override_internal): Set
8431 ix86_stack_protector_guard.
8432 * config/i386/i386.md (stack_protect_set): Enable for
8433 TARGET_SSP_TLS_GUARD only.
8434 (stack_protect_set_<mode>): Ditto.
8435 (stack_protect_test): Ditto.
8436 (stack_protect_test_<mode>): Ditto.
8437 * doc/invoke.texi (i386 Option): Document.
8439 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8442 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8443 (S_MODES): Set H_MODE bit.
8444 (SF_MODES): Set only S_MODE and SF_MODE bits.
8445 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8446 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8447 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8448 <MODE_FLOAT>: Likewise.
8450 2013-04-15 Joey Ye <joey.ye@arm.com>
8452 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8454 2013-04-15 Joey Ye <joey.ye@arm.com>
8456 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8458 (thumb_far_jump_used_p): Count instruction size and set
8461 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8463 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8464 * resource.c (mark_target_live_regs): Reformat conditional block.
8466 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8468 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8469 notes, they are emitted only just before final.
8470 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8472 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8474 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8475 * cfgrtl.c (delete_insn): Call it here instead.
8476 * lra-spills.c (lra_final_code_change): Use delete_insn.
8477 * haifa-sched.c (sched_remove_insn): Likewise.
8478 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8479 returning to the nop pool.
8480 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8481 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8483 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8485 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8486 * doc/tm.texi: Regenerated.
8488 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
8490 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8493 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8495 * df-core.c (df_find_def): Compare register numbers.
8496 (df_find_use): Likewise.
8498 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8501 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8502 lra_in_progress for return.
8504 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8506 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8507 define_insn into define_insn_and_split and emit movsicc patterns.
8509 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8511 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8513 2013-04-12 Richard Biener <rguenther@suse.de>
8515 * tree-pass.h (TODO_do_not_ggc_collect): New.
8516 * passes.c (execute_one_ipa_transform_pass): Honor
8517 TODO_do_not_ggc_collect.
8518 (execute_one_pass): Likewise.
8521 2013-04-10 Richard Biener <rguenther@suse.de>
8523 * passes.c (init_optimization_passes): Remove reload pass.
8524 * ira.c (do_reload): Merge into ...
8526 (rest_of_handle_reload): Remove.
8527 (pass_reload): Likewise.
8528 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8529 of reload for vzeroupper pass placement.
8531 2013-04-12 Jakub Jelinek <jakub@redhat.com>
8533 PR tree-optimization/56918
8534 PR tree-optimization/56920
8535 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8536 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8537 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8538 use wide_mul_with_sign method.
8540 2013-04-12 Richard Biener <rguenther@suse.de>
8542 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8543 not be considered a gimple constant.
8545 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
8547 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8548 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8551 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8552 Jakub Jelinek <jakub@redhat.com>
8554 * opts.c: Include diagnostic-color.h.
8555 (common_handle_option): Handle OPT_fdiagnostics_color_.
8556 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8557 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8558 (diagnostic-color.o): New.
8559 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8560 (diagnostic_color_rule): New enum.
8561 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8562 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8563 the location string.
8564 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8565 either NULL, or color kind.
8566 * diagnostic-color.c: New file.
8567 * diagnostic-color.h: New file.
8568 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8570 * doc/invoke.texi (-fdiagnostics-color): Document.
8571 * pretty-print.h (pp_show_color): Define.
8572 (struct pretty_print_info): Add show_color field.
8573 * diagnostic.c: Include diagnostic-color.h.
8574 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8575 macros. Colorize error:, warning: etc. strings and also the location
8577 (diagnostic_show_locus): Colorize the caret line.
8578 * pretty-print.c: Include diagnostic-color.h.
8579 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8580 inside of %< %> quotes or quoted through q format modifier.
8582 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8584 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8586 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8588 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8590 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8593 2013-04-11 Marek Polacek <polacek@redhat.com>
8595 PR tree-optimization/48184
8596 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8598 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8600 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8601 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8602 (skip_simple_arithmetic): Tidy up.
8603 * tree.h (skip_simple_constant_arithmetic): Declare.
8605 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8607 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8609 2013-04-11 Richard Biener <rguenther@suse.de>
8611 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8612 generate vector constants.
8614 2013-04-11 Richard Biener <rguenther@suse.de>
8616 PR tree-optimization/56878
8617 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8618 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8620 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8621 Prefer to align the DR with the most invariant base address.
8623 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8625 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8628 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8630 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8631 floating-point vector comparisons against 0.
8633 2013-04-11 Jakub Jelinek <jakub@redhat.com>
8635 PR tree-optimization/56899
8636 * fold-const.c (extract_muldiv_1): Apply distributive law
8637 only if TYPE_OVERFLOW_WRAPS (ctype).
8639 2013-04-11 Bin Cheng <bin.cheng@arm.com>
8642 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8643 loading has side effect.
8645 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8647 * config/sparc/sparc.c: Include tree-pass.h.
8648 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8649 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8650 head of file. Change return type. Split off gate function.
8651 (sparc_gate_work_around_errata): New function.
8652 (pass_work_around_errata): New pass definition.
8653 (insert_pass_work_around_errata) New pass insert definition to
8654 insert pass_work_around_errata just after delayed-branch scheduling.
8655 (sparc_option_override): Insert the pass.
8656 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8658 2013-04-10 David S. Miller <davem@davemloft.net>
8660 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8661 or -mcpu=hypersparc.
8663 * target.def (cstore_mode): New hook.
8664 * target.h: Include insn-codes.h
8665 * targhooks.c: Likewise.
8666 (default_cstore_mode): New function.
8667 * targhooks.h: Declare it.
8668 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8669 * doc/tm.texi: Rebuild.
8670 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8671 target hook, rather than inspecting the insn_data.
8672 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8673 (TARGET_CSTORE_MODE): Redefine.
8674 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8676 * config/sparc/predicates.md (cstore_result_operand): New special
8678 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8679 Use it for operand 0.
8680 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8681 (*snesi_special): Likewise.
8682 (*snesi_zero): Likewise.
8683 (*seqsi_zero): Likewise.
8684 (*sltu_insn): Likewise.
8685 (*sgeu_insn): Likewise.
8686 (*seqdi_special): Make operand 0 and comparison operation be of
8688 (*snedi_special): Likewise.
8689 (*snedi_special_vis3): Likewise.
8690 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8691 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8692 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8693 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8694 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8695 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8696 (*sltu_extend_sp64): Likewise.
8697 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8698 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8699 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8700 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8701 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8703 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8705 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8706 (aarch64_start_file): Use the new function.
8708 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8709 Jason Merrill <jason@redhat.com>
8711 * common.opt: Add -gdwarf.
8712 * opts.c (common_handle_option): Handle it.
8713 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8715 2013-04-10 Richard Biener <rguenther@suse.de>
8717 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8718 (execute_one_ipa_transform_pass): But unconditionally here.
8719 (execute_one_pass): And here.
8720 (init_optimization_passes): Remove reload pass.
8721 * tree-pass.h (TODO_ggc_collect): Remove.
8722 (pass_reload): Likewise.
8723 * ira.c (do_reload): Merge into ...
8725 (rest_of_handle_reload): Remove.
8726 (pass_reload): Likewise.
8727 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8728 of reload for vzeroupper pass placement.
8729 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8730 and todo_flags_finish of all passes.
8732 2013-04-10 Richard Biener <rguenther@suse.de>
8734 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8735 first_const_oprnd field, rename first_def_type to first_op_type.
8736 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8737 (vect_get_and_check_slp_defs): Always use the type of the
8738 operand. Allow mixed vect_external_def, vect_constant_def types.
8739 (vect_get_constant_vectors): Handle mixed vect_external_def,
8740 vect_constant_def types.
8742 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8744 PR tree-optimization/55524
8745 * tree-ssa-math-opts.c
8746 (convert_mult_to_fma): Don't use an fms construct
8747 when we don't have an fms operation, but fnma, and it looks
8748 likely that we'll be able to use the latter.
8750 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8752 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8754 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8755 inline fail caused by overwritable functions.
8757 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8759 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8760 unnecessary bits in the constant power of two case.
8762 2013-04-10 Richard Biener <rguenther@suse.de>
8764 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8765 broken code swapping operands.
8766 (vect_build_slp_tree): Do not compute load permutations here.
8767 (vect_analyze_slp_instance): Compute load permutations here,
8768 after building the SLP tree.
8770 2013-04-09 Christian Bruel <christian.bruel@st.com>
8772 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8773 of next/prev_real_insn.
8775 2013-04-09 Jan Hubicka <jh@suse.cz>
8777 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8778 Drop aliased parameter.
8779 (function_and_variable_visibility): Do not handle alias pairs.
8780 * cgraph.c (varpool_externally_visible_p): Update prototype.
8781 * varpool.c (varpool_add_new_variable): Update.
8783 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8785 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8787 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8789 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8791 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8793 2013-04-09 Marek Polacek <polacek@redhat.com>
8795 PR tree-optimization/48762
8796 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8798 2013-04-09 Richard Biener <rguenther@suse.de>
8800 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8802 (vect_build_slp_tree): Likewise.
8803 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8804 calculating the cost of a SLP instance.
8805 (vect_analyze_slp_instance): Use it from here, after building
8808 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8811 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8812 expand_omp_for_static_chunk): Use simple_p = true in
8813 force_gimple_operand_gsi calls when assigning to addressable decls.
8815 2013-04-09 Jeff Law <law@redhat.com>
8817 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8818 when the boolean was created by converting a wider object which
8819 had a boolean range.
8821 2013-04-09 Richard Biener <rguenther@suse.de>
8823 * tree-vectorizer.h (slp_void_p): Remove.
8824 (slp_tree): Typedef before _slp_tree declaration.
8825 (struct _slp_tree): Use a vector of slp_tree as children.
8826 (vect_get_place_in_interleaving_chain): Remove.
8827 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8829 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8831 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8832 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8833 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8834 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8835 Use slp_node instead of slp_void_p and adjust.
8837 2013-04-09 Richard Biener <rguenther@suse.de>
8839 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8840 work that is not necessary.
8842 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8844 PR tree-optimization/56854
8845 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8846 forward into clobber stmts if it would change MEM_REF lhs into
8849 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8851 * tree.c (type_hash_lookup, type_hash_add): Make static.
8852 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8854 2013-04-09 Richard Biener <rguenther@suse.de>
8856 * tree.h (unsave_expr_now): Remove.
8857 * tree-inline.c (mark_local_for_remap_r): Remove.
8858 (unsave_expr_1): Likewise.
8859 (unsave_r): Likewise.
8860 (unsave_expr_now): Likewise.
8861 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8862 (propagate_tree_value): Likewise.
8864 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8866 * doc/rtl.texi (sequence): Rewrite documentation to match the
8867 current use of SEQUENCE rtl objects.
8868 * rtl.def (SEQUENCE): Likewise.
8870 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8871 Update documentation.
8872 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8873 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8875 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8877 2013-04-08 Teresa Johnson <tejohnson@google.com>
8879 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8880 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8882 (estimate_edge_size_and_time): Add comment to suggest using rounding
8884 (estimate_node_size_and_time): Ditto.
8885 (remap_edge_change_prob): Use helper rounding divide methods.
8886 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8887 (gimple_mod_pow2_value_transform): Ditto.
8888 (gimple_mod_subtract_transform): Ditto.
8889 (gimple_ic_transform): Ditto.
8890 (gimple_stringops_transform): Ditto.
8891 * stmt.c (conditional_probability): Ditto.
8892 (emit_case_dispatch_table): Ditto.
8893 * lto-cgraph.c (merge_profile_summaries): Ditto.
8894 * tree-optimize.c (execute_fixup_cfg): Ditto.
8895 * cfgcleanup.c (try_forward_edges): Ditto.
8896 * cfgloopmanip.c (scale_loop_profile): Ditto.
8898 (duplicate_loop_to_header_edge): Ditto.
8899 (lv_adjust_loop_entry_edge): Ditto.
8900 * tree-vect-loop.c (vect_transform_loop): Ditto.
8901 * profile.c (compute_branch_probabilities): Ditto.
8902 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8903 * lto-streamer-in.c (input_cfg): Ditto.
8904 * gimple-streamer-in.c (input_bb): Ditto.
8905 * ipa-cp.c (update_profiling_info): Ditto.
8906 (update_specialized_profile): Ditto.
8907 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8908 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8910 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8911 (compute_trg_info): Ditto.
8912 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8913 (purge_dead_edges): Ditto.
8914 * loop-unswitch.c (unswitch_loop): Ditto.
8915 * cgraphclones.c (cgraph_clone_edge): Ditto.
8916 (cgraph_clone_node): Ditto.
8917 * tree-inline.c (copy_bb): Ditto.
8918 (copy_edges_for_bb): Ditto.
8919 (initialize_cfun): Ditto.
8920 (copy_cfg_body): Ditto.
8921 (expand_call_inline): Ditto.
8923 2013-04-08 Kai Tietz <ktietz@redhat.com>
8925 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8926 TARGET_CYGWIN64 by TARGET_64BIT.
8928 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8930 * config/epiphany/epiphany.md (GPR_1): New constant.
8931 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8932 * config/epiphany/epiphany.c (gen_compare_reg):
8933 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8934 is already in place.
8935 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8936 Don't require being called during rtl expansion; If y operlaps r0,
8938 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8939 (epiphany_expand_epilogue): Likewise.
8941 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8942 Don't use CC_FPmode for ORDERED / UNORDERED.
8943 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8945 * config/epiphany/constraints.md (CnL): New constraint.
8946 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8947 * config/epiphany/predicates.md (add_operand): Allow 1024.
8949 * config/epiphany/epiphany.md (logical_op): New code iterator.
8950 (op_mnc): New code attribute.
8951 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8952 (mov_f+1, mov_f+2): New peephole2 patterns.
8954 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8955 (cstoresi4): Also allow re-use of zero result when doing a NE
8956 comparison to a non-zero operand.
8957 Use (clobber (scratch)) for first insn if the gpr output is not needed.
8959 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8960 Use gen_addsi3_i / gen_subsi3_i.
8962 2013-04-08 Jakub Jelinek <jakub@redhat.com>
8966 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8967 contain anything but clobbers, at most one __builtin_stack_restore,
8968 optionally debug stmts and final resx, and if it has at least one
8969 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8970 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8971 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8972 which isn't defaut definition, remove them.
8973 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8974 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8975 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8976 with MEM_REF LHS with SSA_NAME address.
8978 2013-04-08 Jeff Law <law@redhat.com>
8980 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
8982 2013-04-08 Richard Biener <rguenther@suse.de>
8984 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8986 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8987 determined vector type.
8988 (vect_analyze_data_refs): Likewise.
8989 (vect_get_new_vect_var): Adjust.
8990 (vect_create_destination_var): Preserve SSA name versions.
8991 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8992 not dump anything here.
8994 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8996 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8997 Add member lr_slot_known.
8998 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
9000 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
9001 Remove code that sets lr_slot_offset according to what a previous
9002 version of epiphany_emit_save_restore used to do.
9003 (epiphany_emit_save_restore): When doing an lr save or restore,
9004 set/verify lr_slot_known and lr_slot_offset.
9006 2013-04-08 Xinyu Qi <xyqi@marvell.com>
9009 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
9012 2013-04-08 Richard Biener <rguenther@suse.de>
9014 * alias.c (find_base_term): Fix thinko in previous change.
9016 2013-04-08 Jakub Jelinek <jakub@redhat.com>
9018 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
9019 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
9020 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
9021 if possible to compute val.
9022 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
9023 For QImode integers don't require anything about precision. Use
9024 const_with_all_bytes_same to find out if the constant doesn't have
9025 repeated bytes in it.
9027 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9029 * config/s390/s390.c (s390_expand_insv): Only accept insertions
9032 2013-04-08 Marek Polacek <polacek@redhat.com>
9034 PR rtl-optimization/48182
9035 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
9038 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9041 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
9042 nuses, make sure we have a label.
9044 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9047 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
9048 (rs6000_emit_swdiv_low_precision): Remove.
9049 (rs6000_emit_swdiv): Rewrite to handle between one and four
9050 iterations of Newton-Raphson generally; modify required number of
9051 iterations for some cases.
9052 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
9054 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
9056 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
9057 set-but-unused variable.
9059 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
9060 basic blocks of released function bodies garbage-collectable.
9062 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
9063 (struct rtl_opt_pass): Add TODO_df_finish.
9065 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
9067 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9069 * config/arm/constraints.md (q): New constraint.
9070 * config/arm/ldrdstrd.md: New file.
9071 * config/arm/arm.md (ldrdstrd.md) New include.
9072 (arm_movdi): Use "q" instead of "r" constraint
9073 for double-word memory access.
9074 (movdf_soft_insn): Likewise.
9075 * config/arm/vfp.md (movdi_vfp): Likewise.
9076 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
9077 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
9078 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
9079 (mem_ok_for_ldrd_strd): Likewise.
9080 (output_move_double): Update assertion.
9082 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9084 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
9086 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9088 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
9089 define_insn_and_split.
9090 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
9092 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9094 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
9095 define_insn_and_split.
9096 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
9097 (shiftsi3_compare): New pattern.
9099 * config/arm/unspecs.md (UNSPEC_RRX): New.
9101 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9103 * config/arm/arm.md (negdi_extendsidi): New pattern.
9104 (negdi_zero_extendsidi): Likewise.
9106 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9108 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
9109 define_insn_and_split.
9110 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
9111 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
9113 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9115 * config/arm/arm.md (arm_subdi3): Convert define_insn into
9116 define_insn_and_split.
9117 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
9118 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
9120 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9122 * config/arm/arm.md (subsi3_carryin): New pattern.
9123 (subsi3_carryin_const): Likewise.
9124 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9125 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9127 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9129 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9131 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9133 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
9134 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
9136 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9138 * config/arm/arm.c (arm_expand_builtin): Change fcode
9139 type to unsigned int.
9141 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9143 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9145 2013-04-04 Ian Lance Taylor <iant@google.com>
9147 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9150 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9153 * df-scan.c (df_insn_delete): Disable failing assert.
9155 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9157 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9158 New function prototype.
9159 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9160 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9161 (arm_builtin_vectorized_function): New function.
9163 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9165 * config/arm/arm_neon_builtins.def: New file.
9166 * config/arm/arm.c (neon_builtin_data): Move contents to
9167 arm_neon_builtins.def.
9168 (enum arm_builtins): Include neon builtin definitions.
9169 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
9170 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
9172 2013-04-04 Marek Polacek <polacek@redhat.com>
9174 PR tree-optimization/48186
9175 * predict.c (maybe_hot_frequency_p): Return false if
9176 HOT_BB_FREQUENCY_FRACTION is 0.
9177 (cgraph_maybe_hot_edge_p): Likewise.
9179 2013-04-04 Richard Biener <rguenther@suse.de>
9181 PR tree-optimization/56826
9182 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9185 2013-04-04 Richard Biener <rguenther@suse.de>
9187 PR tree-optimization/56213
9188 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
9189 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
9191 2013-04-04 Richard Biener <rguenther@suse.de>
9193 PR tree-optimization/56837
9194 * tree-loop-distribution.c (classify_partition): For non-zero
9195 values require that the value has the same precision as its
9196 mode to be useful as memset value.
9198 2013-04-03 Nick Clifton <nickc@redhat.com>
9200 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
9201 (fmssf4): Use fmsf.s on E3V5 architectures.
9202 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9203 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9205 2013-04-03 Jeff Law <law@redhat.com>
9207 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9208 (lra-eliminations.o): Likewise.
9210 2013-04-03 Teresa Johnson <tejohnson@google.com>
9212 * gcov-io.c (compute_working_sets): Moved most of body of old
9213 compute_working_sets here from profile.c.
9214 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
9215 (gcov_working_set_t): Moved typedef here from basic-block.h
9216 (compute_working_set): Declare.
9217 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9218 (get_working_sets): Renamed from compute_working_set,
9219 replace most of body with call to new compute_working_sets.
9220 (get_exec_counts): Replace call to compute_working_sets
9221 to get_working_sets.
9222 * profile.h (get_working_sets): Renamed from compute_working_set.
9223 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
9224 to get_working_sets.
9225 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9226 * gcov-dump.c (dump_working_sets): New function.
9228 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9230 * hwint.c (sext_hwi, zext_hwi): New functions.
9231 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9232 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9233 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9234 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9235 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9236 (sext_hwi, zext_hwi): New functions.
9238 2013-04-03 Jeff Law <law@redhat.com>
9240 PR tree-optimization/56799
9241 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9242 back test for widening conversion erroneously dropped in prior change.
9244 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9247 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9248 instead of next_real_insn.
9250 2013-04-03 Marek Polacek <polacek@redhat.com>
9253 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
9255 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9258 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9260 (thumb1_output_casesi): Likewise.
9261 (thumb2_output_casesi): Likewise.
9263 2013-04-03 Richard Biener <rguenther@suse.de>
9265 PR tree-optimization/56817
9266 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9268 (tree_unroll_loops_completely_1): ... new function to manually
9269 walk the loop tree, properly defering outer loops of unrolled
9270 loops to later iterations.
9272 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9274 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9275 (vectorizable_load): Likewise.
9276 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9277 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9279 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9281 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9284 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9286 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9288 2013-04-03 Bin Cheng <bin.cheng@arm.com>
9290 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9292 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9294 PR tree-optimization/56790
9295 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9298 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9300 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9302 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9303 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9306 2013-04-03 Jakub Jelinek <jakub@redhat.com>
9309 * tree.h (force_folding_builtin_constant_p): New decl.
9310 * builtins.c (force_folding_builtin_constant_p): New variable.
9311 (fold_builtin_constant_p): Fold immediately also if
9312 force_folding_builtin_constant_p.
9314 2013-04-03 Richard Biener <rguenther@suse.de>
9316 PR tree-optimization/56812
9317 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9318 DRs of the same interleaving chain are independent.
9320 2013-04-02 Jason Merrill <jason@redhat.com>
9322 * gdbinit.in (pbb): Use debug fn.
9324 2013-04-02 Lawrence Crowl <crowl@google.com>
9326 * sese.h (struct ivtype_map_elt_s): Remove unused.
9327 (extern debug_ivtype_map): Remove unused.
9328 (extern eq_ivtype_map_elts): Remove unused.
9329 * sese.c (debug_ivtype_map): Removed unused.
9330 (debug_ivtype_map_1): Removed unused.
9331 (debug_ivtype_elt): Remove unused.
9332 (eq_ivtype_map_elts): Remove unused.
9335 2013-04-02 Kai Tietz <ktietz@redhat.com>
9338 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9339 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
9340 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9342 (legitimize_pe_coff_symbol): Likewise.
9343 (is_imported_p): New helper-function.
9344 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9345 for Windows x64 targets.
9346 (ix86_expand_prologue): Optimize for pe-coff targets.
9347 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9348 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9349 medium/large code-model.
9350 (legitimize_pic_address): Likewise.
9351 (legitimize_tls_address): Likewise.
9352 (ix86_expand_call): Likewise.
9353 (x86_output_mi_thunk): Likewise.
9354 (get_dllimport_decl): Add new beimport argument.
9355 (construct_plt_address): Don't assert for x64 pe-coff targets.
9356 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9358 (SYMBOL_FLAG_STUBVAR): New macro.
9359 (SYMBOL_REF_STUBVAR_P): Likewise.
9360 * config/i386/winnt.c (stub_list): New structure.
9361 (stub_head): New local variable.
9362 (i386_pe_record_stub): New function.
9363 (i386_pe_file_end): Emit refptr-stubs.
9365 2013-04-02 Jakub Jelinek <jakub@redhat.com>
9367 PR rtl-optimization/56745
9368 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9369 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9372 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9373 and both of them are MEM_REFs, just compare first argument for
9374 equality and attempt to deal even with differing offsets.
9377 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9378 of gimple_clobber_p to be MEM_REF.
9379 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9380 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9381 after gimplification.
9382 * asan.c (get_mem_ref_of_assignment): Don't instrument
9383 gimple_clobber_p stmts.
9384 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9385 gimple_clobber_p stmt if they have MEM_REF lhs and
9386 are dead because of another gimple_clobber_p stmt.
9387 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9388 gimple_clobber_p stmts like debug stmts.
9389 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9390 that refer to unused VAR_DECLs or uninitialized values.
9391 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9392 gimple_clobber_p stmts if they refer to removed parameters.
9393 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9396 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
9398 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9399 using SWI48 mode attribute.
9401 2013-04-02 Wei Mi <wmi@google.com>
9403 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9404 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9405 *<rotate_insn><mode>3_mask in i386.md.
9407 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9409 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9411 2013-04-02 Richard Biener <rguenther@suse.de>
9413 PR tree-optimization/56778
9414 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9415 Runtime alias tests are not supported for gather loads.
9416 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9417 stmts referenced from SSA operands before updating SSA form.
9419 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9420 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9422 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9423 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9424 * config/arm/cortex-a53.md: New file.
9425 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9426 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9427 * config/arm/arm.c (arm_issue_rate): Likewise.
9428 * config/arm/arm-tune.md: Regenerate
9429 * config/arm/arm-tables.opt: Regenerate.
9430 * config/arm/arm-cores.def: Add cortex-a53.
9432 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9434 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9437 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9439 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9440 scalar load/store operations using B/H registers.
9441 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9443 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9445 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9447 * config/aarch64/aarch64.c
9448 (aarch64_simd_scalar_immediate_valid_for_move): New.
9449 * config/aarch64/aarch64-protos.h
9450 (aarch64_simd_scalar_immediate_valid_for_move): New.
9451 * config/aarch64/constraints.md (Dh, Dq): New.
9452 * config/aarch64/iterators.md (hq): New.
9454 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9456 * reorg.c (get_branch_condition): Deal with conditional returns.
9457 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9459 2013-04-01 Wei Mi <wmi@google.com>
9461 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9462 Truncate operand 2 using %b asm operand modifier.
9463 (*<shift_insn><mode>3_mask): Ditto.
9464 (*<rotate_insn><mode>3_mask): Ditto.
9466 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9469 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9471 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9473 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9475 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9477 2013-03-30 Lawrence Crowl <crowl@google.com>
9479 * dse.c (clear_alias_sets): Remove never set.
9480 (disqualified_clear_alias_sets): Remove never set.
9481 (clear_alias_mode_pool): Remove never set.
9482 (dse_step0): Remove condition that is never true.
9483 (canon_address): Remove condition that is never true.
9484 (dse_step7): Remove condition that is never true.
9485 (rest_of_handle_dse): Remove condition that is never true.
9486 (rest_of_handle_dse::did_global): Remove never read from above.
9487 (dse_step2_spill): Remove never called from above.
9488 (dse_step5_spill): Remove never called from above.
9490 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9492 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9493 JUMP_TABLE_DATA changes.
9494 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9495 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9496 (Insns) <jump_table_data>: New entry.
9497 * doc/tm.texi: Regenerate.
9499 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9501 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9502 for table jump at the end of a basic block using tablejump_p.
9503 * targhooks.c (default_invalid_within_doloop): Likewise.
9504 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9505 target hook implementation that is identical to the default hook.
9506 (rs6000_invalid_within_doloop): Remove.
9508 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9509 unused variable from tablejump_p call.
9511 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9512 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9513 (INSN_DELETED_P): Likewise.
9514 (emit_jump_table_data): New prototype.
9515 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9516 after 4th as unused.
9517 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9518 * sched-vis.c (print_insn): Likewise.
9519 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9520 insn for compatibility with back ends that use next_active_insn to
9521 identify jump table data.
9522 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9523 (remove_insn): Likewise.
9524 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9526 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9527 (emit_jump_table_data): New function.
9529 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9530 basic block, a JUMP_TABLE_DATA never is.
9531 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9532 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9533 off from code handling real insns.
9534 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9535 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9536 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9537 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9538 is not a NONDEBUG_INSN_P.
9539 * ira-costs.c (scan_one_insn): Likewise.
9540 * jump.c (mark_all_labels): Likewise.
9541 (mark_jump_label_1): Likewise.
9542 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9543 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9545 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9546 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9547 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9548 JUMP_TABLE_DATA_P insns.
9549 (calculate_elim_costs_all_insns): Likewise.
9550 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9551 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9552 (delete_output_reload): Code style fixups.
9553 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9554 insn flags on this non-insn.
9555 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9556 as scheduling barriers, for pre-change compatibility.
9557 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9558 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9560 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9561 redundant JUMP_TABLE_DATA_P test.
9562 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9563 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9564 (frv_for_each_packet): Likewise.
9565 * config/i386/i386.c (min_insn_size): Likewise.
9566 (ix86_avoid_jump_mispredicts): Likewise.
9567 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9568 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9569 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9570 (mips16_insn_length): Robustify.
9571 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9572 (mips16_split_long_branches): Likewise.
9573 * config/pa/pa.c (pa_combine_instructions): Likewise.
9574 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9575 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9576 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9577 as contributing to pool range lengths.
9578 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9579 Remove redundant JUMP_TABLE_DATA_P test.
9580 (sh_loop_align): Likewise.
9581 (split_branches): Likewise.
9582 (sh_insn_length_adjustment): Likewise.
9583 * config/spu/spu.c (get_branch_target): Likewise.
9585 2013-03-29 Jan Hubicka <jh@suse.cz>
9587 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9588 gcov streaming; stream hot bb threshold to ltrans.
9589 * predict.c (get_hot_bb_threshold): Break out from ....
9590 (maybe_hot_count_p): ... here.
9591 (set_hot_bb_threshold): New function.
9592 * lto-section-in.c (lto_section_name): Add profile.
9593 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9594 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9596 (histogram_entry): New structure.
9597 (histogram, histogram_pool): New global vars.
9598 (histogram_hash): New structure.
9599 (histogram_hash::hash): New method.
9600 (histogram_hash::equal): Likewise.
9601 (account_time_size): New function.
9602 (cmp_counts): New function.
9603 (dump_histogram): New function.
9604 (ipa_profile_generate_summary): New function.
9605 (ipa_profile_write_summary): New function.
9606 (ipa_profile_read_summary): New function.
9607 (ipa_profile): Decide on threshold.
9608 (pass_ipa_profile): Add ipa_profile_write_summary and
9609 ipa_profile_read_summary.
9610 * Makefile.in (ipa.o): Update dependencies.
9611 * lto-streamer.h (LTO_section_ipa_profile): New section.
9613 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9615 * tree.h (VAR_P): New.
9617 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9620 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9622 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9624 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9625 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9626 (control_flow_insn_p): Likewise.
9627 * cfgrtl.c (duplicate_insn_chain): Likewise.
9628 * final.c (get_attr_length_1): Likewise.
9629 (shorten_branches): Likewise.
9630 (final_scan_insn): Likewise.
9631 * function.c (instantiate_virtual_regs): Likewise.
9632 * gcse.c (insert_insn_end_basic_block): Likewise.
9633 * ira-costs.c (scan_one_insn): Likewise.
9634 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9635 * lra.c (check_rtl): Likewise.
9636 * reload1.c (elimination_costs_in_insn): Likewise.
9637 * reorg.c (follow_jumps): Likewise.
9639 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9640 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9641 (thumb_far_jump_used_p): Likewise.
9642 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9643 (workaround_speculation): Likewise.
9644 (add_sched_insns_for_speculation): Likewise.
9645 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9646 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9647 (frv_for_each_packet): Likewise.
9648 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9649 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9650 (final_emit_insn_group_barriers): Likewise.
9651 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9652 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9653 (mips16_insn_length): Likewise.
9654 * config/pa/pa.c (pa_reorg): Likewise.
9655 (pa_combine_instructions): Likewise.
9656 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9657 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9658 (sh_reorg): Likewise.
9659 (split_branches): Likewise.
9660 * config/spu/spu.c (get_branch_target): Likewise.
9662 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9665 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9667 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9668 Fix declaration name.
9670 2013-03-28 Lawrence Crowl <crowl@google.com>
9672 * graphds.h (struct graph.indicies): Remove unused.
9673 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9674 (SCOP_ORIGINAL_PDDRS): Remove unused.
9675 * sese.h (extern insert_loop_close_phis): Removed unused.
9676 (extern insert_guard_phis): Removed unused.
9677 (extern ivtype_map_elt_info): Removed unused.
9678 (new_ivtype_map_elt): Removed unused.
9679 * sese.c (ivtype_map_elt_info): Removed unused.
9681 2013-03-28 Lawrence Crowl <crowl@google.com>
9683 * Makefile.in: Add several missing include dependences.
9685 (test-dump.o): New. This object is not added to any executable,
9686 but is present for ad-hoc testing.
9688 (debug (const bitmap_head_def &)): New.
9689 (debug (const bitmap_head_def *)): New.
9691 (extern debug (const bitmap_head_def &)): New.
9692 (extern debug (const bitmap_head_def *)): New.
9694 (debug (edge_def &)): New.
9695 (debug (edge_def *)): New.
9697 (debug (basic_block_def &)): New.
9698 (debug (basic_block_def *)): New.
9700 (dump_node (const_tree, int, FILE *)): Correct source file.
9702 (debug (die_struct &)): New.
9703 (debug (die_struct *)): New.
9705 (extern debug (die_struct &)): New.
9706 (extern debug (die_struct *)): New.
9707 * gimple-pretty-print.c
9708 (debug (gimple_statement_d &)): New.
9709 (debug (gimple_statement_d *)): New.
9710 * gimple-pretty-print.h
9711 (extern debug (gimple_statement_d &)): New.
9712 (extern debug (gimple_statement_d *)): New.
9714 (debug (ira_allocno_copy &)): New.
9715 (debug (ira_allocno_copy *)): New.
9716 (debug (ira_allocno &)): New.
9717 (debug (ira_allocno *)): New.
9719 (extern debug (ira_allocno_copy &)): New.
9720 (extern debug (ira_allocno_copy *)): New.
9721 (extern debug (ira_allocno &)): New.
9722 (extern debug (ira_allocno *)): New.
9724 (debug (live_range &)): New.
9725 (debug (live_range *)): New.
9727 (debug (lra_live_range &)): New.
9728 (debug (lra_live_range *)): New.
9730 (debug (lra_live_range &)): New.
9731 (debug (lra_live_range *)): New.
9733 (debug (omega_pb_d &)): New.
9734 (debug (omega_pb_d *)): New.
9736 (extern debug (omega_pb_d &)): New.
9737 (extern debug (omega_pb_d *)): New.
9739 (debug (const rtx_def &)): New.
9740 (debug (const rtx_def *)): New.
9742 (debug_tree (tree): Move within file.
9743 (debug_raw (const tree_node &)): New.
9744 (debug_raw (const tree_node *)): New.
9745 (dump_tree_via_hooks (const tree_node *, int)): New.
9746 (debug (const tree_node &)): New.
9747 (debug (const tree_node *)): New.
9748 (debug_verbose (const tree_node &)): New.
9749 (debug_verbose (const tree_node *)): New.
9750 (debug_head (const tree_node &)): New.
9751 (debug_head (const tree_node *)): New.
9752 (debug_body (const tree_node &)): New.
9753 (debug_body (const tree_node *)): New.
9754 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9755 (debug (vec<tree, va_gc> &)): New.
9756 (debug (vec<tree, va_gc> *)): New.
9758 (extern debug (const rtx_def &)): New.
9759 (extern debug (const rtx_def *)): New.
9761 (debug_raw (simple_bitmap_def &)): New.
9762 (debug_raw (simple_bitmap_def *)): New.
9763 (debug (simple_bitmap_def &)): New.
9764 (debug (simple_bitmap_def *)): New.
9766 (extern debug (simple_bitmap_def &)): New.
9767 (extern debug (simple_bitmap_def *)): New.
9768 (extern debug_raw (simple_bitmap_def &)): New.
9769 (extern debug_raw (simple_bitmap_def *)): New.
9771 (debug (vinsn_def &)): New.
9772 (debug (vinsn_def *)): New.
9773 (debug_verbose (vinsn_def &)): New.
9774 (debug_verbose (vinsn_def *)): New.
9775 (debug (expr_def &)): New.
9776 (debug (expr_def *)): New.
9777 (debug_verbose (expr_def &)): New.
9778 (debug_verbose (expr_def *)): New.
9779 (debug (vec<rtx> &)): New.
9780 (debug (vec<rtx> *)): New.
9782 (extern debug (vinsn_def &)): New.
9783 (extern debug (vinsn_def *)): New.
9784 (extern debug_verbose (vinsn_def &)): New.
9785 (extern debug_verbose (vinsn_def *)): New.
9786 (extern debug (expr_def &)): New.
9787 (extern debug (expr_def *)): New.
9788 (extern debug_verbose (expr_def &)): New.
9789 (extern debug_verbose (expr_def *)): New.
9790 (extern debug (vec<rtx> &)): New.
9791 (extern debug (vec<rtx> *)): New.
9793 (_list_iter_cond_expr): Make inline instead of static.
9795 (debug (sreal &)): New.
9796 (debug (sreal *)): New.
9798 (extern debug (sreal &)): New.
9799 (extern debug (sreal *)): New.
9801 (extern debug_raw (const tree_node &)): New.
9802 (extern debug_raw (const tree_node *)): New.
9803 (extern debug (const tree_node &)): New.
9804 (extern debug (const tree_node *)): New.
9805 (extern debug_verbose (const tree_node &)): New.
9806 (extern debug_verbose (const tree_node *)): New.
9807 (extern debug_head (const tree_node &)): New.
9808 (extern debug_head (const tree_node *)): New.
9809 (extern debug_body (const tree_node &)): New.
9810 (extern debug_body (const tree_node *)): New.
9811 (extern debug (vec<tree, va_gc> &)): New.
9812 (extern debug (vec<tree, va_gc> *)): New.
9814 (debug (struct loop &)): New.
9815 (debug (struct loop *)): New.
9816 (debug_verbose (struct loop &)): New.
9817 (debug_verbose (struct loop *)): New.
9818 * tree-dump.c: Add header dependence.
9820 (extern debug (struct loop &)): New.
9821 (extern debug (struct loop *)): New.
9822 (extern debug_verbose (struct loop &)): New.
9823 (extern debug_verbose (struct loop *)): New.
9825 (debug (data_reference &)): New.
9826 (debug (data_reference *)): New.
9827 (debug (vec<data_reference_p> &)): New.
9828 (debug (vec<data_reference_p> *)): New.
9829 (debug (vec<ddr_p> &)): New.
9830 (debug (vec<ddr_p> *)): New.
9832 (extern debug (data_reference &)): New.
9833 (extern debug (data_reference *)): New.
9834 (extern debug (vec<data_reference_p> &)): New.
9835 (extern debug (vec<data_reference_p> *)): New.
9836 (extern debug (vec<ddr_p> &)): New.
9837 (extern debug (vec<ddr_p> *)): New.
9839 (debug (pt_solution &)): New.
9840 (debug (pt_solution *)): New.
9842 (extern debug (pt_solution &)): New.
9843 (extern debug (pt_solution *)): New.
9845 (debug (_var_map &)): New.
9846 (debug (_var_map *)): New.
9847 (debug (tree_live_info_d &)): New.
9848 (debug (tree_live_info_d *)): New.
9850 (extern debug (_var_map &)): New.
9851 (extern debug (_var_map *)): New.
9852 (extern debug (tree_live_info_d &)): New.
9853 (extern debug (tree_live_info_d *)): New.
9855 2013-03-28 Jan Hubicka <jh@suse.cz>
9857 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9859 2013-03-28 Ian Bolton <ian.bolton@arm.com>
9861 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9862 record only when desired or required.
9864 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
9866 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9867 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9869 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9871 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9872 (*andsi3_compare0_uxtw): New pattern.
9873 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9874 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9876 2013-03-28 Jan Hubicka <jh@suse.cz>
9878 * data-streamer-in.c (streamer_read_gcov_count): New function.
9879 * gimple-streamer-out.c: Include value-prof.h.
9880 (output_gimple_stmt): Output histogram.
9881 (output_bb): Use streamer_write_gcov_count.
9882 * value-prof.c: Include data-streamer.h
9883 (dump_histogram_value): Add HIST_TYPE_MAX.
9884 (stream_out_histogram_value): New function.
9885 (stream_in_histogram_value): New function.
9886 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9887 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9888 * data-streamer-out.c (streamer_write_gcov_count): New function.
9889 (streamer_write_gcov_count_stream): New function.
9890 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9891 (lto_output_node): Likewise.
9892 (input_node, input_edge): Likewise.
9893 * lto-streamer-out.c (output_cfg): Update streaming.
9894 * lto-streamer-in.c (input_cfg): Likewise.
9895 * data-streamer.h (streamer_write_gcov_count,
9896 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9897 * gimple-streamer-in.c: Include value-prof.h
9898 (input_gimple_stmt): Input histograms.
9899 (input_bb): Update profile streaming.
9901 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9903 * genmodes.c (emit_max_int): New function.
9904 (emit_insn_modes_h): Added call to emit_max_function.
9905 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9907 * machmode.def: Fixed comment.
9909 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9911 * combine.c (try_combine): Removed useless assert.
9912 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9914 2013-03-28 Marek Polacek <polacek@redhat.com>
9915 Richard Biener <rguenther@suse.de>
9917 PR tree-optimization/56695
9918 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9919 build signed result of a vector comparison.
9920 * tree-cfg.c (verify_gimple_comparison): Check that a result
9921 of a vector comparison has signed type.
9923 2013-03-28 Richard Biener <rguenther@suse.de>
9925 PR tree-optimization/37021
9926 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9927 do not restrict gaps between groups.
9928 * tree-vect-stmts.c (vectorizable_load): Properly account for
9929 a gap between groups.
9931 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
9933 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9934 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9937 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
9939 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9940 * doc/extend.texi (Named Address Spaces): Ditto.
9941 (Variable Attributes): Ditto.
9943 2013-03-27 Kai Tietz <ktietz@redhat.com>
9945 * config.build: Add support for cygwin x64 target.
9946 * config.gcc: Likewise.
9947 * config.host: Likewise.
9948 * configure.ac: Likewise
9949 * configure: Regenerated.
9951 2013-03-27 Kai Tietz <ktietz@redhat.com>
9953 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9954 * config/i386/t-cygwin-w64: New file.
9955 * config/i386/cygwin-w64.h: New file.
9956 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9957 and add support for x64-cygwin target.
9958 (CPP_SPEC): Likewise.
9959 (CXX_WRAP_SPEC_LIST): Undefine before define.
9960 (LIBGCJ_SONAME): Use 15 as version.
9962 2013-03-27 Richard Biener <rguenther@suse.de>
9964 PR tree-optimization/56716
9965 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9966 dumping for ref nodes.
9968 2013-03-27 Martin Jambor <mjambor@suse.cz>
9970 PR tree-optimization/55334
9971 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9972 restricted pointers to arrays.
9974 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9976 * Makefile.in (.SUFFIXES): Add .cc.
9977 (.c.o): Apply same recipe for implicit rule .cc.o.
9979 2013-03-27 Richard Biener <rguenther@suse.de>
9981 PR tree-optimization/37021
9982 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9983 REALPART/IMAGPART_EXPRs around the supported refs.
9984 * tree-ssa-structalias.c (find_func_aliases): Assume that
9985 floating-point values are not used to transfer pointers.
9987 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9989 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9990 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9991 * doc/tm.texi: Regenerate.
9992 * targhooks.h (default_has_ifunc_p): New.
9993 * targhooks.c (default_has_ifunc_p): Ditto.
9994 * config/linux-protos.h: New file.
9995 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
9996 this hook for linux which disables support of indirect functions in
9998 * config/linux-android.c: New file.
9999 * config/t-linux-android.c: Ditto.
10000 * config.gcc: Added new object file linux-android.o.
10001 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
10002 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
10003 * varasm.c (do_assemble_alias): Likewise.
10004 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
10005 doesn't support indirect functions.
10006 * configure: Regenerate.
10008 2013-03-27 Bin Cheng <bin.cheng@arm.com>
10011 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
10012 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
10015 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10017 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
10019 2013-03-27 Terry Guo <terry.guo@arm.com>
10021 * config/arm/arm-cores.def: Added core cortex-r7.
10022 * config/arm/arm-tune.md: Regenerated.
10023 * config/arm/arm-tables.opt: Regenerated.
10024 * doc/invoke.texi: Added entry for core cortex-r7.
10026 2013-03-27 Walter Lee <walt@tilera.com>
10028 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
10029 double-decrement of next_scratch_regno.
10031 2013-03-27 Walter Lee <walt@tilera.com>
10033 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
10035 (insn_v1mulus): Ditto.
10036 (insn_v2muls): Ditto.
10038 2013-03-27 Walter Lee <walt@tilera.com>
10040 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
10041 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
10043 2013-03-27 Walter Lee <walt@tilera.com>
10045 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
10046 (*sibcall_value): Ditto.
10048 2013-03-27 Walter Lee <walt@tilera.com>
10050 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
10051 (insn_mnz_v8qi): ... this ...
10052 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
10054 (insn_v<n>mnz): Replaced by ...
10055 (insn_v1mnz): ... this ...
10056 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
10058 (insn_mz_<mode>): Replaced by ...
10059 (insn_mz_v8qi): ... this ...
10060 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
10062 (insn_v<n>mz): Replaced by ...
10063 (insn_v1mz): ... this ...
10064 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
10067 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
10069 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
10071 2013-03-26 Roland McGrath <mcgrathr@google.com>
10073 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
10074 than fprintf with a non-constant, non-format string.
10076 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10078 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
10079 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
10080 operand 0 predicate.
10081 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
10082 attribute. Use general_x64nomem_operand as operand 1 predicate.
10083 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
10084 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10085 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
10086 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10087 (mov<mode>_insv_1): Remove expander. Merge insn with
10088 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
10089 Use general_x64nomem_operand as operand 1 predicate.
10090 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
10091 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
10092 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10093 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
10094 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
10095 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
10096 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10097 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
10098 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
10099 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
10100 (general_x64nomem_operand): Ditto.
10102 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
10104 * config/rtems.opt: Add -pthread option.
10106 2013-03-26 Richard Biener <rguenther@suse.de>
10108 * alias.c (find_base_term): Avoid redundant and not used recursion.
10109 (base_alias_check): Get the initial base term from the caller.
10110 (true_dependence_1): Compute and pass base terms to base_alias_check.
10111 (write_dependence_p): Likewise.
10112 (may_alias_p): Likewise.
10114 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
10116 * config/aarch64/aarch64.c (aarch64_classify_address): Support
10117 PC-relative load in SI modes and above only.
10119 2013-03-26 Xinyu Qi <xyqi@marvell.com>
10121 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
10122 * config/arm/iwmmxt.md (WCGR0): Update.
10123 (WCGR1, WCGR2, WCGR3): Likewise.
10125 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10127 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10128 Use x64 and nox64 isa attributes.
10130 2013-03-26 Richard Biener <rguenther@suse.de>
10132 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10133 alignment computations and rely on get_object_alignment_1
10134 for the !TYPE_P case.
10135 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10137 2013-03-26 Walter Lee <walt@tilera.com>
10139 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10140 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10142 2013-03-25 Jeff Law <law@redhat.com>
10144 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10145 check for INTEGRAL_TYPE_P that was missing due to checking in
10146 wrong version of prior patch.
10148 2013-03-25 Walter Lee <walt@tilera.com>
10150 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10151 TILEGX_INSN_SHUFFLEBYTES1.
10152 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10154 (tilegx_builtins): Ditto.
10155 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10157 2013-03-25 Walter Lee <walt@tilera.com>
10159 * config/tilegx/tilegx.md (floatsisf2): New pattern.
10160 (floatunssisf2): New pattern.
10161 (floatsidf2): New pattern.
10162 (floatunssidf2): New pattern.
10164 2013-03-25 Walter Lee <walt@tilera.com>
10166 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10167 tests for constraint J, K, N, P.
10169 2013-03-25 Walter Lee <walt@tilera.com>
10171 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10172 Use indirect/pcrel encoding.
10173 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10176 2013-03-25 Steve Ellcey <sellcey@mips.com>
10178 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10179 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10180 * config/mips/mips.c (mips_option_override): Set IMADD default.
10181 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10182 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10183 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10184 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10185 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10187 2013-03-25 Jeff Law <law@redhat.com>
10189 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10190 slightly to avoid creating and folding useless trees. Simplify
10191 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10193 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
10195 * config/i386/i386.md (*zero_extendsidi2): Merge with
10196 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10197 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10198 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10199 targets. Clarify comment.
10201 2013-03-25 Martin Jambor <mjambor@suse.cz>
10203 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10204 pass-through jump functions differently.
10205 (ipa_read_jump_function): Likewise. Also use setter functions to set
10208 2013-03-25 Martin Jambor <mjambor@suse.cz>
10210 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10211 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10213 (ipa_get_indirect_edge_target): New function.
10214 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10215 ipa_get_indirect_edge_target. Update all callers.
10216 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10217 ipa_get_indirect_edge_target_1 instead of calling
10218 ipa_get_indirect_edge_target.
10219 (create_specialized_node): Pass aggvlas to
10220 ipcp_discover_new_direct_edges.
10222 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10224 * config/arm/arm.md (f_sels, f_seld): New types.
10225 (*cmov<mode>): New pattern.
10226 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10229 2013-03-25 Kai Tietz <ktietz@redhat.com>
10231 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10232 POSIX-printf for mingw-hosted builds.
10234 2013-03-25 Richard Biener <rguenther@suse.de>
10236 PR middle-end/56694
10237 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10238 must-not-throw stmt location.
10240 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10242 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10243 Emit load-acquire versions when acq is true.
10244 (arm_emit_store_exclusive): Add rel parameter.
10245 Emit store-release versions when rel is true.
10246 (arm_split_compare_and_swap): Use acquire-release instructions
10248 of barriers when appropriate.
10249 (arm_split_atomic_op): Likewise.
10250 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10251 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10252 (VUNSPEC_SLX): Likewise.
10253 (VUNSPEC_LDA): Likewise.
10254 (VUNSPEC_STL): Likewise.
10255 * config/arm/sync.md (atomic_load<mode>): New pattern.
10256 (atomic_store<mode>): Likewise.
10257 (arm_load_acquire_exclusive<mode>): Likewise.
10258 (arm_load_acquire_exclusivesi): Likewise.
10259 (arm_load_acquire_exclusivedi): Likewise.
10260 (arm_store_release_exclusive<mode>): Likewise.
10262 2013-03-25 Catherine Moore <clm@codesourcery.com>
10264 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10265 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10266 * config/mip/predicates.md (lwsp_swsp_operand,
10267 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10268 sb16_operand, db4_operand, db7_operand, ib3_operand,
10269 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10270 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10271 andi16_operand): New predicates.
10272 * config/mips/mips.md (compression): New attribute.
10273 (enabled): New attribute.
10274 (length): Consider compression in computing length.
10275 (shift_compression): New code attribute.
10276 (*add<mode>3): New operands. Record compression.
10277 (sub<mode>3): Likewise.
10278 (one_cmpl<mode>2): Likewise.
10279 (*and<mode>3): Likewise.
10280 (*ior<mode>3): Likewise.
10281 (unnamed pattern for xor): Likewise.
10282 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10283 (*<optab><mode>3): Likewise.
10284 (*mov<mode>_internal: Likewise.
10285 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10286 (mips_unsigned_immediate_p): New.
10287 (umips_lwsp_swsp_address_p): New.
10288 (m16_based_address_p): New.
10289 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10290 (mips_unsigned_immediate_p): New prototype.
10291 (lwsp_swsp_address_p): New prototype.
10292 (m16_based_address_p): New prototype.
10293 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10294 (mips_signed_immediate_p): New function.
10295 (m16_based_address_p): New function.
10296 (lwsp_swsp_address_p): New function.
10297 (mips_print_operand_punctuation): Recognize short delay slot insns
10298 for microMIPS.add<mode>3"
10300 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10303 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10304 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10306 2013-03-25 Richard Biener <rguenther@suse.de>
10308 PR tree-optimization/56689
10309 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10312 2013-03-25 Richard Biener <rguenther@suse.de>
10314 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10316 (memory_references): Likewise.
10317 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10318 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10319 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10320 (gather_mem_refs_in_loops): Fold into ...
10321 (analyze_memory_references): ... this. Move initialization
10322 to tree_ssa_lim_initialize.
10323 (fill_always_executed_in): Rename to ...
10324 (fill_always_executed_in_1): ... this.
10325 (fill_always_executed_in): Move contains_call computation to
10326 this new function from ...
10327 (tree_ssa_lim_initialize): ... here.
10328 (tree_ssa_lim): Call fill_always_executed_in.
10330 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10332 * postreload.c (reload_combine): Fix code detecting returns.
10334 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10336 * function.c (emit_use_return_register_into_block): On cc0 targets,
10337 do not emit the sequence between cc0 setter and user.
10339 2013-03-25 Kai Tietz <ktietz@redhat.com>
10341 * config/i386/predicates.md (local_symbolic_operand): Interpret
10342 dll-imported symbols as none-local.
10344 2013-03-25 Richard Biener <rguenther@suse.de>
10346 * tree-ssa-loop-im.c (struct depend): Remove.
10347 (struct lim_aux_data): Make depends a vec of gimples.
10348 (free_lim_aux_data): Adjust.
10349 (add_dependency): Likewise.
10350 (set_level): Likewise.
10352 2013-03-25 Richard Biener <rguenther@suse.de>
10354 PR middle-end/56434
10355 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10356 the pointer returned by calls with ECF_MALLOC set.
10358 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10360 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10362 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10364 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
10365 using MMXMODE mode iterator.
10366 (*move<mode>_internal): Merge with *movv2sf_internal and
10367 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10369 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10371 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10372 (record_last_mem_set_info): Likewise.
10374 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10375 of XNEWVEC followed by memset.
10376 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10378 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10380 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10381 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10382 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10383 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10384 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10385 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10386 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10387 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10388 BARRIER_P instead of GET_CODE.
10390 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10392 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10393 inaccuracy in the probing code.
10395 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10396 (ctrapdi4): Likewise.
10398 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10400 * calls.c (expand_call): Add missing guard to code handling return
10401 of non-BLKmode structures in MSB.
10402 * function.c (expand_function_end): Likewise.
10404 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10406 * combine.c (try_combine): Adjust comment. Do not add the set of
10407 insn #0 if the destination indirectly is set or dies in insn #2.
10408 Tidy up code to distribute a new note.
10410 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10412 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10413 also for alternatives 16 and 17.
10415 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10417 * config/i386/sse.md (*mov<mode>_internal): Merge with
10418 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10419 Emit insn template depending on type attribute. Use
10420 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10421 movd instead of movq mnemonic for interunit moves. Rewrite mode
10422 attribute calculation. Remove unit attribute calculation.
10423 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10424 Set prefix_data16 attribute for DImode ssemov types.
10425 Use Ym instead of y for SSE-MMX conversion alternatives.
10426 Reorder operand constraints.
10428 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10430 * df.h (df_insn_delete): Adjust prototype.
10431 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10432 and let it decide whether mark the basic block dirty.
10433 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10434 * df-scan.c (df_insn_info_delete): New helper function, split
10435 off from df_insn_delete.
10436 (df_scan_free_bb_info): Use it.
10437 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10439 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10440 that the insn is actually an insn and it has a non-NULL basic block.
10441 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10443 2013-03-22 Richard Biener <rguenther@suse.de>
10445 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10447 (mem_ref_alloc): Do not allocate them.
10448 (refs_independent_p): Do not query or maintain a cache.
10450 2013-03-22 Richard Biener <rguenther@suse.de>
10452 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10453 (gather_mem_refs_in_loops): Do not compute it.
10454 (analyze_memory_references): Do not allocate it.
10455 (tree_ssa_lim_finalize): Do not free it.
10456 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10458 2013-03-22 Richard Biener <rguenther@suse.de>
10460 * is-a.h (as_a): Use gcc_checking_assert.
10462 2013-03-22 Ian Bolton <ian.bolton@arm.com>
10464 * config/aarch64/aarch64.c (aarch64_print_operand): New
10465 format specifier for printing a constant in hex.
10466 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10467 format specifier for printing second operand.
10469 2013-03-22 Richard Biener <rguenther@suse.de>
10471 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10473 (gather_mem_refs_in_loops): Perform store accumulation here.
10474 (create_vop_ref_mapping_loop): Remove.
10475 (create_vop_ref_mapping): Likewise.
10476 (analyze_memory_references): Initialize refs_stored_in_loop.
10477 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10478 (record_indep_loop): Remove.
10479 (record_dep_loop): New function.
10480 (ref_indep_loop_p_1): Adjust to only walk over references
10481 in the loop, not its subloops.
10482 (ref_indep_loop_p): Rename to ...
10483 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10484 maintaining a more fine-grained cache.
10485 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10486 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10488 2013-03-22 Richard Biener <rguenther@suse.de>
10490 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10491 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10492 aggregate mem_ref_loc.
10493 (free_mem_ref_locs): Inline into ...
10494 (memref_free): ... this and adjust.
10495 (mem_ref_alloc): Adjust.
10496 (mem_ref_locs_alloc): Remove.
10497 (record_mem_ref_loc): Adjust.
10498 (get_all_locs_in_loop): Rewrite into ...
10499 (for_all_locs_in_loop): ... this iterator.
10500 (rewrite_mem_ref_loc): New functor.
10501 (rewrite_mem_refs): Use for_all_locs_in_loop.
10502 (sm_set_flag_if_changed): New functor.
10503 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10504 (ref_always_accessed): New functor.
10505 (ref_always_accessed_p): Use for_all_locs_in_loop.
10507 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10509 * tree-pass.h (PROP_gimple_lvec): New.
10510 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10511 (init_optimization_passes): Move pass_lower_vector.
10512 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10514 (pass_lower_vector): Provide PROP_gimple_lvec.
10515 (pass_lower_vector_ssa): Likewise.
10516 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10518 2013-03-21 Mark Wielaard <mjw@redhat.com>
10520 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10522 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10524 * config/i386/i386.md (*movdi_internal): Disparage slightly
10525 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10526 conversion alternatives.
10528 2013-03-21 Jakub Jelinek <jakub@redhat.com>
10530 PR middle-end/48087
10531 * diagnostic.def (DK_WERROR): New kind.
10532 * diagnostic.h (werrorcount): Define.
10533 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10534 promoted to DK_ERROR, increment DK_WERROR counter instead of
10536 * toplev.c (toplev_main): Call print_ignored_options even if
10537 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10538 even if just werrorcount is non-zero.
10541 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10543 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10544 (string_cst_pool_decl): New function.
10545 (optimize_one_addr_into_implicit_ptr): New function.
10546 (resolve_addr_in_expr): Optimize DWARF location expression
10547 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10548 which doesn't live in memory, but has DW_AT_location or
10549 DW_AT_const_value, or refers to a string literal, into
10550 DW_OP_GNU_implicit_pointer.
10551 (optimize_location_into_implicit_ptr): New function.
10552 (resolve_addr): If removing DW_AT_location of a variable because
10553 it was DW_OP_addr of address of the variable, but the variable doesn't
10554 live in memory, try to emit const value attribute for the initializer.
10556 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10558 * tree.h (VECTOR_TYPE_P): New macro.
10559 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10560 TYPE_MODE): Use it.
10561 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10562 VEC_COND_EXPR cannot be lvalues.
10563 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10565 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10567 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10568 Restrict the transformation to equal modes.
10570 2013-03-21 Richard Biener <rguenther@suse.de>
10572 PR tree-optimization/39326
10573 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10574 (MEM_ANALYZABLE): Adjust.
10575 (record_mem_ref_loc): Move bitmap ops ...
10576 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10577 unanalyzable refs, do not record locations for it.
10578 (analyze_memory_references): Allocate ref zero as shared
10580 (refs_independent_p): Do not test for unanalyzed mems here.
10581 (ref_indep_loop_p_1): Special-case disambiguation against
10582 the unanalyzed ref.
10583 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10585 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10587 * config/arm/arm-protos.h (tune_params): Add
10588 prefer_neon_for_64bits field.
10589 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10590 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10591 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10592 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10593 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10594 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10595 (arm_option_override): Handle -mneon-for-64bits new option.
10596 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10597 (prefer_neon_for_64bits): Declare new variable.
10598 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10599 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10600 (arch_enabled): Handle new arch types. Remove support for onlya8
10602 (one_cmpldi2): Use new arch names.
10603 (zero_extend<mode>di2, extend<mode>di2): Ditto.
10604 * config/arm/arm.opt (mneon-for-64bits): Add option.
10605 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10606 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10607 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10609 * doc/invoke.texi (-mneon-for-64bits): Document.
10611 2013-03-21 Richard Biener <rguenther@suse.de>
10613 PR tree-optimization/39326
10614 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10615 (sort_bbs_in_loop_postorder_cmp): New function.
10616 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10618 2013-03-21 Richard Biener <rguenther@suse.de>
10620 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10621 (vect_insert_into_interleaving_chain): Likewise.
10622 (vect_drs_dependent_in_basic_block): Inline ...
10623 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10625 (vect_analyze_data_ref_dependence): ... here. Simplify.
10626 (vect_check_interleaving): Simplify.
10627 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10628 (vect_slp_analyze_data_ref_dependences): ... this new function.
10629 (dr_group_sort_cmp): New function.
10630 (vect_analyze_data_ref_accesses): Compute data-reference groups
10631 here instead of in vect_analyze_data_ref_dependence. Use
10632 a more efficient algorithm.
10633 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10634 vect_slp_analyze_data_ref_dependences. Call
10635 vect_analyze_data_ref_accesses earlier.
10636 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10637 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10638 (vect_slp_analyze_data_ref_dependences): New prototype.
10640 2013-03-21 Richard Biener <rguenther@suse.de>
10642 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10643 ref is stored in the loop.
10644 (find_refs_for_sm): Walk only over all stores.
10645 (store_motion_loop): Allocate from lim_bitmap_obstack.
10646 (store_motion): Likewise.
10648 2013-03-21 Richard Biener <rguenther@suse.de>
10650 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10651 Update virtual SSA form.
10653 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10655 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10656 * configure: Regenerate.
10657 * config.in: Regenerate.
10658 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10659 if !HAVE_LD_EH_FRAME_CIEV3.
10661 2013-03-21 Richard Biener <rguenther@suse.de>
10663 * tree-cfg.c (verify_expr_no_block): New function.
10664 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10665 nor DECL_VALUE_EXPR have locations with associated blocks.
10666 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10667 (clear_unused_block_pointer): Remove code dealing with
10668 blocks in DECL_DEBUG_EXPR locations.
10670 2013-03-21 Richard Biener <rguenther@suse.de>
10672 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10673 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10674 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10675 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10676 instead of DECL_DEBUG_EXPR_IS_FROM.
10677 * gimplify.c (gimplify_modify_expr): Likewise.
10678 * tree-cfg.c (verify_expr_location_1): Likewise.
10679 * tree-complex.c (create_one_component_var): Likewise.
10680 * tree-sra.c (create_access_replacement): Likewise.
10681 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10682 (clear_unused_block_pointer): Likewise.
10683 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10684 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10685 * var-tracking.c (var_debug_decl): Likewise.
10686 (track_expr_p): Likewise.
10687 * tree-inline.c (add_local_variables): Likewise. Set
10688 DECL_HAS_DEBUG_EXPR_P after copying it.
10689 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10690 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10692 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10695 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10696 * configure: Regenerate.
10697 * config.in: Regenerate.
10698 * config/i386/i386.md (*movdf_internal): Use
10699 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10700 movd instead of movq mnemonic for interunit moves.
10701 (*movdi_internal): Ditto.
10703 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10705 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10706 (abd<mode>_3): New pattern.
10707 (aba<mode>_3): New pattern.
10708 (fabd<mode>_3): New pattern.
10710 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10712 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10713 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10714 occurrence of REGISTER_PREFIX as its empty string.
10716 2013-03-20 Jeff Law <law@redhat.com>
10718 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10719 addititional equivalences for equality comparisons between an SSA_NAME
10720 and a constant where the SSA_NAME was set from a widening conversion.
10722 2013-03-20 Walter Lee <walt@tilera.com>
10724 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10726 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10728 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10729 depending on type attribute.
10730 (*movti_internal): Ditto.
10731 (*movtf_internal): Ditto.
10732 (*movxf_internal): Ditto.
10733 (*movdf_internal): Ditto.
10734 (*movsf_internal): Ditto.
10736 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10738 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10739 maybe_vex for sselog1 and ssemov types.
10740 (*movdi_internal): Reorder operand constraints.
10741 (*movsi_internal): Ditto. Set prefix attribute to
10742 maybe_vex for sselog1 and ssemov types.
10743 (*movtf_internal): Set prefix attribute to maybe_vex
10744 for sselog1 and ssemov types.
10745 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10746 DImode ssemov types. Reorder operand constraints.
10747 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10748 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10749 attribute for SImode ssemov types. Reorder operand constraints.
10751 2013-03-20 Martin Jambor <mjambor@suse.cz>
10753 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10754 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10756 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10758 * config/rs6000/predicates.md (indexed_address, update_address_mem
10759 update_indexed_address_mem): New predicates.
10760 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10761 attribute for load/store instructions.
10762 * config/rs6000/dfp.md (movsd_store): Likewise.
10763 (movsd_load): Likewise.
10764 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10765 (unnamed HI->DI extend define_insn): Likewise.
10766 (unnamed SI->DI extend define_insn): Likewise.
10767 (unnamed QI->SI extend define_insn): Likewise.
10768 (unnamed QI->HI extend define_insn): Likewise.
10769 (unnamed HI->SI extend define_insn): Likewise.
10770 (unnamed HI->SI extend define_insn): Likewise.
10771 (extendsfdf2_fpr): Likewise.
10772 (movsi_internal1): Likewise.
10773 (movsi_internal1_single): Likewise.
10774 (movhi_internal): Likewise.
10775 (movqi_internal): Likewise.
10776 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10777 attribute for load/store instructions.
10778 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10780 (mov<mode>_softfloat): Likewise.
10781 (mov<mode>_hardfloat32): Likewise.
10782 (mov<mode>_hardfloat64): Likewise.
10783 (mov<mode>_softfloat64): Likewise.
10784 (movdi_internal32): Likewise.
10785 (movdi_internal64): Likewise.
10786 (probe_stack_<mode>): Likewise.
10788 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10790 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10791 floating point, and decimal floating point to reload iterator.
10793 * config/rs6000/constraints.md (wl constraint): New constraints to
10794 return FLOAT_REGS if certain options are used to reduce the number
10795 of separate patterns that exist in the file.
10796 (wx constraint): Likewise.
10797 (wz constraint): Likewise.
10799 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10800 -mdebug=reg, print wg, wl, wx, and wz constraints.
10801 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10802 Initialize the reload functions for 64-bit binary/decimal floating
10804 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10805 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10806 create the buffer on the stack to overcome not having a 32-bit
10808 (rs6000_emit_move): Likewise.
10809 (rs6000_secondary_memory_needed_rtx): Likewise.
10810 (rs6000_alloc_sdmode_stack_slot): Likewise.
10811 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10812 via xxlxor, just like DFmode 0.0.
10814 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10815 define as 1 if we are running on a power7 or newer.
10816 (enum r6000_reg_class_enum): Add new constraints.
10818 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10819 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10820 with other moves by using conditional constraits (wg). Use LFIWZX
10821 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
10822 (movsd splitter): Likewise.
10823 (movsd_hardfloat): Likewise.
10824 (movsd_softfloat): Likewise.
10826 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10827 binary and decimal floating point moves.
10828 (fmove_ok): New attributes to combine binary and decimal floating
10829 point moves, and to combine power6x (mfpgpr) moves along normal
10831 (real_value_to_target): Likewise.
10832 (f32_lr): Likewise.
10833 (f32_lm): Likewise.
10834 (f32_li): Likewise.
10835 (f32_sr): Likewise.
10836 (f32_sm): Likewise.
10837 (f32_si): Likewise.
10838 (movsf): Combine binary and decimal floating point moves. Combine
10839 power6x (mfpgpr) moves with other moves by using conditional
10840 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
10841 (mov<mode> for SFmode/SDmode); Likewise.
10842 (SFmode/SDmode splitters): Likewise.
10843 (movsf_hardfloat): Likewise.
10844 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10845 (movsf_softfloat): Likewise.
10846 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10848 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10849 wx and wz constraints.
10851 * config/rs6000/constraints.md (wg constraint): New constraint to
10852 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10854 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10857 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10858 -mdebug=reg, print wg, wl, wx, and wz constraints.
10859 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10860 Initialize the reload functions for 64-bit binary/decimal floating
10862 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10863 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10864 create the buffer on the stack to overcome not having a 32-bit
10866 (rs6000_emit_move): Likewise.
10867 (rs6000_secondary_memory_needed_rtx): Likewise.
10868 (rs6000_alloc_sdmode_stack_slot): Likewise.
10869 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10870 via xxlxor, just like DFmode 0.0.
10872 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10873 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10874 with other moves by using conditional constraits (wg). Use LFIWZX
10875 and STFIWX for loading SDmode on power7.
10876 (movdd splitters): Likewise.
10877 (movdd_hardfloat32): Likewise.
10878 (movdd_softfloat32): Likewise.
10879 (movdd_hardfloat64_mfpgpr): Likewise.
10880 (movdd_hardfloat64): Likewise.
10881 (movdd_softfloat64): Likewise.
10883 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10884 64-bit binary and decimal floating point moves.
10885 (FMOVE64X): Likewise.
10886 (movdf): Combine 64-bit binary and decimal floating point moves.
10887 Combine power6x (mfpgpr) moves with other moves by using
10888 conditional constraits (wg).
10889 (mov<mode> for DFmode/DDmode): Likewise.
10890 (DFmode/DDmode splitters): Likewise.
10891 (movdf_hardfloat32): Likewise.
10892 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10893 (movdf_softfloat32): Likewise.
10894 (movdf_hardfloat64_mfpgpr): Likewise.
10895 (movdf_hardfloat64): Likewise.
10896 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10897 (movdf_softfloat64): Likewise.
10898 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10899 (reload_<mode>_load): Move to later in the file so they aren't in
10900 the middle of the floating point move insns.
10901 (reload_<mode>_store): Likewise.
10903 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10906 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10907 constraint if -mdebug=reg.
10908 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10909 Enable using dd reload support if needed.
10911 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10912 binary and decimal floating point moves in rs6000.md.
10913 (movtd_internal): Likewise.
10915 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10916 decimal floating point moves.
10918 (movtf_internal): Likewise.
10919 (mov<mode>_internal, TDmode/TFmode): Likewise.
10920 (movtf_softfloat): Likewise.
10921 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10923 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10924 movdi_internal64, using wg constraint for move direct operations.
10925 (movdi_internal64): Likewise.
10927 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10928 MODES_TIEABLE_P for selected modes. Print the numerical value of
10929 the various virtual registers. Use GPR/FPR first/last values,
10930 instead of hard coding the register numbers. Print which modes
10931 have reload functions registered.
10932 (rs6000_option_override_internal): If -mdebug=reg, trace the options
10933 settings before/after setting cpu, target and subtarget settings.
10934 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10935 and for secondary reload failures in rs6000_secondary_reload_inner.
10936 (rs6000_secondary_reload_fail): Likewise.
10937 (rs6000_secondary_reload_inner): Likewise.
10939 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10940 macros for first/last GPR and FPR registers.
10941 (LAST_GPR_REGNO): Likewise.
10942 (FIRST_FPR_REGNO): Likewise.
10943 (LAST_FPR_REGNO): Likewise.
10945 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10946 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10947 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10948 (vcond<mode><mode>): Likewise.
10949 (vcondu<mode><mode>): Likewise.
10950 (vector_gtu<mode>): Likewise.
10951 (vector_gte<mode>): Likewise.
10952 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
10953 to prevent the compiler from converting DImode operations to TImode.
10954 (ior<mode>3): Likewise.
10955 (and<mode>3): Likewise.
10956 (one_cmpl<mode>2): Likewise.
10957 (nor<mode>3): Likewise.
10958 (andc<mode>3): Likewise.
10960 * config/rs6000/constraints.md (wt constraint): New constraint
10961 that returns VSX_REGS if TImode is allowed in VSX registers.
10963 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10964 constant under VSX.
10966 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10967 similar to TImode, but it is restricted to being in the GPRs.
10969 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10970 TImode to occupy a single VSX register.
10972 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10973 -mvsx-timode for power7/power8.
10974 (power7 cpu): Likewise.
10975 (power8 cpu): Likewise.
10977 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10978 sure that TFmode/TDmode take up two registers if they are ever
10979 allowed in the upper VSX registers.
10980 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10982 (rs6000_init_hard_regno_mode_ok): Likewise.
10983 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10984 constraint. Print if LRA is turned on.
10985 (rs6000_option_override_internal): Give an error if -mvsx-timode
10986 and VSX is not enabled.
10987 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10988 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10989 to reg+offset addressing. Use PTImode when checking offset
10990 addresses for validity.
10991 (reg_offset_addressing_ok_p): Likewise.
10992 (rs6000_legitimate_offset_address_p): Likewise.
10993 (rs6000_legitimize_address): Likewise.
10994 (rs6000_legitimize_reload_address): Likewise.
10995 (rs6000_legitimate_address_p): Likewise.
10996 (rs6000_eliminate_indexed_memrefs): Likewise.
10997 (rs6000_emit_move): Likewise.
10998 (rs6000_secondary_reload): Likewise.
10999 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
11000 reloads to fpr registers to continue to use reg+offset addressing,
11001 but 64-bit reloads to altivec registers need reg+reg addressing.
11002 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
11003 it. Treat LO_SUM like a PLUS operation.
11004 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
11005 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
11006 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
11007 registers to share a register with a smaller sized type, since VSX
11008 puts scalars in the upper 64-bits.
11009 (print_operand): Add support for PTImode.
11010 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
11011 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
11012 registers, but don't have arithmetic support.
11013 (rs6000_memory_move_cost): Add test for VSX.
11014 (rs6000_opt_masks): Add -mvsx-timode.
11016 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
11019 (VSr): Use wt constraint for TImode.
11020 (VSv): Drop TImode support.
11021 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
11022 (vsx_movti_64bit): Likewise.
11023 (vsx_movti_32bit): Likewise.
11024 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
11025 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
11026 one '?' on the appropriate output constraint. Do not allow TImode
11027 logical operations on 32-bit systems.
11028 (vsx_ior<mode>3): Likewise.
11029 (vsx_xor<mode>3): Likewise.
11030 (vsx_one_cmpl<mode>2): Likewise.
11031 (vsx_nor<mode>3): Likewise.
11032 (vsx_andc<mode>3): Likewise.
11033 (vsx_concat_<mode>): Likewise.
11034 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
11036 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
11037 OPTION_MASK_VSX_TIMODE.
11038 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
11039 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
11041 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
11042 (TI2 iterator): New iterator for TImode, PTImode.
11043 (wd mode attribute): Add values for vector types.
11044 (movti_string): Replace TI move operations with operations for TImode
11045 and PTImode. Add support for TImode being allowed in VSX registers.
11046 (mov<mode>_string, TImode/PTImode): Likewise.
11047 (movti_ppc64): Likewise.
11048 (mov<mode>_ppc64, TImode/PTImode): Likewise.
11049 (TI mode splitters): Likewise.
11051 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
11054 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
11056 PR tree-optimization/56355
11057 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
11058 Also handle integers with undefined overflow.
11060 2013-03-20 Catherine Moore <clm@codesourcery.com>
11061 Maciej W. Rozycki <macro@codesourcery.com>
11062 Tom de Vries <tom@codesourcery.com>
11063 Nathan Sidwell <nathan@codesourcery.com>
11064 Iain Sandoe <iain@codesourcery.com>
11065 Nathan Froyd <froydnj@codesourcery.com>
11066 Chao-ying Fu <fu@mips.com>
11068 * doc/extend.texi: (micromips, nomicromips, nocompression):
11069 Document new function attributes.
11070 * doc/invoke.texi (minterlink-compressed, mmicromips,
11071 m14k, m14ke, m14kec): Document new options.
11072 (minterlink-mips16): Update documentation.
11073 * doc/md.texi (ZC, ZD): Document new constraints.
11074 * configure.ac (gcc_cv_as_micromips): Check if linker
11075 supports the .set micromips directive.
11076 * configure: Regenerate.
11077 * config.in: Regenerate.
11078 * config/mips/mips-tables.opt: Regenerate.
11079 * config/mips/micromips.md: New file.
11080 * constraints.md (ZC, ZD): New constraints.
11081 * config/mips/predicates.md (movep_src_register): New predicate.
11082 (movep_src_operand): New predicate.
11083 (non_volatile_mem_operand): New predicate.
11084 * config/mips/mips.md (multimem): New type.
11085 (length): Differentiate between 17-bit and 18-bit branch offsets.
11086 (MOVEP1, MOVEP2): New mode iterator.
11087 (mov_<load>l): Use ZC constraint.
11088 (mov_<load>r): Likewise.
11089 (mov_<store>l): Likewise.
11090 (mov_<store>r): Likewise.
11091 (*branch_equality<mode>_inverted): Add microMIPS support.
11092 (*branch_equality<mode>): Likewise.
11093 (*jump_absolute): Likewise.
11094 (indirect_jump_<mode>): Likewise.
11095 (tablejump_<mode>): Likewise.
11096 (<optab>_internal): Likewise.
11097 (sibcall_internal): Likewise.
11098 (sibcall_value_internal): Likewise.
11099 (prefetch): Use constraint ZD.
11100 * config/mips/mips.opt (minterlink-compressed): New option.
11101 (minterlink-mips16): Now an alias for minterlink-compressed.
11102 (mmicromips): New option.
11103 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11104 (compare_and_swap_12): Likewise.
11105 (sync_add<mode>): Likewise.
11106 (sync_<optab>_12): Likewise.
11107 (sync_old_<optab>_12): Likewise.
11108 (sync_new_<optab>_12): Likewise.
11109 (sync_nand_12): Likewise.
11110 (sync_old_nand_12): Likewise.
11111 (sync_new_nand_12): Likewise.
11112 (sync_sub<mode>): Likewise.
11113 (sync_old_add<mode>): Likewise.
11114 (sync_old_sub<mode>): Likewise.
11115 (sync_new_add<mode>): Likewise.
11116 (sync_new_sub<mode>): Likewise.
11117 (sync_<optab><mode>): Likewise.
11118 (sync_old_<optab><mode>): Likewise.
11119 (sync_new_<optab><mode>): Likewise.
11120 (sync_nand<mode>): Likewise.
11121 (sync_old_nand<mode>): Likewise.
11122 (sync_new_nand<mode>): Likewise.
11123 (sync_lock_test_and_set<mode>): Likewise.
11124 (test_and_set_12): Likewise.
11125 (atomic_compare_and_swap<mode>): Likewise.
11126 (atomic_exchange<mode>_llsc): Likewise.
11127 (atomic_fetch_add<mode>_llsc): Likewise.
11128 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11129 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11130 (umips_save_restore_pattern_p): Likewise.
11131 (umips_load_store_pair_p): Likewise.
11132 (umips_output_load_store_pair): Likewise.
11133 (umips_movep_target_p): Likewise.
11134 (umips_12bit_offset_address_p): Likewise.
11135 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11136 (mips_base_mips16): Rename this...
11137 (mips_base_compression_flags): ...to this. Update all uses.
11138 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11139 (mips_mips16_decl_p): Delete.
11140 (mips_nomips16_decl_p): Delete.
11141 (mips_get_compress_on_flags): New function.
11142 (mips_get_compress_off_flags): New function.
11143 (mips_get_compress_mode): New function.
11144 (mips_get_compress_on_name): New function.
11145 (mips_get_compress_off_name): New function.
11146 (mips_insert_attributes): Support multiple compression types.
11147 (mips_merge_decl_attributes): Likewise.
11148 (umips_12bit_offset_address_p): New function.
11149 (mips_start_function_definition): Emit .set micromips directive.
11150 (mips_call_may_need_jalx_p): New function.
11151 (mips_function_ok_for_sibcall): Add microMIPS support.
11152 (mips_print_operand_punctuation): Support short delay slots and
11154 (umips_swm_mask, umips_swm_encoding): New.
11155 (umips_build_save_restore): New function.
11156 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11157 (was_mips16_p): Remove.
11158 (old_compression_mode): New.
11159 (mips_set_compression_mode): New function.
11160 (mips_set_current_function): Add microMIPS support.
11161 (mips_option_override): Likewise.
11162 (umips_save_restore_pattern_p): New function.
11163 (umips_output_save_restore): New function.
11164 (umips_load_store_pair_p_1): New function.
11165 (umips_load_store_pair_p): New function.
11166 (umips_output_load_store_pair_1): New function.
11167 (umips_output_load_store_pair): New function.
11168 (umips_movep_target_p) New function.
11169 (mips_prepare_pch_save): Add microMIPS support.
11170 * config/mips/mips.h (TARGET_COMPRESSION): New.
11171 (TARGET_CPU_CPP_BUILTINS): Update macro
11172 to use new compression flags and to support microMIPS.
11173 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11174 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11175 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11176 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11177 (ASM_SPEC): Support mmicromips and mno-micromips.
11178 (M16STORE_REG_P): New macro.
11179 (MIPS_CALL): Support TARGET_MICROMIPS.
11180 (MICROMIPS_J): New macro.
11181 (mips_base_mips16): Rename this...
11182 (mips_base_compression_flags): ...to this.
11183 (UMIPS_12BIT_OFFSET_P): New macro.
11184 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11185 (MULTILIB_DIRNAMES): Likewise.
11186 2013-03-20 Richard Biener <rguenther@suse.de>
11188 PR tree-optimization/56661
11189 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11190 the result does not have to be distinct.
11192 2013-03-20 Richard Biener <rguenther@suse.de>
11194 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11197 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11198 Steven Bosscher <steven@gcc.gnu.org>
11200 PR rtl-optimization/56605
11201 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11203 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
11206 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11207 that require movd instead of movq.
11209 2013-03-20 Richard Biener <rguenther@suse.de>
11211 * tree-ssa-structalias.c (struct variable_info): Add pointer
11212 to the first field of an aggregate with sub-vars. Make
11213 this and the pointer to the next subfield its ID.
11214 (vi_next): New function.
11215 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11216 storedanything_id, integer_id): Increment by one.
11217 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11218 get_call_clobber_vi): Adjust.
11219 (solution_set_expand): Simplify and speedup.
11220 (solution_set_add): Inline into ...
11221 (set_union_with_increment): ... this. Adjust accordingly.
11222 (do_sd_constraint): Likewise.
11223 (do_ds_constraint): Likewise.
11224 (do_complex_constraint): Simplify.
11225 (build_pred_graph): Adjust.
11226 (solve_graph): Likewise. Simplify and speedup.
11227 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11228 get_constraint_for_component_ref, get_constraint_for_1,
11229 first_vi_for_offset, first_or_preceding_vi_for_offset,
11230 create_function_info_for, create_variable_info_for_1,
11231 create_variable_info_for, intra_create_variable_infos): Adjust.
11232 (init_base_vars): Push NULL for ID zero.
11233 (compute_points_to_sets): Adjust.
11235 2013-03-20 Richard Biener <rguenther@suse.de>
11237 * cfgloop.c (verify_loop_structure): Streamline and avoid
11238 ICEing on corrupt loop tree.
11239 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11242 2013-03-20 Richard Biener <rguenther@suse.de>
11244 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11245 check whether an SSA update is needed.
11247 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11249 * config/mips/constraints.md (T): Rename to...
11253 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11254 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11256 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11258 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11259 (*subsi3_carryin_uxtw): Likewise.
11261 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11263 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11264 (*rorsi3_insn_uxtw): Likewise.
11266 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11268 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11269 (*extrsi5_insn_uxtw): Likewise.
11271 2013-03-19 Richard Biener <rguenther@suse.de>
11273 PR tree-optimization/56273
11274 * passes.c (init_optimization_passes): Move second VRP after DOM.
11276 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
11278 * config/i386/i386.md (*movti_internal): Merge from
11279 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11280 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11281 nox64 isa attributes.
11283 2013-03-18 Richard Biener <rguenther@suse.de>
11285 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11287 (merge_node_constraints): Likewise.
11288 (build_succ_graph): Likewise.
11289 (valid_graph_edge): Inline into single caller.
11290 (unify_nodes): Likewise. Use bitmap_set_bit return value
11292 (scc_visit): Fix formatting and variable use.
11293 (do_sd_constraint): Use gcc_checking_assert.
11294 (do_ds_constraint): Likewise.
11295 (do_complex_constraint): Likewise.
11296 (condense_visit): Likewise. Cleanup.
11297 (dump_pred_graph): New function.
11298 (perform_var_substitution): Dump the pred-graph before
11299 variable substitution.
11300 (find_equivalent_node): Use gcc_checking_assert.
11301 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11303 2013-03-18 Richard Biener <rguenther@suse.de>
11305 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11306 Remove cond_expr_stmt_list argument and do not gimplify the
11308 (vect_loop_versioning): Adjust.
11309 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11310 Cleanup to use less temporaries.
11311 (vect_create_data_ref_ptr): Cleanup.
11313 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11315 PR tree-optimization/56635
11316 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11317 require types_compatible_p types.
11319 2013-03-18 Nick Clifton <nickc@redhat.com>
11321 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11322 spurious backslash.
11324 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11325 Add missing line to comment describing function.
11327 2013-03-18 Richard Biener <rguenther@suse.de>
11329 PR tree-optimization/56210
11330 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11331 Handle string / character search functions.
11332 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11334 2013-03-18 Richard Biener <rguenther@suse.de>
11336 PR middle-end/56483
11337 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11338 and implement properly.
11339 * gimple.h (gimple_cond_single_var_p): Remove.
11341 2013-03-18 Richard Biener <rguenther@suse.de>
11343 * tree-data-ref.h (find_data_references_in_loop): Declare.
11344 * tree-data-ref.c (get_references_in_stmt): Use a stack
11345 vector pre-allocated in the callers.
11346 (find_data_references_in_stmt): Adjust.
11347 (graphite_find_data_references_in_stmt): Likewise.
11348 (create_rdg_vertices): Likewise.
11349 (find_data_references_in_loop): Export.
11350 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11351 Compute dependences here...
11352 (vect_analyze_data_refs): ...not here. When we encounter
11353 a non-vectorizable data reference in basic-block vectorization
11354 truncate the data reference vector. Do not bother to
11355 fixup data-dependence information for gather loads.
11356 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11357 of data references, as reported.
11359 2013-03-18 Richard Biener <rguenther@suse.de>
11361 PR tree-optimization/3713
11362 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11363 has_constants and expr.
11364 (stmt_has_constants): Properly valueize SSA names when deciding
11365 whether the stmt has constants.
11367 2013-03-18 Richard Biener <rguenther@suse.de>
11369 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11370 whole function when there is nothing to do.
11371 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11372 * tree-vectorizer.c (vectorize_loops): Update virtual and
11373 loop-closed SSA once.
11374 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11376 2013-03-18 Richard Biener <rguenther@suse.de>
11378 PR middle-end/56113
11379 * domwalk.c (bb_postorder): New global static.
11380 (cmp_bb_postorder): New function.
11381 (walk_dominator_tree): Replace scheme imposing an order for
11382 visiting dominator sons by one sorting them at the time they
11383 are pushed on the stack.
11385 2013-03-18 Richard Biener <rguenther@suse.de>
11387 PR tree-optimization/39326
11388 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11389 (struct mem_ref): Replace mem member with ao_ref typed member.
11390 (MEM_ANALYZABLE): Adjust.
11391 (memref_eq): Likewise.
11392 (mem_ref_alloc): Likewise.
11393 (gather_mem_refs_stmt): Likewise.
11394 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11395 (execute_sm_if_changed_flag_set): Adjust.
11396 (execute_sm): Likewise.
11397 (ref_always_accessed_p): Likewise.
11398 (refs_independent_p): Likewise.
11399 (can_sm_ref_p): Likewise.
11401 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11404 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11405 return 1 even for !unsignedp.
11407 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11409 * config/i386/i386.md (isa): Add x64 and nox64.
11410 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11411 (*pushtf): Enable *roF alternative for x64 isa only.
11412 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11413 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11414 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11415 (*movtf_internal): Merge from *movtf_internal_rex64 and
11416 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11417 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11418 nox64 isa attributes.
11419 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11420 nox64 isa attributes.
11421 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11423 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11425 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11427 2013-03-17 Jakub Jelinek <jakub@redhat.com>
11430 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11431 class names. Remove trailing comma after "ALL_REGS".
11433 2013-03-16 Jan Hubicka <jh@suse.cz>
11435 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11436 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11437 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11438 of cgraph_get_create_node.
11439 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11441 2013-03-16 Jason Merrill <jason@redhat.com>
11444 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11445 with DW_AT_default_value.
11447 2013-03-16 Jakub Jelinek <jakub@redhat.com>
11449 * BASE-VER: Set to 4.9.0.
11451 2013-03-14 Andi Kleen <ak@linux.intel.com>
11454 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11455 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11456 Document _x* TSX intrinsics.
11458 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11459 David Holsgrove <david.holsgrove@xilinx.com>
11461 * configure.ac: Add MicroBlaze TLS support detection.
11462 * configure: Regenerate.
11463 * config/microblaze/microblaze-protos.h
11464 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11465 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11466 * config/microblaze/microblaze.c (microblaze_address_type): Add
11467 ADDRESS_TLS and tls_reloc address types.
11468 (microblaze_address_info): Add tls_reloc.
11469 (TARGET_HAVE_TLS): Define.
11470 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11471 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11472 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11473 load_tls_operand, microblaze_call_tls_get_addr,
11474 microblaze_legitimize_tls_address): New functions.
11475 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11476 (get_base_reg): Use microblaze_tls_symbol_p.
11477 (microblaze_classify_address): Handle TLS.
11478 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11479 label_mentioned_p and microblaze_tls_referenced_p.
11480 (microblaze_legitimize_address): Handle TLS.
11481 (microblaze_address_insns): Handle ADDRESS_TLS.
11482 (pic_address_needs_scratch): Handle TLS.
11483 (print_operand_address): Handle TLS.
11484 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11485 (microblaze_expand_move): Handle TLS.
11486 (microblaze_legitimate_constant_p): Check
11487 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11488 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11489 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11490 (PIC_OFFSET_TABLE_REGNUM): Set.
11491 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11492 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11493 (addsi3, movsi_internal2, movdf_internal): Update constraints
11494 * config/microblaze/predicates.md (arith_plus_operand): Define
11495 (move_operand): Redefine as move_src_operand,
11496 check microblaze_tls_referenced_p.
11498 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11500 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11501 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11503 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11505 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11508 2013-03-14 Jakub Jelinek <jakub@redhat.com>
11510 PR tree-optimization/53265
11511 * common.opt (Waggressive-loop-optimizations): New option.
11512 * tree-ssa-loop-niter.c: Include tree-pass.h.
11513 (do_warn_aggressive_loop_optimizations): New function.
11514 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11515 if number_of_latch_executions returned constant.
11516 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11517 early. If number_of_latch_executions returned constant, set
11518 nb_iterations_upper_bound back to it.
11519 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11521 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11522 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11524 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11525 (MULTILIB_OSDIRNAMES): Set.
11526 * genmultilib: If defaultosdirname doesn't start with :: , set
11527 defaultosdirname2 instead, clear it and emit two . multilib_raw
11528 entries instead of just one.
11530 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11532 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11533 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11534 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11535 (SUBTARGET_OVERRIDE_OPTIONS): New.
11537 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11540 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11541 (musermode): Convert to Var(TARGET_USERMODE).
11542 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11543 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11544 * config/sh/sh.c (sh_option_override): Use
11545 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11546 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11548 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11550 (udivsi3_i4_single, divsi3_i4_single): Use
11551 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11553 2013-03-13 Dave Korn <dave.korn.cygwin@....>
11555 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11558 2013-03-13 Richard Biener <rguenther@suse.de>
11560 PR tree-optimization/56608
11561 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11562 calls when vectorizing basic-blocks.
11564 2013-03-13 Jakub Jelinek <jakub@redhat.com>
11567 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11570 2013-03-12 Jakub Jelinek <jakub@redhat.com>
11572 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11574 2013-03-11 Jan Hubicka <jh@suse.cz>
11577 * lto-streamer-out.c (output_symbol_p): Skip references from
11578 constructors of external variables.
11580 2013-03-11 Jan Hubicka <jh@suse.cz>
11582 PR middle-end/56571
11583 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11585 * emit-rtl.c (verify_rtx_sharing): Likewise.
11586 (copy_insn_1): Likewise.
11587 * rtl.c (copy_rtx): Likewise.
11589 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
11592 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11593 output_operand_lossage message.
11595 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
11598 * arm.c (shift_op): Validate RTL pattern on the fly.
11599 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11602 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11605 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11606 new call patterns that clobber %fr12.
11607 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11608 split and postreload patterns.
11609 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11610 registers %fr12 and %fr12R as call used.
11612 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11614 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11615 (canon_address, record_store, replace_read, check_mem_read_rtx,
11616 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11617 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11618 rest_of_handle_dse): Likewise.
11620 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11622 PR middle-end/56524
11623 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11625 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11626 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11627 (save_optabs_if_changed): Replace with...
11628 (init_tree_optimization_optabs): ...this.
11629 * optabs.c (save_optabs_if_changed): Rename to...
11630 (init_tree_optimization_optabs): ...this. Take the optimization node
11631 as argument. Do nothing if the base optabs are already correct.
11632 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11633 to recompute optabs.
11634 * function.h (function): Remove optabs field.
11635 * function.c (invoke_set_current_function_hook): Call
11636 init_tree_optimization_optabs. Use the result to initialize
11639 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
11641 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11642 if GTMA_HAS_NO_INSTRUMENTATION.
11643 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11644 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11645 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11646 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11647 GTMA_HAS_NO_INSTRUMENTATION.
11649 2013-03-08 Jakub Jelinek <jakub@redhat.com>
11651 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11654 2013-03-08 Marek Polacek <polacek@redhat.com>
11655 Jakub Jelinek <jakub@redhat.com>
11657 PR tree-optimization/56478
11658 * predict.c (is_comparison_with_loop_invariant_p): Change the
11659 type of loop_step to tree.
11660 (predict_loops): Adjust.
11661 (predict_iv_comparison): Perform the computations on double_ints.
11663 2013-03-08 Richard Biener <rguenther@suse.de>
11665 PR tree-optimization/56570
11666 * tree-cfg.c (verify_expr_location_1): Verify locations for
11668 * tree-sra.c (create_access_replacement): Strip locations
11669 from DECL_DEBUG_EXPRs.
11671 2013-03-08 Richard Biener <rguenther@suse.de>
11673 * tree-inline.c (expand_call_inline): Do not associate
11674 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11675 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11677 2013-03-08 Richard Biener <rguenther@suse.de>
11679 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11680 or block changes with -Og. Fix for location / block encoding
11681 changes and PHI arguments with locations.
11683 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11685 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11687 (struct output_info): Likewise.
11688 (register_overhead): Remove bad gcc_assert.
11689 (bitmap_find_bit): If there is only a single bitmap element, do not
11690 count a miss as a search.
11691 (print_statistics): Update for counter type changes.
11692 (dump_bitmap_statistics): Likewise. Print headers such that they
11693 are properly lined up with the printed counters.
11695 2013-03-07 Jakub Jelinek <jakub@redhat.com>
11697 PR tree-optimization/56559
11698 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11699 check that it has only a single use.
11701 2013-03-07 Richard Biener <rguenther@suse.de>
11703 * doc/invoke.texi (fwhole-program): Discourage use in combination
11706 2013-03-06 Jakub Jelinek <jakub@redhat.com>
11708 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11710 PR tree-optimization/56539
11711 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11712 instead of GSI_CONTINUE_LINKING as last argument to
11713 force_gimple_operand_gsi. Adjust function comment.
11715 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11718 PR middle-end/56548
11719 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11720 promoted mode, convert the result back to the original mode.
11722 2013-03-06 Richard Biener <rguenther@suse.de>
11724 PR middle-end/56294
11725 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11726 (insert_updated_phi_nodes_compare_uids): New function.
11727 (update_ssa): Sort symbols_to_rename after UID before
11728 traversing it to insert PHI nodes.
11730 2013-03-06 Richard Biener <rguenther@suse.de>
11732 PR middle-end/50494
11733 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11734 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11737 2013-02-13 Richard Biener <rguenther@suse.de>
11740 * varasm.c (output_constant_def_1): Get the decl representing
11741 the constant as argument.
11742 (output_constant_def): Wrap output_constant_def_1.
11743 (make_decl_rtl): Use output_constant_def_1 with the decl
11744 representing the constant.
11745 (build_constant_desc): Optionally re-use a decl already
11746 representing the constant.
11747 (tree_output_constant_def): Adjust.
11749 2013-03-06 Joey Ye <joey.ye@arm.com>
11752 * gcc.c (convert_white_space): New function.
11753 (main): Handles white space in function name.
11755 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11758 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11759 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11760 to SH_DIV_CALL_TABLE for TARGET_SH2.
11761 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11763 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11764 call-table options.
11766 2013-03-05 Sterling Augustine <saugustine@google.com>
11767 Cary Coutant <ccoutant@google.com>
11770 * dwarf2out.c (resolve_addr): Don't call
11771 remove_loc_list_addr_table_entries a second time for the same
11774 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11777 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11778 (avoid_complex_debug_insns): New function.
11779 (expand_debug_locations): Call it.
11781 PR rtl-optimization/56484
11782 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11783 lifetimes of hard registers on small register class machines.
11785 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11787 * config/microblaze/microblaze-protos.h: Rename
11788 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11789 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11791 (microblaze_fast_interrupt_function_p): New function.
11792 (microblaze_is_interrupt_handler): Rename to
11793 microblaze_is_interrupt_variant and add fast_interrupt check.
11794 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11795 (save_restore_insns): Likewise.
11796 (compute_frame_size): Likewise.
11797 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11798 (microblaze_globalize_label): Likewise.
11799 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11800 * config/microblaze/microblaze.md: Use wrapper
11801 microblaze_is_interrupt_variant.
11803 2013-03-05 Kai Tietz <ktietz@redhat.com>
11805 * sdbout.c (sdbout_one_type): Switch to current function's section
11806 supporting cold/hot.
11808 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11810 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11813 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11815 PR middle-end/56461
11816 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11817 if VALGRIND_GET_VBITS is defined, temporarily make object
11818 memory all defined, and restore previous valgrind addressability
11819 and definability afterwards. Free this_object at the end.
11821 PR middle-end/56461
11822 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11823 right before calling lra_create_live_ranges, also call it
11824 when clearing live_p. Only call lra_clear_live_ranges
11825 at the end if live_p.
11827 PR middle-end/56461
11828 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11830 2013-03-05 Richard Biener <rguenther@suse.de>
11832 PR tree-optimization/56521
11833 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11836 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11839 * except.h (remove_unreachable_eh_regions): New prototype.
11840 * except.c (remove_eh_handler_splicer): New function, split out
11841 of remove_eh_handler.
11842 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11843 warning about running it on many EH regions one at a time.
11844 (remove_unreachable_eh_regions_worker): New function, walk the
11845 EH tree in depth-first order and remove non-marked regions.
11846 (remove_unreachable_eh_regions): New function.
11847 * tree-eh.c (mark_reachable_handlers): New function, split out
11848 from remove_unreachable_handlers.
11849 (remove_unreachable_handlers): Use mark_reachable_handlers and
11850 remove_unreachable_eh_regions.
11851 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11852 and remove_unreachable_eh_regions.
11854 2013-03-05 Richard Biener <rguenther@suse.de>
11856 PR middle-end/56525
11857 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11858 not freeing them until the end.
11860 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11862 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11864 2013-03-05 Richard Biener <rguenther@suse.de>
11866 PR tree-optimization/56270
11867 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11868 of loads after scheduling an SLP instance.
11870 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11872 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11874 (check_gcc_parallelize): Run guality.exp as a separate job from
11875 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11876 struct-layout-1.exp with stackalign.exp.
11878 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11880 PR middle-end/56461
11881 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11882 load_index sbitmap even if some bit in it isn't set.
11884 PR middle-end/56461
11885 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11886 (discover_iteration_bound_by_body_walk): Change queues to
11887 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11888 spelling in comment. Call safe_push on queues[bound_index] directly.
11889 Release queues[queue_index] in every iteration unconditionally.
11890 Release bounds vector.
11892 PR middle-end/56461
11893 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11894 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11895 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11898 2013-03-05 Richard Biener <rguenther@suse.de>
11901 * tree-inline.c (remap_blocks_to_null): New function.
11902 (expand_call_inline): When expanding a call stmt without
11903 an associated block inline remap all callee blocks to NULL.
11905 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11907 PR rtl-optimization/56494
11908 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11909 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11910 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11912 PR middle-end/56461
11913 * sel-sched-ir.c (free_sched_pools): Release
11914 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11915 if succs_info_pool.max_top isn't -1.
11918 * opts.c (opts_obstack, opts_concat): Moved to...
11919 * opts-common.c (opts_obstack, opts_concat): ... here.
11921 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11923 PR middle-end/56461
11924 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11926 2013-03-04 Martin Jambor <mjambor@suse.cz>
11928 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11929 all appropriate places.
11931 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
11933 PR tree-optimization/56424
11934 * ipa-split.c (split_function): Do not set the RSO flag if result is
11935 not by reference and its type is a register type.
11937 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
11939 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
11940 (microblaze_legitimate_pic_operand): Likewise
11941 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
11942 new function microblaze_legitimate_pic_operand
11943 * config/microblaze/microblaze-protos.h
11944 (microblaze_legitimate_pic_operand): Declare.
11946 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11948 * config/microblaze/predicates.md (call_insn_simple_operand):
11949 New predicate for supported rtx code types.
11950 * config/microblaze/microblaze.md (call_internal1): Use
11951 call_insn_simple_operand predicate.
11953 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11955 PR middle-end/56461
11956 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11957 partitions.ordered_remove.
11959 PR middle-end/56461
11960 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11961 vec_oprnds0.create (1) for modifier == NONE.
11963 PR middle-end/56461
11964 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11965 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11966 vec_oprnds1 right before pushing anything to it for
11969 PR middle-end/56461
11970 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11971 set nbbs to 0 instead of having separate code path.
11972 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11973 instead of false as last argument if returning NULL.
11975 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11977 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11978 the attribute is now called "target" instead of "option".
11979 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11980 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11981 attribute/pragma name for TARGET_OPTION_VALID_P and
11982 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11983 * doc/tm.texi: Regenerated.
11985 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
11987 * config/microblaze/microblaze.c:
11988 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
11989 * config/microblaze/microblaze.h: Add -mxl-reorder to
11991 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11992 instructions emitted if TARGET_REORDER.
11993 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11994 or 0 for -m/-mno case, but initialises as 2 to detect default use case
11997 2013-03-01 Xinliang David Li <davidxl@google.com>
11999 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
12002 2013-03-01 Jakub Jelinek <jakub@redhat.com>
12004 PR middle-end/56461
12005 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
12006 vector even when returning true. Fix up function comment formatting.
12008 PR middle-end/56461
12009 * ira-build.c (ira_loop_nodes_count): New variable.
12010 (create_loop_tree_nodes): Initialize it.
12011 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
12013 PR middle-end/56461
12014 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
12015 method on dr_chain and result_chain.
12016 * tree-vect-stmts.c (vectorizable_store): Only call
12017 result_chain.create if j == 0.
12019 PR middle-end/56461
12020 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
12021 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
12022 before overwriting it.
12024 2013-03-01 Tobias Burnus <burnus@net-b.de>
12026 * doc/extended.texi (C Extensions): Change order in @menu
12028 (Other MIPS Built-in Functions): Move last MIPS entry before
12029 "picoChip Built-in Functions".
12030 (SH Built-in Functions): Move after RX Built-in Functions.
12031 * doc/gcc.texi (Introduction): Change order in @menu
12033 * doc/md.texi (Constraints): Ditto.
12034 * gty.texi (Type Information): Ditto.
12035 (User-provided marking routines for template types): Make
12037 * doc/invoke.texi (AArch64 Options): Move before
12038 "Adapteva Epiphany Options".
12040 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
12041 Jakub Jelinek <jakub@redhat.com>
12044 * asan.c (gate_asan): Lookup no_sanitize_address instead of
12045 no_address_safety_analysis attribute.
12046 * doc/extend.texi (no_address_safety_attribute): Rename to
12047 no_sanitize_address attribute, mention no_address_safety_analysis
12048 attribute as deprecated alias.
12050 2013-02-28 Jakub Jelinek <jakub@redhat.com>
12052 PR middle-end/56461
12053 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
12054 type to vec<vec<tree> > *.
12055 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
12056 to be vec<tree> instead of vec<tree> *, set vec_defs
12057 to vNULL and call vec_defs.create (number_of_vects), adjust other
12059 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
12060 vectorizable_condition): Adjust vect_get_slp_defs callers.
12062 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12064 * config/aarch64/aarch64.c
12065 (aarch64_float_const_representable): Remove unused variable.
12067 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12069 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
12071 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12073 * config/aarch64/aarch64-builtins.c
12074 (aarch64_init_simd_builtins): Make static.
12076 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12078 * config/aarch64/aarch64.c
12079 (aarch64_simd_make_constant): Make static.
12081 2013-02-28 Martin Jambor <mjambor@suse.cz>
12083 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
12084 with no initialization to the RHS of debug statements.
12086 2013-02-28 Martin Jambor <mjambor@suse.cz>
12088 PR tree-optimization/56294
12089 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
12091 (get_access_replacement): Do not call create_access_replacement.
12092 Assert a replacement exists.
12093 (get_repl_default_def_ssa_name): Create the replacement declaration
12096 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12098 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
12099 final_end_function.
12101 2013-02-28 Marek Polacek <polacek@redhat.com>
12103 PR rtl-optimization/56466
12104 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
12105 if we're changing a loop.
12106 (peel_loops_completely): Likewise.
12108 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12111 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
12113 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12116 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
12117 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
12118 INTX_FTYPE_FX, FX_FTYPE_INTX.
12119 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
12121 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12123 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12124 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12125 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12126 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12127 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12128 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12129 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12130 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12131 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12132 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12133 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12134 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12135 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12136 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12137 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12138 (avrxmega6): Increase max flash segments from 5 to 6.
12139 * config/avr/t-multilib: Regenerate.
12140 * config/avr/avr-tables.opt: Regenerate.
12141 * doc/avr-mmcu.texi: Regenerate.
12143 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12145 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12146 (avr_device_to_arch): Rename to avr_device_to_ld.
12147 (avr_device_to_as): New prototype.
12148 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12149 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12150 * config/avr/driver-avr.c (avr_device_to_as): New.
12151 (avr_device_to_arch): Rename to avr_device_to_ld.
12153 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12155 PR middle-end/56461
12156 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12157 method on dr_chain and result_chain.
12159 PR middle-end/56461
12160 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12161 pointer_set_destroy on not_executed_last_iteration.
12163 PR middle-end/56461
12164 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
12166 PR middle-end/56461
12167 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12168 FOR_EACH_DEFINED_FUNCTION when freeing state.
12170 PR middle-end/56461
12171 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12173 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12176 PR middle-end/56461
12177 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12178 known_aggs[i].items and release known_aggs vector.
12180 PR middle-end/56461
12181 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12183 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12185 * config/microblaze/microblaze.c (microblaze_emit_compare):
12186 Use xor for EQ/NE comparisions.
12187 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12188 (cbranchsf4): Adjust operator to comparison_operator.
12190 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12192 PR middle-end/56461
12193 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12195 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12196 vec_safe_push, always update *slot.
12197 (redirect_edge_var_map_clear): Use vec_free.
12198 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12199 (free_var_map_entry): Use vec_free.
12200 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12201 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12203 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
12205 PR middle-end/45472
12206 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12207 when the may_trap_p bit of the exprs being merged differs.
12208 Reorder tests for speculativeness in the logical and operator.
12210 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12212 * incpath.c (add_standard_paths): Use reconcat instead of concat
12213 where appropriate and avoid leaking memory.
12215 * opts.h: Include obstack.h.
12216 (opts_concat): New prototype.
12217 (opts_obstack): New declaration.
12218 * opts.c (opts_concat): New function.
12219 (opts_obstack): New variable.
12220 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12221 (finish_options): Use opts_concat instead of concat
12222 and XOBNEWVEC instead of XNEWVEC.
12223 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12224 generate_option): Likewise.
12225 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12226 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12229 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12230 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12232 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12234 PR middle-end/56461
12235 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12237 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12239 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12240 (arm_block_move_unaligned_straight): Likewise.
12241 (arm_adjust_block_mem): Likewise.
12243 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12246 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12247 temp, cond and label.
12248 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12251 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12252 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12255 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12256 of prologue/epilogue functions.
12259 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12260 Remove unused variable cfa_offset.
12261 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12264 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12265 type promotion to unsigned.
12268 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12269 for HOST_WIDE_INT of 32 bit / same size as int.
12270 (arm_block_move_unaligned_straight): Likewise.
12271 (arm_adjust_block_mem): Likewise.
12274 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12277 2013-02-26 Marek Polacek <polacek@redhat.com>
12279 PR tree-optimization/56426
12280 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
12282 2013-02-26 Richard Biener <rguenther@suse.de>
12285 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12286 unused variable loops.
12288 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12290 PR tree-optimization/56448
12291 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12292 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12293 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12294 later operands of the references, or even first operand for
12295 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12297 PR tree-optimization/56443
12298 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12299 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12300 to type_for_mode langhook.
12302 2013-02-25 Matt Turner <mattst88@gmail.com>
12304 * doc/invoke.texi: Document r4700.
12306 2013-02-25 Richard Biener <rguenther@suse.de>
12308 PR tree-optimization/56175
12309 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12311 (simplify_bitwise_binary): ... here. Also guard the conversion
12312 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12314 2013-02-25 Catherine Moore <clm@codesourcery.com>
12317 2013-02-24 Catherine Moore <clm@codesourcery.com>
12318 Maciej W. Rozycki <macro@codesourcery.com>
12319 Tom de Vries <tom@codesourcery.com>
12320 Nathan Sidwell <nathan@codesourcery.com>
12321 Iain Sandoe <iain@codesourcery.com>
12322 Nathan Froyd <froydnj@codesourcery.com>
12323 Chao-ying Fu <fu@mips.com>
12325 * doc/extend.texi: (micromips, nomicromips, nocompression):
12326 Document new function attributes.
12327 * doc/invoke.texi (minterlink-compressed, mmicromips,
12328 m14k, m14ke, m14kec): Document new options.
12329 (minterlink-mips16): Update documentation.
12330 * doc/md.texi (ZC, ZD): Document new constraints.
12331 * configure.ac (gcc_cv_as_micromips): Check if linker
12332 supports the .set micromips directive.
12333 * configure: Regenerate.
12334 * config.in: Regenerate.
12335 * config/mips/mips-tables.opt: Regenerate.
12336 * config/mips/micromips.md: New file.
12337 * constraints.md (ZC, AD): New constraints.
12338 * config/mips/predicates.md (movep_src_register): New predicate.
12339 (movep_src_operand): New predicate.
12340 (non_volatile_mem_operand): New predicate.
12341 * config/mips/mips.md (multimem): New type.
12342 (length): Differentiate between 17-bit and 18-bit branch offsets.
12343 (MOVEP1, MOVEP2): New mode iterator.
12344 (mov_<load>l): Use ZC constraint.
12345 (mov_<load>r): Likewise.
12346 (mov_<store>l): Likewise.
12347 (mov_<store>r): Likewise.
12348 (*branch_equality<mode>_inverted): Add microMIPS support.
12349 (*branch_equality<mode>): Likewise.
12350 (*jump_absolute): Likewise.
12351 (indirect_jump_<mode>): Likewise.
12352 (tablejump_<mode>): Likewise.
12353 (<optab>_internal): Likewise.
12354 (sibcall_internal): Likewise.
12355 (sibcall_value_internal): Likewise.
12356 (prefetch): Use constraint ZD.
12357 * config/mips/mips.opt (minterlink-compressed): New option.
12358 (minterlink-mips16): Now an alias for minterlink-compressed.
12359 (mmicromips): New option.
12360 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12361 (compare_and_swap_12): Likewise.
12362 (sync_add<mode>): Likewise.
12363 (sync_<optab>_12): Likewise.
12364 (sync_old_<optab>_12): Likewise.
12365 (sync_new_<optab>_12): Likewise.
12366 (sync_nand_12): Likewise.
12367 (sync_old_nand_12): Likewise.
12368 (sync_new_nand_12): Likewise.
12369 (sync_sub<mode>): Likewise.
12370 (sync_old_add<mode>): Likewise.
12371 (sync_old_sub<mode>): Likewise.
12372 (sync_new_add<mode>): Likewise.
12373 (sync_new_sub<mode>): Likewise.
12374 (sync_<optab><mode>): Likewise.
12375 (sync_old_<optab><mode>): Likewise.
12376 (sync_new_<optab><mode>): Likewise.
12377 (sync_nand<mode>): Likewise.
12378 (sync_old_nand<mode>): Likewise.
12379 (sync_new_nand<mode>): Likewise.
12380 (sync_lock_test_and_set<mode>): Likewise.
12381 (test_and_set_12): Likewise.
12382 (atomic_compare_and_swap<mode>): Likewise.
12383 (atomic_exchange<mode>_llsc): Likewise.
12384 (atomic_fetch_add<mode>_llsc): Likewise.
12385 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12386 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12387 (umips_save_restore_pattern_p): Likewise.
12388 (umips_load_store_pair_p): Likewise.
12389 (umips_output_load_store_pair): Likewise.
12390 (umips_movep_target_p): Likewise.
12391 (umips_12bit_offset_address_p): Likewise.
12392 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12393 (mips_base_mips16): Rename this...
12394 (mips_base_compression_flags): ...to this. Update all uses.
12395 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12396 (mips_mips16_decl_p): Delete.
12397 (mips_nomips16_decl_p): Delete.
12398 (mips_get_compress_on_flags): New function.
12399 (mips_get_compress_off_flags): New function.
12400 (mips_get_compress_mode): New function.
12401 (mips_get_compress_on_name): New function.
12402 (mips_get_compress_off_name): New function.
12403 (mips_insert_attributes): Support multiple compression types.
12404 (mips_merge_decl_attributes): Likewise.
12405 (umips_12bit_offset_address_p): New function.
12406 (mips_start_function_definition): Emit .set micromips directive.
12407 (mips_call_may_need_jalx_p): New function.
12408 (mips_function_ok_for_sibcall): Add microMIPS support.
12409 (mips_print_operand_punctuation): Support short delay slots and
12411 (umips_swm_mask, umips_swm_encoding): New.
12412 (umips_build_save_restore): New function.
12413 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12414 (was_mips16_p): Remove.
12415 (old_compression_mode): New.
12416 (mips_set_compression_mode): New function.
12417 (mips_set_current_function): Add microMIPS support.
12418 (mips_option_override): Likewise.
12419 (umips_save_restore_pattern_p): New function.
12420 (umips_output_save_restore): New function.
12421 (umips_load_store_pair_p_1): New function.
12422 (umips_load_store_pair_p): New function.
12423 (umips_output_load_store_pair_1): New function.
12424 (umips_output_load_store_pair): New function.
12425 (umips_movep_target_p) New function.
12426 (mips_prepare_pch_save): Add microMIPS support.
12427 * config/mips/mips.h (TARGET_COMPRESSION): New.
12428 (TARGET_CPU_CPP_BUILTINS): Update macro
12429 to use new compression flags and to support microMIPS.
12430 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12431 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12432 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12433 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12434 (ASM_SPEC): Support mmicromips and mno-micromips.
12435 (M16STORE_REG_P): New macro.
12436 (MIPS_CALL): Support TARGET_MICROMIPS.
12437 (MICROMIPS_J): New macro.
12438 (mips_base_mips16): Rename this...
12439 (mips_base_compression_flags): ...to this.
12440 (UMIPS_12BIT_OFFSET_P): New macro.
12441 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12442 (MULTILIB_DIRNAMES): Likewise.
12444 2013-02-25 Tom de Vries <tom@codesourcery.com>
12446 PR rtl-optimization/56131
12447 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12448 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12449 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12451 2013-02-25 Tobias Burnus <burnus@net-b.de>
12453 * doc/invoke.texi (-fsanitize=): Move from optimization
12454 to debugging options.
12456 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12458 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12460 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12461 Alexander Monakov <amonakov@ispras.ru>
12463 PR middle-end/56077
12464 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12465 flush pending lists also on non-jumps. Adjust comment.
12467 2013-02-24 Catherine Moore <clm@codesourcery.com>
12468 Maciej W. Rozycki <macro@codesourcery.com>
12469 Tom de Vries <tom@codesourcery.com>
12470 Nathan Sidwell <nathan@codesourcery.com>
12471 Iain Sandoe <iain@codesourcery.com>
12472 Nathan Froyd <froydnj@codesourcery.com>
12473 Chao-ying Fu <fu@mips.com>
12475 * doc/extend.texi: (micromips, nomicromips, nocompression):
12476 Document new function attributes.
12477 * doc/invoke.texi (minterlink-compressed, mmicromips,
12478 m14k, m14ke, m14kec): Document new options.
12479 (minterlink-mips16): Update documentation.
12480 * doc/md.texi (ZC, ZD): Document new constraints.
12481 * configure.ac (gcc_cv_as_micromips): Check if linker
12482 supports the .set micromips directive.
12483 * configure: Regenerate.
12484 * config.in: Regenerate.
12485 * config/mips/mips-tables.opt: Regenerate.
12486 * config/mips/micromips.md: New file.
12487 * constraints.md (ZC, AD): New constraints.
12488 * config/mips/predicates.md (movep_src_register): New predicate.
12489 (movep_src_operand): New predicate.
12490 (non_volatile_mem_operand): New predicate.
12491 * config/mips/mips.md (multimem): New type.
12492 (length): Differentiate between 17-bit and 18-bit branch offsets.
12493 (MOVEP1, MOVEP2): New mode iterator.
12494 (mov_<load>l): Use ZC constraint.
12495 (mov_<load>r): Likewise.
12496 (mov_<store>l): Likewise.
12497 (mov_<store>r): Likewise.
12498 (*branch_equality<mode>_inverted): Add microMIPS support.
12499 (*branch_equality<mode>): Likewise.
12500 (*jump_absolute): Likewise.
12501 (indirect_jump_<mode>): Likewise.
12502 (tablejump_<mode>): Likewise.
12503 (<optab>_internal): Likewise.
12504 (sibcall_internal): Likewise.
12505 (sibcall_value_internal): Likewise.
12506 (prefetch): Use constraint ZD.
12507 * config/mips/mips.opt (minterlink-compressed): New option.
12508 (minterlink-mips16): Now an alias for minterlink-compressed.
12509 (mmicromips): New option.
12510 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12511 (compare_and_swap_12): Likewise.
12512 (sync_add<mode>): Likewise.
12513 (sync_<optab>_12): Likewise.
12514 (sync_old_<optab>_12): Likewise.
12515 (sync_new_<optab>_12): Likewise.
12516 (sync_nand_12): Likewise.
12517 (sync_old_nand_12): Likewise.
12518 (sync_new_nand_12): Likewise.
12519 (sync_sub<mode>): Likewise.
12520 (sync_old_add<mode>): Likewise.
12521 (sync_old_sub<mode>): Likewise.
12522 (sync_new_add<mode>): Likewise.
12523 (sync_new_sub<mode>): Likewise.
12524 (sync_<optab><mode>): Likewise.
12525 (sync_old_<optab><mode>): Likewise.
12526 (sync_new_<optab><mode>): Likewise.
12527 (sync_nand<mode>): Likewise.
12528 (sync_old_nand<mode>): Likewise.
12529 (sync_new_nand<mode>): Likewise.
12530 (sync_lock_test_and_set<mode>): Likewise.
12531 (test_and_set_12): Likewise.
12532 (atomic_compare_and_swap<mode>): Likewise.
12533 (atomic_exchange<mode>_llsc): Likewise.
12534 (atomic_fetch_add<mode>_llsc): Likewise.
12535 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12536 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12537 (umips_save_restore_pattern_p): Likewise.
12538 (umips_load_store_pair_p): Likewise.
12539 (umips_output_load_store_pair): Likewise.
12540 (umips_movep_target_p): Likewise.
12541 (umips_12bit_offset_address_p): Likewise.
12542 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12543 (mips_base_mips16): Rename this...
12544 (mips_base_compression_flags): ...to this. Update all uses.
12545 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12546 (mips_mips16_decl_p): Delete.
12547 (mips_nomips16_decl_p): Delete.
12548 (mips_get_compress_on_flags): New function.
12549 (mips_get_compress_off_flags): New function.
12550 (mips_get_compress_mode): New function.
12551 (mips_get_compress_on_name): New function.
12552 (mips_get_compress_off_name): New function.
12553 (mips_insert_attributes): Support multiple compression types.
12554 (mips_merge_decl_attributes): Likewise.
12555 (umips_12bit_offset_address_p): New function.
12556 (mips_start_function_definition): Emit .set micromips directive.
12557 (mips_call_may_need_jalx_p): New function.
12558 (mips_function_ok_for_sibcall): Add microMIPS support.
12559 (mips_print_operand_punctuation): Support short delay slots and
12561 (umips_swm_mask, umips_swm_encoding): New.
12562 (umips_build_save_restore): New function.
12563 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12564 (was_mips16_p): Remove.
12565 (old_compression_mode): New.
12566 (mips_set_compression_mode): New function.
12567 (mips_set_current_function): Add microMIPS support.
12568 (mips_option_override): Likewise.
12569 (umips_save_restore_pattern_p): New function.
12570 (umips_output_save_restore): New function.
12571 (umips_load_store_pair_p_1): New function.
12572 (umips_load_store_pair_p): New function.
12573 (umips_output_load_store_pair_1): New function.
12574 (umips_output_load_store_pair): New function.
12575 (umips_movep_target_p) New function.
12576 (mips_prepare_pch_save): Add microMIPS support.
12577 * config/mips/mips.h (TARGET_COMPRESSION): New.
12578 (TARGET_CPU_CPP_BUILTINS): Update macro
12579 to use new compression flags and to support microMIPS.
12580 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12581 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12582 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12583 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12584 (ASM_SPEC): Support mmicromips and mno-micromips.
12585 (M16STORE_REG_P): New macro.
12586 (MIPS_CALL): Support TARGET_MICROMIPS.
12587 (MICROMIPS_J): New macro.
12588 (mips_base_mips16): Rename this...
12589 (mips_base_compression_flags): ...to this.
12590 (UMIPS_12BIT_OFFSET_P): New macro.
12591 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12592 (MULTILIB_DIRNAMES): Likewise.
12594 2013-02-24 Jakub Jelinek <jakub@redhat.com>
12597 * target-globals.c (save_target_globals): For init_reg_sets and
12598 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12600 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12602 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12603 * config/aarch64/t-aarch64
12604 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12606 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12608 PR inline-asm/56148
12609 * lra-constraints.c (process_alt_operands): Reload operand
12610 conflicting with earlier clobber only if no more other conflicting
12613 2013-02-22 Jakub Jelinek <jakub@redhat.com>
12616 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12617 if not linking a shared library.
12619 2013-02-22 Seth LaForge <sethml@google.com>
12621 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12623 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12625 * config/arm/arm.md (split for extendsidi): Update condition.
12626 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12627 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12628 (qhs_zextenddi_cstr): Likewise.
12630 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12632 PR middle-end/56420
12633 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12634 avoid signed wrapping.
12635 (expand_mult): Handle properly multiplication by
12636 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12637 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12638 in the compiler if coeff is HOST_WIDE_INT_MIN.
12639 (expand_divmod): Don't make ext_op1 static, change it's type to
12640 uhwi. Avoid undefined behavior in -INTVAL (op1).
12642 PR rtl-optimization/50339
12643 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12645 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12646 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12647 into splitting_ashiftrt field.
12648 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12650 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12653 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
12655 PR middle-end/56108
12656 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12657 are sure to go irrevocable.
12659 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
12661 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12662 scalars are valid operands.
12664 2013-02-21 Martin Jambor <mjambor@suse.cz>
12666 PR tree-optimization/56310
12667 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12668 only matching indices and non-negative final offsets.
12669 (intersect_aggregates_with_edge): Pass src_idx to
12670 agg_replacements_to_vector. Pass src_idx insstead of index to
12671 intersect_with_agg_replacements.
12673 2013-02-21 Martin Jambor <mjambor@suse.cz>
12675 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12676 instead of hard-wired defaults.
12678 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12680 * doc/invoke.texi (MIPS Options): Update documentation of the
12681 floating-point multiply-accumulate instruction restrictions.
12683 2013-02-21 Kostya Serebryany <kcc@google.com>
12685 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12686 asan_shadow_offset on x86_64 linux.
12688 2013-02-21 Richard Biener <rguenther@suse.de>
12690 PR tree-optimization/56415
12692 2013-02-11 Richard Biener <rguenther@suse.de>
12694 PR tree-optimization/56273
12695 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12698 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12701 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12704 PR inline-asm/56405
12705 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12706 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12708 2013-02-20 Jan Hubicka <jh@suse.cz>
12710 PR tree-optimization/56265
12711 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12712 when target is referenced for first time.
12714 2013-02-20 Richard Biener <rguenther@suse.de>
12716 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12717 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12718 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12719 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12720 not return anything.
12721 (rename_ssa_copies): Do not remove unused locals.
12722 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12723 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12724 * passes.c (execute_function_todo): Do not schedule unused locals
12725 removal if cleanup_tree_cfg did something.
12726 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12727 about the number of removed locals.
12729 2013-02-20 Richard Biener <rguenther@suse.de>
12731 PR tree-optimization/56398
12732 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12734 2013-02-20 Martin Jambor <mjambor@suse.cz>
12736 PR tree-optimization/55334
12737 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12738 restricted pointers to arrays.
12740 2013-02-20 Richard Biener <rguenther@suse.de>
12741 Jakub Jelinek <jakub@redhat.com>
12743 PR tree-optimization/56396
12744 * tree-ssa-ccp.c (n_const_val): New static variable.
12745 (get_value): Return NULL for SSA names we don't have a lattice
12747 (ccp_initialize): Initialize n_const_val.
12748 * tree-ssa-copy.c (n_copy_of): New static variable.
12749 (init_copy_prop): Initialize n_copy_of.
12750 (get_value): Return NULL_TREE for SSA names we don't have a
12753 2013-02-20 Martin Jambor <mjambor@suse.cz>
12755 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12757 2013-02-20 Richard Biener <rguenther@suse.de>
12759 * genpreds.c (write_lookup_constraint): Do not compare first
12760 letter of the constraint again.
12762 2013-02-20 Richard Biener <rguenther@suse.de>
12764 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12766 (get_use_iv_cost): Terminate hashtable walk when coming across
12769 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12771 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12772 reassociation for avx2 targets.
12774 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12776 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12777 Add version check for v8.10.a to enable microblaze_has_clz
12778 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12779 version and TARGET_PATTERN_COMPARE check
12780 * config/microblaze/microblaze.md: New clzsi2 instruction
12782 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12784 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12785 function before branching.
12787 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12789 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12791 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12793 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12795 PR middle-end/55889
12796 * sel-sched.c: Include ira.h.
12797 (implicit_clobber_conflict_p): New function.
12798 (moveup_expr): Use it.
12799 * Makefile.in (sel-sched.o): Depend on ira.h.
12801 2013-02-19 Richard Biener <rguenther@suse.de>
12803 PR tree-optimization/56384
12804 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12805 (vn_hash_type): Split out from ...
12806 (vn_hash_constant_with_type): ... here.
12807 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12808 (vn_phi_eq): Compare types from vn_phi_s structure.
12809 (vn_phi_lookup): Populate vn_phi_s type.
12810 (vn_phi_insert): Likewise.
12812 2013-02-19 Jakub Jelinek <jakub@redhat.com>
12814 PR tree-optimization/56350
12815 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12816 if haven't found reduction or nested cycle operand, rather than
12817 asserting we must find it.
12819 PR tree-optimization/56381
12820 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12823 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
12824 Jakub Jelinek <jakub@redhat.com>
12827 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12828 (swap_optab_enable): Same.
12829 (init_all_optabs): Use argument instead of global.
12830 * tree.h (struct tree_optimization_option): New field target_optabs.
12831 * expr.h (init_all_optabs): Add argument to prototype.
12832 (TREE_OPTIMIZATION_OPTABS): New.
12833 (save_optabs_if_changed): Protoize.
12834 * optabs.h: Declare this_fn_optabs.
12835 * optabs.c (save_optabs_if_changed): New.
12836 Declare this_fn_optabs.
12837 (init_optabs): Add argument to init_all_optabs() call.
12838 * function.c (invoke_set_current_function_hook): Handle per
12840 * function.h (struct function): New field optabs.
12841 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12842 optimization_current_node has changed.
12843 * target-globals.h (save_target_globals_default_opts): Protoize.
12844 * target-globals.c (save_target_globals_default_opts): New.
12846 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12849 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12850 registers %fr12 and %fr12R as call used.
12853 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12854 and HImode, require all displacements to be an integer multiple of
12856 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12857 only allow QImode and HImode when reload is in progress and strict is
12858 true. Likewise for symbolic addresses. Use base14_operand to check
12859 displacements in REG+BASE addresses.
12861 2013-02-18 Richard Biener <rguenther@suse.de>
12863 PR tree-optimization/56366
12864 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12865 handle sign-conversion of outer-loop initial induction value.
12867 2013-02-18 Richard Biener <rguenther@suse.de>
12869 PR middle-end/56349
12870 * cfghooks.c (merge_blocks): If we merge a latch into another
12871 block adjust references to it.
12872 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12873 (verify_loop_structure): Verify that a recorded latch is in fact
12876 2013-02-18 Richard Biener <rguenther@suse.de>
12878 PR tree-optimization/56321
12879 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12880 order SSA name release and virtual operand unlinking.
12882 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12884 * config/microblaze/microblaze.md (save_stack_block): Define.
12885 (restore_stack_block): Likewise.
12887 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12889 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12890 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12891 * config/microblaze/microblaze.c (microblaze_option_override):
12892 Bail out early for PIC modes when target does not support PIC.
12894 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12896 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12897 Replace with a microblaze version.
12898 (microblaze_trampoline_init): Adapt for microblaze.
12899 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12902 2013-02-16 Jakub Jelinek <jakub@redhat.com>
12903 Dodji Seketeli <dodji@redhat.com>
12906 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12907 (instrument_mem_region_access): Do not forget to always put
12908 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12909 0) statement, even for cases where either 'base' or 'base + len'
12910 are not instrumented -- because they have been previously
12911 instrumented. Simplify the logic by putting all the statements
12912 instrument 'base + len' inside a sequence, and then insert that
12913 sequence right before the current insertion point. Then, to
12914 instrument 'base + len', just get an iterator on that statement.
12915 And do not forget to update the pointer to iterator the function
12916 received as argument.
12918 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
12920 PR rtl-optimization/56348
12921 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12923 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
12925 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12926 (clean_graph_dump_file): Pass base to start_graph_dump.
12928 2013-02-14 Richard Henderson <rth@redhat.com>
12931 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12933 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
12935 * collect2-aix.h: Define F_LOADONLY.
12937 2013-02-14 Richard Biener <rguenther@suse.de>
12940 * varasm.c (output_constant_def_1): Get the decl representing
12941 the constant as argument.
12942 (output_constant_def): Wrap output_constant_def_1.
12943 (make_decl_rtl): Use output_constant_def_1 with the decl
12944 representing the constant.
12945 (build_constant_desc): Optionally re-use a decl already
12946 representing the constant.
12947 (tree_output_constant_def): Adjust.
12949 2013-02-14 Dodji Seketeli <dodji@redhat.com>
12952 * asan.c (instrument_builtin_call): Really put the length of the
12953 second source argument into src1_len.
12955 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12957 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12958 argument. If it is false, don't create edge from then_bb to
12960 (insert_if_then_before_iter): Pass true to it.
12961 (build_check_stmt): Pass false to it.
12962 (transform_statements): Flush hash table only on extended basic
12963 block boundaries, rather than at the beginning of every bb.
12964 Don't flush hash table on nonfreeing_call_p calls.
12965 * tree-flow.h (nonfreeing_call_p): New prototype.
12966 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12968 2013-02-13 David S. Miller <davem@davemloft.net>
12970 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12972 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12975 * ira.c (max_regno_before_ira): Move from ...
12977 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12980 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12982 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12984 2013-02-13 Richard Biener <rguenther@suse.de>
12987 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12988 globals in MEM_REFs.
12990 2013-02-13 Richard Biener <rguenther@suse.de>
12992 * loop-init.c (loop_optimizer_init): Clear loop state when
12993 re-initializing preserved loops.
12994 * loop-unswitch.c (unswitch_single_loop): Return whether
12995 we unswitched the loop. Do not verify loop state here.
12996 (unswitch_loops): When we unswitched a loop discover new loops.
12998 2013-02-13 Kostya Serebryany <kcc@google.com>
13000 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
13002 * sanitizer.def: Rename __asan_init to __asan_init_v1.
13004 2013-02-12 Dodji Seketeli <dodji@redhat.com>
13006 Avoid instrumenting duplicated memory access in the same basic block
13007 * Makefile.in (asan.o): Add new dependency on hash-table.h
13008 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
13009 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
13010 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
13011 (free_mem_ref_resources, has_mem_ref_been_instrumented)
13012 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
13013 (get_mem_ref_of_assignment): New functions.
13014 (get_mem_refs_of_builtin_call): Extract from
13015 instrument_builtin_call and tweak a little bit to make it fit with
13017 (instrument_builtin_call): Use the new
13018 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
13019 of is_gimple_builtin_call.
13020 (instrument_derefs, instrument_mem_region_access): Insert the
13021 instrumented memory reference into the hash table.
13022 (maybe_instrument_assignment): Renamed instrument_assignment into
13023 this, and change it to advance the iterator when instrumentation
13024 actually happened and return true in that case. This makes it
13025 homogeneous with maybe_instrument_assignment, and thus give a
13026 chance to callers to be more 'regular'.
13027 (transform_statements): Clear the memory reference hash table
13028 whenever we enter a new BB, when we cross a function call, or when
13029 we are done transforming statements. Use
13030 maybe_instrument_assignment instead of instrumentation. No more
13031 need to special case maybe_instrument_assignment and advance the
13032 iterator after calling it; it's now handled just like
13033 maybe_instrument_call. Update comment.
13035 2013-02-13 Richard Biener <rguenther@suse.de>
13037 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
13038 Fix loop discovery code.
13040 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
13042 PR inline-asm/56148
13043 * lra-constraints.c (process_alt_operands): Match early clobber
13044 operand with itself. Check conflicts with earlyclobber only if
13045 the operand is not reloaded. Prefer to reload conflicting operand
13046 if earlyclobber and matching operands are the same.
13048 2013-02-12 Richard Biener <rguenther@suse.de>
13051 * lto-streamer-out.c (write_symbol): Do not output symbols
13052 for hard register variables.
13054 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
13057 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
13058 (umulsidi3_insn, mulsidi3_insn): New insns.
13060 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
13062 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
13063 (struct tune_params): Add vec_costs field.
13064 * config/arm/arm.c (arm_builtin_vectorization_cost)
13065 (arm_add_stmt_cost): New functions.
13066 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
13067 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
13068 (arm_default_vec_cost): New struct of type cpu_vec_costs.
13069 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13070 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
13071 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
13072 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
13074 2013-02-12 Richard Biener <rguenther@suse.de>
13077 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
13078 decls again if possible.
13080 2013-02-12 Richard Biener <rguenther@suse.de>
13082 PR middle-end/56288
13083 * tree-ssa.c (verify_ssa_name): Fix check, move
13084 SSA_NAME_IN_FREE_LIST check up.
13086 2013-02-12 Jakub Jelinek <jakub@redhat.com>
13087 Steven Bosscher <steven@gcc.gnu.org>
13089 PR rtl-optimization/56151
13090 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
13091 equal to op0 or op1, and last_insn pattern is CODE operation
13092 with MEM dest and one of the operands matches that MEM.
13094 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
13096 * doc/extend.texi: Document Function Multiversioning and "default"
13097 parameter string to target attribute.
13098 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
13099 target attribute parameter is "default".
13100 (ix86_compare_version_priority): Remove checks for target attribute.
13101 (ix86_mangle_function_version_assembler_name): Change error to sorry.
13102 Remove check for target attribute equal to NULL. Add assert.
13103 (ix86_generate_version_dispatcher_body): Change error to sorry.
13105 2013-02-11 Iain Sandoe <iain@codesourcery.com>
13106 Jack Howarth <howarth@bromo.med.uc.edu>
13107 Patrick Marlier <patrick.marlier@gmail.com>
13110 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
13111 define ENDFILE_SPEC as TM_DESTRUCTOR.
13112 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
13114 2013-02-11 Alexander Potapenko <glider@google.com>
13115 Jack Howarth <howarth@bromo.med.uc.edu>
13116 Jakub Jelinek <jakub@redhat.com>
13119 * config/darwin.c (cdtor_record): Rename ctor_record.
13120 (sort_cdtor_records): Rename sort_ctor_records.
13121 (finalize_dtors): New routine to sort destructors by
13122 priority before use in assemble_integer.
13123 (machopic_asm_out_destructor): Use finalize_dtors if needed.
13125 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
13127 PR rtl-optimization/56275
13128 * simplify-rtx.c (avoid_constant_pool_reference): Check that
13129 offset is non-negative and less than cmode size before
13130 calling simplify_subreg.
13132 2013-02-11 Richard Biener <rguenther@suse.de>
13134 PR tree-optimization/56264
13135 * cfgloop.h (fix_loop_structure): Adjust prototype.
13136 * loop-init.c (fix_loop_structure): Return the number of
13137 newly discovered loops.
13138 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13139 are discovered, do a full loop-closed SSA rewrite.
13141 2013-02-11 Richard Biener <rguenther@suse.de>
13143 PR tree-optimization/56273
13144 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13146 (check_array_ref): Fix missing newline in dumps.
13147 (search_for_addr_array): Likewise.
13149 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
13151 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13153 2013-02-09 Jakub Jelinek <jakub@redhat.com>
13156 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13158 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13160 PR rtl-optimization/56246
13161 * lra-constraints.c (simplify_operand_subreg): Try to reuse
13163 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13164 constraints are satisfied.
13166 2013-02-08 Jeff Law <law@redhat.com>
13169 * emit-rtl.c (reg_is_parm_p): New function.
13170 * regs.h (reg_is_parm_p): New prototype.
13171 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13172 callee-clobbered registers.
13174 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13177 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13178 If there is no implicit builtin declaration, just return NULL.
13180 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13182 * config/i386/sse.md (FMAMODEM): New mode iterator.
13183 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13184 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13186 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13188 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13189 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13190 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13192 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13194 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13195 (microblaze*-*-elf): Likewise.
13196 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13198 * config/microblaze/microblaze-c.c: Add builtin defines for
13199 _LITTLE_ENDIAN and _BIG_ENDIAN.
13200 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13201 add to TARGET_DEFAULT flags.
13202 Expand ASM_SPEC and LINK_SPEC.
13203 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13204 * config/microblaze/microblaze.md: Update extendsidi2 and
13205 movdi_internal instructions to use low-order / high-order reg
13207 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13208 options and inversemask / mask of LITTLE_ENDIAN.
13209 * config/microblaze/t-microblaze: Expand multilib options to
13210 include mlittle-endian (le) and update exceptions patterns.
13212 2013-02-08 Jakub Jelinek <jakub@redhat.com>
13214 PR rtl-optimization/56195
13215 * lra-constraints.c (get_reload_reg): Don't reuse regs
13216 if they have smaller mode than requested, if they have
13217 wider mode than requested, try to return a SUBREG.
13219 PR tree-optimization/56250
13220 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13221 if type is unsigned and code isn't MULT_EXPR.
13223 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13225 PR tree-optimization/56064
13226 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13227 bits according to mode.
13228 * fixed-value.h (fixed_from_double_int)
13229 (const_fixed_from_double_int): Adjust comments.
13231 2013-02-08 Richard Biener <rguenther@suse.de>
13234 * lto-streamer.h (struct data_in): Remove current_file, current_line
13235 and current_col members.
13236 * lto-streamer-out.c (lto_output_location): Stream changed bits
13237 en-block for efficiency.
13238 * lto-streamer-in.c (clear_line_info): Remove.
13239 (lto_input_location): Cache current file, line and column
13240 globally via local statics. Read changed bits en-block.
13241 (input_function): Do not call clear_line_info.
13242 (lto_read_body): Likewise.
13243 (lto_input_toplevel_asms): Likewise.
13245 2013-02-08 Michael Matz <matz@suse.de>
13247 PR tree-optimization/52448
13248 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13249 (nt_call_phase): New static.
13250 (add_or_mark_expr): Only mark accesses with newer phase than any
13252 (nonfreeing_call_p): New.
13253 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13254 (nt_fini_block): Keep blocks marked as visited.
13255 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13257 2013-02-08 Richard Biener <rguenther@suse.de>
13259 * ira.c (ira): Free broken dominator information.
13261 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13263 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13265 2013-02-08 Marek Polacek <polacek@redhat.com>
13267 * cfgloop.c (verify_loop_structure): Add more checking of headers.
13269 2013-02-08 Richard Biener <rguenther@suse.de>
13271 PR middle-end/56181
13272 * cfgloop.h (flow_loops_find): Adjust.
13273 (bb_loop_header_p): Declare.
13274 * cfgloop.c (bb_loop_header_p): New function split out from ...
13275 (flow_loops_find): ... here. Adjust function signature,
13276 support incremental loop structure update.
13277 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13278 * cfgloopmanip.c (fix_loop_structure): Move ...
13279 * loop-init.c (fix_loop_structure): ... here.
13280 (apply_loop_flags): Split out from ...
13281 (loop_optimizer_init): ... here.
13282 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13283 in incremental mode, only remove dead loops here.
13285 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13288 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13289 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13290 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13291 (*round<mode>3.libgcc): New insns for fixed-modes.
13292 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13293 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13294 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13295 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13296 implementations. Define to __builtin_avr_absFX,
13297 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13298 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13299 __builtin_avr_countlsFX, respectively.
13300 * config/avr/avr-c.c (target.h): Include it.
13301 (enum avr_builtin_id): New enum.
13302 (avr_resolve_overloaded_builtin): New static function.
13303 (avr_register_target_pragmas): Use it to set
13304 targetm.resolve_overloaded_builtin.
13305 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13306 tree nodes used by DEF_BUILTIN.
13307 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13308 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13309 <AVR_BUILTIN_xxBITS>: Same.
13311 2013-02-08 Richard Biener <rguenther@suse.de>
13313 * cfgloop.c (verify_loop_structure): Properly handle
13314 a loop exiting to another loop header.
13315 * ira-int.h (ira_loops): Remove.
13316 * ira.c (ira_loops): Remove.
13317 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13318 (do_reload): Use loop_optimizer_finalize.
13319 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13320 number_of_loops to access the loop tree.
13321 (more_one_region_p): Likewise.
13322 (finish_loop_tree_nodes): Likewise.
13323 (rebuild_regno_allocno_maps): Likewise.
13324 (mark_loops_for_removal): Likewise.
13325 (mark_all_loops_for_removal): Likewise.
13326 (remove_unnecessary_regions): Likewise.
13327 (ira_build): Likewise.
13328 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13330 2013-02-08 Richard Biener <rguenther@suse.de>
13332 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13333 * ipa-pure-const.c (analyze_function): Avoid calling
13334 mark_irreducible_loops twice.
13335 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
13337 2013-02-07 David S. Miller <davem@davemloft.net>
13339 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13341 * var-tracking.c (vt_add_function_parameter): Test the presence of
13342 HAVE_window_save properly and do not remap argument registers when
13343 we have a leaf function.
13345 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
13348 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13350 * config/i386/i386.c (ix86_print_operand): Ditto.
13352 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13354 * lra-constraints.c (process_alt_operands): Fix recently added comment.
13356 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13358 PR rtl-optimization/56225
13359 * lra-constraints.c (process_alt_operands): Check that reload hard
13360 reg can hold value for strict_low_part.
13362 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13365 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13366 dwarf2out_end_function.
13367 (in_first_function_p, maybe_at_text_label_p,
13368 first_loclabel_num_not_at_text_label): New variables.
13369 (dwarf2out_var_location): In the first function find out
13370 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
13371 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13374 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13376 PR rtl-optimization/56178
13377 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13378 SUBREG of a register. Tidy up related block of code.
13379 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13380 note if the source is a register or a SUBREG of a register.
13382 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13385 * config/rs6000/rs6000.md (ptrm): New mode attr.
13386 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13387 call_value_indirect_aix<pttrsize>,
13388 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13391 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13393 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13394 if -bnortl. Convert to strcmp and strncmp.
13396 2013-02-07 Alan Modra <amodra@gmail.com>
13399 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13400 addresses won't wrap when offsetting.
13401 (rs6000_secondary_reload): Provide secondary reloads needed for
13402 wrapping LO_SUM addresses.
13404 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13406 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13407 MACH, just __MACH__.
13409 2013-02-06 Richard Biener <rguenther@suse.de>
13411 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13412 instead of calling fix_loop_structure.
13414 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13416 PR middle-end/56217
13417 * omp-low.c (use_pointer_for_field): Return false if
13418 lower_send_shared_vars doesn't generate any copy-out code.
13420 2013-02-06 Tom de Vries <tom@codesourcery.com>
13422 PR rtl-optimization/56131
13423 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13424 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13425 of the label is NULL. Add comment.
13427 2013-02-05 Jakub Jelinek <jakub@redhat.com>
13429 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13432 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13433 (STATIC_LIBTSAN_LIBS): Likewise.
13434 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13435 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13436 is defined, don't add anything else beyond that.
13437 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13438 (LINK_COMMAND_SPEC): Use them.
13440 PR tree-optimization/56205
13441 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13442 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13443 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13445 2013-02-05 Richard Biener <rguenther@suse.de>
13447 PR tree-optimization/53342
13448 PR tree-optimization/53185
13449 * tree-vectorizer.h (vect_check_strided_load): Remove.
13450 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13451 not disallow peeling for vectorized strided loads.
13452 (vect_check_strided_load): Make static and simplify.
13453 (vect_analyze_data_refs): Adjust.
13454 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13455 correctly when vectorizing strided loads.
13457 2013-02-05 Richard Biener <rguenther@suse.de>
13459 * doc/install.texi: Refer to ISL, not PPL.
13461 2013-02-05 Jan Hubicka <jh@suse.cz>
13463 PR tree-optimization/55789
13464 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13466 2013-02-05 Jan Hubicka <jh@suse.cz>
13468 PR tree-optimization/55789
13469 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13470 the dead call anyway.
13472 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13475 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13477 2013-02-04 Alexander Potapenko <glider@google.com>
13478 Jack Howarth <howarth@bromo.med.uc.edu>
13479 Jakub Jelinek <jakub@redhat.com>
13482 * config/darwin.c (sort_ctor_records): Stabilized qsort
13483 on constructor priority by using original position.
13484 (finalize_ctors): New routine to sort constructors by
13485 priority before use in assemble_integer.
13486 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13488 2013-02-04 Jakub Jelinek <jakub@redhat.com>
13491 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13492 about visibility on artificial decls.
13493 * config/sol2.c (solaris_assemble_visibility): Likewise.
13495 2013-02-04 Kai Tietz <ktietz@redhat.com>
13498 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13499 argument and improve checking of return-argument types for 16-byte
13501 (ix86_function_value_1): Add additional valtype argument on call
13502 of function_value_64.
13503 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13504 handling infunction_value_64 function.
13506 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13508 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13510 2013-02-04 Richard Biener <rguenther@suse.de>
13512 PR tree-optimization/56188
13513 * tree-ssa-structalias.c (label_visit): Consider case with
13514 initially non-empty points-to set.
13515 (perform_var_substitution): Dump node mapping and clean up.
13517 2013-02-04 Richard Guenther <rguenther@suse.de>
13520 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13521 node prevail as last resort.
13522 (lto_symtab_merge_decls): Remove guard on LTRANS here.
13523 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13525 2013-02-04 Richard Biener <rguenther@suse.de>
13527 PR tree-optimization/56113
13528 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13530 (equiv_class_lookup_or_add): ... this.
13531 (label_visit): Adjust and fix error in previous patch.
13532 (perform_var_substitution): Adjust.
13534 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13536 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13537 * config/sh/sh4-300.md: Likewise.
13538 * config/sh/sh4a.md: Likewise.
13539 * config/sh/constraints.md: Likewise.
13540 * config/sh/sh.md: Likewise.
13541 * config/sh/netbsd-elf.h: Likewise.
13542 * config/sh/predicates.md: Likewise.
13543 * config/sh/sh-protos.h: Likewise.
13544 * config/sh/ushmedia.h: Likewise.
13545 * config/sh/linux.h: Likewise.
13546 * config/sh/sh.c: Likewise.
13547 * config/sh/superh.h: Likewise.
13548 * config/sh/elf.h: Likewise.
13549 * config/sh/sh4.md: Likewise.
13550 * config/sh/sh.h: Likewise.
13552 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13554 * config/pa/constraints.md: Adjust unused letters. Change "T"
13555 constraint to match_test floating_point_store_memory_operand().
13556 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13557 (base14_operand): New.
13558 (floating_point_store_memory_operand): New.
13559 (integer_store_memory_operand): Revise to use base14_operand and
13560 reg_plus_base_memory_operand.
13561 (move_dest_operand): Allow symbolic_memory_operands.
13562 (symbolic_memory_operand): Check for LO_SOM.
13563 (symbolic_operand): Change default case to break.
13564 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13565 CONST_DOUBLE values to be reloaded by putting them into memory when
13566 the destination is a floating point register.
13567 (movdf): Remove code to handle CONST_DOUBLE.
13569 (reload_indf_r1): New.
13570 (reload_insf_r1): New.
13571 Consistently use "Q" and "T" constraints with integer and floating
13572 point move instructions, respectively.
13573 (movdi): Remove FAIL.
13574 Change predicate for source operand unamed DImode move from
13575 general_operand to move_src_operand.
13576 (umulsidi3): Change predicate for destination operand to
13578 Likewise for similar unamed patterns.
13579 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13580 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13581 (hppa_legitimize_address): Simplify mask calculation.
13582 (pa_emit_move_sequence): Revised handling of secondary reloads from
13583 REG+D addresses for floating point loads and stores. Directly handle
13584 loading CONST0_RTX (mode) to a floating point register.
13585 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13586 to floating point registers. Don't restrict secondary reloads to
13587 floating point registers to integer modes. Revise some comments and
13589 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13590 (pa_legitimate_address_p): New.
13591 (pa_legitimize_reload_address): New.
13592 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13593 (STRICT_REG_OK_FOR_BASE_P): New.
13594 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13595 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13597 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
13598 Andrew Dixie <andrewd@gentrack.com>
13600 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13603 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13605 * expmed.c (extract_bit_field_1): Pass the full width of the
13606 structure to get_best_reg_extraction_insn.
13608 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13611 * configure.ac (use_cxa_atexit): Add AIX.
13612 * configure: Regenerate.
13614 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13616 2013-02-01 Jakub Jelinek <jakub@redhat.com>
13619 * final.c (need_profile_function): New variable.
13620 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13621 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13622 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13623 notes, targetm.asm_out.function_prologue doesn't emit anything,
13624 HAVE_prologue and profiler should be emitted before prologue,
13625 set need_profile_function instead of emitting it.
13626 (final_scan_insn): If need_profile_function, emit
13627 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13628 NOTE_INSN_FUNCTION_BEG note.
13630 2013-02-01 Richard Henderson <rth@redhat.com>
13632 * config/rs6000/rs6000.md (smulditi3): New.
13635 * config/alpha/alpha.md (umulditi3): New.
13637 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13639 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13640 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13642 2013-02-01 Richard Biener <rguenther@suse.de>
13644 PR tree-optimization/56113
13645 * tree-ssa-structalias.c (label_visit): Reduce work for
13646 single-predecessor nodes.
13648 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13650 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13651 range isn't testing for zero.
13653 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13655 PR middle-end/56113
13656 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13658 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13659 Nick Clifton <nickc@redhat.com>
13661 * config/v850/constraints.md (Q): Define as a memory constraint.
13662 * config/v850/predicates.md (label_ref_operand): New predicate.
13663 (e3v5_shift_operand): New predicate.
13664 (ior_operator): New predicate.
13665 * config/v850/t-v850: Add e3v5 multilib.
13666 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13667 (v850_gen_movdi): Prototype.
13668 * config/v850/v850.c: Add support for e3v5 architecture.
13669 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13671 (construct_save_jarl): Add e3v5 long JARL support.
13672 (v850_adjust_insn_length): New function. Adjust length of call
13673 insns when using e3v5 instructions.
13674 (v850_gen_movdi): New function: Generate instructions to move a
13676 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13677 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13678 (TARGET_USE_FPU): Enable for e3v5.
13679 (CONST_OK_FOR_W): New macro.
13680 (ADJUST_INSN_LENGTH): Define.
13681 * config/v850/v850.md (UNSPEC_LOOP): Define.
13682 (attr cpu): Add v850e3v5.
13683 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13684 (movdi): New pattern.
13685 (movdi_internal): New pattern.
13686 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13687 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13688 (cstoresf4): Likewise.
13689 (cstoredf4): Likewise.
13690 (insv): New pattern.
13691 (rotlso3_a): New pattern.
13692 (rotlsi3_b): New pattern
13693 (rotlsi3_v850e3v5): New pattern.
13694 (doloop_begin): New pattern.
13695 (fix_loop_counter): New pattern.
13696 (doloop_end): New pattern.
13697 (branch_normal): Add e3v5 long branch support.
13698 (branch_invert): Likewise.
13699 (branch_z_normal): Likewise.
13700 (branch_z_invert): Likewise.
13701 (branch_nz_normal): Likewise.
13702 (branch_nz_invert): Likewise.
13703 (call_internal_short): Add e3v5 register-indirect JARL support.
13704 (call_internal_long): Likewise.
13705 (call_value_internal_short): Likewise.
13706 (call_value_internal_long): Likewise.
13707 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13708 (mloop): New option.
13709 * config.gcc: Add support for configuring v840e3v5 target.
13710 * doc/invoke.texi: Document new v850 specific command line options.
13712 2013-01-31 Paul Koning <ni1d@arrl.net>
13716 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13717 children if parent is a class.
13718 (prune_unused_types_prune): Don't add DW_AT_declaration.
13720 2013-01-31 Richard Biener <rguenther@suse.de>
13722 PR tree-optimization/56157
13723 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13724 match up operand with SLP child.
13726 2013-01-31 Jason Merrill <jason@redhat.com>
13729 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13730 parameters the first time.
13731 (gen_scheduled_generic_parms_dies): Check completeness here.
13733 2013-01-31 Richard Biener <rguenther@suse.de>
13735 PR middle-end/53073
13736 * common.opt (faggressive-loop-optimizations): New flag,
13737 enabled by default.
13738 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13739 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13740 infer_loop_bounds_from_undefined by it.
13742 2013-01-31 Richard Biener <rguenther@suse.de>
13744 PR tree-optimization/56150
13745 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13746 visit virtual operands.
13747 (find_uses_to_rename_bb): Likewise.
13749 2013-01-31 Richard Biener <rguenther@suse.de>
13751 PR tree-optimization/56150
13752 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13753 mixed store non-store stmts.
13755 2013-01-30 Jakub Jelinek <jakub@redhat.com>
13758 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13759 LIBASAN_EARLY_SPEC is defined.
13760 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13761 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13763 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13766 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13767 invalid args instead of ICEing on it.
13768 (ix86_valid_target_attribute_tree): Return error_mark_node if
13769 ix86_valid_target_attribute_inner_p failed.
13770 (ix86_valid_target_attribute_p): Return false only if
13771 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13772 target("default") attribute.
13773 (sorted_attr_string): Change argument from const char * to tree,
13774 merge in all target attribute arguments rather than just one.
13775 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13776 instead of free. Avoid using strcat.
13777 (ix86_mangle_function_version_assembler_name): Mangle
13778 target("default") as if no target attribute is present. Adjust
13779 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13780 instead of xmalloc and XDELETEVEC instead of free.
13781 (ix86_function_versions): Don't return true if one of the decls
13782 doesn't have target attribute. If they don't and one of the decls
13783 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13784 sorted_attr_string caller. Use XDELETEVEC instead of free.
13785 (ix86_supports_function_versions): Remove.
13786 (make_name): Fix up formatting.
13787 (make_dispatcher_decl): Remove resolver_name and its initialization.
13788 Avoid leaking memory.
13789 (is_function_default_version): Return true if there is
13790 target("default") attribute rather than no target attribute at all.
13791 (make_resolver_func): Avoid leaking memory.
13792 (ix86_generate_version_dispatcher_body): Likewise.
13793 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13794 * target.def (supports_function_versions): Remove.
13795 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13796 * doc/tm.texi: Regenerated.
13798 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13800 PR rtl-optimization/56144
13801 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13802 for values with side effects.
13804 2013-01-30 Richard Biener <rguenther@suse.de>
13806 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13807 (sparseset_pop): Likewise.
13808 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13809 to be able to use quick_push in the worker loop.
13811 2013-01-30 Marek Polacek <polacek@redhat.com>
13813 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13815 2013-01-30 Richard Biener <rguenther@suse.de>
13818 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13820 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
13822 PR tree-optimization/56064
13823 * fixed-value.c (fixed_from_double_int): New function.
13824 * fixed-value.h (fixed_from_double_int): New prototype.
13825 (const_fixed_from_double_int): New static inline function.
13826 * fold-const.c (native_interpret_fixed): New static function.
13827 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13828 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13829 (native_encode_fixed): New static function.
13830 (native_encode_expr) <FIXED_CST>: Use it.
13831 (native_interpret_int): Move double_int worker code to...
13832 * double-int.c (double_int::from_buffer): ...this new static method.
13833 * double-int.h (double_int::from_buffer): Prototype it.
13835 2013-01-30 Richard Biener <rguenther@suse.de>
13837 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13838 New pointer-map and obstack.
13839 (init_alias_vars): Allocate pointer-map and obstack.
13840 (delete_points_to_sets): Free them.
13841 (find_what_var_points_to): Cache result.
13842 (find_what_p_points_to): Adjust for changed interface of
13843 find_what_var_points_to.
13844 (compute_points_to_sets): Likewise.
13845 (ipa_pta_execute): Likewise.
13847 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13849 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13850 * configure: Regenerate.
13851 * config.in: Regenerate.
13852 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13853 #nobits/#progbits if supported.
13855 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13858 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13859 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13860 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13862 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13864 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13865 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13867 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13869 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13870 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13872 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13874 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13876 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13877 * config/arm/cortex-a7.md: New bypasses using
13878 arm_mac_accumulator_is_result.
13880 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13882 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
13883 (cortex_a7_neon_mla): Likewise.
13884 (cortex_a7_fpfmad): New reservation.
13885 (cortex_a7_fpmacs): Use ffmas and update required units.
13886 (cortex_a7_fpmuld): Update required units and latency.
13887 (cortex_a7_fpmacd): Likewise.
13888 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13889 (cortex_a7_neon). Likewise.
13890 (bypass) Update participating units.
13892 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13894 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13895 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13897 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13898 (vfp_fmul): Use ffmad.
13899 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13900 (cortex_r4_fmacd): Use ffmad.
13901 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13902 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13903 (cortex_a9_fmacd): Use ffmad.
13904 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13905 (cortex_a8_vfp_macd): Use ffmad.
13906 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13907 (cortex_a5_fpmacd): Use ffmad.
13908 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13909 (cortex_a15_vfp_macd): Use ffmad.
13910 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13912 2013-01-29 Jason Merrill <jason@redhat.com>
13915 * varasm.c (default_assemble_visibility): Don't warn about
13916 visibility on artificial decls.
13918 2013-01-29 Richard Biener <rguenther@suse.de>
13920 PR tree-optimization/56113
13921 * tree-ssa-structalias.c (equiv_class_lookup): Also return
13923 (label_visit): Free duplicate bitmaps and record the leader instead.
13924 (perform_var_substitution): Adjust.
13926 2013-01-29 Richard Biener <rguenther@suse.de>
13928 PR tree-optimization/55270
13929 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13930 the CFG, schedule loops for fixup.
13932 2013-01-29 Nick Clifton <nickc@redhat.com>
13934 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13937 2013-01-28 Leif Ekblad <leif@rdos.net>
13939 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13940 * config/i386/i386.h (TARGET_RDOS): New macro.
13941 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13942 * config/i386/i386.c (ix86_option_override_internal): For 64bit
13943 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13944 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13945 DEFAULT_LARGE_SECTION_THRESHOLD.
13946 * config/i386/i386.md (R14_REG, R15_REG): New constants.
13947 * config/i386/rdos.h: New file.
13948 * config/i386/rdos64.h: New file.
13950 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
13953 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13956 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13958 PR rtl-optimization/56117
13959 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13960 call cselib_lookup_from_insn on the MEM before calling
13961 add_insn_mem_dependence.
13963 2013-01-28 Richard Biener <rguenther@suse.de>
13965 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13966 to a stmt that didn't have one.
13967 (copy_phis_for_bb): Likewise for PHI arguments.
13968 (copy_debug_stmt): Likewise for debug stmts.
13970 2013-01-28 Richard Biener <rguenther@suse.de>
13972 PR tree-optimization/56034
13973 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
13974 (partition_builtin_p): Adjust.
13975 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13976 it is the last partition.
13977 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13978 up the vertex for the definition.
13979 (classify_partition): Classify whether a partition is a
13980 PKIND_REDUCTION, thus has uses outside of the loop.
13981 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13982 Merge all PKIND_REDUCTION partitions into the last partition.
13983 (tree_loop_distribution): Seed partitions from reductions as well.
13985 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13987 PR tree-optimization/56125
13988 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13989 pow(x,c) into sqrt(x) * powi(x, n/2) or
13990 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13991 optimizing for size.
13992 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13993 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13996 PR tree-optimization/56094
13997 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13998 to UNKNOWN_LOCATION while gimplifying expr.
14000 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
14003 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
14004 operand 0 in movabs insn template for -masm=intel asm alternative.
14005 (*movabs<mode>_2): Ditto for operand 1.
14007 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
14010 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
14013 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14015 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
14018 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14020 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
14021 Undef to avoid warning.
14023 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14025 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
14026 * configure: Regenerate.
14028 2013-01-25 Jakub Jelinek <jakub@redhat.com>
14030 PR tree-optimization/56098
14031 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
14032 for stmts with volatile ops.
14033 (cond_store_replacement): Don't optimize if assign has volatile ops.
14034 (cond_if_else_store_replacement_1): Don't optimize if either
14035 then_assign or else_assign have volatile ops.
14036 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
14039 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14041 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
14043 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14045 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
14046 missing ':' in asm example.
14048 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
14050 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
14051 entries into lane and laneq entries.
14052 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
14053 Remove AdvSIMD scalar modes.
14054 (aarch64_sq<r>dmulh_laneq<mode>): New.
14055 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
14057 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
14058 builtin implementations to relfect changes in RTL in aarch64-simd.md.
14059 * config/aarch64/iterators.md (VCOND): New.
14062 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14065 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
14066 Add NULL LIBNAME argument to existing definitions.
14067 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
14068 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
14069 * config/avr/avr.c (DEF_BUILTIN): Same.
14070 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
14071 (avr_expand_builtin): Expand to a vanilla call if a libgcc
14072 implementation is available (DECL_ASSEMBLER_NAME is set).
14073 (avr_fold_absfx): New static function.
14074 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
14075 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
14076 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
14077 AVR_BUILTIN_ABSLLK.
14078 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
14079 (abshk, absk, abslk, absllk): Provide as static inline functions.
14081 2013-01-25 Marek Polacek <polacek@redhat.com>
14083 PR tree-optimization/56035
14084 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
14086 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
14088 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
14089 (*movtf_internal_rex64): Add (!o,C) alternative
14090 (*movxf_internal_rex64): Ditto.
14091 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
14093 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
14095 * doc/invoke.texi: fix typo.
14096 * doc/objc.texi: fix typo.
14098 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
14100 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
14101 for the first two alternatives.
14103 2013-01-24 Diego Novillo <dnovillo@google.com>
14105 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
14106 (ggc-zone.o): Remove.
14107 * configure.ac: Remove option --with-gc.
14108 * configure: Re-generate.
14109 * doc/install.texi: Remove documentation for --with-gc.
14110 * gengtype.c (write_enum_defn): Remove. Update all users.
14111 (write_Types_process_field): Remove generation of gt_e_* argument.
14112 (output_type_enum): Remove. Update all users.
14113 (write_enum_defn): Remove. Update all users.
14114 (enum alloc_zone): Remove. Update all users.
14115 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
14116 * ggc-common.c (ggc_splay_alloc): Remove first argument.
14117 Update all callers.
14118 (struct ptr_data): Remove field TYPE. Update all users.
14119 (gt_pch_note_object): Remove argument TYPE. Update all users.
14120 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
14122 * ggc-none.c (ggc_alloc_typed_stat): Remove.
14123 (struct alloc_zone): Remove.
14124 (ggc_internal_alloc_zone_stat): Remove.
14125 (ggc_internal_cleared_alloc_zone_stat): Remove.
14126 * ggc-page.c (ggc_alloc_typed_stat): Remove.
14127 (ggc_pch_count_object): Remove last argument. Update all users.
14128 (ggc_pch_alloc_object): Remove last argument. Update all users.
14129 (struct alloc_zone): Remove.
14130 * ggc-zone.c: Remove.
14131 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
14132 (struct alloc_zone): Remove.
14133 (ggc_alloc_typed_stat): Remove.
14134 (ggc_alloc_typed): Remove.
14135 (ggc_splay_alloc): Remove first argument.
14136 (rtl_zone): Remove. Update all users.
14137 (tree_zone): Remove. Update all users.
14138 (tree_id_zone): Remove. Update all users.
14139 (ggc_internal_zone_alloc_stat): Remove. Update all users.
14140 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
14141 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
14142 * tree-ssanames.c: Remove references to zone allocator in comments.
14144 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
14146 * config/avr/avr.c (avr_out_fract): Make register numbers that
14147 might be outside of source operand signed.
14149 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
14151 * config/i386/constraints.md (Yf): New constraint.
14152 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14153 of f constraint to conditionaly disable x87 register preferences.
14154 (*movdf_internal): Ditto.
14155 (*movsf_internal): Ditto.
14157 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14159 PR inline-asm/55934
14160 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14161 that have operands with impossible constraints.
14162 Add a FIXME for a speed-up opportunity.
14163 * lra-constraints.c (process_alt_operands): Verify that a class
14164 selected from constraints on asms is valid for the operand mode.
14165 (curr_insn_transform): Remove incorrect comment.
14167 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
14169 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14170 TOC operand is a valid symbol ref in the constant pool.
14172 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14174 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
14176 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
14179 * config/avr/stdfix.h: New file.
14180 * t-avr (stdfix-gcc.h): New rule to build it.
14181 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14183 2013-01-23 Kostya Serebryany <kcc@google.com>
14185 * config/darwin.h: remove dependency on
14186 CoreFoundation (asan on Mac OS).
14188 2013-01-23 Jakub Jelinek <jakub@redhat.com>
14191 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14192 instead of cmpdi_operand for first comparison operand.
14193 Don't assert that comparison operands aren't both constants.
14195 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14197 * doc/install.texi (Downloading the Source): Update references to
14198 downloading separate components.
14200 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14202 * doc/extend.texi (__int128): Improve grammar.
14204 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
14207 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14208 alternative to (o,r).
14209 (*movdi_internal_rex64): Remove (!o,n) alternative.
14210 (DImode immediate->memory splitter): Remove.
14211 (DImode immediate->memory peephole2): Remove.
14212 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14213 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14214 alternative to (!o,*r).
14215 (*movtf_internal_sse): New pattern.
14216 (*movxf_internal_rex64): New pattern.
14217 (*movxf_internal): Disable for TARGET_64BIT.
14218 (*movdf_internal_rex64): Remove (!o,F) alternative.
14220 2013-01-22 Jakub Jelinek <jakub@redhat.com>
14222 PR middle-end/56074
14223 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14224 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14225 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14226 stmt locations where LOCATION_LOCUS of the stmt location is
14227 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14230 * config/i386/i386.md (UNSPEC_STOS): New.
14231 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14232 *strsetqi_1): Add UNSPEC_STOS.
14234 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14237 * doc/invoke.texi: Remove left over -Wsynth example.
14239 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14241 PR tree-optimization/56051
14242 * fold-const.c (fold_binary_loc): Don't fold
14243 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14244 a narrowing conversion, or widening conversion from signed
14247 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14249 PR rtl-optimization/56023
14250 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14251 dependent on debug instruction.
14253 2013-01-21 Martin Jambor <mjambor@suse.cz>
14255 PR middle-end/56022
14256 * function.c (allocate_struct_function): Call
14257 invoke_set_current_function_hook earlier.
14259 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14261 * reload1.c (init_reload): Only initialize reload_obstack
14262 during the first call.
14264 2013-01-21 Marek Polacek <polacek@redhat.com>
14266 * cfgloop.c (verify_loop_structure): Fix up grammar.
14268 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14270 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14271 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14273 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14276 * config/arm/marvell-pj4.md: Update copyright year.
14277 Fix up use of alu to alu_reg and simple_alu_imm.
14279 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14281 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14283 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14286 * lra-constraints.c (curr_insn_transform): Don't reuse original
14287 insn for secondary memory move when memory mode should be different.
14289 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14291 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14292 atomic_storedi_1): New patterns.
14294 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14296 btver2 pipeline descriptions.
14297 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14299 * config/i386/i386.md (btver2_decode): New type attributes.
14300 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
14302 * config/i386/btver2.md: New file describing btver2 pipelines.
14304 2013-01-19 Andrew Pinski <apinski@cavium.com>
14306 PR tree-optimization/52631
14307 * tree-ssa-sccvn (visit_use): Before looking up the original
14308 statement, try looking up the simplified expression.
14310 2013-01-19 Anthony Green <green@moxielogic.com>
14312 * config/moxie/moxie.c (moxie_expand_prologue): Set
14313 current_function_static_stack_size.
14315 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14317 PR tree-optimization/56029
14318 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14319 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14321 2013-01-18 Sharad Singhai <singhai@google.com>
14323 PR tree-optimization/55995
14324 * dumpfile.c (dump_loc): Print location only if available.
14325 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14327 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14330 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14331 secondary memory move.
14332 (inherit_reload_reg): Use rclass instead of cl for
14333 check_secondary_memory_needed_p.
14335 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14337 PR middle-end/56015
14338 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
14339 the case where writing real complex part of target modifies op1.
14341 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14343 * config/aarch64/aarch64-simd.md
14344 (aarch64_vcond_internal<mode>): Handle unordered cases.
14345 * config/aarch64/iterators.md (v_cmp_result): New.
14347 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14348 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14350 * config/arm/marvell-pj4.md: New file.
14351 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14352 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14353 (generic_vfp): Likewise.
14354 * config/arm/arm-cores.def: Add marvell-pj4.
14355 * config/arm/arm-tune.md: Regenerate.
14356 * config/arm/arm-tables.opt: Regenerate.
14357 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14358 * doc/invoke.texi: Document marvell-pj4.
14360 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14362 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14364 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14369 * var-tracking.c (negative_power_of_two_p): New.
14370 (global_get_addr_cache, local_get_addr_cache): New.
14371 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14372 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14374 (vt_stack_offset_p): Remove.
14375 (vt_canon_true_dep): Always canonicalize loc's address.
14376 (clobber_overlapping_mems): Make sure we have a MEM.
14377 (local_get_addr_clear_given_value): New.
14378 (val_reset): Clear local cached entries.
14379 (compute_bb_dataflow): Create and release the local cache.
14380 Disable duplicate MEMs clobbering.
14381 (emit_notes_in_bb): Clobber MEMs likewise.
14382 (vt_emit_notes): Create and release the local cache.
14383 (vt_initialize, vt_finalize): Create and release the global
14384 cache, respectively.
14385 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
14387 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14389 PR libmudflap/53359
14390 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14391 not found in the symtab.
14393 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14396 PR rtl-optimization/55547
14397 PR rtl-optimization/53827
14400 * alias.c (offset_overlap_p): New, factored out of...
14401 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14402 the conservative special case for symbolic constants. Don't
14403 adjust zero sizes on alignment.
14405 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14407 PR rtl-optimization/52573
14408 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14409 REG_UNUSED for the same register.
14411 2013-01-17 Richard Biener <rguenther@suse.de>
14412 Marek Polacek <polacek@redhat.com>
14414 PR rtl-optimization/55833
14415 * loop-unswitch.c (unswitch_loops): Move loop verification...
14416 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14417 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14418 Set it to true when we're removing a loop from hierarchy tree in
14419 an irreducible region.
14420 (fix_bb_placements): Adjust caller.
14421 (fix_loop_placements): Likewise.
14423 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
14425 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14426 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14427 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14428 Remove ID. Adjust comments.
14429 * config/avr/avr-c.c (avr_builtin_name): Remove.
14430 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14431 * config/avr/avr.c (avr_tolower): New static function.
14432 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14433 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14434 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14437 2013-01-17 Jan Hubicka <jh@suse.cz>
14439 PR tree-optimization/55273
14440 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14442 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
14445 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14446 store through atomic_store<mode>_1.
14447 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14449 2013-01-17 Martin Jambor <mjambor@suse.cz>
14451 PR tree-optimizations/55264
14452 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14453 for virtual methods.
14454 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14455 virtual methods before inlining is over.
14456 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14458 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14461 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14463 PR rtl-optimization/56005
14464 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14465 pending reads for prefetch.
14467 2013-01-16 Ian Bolton <ian.bolton@arm.com>
14469 * config/aarch64/aarch64.md
14470 (*cstoresi_neg_uxtw): New pattern.
14471 (*cmovsi_insn_uxtw): New pattern.
14472 (*<optab>si3_uxtw): New pattern.
14473 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14474 (*<optab>si3_insn_uxtw): New pattern.
14475 (*bswapsi2_uxtw): New pattern.
14477 2013-01-16 Richard Biener <rguenther@suse.de>
14479 * tree-inline.c (tree_function_versioning): Remove set but
14480 never used variable.
14482 2013-01-16 Richard Biener <rguenther@suse.de>
14484 PR tree-optimization/55964
14485 * tree-flow.h (rename_variables_in_loop): Remove.
14486 (rename_variables_in_bb): Likewise.
14487 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14488 (copy_loop_before): Adjust and delete update-ssa status.
14489 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14490 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
14491 (rename_variables_in_loop): Remove.
14492 (slpeel_update_phis_for_duplicate_loop): Likewise.
14493 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14494 use available cfg machinery instead of duplicating it.
14495 Update PHI nodes and perform poor-mans SSA update here.
14496 (slpeel_tree_peel_loop_to_edge): Adjust.
14498 2013-01-16 Richard Biener <rguenther@suse.de>
14500 PR tree-optimization/54767
14501 PR tree-optimization/53465
14502 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14503 (vrp_visit_phi_node): For PHI arguments coming via backedges
14504 drop all symbolical range information.
14505 (execute_vrp): Compute backedges.
14507 2013-01-16 Richard Biener <rguenther@suse.de>
14509 * doc/install.texi: Update CLooG and ISL requirements to
14512 2013-01-16 Christian Bruel <christian.bruel@st.com>
14515 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14516 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14517 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14519 2013-01-16 DJ Delorie <dj@redhat.com>
14521 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14522 (UNSPECV_SP_SWITCH_E): New.
14523 (sp_switch_1): Change to an unspec.
14524 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14527 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
14529 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14530 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14531 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14532 (expand_mem_thread_fence): Ditto.
14533 (expand_mem_signal_fence): Ditto.
14534 (expand_atomic_load): Ditto.
14535 (expand_atomic_store): Ditto.
14537 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
14539 PR rtl-optimization/55547
14540 PR rtl-optimization/53827
14543 * alias.c (memrefs_conflict_p): Set sizes to negative after
14546 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14549 * function.c (thread_prologue_and_epilogue_insns): Always
14550 add crtl->drap_reg to set_up_by_prologue.set, even if
14551 stack_realign_drap is false.
14553 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14555 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14556 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14557 *call): Fix indention.
14559 2013-01-15 Tom de Vries <tom@codesourcery.com>
14562 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14565 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14567 PR rtl-optimization/55153
14568 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14570 2013-01-15 Martin Jambor <mjambor@suse.cz>
14572 PR tree-optimization/55920
14573 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14574 accesses as grp_to_be_debug_replaced.
14576 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14578 PR tree-optimization/55920
14579 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14580 there is non-useless type conversion needed from debug rhs to lhs,
14581 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14583 2013-01-15 Joseph Myers <joseph@codesourcery.com>
14584 Mikael Pettersson <mikpe@it.uu.se>
14587 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14589 (ASM_OUTPUT_CASE_LABEL): Remove.
14590 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14591 * final.c (shorten_branches): Update alignment of labels before
14592 jump tables if CASE_VECTOR_SHORTEN_MODE.
14594 2013-01-15 Richard Biener <rguenther@suse.de>
14597 * system.h: Do not include gmp.h for building host tools.
14599 2013-01-15 Richard Biener <rguenther@suse.de>
14601 PR middle-end/55882
14602 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14603 account for bitpos when computing alignment.
14605 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14607 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14608 (ix86_target_macros_internal): Likewise.
14610 * config/i386/i386.c (m_CORE2I7): Removed.
14611 (m_CORE_HASWELL): New macro.
14612 (m_CORE_ALL): Likewise.
14613 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14614 (initial_ix86_arch_features): Likewise.
14615 (processor_target_table): Initializations for Core avx2.
14616 (cpu_names): New names "core-avx2".
14617 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14618 PROCESSOR_CORE_HASWELL.
14619 (ix86_issue_rate): New case.
14620 (ia32_multipass_dfa_lookahead): Likewise.
14621 (ix86_sched_init_global): Likewise.
14623 * config/i386/i386.h (TARGET_HASWELL): New macro.
14624 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14625 (processor_type): New PROCESSOR_HASWELL.
14627 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14629 PR tree-optimization/55955
14630 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14631 *SHIFT_EXPR and *ROTATE_EXPR codes.
14633 PR tree-optimization/48766
14634 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14635 -ftrapv disable -fwrapv.
14637 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14640 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14641 etc. to 1 and not to __flash.
14642 Use LL suffix for __INT24_MAX__ with -mint8.
14643 Use ULL suffix for __UINT24_MAX__ with -mint8.
14645 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14647 * config/avr/avr-arch.h
14648 (struct base_arch_s): Use typedef avr_arch_t instead.
14649 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14650 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14651 * config/avr/avr.c: Same.
14652 * config/avr/avr-devices.c: Same.
14653 * config/avr/driver-avr.c: Same.
14654 * config/avr/gen-avr-mmcu-texi.c: Same.
14655 * config/avr/avr-mcus.def: Adjust comment.
14657 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14659 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14660 * config/aarch64/iterators.md (VALLDI): New.
14662 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
14663 Andi Kleen <ak@linux.intel.com>
14666 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14667 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14670 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14672 * config/avr/avr-stdint.h: Remove trailing blanks.
14673 * config/avr/avr-log.h: Same.
14674 * config/avr/avr-arch.h: Same.
14675 * config/avr/avr-devices.c: Same.
14676 * config/avr/avr-dimode.md: Same.
14677 * config/avr/predicates.md: Same.
14678 * config/avr/avr-c.c: Same. And fix typo.
14680 * config/avr/avr-protos.h: Same. And:
14681 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14682 (init_cumulative_args): Rename to avr_init_cumulative_args.
14683 (expand_prologue): Rename to avr_expand_prologue.
14684 (expand_epilogue): Rename to avr_expand_epilogue.
14685 (adjust_insn_length): Rename to avr_adjust_insn_length.
14686 (notice_update_cc): Rename to avr_notice_update_cc.
14687 (final_prescan_insn): Rename to avr_final_prescan_insn.
14688 * config/avr/avr.c: Same.
14689 * config/avr/avr.h: Same.
14690 * config/avr/avr.md: Remove trailing blanks.
14691 (prologue): Use avr_expand_prologue.
14692 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14694 2013-01-14 Richard Biener <rguenther@suse.de>
14696 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14697 verify_location, collect_subblocks): New functions.
14698 (verify_gimple_in_cfg): Verify that locations only reference
14699 BLOCKs in the functions BLOCK tree.
14701 2013-01-14 Richard Biener <rguenther@suse.de>
14703 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14705 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14707 (insert_out_of_ssa_copy_on_edge): Likewise.
14708 (rewrite_close_phi_out_of_ssa): Likewise.
14709 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14711 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14712 propagated constants.
14713 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14716 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14718 * config/avr/avr-modes.def: Add GPL copyright notice.
14720 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
14722 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14723 MEMMODEL_MASK to determine memory model.
14724 (atomic_store<mode>): Ditto from operands[2].
14725 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14727 2013-01-13 Jakub Jelinek <jakub@redhat.com>
14730 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14731 (fold_gimple_assign): Don't call unshare_expr here.
14732 (fold_ctor_reference): Call unshare_expr.
14734 2013-01-13 Terry Guo <terry.guo@arm.com>
14736 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14737 * doc/fragments.texi: Document MULTILIB_REUSE.
14738 * gcc.c (multilib_reuse): New internal spec.
14739 (set_multilib_dir): Also search multilib from multilib_reuse.
14740 * genmultilib (tmpmultilib3): Refactor code.
14741 (tmpmultilib4): Ditto.
14742 (multilib_reuse): New multilib argument.
14744 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14746 * Makefile.in: Update copyright.
14748 2013-01-12 Tom de Vries <tom@codesourcery.com>
14750 PR middle-end/55890
14751 * calls.c (expand_call): Check if arg_nr is valid.
14753 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14755 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14756 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14757 documentation. Add missing '__' in front of
14758 __builtin_ia32_packssdw256.
14760 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14763 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14764 NO_REGS for larl operands.
14765 (s390_reload_larl_operand): Use s390_load_address instead of
14768 2013-01-11 Richard Biener <rguenther@suse.de>
14770 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14771 (verify_node_sharing): ... here.
14772 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14774 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14776 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14777 Substitute TREECHECKING.
14778 * configure: Regenerate.
14779 * Makefile.in (TREECHECKING): New.
14781 2013-01-11 Richard Guenther <rguenther@suse.de>
14783 PR tree-optimization/44061
14784 * tree-vrp.c (extract_range_basic): Compute zero as
14785 value-range for __builtin_constant_p of function parameters.
14787 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14789 Update copyright years.
14791 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14793 PR rtl-optimization/55672
14794 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14795 const to be eliminable.
14797 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
14799 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14800 * configure: Regenerate.
14802 2013-01-10 Richard Biener <rguenther@suse.de>
14804 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14806 2013-01-10 Richard Biener <rguenther@suse.de>
14809 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14810 locations for virtual PHI arguments.
14811 (rewrite_update_phi_arguments): Likewise.
14813 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14815 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14818 2013-01-10 Jakub Jelinek <jakub@redhat.com>
14820 PR tree-optimization/55921
14821 * tree-complex.c (expand_complex_asm): New function.
14822 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14824 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14827 * config/s390/s390.c (s390_symref_operand_p)
14828 (s390_loadrelative_operand_p): Merge the two functions.
14829 (s390_check_qrst_address, print_operand_address): Add parameters
14830 to s390_loadrelative_operand_p invokation.
14831 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14832 (s390_reload_larl_operand, s390_secondary_reload): Use
14833 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14834 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14836 2013-01-09 Mike Stump <mikestump@comcast.net>
14838 * dse.c (record_store): Remove unnecessary assert.
14840 2013-01-09 Jan Hubicka <jh@suse.cz>
14842 PR tree-optimization/55569
14843 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14844 * cfgloop.h (scale_loop_profile): Likewise.
14846 2013-01-09 Jan Hubicka <jh@suse.cz>
14849 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14851 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14853 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14855 PR middle-end/55114
14856 * expr.h (maybe_emit_group_store): Declare.
14857 * expr.c (maybe_emit_group_store): New function.
14858 * builtins.c (expand_builtin_int_roundingfn): Call it.
14859 (expand_builtin_int_roundingfn_2): Likewise.
14861 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14863 PR rtl-optimization/55829
14864 * lra-constraints.c (match_reload): Add code for absent output.
14865 (curr_insn_transform): Add code for reloads of matched inputs
14868 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
14870 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14871 attribute of movddup insn to DF.
14872 (*vec_interleave_lowv2df): Ditto.
14873 (vec_dupv2df): Ditto.
14875 2013-01-09 Jan Hubicka <jh@suse.cz>
14877 PR tree-optimiation/55875
14878 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14879 EVERY_ITERATION parameter.
14880 (number_of_iterations_exit): Check if exit is executed every iteration.
14881 (idx_infer_loop_bounds): Similarly here.
14882 (n_of_executions_at_most): Simplify
14883 to only test for cases where statement is dominated by the
14884 particular bound; handle correctly the "postdominance" test.
14885 (scev_probably_wraps_p): Use max loop iterations info
14886 as a global bound first.
14888 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
14889 Nick Clifton <nickc@redhat.com>
14891 * config/v850/v850.md (cbranchsf4): New pattern.
14892 (cstoresf4): New pattern.
14893 (cbranchdf4): New pattern.
14894 (cstoredf4): New pattern.
14895 (movsicc): Disallow floating point comparisons.
14896 (cmpsf_le_insn): Fix order of operators.
14897 (cmpsf_lt_insn): Likewise.
14898 (cmpsf_eq_insn): Likewise.
14899 (cmpdf_le_insn): Likewise.
14900 (cmpdf_lt_insn): Likewise.
14901 (cmpdf_eq_insn): Likewise.
14902 (cmpsf_ge_insn): Use LE comparison.
14903 (cmpdf_ge_insn): Likewise.
14904 (cmpsf_gt_insn): Use LT comparison.
14905 (cmpdf_gt_insn): Likewise.
14906 (cmpsf_ne_insn): Delete pattern.
14907 (cmpdf_ne_insn): Delete pattern.
14908 * config/v850/v850.c (v850_gen_float_compare): Use
14909 gen_cmpdf_eq_insn for NE comparison.
14910 (v850_float_z_comparison_operator)
14911 (v850_float_nz_comparison_operator): Move from here ...
14912 * config/v850/predicates.md: ... to here. Move GT and GE
14913 comparisons into v850_float_z_comparison_operator.
14914 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14916 (v850_float_nz_comparison_operator): Likewise.
14918 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14920 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14921 with calls to gen_insvsi/gen_insvdi.
14923 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14925 * config/i386/i386.c (initial_ix86_tune_features): Set up
14926 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14928 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
14929 Jakub Jelinek <jakub@redhat.com>
14931 PR tree-optimization/48189
14932 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14933 If nitercst is 0, don't predict the exit edge.
14935 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14937 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14938 in asm_fprintf with reg_names.
14939 (aarch64_print_operand_address): Likewise.
14940 (aarch64_return_addr): Likewise.
14941 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14943 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14945 * config/pa/pa.h (VAL_U6_BITS_P): Define.
14946 (INT_U6_BITS): Likewise.
14947 * config/pa/predicates.md (uint6_operand): New predicate.
14948 (shift5_operand, shift6_operand): Likewise.
14949 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14951 (lshrdi3): Use shift6_operand.
14952 (shrpsi4, shrpdi4): New insn patterns.
14953 (extzv): Delete expander.
14954 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
14955 predicates in unamed zero extract patterns. Tighten common constraint.
14956 (extv): Delete expander.
14957 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14958 predicates in unamed sign extract patterns. Tighten common constraint.
14959 (insv): Delete expander.
14960 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14961 predicates in unamed insert patterns. Tighten common constraint.
14962 Change uint32_operand predicate to uint6_operand predicate in unamed
14963 DImode pattern to insert constant values of type 1...1xxxx.
14965 2013-01-04 Jan Hubicka <jh@suse.cz>
14967 PR tree-optimization/55823
14968 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14971 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14972 Uros Bizjak <ubizjak@gmail.com>
14974 PR rtl-optimization/55845
14975 * df-problems.c (can_move_insns_across): Stop scanning at
14976 volatile_insn_p source instruction or give up if
14977 across_from .. across_to range contains any volatile_insn_p
14980 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14982 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14983 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14985 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
14986 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
14988 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14991 * asan.c (asan_clear_shadow): New function.
14992 (asan_emit_stack_protection): Use it.
14994 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14996 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14997 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14998 with tab instead of space.
15000 2013-01-08 Nick Clifton <nickc@redhat.com>
15002 * config/rl78/rl78.c (rl78_expand_prologue): Always select
15003 register bank 0 at the start of an interrupt handler.
15004 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
15007 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15009 * config/aarch64/aarch64-simd.md
15010 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
15011 (aarch64_simd_bsl): Likewise.
15012 (aarch64_vcond_internal<mode>): Likewise.
15013 (vcond<mode><mode>): Likewise.
15014 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
15015 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
15017 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15019 * config/aarch64/aarch64-builtins.c
15020 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
15022 2013-01-08 Martin Jambor <mjambor@suse.cz>
15025 * tree-sra.c (analyze_access_subtree): Return true also after
15026 potentially creating a debug-only replacement.
15028 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15030 PR middle-end/55890
15031 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
15033 PR tree-optimization/54120
15034 * tree-vrp.c (range_fits_type_p): Don't allow
15035 src_precision < precision from signed vr to unsigned_p
15036 if vr->min or vr->max is negative.
15037 (simplify_float_conversion_using_ranges): Test can_float_p
15038 against CODE_FOR_nothing.
15040 2013-01-08 Jakub Jelinek <jakub@redhat.com>
15041 Richard Biener <rguenther@suse.de>
15043 PR middle-end/55851
15044 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
15045 types instead of just INTEGER_TYPE types.
15047 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
15049 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
15052 2013-01-07 Steve Ellcey <sellcey@mips.com>
15055 * config/mips/mips.opt: Change mad to mmad to match documentation.
15057 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15060 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
15061 .progmemx.data now.
15063 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15066 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
15067 (avr_addrspace_t): Add .section_name field.
15068 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
15070 (avr_addrspace): Same. Initialize .section_name. Remove last
15071 NULL entry. Put __memx into .progmemx.data.
15072 (progmem_section_prefix): Remove.
15073 (avr_asm_init_sections): No need to initialize progmem_section.
15074 (avr_asm_named_section): Use avr_addrspace[].section_name to get
15075 section name prefix.
15076 (avr_asm_select_section): Ditto. And use get_unnamed_section to
15077 retrieve the progmem section.
15078 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
15079 boundary to run over avr_addrspace[].
15080 (avr_register_target_pragmas): Ditto.
15082 2013-01-06 Jakub Jelinek <jakub@redhat.com>
15084 * varasm.c (output_constant_def_contents): For asan_protect_global
15085 protected strings, adjust DECL_ALIGN if needed, before testing for
15087 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
15088 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
15090 (output_object_block): For asan protected decls, emit asan padding
15091 after their contents.
15092 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
15093 (asan_finish_file): Test it here instead.
15095 2013-01-07 Nick Clifton <nickc@redhat.com>
15096 Matthias Klose <doko@debian.org>
15097 Doug Kwan <dougkwan@google.com>
15098 H.J. Lu <hongjiu.lu@intel.com>
15101 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
15103 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
15105 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
15107 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
15109 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
15111 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15114 * doc/install.texi (Cross-Compiler-Specific Options): Document
15117 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
15119 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
15120 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
15121 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
15122 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15123 vqmovun_high_s64): Fix source operand number and update copyright.
15125 2013-01-07 Richard Biener <rguenther@suse.de>
15127 PR middle-end/55890
15128 * gimple.h (gimple_call_builtin_p): New overload.
15129 * gimple.c (validate_call): New function.
15130 (gimple_call_builtin_p): Likewise.
15131 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15132 Use gimple_call_builtin_p.
15133 (find_func_clobbers): Likewise.
15134 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15135 (strlen_optimize_stmt): Likewise.
15137 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15139 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15140 (vld1q_dup_*): Likewise.
15141 (vld1_*): Likewise.
15142 (vld1q_*): Likewise.
15143 (vld1_lane_*): Likewise.
15144 (vld1q_lane_*): Likewise.
15146 2013-01-07 Richard Biener <rguenther@suse.de>
15148 * lto-streamer.h (LTO_minor_version): Bump to 2.
15150 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15152 * config/aarch64/aarch64-protos.h
15153 (aarch64_const_double_zero_rtx_p): Rename to...
15154 (aarch64_float_const_zero_rtx_p): ...this.
15155 (aarch64_float_const_representable_p): New.
15156 (aarch64_output_simd_mov_immediate): Likewise.
15157 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15158 move immediate case.
15159 * config/aarch64/aarch64.c
15160 (aarch64_const_double_zero_rtx_p): Rename to...
15161 (aarch64_float_const_zero_rtx_p): ...this.
15162 (aarch64_print_operand): Allow printing of new constants.
15163 (aarch64_valid_floating_const): New.
15164 (aarch64_legitimate_constant_p): Check for valid floating-point
15166 (aarch64_simd_valid_immediate): Likewise.
15167 (aarch64_vect_float_const_representable_p): New.
15168 (aarch64_float_const_representable_p): Likewise.
15169 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15170 (aarch64_output_simd_mov_immediate): New.
15171 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15172 (*movdf_aarch64): Likewise.
15173 * config/aarch64/constraints.md (Ufc): New.
15174 (Y): call aarch64_float_const_zero_rtx.
15175 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15177 2013-01-07 Richard Biener <rguenther@suse.de>
15179 PR tree-optimization/55888
15180 PR tree-optimization/55862
15181 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15182 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15183 not if it is contained therein.
15185 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15187 * config/avr/t-avr: Typo.
15189 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15192 * config/avr/t-avr: Don't automatically rebuild
15193 $(srcdir)/config/avr/t-multilib
15194 $(srcdir)/config/avr/avr-tables.opt
15195 $(srcdir)/doc/avr-mmcu.texi
15196 (avr-mcus): New phony target to build them on request.
15197 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15198 * avr/avr-mcus.def: Adjust comments.
15200 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
15202 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15204 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15206 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15208 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15210 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15212 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
15214 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15215 to generate profiling.
15216 * config/rs6000/aix64.h (LIB_SPEC): Same.
15218 2013-01-04 Andrew Pinski <apinski@cavium.com>
15220 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15222 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15224 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
15226 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15228 (ix86_expand_move): Ditto.
15229 (ix86_zero_extend_to_Pmode): Ditto.
15230 (ix86_expand_call): Ditto.
15231 (ix86_expand_special_args_builtin): Ditto.
15232 (ix86_expand_builtin): Ditto.
15234 2013-01-04 Richard Biener <rguenther@suse.de>
15236 PR tree-optimization/55862
15237 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15238 translating them through PHI nodes.
15240 2013-01-04 Martin Jambor <mjambor@suse.cz>
15242 PR tree-optimization/55755
15243 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15244 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15246 2013-01-04 Marek Polacek <polacek@redhat.com>
15248 PR middle-end/55859
15249 * opts.c (default_options_optimization): Clarify error message.
15251 2013-01-04 Richard Biener <rguenther@suse.de>
15253 PR middle-end/55863
15254 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15257 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15260 * config/pa/pa.md (movsi): Revert previous change.
15261 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15264 2013-01-03 Richard Henderson <rth@redhat.com>
15266 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15267 after eliminating TLS symbols.
15269 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
15272 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15273 * graphite-poly.c (debug_gmp_value): Likewise.
15275 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
15278 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15279 selected code model, define __code_mode_small__, __code_model_medium__,
15280 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15281 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15282 xchg temporary register with %k. Declare temporary register as
15284 [__x86_64__]: For medium and large code models, preserve %rbx register.
15286 2013-01-03 Richard Biener <rguenther@suse.de>
15288 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
15289 (dump_subscript): Adjust.
15290 (finalize_ddr_dependent): Do not dump redundant info.
15291 (analyze_siv_subscript): Adjust.
15292 (subscript_dependence_tester): Likewise.
15293 (compute_affine_dependence): Likewise.
15295 2013-01-03 Richard Biener <rguenther@suse.de>
15298 2013-01-03 Richard Biener <rguenther@suse.de>
15300 PR tree-optimization/55857
15301 * tree-vect-stmts.c (vectorizable_load): Do not setup
15302 re-alignment for invariant loads.
15304 2013-01-02 Richard Biener <rguenther@suse.de>
15306 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15307 invariant load do not generate a vector load from the scalar location.
15309 2013-01-03 Richard Biener <rguenther@suse.de>
15311 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15312 for not vectorizing.
15313 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15314 not build INDIRECT_REFs, call get_name once only.
15315 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15316 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15318 2013-01-03 Richard Biener <rguenther@suse.de>
15320 PR tree-optimization/55857
15321 * tree-vect-stmts.c (vectorizable_load): Do not setup
15322 re-alignment for invariant loads.
15324 2013-01-03 Richard Biener <rguenther@suse.de>
15327 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15328 prefer a built-in decl.
15330 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15332 * gcc.c (process_command): Update copyright notice dates.
15333 * gcov.c (print_version): Likewise.
15334 * gcov-dump.c (print_version): Likewise.
15336 PR rtl-optimization/55838
15337 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15338 iv0.step, iv1.step and step.
15340 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15341 Marc Glisse <marc.glisse@inria.fr>
15343 PR tree-optimization/55832
15344 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15345 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15346 integer_{one,zero}_node.
15348 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15351 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15352 * var-tracking.c (reverse_op): Don't add reverse ops to
15353 VALUEs that have already
15354 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
15356 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15358 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15360 2013-01-02 Teresa Johnson <tejohnson@google.com>
15362 * dumpfile.c (dump_loc): Print filename with location.
15363 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15364 new location_t parameter to emit complete unroll message with
15365 new dump framework.
15366 (canonicalize_loop_induction_variables): Compute loops location
15367 and pass to try_unroll_loop_completely.
15368 * loop-unroll.c (report_unroll_peel): New function.
15369 (peel_loops_completely): Use new dump format with location
15370 for main dumpfile message, and invoke report_unroll_peel on success.
15371 (decide_unrolling_and_peeling): Ditto.
15372 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15373 by report_unroll_peel.
15374 (decide_peel_completely): Ditto.
15375 (decide_unroll_constant_iterations): Ditto.
15376 (decide_unroll_runtime_iterations): Ditto.
15377 (decide_peel_simple): Ditto.
15378 (decide_unroll_stupid): Ditto.
15379 * cfgloop.c (get_loop_location): New function.
15380 * cfgloop.h (get_loop_location): Declare.
15382 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15384 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15387 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15389 PR middle-end/55198
15390 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15391 BLKmode objects when EXPAND_MEMORY is specified.
15393 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15395 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15397 (fold_builtin_cpu): Do not share cpu model decls across statements.
15399 2013-01-02 Jason Merrill <jason@redhat.com>
15402 * tree.c (build_array_type_1): Revert earlier change.
15404 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15406 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15408 * config/aarch64/aarch64-tune.md: Re-generate.
15410 2013-01-02 Richard Biener <rguenther@suse.de>
15412 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15413 invariant load do not generate a vector load from the scalar location.
15415 2013-01-02 Richard Biener <rguenther@suse.de>
15418 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15419 * configure: Regenerate.
15421 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15423 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15424 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15425 (expand_builtin_int_roundingfn_2): Keep the original target around
15426 for the fallback case.
15428 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15430 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15431 to be clear for sign changes.
15433 2013-01-01 Jan Hubicka <jh@suse.cz>
15435 * ipa-inline-analysis.c: Fix formatting.
15437 2013-01-01 Jakub Jelinek <jakub@redhat.com>
15439 PR tree-optimization/55831
15440 * tree-vect-loop.c (get_initial_def_for_induction): Use
15441 gsi_after_labels instead of gsi_start_bb.
15443 Copyright (C) 2013 Free Software Foundation, Inc.
15445 Copying and distribution of this file, with or without modification,
15446 are permitted in any medium without royalty provided the copyright
15447 notice and this notice are preserved.